diff --git a/assets/Translatex-d163f7af.js b/assets/Translatex-83019934.js similarity index 87% rename from assets/Translatex-d163f7af.js rename to assets/Translatex-83019934.js index 17a01bf..91d16ea 100644 --- a/assets/Translatex-d163f7af.js +++ b/assets/Translatex-83019934.js @@ -1 +1 @@ -var p=Object.defineProperty;var o=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var i=(a,e,t)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,n=(a,e)=>{for(var t in e||(e={}))x.call(e,t)&&i(a,t,e[t]);if(o)for(var t of o(e))u.call(e,t)&&i(a,t,e[t]);return a};import{j as g}from"./antd-d487744a.js";import{u as Y,a as y}from"./entry/index-a6cf600d.1715609901087.js";import{a as l}from"./react-f288da4a.js";function E(a){const{children:e,direction:t="left",delay:c=3e3,run:s=!1,config:f={tension:100,friction:26}}=a,[r,m]=l.useState(!1);l.useEffect(()=>{m(s)},[s]);const d=Y({opacity:r?1:0,transform:r?`${t==="left"?"translateX(0px) scale(1) rotateY(0deg)":"translateY(0px) scale(1) rotateY(0deg)"}`:`${t==="left"?"translateX(80px) scale(1) rotateY(10deg)":"translateY(80px) scale(0.9) rotateY(10deg)"}`,delay:c,config:n({},f),onRest:()=>{}});return g.jsx(y.div,{className:a.className,style:n({},d),children:s&&e})}export{E as T}; +var p=Object.defineProperty;var o=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var i=(a,e,t)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,n=(a,e)=>{for(var t in e||(e={}))x.call(e,t)&&i(a,t,e[t]);if(o)for(var t of o(e))u.call(e,t)&&i(a,t,e[t]);return a};import{j as g}from"./antd-66264537.js";import{u as Y,a as y}from"./entry/index-49ff40a5.1715612414483.js";import{a as l}from"./react-f288da4a.js";function E(a){const{children:e,direction:t="left",delay:c=3e3,run:s=!1,config:f={tension:100,friction:26}}=a,[r,m]=l.useState(!1);l.useEffect(()=>{m(s)},[s]);const d=Y({opacity:r?1:0,transform:r?`${t==="left"?"translateX(0px) scale(1) rotateY(0deg)":"translateY(0px) scale(1) rotateY(0deg)"}`:`${t==="left"?"translateX(80px) scale(1) rotateY(10deg)":"translateY(80px) scale(0.9) rotateY(10deg)"}`,delay:c,config:n({},f),onRest:()=>{}});return g.jsx(y.div,{className:a.className,style:n({},d),children:s&&e})}export{E as T}; diff --git a/assets/antd-d487744a.js b/assets/antd-66264537.js similarity index 99% rename from assets/antd-d487744a.js rename to assets/antd-66264537.js index 32cb1ef..2ac08ba 100644 --- a/assets/antd-d487744a.js +++ b/assets/antd-66264537.js @@ -475,4 +475,4 @@ html body { ${n}-download, ${n}-delete `]:{zIndex:10,width:r,margin:`0 ${A(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${A(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${A(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},ZQ=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},QQ=ZQ,JQ=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ot(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},eJ=e=>({actionsColor:e.colorTextDescription}),tJ=$t("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,l=St(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[JQ(l),WQ(l),XQ(l),YQ(l),GQ(l),UQ(l),QQ(l),Du(l)]},eJ);var nJ={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};const rJ=nJ;var oJ=function(t,n){return a.createElement(dt,ce({},t,{ref:n,icon:rJ}))};const aJ=a.forwardRef(oJ);var iJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const lJ=iJ;var sJ=function(t,n){return a.createElement(dt,ce({},t,{ref:n,icon:lJ}))};const cJ=a.forwardRef(sJ);var uJ={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};const dJ=uJ;var fJ=function(t,n){return a.createElement(dt,ce({},t,{ref:n,icon:dJ}))};const mJ=a.forwardRef(fJ);function Ws(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Ks(e,t){const n=ve(t),r=n.findIndex(o=>{let{uid:i}=o;return i===e.uid});return r===-1?n.push(e):n[r]=e,n}function Cf(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function gJ(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const vJ=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},N4=e=>e.indexOf("image/")===0,pJ=e=>{if(e.type&&!e.thumbUrl)return N4(e.type);const t=e.thumbUrl||e.url||"",n=vJ(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Do=200;function hJ(e){return new Promise(t=>{if(!e.type||!N4(e.type)){t("");return}const n=document.createElement("canvas");n.width=Do,n.height=Do,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Do}px; height: ${Do}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:l}=o;let s=Do,c=Do,u=0,d=0;i>l?(c=l*(Do/i),d=-(c-s)/2):(s=i*(Do/l),u=-(s-c)/2),r.drawImage(o,u,d,s,c);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var bJ={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"};const yJ=bJ;var CJ=function(t,n){return a.createElement(dt,ce({},t,{ref:n,icon:yJ}))};const SJ=a.forwardRef(CJ),xJ=a.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,locale:i,listType:l,file:s,items:c,progress:u,iconRender:d,actionIconRender:f,itemRender:m,isImgUrl:g,showPreviewIcon:p,showRemoveIcon:v,showDownloadIcon:h,previewIcon:b,removeIcon:y,downloadIcon:C,onPreview:S,onDownload:x,onClose:w}=e;var $,O;const{status:E}=s,[I,P]=a.useState(E);a.useEffect(()=>{E!=="removed"&&P(E)},[E]);const[T,M]=a.useState(!1);a.useEffect(()=>{const q=setTimeout(()=>{M(!0)},300);return()=>{clearTimeout(q)}},[]);const N=d(s);let L=a.createElement("div",{className:`${n}-icon`},N);if(l==="picture"||l==="picture-card"||l==="picture-circle")if(I==="uploading"||!s.thumbUrl&&!s.url){const q=W(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:I!=="uploading"});L=a.createElement("div",{className:q},N)}else{const q=g!=null&&g(s)?a.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):N,G=W(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(s)});L=a.createElement("a",{className:G,onClick:te=>S(s,te),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},q)}const k=W(`${n}-list-item`,`${n}-list-item-${I}`),R=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,D=v?f((typeof y=="function"?y(s):y)||a.createElement(x4,null),()=>w(s),n,i.removeFile,!0):null,_=h&&I==="done"?f((typeof C=="function"?C(s):C)||a.createElement(SJ,null),()=>x(s),n,i.downloadFile):null,j=l!=="picture-card"&&l!=="picture-circle"&&a.createElement("span",{key:"download-delete",className:W(`${n}-list-item-actions`,{picture:l==="picture"})},_,D),z=W(`${n}-list-item-name`),V=s.url?[a.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:z,title:s.name},R,{href:s.url,onClick:q=>S(s,q)}),s.name),j]:[a.createElement("span",{key:"view",className:z,onClick:q=>S(s,q),title:s.name},s.name),j],F=p&&(s.url||s.thumbUrl)?a.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:q=>S(s,q),title:i.previewFile},typeof b=="function"?b(s):b||a.createElement(Hv,null)):null,Y=(l==="picture-card"||l==="picture-circle")&&I!=="uploading"&&a.createElement("span",{className:`${n}-list-item-actions`},F,I==="done"&&_,D),{getPrefixCls:H}=a.useContext(Ye),U=H(),re=a.createElement("div",{className:k},L,V,Y,T&&a.createElement(Mn,{motionName:`${U}-fade`,visible:I==="uploading",motionDeadline:2e3},q=>{let{className:G}=q;const te="percent"in s?a.createElement(oK,Object.assign({},u,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return a.createElement("div",{className:W(`${n}-list-item-progress`,G)},te)})),J=s.response&&typeof s.response=="string"?s.response:(($=s.error)===null||$===void 0?void 0:$.statusText)||((O=s.error)===null||O===void 0?void 0:O.message)||i.uploadError,oe=I==="error"?a.createElement(Wr,{title:J,getPopupContainer:q=>q.parentNode},re):re;return a.createElement("div",{className:W(`${n}-list-item-container`,r),style:o,ref:t},m?m(oe,s,c,{download:x.bind(null,s),preview:S.bind(null,s),remove:w.bind(null,s)}):oe)}),$J=xJ,wJ=(e,t)=>{const{listType:n="text",previewFile:r=hJ,onPreview:o,onDownload:i,onRemove:l,locale:s,iconRender:c,isImageUrl:u=pJ,prefixCls:d,items:f=[],showPreviewIcon:m=!0,showRemoveIcon:g=!0,showDownloadIcon:p=!1,removeIcon:v,previewIcon:h,downloadIcon:b,progress:y={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:S=!0,itemRender:x,disabled:w}=e,$=uv(),[O,E]=a.useState(!1);a.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(f||[]).forEach(F=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(F.originFileObj instanceof File||F.originFileObj instanceof Blob)||F.thumbUrl!==void 0||(F.thumbUrl="",r&&r(F.originFileObj).then(Y=>{F.thumbUrl=Y||"",$()}))})},[n,f,r]),a.useEffect(()=>{E(!0)},[]);const I=(F,Y)=>{if(o)return Y==null||Y.preventDefault(),o(F)},P=F=>{typeof i=="function"?i(F):F.url&&window.open(F.url)},T=F=>{l==null||l(F)},M=F=>{if(c)return c(F,n);const Y=F.status==="uploading",H=u&&u(F)?a.createElement(mJ,null):a.createElement(aJ,null);let U=Y?a.createElement(So,null):a.createElement(cJ,null);return n==="picture"?U=Y?a.createElement(So,null):H:(n==="picture-card"||n==="picture-circle")&&(U=Y?s.uploading:H),U},N=(F,Y,H,U,re)=>{const J={type:"text",size:"small",title:U,onClick:oe=>{Y(),Un(F)&&F.props.onClick&&F.props.onClick(oe)},className:`${H}-list-item-action`};if(re&&(J.disabled=w),Un(F)){const oe=mn(F,Object.assign(Object.assign({},F.props),{onClick:()=>{}}));return a.createElement(rr,Object.assign({},J,{icon:oe}))}return a.createElement(rr,Object.assign({},J),a.createElement("span",null,F))};a.useImperativeHandle(t,()=>({handlePreview:I,handleDownload:P}));const{getPrefixCls:L}=a.useContext(Ye),k=L("upload",d),R=L(),D=W(`${k}-list`,`${k}-list-${n}`),_=ve(f.map(F=>({key:F.uid,file:F})));let z={motionDeadline:2e3,motionName:`${k}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:_,motionAppear:O};const V=a.useMemo(()=>{const F=Object.assign({},Tl(R));return delete F.onAppearEnd,delete F.onEnterEnd,delete F.onLeaveEnd,F},[R]);return n!=="picture-card"&&n!=="picture-circle"&&(z=Object.assign(Object.assign({},V),z)),a.createElement("div",{className:D},a.createElement(Dg,Object.assign({},z,{component:!1}),F=>{let{key:Y,file:H,className:U,style:re}=F;return a.createElement($J,{key:Y,locale:s,prefixCls:k,className:U,style:re,file:H,items:f,progress:y,listType:n,isImgUrl:u,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:p,removeIcon:v,previewIcon:h,downloadIcon:b,iconRender:M,actionIconRender:N,itemRender:x,onPreview:I,onDownload:P,onClose:T})}),C&&a.createElement(Mn,Object.assign({},z,{visible:S,forceRender:!0}),F=>{let{className:Y,style:H}=F;return mn(C,U=>({className:W(U.className,Y),style:Object.assign(Object.assign(Object.assign({},H),{pointerEvents:Y?"none":void 0}),U.style)}))}))},EJ=a.forwardRef(wJ),OJ=EJ;var IJ=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function s(d){try{u(r.next(d))}catch(f){l(f)}}function c(d){try{u(r.throw(d))}catch(f){l(f)}}function u(d){d.done?i(d.value):o(d.value).then(s,c)}u((r=r.apply(e,t||[])).next())})};const ul=`__LIST_IGNORE_${Date.now()}__`,PJ=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:i=!0,listType:l="text",onPreview:s,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:m,locale:g,iconRender:p,isImageUrl:v,progress:h,prefixCls:b,className:y,type:C="select",children:S,style:x,itemRender:w,maxCount:$,data:O={},multiple:E=!1,hasControlInside:I=!0,action:P="",accept:T="",supportServerRender:M=!0,rootClassName:N}=e,L=a.useContext(Xn),k=m!=null?m:L,[R,D]=Et(r||[],{value:n,postState:he=>he!=null?he:[]}),[_,j]=a.useState("drop"),z=a.useRef(null);a.useMemo(()=>{const he=Date.now();(n||[]).forEach((je,Pe)=>{!je.uid&&!Object.isFrozen(je)&&(je.uid=`__AUTO__${he}_${Pe}__`)})},[n]);const V=(he,je,Pe)=>{let Re=ve(je),Fe=!1;$===1?Re=Re.slice(-1):$&&(Fe=Re.length>$,Re=Re.slice(0,$)),bo.flushSync(()=>{D(Re)});const Ue={file:he,fileList:Re};Pe&&(Ue.event=Pe),(!Fe||Re.some(rt=>rt.uid===he.uid))&&bo.flushSync(()=>{u==null||u(Ue)})},F=(he,je)=>IJ(void 0,void 0,void 0,function*(){const{beforeUpload:Pe,transformFile:Re}=e;let Fe=he;if(Pe){const Ue=yield Pe(he,je);if(Ue===!1)return!1;if(delete he[ul],Ue===ul)return Object.defineProperty(he,ul,{value:!0,configurable:!0}),!1;typeof Ue=="object"&&Ue&&(Fe=Ue)}return Re&&(Fe=yield Re(Fe)),Fe}),Y=he=>{const je=he.filter(Fe=>!Fe.file[ul]);if(!je.length)return;const Pe=je.map(Fe=>Ws(Fe.file));let Re=ve(R);Pe.forEach(Fe=>{Re=Ks(Fe,Re)}),Pe.forEach((Fe,Ue)=>{let rt=Fe;if(je[Ue].parsedFile)Fe.status="uploading";else{const{originFileObj:be}=Fe;let Ge;try{Ge=new File([be],be.name,{type:be.type})}catch(ze){Ge=new Blob([be],{type:be.type}),Ge.name=be.name,Ge.lastModifiedDate=new Date,Ge.lastModified=new Date().getTime()}Ge.uid=Fe.uid,rt=Ge}V(rt,Re)})},H=(he,je,Pe)=>{try{typeof he=="string"&&(he=JSON.parse(he))}catch(Ue){}if(!Cf(je,R))return;const Re=Ws(je);Re.status="done",Re.percent=100,Re.response=he,Re.xhr=Pe;const Fe=Ks(Re,R);V(Re,Fe)},U=(he,je)=>{if(!Cf(je,R))return;const Pe=Ws(je);Pe.status="uploading",Pe.percent=he.percent;const Re=Ks(Pe,R);V(Pe,Re,he)},re=(he,je,Pe)=>{if(!Cf(Pe,R))return;const Re=Ws(Pe);Re.error=he,Re.response=je,Re.status="error";const Fe=Ks(Re,R);V(Re,Fe)},J=he=>{let je;Promise.resolve(typeof o=="function"?o(he):o).then(Pe=>{var Re;if(Pe===!1)return;const Fe=gJ(he,R);Fe&&(je=Object.assign(Object.assign({},he),{status:"removed"}),R==null||R.forEach(Ue=>{const rt=je.uid!==void 0?"uid":"name";Ue[rt]===je[rt]&&!Object.isFrozen(Ue)&&(Ue.status="removed")}),(Re=z.current)===null||Re===void 0||Re.abort(je),V(je,Fe))})},oe=he=>{j(he.type),he.type==="drop"&&(d==null||d(he))};a.useImperativeHandle(t,()=>({onBatchStart:Y,onSuccess:H,onProgress:U,onError:re,fileList:R,upload:z.current}));const{getPrefixCls:q,direction:G,upload:te}=a.useContext(Ye),Q=q("upload",b),X=Object.assign(Object.assign({onBatchStart:Y,onError:re,onProgress:U,onSuccess:H},e),{data:O,multiple:E,action:P,accept:T,supportServerRender:M,prefixCls:Q,disabled:k,beforeUpload:F,onChange:void 0,hasControlInside:I});delete X.className,delete X.style,(!S||k)&&delete X.id;const ee=`${Q}-wrapper`,[ne,ie,de]=tJ(Q,ee),[ae]=vr("Upload",Qn.Upload),{showRemoveIcon:se,showPreviewIcon:ue,showDownloadIcon:ge,removeIcon:me,previewIcon:xe,downloadIcon:Me}=typeof i=="boolean"?{}:i,Oe=typeof se=="undefined"?!k:!!se,pe=(he,je)=>i?a.createElement(OJ,{prefixCls:Q,listType:l,items:R,previewFile:f,onPreview:s,onDownload:c,onRemove:J,showRemoveIcon:Oe,showPreviewIcon:ue,showDownloadIcon:ge,removeIcon:me,previewIcon:xe,downloadIcon:Me,iconRender:p,locale:Object.assign(Object.assign({},ae),g),isImageUrl:v,progress:h,appendAction:he,appendActionVisible:je,itemRender:w,disabled:k}):he,De=W(ee,y,N,ie,de,te==null?void 0:te.className,{[`${Q}-rtl`]:G==="rtl",[`${Q}-picture-card-wrapper`]:l==="picture-card",[`${Q}-picture-circle-wrapper`]:l==="picture-circle"}),ye=Object.assign(Object.assign({},te==null?void 0:te.style),x);if(C==="drag"){const he=W(ie,Q,`${Q}-drag`,{[`${Q}-drag-uploading`]:R.some(je=>je.status==="uploading"),[`${Q}-drag-hover`]:_==="dragover",[`${Q}-disabled`]:k,[`${Q}-rtl`]:G==="rtl"});return ne(a.createElement("span",{className:De},a.createElement("div",{className:he,style:ye,onDrop:oe,onDragOver:oe,onDragLeave:oe},a.createElement(og,Object.assign({},X,{ref:z,className:`${Q}-btn`}),a.createElement("div",{className:`${Q}-drag-container`},S))),pe()))}const Ee=W(Q,`${Q}-select`,{[`${Q}-disabled`]:k}),Ze=(he=>a.createElement("div",{className:Ee,style:he},a.createElement(og,Object.assign({},X,{ref:z}))))(S?void 0:{display:"none"});return ne(l==="picture-card"||l==="picture-circle"?a.createElement("span",{className:De},pe(Ze,!!S)):a.createElement("span",{className:De},Ze,pe()))},MJ=a.forwardRef(PJ),T4=MJ;var RJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{style:n,height:r,hasControlInside:o=!1}=e,i=RJ(e,["style","height","hasControlInside"]);return a.createElement(T4,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),TJ=NJ,dp=T4;dp.Dragger=TJ;dp.LIST_IGNORE=ul;const Vte=dp;var fp=function(){var t=Jm.useToken(),n=t.token;return n},oi=function(t){return typeof window!="undefined"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}},Sf,D4=a.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(Sf=oi("dark"))!==null&&Sf!==void 0&&Sf.matches?"dark":"light"}),vd=function(){return a.useContext(D4)},DJ=function(){var t=fp(),n=vd(),r=n.appearance,o=n.isDarkMode;return a.useMemo(function(){return K6(W6({token:t,css:Hl,appearance:r,isDarkMode:o}))},[t,r,o])};function H1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function V1(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne in a?k(a,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[e]=n,G=(a,e)=>{for(var n in e||(e={}))R.call(e,n)&&V(a,n,e[n]);if(S)for(var n of S(e))w.call(e,n)&&V(a,n,e[n]);return a};import{S as z,g as C,aw as _,o as U,aj as D,ab as x,j as y,M as L,ax as F,as as K}from"./antd-66264537.js";import{r as f,a as c}from"./react-f288da4a.js";import{n as $,C as B,q as H,s as j,G as W,v as J,w as X}from"./entry/index-49ff40a5.1715612414483.js";function g(a){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(a)}function q(a,e){return ee(a)||Z(a,e)||Y(a,e)||Q()}function Q(){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 Y(a,e){if(a){if(typeof a=="string")return P(a,e);var n=Object.prototype.toString.call(a).slice(8,-1);if(n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set")return Array.from(a);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(a,e)}}function P(a,e){(e==null||e>a.length)&&(e=a.length);for(var n=0,t=new Array(e);ns+1){for(var p=[],h=s;h{const[e,n]=f.useState(!1),[,t]=f.useState("1"),[s,d]=f.useState([]),l=i=>y.jsx(K,{checkable:!0,treeData:i,fieldNames:{title:"displayName",key:"name"},defaultExpandAll:!0,checkStrictly:!0,defaultCheckedKeys:s,onCheck:(r,o)=>{const u=new Set(s);o.checked?r.checked.forEach(p=>u.add(p)):u.delete(o.node.key),d(Array.from(u))}}),m=f.useMemo(()=>{const i=[],r=re.map(o=>{const u=X(o.permissions).filter(p=>p.isGranted).map(p=>p.name);return i.push(...u),{key:o.name,label:o.displayName,children:l(o.permissions)}});return d(i),r},[e]);return y.jsxs(y.Fragment,{children:[y.jsx(j,{sub:!0,type:"link",onClick:()=>n(!0),children:"授权"}),y.jsx(L,{title:"授权",open:e,onCancel:()=>n(!1),onOk:()=>{},children:e&&y.jsx(F,{tabPosition:"left",defaultActiveKey:"1",items:m,onChange:t})})]})};let b=[];const le=()=>{if(!b.length){const a=localStorage.getItem("CHARA_DATA_1015");a?b=JSON.parse(a):fetch("https://sunflower-assets.oss-cn-hangzhou.aliyuncs.com/data/data.json").then(e=>e.json()).then(e=>{b=e.reverse(),localStorage.setItem("CHARA_DATA_1015",JSON.stringify(b))})}};le();const ye=a=>{const e=G(G({},a.search),a.filters);return new Promise(n=>{setTimeout(()=>{let t=b.filter(l=>{let m=!0;for(const i in e){const r=e[i];l.hasOwnProperty(i)&&l[i]!==void 0&&r!==null&&(Array.isArray(r)&&!r.includes(l[i])||typeof r=="number"&&Number(l[i])===r||typeof r=="string"&&!`${l[i]}`.includes(`${r}`))&&(m=!1)}return m});(a.sorts||[]).forEach(l=>{const{key:m,order:i}=l;t.sort((r,o)=>i==="descend"?r[m]-o[m]:o[m]-r[m])});const d=t.length;t=t.slice(a.pageSize*(a.pageIndex-1),a.pageSize*a.pageIndex),n({content:t,totalCount:d})},300)})};export{pe as A,ue as G,ye as l}; diff --git a/assets/count-up-0f941de9.js b/assets/count-up-94605701.js similarity index 92% rename from assets/count-up-0f941de9.js rename to assets/count-up-94605701.js index 15ffe28..7ef6f92 100644 --- a/assets/count-up-0f941de9.js +++ b/assets/count-up-94605701.js @@ -1 +1 @@ -var I=Object.defineProperty;var h=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var f=(r,t,s)=>t in r?I(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,l=(r,t)=>{for(var s in t||(t={}))C.call(t,s)&&f(r,s,t[s]);if(h)for(var s of h(t))w.call(t,s)&&f(r,s,t[s]);return r};import{G as a,j as e,J as S,K as x,n as o,t as i,I as d,S as N,i as j}from"./antd-d487744a.js";import{t as n}from"./entry/index-a6cf600d.1715609901087.js";import{r as m}from"./react-f288da4a.js";import{u as U,_ as u}from"./index-646dffa4.js";import{P,C as R}from"./websiteSetting-607ea25c.js";const k=()=>{const[r]=a.useForm(),[t,s]=m.useState({start:0,end:2020,duration:4,decimals:0,separator:",",prefix:"¥ ",suffix:" rmb"}),p=m.useRef(null),{start:y,reset:c}=U(l({ref:p},t));m.useEffect(()=>{c()},[]);const b=g=>{s(l(l({},t),g))};return e.jsx(P,{plugin:R,children:e.jsxs(S,{gutter:12,children:[e.jsx(x,{span:6,children:e.jsx(o,{title:n("正向增加"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(u,{start:0,end:2020,duration:4,style:{height:"100%",fontSize:"40px",color:"#e65d6e"},className:"flex-center"})})}),e.jsx(x,{span:12,children:e.jsxs(o,{title:n("自定义配置"),bordered:!1,bodyStyle:{height:"300px"},children:[e.jsx("div",{className:"flex-center",style:{marginBottom:"30px"},children:e.jsx("span",{ref:p,style:{fontSize:"40px",color:"#e65d6e"}})}),e.jsxs(a,{form:r,initialValues:l({},t),layout:"inline",labelAlign:"left",labelCol:{style:{width:"80px",marginBottom:"12px"}},onValuesChange:b,children:[e.jsx(a.Item,{label:"startVal:",name:"start",children:e.jsx(i,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"endVal:",name:"end",children:e.jsx(i,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"duration:",name:"duration",children:e.jsx(i,{min:1,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"decimals:",name:"decimals",children:e.jsx(i,{min:0,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"separator:",name:"separator",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"prefix:",name:"prefix",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"suffix:",name:"suffix",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{children:e.jsxs(N,{children:[e.jsx(j,{type:"primary",onClick:y,children:n("开始")}),e.jsx(j,{type:"primary",danger:!0,onClick:c,children:n("重置")})]})})]})]})}),e.jsx(x,{span:6,children:e.jsx(o,{title:n("反向减少"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(u,{start:2020,end:0,duration:4,style:{height:"100%",fontSize:"40px",color:"#30b08f"},className:"flex-center"})})})]})})};export{k as default}; +var I=Object.defineProperty;var h=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var f=(r,t,s)=>t in r?I(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,l=(r,t)=>{for(var s in t||(t={}))C.call(t,s)&&f(r,s,t[s]);if(h)for(var s of h(t))w.call(t,s)&&f(r,s,t[s]);return r};import{G as a,j as e,J as S,K as x,n as o,t as i,I as d,S as N,i as j}from"./antd-66264537.js";import{t as n}from"./entry/index-49ff40a5.1715612414483.js";import{r as m}from"./react-f288da4a.js";import{u as U,_ as u}from"./index-646dffa4.js";import{P,C as R}from"./websiteSetting-168278cd.js";const k=()=>{const[r]=a.useForm(),[t,s]=m.useState({start:0,end:2020,duration:4,decimals:0,separator:",",prefix:"¥ ",suffix:" rmb"}),p=m.useRef(null),{start:y,reset:c}=U(l({ref:p},t));m.useEffect(()=>{c()},[]);const b=g=>{s(l(l({},t),g))};return e.jsx(P,{plugin:R,children:e.jsxs(S,{gutter:12,children:[e.jsx(x,{span:6,children:e.jsx(o,{title:n("正向增加"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(u,{start:0,end:2020,duration:4,style:{height:"100%",fontSize:"40px",color:"#e65d6e"},className:"flex-center"})})}),e.jsx(x,{span:12,children:e.jsxs(o,{title:n("自定义配置"),bordered:!1,bodyStyle:{height:"300px"},children:[e.jsx("div",{className:"flex-center",style:{marginBottom:"30px"},children:e.jsx("span",{ref:p,style:{fontSize:"40px",color:"#e65d6e"}})}),e.jsxs(a,{form:r,initialValues:l({},t),layout:"inline",labelAlign:"left",labelCol:{style:{width:"80px",marginBottom:"12px"}},onValuesChange:b,children:[e.jsx(a.Item,{label:"startVal:",name:"start",children:e.jsx(i,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"endVal:",name:"end",children:e.jsx(i,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"duration:",name:"duration",children:e.jsx(i,{min:1,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"decimals:",name:"decimals",children:e.jsx(i,{min:0,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"separator:",name:"separator",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"prefix:",name:"prefix",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"suffix:",name:"suffix",children:e.jsx(d,{style:{width:"100px"}})}),e.jsx(a.Item,{children:e.jsxs(N,{children:[e.jsx(j,{type:"primary",onClick:y,children:n("开始")}),e.jsx(j,{type:"primary",danger:!0,onClick:c,children:n("重置")})]})})]})]})}),e.jsx(x,{span:6,children:e.jsx(o,{title:n("反向减少"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(u,{start:2020,end:0,duration:4,style:{height:"100%",fontSize:"40px",color:"#30b08f"},className:"flex-center"})})})]})})};export{k as default}; diff --git a/assets/drag-list-b838ab0d.js b/assets/drag-list-930fb960.js similarity index 99% rename from assets/drag-list-b838ab0d.js rename to assets/drag-list-930fb960.js index ff05922..c9f5643 100644 --- a/assets/drag-list-b838ab0d.js +++ b/assets/drag-list-930fb960.js @@ -1,4 +1,4 @@ -var mn=Object.defineProperty,bn=Object.defineProperties;var vn=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var Lt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var gt=(o,e,t)=>e in o?mn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ce=(o,e)=>{for(var t in e||(e={}))Lt.call(e,t)&>(o,t,e[t]);if(Je)for(var t of Je(e))Ft.call(e,t)&>(o,t,e[t]);return o},Me=(o,e)=>bn(o,vn(e));var kt=(o,e)=>{var t={};for(var n in o)Lt.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&Je)for(var n of Je(o))e.indexOf(n)<0&&Ft.call(o,n)&&(t[n]=o[n]);return t};var Ht=(o,e,t)=>(gt(o,typeof e!="symbol"?e+"":e,t),t);import{j as U,J as wn,K as Pe,n as we}from"./antd-d487744a.js";import{t as fe,c as yn}from"./entry/index-a6cf600d.1715609901087.js";import{f as Qt,r as ot}from"./react-f288da4a.js";import{P as En,S as Sn}from"./websiteSetting-607ea25c.js";var en={exports:{}};/**! +var mn=Object.defineProperty,bn=Object.defineProperties;var vn=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var Lt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable;var gt=(o,e,t)=>e in o?mn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ce=(o,e)=>{for(var t in e||(e={}))Lt.call(e,t)&>(o,t,e[t]);if(Je)for(var t of Je(e))Ft.call(e,t)&>(o,t,e[t]);return o},Me=(o,e)=>bn(o,vn(e));var kt=(o,e)=>{var t={};for(var n in o)Lt.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&Je)for(var n of Je(o))e.indexOf(n)<0&&Ft.call(o,n)&&(t[n]=o[n]);return t};var Ht=(o,e,t)=>(gt(o,typeof e!="symbol"?e+"":e,t),t);import{j as U,J as wn,K as Pe,n as we}from"./antd-66264537.js";import{t as fe,c as yn}from"./entry/index-49ff40a5.1715612414483.js";import{f as Qt,r as ot}from"./react-f288da4a.js";import{P as En,S as Sn}from"./websiteSetting-168278cd.js";var en={exports:{}};/**! * Sortable 1.15.2 * @author RubaXa * @author owenm diff --git a/assets/drag-resize-ceab54c2.js b/assets/drag-resize-ce500749.js similarity index 99% rename from assets/drag-resize-ceab54c2.js rename to assets/drag-resize-ce500749.js index 797b674..f57884d 100644 --- a/assets/drag-resize-ceab54c2.js +++ b/assets/drag-resize-ce500749.js @@ -1,4 +1,4 @@ -var _e=Object.defineProperty,Oe=Object.defineProperties;var Re=Object.getOwnPropertyDescriptors;var Kt=Object.getOwnPropertySymbols;var Ee=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable;var Jt=(e,i,r)=>i in e?_e(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,bt=(e,i)=>{for(var r in i||(i={}))Ee.call(i,r)&&Jt(e,r,i[r]);if(Kt)for(var r of Kt(i))Me.call(i,r)&&Jt(e,r,i[r]);return e},Wt=(e,i)=>Oe(e,Re(i));import{j as J,n as Ce}from"./antd-d487744a.js";import{r as k,c as ae,g as se}from"./react-f288da4a.js";import{p as le,r as Ne}from"./entry/index-a6cf600d.1715609901087.js";import{P as Te,R as We}from"./websiteSetting-607ea25c.js";var Ot={exports:{}},ue={},E={},Q={};Object.defineProperty(Q,"__esModule",{value:!0});Q.dontSetMe=Be;Q.findInArray=Ae;Q.int=Le;Q.isFunction=He;Q.isNum=je;function Ae(e,i){for(var r=0,t=e.length;r0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var t=(e=window.document)===null||e===void 0||(i=e.documentElement)===null||i===void 0?void 0:i.style;if(!t||r in t)return"";for(var n=0;ni in e?_e(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,bt=(e,i)=>{for(var r in i||(i={}))Ee.call(i,r)&&Jt(e,r,i[r]);if(Kt)for(var r of Kt(i))Me.call(i,r)&&Jt(e,r,i[r]);return e},Wt=(e,i)=>Oe(e,Re(i));import{j as J,n as Ce}from"./antd-66264537.js";import{r as k,c as ae,g as se}from"./react-f288da4a.js";import{p as le,r as Ne}from"./entry/index-49ff40a5.1715612414483.js";import{P as Te,R as We}from"./websiteSetting-168278cd.js";var Ot={exports:{}},ue={},E={},Q={};Object.defineProperty(Q,"__esModule",{value:!0});Q.dontSetMe=Be;Q.findInArray=Ae;Q.int=Le;Q.isFunction=He;Q.isNum=je;function Ae(e,i){for(var r=0,t=e.length;r0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var t=(e=window.document)===null||e===void 0||(i=e.documentElement)===null||i===void 0?void 0:i.style;if(!t||r in t)return"";for(var n=0;n: Unmounted during event!");return i}var Rt={},Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.default=hr;function hr(){}function Dt(e){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Dt(e)}Object.defineProperty(Rt,"__esModule",{value:!0});Rt.default=void 0;var Ht=dr(k),I=Xt(le),cr=Xt(ae),W=E,rt=tt,jt=Q,ct=Xt(Et);function Xt(e){return e&&e.__esModule?e:{default:e}}function me(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,r=new WeakMap;return(me=function(n){return n?r:i})(e)}function dr(e,i){if(!i&&e&&e.__esModule)return e;if(e===null||Dt(e)!=="object"&&typeof e!="function")return{default:e};var r=me(i);if(r&&r.has(e))return r.get(e);var t={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(t,o,a):t[o]=e[o]}return t.default=e,r&&r.set(e,t),t}function te(e,i){return mr(e)||yr(e,i)||vr(e,i)||gr()}function gr(){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 vr(e,i){if(e){if(typeof e=="string")return ee(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 ee(e,i)}}function ee(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,t=new Array(i);r not mounted on DragStart!");var p=f.ownerDocument;if(!(t.props.disabled||!(s.target instanceof p.defaultView.Node)||t.props.handle&&!(0,W.matchesSelectorAndParentsTo)(s.target,t.props.handle,f)||t.props.cancel&&(0,W.matchesSelectorAndParentsTo)(s.target,t.props.cancel,f))){s.type==="touchstart"&&s.preventDefault();var g=(0,W.getTouchIdentifier)(s);t.setState({touchIdentifier:g});var y=(0,rt.getControlPosition)(s,g,A(t));if(y!=null){var v=y.x,m=y.y,w=(0,rt.createCoreData)(A(t),v,m);(0,ct.default)("DraggableCore: handleDragStart: %j",w),(0,ct.default)("calling",t.props.onStart);var S=t.props.onStart(s,w);S===!1||t.mounted===!1||(t.props.enableUserSelectHack&&(0,W.addUserSelectStyles)(p),t.setState({dragging:!0,lastX:v,lastY:m}),(0,W.addEvent)(p,it.move,t.handleDrag),(0,W.addEvent)(p,it.stop,t.handleDragStop))}}}),G(A(t),"handleDrag",function(s){var f=(0,rt.getControlPosition)(s,t.state.touchIdentifier,A(t));if(f!=null){var p=f.x,g=f.y;if(Array.isArray(t.props.grid)){var y=p-t.state.lastX,v=g-t.state.lastY,m=(0,rt.snapToGrid)(t.props.grid,y,v),w=te(m,2);if(y=w[0],v=w[1],!y&&!v)return;p=t.state.lastX+y,g=t.state.lastY+v}var S=(0,rt.createCoreData)(A(t),p,g);(0,ct.default)("DraggableCore: handleDrag: %j",S);var P=t.props.onDrag(s,S);if(P===!1||t.mounted===!1){try{t.handleDragStop(new MouseEvent("mouseup"))}catch(D){var R=document.createEvent("MouseEvents");R.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.handleDragStop(R)}return}t.setState({lastX:p,lastY:g})}}),G(A(t),"handleDragStop",function(s){if(t.state.dragging){var f=(0,rt.getControlPosition)(s,t.state.touchIdentifier,A(t));if(f!=null){var p=f.x,g=f.y;if(Array.isArray(t.props.grid)){var y=p-t.state.lastX||0,v=g-t.state.lastY||0,m=(0,rt.snapToGrid)(t.props.grid,y,v),w=te(m,2);y=w[0],v=w[1],p=t.state.lastX+y,g=t.state.lastY+v}var S=(0,rt.createCoreData)(A(t),p,g),P=t.props.onStop(s,S);if(P===!1||t.mounted===!1)return!1;var R=t.findDOMNode();R&&t.props.enableUserSelectHack&&(0,W.removeUserSelectStyles)(R.ownerDocument),(0,ct.default)("DraggableCore: handleDragStop: %j",S),t.setState({dragging:!1,lastX:NaN,lastY:NaN}),R&&((0,ct.default)("DraggableCore: Removing handlers"),(0,W.removeEvent)(R.ownerDocument,it.move,t.handleDrag),(0,W.removeEvent)(R.ownerDocument,it.stop,t.handleDragStop))}}}),G(A(t),"onMouseDown",function(s){return it=V.mouse,t.handleDragStart(s)}),G(A(t),"onMouseUp",function(s){return it=V.mouse,t.handleDragStop(s)}),G(A(t),"onTouchStart",function(s){return it=V.touch,t.handleDragStart(s)}),G(A(t),"onTouchEnd",function(s){return it=V.touch,t.handleDragStop(s)}),t}return wr(r,[{key:"componentDidMount",value:function(){this.mounted=!0;var n=this.findDOMNode();n&&(0,W.addEvent)(n,V.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var n=this.findDOMNode();if(n){var o=n.ownerDocument;(0,W.removeEvent)(o,V.mouse.move,this.handleDrag),(0,W.removeEvent)(o,V.touch.move,this.handleDrag),(0,W.removeEvent)(o,V.mouse.stop,this.handleDragStop),(0,W.removeEvent)(o,V.touch.stop,this.handleDragStop),(0,W.removeEvent)(n,V.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,W.removeUserSelectStyles)(o)}}},{key:"findDOMNode",value:function(){var n,o,a;return(n=this.props)!==null&&n!==void 0&&n.nodeRef?(o=this.props)===null||o===void 0||(a=o.nodeRef)===null||a===void 0?void 0:a.current:cr.default.findDOMNode(this)}},{key:"render",value:function(){return Ht.cloneElement(Ht.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),r}(Ht.Component);Rt.default=Mt;G(Mt,"displayName","DraggableCore");G(Mt,"propTypes",{allowAnyClick:I.default.bool,disabled:I.default.bool,enableUserSelectHack:I.default.bool,offsetParent:function(i,r){if(i[r]&&i[r].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:I.default.arrayOf(I.default.number),handle:I.default.string,cancel:I.default.string,nodeRef:I.default.object,onStart:I.default.func,onDrag:I.default.func,onStop:I.default.func,onMouseDown:I.default.func,scale:I.default.number,className:jt.dontSetMe,style:jt.dontSetMe,transform:jt.dontSetMe});G(Mt,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){function i(l){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i(l)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return p.default}}),e.default=void 0;var r=w(k),t=v(le),n=v(ae),o=v(Ne),a=E,s=tt,f=Q,p=v(Rt),g=v(Et),y=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function v(l){return l&&l.__esModule?l:{default:l}}function m(l){if(typeof WeakMap!="function")return null;var u=new WeakMap,h=new WeakMap;return(m=function(d){return d?h:u})(l)}function w(l,u){if(!u&&l&&l.__esModule)return l;if(l===null||i(l)!=="object"&&typeof l!="function")return{default:l};var h=m(u);if(h&&h.has(l))return h.get(l);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in l)if(b!=="default"&&Object.prototype.hasOwnProperty.call(l,b)){var z=d?Object.getOwnPropertyDescriptor(l,b):null;z&&(z.get||z.set)?Object.defineProperty(c,b,z):c[b]=l[b]}return c.default=l,h&&h.set(l,c),c}function S(){return S=Object.assign||function(l){for(var u=1;u=0)&&Object.prototype.propertyIsEnumerable.call(l,c)&&(h[c]=l[c])}return h}function R(l,u){if(l==null)return{};var h={},c=Object.keys(l),d,b;for(b=0;b=0)&&(h[d]=l[d]);return h}function D(l,u){var h=Object.keys(l);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(l);u&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(l,d).enumerable})),h.push.apply(h,c)}return h}function x(l){for(var u=1;ua in o?Yu(o,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[a]=s,se=(o,a)=>{for(var s in a||(a={}))su.call(a,s)&&Vs(o,s,a[s]);if($o)for(var s of $o(a))lu.call(a,s)&&Vs(o,s,a[s]);return o},we=(o,a)=>Xu(o,Qu(a));var fr=(o,a)=>{var s={};for(var c in o)su.call(o,c)&&a.indexOf(c)<0&&(s[c]=o[c]);if(o!=null&&$o)for(var c of $o(o))a.indexOf(c)<0&&lu.call(o,c)&&(s[c]=o[c]);return s};var er=(o,a,s)=>(Vs(o,typeof a!="symbol"?a+"":a,s),s),Ws=(o,a,s)=>{if(!a.has(o))throw TypeError("Cannot "+s)};var _e=(o,a,s)=>(Ws(o,a,"read from private field"),s?s.call(o):a.get(o)),We=(o,a,s)=>{if(a.has(o))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(o):a.set(o,s)},Ne=(o,a,s,c)=>(Ws(o,a,"write to private field"),c?c.call(o,s):a.set(o,s),s);var wo=(o,a,s,c)=>({set _(f){Ne(o,a,f,s)},get _(){return _e(o,a,c)}}),st=(o,a,s)=>(Ws(o,a,"access private method"),s);var xt=(o,a,s)=>new Promise((c,f)=>{var d=S=>{try{_(s.next(S))}catch(b){f(b)}},y=S=>{try{_(s.throw(S))}catch(b){f(b)}},_=S=>S.done?c(S.value):Promise.resolve(S.value).then(d,y);_((s=s.apply(o,a)).next())});import{_ as _objectWithoutPropertiesLoose$9,a as _extends$f,h as hoistNonReactStatics,r as reactIsExports,c as createStyles,j as jsxRuntimeExports,C as ConfigProvider,A as App$1,b as classnamesExports,R as ResizeObserver_es,d as json2mq_1,e as _setPrototypeOf$8,f as _assertThisInitialized$6,B as Badge,T as Tag$1,g as classNames,i as Button,k as Tooltip,l as _Popconfirm,M as Modal,m as message,P as PlusOutlined,D as DeleteOutlined,E as ExclamationCircleOutlined,n as Card,o as DownOutlined,S as Space,p as Drawer,q as dayjs_minExports,s as Select,I as Input,t as InputNumber,u as Switch,v as Checkbox,w as Radio,x as DatePicker,y as _Rate,z as Slider$1,F as dayjs,G as Form,H as CopyOutlined,J as Row,K as Col,Q as QuestionCircleOutlined,L as Typography,N as _Popover,O as LoadingOutlined,U as InfoCircleFilled,V as Image$2,W as Table,X as Pagination,Y as useTheme,Z as ReadOutlined,$ as FullscreenExitOutlined,a0 as FullscreenOutlined,a1 as GithubOutlined,a2 as SearchOutlined,a3 as List,a4 as Segmented,a5 as useThemeMode,a6 as ErrorBoundary,a7 as SettingOutlined,a8 as notification,a9 as LockOutlined,aa as PoweroffOutlined,ab as Dropdown,ac as LeftOutlined,ad as RightOutlined,ae as RedoOutlined,af as CloseOutlined,ag as Breadcrumb,ah as Layout,ai as Spin,aj as Menu,ak as Result,al as Alert,am as UserOutlined,an as createGlobalStyle,ao as ThemeProvider}from"../antd-d487744a.js";import{r as reactExports,c as reactDomExports,g as getDefaultExportFromCjs,e as commonjsGlobal,a as React$4,f as getAugmentedNamespace,s as schedulerExports,u as useLocation,L as Link,h as useNavigate,m as matchRoutes,O as Outlet,N as Navigate,i as useLoaderData,j as useSearchParams,k as redirect,l as createHashRouter,n as RouterProvider}from"../react-f288da4a.js";function _mergeNamespaces(o,a){for(var s=0;sc[f]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const y of d.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function s(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(f){if(f.ep)return;f.ep=!0;const d=s(f);fetch(f.href,d)}})();var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(o){return this.listeners.add(o),this.onSubscribe(),()=>{this.listeners.delete(o),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},isServer=typeof window=="undefined"||"Deno"in window;function noop$7(){}function functionalUpdate(o,a){return typeof o=="function"?o(a):o}function isValidTimeout(o){return typeof o=="number"&&o>=0&&o!==1/0}function timeUntilStale(o,a){return Math.max(o+(a||0)-Date.now(),0)}function matchQuery(o,a){const{type:s="all",exact:c,fetchStatus:f,predicate:d,queryKey:y,stale:_}=o;if(y){if(c){if(a.queryHash!==hashQueryKeyByOptions(y,a.options))return!1}else if(!partialMatchKey(a.queryKey,y))return!1}if(s!=="all"){const S=a.isActive();if(s==="active"&&!S||s==="inactive"&&S)return!1}return!(typeof _=="boolean"&&a.isStale()!==_||typeof f!="undefined"&&f!==a.state.fetchStatus||d&&!d(a))}function matchMutation(o,a){const{exact:s,status:c,predicate:f,mutationKey:d}=o;if(d){if(!a.options.mutationKey)return!1;if(s){if(hashKey(a.options.mutationKey)!==hashKey(d))return!1}else if(!partialMatchKey(a.options.mutationKey,d))return!1}return!(c&&a.state.status!==c||f&&!f(a))}function hashQueryKeyByOptions(o,a){return((a==null?void 0:a.queryKeyHashFn)||hashKey)(o)}function hashKey(o){return JSON.stringify(o,(a,s)=>isPlainObject$5(s)?Object.keys(s).sort().reduce((c,f)=>(c[f]=s[f],c),{}):s)}function partialMatchKey(o,a){return o===a?!0:typeof o!=typeof a?!1:o&&a&&typeof o=="object"&&typeof a=="object"?!Object.keys(a).some(s=>!partialMatchKey(o[s],a[s])):!1}function replaceEqualDeep(o,a){if(o===a)return o;const s=isPlainArray(o)&&isPlainArray(a);if(s||isPlainObject$5(o)&&isPlainObject$5(a)){const c=s?o:Object.keys(o),f=c.length,d=s?a:Object.keys(a),y=d.length,_=s?[]:{};let S=0;for(let b=0;b{setTimeout(a,o)})}function replaceData(o,a,s){return typeof s.structuralSharing=="function"?s.structuralSharing(o,a):s.structuralSharing!==!1?replaceEqualDeep(o,a):a}function addToEnd(o,a,s=0){const c=[...o,a];return s&&c.length>s?c.slice(1):c}function addToStart(o,a,s=0){const c=[a,...o];return s&&c.length>s?c.slice(0,-1):c}var Bn,dn,xi,cu,FocusManager=(cu=class extends Subscribable{constructor(){super();We(this,Bn,void 0);We(this,dn,void 0);We(this,xi,void 0);Ne(this,xi,a=>{if(!isServer&&window.addEventListener){const s=()=>a();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){_e(this,dn)||this.setEventListener(_e(this,xi))}onUnsubscribe(){var a;this.hasListeners()||((a=_e(this,dn))==null||a.call(this),Ne(this,dn,void 0))}setEventListener(a){var s;Ne(this,xi,a),(s=_e(this,dn))==null||s.call(this),Ne(this,dn,a(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(a){_e(this,Bn)!==a&&(Ne(this,Bn,a),this.onFocus())}onFocus(){this.listeners.forEach(a=>{a()})}isFocused(){var a;return typeof _e(this,Bn)=="boolean"?_e(this,Bn):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Bn=new WeakMap,dn=new WeakMap,xi=new WeakMap,cu),focusManager=new FocusManager,Ei,hn,$i,fu,OnlineManager=(fu=class extends Subscribable{constructor(){super();We(this,Ei,!0);We(this,hn,void 0);We(this,$i,void 0);Ne(this,$i,a=>{if(!isServer&&window.addEventListener){const s=()=>a(!0),c=()=>a(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}})}onSubscribe(){_e(this,hn)||this.setEventListener(_e(this,$i))}onUnsubscribe(){var a;this.hasListeners()||((a=_e(this,hn))==null||a.call(this),Ne(this,hn,void 0))}setEventListener(a){var s;Ne(this,$i,a),(s=_e(this,hn))==null||s.call(this),Ne(this,hn,a(this.setOnline.bind(this)))}setOnline(a){_e(this,Ei)!==a&&(Ne(this,Ei,a),this.listeners.forEach(c=>{c(a)}))}isOnline(){return _e(this,Ei)}},Ei=new WeakMap,hn=new WeakMap,$i=new WeakMap,fu),onlineManager=new OnlineManager;function defaultRetryDelay(o){return Math.min(1e3*uu(2,o),3e4)}function canFetch(o){return(o!=null?o:"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class{constructor(o){this.revert=o==null?void 0:o.revert,this.silent=o==null?void 0:o.silent}};function isCancelledError(o){return o instanceof CancelledError}function createRetryer(o){let a=!1,s=0,c=!1,f,d,y;const _=new Promise((F,j)=>{d=F,y=j}),S=F=>{var j;c||(C(new CancelledError(F)),(j=o.abort)==null||j.call(o))},b=()=>{a=!0},$=()=>{a=!1},P=()=>!focusManager.isFocused()||o.networkMode!=="always"&&!onlineManager.isOnline(),T=F=>{var j;c||(c=!0,(j=o.onSuccess)==null||j.call(o,F),f==null||f(),d(F))},C=F=>{var j;c||(c=!0,(j=o.onError)==null||j.call(o,F),f==null||f(),y(F))},O=()=>new Promise(F=>{var j;f=I=>{const M=c||!P();return M&&F(I),M},(j=o.onPause)==null||j.call(o)}).then(()=>{var F;f=void 0,c||(F=o.onContinue)==null||F.call(o)}),A=()=>{if(c)return;let F;try{F=o.fn()}catch(j){F=Promise.reject(j)}Promise.resolve(F).then(T).catch(j=>{var z,H,G;if(c)return;const I=(z=o.retry)!=null?z:isServer?0:3,M=(H=o.retryDelay)!=null?H:defaultRetryDelay,L=typeof M=="function"?M(s,j):M,U=I===!0||typeof I=="number"&&s{if(P())return O()}).then(()=>{a?C(j):A()})})};return canFetch(o.networkMode)?A():O().then(A),{promise:_,cancel:S,continue:()=>(f==null?void 0:f())?_:Promise.resolve(),cancelRetry:b,continueRetry:$}}function createNotifyManager(){let o=[],a=0,s=T=>{T()},c=T=>{T()},f=T=>setTimeout(T,0);const d=T=>{f=T},y=T=>{let C;a++;try{C=T()}finally{a--,a||b()}return C},_=T=>{a?o.push(T):f(()=>{s(T)})},S=T=>(...C)=>{_(()=>{T(...C)})},b=()=>{const T=o;o=[],T.length&&f(()=>{c(()=>{T.forEach(C=>{s(C)})})})};return{batch:y,batchCalls:S,schedule:_,setNotifyFunction:T=>{s=T},setBatchNotifyFunction:T=>{c=T},setScheduler:d}}var notifyManager=createNotifyManager(),Hn,du,Removable=(du=class{constructor(){We(this,Hn,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Ne(this,Hn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(o){this.gcTime=Math.max(this.gcTime||0,o!=null?o:isServer?1/0:5*60*1e3)}clearGcTimeout(){_e(this,Hn)&&(clearTimeout(_e(this,Hn)),Ne(this,Hn,void 0))}},Hn=new WeakMap,du),wi,Pi,dr,pn,hr,Et,Sa,Gn,Ti,Po,xr,Wr,hu,Query=(hu=class extends Removable{constructor(a){super();We(this,Ti);We(this,xr);We(this,wi,void 0);We(this,Pi,void 0);We(this,dr,void 0);We(this,pn,void 0);We(this,hr,void 0);We(this,Et,void 0);We(this,Sa,void 0);We(this,Gn,void 0);Ne(this,Gn,!1),Ne(this,Sa,a.defaultOptions),st(this,Ti,Po).call(this,a.options),Ne(this,Et,[]),Ne(this,dr,a.cache),this.queryKey=a.queryKey,this.queryHash=a.queryHash,Ne(this,wi,a.state||getDefaultState$1(this.options)),this.state=_e(this,wi),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!_e(this,Et).length&&this.state.fetchStatus==="idle"&&_e(this,dr).remove(this)}setData(a,s){const c=replaceData(this.state.data,a,this.options);return st(this,xr,Wr).call(this,{data:c,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),c}setState(a,s){st(this,xr,Wr).call(this,{type:"setState",state:a,setStateOptions:s})}cancel(a){var c;const s=_e(this,pn);return(c=_e(this,hr))==null||c.cancel(a),s?s.then(noop$7).catch(noop$7):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_e(this,wi))}isActive(){return _e(this,Et).some(a=>a.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||_e(this,Et).some(a=>a.getCurrentResult().isStale)}isStaleByTime(a=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,a)}onFocus(){var s;const a=_e(this,Et).find(c=>c.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(s=_e(this,hr))==null||s.continue()}onOnline(){var s;const a=_e(this,Et).find(c=>c.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(s=_e(this,hr))==null||s.continue()}addObserver(a){_e(this,Et).includes(a)||(_e(this,Et).push(a),this.clearGcTimeout(),_e(this,dr).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){_e(this,Et).includes(a)&&(Ne(this,Et,_e(this,Et).filter(s=>s!==a)),_e(this,Et).length||(_e(this,hr)&&(_e(this,Gn)?_e(this,hr).cancel({revert:!0}):_e(this,hr).cancelRetry()),this.scheduleGc()),_e(this,dr).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return _e(this,Et).length}invalidate(){this.state.isInvalidated||st(this,xr,Wr).call(this,{type:"invalidate"})}fetch(a,s){var b,$,P,T;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(_e(this,pn))return(b=_e(this,hr))==null||b.continueRetry(),_e(this,pn)}if(a&&st(this,Ti,Po).call(this,a),!this.options.queryFn){const C=_e(this,Et).find(O=>O.options.queryFn);C&&st(this,Ti,Po).call(this,C.options)}const c=new AbortController,f={queryKey:this.queryKey,meta:this.meta},d=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(Ne(this,Gn,!0),c.signal)})};d(f);const y=()=>this.options.queryFn?(Ne(this,Gn,!1),this.options.persister?this.options.persister(this.options.queryFn,f,this):this.options.queryFn(f)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),_={fetchOptions:s,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:y};d(_),($=this.options.behavior)==null||$.onFetch(_,this),Ne(this,Pi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((P=_.fetchOptions)==null?void 0:P.meta))&&st(this,xr,Wr).call(this,{type:"fetch",meta:(T=_.fetchOptions)==null?void 0:T.meta});const S=C=>{var O,A,F,j;isCancelledError(C)&&C.silent||st(this,xr,Wr).call(this,{type:"error",error:C}),isCancelledError(C)||((A=(O=_e(this,dr).config).onError)==null||A.call(O,C,this),(j=(F=_e(this,dr).config).onSettled)==null||j.call(F,this.state.data,C,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Ne(this,hr,createRetryer({fn:_.fetchFn,abort:c.abort.bind(c),onSuccess:C=>{var O,A,F,j;if(typeof C=="undefined"){S(new Error(`${this.queryHash} data is undefined`));return}this.setData(C),(A=(O=_e(this,dr).config).onSuccess)==null||A.call(O,C,this),(j=(F=_e(this,dr).config).onSettled)==null||j.call(F,C,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:S,onFail:(C,O)=>{st(this,xr,Wr).call(this,{type:"failed",failureCount:C,error:O})},onPause:()=>{st(this,xr,Wr).call(this,{type:"pause"})},onContinue:()=>{st(this,xr,Wr).call(this,{type:"continue"})},retry:_.options.retry,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode})),Ne(this,pn,_e(this,hr).promise),_e(this,pn)}},wi=new WeakMap,Pi=new WeakMap,dr=new WeakMap,pn=new WeakMap,hr=new WeakMap,Et=new WeakMap,Sa=new WeakMap,Gn=new WeakMap,Ti=new WeakSet,Po=function(a){this.options=se(se({},_e(this,Sa)),a),this.updateGcTime(this.options.gcTime)},xr=new WeakSet,Wr=function(a){const s=c=>{var f,d;switch(a.type){case"failed":return we(se({},c),{fetchFailureCount:a.failureCount,fetchFailureReason:a.error});case"pause":return we(se({},c),{fetchStatus:"paused"});case"continue":return we(se({},c),{fetchStatus:"fetching"});case"fetch":return se(we(se({},c),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(f=a.meta)!=null?f:null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused"}),!c.dataUpdatedAt&&{error:null,status:"pending"});case"success":return se(we(se({},c),{data:a.data,dataUpdateCount:c.dataUpdateCount+1,dataUpdatedAt:(d=a.dataUpdatedAt)!=null?d:Date.now(),error:null,isInvalidated:!1,status:"success"}),!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const y=a.error;return isCancelledError(y)&&y.revert&&_e(this,Pi)?we(se({},_e(this,Pi)),{fetchStatus:"idle"}):we(se({},c),{error:y,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:y,fetchStatus:"idle",status:"error"});case"invalidate":return we(se({},c),{isInvalidated:!0});case"setState":return se(se({},c),a.state)}};this.state=s(this.state),notifyManager.batch(()=>{_e(this,Et).forEach(c=>{c.onQueryUpdate()}),_e(this,dr).notify({query:this,type:"updated",action:a})})},hu);function getDefaultState$1(o){const a=typeof o.initialData=="function"?o.initialData():o.initialData,s=typeof a!="undefined",c=s?typeof o.initialDataUpdatedAt=="function"?o.initialDataUpdatedAt():o.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:s?c!=null?c:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Ir,pu,QueryCache=(pu=class extends Subscribable{constructor(a={}){super();We(this,Ir,void 0);this.config=a,Ne(this,Ir,new Map)}build(a,s,c){var _;const f=s.queryKey,d=(_=s.queryHash)!=null?_:hashQueryKeyByOptions(f,s);let y=this.get(d);return y||(y=new Query({cache:this,queryKey:f,queryHash:d,options:a.defaultQueryOptions(s),state:c,defaultOptions:a.getQueryDefaults(f)}),this.add(y)),y}add(a){_e(this,Ir).has(a.queryHash)||(_e(this,Ir).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const s=_e(this,Ir).get(a.queryHash);s&&(a.destroy(),s===a&&_e(this,Ir).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return _e(this,Ir).get(a)}getAll(){return[..._e(this,Ir).values()]}find(a){const s=se({exact:!0},a);return this.getAll().find(c=>matchQuery(s,c))}findAll(a={}){const s=this.getAll();return Object.keys(a).length>0?s.filter(c=>matchQuery(a,c)):s}notify(a){notifyManager.batch(()=>{this.listeners.forEach(s=>{s(a)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Ir=new WeakMap,pu),Lr,xa,tr,Oi,Nr,fn,gu,Mutation=(gu=class extends Removable{constructor(a){super();We(this,Nr);We(this,Lr,void 0);We(this,xa,void 0);We(this,tr,void 0);We(this,Oi,void 0);this.mutationId=a.mutationId,Ne(this,xa,a.defaultOptions),Ne(this,tr,a.mutationCache),Ne(this,Lr,[]),this.state=a.state||getDefaultState(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=se(se({},_e(this,xa)),a),this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){_e(this,Lr).includes(a)||(_e(this,Lr).push(a),this.clearGcTimeout(),_e(this,tr).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){Ne(this,Lr,_e(this,Lr).filter(s=>s!==a)),this.scheduleGc(),_e(this,tr).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){_e(this,Lr).length||(this.state.status==="pending"?this.scheduleGc():_e(this,tr).remove(this))}continue(){var a,s;return(s=(a=_e(this,Oi))==null?void 0:a.continue())!=null?s:this.execute(this.state.variables)}execute(a){return xt(this,null,function*(){var f,d,y,_,S,b,$,P,T,C,O,A,F,j,I,M,L,U,z,H;const s=()=>{var G;return Ne(this,Oi,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(X,W)=>{st(this,Nr,fn).call(this,{type:"failed",failureCount:X,error:W})},onPause:()=>{st(this,Nr,fn).call(this,{type:"pause"})},onContinue:()=>{st(this,Nr,fn).call(this,{type:"continue"})},retry:(G=this.options.retry)!=null?G:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),_e(this,Oi).promise},c=this.state.status==="pending";try{if(!c){st(this,Nr,fn).call(this,{type:"pending",variables:a}),yield(d=(f=_e(this,tr).config).onMutate)==null?void 0:d.call(f,a,this);const X=yield(_=(y=this.options).onMutate)==null?void 0:_.call(y,a);X!==this.state.context&&st(this,Nr,fn).call(this,{type:"pending",context:X,variables:a})}const G=yield s();return yield(b=(S=_e(this,tr).config).onSuccess)==null?void 0:b.call(S,G,a,this.state.context,this),yield(P=($=this.options).onSuccess)==null?void 0:P.call($,G,a,this.state.context),yield(C=(T=_e(this,tr).config).onSettled)==null?void 0:C.call(T,G,null,this.state.variables,this.state.context,this),yield(A=(O=this.options).onSettled)==null?void 0:A.call(O,G,null,a,this.state.context),st(this,Nr,fn).call(this,{type:"success",data:G}),G}catch(G){try{throw yield(j=(F=_e(this,tr).config).onError)==null?void 0:j.call(F,G,a,this.state.context,this),yield(M=(I=this.options).onError)==null?void 0:M.call(I,G,a,this.state.context),yield(U=(L=_e(this,tr).config).onSettled)==null?void 0:U.call(L,void 0,G,this.state.variables,this.state.context,this),yield(H=(z=this.options).onSettled)==null?void 0:H.call(z,void 0,G,a,this.state.context),G}finally{st(this,Nr,fn).call(this,{type:"error",error:G})}}})}},Lr=new WeakMap,xa=new WeakMap,tr=new WeakMap,Oi=new WeakMap,Nr=new WeakSet,fn=function(a){const s=c=>{switch(a.type){case"failed":return we(se({},c),{failureCount:a.failureCount,failureReason:a.error});case"pause":return we(se({},c),{isPaused:!0});case"continue":return we(se({},c),{isPaused:!1});case"pending":return we(se({},c),{context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"pending",variables:a.variables,submittedAt:Date.now()});case"success":return we(se({},c),{data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return we(se({},c),{data:void 0,error:a.error,failureCount:c.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"})}};this.state=s(this.state),notifyManager.batch(()=>{_e(this,Lr).forEach(c=>{c.onMutationUpdate(a)}),_e(this,tr).notify({mutation:this,type:"updated",action:a})})},gu);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pr,Ea,Vn,mu,MutationCache=(mu=class extends Subscribable{constructor(a={}){super();We(this,pr,void 0);We(this,Ea,void 0);We(this,Vn,void 0);this.config=a,Ne(this,pr,[]),Ne(this,Ea,0)}build(a,s,c){const f=new Mutation({mutationCache:this,mutationId:++wo(this,Ea)._,options:a.defaultMutationOptions(s),state:c});return this.add(f),f}add(a){_e(this,pr).push(a),this.notify({type:"added",mutation:a})}remove(a){Ne(this,pr,_e(this,pr).filter(s=>s!==a)),this.notify({type:"removed",mutation:a})}clear(){notifyManager.batch(()=>{_e(this,pr).forEach(a=>{this.remove(a)})})}getAll(){return _e(this,pr)}find(a){const s=se({exact:!0},a);return _e(this,pr).find(c=>matchMutation(s,c))}findAll(a={}){return _e(this,pr).filter(s=>matchMutation(a,s))}notify(a){notifyManager.batch(()=>{this.listeners.forEach(s=>{s(a)})})}resumePausedMutations(){var a;return Ne(this,Vn,((a=_e(this,Vn))!=null?a:Promise.resolve()).then(()=>{const s=_e(this,pr).filter(c=>c.state.isPaused);return notifyManager.batch(()=>s.reduce((c,f)=>c.then(()=>f.continue().catch(noop$7)),Promise.resolve()))}).then(()=>{Ne(this,Vn,void 0)})),_e(this,Vn)}},pr=new WeakMap,Ea=new WeakMap,Vn=new WeakMap,mu);function infiniteQueryBehavior(o){return{onFetch:(a,s)=>{const c=()=>xt(this,null,function*(){var O,A,F,j,I,M;const f=a.options,d=(F=(A=(O=a.fetchOptions)==null?void 0:O.meta)==null?void 0:A.fetchMore)==null?void 0:F.direction,y=((j=a.state.data)==null?void 0:j.pages)||[],_=((I=a.state.data)==null?void 0:I.pageParams)||[],S={pages:[],pageParams:[]};let b=!1;const $=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(a.signal.aborted?b=!0:a.signal.addEventListener("abort",()=>{b=!0}),a.signal)})},P=a.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${a.options.queryHash}'`))),T=(L,U,z)=>xt(this,null,function*(){if(b)return Promise.reject();if(U==null&&L.pages.length)return Promise.resolve(L);const H={queryKey:a.queryKey,pageParam:U,direction:z?"backward":"forward",meta:a.options.meta};$(H);const G=yield P(H),{maxPages:X}=a.options,W=z?addToStart:addToEnd;return{pages:W(L.pages,G,X),pageParams:W(L.pageParams,U,X)}});let C;if(d&&y.length){const L=d==="backward",U=L?getPreviousPageParam:getNextPageParam,z={pages:y,pageParams:_},H=U(f,z);C=yield T(z,H,L)}else{C=yield T(S,(M=_[0])!=null?M:f.initialPageParam);const L=o!=null?o:y.length;for(let U=1;U{var f,d;return(d=(f=a.options).persister)==null?void 0:d.call(f,c,{queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},s)}:a.fetchFn=c}}}function getNextPageParam(o,{pages:a,pageParams:s}){const c=a.length-1;return o.getNextPageParam(a[c],a,s[c],s)}function getPreviousPageParam(o,{pages:a,pageParams:s}){var c;return(c=o.getPreviousPageParam)==null?void 0:c.call(o,a[0],a,s[0],s)}var vt,gn,mn,Ci,Ri,yn,Ai,Mi,yu,QueryClient=(yu=class{constructor(o={}){We(this,vt,void 0);We(this,gn,void 0);We(this,mn,void 0);We(this,Ci,void 0);We(this,Ri,void 0);We(this,yn,void 0);We(this,Ai,void 0);We(this,Mi,void 0);Ne(this,vt,o.queryCache||new QueryCache),Ne(this,gn,o.mutationCache||new MutationCache),Ne(this,mn,o.defaultOptions||{}),Ne(this,Ci,new Map),Ne(this,Ri,new Map),Ne(this,yn,0)}mount(){wo(this,yn)._++,_e(this,yn)===1&&(Ne(this,Ai,focusManager.subscribe(()=>{focusManager.isFocused()&&(this.resumePausedMutations(),_e(this,vt).onFocus())})),Ne(this,Mi,onlineManager.subscribe(()=>{onlineManager.isOnline()&&(this.resumePausedMutations(),_e(this,vt).onOnline())})))}unmount(){var o,a;wo(this,yn)._--,_e(this,yn)===0&&((o=_e(this,Ai))==null||o.call(this),Ne(this,Ai,void 0),(a=_e(this,Mi))==null||a.call(this),Ne(this,Mi,void 0))}isFetching(o){return _e(this,vt).findAll(we(se({},o),{fetchStatus:"fetching"})).length}isMutating(o){return _e(this,gn).findAll(we(se({},o),{status:"pending"})).length}getQueryData(o){var a;return(a=_e(this,vt).find({queryKey:o}))==null?void 0:a.state.data}ensureQueryData(o){const a=this.getQueryData(o.queryKey);return a!==void 0?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(o){return this.getQueryCache().findAll(o).map(({queryKey:a,state:s})=>{const c=s.data;return[a,c]})}setQueryData(o,a,s){const c=_e(this,vt).find({queryKey:o}),f=c==null?void 0:c.state.data,d=functionalUpdate(a,f);if(typeof d=="undefined")return;const y=this.defaultQueryOptions({queryKey:o});return _e(this,vt).build(this,y).setData(d,we(se({},s),{manual:!0}))}setQueriesData(o,a,s){return notifyManager.batch(()=>this.getQueryCache().findAll(o).map(({queryKey:c})=>[c,this.setQueryData(c,a,s)]))}getQueryState(o){var a;return(a=_e(this,vt).find({queryKey:o}))==null?void 0:a.state}removeQueries(o){const a=_e(this,vt);notifyManager.batch(()=>{a.findAll(o).forEach(s=>{a.remove(s)})})}resetQueries(o,a){const s=_e(this,vt),c=se({type:"active"},o);return notifyManager.batch(()=>(s.findAll(o).forEach(f=>{f.reset()}),this.refetchQueries(c,a)))}cancelQueries(o={},a={}){const s=se({revert:!0},a),c=notifyManager.batch(()=>_e(this,vt).findAll(o).map(f=>f.cancel(s)));return Promise.all(c).then(noop$7).catch(noop$7)}invalidateQueries(o={},a={}){return notifyManager.batch(()=>{var c,f;if(_e(this,vt).findAll(o).forEach(d=>{d.invalidate()}),o.refetchType==="none")return Promise.resolve();const s=we(se({},o),{type:(f=(c=o.refetchType)!=null?c:o.type)!=null?f:"active"});return this.refetchQueries(s,a)})}refetchQueries(o={},a){var f;const s=we(se({},a),{cancelRefetch:(f=a==null?void 0:a.cancelRefetch)!=null?f:!0}),c=notifyManager.batch(()=>_e(this,vt).findAll(o).filter(d=>!d.isDisabled()).map(d=>{let y=d.fetch(void 0,s);return s.throwOnError||(y=y.catch(noop$7)),d.state.fetchStatus==="paused"?Promise.resolve():y}));return Promise.all(c).then(noop$7)}fetchQuery(o){const a=this.defaultQueryOptions(o);typeof a.retry=="undefined"&&(a.retry=!1);const s=_e(this,vt).build(this,a);return s.isStaleByTime(a.staleTime)?s.fetch(a):Promise.resolve(s.state.data)}prefetchQuery(o){return this.fetchQuery(o).then(noop$7).catch(noop$7)}fetchInfiniteQuery(o){return o.behavior=infiniteQueryBehavior(o.pages),this.fetchQuery(o)}prefetchInfiniteQuery(o){return this.fetchInfiniteQuery(o).then(noop$7).catch(noop$7)}resumePausedMutations(){return _e(this,gn).resumePausedMutations()}getQueryCache(){return _e(this,vt)}getMutationCache(){return _e(this,gn)}getDefaultOptions(){return _e(this,mn)}setDefaultOptions(o){Ne(this,mn,o)}setQueryDefaults(o,a){_e(this,Ci).set(hashKey(o),{queryKey:o,defaultOptions:a})}getQueryDefaults(o){const a=[..._e(this,Ci).values()];let s={};return a.forEach(c=>{partialMatchKey(o,c.queryKey)&&(s=se(se({},s),c.defaultOptions))}),s}setMutationDefaults(o,a){_e(this,Ri).set(hashKey(o),{mutationKey:o,defaultOptions:a})}getMutationDefaults(o){const a=[..._e(this,Ri).values()];let s={};return a.forEach(c=>{partialMatchKey(o,c.mutationKey)&&(s=se(se({},s),c.defaultOptions))}),s}defaultQueryOptions(o){if(o!=null&&o._defaulted)return o;const a=we(se(se(se({},_e(this,mn).queries),(o==null?void 0:o.queryKey)&&this.getQueryDefaults(o.queryKey)),o),{_defaulted:!0});return a.queryHash||(a.queryHash=hashQueryKeyByOptions(a.queryKey,a)),typeof a.refetchOnReconnect=="undefined"&&(a.refetchOnReconnect=a.networkMode!=="always"),typeof a.throwOnError=="undefined"&&(a.throwOnError=!!a.suspense),typeof a.networkMode=="undefined"&&a.persister&&(a.networkMode="offlineFirst"),a}defaultMutationOptions(o){return o!=null&&o._defaulted?o:we(se(se(se({},_e(this,mn).mutations),(o==null?void 0:o.mutationKey)&&this.getMutationDefaults(o.mutationKey)),o),{_defaulted:!0})}clear(){_e(this,vt).clear(),_e(this,gn).clear()}},vt=new WeakMap,gn=new WeakMap,mn=new WeakMap,Ci=new WeakMap,Ri=new WeakMap,yn=new WeakMap,Ai=new WeakMap,Mi=new WeakMap,yu),vn,qr,rr,Kr,Fi,To,$a,Ks,vu,MutationObserver$1=(vu=class extends Subscribable{constructor(s,c){super();We(this,Fi);We(this,$a);We(this,vn,void 0);We(this,qr,void 0);We(this,rr,void 0);We(this,Kr,void 0);Ne(this,qr,void 0),Ne(this,vn,s),this.setOptions(c),this.bindMethods(),st(this,Fi,To).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var f;const c=this.options;this.options=_e(this,vn).defaultMutationOptions(s),shallowEqualObjects(c,this.options)||_e(this,vn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_e(this,rr),observer:this}),(f=_e(this,rr))==null||f.setOptions(this.options),c!=null&&c.mutationKey&&this.options.mutationKey&&hashKey(c.mutationKey)!==hashKey(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var s;this.hasListeners()||(s=_e(this,rr))==null||s.removeObserver(this)}onMutationUpdate(s){st(this,Fi,To).call(this),st(this,$a,Ks).call(this,s)}getCurrentResult(){return _e(this,qr)}reset(){var s;(s=_e(this,rr))==null||s.removeObserver(this),Ne(this,rr,void 0),st(this,Fi,To).call(this),st(this,$a,Ks).call(this)}mutate(s,c){var f;return Ne(this,Kr,c),(f=_e(this,rr))==null||f.removeObserver(this),Ne(this,rr,_e(this,vn).getMutationCache().build(_e(this,vn),this.options)),_e(this,rr).addObserver(this),_e(this,rr).execute(s)}},vn=new WeakMap,qr=new WeakMap,rr=new WeakMap,Kr=new WeakMap,Fi=new WeakSet,To=function(){var c,f;const s=(f=(c=_e(this,rr))==null?void 0:c.state)!=null?f:getDefaultState();Ne(this,qr,we(se({},s),{isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset}))},$a=new WeakSet,Ks=function(s){notifyManager.batch(()=>{var c,f,d,y,_,S,b,$;if(_e(this,Kr)&&this.hasListeners()){const P=_e(this,qr).variables,T=_e(this,qr).context;(s==null?void 0:s.type)==="success"?((f=(c=_e(this,Kr)).onSuccess)==null||f.call(c,s.data,P,T),(y=(d=_e(this,Kr)).onSettled)==null||y.call(d,s.data,null,P,T)):(s==null?void 0:s.type)==="error"&&((S=(_=_e(this,Kr)).onError)==null||S.call(_,s.error,P,T),($=(b=_e(this,Kr)).onSettled)==null||$.call(b,void 0,s.error,P,T))}this.listeners.forEach(P=>{P(_e(this,qr))})})},vu),QueryClientContext=reactExports.createContext(void 0),useQueryClient=o=>{const a=reactExports.useContext(QueryClientContext);if(o)return o;if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},QueryClientProvider=({client:o,children:a})=>(reactExports.useEffect(()=>(o.mount(),()=>{o.unmount()}),[o]),reactExports.createElement(QueryClientContext.Provider,{value:o},a));function shouldThrowError(o,a){return typeof o=="function"?o(...a):!!o}function useMutation(o,a){const s=useQueryClient(a),[c]=reactExports.useState(()=>new MutationObserver$1(s,o));reactExports.useEffect(()=>{c.setOptions(o)},[c,o]);const f=reactExports.useSyncExternalStore(reactExports.useCallback(y=>c.subscribe(notifyManager.batchCalls(y)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d=reactExports.useCallback((y,_)=>{c.mutate(y,_).catch(noop$6)},[c]);if(f.error&&shouldThrowError(c.options.throwOnError,[f.error]))throw f.error;return we(se({},f),{mutate:d,mutateAsync:f.mutate})}function noop$6(){}const scriptRel="modulepreload",assetsURL=function(o){return"/react-antd-admin-pnpm/"+o},seen={},__vitePreload=function(a,s,c){if(!s||s.length===0)return a();const f=document.getElementsByTagName("link");return Promise.all(s.map(d=>{if(d=assetsURL(d),d in seen)return;seen[d]=!0;const y=d.endsWith(".css"),_=y?'[rel="stylesheet"]':"";if(!!c)for(let $=f.length-1;$>=0;$--){const P=f[$];if(P.href===d&&(!y||P.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${_}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":scriptRel,y||(b.as="script",b.crossOrigin=""),b.href=d,document.head.appendChild(b),y)return new Promise(($,P)=>{b.addEventListener("load",$),b.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>a()).catch(d=>{const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=d,window.dispatchEvent(y),!y.defaultPrevented)throw d})};var ReactQueryDevtools2=function(){return null},client={},createRoot,m$1=reactDomExports;createRoot=client.createRoot=m$1.createRoot,client.hydrateRoot=m$1.hydrateRoot;var shim={exports:{}},useSyncExternalStoreShim_production_min={};/** +var Yu=Object.defineProperty,Xu=Object.defineProperties;var Qu=Object.getOwnPropertyDescriptors;var $o=Object.getOwnPropertySymbols;var su=Object.prototype.hasOwnProperty,lu=Object.prototype.propertyIsEnumerable;var uu=Math.pow,Vs=(o,a,s)=>a in o?Yu(o,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[a]=s,se=(o,a)=>{for(var s in a||(a={}))su.call(a,s)&&Vs(o,s,a[s]);if($o)for(var s of $o(a))lu.call(a,s)&&Vs(o,s,a[s]);return o},$e=(o,a)=>Xu(o,Qu(a));var er=(o,a)=>{var s={};for(var c in o)su.call(o,c)&&a.indexOf(c)<0&&(s[c]=o[c]);if(o!=null&&$o)for(var c of $o(o))a.indexOf(c)<0&&lu.call(o,c)&&(s[c]=o[c]);return s};var tr=(o,a,s)=>(Vs(o,typeof a!="symbol"?a+"":a,s),s),Ws=(o,a,s)=>{if(!a.has(o))throw TypeError("Cannot "+s)};var _e=(o,a,s)=>(Ws(o,a,"read from private field"),s?s.call(o):a.get(o)),We=(o,a,s)=>{if(a.has(o))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(o):a.set(o,s)},Ne=(o,a,s,c)=>(Ws(o,a,"write to private field"),c?c.call(o,s):a.set(o,s),s);var wo=(o,a,s,c)=>({set _(f){Ne(o,a,f,s)},get _(){return _e(o,a,c)}}),st=(o,a,s)=>(Ws(o,a,"access private method"),s);var xt=(o,a,s)=>new Promise((c,f)=>{var d=S=>{try{_(s.next(S))}catch(b){f(b)}},y=S=>{try{_(s.throw(S))}catch(b){f(b)}},_=S=>S.done?c(S.value):Promise.resolve(S.value).then(d,y);_((s=s.apply(o,a)).next())});import{_ as _objectWithoutPropertiesLoose$9,a as _extends$f,h as hoistNonReactStatics,r as reactIsExports,c as createStyles,j as jsxRuntimeExports,C as ConfigProvider,A as App$1,b as classnamesExports,R as ResizeObserver_es,d as json2mq_1,e as _setPrototypeOf$8,f as _assertThisInitialized$6,B as Badge,T as Tag$1,g as classNames,i as Button,k as Tooltip,l as _Popconfirm,M as Modal,m as message,P as PlusOutlined,D as DeleteOutlined,E as ExclamationCircleOutlined,n as Card,o as DownOutlined,S as Space,p as Drawer,q as dayjs_minExports,s as Select,I as Input,t as InputNumber,u as Switch,v as Checkbox,w as Radio,x as DatePicker,y as _Rate,z as Slider$1,F as dayjs,G as Form,H as CopyOutlined,J as Row,K as Col,Q as QuestionCircleOutlined,L as Typography,N as _Popover,O as LoadingOutlined,U as InfoCircleFilled,V as Image$2,W as Table,X as Pagination,Y as useTheme,Z as ReadOutlined,$ as FullscreenExitOutlined,a0 as FullscreenOutlined,a1 as GithubOutlined,a2 as SearchOutlined,a3 as List,a4 as Segmented,a5 as useThemeMode,a6 as ErrorBoundary,a7 as SettingOutlined,a8 as notification,a9 as LockOutlined,aa as PoweroffOutlined,ab as Dropdown,ac as LeftOutlined,ad as RightOutlined,ae as RedoOutlined,af as CloseOutlined,ag as Breadcrumb,ah as Layout,ai as Spin,aj as Menu,ak as Result,al as Alert,am as UserOutlined,an as createGlobalStyle,ao as ThemeProvider}from"../antd-66264537.js";import{r as reactExports,c as reactDomExports,g as getDefaultExportFromCjs,e as commonjsGlobal,a as React$4,f as getAugmentedNamespace,s as schedulerExports,u as useLocation,L as Link,h as useNavigate,m as matchRoutes,O as Outlet,N as Navigate,i as useLoaderData,j as useSearchParams,k as redirect,l as createHashRouter,n as RouterProvider}from"../react-f288da4a.js";function _mergeNamespaces(o,a){for(var s=0;sc[f]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const y of d.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function s(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(f){if(f.ep)return;f.ep=!0;const d=s(f);fetch(f.href,d)}})();var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(o){return this.listeners.add(o),this.onSubscribe(),()=>{this.listeners.delete(o),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},isServer=typeof window=="undefined"||"Deno"in window;function noop$7(){}function functionalUpdate(o,a){return typeof o=="function"?o(a):o}function isValidTimeout(o){return typeof o=="number"&&o>=0&&o!==1/0}function timeUntilStale(o,a){return Math.max(o+(a||0)-Date.now(),0)}function matchQuery(o,a){const{type:s="all",exact:c,fetchStatus:f,predicate:d,queryKey:y,stale:_}=o;if(y){if(c){if(a.queryHash!==hashQueryKeyByOptions(y,a.options))return!1}else if(!partialMatchKey(a.queryKey,y))return!1}if(s!=="all"){const S=a.isActive();if(s==="active"&&!S||s==="inactive"&&S)return!1}return!(typeof _=="boolean"&&a.isStale()!==_||typeof f!="undefined"&&f!==a.state.fetchStatus||d&&!d(a))}function matchMutation(o,a){const{exact:s,status:c,predicate:f,mutationKey:d}=o;if(d){if(!a.options.mutationKey)return!1;if(s){if(hashKey(a.options.mutationKey)!==hashKey(d))return!1}else if(!partialMatchKey(a.options.mutationKey,d))return!1}return!(c&&a.state.status!==c||f&&!f(a))}function hashQueryKeyByOptions(o,a){return((a==null?void 0:a.queryKeyHashFn)||hashKey)(o)}function hashKey(o){return JSON.stringify(o,(a,s)=>isPlainObject$5(s)?Object.keys(s).sort().reduce((c,f)=>(c[f]=s[f],c),{}):s)}function partialMatchKey(o,a){return o===a?!0:typeof o!=typeof a?!1:o&&a&&typeof o=="object"&&typeof a=="object"?!Object.keys(a).some(s=>!partialMatchKey(o[s],a[s])):!1}function replaceEqualDeep(o,a){if(o===a)return o;const s=isPlainArray(o)&&isPlainArray(a);if(s||isPlainObject$5(o)&&isPlainObject$5(a)){const c=s?o:Object.keys(o),f=c.length,d=s?a:Object.keys(a),y=d.length,_=s?[]:{};let S=0;for(let b=0;b{setTimeout(a,o)})}function replaceData(o,a,s){return typeof s.structuralSharing=="function"?s.structuralSharing(o,a):s.structuralSharing!==!1?replaceEqualDeep(o,a):a}function addToEnd(o,a,s=0){const c=[...o,a];return s&&c.length>s?c.slice(1):c}function addToStart(o,a,s=0){const c=[a,...o];return s&&c.length>s?c.slice(0,-1):c}var Bn,dn,xi,cu,FocusManager=(cu=class extends Subscribable{constructor(){super();We(this,Bn,void 0);We(this,dn,void 0);We(this,xi,void 0);Ne(this,xi,a=>{if(!isServer&&window.addEventListener){const s=()=>a();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){_e(this,dn)||this.setEventListener(_e(this,xi))}onUnsubscribe(){var a;this.hasListeners()||((a=_e(this,dn))==null||a.call(this),Ne(this,dn,void 0))}setEventListener(a){var s;Ne(this,xi,a),(s=_e(this,dn))==null||s.call(this),Ne(this,dn,a(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(a){_e(this,Bn)!==a&&(Ne(this,Bn,a),this.onFocus())}onFocus(){this.listeners.forEach(a=>{a()})}isFocused(){var a;return typeof _e(this,Bn)=="boolean"?_e(this,Bn):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Bn=new WeakMap,dn=new WeakMap,xi=new WeakMap,cu),focusManager=new FocusManager,Ei,hn,$i,fu,OnlineManager=(fu=class extends Subscribable{constructor(){super();We(this,Ei,!0);We(this,hn,void 0);We(this,$i,void 0);Ne(this,$i,a=>{if(!isServer&&window.addEventListener){const s=()=>a(!0),c=()=>a(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}})}onSubscribe(){_e(this,hn)||this.setEventListener(_e(this,$i))}onUnsubscribe(){var a;this.hasListeners()||((a=_e(this,hn))==null||a.call(this),Ne(this,hn,void 0))}setEventListener(a){var s;Ne(this,$i,a),(s=_e(this,hn))==null||s.call(this),Ne(this,hn,a(this.setOnline.bind(this)))}setOnline(a){_e(this,Ei)!==a&&(Ne(this,Ei,a),this.listeners.forEach(c=>{c(a)}))}isOnline(){return _e(this,Ei)}},Ei=new WeakMap,hn=new WeakMap,$i=new WeakMap,fu),onlineManager=new OnlineManager;function defaultRetryDelay(o){return Math.min(1e3*uu(2,o),3e4)}function canFetch(o){return(o!=null?o:"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class{constructor(o){this.revert=o==null?void 0:o.revert,this.silent=o==null?void 0:o.silent}};function isCancelledError(o){return o instanceof CancelledError}function createRetryer(o){let a=!1,s=0,c=!1,f,d,y;const _=new Promise((F,j)=>{d=F,y=j}),S=F=>{var j;c||(C(new CancelledError(F)),(j=o.abort)==null||j.call(o))},b=()=>{a=!0},$=()=>{a=!1},P=()=>!focusManager.isFocused()||o.networkMode!=="always"&&!onlineManager.isOnline(),T=F=>{var j;c||(c=!0,(j=o.onSuccess)==null||j.call(o,F),f==null||f(),d(F))},C=F=>{var j;c||(c=!0,(j=o.onError)==null||j.call(o,F),f==null||f(),y(F))},O=()=>new Promise(F=>{var j;f=L=>{const M=c||!P();return M&&F(L),M},(j=o.onPause)==null||j.call(o)}).then(()=>{var F;f=void 0,c||(F=o.onContinue)==null||F.call(o)}),A=()=>{if(c)return;let F;try{F=o.fn()}catch(j){F=Promise.reject(j)}Promise.resolve(F).then(T).catch(j=>{var z,H,G;if(c)return;const L=(z=o.retry)!=null?z:isServer?0:3,M=(H=o.retryDelay)!=null?H:defaultRetryDelay,I=typeof M=="function"?M(s,j):M,U=L===!0||typeof L=="number"&&s{if(P())return O()}).then(()=>{a?C(j):A()})})};return canFetch(o.networkMode)?A():O().then(A),{promise:_,cancel:S,continue:()=>(f==null?void 0:f())?_:Promise.resolve(),cancelRetry:b,continueRetry:$}}function createNotifyManager(){let o=[],a=0,s=T=>{T()},c=T=>{T()},f=T=>setTimeout(T,0);const d=T=>{f=T},y=T=>{let C;a++;try{C=T()}finally{a--,a||b()}return C},_=T=>{a?o.push(T):f(()=>{s(T)})},S=T=>(...C)=>{_(()=>{T(...C)})},b=()=>{const T=o;o=[],T.length&&f(()=>{c(()=>{T.forEach(C=>{s(C)})})})};return{batch:y,batchCalls:S,schedule:_,setNotifyFunction:T=>{s=T},setBatchNotifyFunction:T=>{c=T},setScheduler:d}}var notifyManager=createNotifyManager(),Hn,du,Removable=(du=class{constructor(){We(this,Hn,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Ne(this,Hn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(o){this.gcTime=Math.max(this.gcTime||0,o!=null?o:isServer?1/0:5*60*1e3)}clearGcTimeout(){_e(this,Hn)&&(clearTimeout(_e(this,Hn)),Ne(this,Hn,void 0))}},Hn=new WeakMap,du),wi,Pi,dr,pn,hr,Et,Sa,Gn,Ti,Po,xr,Wr,hu,Query=(hu=class extends Removable{constructor(a){super();We(this,Ti);We(this,xr);We(this,wi,void 0);We(this,Pi,void 0);We(this,dr,void 0);We(this,pn,void 0);We(this,hr,void 0);We(this,Et,void 0);We(this,Sa,void 0);We(this,Gn,void 0);Ne(this,Gn,!1),Ne(this,Sa,a.defaultOptions),st(this,Ti,Po).call(this,a.options),Ne(this,Et,[]),Ne(this,dr,a.cache),this.queryKey=a.queryKey,this.queryHash=a.queryHash,Ne(this,wi,a.state||getDefaultState$1(this.options)),this.state=_e(this,wi),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!_e(this,Et).length&&this.state.fetchStatus==="idle"&&_e(this,dr).remove(this)}setData(a,s){const c=replaceData(this.state.data,a,this.options);return st(this,xr,Wr).call(this,{data:c,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),c}setState(a,s){st(this,xr,Wr).call(this,{type:"setState",state:a,setStateOptions:s})}cancel(a){var c;const s=_e(this,pn);return(c=_e(this,hr))==null||c.cancel(a),s?s.then(noop$7).catch(noop$7):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_e(this,wi))}isActive(){return _e(this,Et).some(a=>a.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||_e(this,Et).some(a=>a.getCurrentResult().isStale)}isStaleByTime(a=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,a)}onFocus(){var s;const a=_e(this,Et).find(c=>c.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(s=_e(this,hr))==null||s.continue()}onOnline(){var s;const a=_e(this,Et).find(c=>c.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(s=_e(this,hr))==null||s.continue()}addObserver(a){_e(this,Et).includes(a)||(_e(this,Et).push(a),this.clearGcTimeout(),_e(this,dr).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){_e(this,Et).includes(a)&&(Ne(this,Et,_e(this,Et).filter(s=>s!==a)),_e(this,Et).length||(_e(this,hr)&&(_e(this,Gn)?_e(this,hr).cancel({revert:!0}):_e(this,hr).cancelRetry()),this.scheduleGc()),_e(this,dr).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return _e(this,Et).length}invalidate(){this.state.isInvalidated||st(this,xr,Wr).call(this,{type:"invalidate"})}fetch(a,s){var b,$,P,T;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(_e(this,pn))return(b=_e(this,hr))==null||b.continueRetry(),_e(this,pn)}if(a&&st(this,Ti,Po).call(this,a),!this.options.queryFn){const C=_e(this,Et).find(O=>O.options.queryFn);C&&st(this,Ti,Po).call(this,C.options)}const c=new AbortController,f={queryKey:this.queryKey,meta:this.meta},d=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(Ne(this,Gn,!0),c.signal)})};d(f);const y=()=>this.options.queryFn?(Ne(this,Gn,!1),this.options.persister?this.options.persister(this.options.queryFn,f,this):this.options.queryFn(f)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),_={fetchOptions:s,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:y};d(_),($=this.options.behavior)==null||$.onFetch(_,this),Ne(this,Pi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((P=_.fetchOptions)==null?void 0:P.meta))&&st(this,xr,Wr).call(this,{type:"fetch",meta:(T=_.fetchOptions)==null?void 0:T.meta});const S=C=>{var O,A,F,j;isCancelledError(C)&&C.silent||st(this,xr,Wr).call(this,{type:"error",error:C}),isCancelledError(C)||((A=(O=_e(this,dr).config).onError)==null||A.call(O,C,this),(j=(F=_e(this,dr).config).onSettled)==null||j.call(F,this.state.data,C,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Ne(this,hr,createRetryer({fn:_.fetchFn,abort:c.abort.bind(c),onSuccess:C=>{var O,A,F,j;if(typeof C=="undefined"){S(new Error(`${this.queryHash} data is undefined`));return}this.setData(C),(A=(O=_e(this,dr).config).onSuccess)==null||A.call(O,C,this),(j=(F=_e(this,dr).config).onSettled)==null||j.call(F,C,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:S,onFail:(C,O)=>{st(this,xr,Wr).call(this,{type:"failed",failureCount:C,error:O})},onPause:()=>{st(this,xr,Wr).call(this,{type:"pause"})},onContinue:()=>{st(this,xr,Wr).call(this,{type:"continue"})},retry:_.options.retry,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode})),Ne(this,pn,_e(this,hr).promise),_e(this,pn)}},wi=new WeakMap,Pi=new WeakMap,dr=new WeakMap,pn=new WeakMap,hr=new WeakMap,Et=new WeakMap,Sa=new WeakMap,Gn=new WeakMap,Ti=new WeakSet,Po=function(a){this.options=se(se({},_e(this,Sa)),a),this.updateGcTime(this.options.gcTime)},xr=new WeakSet,Wr=function(a){const s=c=>{var f,d;switch(a.type){case"failed":return $e(se({},c),{fetchFailureCount:a.failureCount,fetchFailureReason:a.error});case"pause":return $e(se({},c),{fetchStatus:"paused"});case"continue":return $e(se({},c),{fetchStatus:"fetching"});case"fetch":return se($e(se({},c),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(f=a.meta)!=null?f:null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused"}),!c.dataUpdatedAt&&{error:null,status:"pending"});case"success":return se($e(se({},c),{data:a.data,dataUpdateCount:c.dataUpdateCount+1,dataUpdatedAt:(d=a.dataUpdatedAt)!=null?d:Date.now(),error:null,isInvalidated:!1,status:"success"}),!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const y=a.error;return isCancelledError(y)&&y.revert&&_e(this,Pi)?$e(se({},_e(this,Pi)),{fetchStatus:"idle"}):$e(se({},c),{error:y,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:y,fetchStatus:"idle",status:"error"});case"invalidate":return $e(se({},c),{isInvalidated:!0});case"setState":return se(se({},c),a.state)}};this.state=s(this.state),notifyManager.batch(()=>{_e(this,Et).forEach(c=>{c.onQueryUpdate()}),_e(this,dr).notify({query:this,type:"updated",action:a})})},hu);function getDefaultState$1(o){const a=typeof o.initialData=="function"?o.initialData():o.initialData,s=typeof a!="undefined",c=s?typeof o.initialDataUpdatedAt=="function"?o.initialDataUpdatedAt():o.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:s?c!=null?c:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Ir,pu,QueryCache=(pu=class extends Subscribable{constructor(a={}){super();We(this,Ir,void 0);this.config=a,Ne(this,Ir,new Map)}build(a,s,c){var _;const f=s.queryKey,d=(_=s.queryHash)!=null?_:hashQueryKeyByOptions(f,s);let y=this.get(d);return y||(y=new Query({cache:this,queryKey:f,queryHash:d,options:a.defaultQueryOptions(s),state:c,defaultOptions:a.getQueryDefaults(f)}),this.add(y)),y}add(a){_e(this,Ir).has(a.queryHash)||(_e(this,Ir).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const s=_e(this,Ir).get(a.queryHash);s&&(a.destroy(),s===a&&_e(this,Ir).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return _e(this,Ir).get(a)}getAll(){return[..._e(this,Ir).values()]}find(a){const s=se({exact:!0},a);return this.getAll().find(c=>matchQuery(s,c))}findAll(a={}){const s=this.getAll();return Object.keys(a).length>0?s.filter(c=>matchQuery(a,c)):s}notify(a){notifyManager.batch(()=>{this.listeners.forEach(s=>{s(a)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Ir=new WeakMap,pu),Lr,xa,rr,Oi,Nr,fn,gu,Mutation=(gu=class extends Removable{constructor(a){super();We(this,Nr);We(this,Lr,void 0);We(this,xa,void 0);We(this,rr,void 0);We(this,Oi,void 0);this.mutationId=a.mutationId,Ne(this,xa,a.defaultOptions),Ne(this,rr,a.mutationCache),Ne(this,Lr,[]),this.state=a.state||getDefaultState(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=se(se({},_e(this,xa)),a),this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){_e(this,Lr).includes(a)||(_e(this,Lr).push(a),this.clearGcTimeout(),_e(this,rr).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){Ne(this,Lr,_e(this,Lr).filter(s=>s!==a)),this.scheduleGc(),_e(this,rr).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){_e(this,Lr).length||(this.state.status==="pending"?this.scheduleGc():_e(this,rr).remove(this))}continue(){var a,s;return(s=(a=_e(this,Oi))==null?void 0:a.continue())!=null?s:this.execute(this.state.variables)}execute(a){return xt(this,null,function*(){var f,d,y,_,S,b,$,P,T,C,O,A,F,j,L,M,I,U,z,H;const s=()=>{var G;return Ne(this,Oi,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(X,W)=>{st(this,Nr,fn).call(this,{type:"failed",failureCount:X,error:W})},onPause:()=>{st(this,Nr,fn).call(this,{type:"pause"})},onContinue:()=>{st(this,Nr,fn).call(this,{type:"continue"})},retry:(G=this.options.retry)!=null?G:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),_e(this,Oi).promise},c=this.state.status==="pending";try{if(!c){st(this,Nr,fn).call(this,{type:"pending",variables:a}),yield(d=(f=_e(this,rr).config).onMutate)==null?void 0:d.call(f,a,this);const X=yield(_=(y=this.options).onMutate)==null?void 0:_.call(y,a);X!==this.state.context&&st(this,Nr,fn).call(this,{type:"pending",context:X,variables:a})}const G=yield s();return yield(b=(S=_e(this,rr).config).onSuccess)==null?void 0:b.call(S,G,a,this.state.context,this),yield(P=($=this.options).onSuccess)==null?void 0:P.call($,G,a,this.state.context),yield(C=(T=_e(this,rr).config).onSettled)==null?void 0:C.call(T,G,null,this.state.variables,this.state.context,this),yield(A=(O=this.options).onSettled)==null?void 0:A.call(O,G,null,a,this.state.context),st(this,Nr,fn).call(this,{type:"success",data:G}),G}catch(G){try{throw yield(j=(F=_e(this,rr).config).onError)==null?void 0:j.call(F,G,a,this.state.context,this),yield(M=(L=this.options).onError)==null?void 0:M.call(L,G,a,this.state.context),yield(U=(I=_e(this,rr).config).onSettled)==null?void 0:U.call(I,void 0,G,this.state.variables,this.state.context,this),yield(H=(z=this.options).onSettled)==null?void 0:H.call(z,void 0,G,a,this.state.context),G}finally{st(this,Nr,fn).call(this,{type:"error",error:G})}}})}},Lr=new WeakMap,xa=new WeakMap,rr=new WeakMap,Oi=new WeakMap,Nr=new WeakSet,fn=function(a){const s=c=>{switch(a.type){case"failed":return $e(se({},c),{failureCount:a.failureCount,failureReason:a.error});case"pause":return $e(se({},c),{isPaused:!0});case"continue":return $e(se({},c),{isPaused:!1});case"pending":return $e(se({},c),{context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"pending",variables:a.variables,submittedAt:Date.now()});case"success":return $e(se({},c),{data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return $e(se({},c),{data:void 0,error:a.error,failureCount:c.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"})}};this.state=s(this.state),notifyManager.batch(()=>{_e(this,Lr).forEach(c=>{c.onMutationUpdate(a)}),_e(this,rr).notify({mutation:this,type:"updated",action:a})})},gu);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pr,Ea,Vn,mu,MutationCache=(mu=class extends Subscribable{constructor(a={}){super();We(this,pr,void 0);We(this,Ea,void 0);We(this,Vn,void 0);this.config=a,Ne(this,pr,[]),Ne(this,Ea,0)}build(a,s,c){const f=new Mutation({mutationCache:this,mutationId:++wo(this,Ea)._,options:a.defaultMutationOptions(s),state:c});return this.add(f),f}add(a){_e(this,pr).push(a),this.notify({type:"added",mutation:a})}remove(a){Ne(this,pr,_e(this,pr).filter(s=>s!==a)),this.notify({type:"removed",mutation:a})}clear(){notifyManager.batch(()=>{_e(this,pr).forEach(a=>{this.remove(a)})})}getAll(){return _e(this,pr)}find(a){const s=se({exact:!0},a);return _e(this,pr).find(c=>matchMutation(s,c))}findAll(a={}){return _e(this,pr).filter(s=>matchMutation(a,s))}notify(a){notifyManager.batch(()=>{this.listeners.forEach(s=>{s(a)})})}resumePausedMutations(){var a;return Ne(this,Vn,((a=_e(this,Vn))!=null?a:Promise.resolve()).then(()=>{const s=_e(this,pr).filter(c=>c.state.isPaused);return notifyManager.batch(()=>s.reduce((c,f)=>c.then(()=>f.continue().catch(noop$7)),Promise.resolve()))}).then(()=>{Ne(this,Vn,void 0)})),_e(this,Vn)}},pr=new WeakMap,Ea=new WeakMap,Vn=new WeakMap,mu);function infiniteQueryBehavior(o){return{onFetch:(a,s)=>{const c=()=>xt(this,null,function*(){var O,A,F,j,L,M;const f=a.options,d=(F=(A=(O=a.fetchOptions)==null?void 0:O.meta)==null?void 0:A.fetchMore)==null?void 0:F.direction,y=((j=a.state.data)==null?void 0:j.pages)||[],_=((L=a.state.data)==null?void 0:L.pageParams)||[],S={pages:[],pageParams:[]};let b=!1;const $=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(a.signal.aborted?b=!0:a.signal.addEventListener("abort",()=>{b=!0}),a.signal)})},P=a.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${a.options.queryHash}'`))),T=(I,U,z)=>xt(this,null,function*(){if(b)return Promise.reject();if(U==null&&I.pages.length)return Promise.resolve(I);const H={queryKey:a.queryKey,pageParam:U,direction:z?"backward":"forward",meta:a.options.meta};$(H);const G=yield P(H),{maxPages:X}=a.options,W=z?addToStart:addToEnd;return{pages:W(I.pages,G,X),pageParams:W(I.pageParams,U,X)}});let C;if(d&&y.length){const I=d==="backward",U=I?getPreviousPageParam:getNextPageParam,z={pages:y,pageParams:_},H=U(f,z);C=yield T(z,H,I)}else{C=yield T(S,(M=_[0])!=null?M:f.initialPageParam);const I=o!=null?o:y.length;for(let U=1;U{var f,d;return(d=(f=a.options).persister)==null?void 0:d.call(f,c,{queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},s)}:a.fetchFn=c}}}function getNextPageParam(o,{pages:a,pageParams:s}){const c=a.length-1;return o.getNextPageParam(a[c],a,s[c],s)}function getPreviousPageParam(o,{pages:a,pageParams:s}){var c;return(c=o.getPreviousPageParam)==null?void 0:c.call(o,a[0],a,s[0],s)}var vt,gn,mn,Ci,Ri,yn,Ai,Mi,yu,QueryClient=(yu=class{constructor(o={}){We(this,vt,void 0);We(this,gn,void 0);We(this,mn,void 0);We(this,Ci,void 0);We(this,Ri,void 0);We(this,yn,void 0);We(this,Ai,void 0);We(this,Mi,void 0);Ne(this,vt,o.queryCache||new QueryCache),Ne(this,gn,o.mutationCache||new MutationCache),Ne(this,mn,o.defaultOptions||{}),Ne(this,Ci,new Map),Ne(this,Ri,new Map),Ne(this,yn,0)}mount(){wo(this,yn)._++,_e(this,yn)===1&&(Ne(this,Ai,focusManager.subscribe(()=>{focusManager.isFocused()&&(this.resumePausedMutations(),_e(this,vt).onFocus())})),Ne(this,Mi,onlineManager.subscribe(()=>{onlineManager.isOnline()&&(this.resumePausedMutations(),_e(this,vt).onOnline())})))}unmount(){var o,a;wo(this,yn)._--,_e(this,yn)===0&&((o=_e(this,Ai))==null||o.call(this),Ne(this,Ai,void 0),(a=_e(this,Mi))==null||a.call(this),Ne(this,Mi,void 0))}isFetching(o){return _e(this,vt).findAll($e(se({},o),{fetchStatus:"fetching"})).length}isMutating(o){return _e(this,gn).findAll($e(se({},o),{status:"pending"})).length}getQueryData(o){var a;return(a=_e(this,vt).find({queryKey:o}))==null?void 0:a.state.data}ensureQueryData(o){const a=this.getQueryData(o.queryKey);return a!==void 0?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(o){return this.getQueryCache().findAll(o).map(({queryKey:a,state:s})=>{const c=s.data;return[a,c]})}setQueryData(o,a,s){const c=_e(this,vt).find({queryKey:o}),f=c==null?void 0:c.state.data,d=functionalUpdate(a,f);if(typeof d=="undefined")return;const y=this.defaultQueryOptions({queryKey:o});return _e(this,vt).build(this,y).setData(d,$e(se({},s),{manual:!0}))}setQueriesData(o,a,s){return notifyManager.batch(()=>this.getQueryCache().findAll(o).map(({queryKey:c})=>[c,this.setQueryData(c,a,s)]))}getQueryState(o){var a;return(a=_e(this,vt).find({queryKey:o}))==null?void 0:a.state}removeQueries(o){const a=_e(this,vt);notifyManager.batch(()=>{a.findAll(o).forEach(s=>{a.remove(s)})})}resetQueries(o,a){const s=_e(this,vt),c=se({type:"active"},o);return notifyManager.batch(()=>(s.findAll(o).forEach(f=>{f.reset()}),this.refetchQueries(c,a)))}cancelQueries(o={},a={}){const s=se({revert:!0},a),c=notifyManager.batch(()=>_e(this,vt).findAll(o).map(f=>f.cancel(s)));return Promise.all(c).then(noop$7).catch(noop$7)}invalidateQueries(o={},a={}){return notifyManager.batch(()=>{var c,f;if(_e(this,vt).findAll(o).forEach(d=>{d.invalidate()}),o.refetchType==="none")return Promise.resolve();const s=$e(se({},o),{type:(f=(c=o.refetchType)!=null?c:o.type)!=null?f:"active"});return this.refetchQueries(s,a)})}refetchQueries(o={},a){var f;const s=$e(se({},a),{cancelRefetch:(f=a==null?void 0:a.cancelRefetch)!=null?f:!0}),c=notifyManager.batch(()=>_e(this,vt).findAll(o).filter(d=>!d.isDisabled()).map(d=>{let y=d.fetch(void 0,s);return s.throwOnError||(y=y.catch(noop$7)),d.state.fetchStatus==="paused"?Promise.resolve():y}));return Promise.all(c).then(noop$7)}fetchQuery(o){const a=this.defaultQueryOptions(o);typeof a.retry=="undefined"&&(a.retry=!1);const s=_e(this,vt).build(this,a);return s.isStaleByTime(a.staleTime)?s.fetch(a):Promise.resolve(s.state.data)}prefetchQuery(o){return this.fetchQuery(o).then(noop$7).catch(noop$7)}fetchInfiniteQuery(o){return o.behavior=infiniteQueryBehavior(o.pages),this.fetchQuery(o)}prefetchInfiniteQuery(o){return this.fetchInfiniteQuery(o).then(noop$7).catch(noop$7)}resumePausedMutations(){return _e(this,gn).resumePausedMutations()}getQueryCache(){return _e(this,vt)}getMutationCache(){return _e(this,gn)}getDefaultOptions(){return _e(this,mn)}setDefaultOptions(o){Ne(this,mn,o)}setQueryDefaults(o,a){_e(this,Ci).set(hashKey(o),{queryKey:o,defaultOptions:a})}getQueryDefaults(o){const a=[..._e(this,Ci).values()];let s={};return a.forEach(c=>{partialMatchKey(o,c.queryKey)&&(s=se(se({},s),c.defaultOptions))}),s}setMutationDefaults(o,a){_e(this,Ri).set(hashKey(o),{mutationKey:o,defaultOptions:a})}getMutationDefaults(o){const a=[..._e(this,Ri).values()];let s={};return a.forEach(c=>{partialMatchKey(o,c.mutationKey)&&(s=se(se({},s),c.defaultOptions))}),s}defaultQueryOptions(o){if(o!=null&&o._defaulted)return o;const a=$e(se(se(se({},_e(this,mn).queries),(o==null?void 0:o.queryKey)&&this.getQueryDefaults(o.queryKey)),o),{_defaulted:!0});return a.queryHash||(a.queryHash=hashQueryKeyByOptions(a.queryKey,a)),typeof a.refetchOnReconnect=="undefined"&&(a.refetchOnReconnect=a.networkMode!=="always"),typeof a.throwOnError=="undefined"&&(a.throwOnError=!!a.suspense),typeof a.networkMode=="undefined"&&a.persister&&(a.networkMode="offlineFirst"),a}defaultMutationOptions(o){return o!=null&&o._defaulted?o:$e(se(se(se({},_e(this,mn).mutations),(o==null?void 0:o.mutationKey)&&this.getMutationDefaults(o.mutationKey)),o),{_defaulted:!0})}clear(){_e(this,vt).clear(),_e(this,gn).clear()}},vt=new WeakMap,gn=new WeakMap,mn=new WeakMap,Ci=new WeakMap,Ri=new WeakMap,yn=new WeakMap,Ai=new WeakMap,Mi=new WeakMap,yu),vn,qr,nr,Kr,Fi,To,$a,Ks,vu,MutationObserver$1=(vu=class extends Subscribable{constructor(s,c){super();We(this,Fi);We(this,$a);We(this,vn,void 0);We(this,qr,void 0);We(this,nr,void 0);We(this,Kr,void 0);Ne(this,qr,void 0),Ne(this,vn,s),this.setOptions(c),this.bindMethods(),st(this,Fi,To).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var f;const c=this.options;this.options=_e(this,vn).defaultMutationOptions(s),shallowEqualObjects(c,this.options)||_e(this,vn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_e(this,nr),observer:this}),(f=_e(this,nr))==null||f.setOptions(this.options),c!=null&&c.mutationKey&&this.options.mutationKey&&hashKey(c.mutationKey)!==hashKey(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var s;this.hasListeners()||(s=_e(this,nr))==null||s.removeObserver(this)}onMutationUpdate(s){st(this,Fi,To).call(this),st(this,$a,Ks).call(this,s)}getCurrentResult(){return _e(this,qr)}reset(){var s;(s=_e(this,nr))==null||s.removeObserver(this),Ne(this,nr,void 0),st(this,Fi,To).call(this),st(this,$a,Ks).call(this)}mutate(s,c){var f;return Ne(this,Kr,c),(f=_e(this,nr))==null||f.removeObserver(this),Ne(this,nr,_e(this,vn).getMutationCache().build(_e(this,vn),this.options)),_e(this,nr).addObserver(this),_e(this,nr).execute(s)}},vn=new WeakMap,qr=new WeakMap,nr=new WeakMap,Kr=new WeakMap,Fi=new WeakSet,To=function(){var c,f;const s=(f=(c=_e(this,nr))==null?void 0:c.state)!=null?f:getDefaultState();Ne(this,qr,$e(se({},s),{isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset}))},$a=new WeakSet,Ks=function(s){notifyManager.batch(()=>{var c,f,d,y,_,S,b,$;if(_e(this,Kr)&&this.hasListeners()){const P=_e(this,qr).variables,T=_e(this,qr).context;(s==null?void 0:s.type)==="success"?((f=(c=_e(this,Kr)).onSuccess)==null||f.call(c,s.data,P,T),(y=(d=_e(this,Kr)).onSettled)==null||y.call(d,s.data,null,P,T)):(s==null?void 0:s.type)==="error"&&((S=(_=_e(this,Kr)).onError)==null||S.call(_,s.error,P,T),($=(b=_e(this,Kr)).onSettled)==null||$.call(b,void 0,s.error,P,T))}this.listeners.forEach(P=>{P(_e(this,qr))})})},vu),QueryClientContext=reactExports.createContext(void 0),useQueryClient=o=>{const a=reactExports.useContext(QueryClientContext);if(o)return o;if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},QueryClientProvider=({client:o,children:a})=>(reactExports.useEffect(()=>(o.mount(),()=>{o.unmount()}),[o]),reactExports.createElement(QueryClientContext.Provider,{value:o},a));function shouldThrowError(o,a){return typeof o=="function"?o(...a):!!o}function useMutation(o,a){const s=useQueryClient(a),[c]=reactExports.useState(()=>new MutationObserver$1(s,o));reactExports.useEffect(()=>{c.setOptions(o)},[c,o]);const f=reactExports.useSyncExternalStore(reactExports.useCallback(y=>c.subscribe(notifyManager.batchCalls(y)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d=reactExports.useCallback((y,_)=>{c.mutate(y,_).catch(noop$6)},[c]);if(f.error&&shouldThrowError(c.options.throwOnError,[f.error]))throw f.error;return $e(se({},f),{mutate:d,mutateAsync:f.mutate})}function noop$6(){}const scriptRel="modulepreload",assetsURL=function(o){return"/react-antd-admin-pnpm/"+o},seen={},__vitePreload=function(a,s,c){if(!s||s.length===0)return a();const f=document.getElementsByTagName("link");return Promise.all(s.map(d=>{if(d=assetsURL(d),d in seen)return;seen[d]=!0;const y=d.endsWith(".css"),_=y?'[rel="stylesheet"]':"";if(!!c)for(let $=f.length-1;$>=0;$--){const P=f[$];if(P.href===d&&(!y||P.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${_}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":scriptRel,y||(b.as="script",b.crossOrigin=""),b.href=d,document.head.appendChild(b),y)return new Promise(($,P)=>{b.addEventListener("load",$),b.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>a()).catch(d=>{const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=d,window.dispatchEvent(y),!y.defaultPrevented)throw d})};var ReactQueryDevtools2=function(){return null},client={},createRoot,m$1=reactDomExports;createRoot=client.createRoot=m$1.createRoot,client.hydrateRoot=m$1.hydrateRoot;var shim={exports:{}},useSyncExternalStoreShim_production_min={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -14,13 +14,13 @@ var Yu=Object.defineProperty,Xu=Object.defineProperties;var Qu=Object.getOwnProp * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var h=reactExports,n=shimExports;function p(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var q=typeof Object.is=="function"?Object.is:p,r$1=n.useSyncExternalStore,t$1=h.useRef,u=h.useEffect,v=h.useMemo,w=h.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(o,a,s,c,f){var d=t$1(null);if(d.current===null){var y={hasValue:!1,value:null};d.current=y}else y=d.current;d=v(function(){function S(C){if(!b){if(b=!0,$=C,C=c(C),f!==void 0&&y.hasValue){var O=y.value;if(f(O,C))return P=O}return P=C}if(O=P,q($,C))return O;var A=c(C);return f!==void 0&&f(O,A)?O:($=C,P=A)}var b=!1,$,P,T=s===void 0?null:s;return[function(){return S(a())},T===null?void 0:function(){return S(T())}]},[a,s,c,f]);var _=r$1(o,d[0],d[1]);return u(function(){y.hasValue=!0,y.value=_},[_]),w(_),_};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports);function defaultNoopBatch(o){o()}let batch=defaultNoopBatch;const setBatch=o=>batch=o,getBatch=()=>batch,ContextKey=Symbol.for("react-redux-context"),gT=typeof globalThis!="undefined"?globalThis:{};function getContext(){var o;if(!reactExports.createContext)return{};const a=(o=gT[ContextKey])!=null?o:gT[ContextKey]=new Map;let s=a.get(reactExports.createContext);return s||(s=reactExports.createContext(null),a.set(reactExports.createContext,s)),s}const ReactReduxContext=getContext();function createReduxContextHook(o=ReactReduxContext){return function(){return reactExports.useContext(o)}}const useReduxContext=createReduxContextHook(),notInitialized=()=>{throw new Error("uSES not initialized!")};let useSyncExternalStoreWithSelector$2=notInitialized;const initializeUseSelector=o=>{useSyncExternalStoreWithSelector$2=o},refEquality=(o,a)=>o===a;function createSelectorHook(o=ReactReduxContext){const a=o===ReactReduxContext?useReduxContext:createReduxContextHook(o);return function(c,f={}){const{equalityFn:d=refEquality,stabilityCheck:y=void 0,noopCheck:_=void 0}=typeof f=="function"?{equalityFn:f}:f,{store:S,subscription:b,getServerState:$,stabilityCheck:P,noopCheck:T}=a();reactExports.useRef(!0);const C=reactExports.useCallback({[c.name](A){return c(A)}}[c.name],[c,P,y]),O=useSyncExternalStoreWithSelector$2(b.addNestedSub,S.getState,$||S.getState,C,d);return reactExports.useDebugValue(O),O}}const useSelector=createSelectorHook(),_excluded$8=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function pureFinalPropsSelectorFactory(o,a,s,c,{areStatesEqual:f,areOwnPropsEqual:d,areStatePropsEqual:y}){let _=!1,S,b,$,P,T;function C(I,M){return S=I,b=M,$=o(S,b),P=a(c,b),T=s($,P,b),_=!0,T}function O(){return $=o(S,b),a.dependsOnOwnProps&&(P=a(c,b)),T=s($,P,b),T}function A(){return o.dependsOnOwnProps&&($=o(S,b)),a.dependsOnOwnProps&&(P=a(c,b)),T=s($,P,b),T}function F(){const I=o(S,b),M=!y(I,$);return $=I,M&&(T=s($,P,b)),T}function j(I,M){const L=!d(M,b),U=!f(I,S,M,b);return S=I,b=M,L&&U?O():L?A():U?F():T}return function(M,L){return _?j(M,L):C(M,L)}}function finalPropsSelectorFactory(o,a){let{initMapStateToProps:s,initMapDispatchToProps:c,initMergeProps:f}=a,d=_objectWithoutPropertiesLoose$9(a,_excluded$8);const y=s(o,d),_=c(o,d),S=f(o,d);return pureFinalPropsSelectorFactory(y,_,S,o,d)}function bindActionCreators(o,a){const s={};for(const c in o){const f=o[c];typeof f=="function"&&(s[c]=(...d)=>a(f(...d)))}return s}function wrapMapToPropsConstant(o){return function(s){const c=o(s);function f(){return c}return f.dependsOnOwnProps=!1,f}}function getDependsOnOwnProps(o){return o.dependsOnOwnProps?!!o.dependsOnOwnProps:o.length!==1}function wrapMapToPropsFunc(o,a){return function(c,{displayName:f}){const d=function(_,S){return d.dependsOnOwnProps?d.mapToProps(_,S):d.mapToProps(_,void 0)};return d.dependsOnOwnProps=!0,d.mapToProps=function(_,S){d.mapToProps=o,d.dependsOnOwnProps=getDependsOnOwnProps(o);let b=d(_,S);return typeof b=="function"&&(d.mapToProps=b,d.dependsOnOwnProps=getDependsOnOwnProps(b),b=d(_,S)),b},d}}function createInvalidArgFactory(o,a){return(s,c)=>{throw new Error(`Invalid value of type ${typeof o} for ${a} argument when connecting component ${c.wrappedComponentName}.`)}}function mapDispatchToPropsFactory(o){return o&&typeof o=="object"?wrapMapToPropsConstant(a=>bindActionCreators(o,a)):o?typeof o=="function"?wrapMapToPropsFunc(o):createInvalidArgFactory(o,"mapDispatchToProps"):wrapMapToPropsConstant(a=>({dispatch:a}))}function mapStateToPropsFactory(o){return o?typeof o=="function"?wrapMapToPropsFunc(o):createInvalidArgFactory(o,"mapStateToProps"):wrapMapToPropsConstant(()=>({}))}function defaultMergeProps(o,a,s){return _extends$f({},s,o,a)}function wrapMergePropsFunc(o){return function(s,{displayName:c,areMergedPropsEqual:f}){let d=!1,y;return function(S,b,$){const P=o(S,b,$);return d?f(P,y)||(y=P):(d=!0,y=P),y}}}function mergePropsFactory(o){return o?typeof o=="function"?wrapMergePropsFunc(o):createInvalidArgFactory(o,"mergeProps"):()=>defaultMergeProps}function createListenerCollection(){const o=getBatch();let a=null,s=null;return{clear(){a=null,s=null},notify(){o(()=>{let c=a;for(;c;)c.callback(),c=c.next})},get(){let c=[],f=a;for(;f;)c.push(f),f=f.next;return c},subscribe(c){let f=!0,d=s={callback:c,next:null,prev:s};return d.prev?d.prev.next=d:a=d,function(){!f||a===null||(f=!1,d.next?d.next.prev=d.prev:s=d.prev,d.prev?d.prev.next=d.next:a=d.next)}}}}const nullListeners={notify(){},get:()=>[]};function createSubscription(o,a){let s,c=nullListeners,f=0,d=!1;function y(A){$();const F=c.subscribe(A);let j=!1;return()=>{j||(j=!0,F(),P())}}function _(){c.notify()}function S(){O.onStateChange&&O.onStateChange()}function b(){return d}function $(){f++,s||(s=a?a.addNestedSub(S):o.subscribe(S),c=createListenerCollection())}function P(){f--,s&&f===0&&(s(),s=void 0,c.clear(),c=nullListeners)}function T(){d||(d=!0,$())}function C(){d&&(d=!1,P())}const O={addNestedSub:y,notifyNestedSubs:_,handleChangeWrapper:S,isSubscribed:b,trySubscribe:T,tryUnsubscribe:C,getListeners:()=>c};return O}const canUseDOM$1=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",useIsomorphicLayoutEffect$2=canUseDOM$1?reactExports.useLayoutEffect:reactExports.useEffect;function is$2(o,a){return o===a?o!==0||a!==0||1/o===1/a:o!==o&&a!==a}function shallowEqual(o,a){if(is$2(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;const s=Object.keys(o),c=Object.keys(a);if(s.length!==c.length)return!1;for(let f=0;f{useSyncExternalStore=o},NO_SUBSCRIPTION_ARRAY=[null,null];function useIsomorphicLayoutEffectWithArgs(o,a,s){useIsomorphicLayoutEffect$2(()=>o(...a),s)}function captureWrapperProps(o,a,s,c,f,d){o.current=c,s.current=!1,f.current&&(f.current=null,d())}function subscribeUpdates(o,a,s,c,f,d,y,_,S,b,$){if(!o)return()=>{};let P=!1,T=null;const C=()=>{if(P||!_.current)return;const A=a.getState();let F,j;try{F=c(A,f.current)}catch(I){j=I,T=I}j||(T=null),F===d.current?y.current||b():(d.current=F,S.current=F,y.current=!0,$())};return s.onStateChange=C,s.trySubscribe(),C(),()=>{if(P=!0,s.tryUnsubscribe(),s.onStateChange=null,T)throw T}}function strictEqual(o,a){return o===a}function connect(o,a,s,{pure:c,areStatesEqual:f=strictEqual,areOwnPropsEqual:d=shallowEqual,areStatePropsEqual:y=shallowEqual,areMergedPropsEqual:_=shallowEqual,forwardRef:S=!1,context:b=ReactReduxContext}={}){const $=b,P=mapStateToPropsFactory(o),T=mapDispatchToPropsFactory(a),C=mergePropsFactory(s),O=!!o;return F=>{const j=F.displayName||F.name||"Component",I=`Connect(${j})`,M={shouldHandleStateChanges:O,displayName:I,wrappedComponentName:j,WrappedComponent:F,initMapStateToProps:P,initMapDispatchToProps:T,initMergeProps:C,areStatesEqual:f,areStatePropsEqual:y,areOwnPropsEqual:d,areMergedPropsEqual:_};function L(H){const[G,X,W]=reactExports.useMemo(()=>{const{reactReduxForwardedRef:ze}=H,Xe=_objectWithoutPropertiesLoose$9(H,_excluded$7);return[H.context,ze,Xe]},[H]),K=reactExports.useMemo(()=>G&&G.Consumer&&reactIsExports.isContextConsumer(reactExports.createElement(G.Consumer,null))?G:$,[G,$]),ie=reactExports.useContext(K),ee=!!H.store&&!!H.store.getState&&!!H.store.dispatch,de=!!ie&&!!ie.store,Z=ee?H.store:ie.store,Q=de?ie.getServerState:Z.getState,J=reactExports.useMemo(()=>finalPropsSelectorFactory(Z.dispatch,M),[Z]),[ne,fe]=reactExports.useMemo(()=>{if(!O)return NO_SUBSCRIPTION_ARRAY;const ze=createSubscription(Z,ee?void 0:ie.subscription),Xe=ze.notifyNestedSubs.bind(ze);return[ze,Xe]},[Z,ee,ie]),le=reactExports.useMemo(()=>ee?ie:_extends$f({},ie,{subscription:ne}),[ee,ie,ne]),ae=reactExports.useRef(),ce=reactExports.useRef(W),ge=reactExports.useRef(),pe=reactExports.useRef(!1);reactExports.useRef(!1);const Ie=reactExports.useRef(!1),Ce=reactExports.useRef();useIsomorphicLayoutEffect$2(()=>(Ie.current=!0,()=>{Ie.current=!1}),[]);const ue=reactExports.useMemo(()=>()=>ge.current&&W===ce.current?ge.current:J(Z.getState(),W),[Z,W]),xe=reactExports.useMemo(()=>Xe=>ne?subscribeUpdates(O,Z,ne,J,ce,ae,pe,Ie,ge,fe,Xe):()=>{},[ne]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[ce,ae,pe,W,ge,fe]);let Pe;try{Pe=useSyncExternalStore(xe,ue,Q?()=>J(Q(),W):ue)}catch(ze){throw Ce.current&&(ze.message+=` + */var h=reactExports,n=shimExports;function p(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var q=typeof Object.is=="function"?Object.is:p,r$1=n.useSyncExternalStore,t$1=h.useRef,u=h.useEffect,v=h.useMemo,w=h.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(o,a,s,c,f){var d=t$1(null);if(d.current===null){var y={hasValue:!1,value:null};d.current=y}else y=d.current;d=v(function(){function S(C){if(!b){if(b=!0,$=C,C=c(C),f!==void 0&&y.hasValue){var O=y.value;if(f(O,C))return P=O}return P=C}if(O=P,q($,C))return O;var A=c(C);return f!==void 0&&f(O,A)?O:($=C,P=A)}var b=!1,$,P,T=s===void 0?null:s;return[function(){return S(a())},T===null?void 0:function(){return S(T())}]},[a,s,c,f]);var _=r$1(o,d[0],d[1]);return u(function(){y.hasValue=!0,y.value=_},[_]),w(_),_};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports);function defaultNoopBatch(o){o()}let batch=defaultNoopBatch;const setBatch=o=>batch=o,getBatch=()=>batch,ContextKey=Symbol.for("react-redux-context"),gT=typeof globalThis!="undefined"?globalThis:{};function getContext(){var o;if(!reactExports.createContext)return{};const a=(o=gT[ContextKey])!=null?o:gT[ContextKey]=new Map;let s=a.get(reactExports.createContext);return s||(s=reactExports.createContext(null),a.set(reactExports.createContext,s)),s}const ReactReduxContext=getContext();function createReduxContextHook(o=ReactReduxContext){return function(){return reactExports.useContext(o)}}const useReduxContext=createReduxContextHook(),notInitialized=()=>{throw new Error("uSES not initialized!")};let useSyncExternalStoreWithSelector$2=notInitialized;const initializeUseSelector=o=>{useSyncExternalStoreWithSelector$2=o},refEquality=(o,a)=>o===a;function createSelectorHook(o=ReactReduxContext){const a=o===ReactReduxContext?useReduxContext:createReduxContextHook(o);return function(c,f={}){const{equalityFn:d=refEquality,stabilityCheck:y=void 0,noopCheck:_=void 0}=typeof f=="function"?{equalityFn:f}:f,{store:S,subscription:b,getServerState:$,stabilityCheck:P,noopCheck:T}=a();reactExports.useRef(!0);const C=reactExports.useCallback({[c.name](A){return c(A)}}[c.name],[c,P,y]),O=useSyncExternalStoreWithSelector$2(b.addNestedSub,S.getState,$||S.getState,C,d);return reactExports.useDebugValue(O),O}}const useSelector=createSelectorHook(),_excluded$8=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function pureFinalPropsSelectorFactory(o,a,s,c,{areStatesEqual:f,areOwnPropsEqual:d,areStatePropsEqual:y}){let _=!1,S,b,$,P,T;function C(L,M){return S=L,b=M,$=o(S,b),P=a(c,b),T=s($,P,b),_=!0,T}function O(){return $=o(S,b),a.dependsOnOwnProps&&(P=a(c,b)),T=s($,P,b),T}function A(){return o.dependsOnOwnProps&&($=o(S,b)),a.dependsOnOwnProps&&(P=a(c,b)),T=s($,P,b),T}function F(){const L=o(S,b),M=!y(L,$);return $=L,M&&(T=s($,P,b)),T}function j(L,M){const I=!d(M,b),U=!f(L,S,M,b);return S=L,b=M,I&&U?O():I?A():U?F():T}return function(M,I){return _?j(M,I):C(M,I)}}function finalPropsSelectorFactory(o,a){let{initMapStateToProps:s,initMapDispatchToProps:c,initMergeProps:f}=a,d=_objectWithoutPropertiesLoose$9(a,_excluded$8);const y=s(o,d),_=c(o,d),S=f(o,d);return pureFinalPropsSelectorFactory(y,_,S,o,d)}function bindActionCreators(o,a){const s={};for(const c in o){const f=o[c];typeof f=="function"&&(s[c]=(...d)=>a(f(...d)))}return s}function wrapMapToPropsConstant(o){return function(s){const c=o(s);function f(){return c}return f.dependsOnOwnProps=!1,f}}function getDependsOnOwnProps(o){return o.dependsOnOwnProps?!!o.dependsOnOwnProps:o.length!==1}function wrapMapToPropsFunc(o,a){return function(c,{displayName:f}){const d=function(_,S){return d.dependsOnOwnProps?d.mapToProps(_,S):d.mapToProps(_,void 0)};return d.dependsOnOwnProps=!0,d.mapToProps=function(_,S){d.mapToProps=o,d.dependsOnOwnProps=getDependsOnOwnProps(o);let b=d(_,S);return typeof b=="function"&&(d.mapToProps=b,d.dependsOnOwnProps=getDependsOnOwnProps(b),b=d(_,S)),b},d}}function createInvalidArgFactory(o,a){return(s,c)=>{throw new Error(`Invalid value of type ${typeof o} for ${a} argument when connecting component ${c.wrappedComponentName}.`)}}function mapDispatchToPropsFactory(o){return o&&typeof o=="object"?wrapMapToPropsConstant(a=>bindActionCreators(o,a)):o?typeof o=="function"?wrapMapToPropsFunc(o):createInvalidArgFactory(o,"mapDispatchToProps"):wrapMapToPropsConstant(a=>({dispatch:a}))}function mapStateToPropsFactory(o){return o?typeof o=="function"?wrapMapToPropsFunc(o):createInvalidArgFactory(o,"mapStateToProps"):wrapMapToPropsConstant(()=>({}))}function defaultMergeProps(o,a,s){return _extends$f({},s,o,a)}function wrapMergePropsFunc(o){return function(s,{displayName:c,areMergedPropsEqual:f}){let d=!1,y;return function(S,b,$){const P=o(S,b,$);return d?f(P,y)||(y=P):(d=!0,y=P),y}}}function mergePropsFactory(o){return o?typeof o=="function"?wrapMergePropsFunc(o):createInvalidArgFactory(o,"mergeProps"):()=>defaultMergeProps}function createListenerCollection(){const o=getBatch();let a=null,s=null;return{clear(){a=null,s=null},notify(){o(()=>{let c=a;for(;c;)c.callback(),c=c.next})},get(){let c=[],f=a;for(;f;)c.push(f),f=f.next;return c},subscribe(c){let f=!0,d=s={callback:c,next:null,prev:s};return d.prev?d.prev.next=d:a=d,function(){!f||a===null||(f=!1,d.next?d.next.prev=d.prev:s=d.prev,d.prev?d.prev.next=d.next:a=d.next)}}}}const nullListeners={notify(){},get:()=>[]};function createSubscription(o,a){let s,c=nullListeners,f=0,d=!1;function y(A){$();const F=c.subscribe(A);let j=!1;return()=>{j||(j=!0,F(),P())}}function _(){c.notify()}function S(){O.onStateChange&&O.onStateChange()}function b(){return d}function $(){f++,s||(s=a?a.addNestedSub(S):o.subscribe(S),c=createListenerCollection())}function P(){f--,s&&f===0&&(s(),s=void 0,c.clear(),c=nullListeners)}function T(){d||(d=!0,$())}function C(){d&&(d=!1,P())}const O={addNestedSub:y,notifyNestedSubs:_,handleChangeWrapper:S,isSubscribed:b,trySubscribe:T,tryUnsubscribe:C,getListeners:()=>c};return O}const canUseDOM$1=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",useIsomorphicLayoutEffect$2=canUseDOM$1?reactExports.useLayoutEffect:reactExports.useEffect;function is$2(o,a){return o===a?o!==0||a!==0||1/o===1/a:o!==o&&a!==a}function shallowEqual(o,a){if(is$2(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;const s=Object.keys(o),c=Object.keys(a);if(s.length!==c.length)return!1;for(let f=0;f{useSyncExternalStore=o},NO_SUBSCRIPTION_ARRAY=[null,null];function useIsomorphicLayoutEffectWithArgs(o,a,s){useIsomorphicLayoutEffect$2(()=>o(...a),s)}function captureWrapperProps(o,a,s,c,f,d){o.current=c,s.current=!1,f.current&&(f.current=null,d())}function subscribeUpdates(o,a,s,c,f,d,y,_,S,b,$){if(!o)return()=>{};let P=!1,T=null;const C=()=>{if(P||!_.current)return;const A=a.getState();let F,j;try{F=c(A,f.current)}catch(L){j=L,T=L}j||(T=null),F===d.current?y.current||b():(d.current=F,S.current=F,y.current=!0,$())};return s.onStateChange=C,s.trySubscribe(),C(),()=>{if(P=!0,s.tryUnsubscribe(),s.onStateChange=null,T)throw T}}function strictEqual(o,a){return o===a}function connect(o,a,s,{pure:c,areStatesEqual:f=strictEqual,areOwnPropsEqual:d=shallowEqual,areStatePropsEqual:y=shallowEqual,areMergedPropsEqual:_=shallowEqual,forwardRef:S=!1,context:b=ReactReduxContext}={}){const $=b,P=mapStateToPropsFactory(o),T=mapDispatchToPropsFactory(a),C=mergePropsFactory(s),O=!!o;return F=>{const j=F.displayName||F.name||"Component",L=`Connect(${j})`,M={shouldHandleStateChanges:O,displayName:L,wrappedComponentName:j,WrappedComponent:F,initMapStateToProps:P,initMapDispatchToProps:T,initMergeProps:C,areStatesEqual:f,areStatePropsEqual:y,areOwnPropsEqual:d,areMergedPropsEqual:_};function I(H){const[G,X,W]=reactExports.useMemo(()=>{const{reactReduxForwardedRef:ze}=H,Xe=_objectWithoutPropertiesLoose$9(H,_excluded$7);return[H.context,ze,Xe]},[H]),K=reactExports.useMemo(()=>G&&G.Consumer&&reactIsExports.isContextConsumer(reactExports.createElement(G.Consumer,null))?G:$,[G,$]),ie=reactExports.useContext(K),ee=!!H.store&&!!H.store.getState&&!!H.store.dispatch,de=!!ie&&!!ie.store,Z=ee?H.store:ie.store,Q=de?ie.getServerState:Z.getState,J=reactExports.useMemo(()=>finalPropsSelectorFactory(Z.dispatch,M),[Z]),[ne,fe]=reactExports.useMemo(()=>{if(!O)return NO_SUBSCRIPTION_ARRAY;const ze=createSubscription(Z,ee?void 0:ie.subscription),Xe=ze.notifyNestedSubs.bind(ze);return[ze,Xe]},[Z,ee,ie]),le=reactExports.useMemo(()=>ee?ie:_extends$f({},ie,{subscription:ne}),[ee,ie,ne]),ae=reactExports.useRef(),ce=reactExports.useRef(W),ge=reactExports.useRef(),pe=reactExports.useRef(!1);reactExports.useRef(!1);const Ie=reactExports.useRef(!1),Ce=reactExports.useRef();useIsomorphicLayoutEffect$2(()=>(Ie.current=!0,()=>{Ie.current=!1}),[]);const ue=reactExports.useMemo(()=>()=>ge.current&&W===ce.current?ge.current:J(Z.getState(),W),[Z,W]),xe=reactExports.useMemo(()=>Xe=>ne?subscribeUpdates(O,Z,ne,J,ce,ae,pe,Ie,ge,fe,Xe):()=>{},[ne]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[ce,ae,pe,W,ge,fe]);let Pe;try{Pe=useSyncExternalStore(xe,ue,Q?()=>J(Q(),W):ue)}catch(ze){throw Ce.current&&(ze.message+=` The error may be correlated with this previous error: ${Ce.current.stack} -`),ze}useIsomorphicLayoutEffect$2(()=>{Ce.current=void 0,ge.current=void 0,ae.current=Pe});const Ve=reactExports.useMemo(()=>reactExports.createElement(F,_extends$f({},Pe,{ref:X})),[X,F,Pe]);return reactExports.useMemo(()=>O?reactExports.createElement(K.Provider,{value:le},Ve):Ve,[K,Ve,le])}const z=reactExports.memo(L);if(z.WrappedComponent=F,z.displayName=L.displayName=I,S){const G=reactExports.forwardRef(function(W,K){return reactExports.createElement(z,_extends$f({},W,{reactReduxForwardedRef:K}))});return G.displayName=I,G.WrappedComponent=F,hoistNonReactStatics(G,F)}return hoistNonReactStatics(z,F)}}function Provider({store:o,context:a,children:s,serverState:c,stabilityCheck:f="once",noopCheck:d="once"}){const y=reactExports.useMemo(()=>{const b=createSubscription(o);return{store:o,subscription:b,getServerState:c?()=>c:void 0,stabilityCheck:f,noopCheck:d}},[o,c,f,d]),_=reactExports.useMemo(()=>o.getState(),[o]);useIsomorphicLayoutEffect$2(()=>{const{subscription:b}=y;return b.onStateChange=b.notifyNestedSubs,b.trySubscribe(),_!==o.getState()&&b.notifyNestedSubs(),()=>{b.tryUnsubscribe(),b.onStateChange=void 0}},[y,_]);const S=a||ReactReduxContext;return reactExports.createElement(S.Provider,{value:y},s)}function createStoreHook(o=ReactReduxContext){const a=o===ReactReduxContext?useReduxContext:createReduxContextHook(o);return function(){const{store:c}=a();return c}}const useStore$2=createStoreHook();function createDispatchHook(o=ReactReduxContext){const a=o===ReactReduxContext?useStore$2:createStoreHook(o);return function(){return a().dispatch}}const useDispatch=createDispatchHook();initializeUseSelector(withSelectorExports.useSyncExternalStoreWithSelector);initializeConnect(shimExports.useSyncExternalStore);setBatch(reactDomExports.unstable_batchedUpdates);function _typeof$m(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$m=function(s){return typeof s}:_typeof$m=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$m(o)}function _classCallCheck$6(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(o,a){for(var s=0;s',a.insertBefore(s,a.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",o):o()}const consoleLogger={type:"logger",log(o){this.output("log",o)},warn(o){this.output("warn",o)},error(o){this.output("error",o)},output(o,a){console&&console[o]}};class Logger{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(a,s)}init(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=s.prefix||"i18next:",this.logger=a||consoleLogger,this.options=s,this.debug=s.debug}log(){for(var a=arguments.length,s=new Array(a),c=0;c{this.observers[c]=this.observers[c]||[],this.observers[c].push(s)}),this}off(a,s){if(this.observers[a]){if(!s){delete this.observers[a];return}this.observers[a]=this.observers[a].filter(c=>c!==s)}}emit(a){for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f{y(...c)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(y=>{y.apply(y,[a,...c])})}}function defer(){let o,a;const s=new Promise((c,f)=>{o=c,a=f});return s.resolve=o,s.reject=a,s}function makeString(o){return o==null?"":""+o}function copy$1(o,a,s){o.forEach(c=>{a[c]&&(s[c]=a[c])})}function getLastOfPath(o,a,s){function c(y){return y&&y.indexOf("###")>-1?y.replace(/###/g,"."):y}function f(){return!o||typeof o=="string"}const d=typeof a!="string"?[].concat(a):a.split(".");for(;d.length>1;){if(f())return{};const y=c(d.shift());!o[y]&&s&&(o[y]=new s),Object.prototype.hasOwnProperty.call(o,y)?o=o[y]:o={}}return f()?{}:{obj:o,k:c(d.shift())}}function setPath(o,a,s){const{obj:c,k:f}=getLastOfPath(o,a,Object);c[f]=s}function pushPath(o,a,s,c){const{obj:f,k:d}=getLastOfPath(o,a,Object);f[d]=f[d]||[],c&&(f[d]=f[d].concat(s)),c||f[d].push(s)}function getPath$1(o,a){const{obj:s,k:c}=getLastOfPath(o,a);if(s)return s[c]}function getPathWithDefaults(o,a,s){const c=getPath$1(o,s);return c!==void 0?c:getPath$1(a,s)}function deepExtend(o,a,s){for(const c in a)c!=="__proto__"&&c!=="constructor"&&(c in o?typeof o[c]=="string"||o[c]instanceof String||typeof a[c]=="string"||a[c]instanceof String?s&&(o[c]=a[c]):deepExtend(o[c],a[c],s):o[c]=a[c]);return o}function regexEscape(o){return o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function escape$1(o){return typeof o=="string"?o.replace(/[&<>"'\/]/g,a=>_entityMap[a]):o}const chars=[" ",",","?","!",";"];function looksLikeObjectPath(o,a,s){a=a||"",s=s||"";const c=chars.filter(y=>a.indexOf(y)<0&&s.indexOf(y)<0);if(c.length===0)return!0;const f=new RegExp(`(${c.map(y=>y==="?"?"\\?":y).join("|")})`);let d=!f.test(o);if(!d){const y=o.indexOf(s);y>0&&!f.test(o.substring(0,y))&&(d=!0)}return d}function deepFind(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!o)return;if(o[a])return o[a];const c=a.split(s);let f=o;for(let d=0;dd+y;)y++,_=c.slice(d,d+y).join(s),S=f[_];if(S===void 0)return;if(S===null)return null;if(a.endsWith(_)){if(typeof S=="string")return S;if(_&&typeof S[_]=="string")return S[_]}const b=c.slice(d+y).join(s);return b?deepFind(S,b,s):void 0}f=f[c[d]]}return f}function getCleanedCode(o){return o&&o.indexOf("_")>0?o.replace("_","-"):o}class ResourceStore extends EventEmitter{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=a||{},this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}removeNamespaces(a){const s=this.options.ns.indexOf(a);s>-1&&this.options.ns.splice(s,1)}getResource(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,y=f.ignoreJSONStructure!==void 0?f.ignoreJSONStructure:this.options.ignoreJSONStructure;let _=[a,s];c&&typeof c!="string"&&(_=_.concat(c)),c&&typeof c=="string"&&(_=_.concat(d?c.split(d):c)),a.indexOf(".")>-1&&(_=a.split("."));const S=getPath$1(this.data,_);return S||!y||typeof c!="string"?S:deepFind(this.data&&this.data[a]&&this.data[a][s],c,d)}addResource(a,s,c,f){let d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const y=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let _=[a,s];c&&(_=_.concat(y?c.split(y):c)),a.indexOf(".")>-1&&(_=a.split("."),f=s,s=_[1]),this.addNamespaces(s),setPath(this.data,_,f),d.silent||this.emit("added",a,s,c,f)}addResources(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const d in c)(typeof c[d]=="string"||Object.prototype.toString.apply(c[d])==="[object Array]")&&this.addResource(a,s,d,c[d],{silent:!0});f.silent||this.emit("added",a,s,c)}addResourceBundle(a,s,c,f,d){let y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},_=[a,s];a.indexOf(".")>-1&&(_=a.split("."),f=c,c=s,s=_[1]),this.addNamespaces(s);let S=getPath$1(this.data,_)||{};f?deepExtend(S,c,d):S=se(se({},S),c),setPath(this.data,_,S),y.silent||this.emit("added",a,s,c)}removeResourceBundle(a,s){this.hasResourceBundle(a,s)&&delete this.data[a][s],this.removeNamespaces(s),this.emit("removed",a,s)}hasResourceBundle(a,s){return this.getResource(a,s)!==void 0}getResourceBundle(a,s){return s||(s=this.options.defaultNS),this.options.compatibilityAPI==="v1"?se({},this.getResource(a,s)):this.getResource(a,s)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){const s=this.getDataByLanguage(a);return!!(s&&Object.keys(s)||[]).find(f=>s[f]&&Object.keys(s[f]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(o){this.processors[o.name]=o},handle(o,a,s,c,f){return o.forEach(d=>{this.processors[d]&&(a=this.processors[d].process(a,s,c,f))}),a}};const checkedLoadedFor={};class Translator extends EventEmitter{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),copy$1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(a==null)return!1;const c=this.resolve(a,s);return c&&c.res!==void 0}extractFromKey(a,s){let c=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const f=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let d=s.ns||this.options.defaultNS||[];const y=c&&a.indexOf(c)>-1,_=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!looksLikeObjectPath(a,c,f);if(y&&!_){const S=a.match(this.interpolator.nestingRegexp);if(S&&S.length>0)return{key:a,namespaces:d};const b=a.split(c);(c!==f||c===f&&this.options.ns.indexOf(b[0])>-1)&&(d=b.shift()),a=b.join(f)}return typeof d=="string"&&(d=[d]),{key:a,namespaces:d}}translate(a,s,c){if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s=se({},s)),s||(s={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);const f=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,d=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:y,namespaces:_}=this.extractFromKey(a[a.length-1],s),S=_[_.length-1],b=s.lng||this.language,$=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(b&&b.toLowerCase()==="cimode"){if($){const L=s.nsSeparator||this.options.nsSeparator;return f?{res:`${S}${L}${y}`,usedKey:y,exactUsedKey:y,usedLng:b,usedNS:S,usedParams:this.getUsedParamsDetails(s)}:`${S}${L}${y}`}return f?{res:y,usedKey:y,exactUsedKey:y,usedLng:b,usedNS:S,usedParams:this.getUsedParamsDetails(s)}:y}const P=this.resolve(a,s);let T=P&&P.res;const C=P&&P.usedKey||y,O=P&&P.exactUsedKey||y,A=Object.prototype.toString.apply(T),F=["[object Number]","[object Function]","[object RegExp]"],j=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject;if(I&&T&&(typeof T!="string"&&typeof T!="boolean"&&typeof T!="number")&&F.indexOf(A)<0&&!(typeof j=="string"&&A==="[object Array]")){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,T,we(se({},s),{ns:_})):`key '${y} (${this.language})' returned an object instead of string.`;return f?(P.res=L,P.usedParams=this.getUsedParamsDetails(s),P):L}if(d){const L=A==="[object Array]",U=L?[]:{},z=L?O:C;for(const H in T)if(Object.prototype.hasOwnProperty.call(T,H)){const G=`${z}${d}${H}`;U[H]=this.translate(G,we(se({},s),{joinArrays:!1,ns:_})),U[H]===G&&(U[H]=T[H])}T=U}}else if(I&&typeof j=="string"&&A==="[object Array]")T=T.join(j),T&&(T=this.extendTranslation(T,a,s,c));else{let L=!1,U=!1;const z=s.count!==void 0&&typeof s.count!="string",H=Translator.hasDefaultValue(s),G=z?this.pluralResolver.getSuffix(b,s.count,s):"",X=s.ordinal&&z?this.pluralResolver.getSuffix(b,s.count,{ordinal:!1}):"",K=z&&!s.ordinal&&s.count===0&&this.pluralResolver.shouldUseIntlApi()&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${G}`]||s[`defaultValue${X}`]||s.defaultValue;!this.isValidLookup(T)&&H&&(L=!0,T=K),this.isValidLookup(T)||(U=!0,T=y);const ee=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&U?void 0:T,de=H&&K!==T&&this.options.updateMissing;if(U||L||de){if(this.logger.log(de?"updateKey":"missingKey",b,S,y,de?K:T),d){const ne=this.resolve(y,we(se({},s),{keySeparator:!1}));ne&&ne.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Z=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let ne=0;ne{const ae=H&&le!==T?le:ee;this.options.missingKeyHandler?this.options.missingKeyHandler(ne,S,fe,ae,de,s):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ne,S,fe,ae,de,s),this.emit("missingKey",ne,S,fe,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&z?Z.forEach(ne=>{this.pluralResolver.getSuffixes(ne,s).forEach(fe=>{J([ne],y+fe,s[`defaultValue${fe}`]||K)})}):J(Z,y,K))}T=this.extendTranslation(T,a,s,P,c),U&&T===y&&this.options.appendNamespaceToMissingKey&&(T=`${S}:${y}`),(U||L)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${S}:${y}`:y,L?T:void 0):T=this.options.parseMissingKeyHandler(T))}return f?(P.res=T,P.usedParams=this.getUsedParamsDetails(s),P):T}extendTranslation(a,s,c,f,d){var y=this;if(this.i18nFormat&&this.i18nFormat.parse)a=this.i18nFormat.parse(a,se(se({},this.options.interpolation.defaultVariables),c),c.lng||this.language||f.usedLng,f.usedNS,f.usedKey,{resolved:f});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init(we(se({},c),{interpolation:se(se({},this.options.interpolation),c.interpolation)}));const b=typeof a=="string"&&(c&&c.interpolation&&c.interpolation.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let $;if(b){const T=a.match(this.interpolator.nestingRegexp);$=T&&T.length}let P=c.replace&&typeof c.replace!="string"?c.replace:c;if(this.options.interpolation.defaultVariables&&(P=se(se({},this.options.interpolation.defaultVariables),P)),a=this.interpolator.interpolate(a,P,c.lng||this.language,c),b){const T=a.match(this.interpolator.nestingRegexp),C=T&&T.length;$1&&arguments[1]!==void 0?arguments[1]:{},c,f,d,y,_;return typeof a=="string"&&(a=[a]),a.forEach(S=>{if(this.isValidLookup(c))return;const b=this.extractFromKey(S,s),$=b.key;f=$;let P=b.namespaces;this.options.fallbackNS&&(P=P.concat(this.options.fallbackNS));const T=s.count!==void 0&&typeof s.count!="string",C=T&&!s.ordinal&&s.count===0&&this.pluralResolver.shouldUseIntlApi(),O=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",A=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);P.forEach(F=>{this.isValidLookup(c)||(_=F,!checkedLoadedFor[`${A[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(_)&&(checkedLoadedFor[`${A[0]}-${F}`]=!0,this.logger.warn(`key "${f}" for languages "${A.join(", ")}" won't get resolved as namespace "${_}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),A.forEach(j=>{if(this.isValidLookup(c))return;y=j;const I=[$];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(I,$,j,F,s);else{let L;T&&(L=this.pluralResolver.getSuffix(j,s.count,s));const U=`${this.options.pluralSeparator}zero`,z=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(I.push($+L),s.ordinal&&L.indexOf(z)===0&&I.push($+L.replace(z,this.options.pluralSeparator)),C&&I.push($+U)),O){const H=`${$}${this.options.contextSeparator}${s.context}`;I.push(H),T&&(I.push(H+L),s.ordinal&&L.indexOf(z)===0&&I.push(H+L.replace(z,this.options.pluralSeparator)),C&&I.push(H+U))}}let M;for(;M=I.pop();)this.isValidLookup(c)||(d=M,c=this.getResource(j,F,M,s))}))})}),{res:c,usedKey:f,exactUsedKey:d,usedLng:y,usedNS:_}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(a,s,c,f):this.resourceStore.getResource(a,s,c,f)}getUsedParamsDetails(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=a.replace&&typeof a.replace!="string";let f=c?a.replace:a;if(c&&typeof a.count!="undefined"&&(f.count=a.count),this.options.interpolation.defaultVariables&&(f=se(se({},this.options.interpolation.defaultVariables),f)),!c){f=se({},f);for(const d of s)delete f[d]}return f}static hasDefaultValue(a){const s="defaultValue";for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&s===c.substring(0,s.length)&&a[c]!==void 0)return!0;return!1}}function capitalize(o){return o.charAt(0).toUpperCase()+o.slice(1)}class LanguageUtil{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(a){if(a=getCleanedCode(a),!a||a.indexOf("-")<0)return null;const s=a.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(a){if(a=getCleanedCode(a),!a||a.indexOf("-")<0)return a;const s=a.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(a){if(typeof a=="string"&&a.indexOf("-")>-1){const s=["hans","hant","latn","cyrl","cans","mong","arab"];let c=a.split("-");return this.options.lowerCaseLng?c=c.map(f=>f.toLowerCase()):c.length===2?(c[0]=c[0].toLowerCase(),c[1]=c[1].toUpperCase(),s.indexOf(c[1].toLowerCase())>-1&&(c[1]=capitalize(c[1].toLowerCase()))):c.length===3&&(c[0]=c[0].toLowerCase(),c[1].length===2&&(c[1]=c[1].toUpperCase()),c[0]!=="sgn"&&c[2].length===2&&(c[2]=c[2].toUpperCase()),s.indexOf(c[1].toLowerCase())>-1&&(c[1]=capitalize(c[1].toLowerCase())),s.indexOf(c[2].toLowerCase())>-1&&(c[2]=capitalize(c[2].toLowerCase()))),c.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let s;return a.forEach(c=>{if(s)return;const f=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(f))&&(s=f)}),!s&&this.options.supportedLngs&&a.forEach(c=>{if(s)return;const f=this.getLanguagePartFromCode(c);if(this.isSupportedCode(f))return s=f;s=this.options.supportedLngs.find(d=>{if(d===f)return d;if(!(d.indexOf("-")<0&&f.indexOf("-")<0)&&d.indexOf(f)===0)return d})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(a,s){if(!a)return[];if(typeof a=="function"&&(a=a(s)),typeof a=="string"&&(a=[a]),Object.prototype.toString.apply(a)==="[object Array]")return a;if(!s)return a.default||[];let c=a[s];return c||(c=a[this.getScriptPartFromCode(s)]),c||(c=a[this.formatLanguageCode(s)]),c||(c=a[this.getLanguagePartFromCode(s)]),c||(c=a.default),c||[]}toResolveHierarchy(a,s){const c=this.getFallbackCodes(s||this.options.fallbackLng||[],a),f=[],d=y=>{y&&(this.isSupportedCode(y)?f.push(y):this.logger.warn(`rejecting language code not found in supportedLngs: ${y}`))};return typeof a=="string"&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(a))):typeof a=="string"&&d(this.formatLanguageCode(a)),c.forEach(y=>{f.indexOf(y)<0&&d(this.formatLanguageCode(y))}),f}}let sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_rulesPluralsTypes={1:function(o){return+(o>1)},2:function(o){return+(o!=1)},3:function(o){return 0},4:function(o){return o%10==1&&o%100!=11?0:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?1:2},5:function(o){return o==0?0:o==1?1:o==2?2:o%100>=3&&o%100<=10?3:o%100>=11?4:5},6:function(o){return o==1?0:o>=2&&o<=4?1:2},7:function(o){return o==1?0:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?1:2},8:function(o){return o==1?0:o==2?1:o!=8&&o!=11?2:3},9:function(o){return+(o>=2)},10:function(o){return o==1?0:o==2?1:o<7?2:o<11?3:4},11:function(o){return o==1||o==11?0:o==2||o==12?1:o>2&&o<20?2:3},12:function(o){return+(o%10!=1||o%100==11)},13:function(o){return+(o!==0)},14:function(o){return o==1?0:o==2?1:o==3?2:3},15:function(o){return o%10==1&&o%100!=11?0:o%10>=2&&(o%100<10||o%100>=20)?1:2},16:function(o){return o%10==1&&o%100!=11?0:o!==0?1:2},17:function(o){return o==1||o%10==1&&o%100!=11?0:1},18:function(o){return o==0?0:o==1?1:2},19:function(o){return o==1?0:o==0||o%100>1&&o%100<11?1:o%100>10&&o%100<20?2:3},20:function(o){return o==1?0:o==0||o%100>0&&o%100<20?1:2},21:function(o){return o%100==1?1:o%100==2?2:o%100==3||o%100==4?3:0},22:function(o){return o==1?0:o==2?1:(o<0||o>10)&&o%10==0?2:3}};const nonIntlVersions=["v1","v2","v3"],intlVersions=["v4"],suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){const o={};return sets.forEach(a=>{a.lngs.forEach(s=>{o[s]={numbers:a.nr,plurals:_rulesPluralsTypes[a.fc]}})}),o}class PluralResolver{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=a,this.options=s,this.logger=baseLogger.create("pluralResolver"),(!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}addRule(a,s){this.rules[a]=s}getRule(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(getCleanedCode(a),{type:s.ordinal?"ordinal":"cardinal"})}catch(c){return}return this.rules[a]||this.rules[this.languageUtils.getLanguagePartFromCode(a)]}needsPlural(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const c=this.getRule(a,s);return this.shouldUseIntlApi()?c&&c.resolvedOptions().pluralCategories.length>1:c&&c.numbers.length>1}getPluralFormsOfKey(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(a,c).map(f=>`${s}${f}`)}getSuffixes(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const c=this.getRule(a,s);return c?this.shouldUseIntlApi()?c.resolvedOptions().pluralCategories.sort((f,d)=>suffixesOrder[f]-suffixesOrder[d]).map(f=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${f}`):c.numbers.map(f=>this.getSuffix(a,f,s)):[]}getSuffix(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const f=this.getRule(a,c);return f?this.shouldUseIntlApi()?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${f.select(s)}`:this.getSuffixRetroCompatible(f,s):(this.logger.warn(`no plural rule found for: ${a}`),"")}getSuffixRetroCompatible(a,s){const c=a.noAbs?a.plurals(s):a.plurals(Math.abs(s));let f=a.numbers[c];this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1&&(f===2?f="plural":f===1&&(f=""));const d=()=>this.options.prepend&&f.toString()?this.options.prepend+f.toString():f.toString();return this.options.compatibilityJSON==="v1"?f===1?"":typeof f=="number"?`_plural_${f.toString()}`:d():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1?d():this.options.prepend&&c.toString()?this.options.prepend+c.toString():c.toString()}shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON)}}function deepFindWithDefaults(o,a,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,d=getPathWithDefaults(o,a,s);return!d&&f&&typeof s=="string"&&(d=deepFind(o,s,c),d===void 0&&(d=deepFind(a,s,c))),d}class Interpolator{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator"),this.options=a,this.format=a.interpolation&&a.interpolation.format||(s=>s),this.init(a)}init(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};a.interpolation||(a.interpolation={escapeValue:!0});const s=a.interpolation;this.escape=s.escape!==void 0?s.escape:escape$1,this.escapeValue=s.escapeValue!==void 0?s.escapeValue:!0,this.useRawValueToEscape=s.useRawValueToEscape!==void 0?s.useRawValueToEscape:!1,this.prefix=s.prefix?regexEscape(s.prefix):s.prefixEscaped||"{{",this.suffix=s.suffix?regexEscape(s.suffix):s.suffixEscaped||"}}",this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||",",this.unescapePrefix=s.unescapeSuffix?"":s.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":s.unescapeSuffix||"",this.nestingPrefix=s.nestingPrefix?regexEscape(s.nestingPrefix):s.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=s.nestingSuffix?regexEscape(s.nestingSuffix):s.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=s.nestingOptionsSeparator?s.nestingOptionsSeparator:s.nestingOptionsSeparator||",",this.maxReplaces=s.maxReplaces?s.maxReplaces:1e3,this.alwaysFormat=s.alwaysFormat!==void 0?s.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const a=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(a,"g");const s=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(s,"g");const c=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(c,"g")}interpolate(a,s,c,f){let d,y,_;const S=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function b(O){return O.replace(/\$/g,"$$$$")}const $=O=>{if(O.indexOf(this.formatSeparator)<0){const I=deepFindWithDefaults(s,S,O,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(I,void 0,c,we(se(se({},f),s),{interpolationkey:O})):I}const A=O.split(this.formatSeparator),F=A.shift().trim(),j=A.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(s,S,F,this.options.keySeparator,this.options.ignoreJSONStructure),j,c,we(se(se({},f),s),{interpolationkey:F}))};this.resetRegExp();const P=f&&f.missingInterpolationHandler||this.options.missingInterpolationHandler,T=f&&f.interpolation&&f.interpolation.skipOnVariables!==void 0?f.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:O=>b(O)},{regex:this.regexp,safeValue:O=>this.escapeValue?b(this.escape(O)):b(O)}].forEach(O=>{for(_=0;d=O.regex.exec(a);){const A=d[1].trim();if(y=$(A),y===void 0)if(typeof P=="function"){const j=P(a,d,f);y=typeof j=="string"?j:""}else if(f&&Object.prototype.hasOwnProperty.call(f,A))y="";else if(T){y=d[0];continue}else this.logger.warn(`missed to pass in variable ${A} for interpolating ${a}`),y="";else typeof y!="string"&&!this.useRawValueToEscape&&(y=makeString(y));const F=O.safeValue(y);if(a=a.replace(d[0],F),T?(O.regex.lastIndex+=y.length,O.regex.lastIndex-=d[0].length):O.regex.lastIndex=0,_++,_>=this.maxReplaces)break}}),a}nest(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f,d,y;function _(S,b){const $=this.nestingOptionsSeparator;if(S.indexOf($)<0)return S;const P=S.split(new RegExp(`${$}[ ]*{`));let T=`{${P[1]}`;S=P[0],T=this.interpolate(T,y);const C=T.match(/'/g),O=T.match(/"/g);(C&&C.length%2===0&&!O||O.length%2!==0)&&(T=T.replace(/'/g,'"'));try{y=JSON.parse(T),b&&(y=se(se({},b),y))}catch(A){return this.logger.warn(`failed parsing options string in nesting for key ${S}`,A),`${S}${$}${T}`}return delete y.defaultValue,S}for(;f=this.nestingRegexp.exec(a);){let S=[];y=se({},c),y=y.replace&&typeof y.replace!="string"?y.replace:y,y.applyPostProcessor=!1,delete y.defaultValue;let b=!1;if(f[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(f[1])){const $=f[1].split(this.formatSeparator).map(P=>P.trim());f[1]=$.shift(),S=$,b=!0}if(d=s(_.call(this,f[1].trim(),y),y),d&&f[0]===a&&typeof d!="string")return d;typeof d!="string"&&(d=makeString(d)),d||(this.logger.warn(`missed to resolve ${f[1]} for nesting ${a}`),d=""),b&&(d=S.reduce(($,P)=>this.format($,P,c.lng,we(se({},c),{interpolationkey:f[1].trim()})),d.trim())),a=a.replace(f[0],d),this.regexp.lastIndex=0}return a}}function parseFormatStr(o){let a=o.toLowerCase().trim();const s={};if(o.indexOf("(")>-1){const c=o.split("(");a=c[0].toLowerCase().trim();const f=c[1].substring(0,c[1].length-1);a==="currency"&&f.indexOf(":")<0?s.currency||(s.currency=f.trim()):a==="relativetime"&&f.indexOf(":")<0?s.range||(s.range=f.trim()):f.split(";").forEach(y=>{if(!y)return;const[_,...S]=y.split(":"),b=S.join(":").trim().replace(/^'+|'+$/g,"");s[_.trim()]||(s[_.trim()]=b),b==="false"&&(s[_.trim()]=!1),b==="true"&&(s[_.trim()]=!0),isNaN(b)||(s[_.trim()]=parseInt(b,10))})}return{formatName:a,formatOptions:s}}function createCachedFormatter(o){const a={};return function(c,f,d){const y=f+JSON.stringify(d);let _=a[y];return _||(_=o(getCleanedCode(f),d),a[y]=_),_(c)}}class Formatter{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter"),this.options=a,this.formats={number:createCachedFormatter((s,c)=>{const f=new Intl.NumberFormat(s,se({},c));return d=>f.format(d)}),currency:createCachedFormatter((s,c)=>{const f=new Intl.NumberFormat(s,we(se({},c),{style:"currency"}));return d=>f.format(d)}),datetime:createCachedFormatter((s,c)=>{const f=new Intl.DateTimeFormat(s,se({},c));return d=>f.format(d)}),relativetime:createCachedFormatter((s,c)=>{const f=new Intl.RelativeTimeFormat(s,se({},c));return d=>f.format(d,c.range||"day")}),list:createCachedFormatter((s,c)=>{const f=new Intl.ListFormat(s,se({},c));return d=>f.format(d)})},this.init(a)}init(a){const c=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=c.formatSeparator?c.formatSeparator:c.formatSeparator||","}add(a,s){this.formats[a.toLowerCase().trim()]=s}addCached(a,s){this.formats[a.toLowerCase().trim()]=createCachedFormatter(s)}format(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return s.split(this.formatSeparator).reduce((_,S)=>{const{formatName:b,formatOptions:$}=parseFormatStr(S);if(this.formats[b]){let P=_;try{const T=f&&f.formatParams&&f.formatParams[f.interpolationkey]||{},C=T.locale||T.lng||f.locale||f.lng||c;P=this.formats[b](_,C,se(se(se({},$),f),T))}catch(T){this.logger.warn(T)}return P}else this.logger.warn(`there was no format function for ${b}`);return _},a)}}function removePending(o,a){o.pending[a]!==void 0&&(delete o.pending[a],o.pendingCount--)}class Connector extends EventEmitter{constructor(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=a,this.store=s,this.services=c,this.languageUtils=c.languageUtils,this.options=f,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=f.maxParallelReads||10,this.readingCalls=0,this.maxRetries=f.maxRetries>=0?f.maxRetries:5,this.retryTimeout=f.retryTimeout>=1?f.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(c,f.backend,f)}queueLoad(a,s,c,f){const d={},y={},_={},S={};return a.forEach(b=>{let $=!0;s.forEach(P=>{const T=`${b}|${P}`;!c.reload&&this.store.hasResourceBundle(b,P)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?y[T]===void 0&&(y[T]=!0):(this.state[T]=1,$=!1,y[T]===void 0&&(y[T]=!0),d[T]===void 0&&(d[T]=!0),S[P]===void 0&&(S[P]=!0)))}),$||(_[b]=!0)}),(Object.keys(d).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:f}),{toLoad:Object.keys(d),pending:Object.keys(y),toLoadLanguages:Object.keys(_),toLoadNamespaces:Object.keys(S)}}loaded(a,s,c){const f=a.split("|"),d=f[0],y=f[1];s&&this.emit("failedLoading",d,y,s),c&&this.store.addResourceBundle(d,y,c),this.state[a]=s?-1:2;const _={};this.queue.forEach(S=>{pushPath(S.loaded,[d],y),removePending(S,a),s&&S.errors.push(s),S.pendingCount===0&&!S.done&&(Object.keys(S.loaded).forEach(b=>{_[b]||(_[b]={});const $=S.loaded[b];$.length&&$.forEach(P=>{_[b][P]===void 0&&(_[b][P]=!0)})}),S.done=!0,S.errors.length?S.callback(S.errors):S.callback())}),this.emit("loaded",_),this.queue=this.queue.filter(S=>!S.done)}read(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,y=arguments.length>5?arguments[5]:void 0;if(!a.length)return y(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:s,fcName:c,tried:f,wait:d,callback:y});return}this.readingCalls++;const _=(b,$)=>{if(this.readingCalls--,this.waitingReads.length>0){const P=this.waitingReads.shift();this.read(P.lng,P.ns,P.fcName,P.tried,P.wait,P.callback)}if(b&&$&&f{this.read.call(this,a,s,c,f+1,d*2,y)},d);return}y(b,$)},S=this.backend[c].bind(this.backend);if(S.length===2){try{const b=S(a,s);b&&typeof b.then=="function"?b.then($=>_(null,$)).catch(_):_(null,b)}catch(b){_(b)}return}return S(a,s,_)}prepareLoading(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();typeof a=="string"&&(a=this.languageUtils.toResolveHierarchy(a)),typeof s=="string"&&(s=[s]);const d=this.queueLoad(a,s,c,f);if(!d.toLoad.length)return d.pending.length||f(),null;d.toLoad.forEach(y=>{this.loadOne(y)})}load(a,s,c){this.prepareLoading(a,s,{},c)}reload(a,s,c){this.prepareLoading(a,s,{reload:!0},c)}loadOne(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const c=a.split("|"),f=c[0],d=c[1];this.read(f,d,"read",void 0,void 0,(y,_)=>{y&&this.logger.warn(`${s}loading namespace ${d} for language ${f} failed`,y),!y&&_&&this.logger.log(`${s}loaded namespace ${d} for language ${f}`,_),this.loaded(a,y,_)})}saveMissing(a,s,c,f,d){let y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},_=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(s)){this.logger.warn(`did not save key "${c}" as the namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(c==null||c==="")){if(this.backend&&this.backend.create){const S=we(se({},y),{isUpdate:d}),b=this.backend.create.bind(this.backend);if(b.length<6)try{let $;b.length===5?$=b(a,s,c,f,S):$=b(a,s,c,f),$&&typeof $.then=="function"?$.then(P=>_(null,P)).catch(_):_(null,$)}catch($){_($)}else b(a,s,c,f,_,S)}!a||!a[0]||this.store.addResource(a[0],s,c,f)}}}function get$1(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(a){let s={};if(typeof a[1]=="object"&&(s=a[1]),typeof a[1]=="string"&&(s.defaultValue=a[1]),typeof a[2]=="string"&&(s.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const c=a[3]||a[2];Object.keys(c).forEach(f=>{s[f]=c[f]})}return s},interpolation:{escapeValue:!0,format:o=>o,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(o){return typeof o.ns=="string"&&(o.ns=[o.ns]),typeof o.fallbackLng=="string"&&(o.fallbackLng=[o.fallbackLng]),typeof o.fallbackNS=="string"&&(o.fallbackNS=[o.fallbackNS]),o.supportedLngs&&o.supportedLngs.indexOf("cimode")<0&&(o.supportedLngs=o.supportedLngs.concat(["cimode"])),o}function noop$5(){}function bindMemberFunctions(o){Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach(s=>{typeof o[s]=="function"&&(o[s]=o[s].bind(o))})}class I18n extends EventEmitter{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(a),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),s&&!this.isInitialized&&!a.isClone){if(!this.options.initImmediate)return this.init(a,s),this;setTimeout(()=>{this.init(a,s)},0)}}init(){var a=this;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;typeof s=="function"&&(c=s,s={}),!s.defaultNS&&s.defaultNS!==!1&&s.ns&&(typeof s.ns=="string"?s.defaultNS=s.ns:s.ns.indexOf("translation")<0&&(s.defaultNS=s.ns[0]));const f=get$1();this.options=se(se(se({},f),this.options),transformOptions(s)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=se(se({},f.interpolation),this.options.interpolation)),s.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=s.keySeparator),s.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=s.nsSeparator);function d($){return $?typeof $=="function"?new $:$:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(d(this.modules.logger),this.options):baseLogger.init(null,this.options);let $;this.modules.formatter?$=this.modules.formatter:typeof Intl!="undefined"&&($=Formatter);const P=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const T=this.services;T.logger=baseLogger,T.resourceStore=this.store,T.languageUtils=P,T.pluralResolver=new PluralResolver(P,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),$&&(!this.options.interpolation.format||this.options.interpolation.format===f.interpolation.format)&&(T.formatter=d($),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new Interpolator(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new Connector(d(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",function(C){for(var O=arguments.length,A=new Array(O>1?O-1:0),F=1;F1?O-1:0),F=1;F{C.init&&C.init(this)})}if(this.format=this.options.interpolation.format,c||(c=noop$5),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const $=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);$.length>0&&$[0]!=="dev"&&(this.options.lng=$[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach($=>{this[$]=function(){return a.store[$](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach($=>{this[$]=function(){return a.store[$](...arguments),a}});const S=defer(),b=()=>{const $=(P,T)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),S.resolve(T),c(P,T)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return $(null,this.t.bind(this));this.changeLanguage(this.options.lng,$)};return this.options.resources||!this.options.initImmediate?b():setTimeout(b,0),S}loadResources(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$5;const f=typeof a=="string"?a:this.language;if(typeof a=="function"&&(c=a),!this.options.resources||this.options.partialBundledLanguages){if(f&&f.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const d=[],y=_=>{if(!_||_==="cimode")return;this.services.languageUtils.toResolveHierarchy(_).forEach(b=>{b!=="cimode"&&d.indexOf(b)<0&&d.push(b)})};f?y(f):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(S=>y(S)),this.options.preload&&this.options.preload.forEach(_=>y(_)),this.services.backendConnector.load(d,this.options.ns,_=>{!_&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(_)})}else c(null)}reloadResources(a,s,c){const f=defer();return a||(a=this.languages),s||(s=this.options.ns),c||(c=noop$5),this.services.backendConnector.reload(a,s,d=>{f.resolve(),c(d)}),f}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&postProcessor.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1))for(let s=0;s-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}}changeLanguage(a,s){var c=this;this.isLanguageChangingTo=a;const f=defer();this.emit("languageChanging",a);const d=S=>{this.language=S,this.languages=this.services.languageUtils.toResolveHierarchy(S),this.resolvedLanguage=void 0,this.setResolvedLanguage(S)},y=(S,b)=>{b?(d(b),this.translator.changeLanguage(b),this.isLanguageChangingTo=void 0,this.emit("languageChanged",b),this.logger.log("languageChanged",b)):this.isLanguageChangingTo=void 0,f.resolve(function(){return c.t(...arguments)}),s&&s(S,function(){return c.t(...arguments)})},_=S=>{!a&&!S&&this.services.languageDetector&&(S=[]);const b=typeof S=="string"?S:this.services.languageUtils.getBestMatchFromCodes(S);b&&(this.language||d(b),this.translator.language||this.translator.changeLanguage(b),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(b)),this.loadResources(b,$=>{y($,b)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?_(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(_):this.services.languageDetector.detect(_):_(a),f}getFixedT(a,s,c){var f=this;const d=function(y,_){let S;if(typeof _!="object"){for(var b=arguments.length,$=new Array(b>2?b-2:0),P=2;P`${S.keyPrefix}${T}${O}`):C=S.keyPrefix?`${S.keyPrefix}${T}${y}`:y,f.t(C,S)};return typeof a=="string"?d.lng=a:d.lngs=a,d.ns=s,d.keyPrefix=c,d}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const c=s.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const y=(_,S)=>{const b=this.services.backendConnector.state[`${_}|${S}`];return b===-1||b===2};if(s.precheck){const _=s.precheck(this,y);if(_!==void 0)return _}return!!(this.hasResourceBundle(c,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(c,a)&&(!f||y(d,a)))}loadNamespaces(a,s){const c=defer();return this.options.ns?(typeof a=="string"&&(a=[a]),a.forEach(f=>{this.options.ns.indexOf(f)<0&&this.options.ns.push(f)}),this.loadResources(f=>{c.resolve(),s&&s(f)}),c):(s&&s(),Promise.resolve())}loadLanguages(a,s){const c=defer();typeof a=="string"&&(a=[a]);const f=this.options.preload||[],d=a.filter(y=>f.indexOf(y)<0);return d.length?(this.options.preload=f.concat(d),this.loadResources(y=>{c.resolve(),s&&s(y)}),c):(s&&s(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!a)return"rtl";const s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],c=this.services&&this.services.languageUtils||new LanguageUtil(get$1());return s.indexOf(c.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;return new I18n(a,s)}cloneInstance(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$5;const c=a.forkResourceStore;c&&delete a.forkResourceStore;const f=we(se(se({},this.options),a),{isClone:!0}),d=new I18n(f);return(a.debug!==void 0||a.prefix!==void 0)&&(d.logger=d.logger.clone(a)),["store","services","language"].forEach(_=>{d[_]=this[_]}),d.services=se({},this.services),d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},c&&(d.store=new ResourceStore(this.store.data,f),d.services.resourceStore=d.store),d.translator=new Translator(d.services,f),d.translator.on("*",function(_){for(var S=arguments.length,b=new Array(S>1?S-1:0),$=1;$-1};function T(Z){if(typeof Z!="string"&&(Z=String(Z)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(Z)||Z==="")throw new TypeError('Invalid character in header field name: "'+Z+'"');return Z.toLowerCase()}function C(Z){return typeof Z!="string"&&(Z=String(Z)),Z}function O(Z){var Q={next:function(){var J=Z.shift();return{done:J===void 0,value:J}}};return S.iterable&&(Q[Symbol.iterator]=function(){return Q}),Q}function A(Z){this.map={},Z instanceof A?Z.forEach(function(Q,J){this.append(J,Q)},this):Array.isArray(Z)?Z.forEach(function(Q){this.append(Q[0],Q[1])},this):Z&&Object.getOwnPropertyNames(Z).forEach(function(Q){this.append(Q,Z[Q])},this)}A.prototype.append=function(Z,Q){Z=T(Z),Q=C(Q);var J=this.map[Z];this.map[Z]=J?J+", "+Q:Q},A.prototype.delete=function(Z){delete this.map[T(Z)]},A.prototype.get=function(Z){return Z=T(Z),this.has(Z)?this.map[Z]:null},A.prototype.has=function(Z){return this.map.hasOwnProperty(T(Z))},A.prototype.set=function(Z,Q){this.map[T(Z)]=C(Q)},A.prototype.forEach=function(Z,Q){for(var J in this.map)this.map.hasOwnProperty(J)&&Z.call(Q,this.map[J],J,this)},A.prototype.keys=function(){var Z=[];return this.forEach(function(Q,J){Z.push(J)}),O(Z)},A.prototype.values=function(){var Z=[];return this.forEach(function(Q){Z.push(Q)}),O(Z)},A.prototype.entries=function(){var Z=[];return this.forEach(function(Q,J){Z.push([J,Q])}),O(Z)},S.iterable&&(A.prototype[Symbol.iterator]=A.prototype.entries);function F(Z){if(Z.bodyUsed)return Promise.reject(new TypeError("Already read"));Z.bodyUsed=!0}function j(Z){return new Promise(function(Q,J){Z.onload=function(){Q(Z.result)},Z.onerror=function(){J(Z.error)}})}function I(Z){var Q=new FileReader,J=j(Q);return Q.readAsArrayBuffer(Z),J}function M(Z){var Q=new FileReader,J=j(Q);return Q.readAsText(Z),J}function L(Z){for(var Q=new Uint8Array(Z),J=new Array(Q.length),ne=0;ne-1?Q:Z}function X(Z,Q){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Q=Q||{};var J=Q.body;if(Z instanceof X){if(Z.bodyUsed)throw new TypeError("Already read");this.url=Z.url,this.credentials=Z.credentials,Q.headers||(this.headers=new A(Z.headers)),this.method=Z.method,this.mode=Z.mode,this.signal=Z.signal,!J&&Z._bodyInit!=null&&(J=Z._bodyInit,Z.bodyUsed=!0)}else this.url=String(Z);if(this.credentials=Q.credentials||this.credentials||"same-origin",(Q.headers||!this.headers)&&(this.headers=new A(Q.headers)),this.method=G(Q.method||this.method||"GET"),this.mode=Q.mode||this.mode||null,this.signal=Q.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&J)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(J),(this.method==="GET"||this.method==="HEAD")&&(Q.cache==="no-store"||Q.cache==="no-cache")){var ne=/([?&])_=[^&]*/;if(ne.test(this.url))this.url=this.url.replace(ne,"$1_="+new Date().getTime());else{var fe=/\?/;this.url+=(fe.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}X.prototype.clone=function(){return new X(this,{body:this._bodyInit})};function W(Z){var Q=new FormData;return Z.trim().split("&").forEach(function(J){if(J){var ne=J.split("="),fe=ne.shift().replace(/\+/g," "),le=ne.join("=").replace(/\+/g," ");Q.append(decodeURIComponent(fe),decodeURIComponent(le))}}),Q}function K(Z){var Q=new A,J=Z.replace(/\r?\n[\t ]+/g," ");return J.split("\r").map(function(ne){return ne.indexOf(` -`)===0?ne.substr(1,ne.length):ne}).forEach(function(ne){var fe=ne.split(":"),le=fe.shift().trim();if(le){var ae=fe.join(":").trim();Q.append(le,ae)}}),Q}z.call(X.prototype);function ie(Z,Q){if(!(this instanceof ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Q||(Q={}),this.type="default",this.status=Q.status===void 0?200:Q.status,this.ok=this.status>=200&&this.status<300,this.statusText=Q.statusText===void 0?"":""+Q.statusText,this.headers=new A(Q.headers),this.url=Q.url||"",this._initBody(Z)}z.call(ie.prototype),ie.prototype.clone=function(){return new ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new A(this.headers),url:this.url})},ie.error=function(){var Z=new ie(null,{status:0,statusText:""});return Z.type="error",Z};var ee=[301,302,303,307,308];ie.redirect=function(Z,Q){if(ee.indexOf(Q)===-1)throw new RangeError("Invalid status code");return new ie(null,{status:Q,headers:{location:Z}})},y.DOMException=_.DOMException;try{new y.DOMException}catch(Z){y.DOMException=function(Q,J){this.message=Q,this.name=J;var ne=Error(Q);this.stack=ne.stack},y.DOMException.prototype=Object.create(Error.prototype),y.DOMException.prototype.constructor=y.DOMException}function de(Z,Q){return new Promise(function(J,ne){var fe=new X(Z,Q);if(fe.signal&&fe.signal.aborted)return ne(new y.DOMException("Aborted","AbortError"));var le=new XMLHttpRequest;function ae(){le.abort()}le.onload=function(){var ge={status:le.status,statusText:le.statusText,headers:K(le.getAllResponseHeaders()||"")};ge.url="responseURL"in le?le.responseURL:ge.headers.get("X-Request-URL");var pe="response"in le?le.response:le.responseText;setTimeout(function(){J(new ie(pe,ge))},0)},le.onerror=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},le.ontimeout=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},le.onabort=function(){setTimeout(function(){ne(new y.DOMException("Aborted","AbortError"))},0)};function ce(ge){try{return ge===""&&_.location.href?_.location.href:ge}catch(pe){return ge}}le.open(fe.method,ce(fe.url),!0),fe.credentials==="include"?le.withCredentials=!0:fe.credentials==="omit"&&(le.withCredentials=!1),"responseType"in le&&(S.blob?le.responseType="blob":S.arrayBuffer&&fe.headers.get("Content-Type")&&fe.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(le.responseType="arraybuffer")),Q&&typeof Q.headers=="object"&&!(Q.headers instanceof A)?Object.getOwnPropertyNames(Q.headers).forEach(function(ge){le.setRequestHeader(ge,C(Q.headers[ge]))}):fe.headers.forEach(function(ge,pe){le.setRequestHeader(pe,ge)}),fe.signal&&(fe.signal.addEventListener("abort",ae),le.onreadystatechange=function(){le.readyState===4&&fe.signal.removeEventListener("abort",ae)}),le.send(typeof fe._bodyInit=="undefined"?null:fe._bodyInit)})}return de.polyfill=!0,_.fetch||(_.fetch=de,_.Headers=A,_.Request=X,_.Response=ie),y.Headers=A,y.Request=X,y.Response=ie,y.fetch=de,y})({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var f=s.fetch?s:c;a=f.fetch,a.default=f.fetch,a.fetch=f.fetch,a.Headers=f.Headers,a.Request=f.Request,a.Response=f.Response,o.exports=a}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}(function(o,a){var s;if(typeof fetch=="function"&&(typeof commonjsGlobal!="undefined"&&commonjsGlobal.fetch?s=commonjsGlobal.fetch:typeof window!="undefined"&&window.fetch?s=window.fetch:s=fetch),typeof commonjsRequire!="undefined"&&(typeof window=="undefined"||typeof window.document=="undefined")){var c=s||requireBrowserPonyfill();c.default&&(c=c.default),a.default=c,o.exports=a.default}})(getFetch$1,getFetch$1.exports);var getFetchExports=getFetch$1.exports;const getFetch=getDefaultExportFromCjs(getFetchExports),fetchNode=_mergeNamespaces({__proto__:null,default:getFetch},[getFetchExports]);function _typeof$k(o){"@babel/helpers - typeof";return _typeof$k=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},_typeof$k(o)}var fetchApi;typeof fetch=="function"&&(typeof global!="undefined"&&global.fetch?fetchApi=global.fetch:typeof window!="undefined"&&window.fetch?fetchApi=window.fetch:fetchApi=fetch);var XmlHttpRequestApi;hasXMLHttpRequest()&&(typeof global!="undefined"&&global.XMLHttpRequest?XmlHttpRequestApi=global.XMLHttpRequest:typeof window!="undefined"&&window.XMLHttpRequest&&(XmlHttpRequestApi=window.XMLHttpRequest));var ActiveXObjectApi;typeof ActiveXObject=="function"&&(typeof global!="undefined"&&global.ActiveXObject?ActiveXObjectApi=global.ActiveXObject:typeof window!="undefined"&&window.ActiveXObject&&(ActiveXObjectApi=window.ActiveXObject));!fetchApi&&fetchNode&&!XmlHttpRequestApi&&!ActiveXObjectApi&&(fetchApi=getFetch||fetchNode);typeof fetchApi!="function"&&(fetchApi=void 0);var addQueryString=function(a,s){if(s&&_typeof$k(s)==="object"){var c="";for(var f in s)c+="&"+encodeURIComponent(f)+"="+encodeURIComponent(s[f]);if(!c)return a;a=a+(a.indexOf("?")!==-1?"&":"?")+c.slice(1)}return a},fetchIt=function(a,s,c){var f=function(y){if(!y.ok)return c(y.statusText||"Error",{status:y.status});y.text().then(function(_){c(null,{status:y.status,data:_})}).catch(c)};typeof fetch=="function"?fetch(a,s).then(f).catch(c):fetchApi(a,s).then(f).catch(c)},omitFetchOptions=!1,requestWithFetch=function(a,s,c,f){a.queryStringParams&&(s=addQueryString(s,a.queryStringParams));var d=defaults$5({},typeof a.customHeaders=="function"?a.customHeaders():a.customHeaders);typeof window=="undefined"&&typeof global!="undefined"&&typeof global.process!="undefined"&&global.process.versions&&global.process.versions.node&&(d["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),c&&(d["Content-Type"]="application/json");var y=typeof a.requestOptions=="function"?a.requestOptions(c):a.requestOptions,_=defaults$5({method:c?"POST":"GET",body:c?a.stringify(c):void 0,headers:d},omitFetchOptions?{}:y);try{fetchIt(s,_,f)}catch(S){if(!y||Object.keys(y).length===0||!S.message||S.message.indexOf("not implemented")<0)return f(S);try{Object.keys(y).forEach(function(b){delete _[b]}),fetchIt(s,_,f),omitFetchOptions=!0}catch(b){f(b)}}},requestWithXmlHttpRequest=function(a,s,c,f){c&&_typeof$k(c)==="object"&&(c=addQueryString("",c).slice(1)),a.queryStringParams&&(s=addQueryString(s,a.queryStringParams));try{var d;XmlHttpRequestApi?d=new XmlHttpRequestApi:d=new ActiveXObjectApi("MSXML2.XMLHTTP.3.0"),d.open(c?"POST":"GET",s,1),a.crossDomain||d.setRequestHeader("X-Requested-With","XMLHttpRequest"),d.withCredentials=!!a.withCredentials,c&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.overrideMimeType&&d.overrideMimeType("application/json");var y=a.customHeaders;if(y=typeof y=="function"?y():y,y)for(var _ in y)d.setRequestHeader(_,y[_]);d.onreadystatechange=function(){d.readyState>3&&f(d.status>=400?d.statusText:null,{status:d.status,data:d.responseText})},d.send(c)}catch(S){}},request$1=function(a,s,c,f){if(typeof c=="function"&&(f=c,c=void 0),f=f||function(){},fetchApi&&s.indexOf("file:")!==0)return requestWithFetch(a,s,c,f);if(hasXMLHttpRequest()||typeof ActiveXObject=="function")return requestWithXmlHttpRequest(a,s,c,f);f(new Error("No fetch and no xhr implementation found!"))};function _typeof$j(o){"@babel/helpers - typeof";return _typeof$j=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},_typeof$j(o)}function _classCallCheck$5(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(o,a){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_classCallCheck$5(this,o),this.services=a,this.options=s,this.allOptions=c,this.type="backend",this.init(a,s,c)}return _createClass$5(o,[{key:"init",value:function(s){var c=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=s,this.options=defaults$5(f,this.options||{},getDefaults$1()),this.allOptions=d,this.services&&this.options.reloadInterval&&setInterval(function(){return c.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(s,c,f){this._readAny(s,s,c,c,f)}},{key:"read",value:function(s,c,f){this._readAny([s],s,[c],c,f)}},{key:"_readAny",value:function(s,c,f,d,y){var _=this,S=this.options.loadPath;typeof this.options.loadPath=="function"&&(S=this.options.loadPath(s,f)),S=makePromise(S),S.then(function(b){if(!b)return y(null,{});var $=_.services.interpolator.interpolate(b,{lng:s.join("+"),ns:f.join("+")});_.loadUrl($,y,c,d)})}},{key:"loadUrl",value:function(s,c,f,d){var y=this,_=typeof f=="string"?[f]:f,S=typeof d=="string"?[d]:d,b=this.options.parseLoadPayload(_,S);this.options.request(this.options,s,b,function($,P){if(P&&(P.status>=500&&P.status<600||!P.status))return c("failed loading "+s+"; status code: "+P.status,!0);if(P&&P.status>=400&&P.status<500)return c("failed loading "+s+"; status code: "+P.status,!1);if(!P&&$&&$.message&&$.message.indexOf("Failed to fetch")>-1)return c("failed loading "+s+": "+$.message,!0);if($)return c($,!1);var T,C;try{typeof P.data=="string"?T=y.options.parse(P.data,f,d):T=P.data}catch(O){C="failed parsing "+s+" to json"}if(C)return c(C,!1);c(null,T)})}},{key:"create",value:function(s,c,f,d,y){var _=this;if(this.options.addPath){typeof s=="string"&&(s=[s]);var S=this.options.parsePayload(c,f,d),b=0,$=[],P=[];s.forEach(function(T){var C=_.options.addPath;typeof _.options.addPath=="function"&&(C=_.options.addPath(T,c));var O=_.services.interpolator.interpolate(C,{lng:T,ns:c});_.options.request(_.options,O,S,function(A,F){b+=1,$.push(A),P.push(F),b===s.length&&typeof y=="function"&&y($,P)})})}}},{key:"reload",value:function(){var s=this,c=this.services,f=c.backendConnector,d=c.languageUtils,y=c.logger,_=f.language;if(!(_&&_.toLowerCase()==="cimode")){var S=[],b=function(P){var T=d.toResolveHierarchy(P);T.forEach(function(C){S.indexOf(C)<0&&S.push(C)})};b(_),this.allOptions.preload&&this.allOptions.preload.forEach(function($){return b($)}),S.forEach(function($){s.allOptions.ns.forEach(function(P){f.read($,P,"read",null,null,function(T,C){T&&y.warn("loading namespace ".concat(P," for language ").concat($," failed"),T),!T&&C&&y.log("loaded namespace ".concat(P," for language ").concat($),C),f.loaded("".concat($,"|").concat(P),T,C)})})})}}}]),o}();Backend.type="backend";function warn(){if(console&&console.warn){for(var o=arguments.length,a=new Array(o),s=0;s()=>{if(o.isInitialized)a();else{const s=()=>{setTimeout(()=>{o.off("initialized",s)},0),a()};o.on("initialized",s)}};function loadNamespaces(o,a,s){o.loadNamespaces(a,loadedClb(o,s))}function loadLanguages(o,a,s,c){typeof s=="string"&&(s=[s]),s.forEach(f=>{o.options.ns.indexOf(f)<0&&o.options.ns.push(f)}),o.loadLanguages(a,loadedClb(o,c))}function oldI18nextHasLoadedNamespace(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const c=a.languages[0],f=a.options?a.options.fallbackLng:!1,d=a.languages[a.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const y=(_,S)=>{const b=a.services.backendConnector.state[`${_}|${S}`];return b===-1||b===2};return s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!y(a.isLanguageChangingTo,o)?!1:!!(a.hasResourceBundle(c,o)||!a.services.backendConnector.backend||a.options.resources&&!a.options.partialBundledLanguages||y(c,o)&&(!f||y(d,o)))}function hasLoadedNamespace(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!a.languages||!a.languages.length?(warnOnce("i18n.languages were undefined or empty",a.languages),!0):a.options.ignoreJSONStructure!==void 0?a.hasLoadedNamespace(o,{lng:s.lng,precheck:(f,d)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&f.services.backendConnector.backend&&f.isLanguageChangingTo&&!d(f.isLanguageChangingTo,o))return!1}}):oldI18nextHasLoadedNamespace(o,a,s)}const matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},unescapeHtmlEntity=o=>htmlEntities[o],unescape$1=o=>o.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:unescape$1};function setDefaults(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions=se(se({},defaultOptions),o)}function getDefaults(){return defaultOptions}let i18nInstance;function setI18n(o){i18nInstance=o}function getI18n(){return i18nInstance}const initReactI18next={type:"3rdParty",init(o){setDefaults(o.options.react),setI18n(o)}},I18nContext=reactExports.createContext();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const usePrevious$1=(o,a)=>{const s=reactExports.useRef();return reactExports.useEffect(()=>{s.current=a?s.current:o},[o,a]),s.current};function useTranslation(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:s}=a,{i18n:c,defaultNS:f}=reactExports.useContext(I18nContext)||{},d=s||c||getI18n();if(d&&!d.reportNamespaces&&(d.reportNamespaces=new ReportNamespaces),!d){warnOnce("You will need to pass in an i18next instance by using initReactI18next");const M=(U,z)=>typeof z=="string"?z:z&&typeof z=="object"&&typeof z.defaultValue=="string"?z.defaultValue:Array.isArray(U)?U[U.length-1]:U,L=[M,{},!1];return L.t=M,L.i18n={},L.ready=!1,L}d.options.react&&d.options.react.wait!==void 0&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const y=se(se(se({},getDefaults()),d.options.react),a),{useSuspense:_,keyPrefix:S}=y;let b=o||f||d.options&&d.options.defaultNS;b=typeof b=="string"?[b]:b||["translation"],d.reportNamespaces.addUsedNamespaces&&d.reportNamespaces.addUsedNamespaces(b);const $=(d.isInitialized||d.initializedStoreOnce)&&b.every(M=>hasLoadedNamespace(M,d,y));function P(){return d.getFixedT(a.lng||null,y.nsMode==="fallback"?b:b[0],S)}const[T,C]=reactExports.useState(P);let O=b.join();a.lng&&(O=`${a.lng}${O}`);const A=usePrevious$1(O),F=reactExports.useRef(!0);reactExports.useEffect(()=>{const{bindI18n:M,bindI18nStore:L}=y;F.current=!0,!$&&!_&&(a.lng?loadLanguages(d,a.lng,b,()=>{F.current&&C(P)}):loadNamespaces(d,b,()=>{F.current&&C(P)})),$&&A&&A!==O&&F.current&&C(P);function U(){F.current&&C(P)}return M&&d&&d.on(M,U),L&&d&&d.store.on(L,U),()=>{F.current=!1,M&&d&&M.split(" ").forEach(z=>d.off(z,U)),L&&d&&L.split(" ").forEach(z=>d.store.off(z,U))}},[d,O]);const j=reactExports.useRef(!0);reactExports.useEffect(()=>{F.current&&!j.current&&C(P),j.current=!1},[d,S]);const I=[T,d,$];if(I.t=T,I.i18n=d,I.ready=$,$||!$&&!_)return I;throw new Promise(M=>{a.lng?loadLanguages(d,a.lng,b,()=>M()):loadNamespaces(d,b,()=>M())})}const currentLanguage=window.location.search.split("=")[1];instance.use(Backend).use(initReactI18next).init({lng:currentLanguage||"zh",fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},partialBundledLanguages:!0,backend:{loadPath:"/react-antd-admin-pnpm//locales/{{lng}}/{{ns}}.json"}});const createStoreImpl$1=o=>{let a;const s=new Set,c=(S,b)=>{const $=typeof S=="function"?S(a):S;if(!Object.is($,a)){const P=a;a=(b!=null?b:typeof $!="object"||$===null)?$:Object.assign({},a,$),s.forEach(T=>T(a,P))}},f=()=>a,_={setState:c,getState:f,subscribe:S=>(s.add(S),()=>s.delete(S)),destroy:()=>{s.clear()}};return a=o(c,f,_),_},createStore$3=o=>o?createStoreImpl$1(o):createStoreImpl$1,{useDebugValue:useDebugValue$1}=React$4,{useSyncExternalStoreWithSelector:useSyncExternalStoreWithSelector$1}=useSyncExternalStoreExports;let didWarnAboutEqualityFn$1=!1;function useStore$1(o,a=o.getState,s){const c=useSyncExternalStoreWithSelector$1(o.subscribe,o.getState,o.getServerState||o.getState,a,s);return useDebugValue$1(c),c}const createImpl$1=o=>{const a=typeof o=="function"?createStore$3(o):o,s=(c,f)=>useStore$1(a,c,f);return Object.assign(s,a),s},create$1=o=>o?createImpl$1(o):createImpl$1;function createJSONStorage(o,a){let s;try{s=o()}catch(f){return}return{getItem:f=>{var d;const y=S=>S===null?null:JSON.parse(S,a==null?void 0:a.reviver),_=(d=s.getItem(f))!=null?d:null;return _ instanceof Promise?_.then(y):y(_)},setItem:(f,d)=>s.setItem(f,JSON.stringify(d,a==null?void 0:a.replacer)),removeItem:f=>s.removeItem(f)}}const toThenable=o=>a=>{try{const s=o(a);return s instanceof Promise?s:{then(c){return toThenable(c)(s)},catch(c){return this}}}catch(s){return{then(c){return this},catch(c){return toThenable(c)(s)}}}},oldImpl=(o,a)=>(s,c,f)=>{let d=se({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:F=>F,version:0,merge:(F,j)=>se(se({},j),F)},a),y=!1;const _=new Set,S=new Set;let b;try{b=d.getStorage()}catch(F){}if(!b)return o((...F)=>{s(...F)},c,f);const $=toThenable(d.serialize),P=()=>{const F=d.partialize(se({},c()));let j;const I=$({state:F,version:d.version}).then(M=>b.setItem(d.name,M)).catch(M=>{j=M});if(j)throw j;return I},T=f.setState;f.setState=(F,j)=>{T(F,j),P()};const C=o((...F)=>{s(...F),P()},c,f);let O;const A=()=>{var F;if(!b)return;y=!1,_.forEach(I=>I(c()));const j=((F=d.onRehydrateStorage)==null?void 0:F.call(d,c()))||void 0;return toThenable(b.getItem.bind(b))(d.name).then(I=>{if(I)return d.deserialize(I)}).then(I=>{if(I)if(typeof I.version=="number"&&I.version!==d.version){if(d.migrate)return d.migrate(I.state,I.version)}else return I.state}).then(I=>{var M;return O=d.merge(I,(M=c())!=null?M:C),s(O,!0),P()}).then(()=>{j==null||j(O,void 0),y=!0,S.forEach(I=>I(O))}).catch(I=>{j==null||j(void 0,I)})};return f.persist={setOptions:F=>{d=se(se({},d),F),F.getStorage&&(b=F.getStorage())},clearStorage:()=>{b==null||b.removeItem(d.name)},getOptions:()=>d,rehydrate:()=>A(),hasHydrated:()=>y,onHydrate:F=>(_.add(F),()=>{_.delete(F)}),onFinishHydration:F=>(S.add(F),()=>{S.delete(F)})},A(),O||C},newImpl=(o,a)=>(s,c,f)=>{let d=se({storage:createJSONStorage(()=>localStorage),partialize:A=>A,version:0,merge:(A,F)=>se(se({},F),A)},a),y=!1;const _=new Set,S=new Set;let b=d.storage;if(!b)return o((...A)=>{s(...A)},c,f);const $=()=>{const A=d.partialize(se({},c()));return b.setItem(d.name,{state:A,version:d.version})},P=f.setState;f.setState=(A,F)=>{P(A,F),$()};const T=o((...A)=>{s(...A),$()},c,f);let C;const O=()=>{var A,F;if(!b)return;y=!1,_.forEach(I=>{var M;return I((M=c())!=null?M:T)});const j=((F=d.onRehydrateStorage)==null?void 0:F.call(d,(A=c())!=null?A:T))||void 0;return toThenable(b.getItem.bind(b))(d.name).then(I=>{if(I)if(typeof I.version=="number"&&I.version!==d.version){if(d.migrate)return d.migrate(I.state,I.version)}else return I.state}).then(I=>{var M;return C=d.merge(I,(M=c())!=null?M:T),s(C,!0),$()}).then(()=>{j==null||j(C,void 0),C=c(),y=!0,S.forEach(I=>I(C))}).catch(I=>{j==null||j(void 0,I)})};return f.persist={setOptions:A=>{d=se(se({},d),A),A.storage&&(b=A.storage)},clearStorage:()=>{b==null||b.removeItem(d.name)},getOptions:()=>d,rehydrate:()=>O(),hasHydrated:()=>y,onHydrate:A=>(_.add(A),()=>{_.delete(A)}),onFinishHydration:A=>(S.add(A),()=>{S.delete(A)})},d.skipHydration||O(),C||T},persistImpl=(o,a)=>"getStorage"in a||"serialize"in a||"deserialize"in a?oldImpl(o,a):newImpl(o,a),persist=persistImpl,useGlobalStore=create$1()(persist((o,a)=>({theme:"light",setTheme:s=>{o({theme:s})},preset:"#00A76F",setPreset:s=>{o({preset:s})},hasTabs:!0,setHasTabs:s=>{o({hasTabs:s})},hasCrumbs:!0,setHasCrumbs:s=>{o({hasCrumbs:s})}}),{name:"adminGlobal"}));var __defProp$2=Object.defineProperty,__export=(o,a)=>{for(var s in a)__defProp$2(o,s,{get:a[s],enumerable:!0})},globals_exports={};__export(globals_exports,{assign:()=>assign$1,colors:()=>colors,createStringInterpolator:()=>createStringInterpolator,skipAnimation:()=>skipAnimation,to:()=>to,willAdvance:()=>willAdvance});var updateQueue=makeQueue(),raf=o=>schedule(o,updateQueue),writeQueue=makeQueue();raf.write=o=>schedule(o,writeQueue);var onStartQueue=makeQueue();raf.onStart=o=>schedule(o,onStartQueue);var onFrameQueue=makeQueue();raf.onFrame=o=>schedule(o,onFrameQueue);var onFinishQueue=makeQueue();raf.onFinish=o=>schedule(o,onFinishQueue);var timeouts=[];raf.setTimeout=(o,a)=>{const s=raf.now()+a,c=()=>{const d=timeouts.findIndex(y=>y.cancel==c);~d&&timeouts.splice(d,1),pendingCount-=~d?1:0},f={time:s,handler:o,cancel:c};return timeouts.splice(findTimeout(s),0,f),pendingCount+=1,start(),f};var findTimeout=o=>~(~timeouts.findIndex(a=>a.time>o)||~timeouts.length);raf.cancel=o=>{onStartQueue.delete(o),onFrameQueue.delete(o),onFinishQueue.delete(o),updateQueue.delete(o),writeQueue.delete(o)};raf.sync=o=>{sync=!0,raf.batchedUpdates(o),sync=!1};raf.throttle=o=>{let a;function s(){try{o(...a)}finally{a=null}}function c(...f){a=f,raf.onStart(s)}return c.handler=o,c.cancel=()=>{onStartQueue.delete(s),a=null},c};var nativeRaf=typeof window!="undefined"?window.requestAnimationFrame:()=>{};raf.use=o=>nativeRaf=o;raf.now=typeof performance!="undefined"?()=>performance.now():Date.now;raf.batchedUpdates=o=>o();raf.catch=console.error;raf.frameLoop="always";raf.advance=()=>{raf.frameLoop!=="demand"||update()};var ts=-1,pendingCount=0,sync=!1;function schedule(o,a){sync?(a.delete(o),o(0)):(a.add(o),start())}function start(){ts<0&&(ts=0,raf.frameLoop!=="demand"&&nativeRaf(loop$1))}function stop(){ts=-1}function loop$1(){~ts&&(nativeRaf(loop$1),raf.batchedUpdates(update))}function update(){const o=ts;ts=raf.now();const a=findTimeout(ts);if(a&&(eachSafely(timeouts.splice(0,a),s=>s.handler()),pendingCount-=a),!pendingCount){stop();return}onStartQueue.flush(),updateQueue.flush(o?Math.min(64,ts-o):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()}function makeQueue(){let o=new Set,a=o;return{add(s){pendingCount+=a==o&&!o.has(s)?1:0,o.add(s)},delete(s){return pendingCount-=a==o&&o.has(s)?1:0,o.delete(s)},flush(s){a.size&&(o=new Set,pendingCount-=a.size,eachSafely(a,c=>c(s)&&o.add(c)),pendingCount+=o.size,a=o)}}}function eachSafely(o,a){o.forEach(s=>{try{a(s)}catch(c){raf.catch(c)}})}function noop$4(){}var defineHidden=(o,a,s)=>Object.defineProperty(o,a,{value:s,writable:!0,configurable:!0}),is$1={arr:Array.isArray,obj:o=>!!o&&o.constructor.name==="Object",fun:o=>typeof o=="function",str:o=>typeof o=="string",num:o=>typeof o=="number",und:o=>o===void 0};function isEqual$1(o,a){if(is$1.arr(o)){if(!is$1.arr(a)||o.length!==a.length)return!1;for(let s=0;so.forEach(a);function eachProp(o,a,s){if(is$1.arr(o)){for(let c=0;cis$1.und(o)?[]:is$1.arr(o)?o:[o];function flush(o,a){if(o.size){const s=Array.from(o);o.clear(),each$1(s,a)}}var flushCalls=(o,...a)=>flush(o,s=>s(...a)),isSSR$1=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),createStringInterpolator,to,colors=null,skipAnimation=!1,willAdvance=noop$4,assign$1=o=>{o.to&&(to=o.to),o.now&&(raf.now=o.now),o.colors!==void 0&&(colors=o.colors),o.skipAnimation!=null&&(skipAnimation=o.skipAnimation),o.createStringInterpolator&&(createStringInterpolator=o.createStringInterpolator),o.requestAnimationFrame&&raf.use(o.requestAnimationFrame),o.batchedUpdates&&(raf.batchedUpdates=o.batchedUpdates),o.willAdvance&&(willAdvance=o.willAdvance),o.frameLoop&&(raf.frameLoop=o.frameLoop)},startQueue=new Set,currentFrame=[],prevFrame=[],priority=0,frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(o){priority>o.priority?(startQueue.add(o),raf.onStart(flushStartQueue)):(startSafely(o),raf(advance))},advance,sort(o){if(priority)raf.onFrame(()=>frameLoop.sort(o));else{const a=currentFrame.indexOf(o);~a&&(currentFrame.splice(a,1),startUnsafely(o))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(o){currentFrame.includes(o)||startUnsafely(o)}function startUnsafely(o){currentFrame.splice(findIndex(currentFrame,a=>a.priority>o.priority),0,o)}function advance(o){const a=prevFrame;for(let s=0;s0}function findIndex(o,a){const s=o.findIndex(a);return s<0?o.length:s}var clamp$1=(o,a,s)=>Math.min(Math.max(s,o),a),colors2={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call$1(...o){return"\\(\\s*("+o.join(")\\s*,\\s*(")+")\\s*\\)"}var rgb=new RegExp("rgb"+call$1(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call$1(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call$1(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call$1(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(o){let a;return typeof o=="number"?o>>>0===o&&o>=0&&o<=4294967295?o:null:(a=hex6.exec(o))?parseInt(a[1]+"ff",16)>>>0:colors&&colors[o]!==void 0?colors[o]:(a=rgb.exec(o))?(parse255(a[1])<<24|parse255(a[2])<<16|parse255(a[3])<<8|255)>>>0:(a=rgba.exec(o))?(parse255(a[1])<<24|parse255(a[2])<<16|parse255(a[3])<<8|parse1(a[4]))>>>0:(a=hex3.exec(o))?parseInt(a[1]+a[1]+a[2]+a[2]+a[3]+a[3]+"ff",16)>>>0:(a=hex8.exec(o))?parseInt(a[1],16)>>>0:(a=hex4.exec(o))?parseInt(a[1]+a[1]+a[2]+a[2]+a[3]+a[3]+a[4]+a[4],16)>>>0:(a=hsl.exec(o))?(hslToRgb(parse360(a[1]),parsePercentage(a[2]),parsePercentage(a[3]))|255)>>>0:(a=hsla.exec(o))?(hslToRgb(parse360(a[1]),parsePercentage(a[2]),parsePercentage(a[3]))|parse1(a[4]))>>>0:null}function hue2rgb(o,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?o+(a-o)*6*s:s<1/2?a:s<2/3?o+(a-o)*(2/3-s)*6:o}function hslToRgb(o,a,s){const c=s<.5?s*(1+a):s+a-s*a,f=2*s-c,d=hue2rgb(f,c,o+1/3),y=hue2rgb(f,c,o),_=hue2rgb(f,c,o-1/3);return Math.round(d*255)<<24|Math.round(y*255)<<16|Math.round(_*255)<<8}function parse255(o){const a=parseInt(o,10);return a<0?0:a>255?255:a}function parse360(o){return(parseFloat(o)%360+360)%360/360}function parse1(o){const a=parseFloat(o);return a<0?0:a>1?255:Math.round(a*255)}function parsePercentage(o){const a=parseFloat(o);return a<0?0:a>100?1:a/100}function colorToRgba(o){let a=normalizeColor(o);if(a===null)return o;a=a||0;const s=(a&4278190080)>>>24,c=(a&16711680)>>>16,f=(a&65280)>>>8,d=(a&255)/255;return`rgba(${s}, ${c}, ${f}, ${d})`}var createInterpolator=(o,a,s)=>{if(is$1.fun(o))return o;if(is$1.arr(o))return createInterpolator({range:o,output:a,extrapolate:s});if(is$1.str(o.output[0]))return createStringInterpolator(o);const c=o,f=c.output,d=c.range||[0,1],y=c.extrapolateLeft||c.extrapolate||"extend",_=c.extrapolateRight||c.extrapolate||"extend",S=c.easing||(b=>b);return b=>{const $=findRange(b,d);return interpolate(b,d[$],d[$+1],f[$],f[$+1],S,y,_,c.map)}};function interpolate(o,a,s,c,f,d,y,_,S){let b=S?S(o):o;if(bs){if(_==="identity")return b;_==="clamp"&&(b=s)}return c===f?c:a===s?o<=a?c:f:(a===-1/0?b=-b:s===1/0?b=b-a:b=(b-a)/(s-a),b=d(b),c===-1/0?b=-b:f===1/0?b=b+c:b=b*(f-c)+c,b)}function findRange(o,a){for(var s=1;s=o);++s);return s-1}var steps=(o,a="end")=>s=>{s=a==="end"?Math.min(s,.999):Math.max(s,.001);const c=s*o,f=a==="end"?Math.floor(c):Math.ceil(c);return clamp$1(0,1,f/o)},c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=o=>o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375,easings={linear:o=>o,easeInQuad:o=>o*o,easeOutQuad:o=>1-(1-o)*(1-o),easeInOutQuad:o=>o<.5?2*o*o:1-Math.pow(-2*o+2,2)/2,easeInCubic:o=>o*o*o,easeOutCubic:o=>1-Math.pow(1-o,3),easeInOutCubic:o=>o<.5?4*o*o*o:1-Math.pow(-2*o+2,3)/2,easeInQuart:o=>o*o*o*o,easeOutQuart:o=>1-Math.pow(1-o,4),easeInOutQuart:o=>o<.5?8*o*o*o*o:1-Math.pow(-2*o+2,4)/2,easeInQuint:o=>o*o*o*o*o,easeOutQuint:o=>1-Math.pow(1-o,5),easeInOutQuint:o=>o<.5?16*o*o*o*o*o:1-Math.pow(-2*o+2,5)/2,easeInSine:o=>1-Math.cos(o*Math.PI/2),easeOutSine:o=>Math.sin(o*Math.PI/2),easeInOutSine:o=>-(Math.cos(Math.PI*o)-1)/2,easeInExpo:o=>o===0?0:Math.pow(2,10*o-10),easeOutExpo:o=>o===1?1:1-Math.pow(2,-10*o),easeInOutExpo:o=>o===0?0:o===1?1:o<.5?Math.pow(2,20*o-10)/2:(2-Math.pow(2,-20*o+10))/2,easeInCirc:o=>1-Math.sqrt(1-Math.pow(o,2)),easeOutCirc:o=>Math.sqrt(1-Math.pow(o-1,2)),easeInOutCirc:o=>o<.5?(1-Math.sqrt(1-Math.pow(2*o,2)))/2:(Math.sqrt(1-Math.pow(-2*o+2,2))+1)/2,easeInBack:o=>c3*o*o*o-c1*o*o,easeOutBack:o=>1+c3*Math.pow(o-1,3)+c1*Math.pow(o-1,2),easeInOutBack:o=>o<.5?Math.pow(2*o,2)*((c2+1)*2*o-c2)/2:(Math.pow(2*o-2,2)*((c2+1)*(o*2-2)+c2)+2)/2,easeInElastic:o=>o===0?0:o===1?1:-Math.pow(2,10*o-10)*Math.sin((o*10-10.75)*c4),easeOutElastic:o=>o===0?0:o===1?1:Math.pow(2,-10*o)*Math.sin((o*10-.75)*c4)+1,easeInOutElastic:o=>o===0?0:o===1?1:o<.5?-(Math.pow(2,20*o-10)*Math.sin((20*o-11.125)*c5))/2:Math.pow(2,-20*o+10)*Math.sin((20*o-11.125)*c5)/2+1,easeInBounce:o=>1-bounceOut(1-o),easeOutBounce:bounceOut,easeInOutBounce:o=>o<.5?(1-bounceOut(1-2*o))/2:(1+bounceOut(2*o-1))/2,steps},$get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=o=>!!(o&&o[$get]),getFluidValue=o=>o&&o[$get]?o[$get]():o,getFluidObservers=o=>o[$observers]||null;function callFluidObserver(o,a){o.eventObserved?o.eventObserved(a):o(a)}function callFluidObservers(o,a){const s=o[$observers];s&&s.forEach(c=>{callFluidObserver(c,a)})}var FluidValue=class{constructor(o){if(!o&&!(o=this.get))throw Error("Unknown getter");setFluidGetter(this,o)}},setFluidGetter=(o,a)=>setHidden(o,$get,a);function addFluidObserver(o,a){if(o[$get]){let s=o[$observers];s||setHidden(o,$observers,s=new Set),s.has(a)||(s.add(a),o.observerAdded&&o.observerAdded(s.size,a))}return a}function removeFluidObserver(o,a){const s=o[$observers];if(s&&s.has(a)){const c=s.size-1;c?s.delete(a):o[$observers]=null,o.observerRemoved&&o.observerRemoved(c,a)}}var setHidden=(o,a,s)=>Object.defineProperty(o,a,{value:s,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=o=>{const[a,s]=parseCSSVariable(o);if(!a||isSSR$1())return o;const c=window.getComputedStyle(document.documentElement).getPropertyValue(a);if(c)return c.trim();if(s&&s.startsWith("--")){const f=window.getComputedStyle(document.documentElement).getPropertyValue(s);return f||o}else{if(s&&cssVariableRegex.test(s))return variableToRgba(s);if(s)return s}return o},parseCSSVariable=o=>{const a=cssVariableRegex.exec(o);if(!a)return[,];const[,s,c]=a;return[s,c]},namedColorRegex,rgbaRound=(o,a,s,c,f)=>`rgba(${Math.round(a)}, ${Math.round(s)}, ${Math.round(c)}, ${f})`,createStringInterpolator2=o=>{namedColorRegex||(namedColorRegex=colors?new RegExp(`(${Object.keys(colors).join("|")})(?!\\w)`,"g"):/^\b$/);const a=o.output.map(d=>getFluidValue(d).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba)),s=a.map(d=>d.match(numberRegex).map(Number)),f=s[0].map((d,y)=>s.map(_=>{if(!(y in _))throw Error('The arity of each "output" value must be equal');return _[y]})).map(d=>createInterpolator(we(se({},o),{output:d})));return d=>{var S;const y=!unitRegex.test(a[0])&&((S=a.find(b=>unitRegex.test(b)))==null?void 0:S.replace(numberRegex,""));let _=0;return a[0].replace(numberRegex,()=>`${f[_++](d)}${y||""}`).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=o=>{const a=o;let s=!1;if(typeof a!="function")throw new TypeError(`${prefix}once requires a function parameter`);return(...c)=>{s||(a(...c),s=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function isAnimatedString(o){return is$1.str(o)&&(o[0]=="#"||/\d/.test(o)||!isSSR$1()&&cssVariableRegex.test(o)||o in(colors||{}))}var useIsomorphicLayoutEffect$1=isSSR$1()?reactExports.useEffect:reactExports.useLayoutEffect,useIsMounted=()=>{const o=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>(o.current=!0,()=>{o.current=!1}),[]),o};function useForceUpdate(){const o=reactExports.useState()[1],a=useIsMounted();return()=>{a.current&&o(Math.random())}}function useMemoOne(o,a){const[s]=reactExports.useState(()=>({inputs:a,result:o()})),c=reactExports.useRef(),f=c.current;let d=f;return d?a&&d.inputs&&areInputsEqual(a,d.inputs)||(d={inputs:a,result:o()}):d=s,reactExports.useEffect(()=>{c.current=d,f==s&&(s.inputs=s.result=void 0)},[d]),d.result}function areInputsEqual(o,a){if(o.length!==a.length)return!1;for(let s=0;sreactExports.useEffect(o,emptyDeps),emptyDeps=[];function usePrev(o){const a=reactExports.useRef();return reactExports.useEffect(()=>{a.current=o}),a.current}var $node=Symbol.for("Animated:node"),isAnimated=o=>!!o&&o[$node]===o,getAnimated=o=>o&&o[$node],setAnimated=(o,a)=>defineHidden(o,$node,a),getPayload=o=>o&&o[$node]&&o[$node].getPayload(),Animated=class{constructor(){setAnimated(this,this)}getPayload(){return this.payload||[]}},AnimatedValue=class extends Animated{constructor(o){super(),this._value=o,this.done=!0,this.durationProgress=0,is$1.num(this._value)&&(this.lastPosition=this._value)}static create(o){return new AnimatedValue(o)}getPayload(){return[this]}getValue(){return this._value}setValue(o,a){return is$1.num(o)&&(this.lastPosition=o,a&&(o=Math.round(o/a)*a,this.done&&(this.lastPosition=o))),this._value===o?!1:(this._value=o,!0)}reset(){const{done:o}=this;this.done=!1,is$1.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,o&&(this.lastVelocity=null),this.v0=null)}},AnimatedString=class extends AnimatedValue{constructor(o){super(0),this._string=null,this._toString=createInterpolator({output:[o,o]})}static create(o){return new AnimatedString(o)}getValue(){const o=this._string;return o==null?this._string=this._toString(this._value):o}setValue(o){if(is$1.str(o)){if(o==this._string)return!1;this._string=o,this._value=1}else if(super.setValue(o))this._string=null;else return!1;return!0}reset(o){o&&(this._toString=createInterpolator({output:[this.getValue(),o]})),this._value=0,super.reset()}},TreeContext={dependencies:null},AnimatedObject=class extends Animated{constructor(o){super(),this.source=o,this.setValue(o)}getValue(o){const a={};return eachProp(this.source,(s,c)=>{isAnimated(s)?a[c]=s.getValue(o):hasFluidValue(s)?a[c]=getFluidValue(s):o||(a[c]=s)}),a}setValue(o){this.source=o,this.payload=this._makePayload(o)}reset(){this.payload&&each$1(this.payload,o=>o.reset())}_makePayload(o){if(o){const a=new Set;return eachProp(o,this._addToPayload,a),Array.from(a)}}_addToPayload(o){TreeContext.dependencies&&hasFluidValue(o)&&TreeContext.dependencies.add(o);const a=getPayload(o);a&&each$1(a,s=>this.add(s))}},AnimatedArray=class extends AnimatedObject{constructor(o){super(o)}static create(o){return new AnimatedArray(o)}getValue(){return this.source.map(o=>o.getValue())}setValue(o){const a=this.getPayload();return o.length==a.length?a.map((s,c)=>s.setValue(o[c])).some(Boolean):(super.setValue(o.map(makeAnimated)),!0)}};function makeAnimated(o){return(isAnimatedString(o)?AnimatedString:AnimatedValue).create(o)}function getAnimatedType(o){const a=getAnimated(o);return a?a.constructor:is$1.arr(o)?AnimatedArray:isAnimatedString(o)?AnimatedString:AnimatedValue}var withAnimated=(o,a)=>{const s=!is$1.fun(o)||o.prototype&&o.prototype.isReactComponent;return reactExports.forwardRef((c,f)=>{const d=reactExports.useRef(null),y=s&&reactExports.useCallback(O=>{d.current=updateRef(f,O)},[f]),[_,S]=getAnimatedState(c,a),b=useForceUpdate(),$=()=>{const O=d.current;if(s&&!O)return;(O?a.applyAnimatedValues(O,_.getValue(!0)):!1)===!1&&b()},P=new PropsObserver($,S),T=reactExports.useRef();useIsomorphicLayoutEffect$1(()=>(T.current=P,each$1(S,O=>addFluidObserver(O,P)),()=>{T.current&&(each$1(T.current.deps,O=>removeFluidObserver(O,T.current)),raf.cancel(T.current.update))})),reactExports.useEffect($,[]),useOnce(()=>()=>{const O=T.current;each$1(O.deps,A=>removeFluidObserver(A,O))});const C=a.getComponentProps(_.getValue());return reactExports.createElement(o,we(se({},C),{ref:y}))})},PropsObserver=class{constructor(o,a){this.update=o,this.deps=a}eventObserved(o){o.type=="change"&&raf.write(this.update)}};function getAnimatedState(o,a){const s=new Set;return TreeContext.dependencies=s,o.style&&(o=we(se({},o),{style:a.createAnimatedStyle(o.style)})),o=new AnimatedObject(o),TreeContext.dependencies=null,[o,s]}function updateRef(o,a){return o&&(is$1.fun(o)?o(a):o.current=a),a}var cacheKey=Symbol.for("AnimatedComponent"),createHost=(o,{applyAnimatedValues:a=()=>!1,createAnimatedStyle:s=f=>new AnimatedObject(f),getComponentProps:c=f=>f}={})=>{const f={applyAnimatedValues:a,createAnimatedStyle:s,getComponentProps:c},d=y=>{const _=getDisplayName(y)||"Anonymous";return is$1.str(y)?y=d[y]||(d[y]=withAnimated(y,f)):y=y[cacheKey]||(y[cacheKey]=withAnimated(y,f)),y.displayName=`Animated(${_})`,y};return eachProp(o,(y,_)=>{is$1.arr(o)&&(_=getDisplayName(y)),d[_]=d(y)}),{animated:d}},getDisplayName=o=>is$1.str(o)?o:o&&is$1.str(o.displayName)?o.displayName:is$1.fun(o)&&o.name||null;function callProp(o,...a){return is$1.fun(o)?o(...a):o}var matchProp=(o,a)=>o===!0||!!(a&&o&&(is$1.fun(o)?o(a):toArray$1(o).includes(a))),resolveProp=(o,a)=>is$1.obj(o)?a&&o[a]:o,getDefaultProp=(o,a)=>o.default===!0?o[a]:o.default?o.default[a]:void 0,noopTransform=o=>o,getDefaultProps=(o,a=noopTransform)=>{let s=DEFAULT_PROPS;o.default&&o.default!==!0&&(o=o.default,s=Object.keys(o));const c={};for(const f of s){const d=a(o[f],f);is$1.und(d)||(c[f]=d)}return c},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function getForwardProps(o){const a={};let s=0;if(eachProp(o,(c,f)=>{RESERVED_PROPS[f]||(a[f]=c,s++)}),s)return a}function inferTo(o){const a=getForwardProps(o);if(a){const s={to:a};return eachProp(o,(c,f)=>f in a||(s[f]=c)),s}return se({},o)}function computeGoal(o){return o=getFluidValue(o),is$1.arr(o)?o.map(computeGoal):isAnimatedString(o)?globals_exports.createStringInterpolator({range:[0,1],output:[o,o]})(1):o}function hasProps(o){for(const a in o)return!0;return!1}function isAsyncTo(o){return is$1.fun(o)||is$1.arr(o)&&is$1.obj(o[0])}function detachRefs(o,a){var s;(s=o.ref)==null||s.delete(o),a==null||a.delete(o)}function replaceRef(o,a){var s;a&&o.ref!==a&&((s=o.ref)==null||s.delete(o),a.add(o),o.ref=a)}var config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},defaults$4=we(se({},config.default),{mass:1,damping:1,easing:easings.linear,clamp:!1}),AnimationConfig=class{constructor(){this.velocity=0,Object.assign(this,defaults$4)}};function mergeConfig$1(o,a,s){s&&(s=se({},s),sanitizeConfig(s,a),a=se(se({},s),a)),sanitizeConfig(o,a),Object.assign(o,a);for(const y in defaults$4)o[y]==null&&(o[y]=defaults$4[y]);let{frequency:c,damping:f}=o;const{mass:d}=o;return is$1.und(c)||(c<.01&&(c=.01),f<0&&(f=0),o.tension=Math.pow(2*Math.PI/c,2)*d,o.friction=4*Math.PI*f*d/c),o}function sanitizeConfig(o,a){if(!is$1.und(a.decay))o.duration=void 0;else{const s=!is$1.und(a.tension)||!is$1.und(a.friction);(s||!is$1.und(a.frequency)||!is$1.und(a.damping)||!is$1.und(a.mass))&&(o.duration=void 0,o.decay=void 0),s&&(o.frequency=void 0)}}var emptyArray=[],Animation$2=class{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.config=new AnimationConfig,this.immediate=!1}};function scheduleProps(o,{key:a,props:s,defaultProps:c,state:f,actions:d}){return new Promise((y,_)=>{var O;let S,b,$=matchProp((O=s.cancel)!=null?O:c==null?void 0:c.cancel,a);if($)C();else{is$1.und(s.pause)||(f.paused=matchProp(s.pause,a));let A=c==null?void 0:c.pause;A!==!0&&(A=f.paused||matchProp(A,a)),S=callProp(s.delay||0,a),A?(f.resumeQueue.add(T),d.pause()):(d.resume(),T())}function P(){f.resumeQueue.add(T),f.timeouts.delete(b),b.cancel(),S=b.time-raf.now()}function T(){S>0&&!globals_exports.skipAnimation?(f.delayed=!0,b=raf.setTimeout(C,S),f.pauseQueue.add(P),f.timeouts.add(b)):C()}function C(){f.delayed&&(f.delayed=!1),f.pauseQueue.delete(P),f.timeouts.delete(b),o<=(f.cancelId||0)&&($=!0);try{d.start(we(se({},s),{callId:o,cancel:$}),y)}catch(A){_(A)}}})}var getCombinedResult=(o,a)=>a.length==1?a[0]:a.some(s=>s.cancelled)?getCancelledResult(o.get()):a.every(s=>s.noop)?getNoopResult(o.get()):getFinishedResult(o.get(),a.every(s=>s.finished)),getNoopResult=o=>({value:o,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(o,a,s=!1)=>({value:o,finished:a,cancelled:s}),getCancelledResult=o=>({value:o,cancelled:!0,finished:!1});function runAsync(o,a,s,c){const{callId:f,parentId:d,onRest:y}=a,{asyncTo:_,promise:S}=s;return!d&&o===_&&!a.reset?S:s.promise=(()=>xt(this,null,function*(){s.asyncId=f,s.asyncTo=o;const b=getDefaultProps(a,(F,j)=>j==="onRest"?void 0:F);let $,P;const T=new Promise((F,j)=>($=F,P=j)),C=F=>{const j=f<=(s.cancelId||0)&&getCancelledResult(c)||f!==s.asyncId&&getFinishedResult(c,!1);if(j)throw F.result=j,P(F),F},O=(F,j)=>{const I=new BailSignal,M=new SkipAnimationSignal;return(()=>xt(this,null,function*(){if(globals_exports.skipAnimation)throw stopAsync(s),M.result=getFinishedResult(c,!1),P(M),M;C(I);const L=is$1.obj(F)?se({},F):we(se({},j),{to:F});L.parentId=f,eachProp(b,(z,H)=>{is$1.und(L[H])&&(L[H]=z)});const U=yield c.start(L);return C(I),s.paused&&(yield new Promise(z=>{s.resumeQueue.add(z)})),U}))()};let A;if(globals_exports.skipAnimation)return stopAsync(s),getFinishedResult(c,!1);try{let F;is$1.arr(o)?F=(j=>xt(this,null,function*(){for(const I of j)yield O(I)}))(o):F=Promise.resolve(o(O,c.stop.bind(c))),yield Promise.all([F.then($),T]),A=getFinishedResult(c.get(),!0,!1)}catch(F){if(F instanceof BailSignal)A=F.result;else if(F instanceof SkipAnimationSignal)A=F.result;else throw F}finally{f==s.asyncId&&(s.asyncId=d,s.asyncTo=d?_:void 0,s.promise=d?S:void 0)}return is$1.fun(y)&&raf.batchedUpdates(()=>{y(A,c,c.item)}),A}))()}function stopAsync(o,a){flush(o.timeouts,s=>s.cancel()),o.pauseQueue.clear(),o.resumeQueue.clear(),o.asyncId=o.asyncTo=o.promise=void 0,a&&(o.cancelId=a)}var BailSignal=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},SkipAnimationSignal=class extends Error{constructor(){super("SkipAnimationSignal")}},isFrameValue=o=>o instanceof FrameValue,nextId=1,FrameValue=class extends FluidValue{constructor(){super(...arguments),this.id=nextId++,this._priority=0}get priority(){return this._priority}set priority(o){this._priority!=o&&(this._priority=o,this._onPriorityChange(o))}get(){const o=getAnimated(this);return o&&o.getValue()}to(...o){return globals_exports.to(this,o)}interpolate(...o){return deprecateInterpolate(),globals_exports.to(this,o)}toJSON(){return this.get()}observerAdded(o){o==1&&this._attach()}observerRemoved(o){o==0&&this._detach()}_attach(){}_detach(){}_onChange(o,a=!1){callFluidObservers(this,{type:"change",parent:this,value:o,idle:a})}_onPriorityChange(o){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:o})}},$P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=o=>(o[$P]&HAS_ANIMATED)>0,isAnimating=o=>(o[$P]&IS_ANIMATING)>0,isPaused=o=>(o[$P]&IS_PAUSED)>0,setActiveBit=(o,a)=>a?o[$P]|=IS_ANIMATING|HAS_ANIMATED:o[$P]&=~IS_ANIMATING,setPausedBit=(o,a)=>a?o[$P]|=IS_PAUSED:o[$P]&=~IS_PAUSED,SpringValue=class extends FrameValue{constructor(o,a){if(super(),this.animation=new Animation$2,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!is$1.und(o)||!is$1.und(a)){const s=is$1.obj(o)?se({},o):we(se({},a),{from:o});is$1.und(s.default)&&(s.default=!0),this.start(s)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const o=getAnimated(this);return o instanceof AnimatedValue?o.lastVelocity||0:o.getPayload().map(a=>a.lastVelocity||0)}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(o){let a=!0,s=!1;const c=this.animation;let{toValues:f}=c;const{config:d}=c,y=getPayload(c.to);!y&&hasFluidValue(c.to)&&(f=toArray$1(getFluidValue(c.to))),c.values.forEach((b,$)=>{if(b.done)return;const P=b.constructor==AnimatedString?1:y?y[$].lastPosition:f[$];let T=c.immediate,C=P;if(!T){if(C=b.lastPosition,d.tension<=0){b.done=!0;return}let O=b.elapsedTime+=o;const A=c.fromValues[$],F=b.v0!=null?b.v0:b.v0=is$1.arr(d.velocity)?d.velocity[$]:d.velocity;let j;const I=d.precision||(A==P?.005:Math.min(1,Math.abs(P-A)*.001));if(is$1.und(d.duration))if(d.decay){const M=d.decay===!0?.998:d.decay,L=Math.exp(-(1-M)*O);C=A+F/(1-M)*(1-L),T=Math.abs(b.lastPosition-C)<=I,j=F*L}else{j=b.lastVelocity==null?F:b.lastVelocity;const M=d.restVelocity||I/10,L=d.clamp?0:d.bounce,U=!is$1.und(L),z=A==P?b.v0>0:AM,!(!H&&(T=Math.abs(P-C)<=I,T)));++K){U&&(G=C==P||C>P==z,G&&(j=-j*L,C=P));const ie=-d.tension*1e-6*(C-P),ee=-d.friction*.001*j,de=(ie+ee)/d.mass;j=j+de*X,C=C+j*X}}else{let M=1;d.duration>0&&(this._memoizedDuration!==d.duration&&(this._memoizedDuration=d.duration,b.durationProgress>0&&(b.elapsedTime=d.duration*b.durationProgress,O=b.elapsedTime+=o)),M=(d.progress||0)+O/this._memoizedDuration,M=M>1?1:M<0?0:M,b.durationProgress=M),C=A+d.easing(M)*(P-A),j=(C-b.lastPosition)/o,T=M==1}b.lastVelocity=j,Number.isNaN(C)&&(T=!0)}y&&!y[$].done&&(T=!1),T?b.done=!0:a=!1,b.setValue(C,d.round)&&(s=!0)});const _=getAnimated(this),S=_.getValue();if(a){const b=getFluidValue(c.to);(S!==b||s)&&!d.decay?(_.setValue(b),this._onChange(b)):s&&d.decay&&this._onChange(S),this._stop()}else s&&this._onChange(S)}set(o){return raf.batchedUpdates(()=>{this._stop(),this._focus(o),this._set(o)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:o,config:a}=this.animation;raf.batchedUpdates(()=>{this._onStart(),a.decay||this._set(o,!1),this._stop()})}return this}update(o){return(this.queue||(this.queue=[])).push(o),this}start(o,a){let s;return is$1.und(o)?(s=this.queue||[],this.queue=[]):s=[is$1.obj(o)?o:we(se({},a),{to:o})],Promise.all(s.map(c=>this._update(c))).then(c=>getCombinedResult(this,c))}stop(o){const{to:a}=this.animation;return this._focus(this.get()),stopAsync(this._state,o&&this._lastCallId),raf.batchedUpdates(()=>this._stop(a,o)),this}reset(){this._update({reset:!0})}eventObserved(o){o.type=="change"?this._start():o.type=="priority"&&(this.priority=o.priority+1)}_prepareNode(o){const a=this.key||"";let{to:s,from:c}=o;s=is$1.obj(s)?s[a]:s,(s==null||isAsyncTo(s))&&(s=void 0),c=is$1.obj(c)?c[a]:c,c==null&&(c=void 0);const f={to:s,from:c};return hasAnimated(this)||(o.reverse&&([s,c]=[c,s]),c=getFluidValue(c),is$1.und(c)?getAnimated(this)||this._set(s):this._set(c)),f}_update(s,a){var o=fr(s,[]);const{key:c,defaultProps:f}=this;o.default&&Object.assign(f,getDefaultProps(o,(_,S)=>/^on/.test(S)?resolveProp(_,c):_)),mergeActiveFn(this,o,"onProps"),sendEvent(this,"onProps",o,this);const d=this._prepareNode(o);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const y=this._state;return scheduleProps(++this._lastCallId,{key:c,props:o,defaultProps:f,state:y,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(y.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(y.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,d)}}).then(_=>{if(o.loop&&_.finished&&!(a&&_.noop)){const S=createLoopUpdate(o);if(S)return this._update(S,!0)}return _})}_merge(o,a,s){if(a.cancel)return this.stop(!0),s(getCancelledResult(this));const c=!is$1.und(o.to),f=!is$1.und(o.from);if(c||f)if(a.callId>this._lastToId)this._lastToId=a.callId;else return s(getCancelledResult(this));const{key:d,defaultProps:y,animation:_}=this,{to:S,from:b}=_;let{to:$=S,from:P=b}=o;f&&!c&&(!a.default||is$1.und($))&&($=P),a.reverse&&([$,P]=[P,$]);const T=!isEqual$1(P,b);T&&(_.from=P),P=getFluidValue(P);const C=!isEqual$1($,S);C&&this._focus($);const O=isAsyncTo(a.to),{config:A}=_,{decay:F,velocity:j}=A;(c||f)&&(A.velocity=0),a.config&&!O&&mergeConfig$1(A,callProp(a.config,d),a.config!==y.config?callProp(y.config,d):void 0);let I=getAnimated(this);if(!I||is$1.und($))return s(getFinishedResult(this,!0));const M=is$1.und(a.reset)?f&&!a.default:!is$1.und(P)&&matchProp(a.reset,d),L=M?P:this.get(),U=computeGoal($),z=is$1.num(U)||is$1.arr(U)||isAnimatedString(U),H=!O&&(!z||matchProp(y.immediate||a.immediate,d));if(C){const K=getAnimatedType($);if(K!==I.constructor)if(H)I=this._set(U);else throw Error(`Cannot animate between ${I.constructor.name} and ${K.name}, as the "to" prop suggests`)}const G=I.constructor;let X=hasFluidValue($),W=!1;if(!X){const K=M||!hasAnimated(this)&&T;(C||K)&&(W=isEqual$1(computeGoal(L),U),X=!W),(!isEqual$1(_.immediate,H)&&!H||!isEqual$1(A.decay,F)||!isEqual$1(A.velocity,j))&&(X=!0)}if(W&&isAnimating(this)&&(_.changed&&!M?X=!0:X||this._stop(S)),!O&&((X||hasFluidValue(S))&&(_.values=I.getPayload(),_.toValues=hasFluidValue($)?null:G==AnimatedString?[1]:toArray$1(U)),_.immediate!=H&&(_.immediate=H,!H&&!M&&this._set(S)),X)){const{onRest:K}=_;each$1(ACTIVE_EVENTS,ee=>mergeActiveFn(this,a,ee));const ie=getFinishedResult(this,checkFinished(this,S));flushCalls(this._pendingCalls,ie),this._pendingCalls.add(s),_.changed&&raf.batchedUpdates(()=>{var ee;_.changed=!M,K==null||K(ie,this),M?callProp(y.onRest,ie):(ee=_.onStart)==null||ee.call(_,ie,this)})}M&&this._set(L),O?s(runAsync(a.to,a,this._state,this)):X?this._start():isAnimating(this)&&!C?this._pendingCalls.add(s):s(getNoopResult(L))}_focus(o){const a=this.animation;o!==a.to&&(getFluidObservers(this)&&this._detach(),a.to=o,getFluidObservers(this)&&this._attach())}_attach(){let o=0;const{to:a}=this.animation;hasFluidValue(a)&&(addFluidObserver(a,this),isFrameValue(a)&&(o=a.priority+1)),this.priority=o}_detach(){const{to:o}=this.animation;hasFluidValue(o)&&removeFluidObserver(o,this)}_set(o,a=!0){const s=getFluidValue(o);if(!is$1.und(s)){const c=getAnimated(this);if(!c||!isEqual$1(s,c.getValue())){const f=getAnimatedType(s);!c||c.constructor!=f?setAnimated(this,f.create(s)):c.setValue(s),c&&raf.batchedUpdates(()=>{this._onChange(s,a)})}}return getAnimated(this)}_onStart(){const o=this.animation;o.changed||(o.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,o.to)),this))}_onChange(o,a){a||(this._onStart(),callProp(this.animation.onChange,o,this)),callProp(this.defaultProps.onChange,o,this),super._onChange(o,a)}_start(){const o=this.animation;getAnimated(this).reset(getFluidValue(o.to)),o.immediate||(o.fromValues=o.values.map(a=>a.lastPosition)),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals_exports.skipAnimation?this.finish():frameLoop.start(this)}_stop(o,a){if(isAnimating(this)){setActiveBit(this,!1);const s=this.animation;each$1(s.values,f=>{f.done=!0}),s.toValues&&(s.onChange=s.onPause=s.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const c=a?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,o!=null?o:s.to));flushCalls(this._pendingCalls,c),s.changed&&(s.changed=!1,sendEvent(this,"onRest",c,this))}}};function checkFinished(o,a){const s=computeGoal(a),c=computeGoal(o.get());return isEqual$1(c,s)}function createLoopUpdate(o,a=o.loop,s=o.to){const c=callProp(a);if(c){const f=c!==!0&&inferTo(c),d=(f||o).reverse,y=!f||f.reset;return createUpdate(se(we(se({},o),{loop:a,default:!1,pause:void 0,to:!d||isAsyncTo(s)?s:void 0,from:y?o.from:void 0,reset:y}),f))}}function createUpdate(o){const{to:a,from:s}=o=inferTo(o),c=new Set;return is$1.obj(a)&&findDefined(a,c),is$1.obj(s)&&findDefined(s,c),o.keys=c.size?Array.from(c):null,o}function declareUpdate(o){const a=createUpdate(o);return is$1.und(a.default)&&(a.default=getDefaultProps(a)),a}function findDefined(o,a){eachProp(o,(s,c)=>s!=null&&a.add(c))}var ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(o,a,s){o.animation[s]=a[s]!==getDefaultProp(a,s)?resolveProp(a[s],o.key):void 0}function sendEvent(o,a,...s){var c,f,d,y;(f=(c=o.animation)[a])==null||f.call(c,...s),(y=(d=o.defaultProps)[a])==null||y.call(d,...s)}var BATCHED_EVENTS=["onStart","onChange","onRest"],nextId2=1,Controller=class{constructor(o,a){this.id=nextId2++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),a&&(this._flush=a),o&&this.start(se({default:!0},o))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(o=>o.idle&&!o.isDelayed&&!o.isPaused)}get item(){return this._item}set item(o){this._item=o}get(){const o={};return this.each((a,s)=>o[s]=a.get()),o}set(o){for(const a in o){const s=o[a];is$1.und(s)||this.springs[a].set(s)}}update(o){return o&&this.queue.push(createUpdate(o)),this}start(o){let{queue:a}=this;return o?a=toArray$1(o).map(createUpdate):this.queue=[],this._flush?this._flush(this,a):(prepareKeys(this,a),flushUpdateQueue(this,a))}stop(o,a){if(o!==!!o&&(a=o),a){const s=this.springs;each$1(toArray$1(a),c=>s[c].stop(!!o))}else stopAsync(this._state,this._lastAsyncId),this.each(s=>s.stop(!!o));return this}pause(o){if(is$1.und(o))this.start({pause:!0});else{const a=this.springs;each$1(toArray$1(o),s=>a[s].pause())}return this}resume(o){if(is$1.und(o))this.start({pause:!1});else{const a=this.springs;each$1(toArray$1(o),s=>a[s].resume())}return this}each(o){eachProp(this.springs,o)}_onFrame(){const{onStart:o,onChange:a,onRest:s}=this._events,c=this._active.size>0,f=this._changed.size>0;(c&&!this._started||f&&!this._started)&&(this._started=!0,flush(o,([_,S])=>{S.value=this.get(),_(S,this,this._item)}));const d=!c&&this._started,y=f||d&&s.size?this.get():null;f&&a.size&&flush(a,([_,S])=>{S.value=y,_(S,this,this._item)}),d&&(this._started=!1,flush(s,([_,S])=>{S.value=y,_(S,this,this._item)}))}eventObserved(o){if(o.type=="change")this._changed.add(o.parent),o.idle||this._active.add(o.parent);else if(o.type=="idle")this._active.delete(o.parent);else return;raf.onFrame(this._onFrame)}};function flushUpdateQueue(o,a){return Promise.all(a.map(s=>flushUpdate(o,s))).then(s=>getCombinedResult(o,s))}function flushUpdate(o,a,s){return xt(this,null,function*(){const{keys:c,to:f,from:d,loop:y,onRest:_,onResolve:S}=a,b=is$1.obj(a.default)&&a.default;y&&(a.loop=!1),f===!1&&(a.to=null),d===!1&&(a.from=null);const $=is$1.arr(f)||is$1.fun(f)?f:void 0;$?(a.to=void 0,a.onRest=void 0,b&&(b.onRest=void 0)):each$1(BATCHED_EVENTS,A=>{const F=a[A];if(is$1.fun(F)){const j=o._events[A];a[A]=({finished:I,cancelled:M})=>{const L=j.get(F);L?(I||(L.finished=!1),M&&(L.cancelled=!0)):j.set(F,{value:null,finished:I||!1,cancelled:M||!1})},b&&(b[A]=a[A])}});const P=o._state;a.pause===!P.paused?(P.paused=a.pause,flushCalls(a.pause?P.pauseQueue:P.resumeQueue)):P.paused&&(a.pause=!0);const T=(c||Object.keys(o.springs)).map(A=>o.springs[A].start(a)),C=a.cancel===!0||getDefaultProp(a,"cancel")===!0;($||C&&P.asyncId)&&T.push(scheduleProps(++o._lastAsyncId,{props:a,state:P,actions:{pause:noop$4,resume:noop$4,start(A,F){C?(stopAsync(P,o._lastAsyncId),F(getCancelledResult(o))):(A.onRest=_,F(runAsync($,A,P,o)))}}})),P.paused&&(yield new Promise(A=>{P.resumeQueue.add(A)}));const O=getCombinedResult(o,yield Promise.all(T));if(y&&O.finished&&!(s&&O.noop)){const A=createLoopUpdate(a,y,f);if(A)return prepareKeys(o,[A]),flushUpdate(o,A,!0)}return S&&raf.batchedUpdates(()=>S(O,o,o.item)),O})}function getSprings(o,a){const s=se({},o.springs);return a&&each$1(toArray$1(a),c=>{is$1.und(c.keys)&&(c=createUpdate(c)),is$1.obj(c.to)||(c=we(se({},c),{to:void 0})),prepareSprings(s,c,f=>createSpring(f))}),setSprings(o,s),s}function setSprings(o,a){eachProp(a,(s,c)=>{o.springs[c]||(o.springs[c]=s,addFluidObserver(s,o))})}function createSpring(o,a){const s=new SpringValue;return s.key=o,a&&addFluidObserver(s,a),s}function prepareSprings(o,a,s){a.keys&&each$1(a.keys,c=>{(o[c]||(o[c]=s(c)))._prepareNode(a)})}function prepareKeys(o,a){each$1(a,s=>{prepareSprings(o.springs,s,c=>createSpring(c,o))})}var SpringContext=s=>{var c=s,{children:o}=c,a=fr(c,["children"]);const f=reactExports.useContext(ctx),d=a.pause||!!f.pause,y=a.immediate||!!f.immediate;a=useMemoOne(()=>({pause:d,immediate:y}),[d,y]);const{Provider:_}=ctx;return reactExports.createElement(_,{value:a},o)},ctx=makeContext(SpringContext,{});SpringContext.Provider=ctx.Provider;SpringContext.Consumer=ctx.Consumer;function makeContext(o,a){return Object.assign(o,reactExports.createContext(a)),o.Provider._context=o,o.Consumer._context=o,o}var SpringRef=()=>{const o=[],a=function(c){deprecateDirectCall();const f=[];return each$1(o,(d,y)=>{if(is$1.und(c))f.push(d.start());else{const _=s(c,d,y);_&&f.push(d.start(_))}}),f};a.current=o,a.add=function(c){o.includes(c)||o.push(c)},a.delete=function(c){const f=o.indexOf(c);~f&&o.splice(f,1)},a.pause=function(){return each$1(o,c=>c.pause(...arguments)),this},a.resume=function(){return each$1(o,c=>c.resume(...arguments)),this},a.set=function(c){each$1(o,(f,d)=>{const y=is$1.fun(c)?c(d,f):c;y&&f.set(y)})},a.start=function(c){const f=[];return each$1(o,(d,y)=>{if(is$1.und(c))f.push(d.start());else{const _=this._getProps(c,d,y);_&&f.push(d.start(_))}}),f},a.stop=function(){return each$1(o,c=>c.stop(...arguments)),this},a.update=function(c){return each$1(o,(f,d)=>f.update(this._getProps(c,f,d))),this};const s=function(c,f,d){return is$1.fun(c)?c(d,f):c};return a._getProps=s,a};function useSprings(o,a,s){const c=is$1.fun(a)&&a;c&&!s&&(s=[]);const f=reactExports.useMemo(()=>c||arguments.length==3?SpringRef():void 0,[]),d=reactExports.useRef(0),y=useForceUpdate(),_=reactExports.useMemo(()=>({ctrls:[],queue:[],flush(j,I){const M=getSprings(j,I);return d.current>0&&!_.queue.length&&!Object.keys(M).some(U=>!j.springs[U])?flushUpdateQueue(j,I):new Promise(U=>{setSprings(j,M),_.queue.push(()=>{U(flushUpdateQueue(j,I))}),y()})}}),[]),S=reactExports.useRef([..._.ctrls]),b=[],$=usePrev(o)||0;reactExports.useMemo(()=>{each$1(S.current.slice(o,$),j=>{detachRefs(j,f),j.stop(!0)}),S.current.length=o,P($,o)},[o]),reactExports.useMemo(()=>{P(0,Math.min($,o))},s);function P(j,I){for(let M=j;MgetSprings(j,b[I])),C=reactExports.useContext(SpringContext),O=usePrev(C),A=C!==O&&hasProps(C);useIsomorphicLayoutEffect$1(()=>{d.current++,_.ctrls=S.current;const{queue:j}=_;j.length&&(_.queue=[],each$1(j,I=>I())),each$1(S.current,(I,M)=>{f==null||f.add(I),A&&I.start({default:C});const L=b[M];L&&(replaceRef(I,L.ref),I.ref?I.queue.push(L):I.start(L))})}),useOnce(()=>()=>{each$1(_.ctrls,j=>j.stop(!0))});const F=T.map(j=>se({},j));return f?[F,f]:F}function useSpring(o,a){const s=is$1.fun(o),[[c],f]=useSprings(1,s?o:[o],s?a||[]:a);return s||arguments.length==2?[c,f]:c}var Interpolation=class extends FrameValue{constructor(o,a){super(),this.source=o,this.idle=!0,this._active=new Set,this.calc=createInterpolator(...a);const s=this._get(),c=getAnimatedType(s);setAnimated(this,c.create(s))}advance(o){const a=this._get(),s=this.get();isEqual$1(a,s)||(getAnimated(this).setValue(a),this._onChange(a,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const o=is$1.arr(this.source)?this.source.map(getFluidValue):toArray$1(getFluidValue(this.source));return this.calc(...o)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each$1(getPayload(this),o=>{o.done=!1}),globals_exports.skipAnimation?(raf.batchedUpdates(()=>this.advance()),becomeIdle(this)):frameLoop.start(this))}_attach(){let o=1;each$1(toArray$1(this.source),a=>{hasFluidValue(a)&&addFluidObserver(a,this),isFrameValue(a)&&(a.idle||this._active.add(a),o=Math.max(o,a.priority+1))}),this.priority=o,this._start()}_detach(){each$1(toArray$1(this.source),o=>{hasFluidValue(o)&&removeFluidObserver(o,this)}),this._active.clear(),becomeIdle(this)}eventObserved(o){o.type=="change"?o.idle?this.advance():(this._active.add(o.parent),this._start()):o.type=="idle"?this._active.delete(o.parent):o.type=="priority"&&(this.priority=toArray$1(this.source).reduce((a,s)=>Math.max(a,(isFrameValue(s)?s.priority:0)+1),0))}};function isIdle(o){return o.idle!==!1}function checkIdle(o){return!o.size||Array.from(o).every(isIdle)}function becomeIdle(o){o.idle||(o.idle=!0,each$1(getPayload(o),a=>{a.done=!0}),callFluidObservers(o,{type:"idle",parent:o}))}globals_exports.assign({createStringInterpolator:createStringInterpolator2,to:(o,a)=>new Interpolation(o,a)});var isCustomPropRE=/^--/;function dangerousStyleValue(o,a){return a==null||typeof a=="boolean"||a===""?"":typeof a=="number"&&a!==0&&!isCustomPropRE.test(o)&&!(isUnitlessNumber.hasOwnProperty(o)&&isUnitlessNumber[o])?a+"px":(""+a).trim()}var attributeCache={};function applyAnimatedValues(o,a){if(!o.nodeType||!o.setAttribute)return!1;const s=o.nodeName==="filter"||o.parentNode&&o.parentNode.nodeName==="filter",P=a,{style:c,children:f,scrollTop:d,scrollLeft:y,viewBox:_}=P,S=fr(P,["style","children","scrollTop","scrollLeft","viewBox"]),b=Object.values(S),$=Object.keys(S).map(T=>s||o.hasAttribute(T)?T:attributeCache[T]||(attributeCache[T]=T.replace(/([A-Z])/g,C=>"-"+C.toLowerCase())));f!==void 0&&(o.textContent=f);for(const T in c)if(c.hasOwnProperty(T)){const C=dangerousStyleValue(T,c[T]);isCustomPropRE.test(T)?o.style.setProperty(T,C):o.style[T]=C}$.forEach((T,C)=>{o.setAttribute(T,b[C])}),d!==void 0&&(o.scrollTop=d),y!==void 0&&(o.scrollLeft=y),_!==void 0&&o.setAttribute("viewBox",_)}var isUnitlessNumber={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},prefixKey=(o,a)=>o+a.charAt(0).toUpperCase()+a.substring(1),prefixes$1=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce((o,a)=>(prefixes$1.forEach(s=>o[prefixKey(s,a)]=o[a]),o),isUnitlessNumber);var domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(o,a)=>is$1.num(o)&&o!==0?o+a:o,isValueIdentity=(o,a)=>is$1.arr(o)?o.every(s=>isValueIdentity(s,a)):is$1.num(o)?o===a:parseFloat(o)===a,AnimatedStyle=class extends AnimatedObject{constructor(f){var d=f,{x:o,y:a,z:s}=d,c=fr(d,["x","y","z"]);const y=[],_=[];(o||a||s)&&(y.push([o||0,a||0,s||0]),_.push(S=>[`translate3d(${S.map(b=>addUnit(b,"px")).join(",")})`,isValueIdentity(S,0)])),eachProp(c,(S,b)=>{if(b==="transform")y.push([S||""]),_.push($=>[$,$===""]);else if(domTransforms.test(b)){if(delete c[b],is$1.und(S))return;const $=pxTransforms.test(b)?"px":degTransforms.test(b)?"deg":"";y.push(toArray$1(S)),_.push(b==="rotate3d"?([P,T,C,O])=>[`rotate3d(${P},${T},${C},${addUnit(O,$)})`,isValueIdentity(O,0)]:P=>[`${b}(${P.map(T=>addUnit(T,$)).join(",")})`,isValueIdentity(P,b.startsWith("scale")?1:0)])}}),y.length&&(c.transform=new FluidTransform(y,_)),super(c)}},FluidTransform=class extends FluidValue{constructor(o,a){super(),this.inputs=o,this.transforms=a,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let o="",a=!0;return each$1(this.inputs,(s,c)=>{const f=getFluidValue(s[0]),[d,y]=this.transforms[c](is$1.arr(f)?f:s.map(getFluidValue));o+=" "+d,a=a&&y}),a?"none":o}observerAdded(o){o==1&&each$1(this.inputs,a=>each$1(a,s=>hasFluidValue(s)&&addFluidObserver(s,this)))}observerRemoved(o){o==0&&each$1(this.inputs,a=>each$1(a,s=>hasFluidValue(s)&&removeFluidObserver(s,this)))}eventObserved(o){o.type=="change"&&(this._value=null),callFluidObservers(this,o)}},primitives=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];globals_exports.assign({batchedUpdates:reactDomExports.unstable_batchedUpdates,createStringInterpolator:createStringInterpolator2,colors:colors2});var host=createHost(primitives,{applyAnimatedValues,createAnimatedStyle:o=>new AnimatedStyle(o),getComponentProps:c=>{var f=c,{scrollTop:o,scrollLeft:a}=f,s=fr(f,["scrollTop","scrollLeft"]);return s}}),animated=host.animated;const useStyles$f=createStyles(()=>({"svg-icon":{display:"inline-block",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}));function SvgIcon$1({name:o,prefix:a="icon",size:s=16,style:c,className:f}){const{styles:d}=useStyles$f(),y=`#${a}-${o}`,_=se({width:`${s}px`,height:`${s}px`},c);return jsxRuntimeExports.jsx("svg",{className:`${d["svg-icon"]} ${f}`,style:_,"aria-hidden":"true",children:jsxRuntimeExports.jsx("use",{href:y})})}const useStyles$e=createStyles(({token:o})=>({"custom-card":{boxShadow:"rgba(145, 158, 171, 0.2) 0px 0px 2px 0px, rgba(145, 158, 171, 0.12) 0px 12px 24px -4px",transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",".ant-card-body":{padding:o.paddingMD}}})),createDot=(o,a,s,c,f=0)=>{const d=document.createElement("div");return d.style.position="absolute",d.style.left=`${s}px`,d.style.top=`${c}px`,d.style.width=`${f}px`,d.style.height=`${f}px`,d.style.borderRadius="50%",d.style.background=a,d.style.transform="translate(-50%, -50%)",d.style.transition="all 1s ease-out",o.appendChild(d),d},createHolder=o=>{const{borderWidth:a}=getComputedStyle(o),s=parseInt(a,10),c=document.createElement("div");return c.style.position="absolute",c.style.inset=`-${s}px`,c.style.borderRadius="inherit",c.style.background="transparent",c.style.zIndex="999",c.style.pointerEvents="none",c.style.overflow="hidden",o.appendChild(c),c},showInsetEffect=(o,{event:a,component:s})=>{const c=createHolder(o),f=c.getBoundingClientRect(),d=a.clientX-f.left,y=a.clientY-f.top,_=createDot(c,"rgba(255, 255, 255, 0.65)",d,y);requestAnimationFrame(()=>{_.ontransitionend=()=>{c.remove()},_.style.width="400px",_.style.height="400px",_.style.opacity="0"})},GlobalConfig=s=>{var c=s,{children:o}=c,a=fr(c,["children"]);const{styles:f}=useStyles$e(),d=()=>jsxRuntimeExports.jsxs("div",{style:{textAlign:"center"},children:[jsxRuntimeExports.jsx(SvgIcon$1,{name:"ic_content",size:120}),jsxRuntimeExports.jsx("p",{children:"Data Not Found"})]});return jsxRuntimeExports.jsx(ConfigProvider,we(se({wave:{showEffect:showInsetEffect},card:{className:f["custom-card"]},renderEmpty:d},a),{children:jsxRuntimeExports.jsx(App$1,{children:o})}))};var lib$3={},slider={},innerSlider={},initialState$3={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},s=a;o.default=s})(initialState$3);var FUNC_ERROR_TEXT$3="Expected a function",NAN$2=0/0,symbolTag$5="[object Symbol]",reTrim$1=/^\s+|\s+$/g,reIsBadHex$2=/^[-+]0x[0-9a-f]+$/i,reIsBinary$2=/^0b[01]+$/i,reIsOctal$2=/^0o[0-7]+$/i,freeParseInt$2=parseInt,freeGlobal$5=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf$3=typeof self=="object"&&self&&self.Object===Object&&self,root$6=freeGlobal$5||freeSelf$3||Function("return this")(),objectProto$j=Object.prototype,objectToString$5=objectProto$j.toString,nativeMax$3=Math.max,nativeMin$3=Math.min,now$4=function(){return root$6.Date.now()};function debounce$4(o,a,s){var c,f,d,y,_,S,b=0,$=!1,P=!1,T=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT$3);a=toNumber$3(a)||0,isObject$9(s)&&($=!!s.leading,P="maxWait"in s,d=P?nativeMax$3(toNumber$3(s.maxWait)||0,a):d,T="trailing"in s?!!s.trailing:T);function C(z){var H=c,G=f;return c=f=void 0,b=z,y=o.apply(G,H),y}function O(z){return b=z,_=setTimeout(j,a),$?C(z):y}function A(z){var H=z-S,G=z-b,X=a-H;return P?nativeMin$3(X,d-G):X}function F(z){var H=z-S,G=z-b;return S===void 0||H>=a||H<0||P&&G>=d}function j(){var z=now$4();if(F(z))return I(z);_=setTimeout(j,A(z))}function I(z){return _=void 0,T&&c?C(z):(c=f=void 0,y)}function M(){_!==void 0&&clearTimeout(_),b=0,c=S=f=_=void 0}function L(){return _===void 0?y:I(now$4())}function U(){var z=now$4(),H=F(z);if(c=arguments,f=this,S=z,H){if(_===void 0)return O(S);if(P)return _=setTimeout(j,a),C(S)}return _===void 0&&(_=setTimeout(j,a)),y}return U.cancel=M,U.flush=L,U}function isObject$9(o){var a=typeof o;return!!o&&(a=="object"||a=="function")}function isObjectLike$5(o){return!!o&&typeof o=="object"}function isSymbol$4(o){return typeof o=="symbol"||isObjectLike$5(o)&&objectToString$5.call(o)==symbolTag$5}function toNumber$3(o){if(typeof o=="number")return o;if(isSymbol$4(o))return NAN$2;if(isObject$9(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=isObject$9(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=o.replace(reTrim$1,"");var s=reIsBinary$2.test(o);return s||reIsOctal$2.test(o)?freeParseInt$2(o.slice(2),s?2:8):reIsBadHex$2.test(o)?NAN$2:+o}var lodash_debounce=debounce$4;const debounce$5=getDefaultExportFromCjs(lodash_debounce);var innerSliderUtils={};Object.defineProperty(innerSliderUtils,"__esModule",{value:!0});innerSliderUtils.checkSpecKeys=innerSliderUtils.checkNavigable=innerSliderUtils.changeSlide=innerSliderUtils.canUseDOM=innerSliderUtils.canGoNext=void 0;innerSliderUtils.clamp=clamp;innerSliderUtils.swipeStart=innerSliderUtils.swipeMove=innerSliderUtils.swipeEnd=innerSliderUtils.slidesOnRight=innerSliderUtils.slidesOnLeft=innerSliderUtils.slideHandler=innerSliderUtils.siblingDirection=innerSliderUtils.safePreventDefault=innerSliderUtils.lazyStartIndex=innerSliderUtils.lazySlidesOnRight=innerSliderUtils.lazySlidesOnLeft=innerSliderUtils.lazyEndIndex=innerSliderUtils.keyHandler=innerSliderUtils.initializedState=innerSliderUtils.getWidth=innerSliderUtils.getTrackLeft=innerSliderUtils.getTrackCSS=innerSliderUtils.getTrackAnimateCSS=innerSliderUtils.getTotalSlides=innerSliderUtils.getSwipeDirection=innerSliderUtils.getSlideCount=innerSliderUtils.getRequiredLazySlides=innerSliderUtils.getPreClones=innerSliderUtils.getPostClones=innerSliderUtils.getOnDemandLazySlides=innerSliderUtils.getNavigableIndexes=innerSliderUtils.getHeight=innerSliderUtils.extractObject=void 0;var _react$5=_interopRequireDefault$a(reactExports);function _interopRequireDefault$a(o){return o&&o.__esModule?o:{default:o}}function ownKeys$n(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$m(o){for(var a=1;a0?1:0):0};innerSliderUtils.lazySlidesOnLeft=lazySlidesOnLeft;var lazySlidesOnRight=function(a){return a.centerMode?Math.floor((a.slidesToShow-1)/2)+1+(parseInt(a.centerPadding)>0?1:0):a.slidesToShow};innerSliderUtils.lazySlidesOnRight=lazySlidesOnRight;var getWidth=function(a){return a&&a.offsetWidth||0};innerSliderUtils.getWidth=getWidth;var getHeight=function(a){return a&&a.offsetHeight||0};innerSliderUtils.getHeight=getHeight;var getSwipeDirection=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c,f,d,y;return c=a.startX-a.curX,f=a.startY-a.curY,d=Math.atan2(f,c),y=Math.round(d*180/Math.PI),y<0&&(y=360-Math.abs(y)),y<=45&&y>=0||y<=360&&y>=315?"left":y>=135&&y<=225?"right":s===!0?y>=35&&y<=135?"up":"down":"vertical"};innerSliderUtils.getSwipeDirection=getSwipeDirection;var canGoNext=function(a){var s=!0;return a.infinite||(a.centerMode&&a.currentSlide>=a.slideCount-1||a.slideCount<=a.slidesToShow||a.currentSlide>=a.slideCount-a.slidesToShow)&&(s=!1),s};innerSliderUtils.canGoNext=canGoNext;var extractObject=function(a,s){var c={};return s.forEach(function(f){return c[f]=a[f]}),c};innerSliderUtils.extractObject=extractObject;var initializedState=function(a){var s=_react$5.default.Children.count(a.children),c=a.listRef,f=Math.ceil(getWidth(c)),d=a.trackRef&&a.trackRef.node,y=Math.ceil(getWidth(d)),_;if(a.vertical)_=f;else{var S=a.centerMode&&parseInt(a.centerPadding)*2;typeof a.centerPadding=="string"&&a.centerPadding.slice(-1)==="%"&&(S*=f/100),_=Math.ceil((f-S)/a.slidesToShow)}var b=c&&getHeight(c.querySelector('[data-index="0"]')),$=b*a.slidesToShow,P=a.currentSlide===void 0?a.initialSlide:a.currentSlide;a.rtl&&a.currentSlide===void 0&&(P=s-1-a.initialSlide);var T=a.lazyLoadedList||[],C=getOnDemandLazySlides(_objectSpread$m(_objectSpread$m({},a),{},{currentSlide:P,lazyLoadedList:T}));T=T.concat(C);var O={slideCount:s,slideWidth:_,listWidth:f,trackWidth:y,currentSlide:P,slideHeight:b,listHeight:$,lazyLoadedList:T};return a.autoplaying===null&&a.autoplay&&(O.autoplaying="playing"),O};innerSliderUtils.initializedState=initializedState;var slideHandler=function(a){var s=a.waitForAnimate,c=a.animating,f=a.fade,d=a.infinite,y=a.index,_=a.slideCount,S=a.lazyLoad,b=a.currentSlide,$=a.centerMode,P=a.slidesToScroll,T=a.slidesToShow,C=a.useCSS,O=a.lazyLoadedList;if(s&&c)return{};var A=y,F,j,I,M={},L={},U=d?y:clamp(y,0,_-1);if(f){if(!d&&(y<0||y>=_))return{};y<0?A=y+_:y>=_&&(A=y-_),S&&O.indexOf(A)<0&&(O=O.concat(A)),M={animating:!0,currentSlide:A,lazyLoadedList:O,targetSlide:A},L={animating:!1,targetSlide:A}}else F=A,A<0?(F=A+_,d?_%P!==0&&(F=_-_%P):F=0):!canGoNext(a)&&A>b?A=F=b:$&&A>=_?(A=d?_:_-1,F=d?0:_-1):A>=_&&(F=A-_,d?_%P!==0&&(F=0):F=_-T),!d&&A+T>=_&&(F=_-T),j=getTrackLeft(_objectSpread$m(_objectSpread$m({},a),{},{slideIndex:A})),I=getTrackLeft(_objectSpread$m(_objectSpread$m({},a),{},{slideIndex:F})),d||(j===I&&(A=F),j=I),S&&(O=O.concat(getOnDemandLazySlides(_objectSpread$m(_objectSpread$m({},a),{},{currentSlide:A})))),C?(M={animating:!0,currentSlide:F,trackStyle:getTrackAnimateCSS(_objectSpread$m(_objectSpread$m({},a),{},{left:j})),lazyLoadedList:O,targetSlide:U},L={animating:!1,currentSlide:F,trackStyle:getTrackCSS(_objectSpread$m(_objectSpread$m({},a),{},{left:I})),swipeLeft:null,targetSlide:U}):M={currentSlide:F,trackStyle:getTrackCSS(_objectSpread$m(_objectSpread$m({},a),{},{left:I})),lazyLoadedList:O,targetSlide:U};return{state:M,nextState:L}};innerSliderUtils.slideHandler=slideHandler;var changeSlide=function(a,s){var c,f,d,y,_,S=a.slidesToScroll,b=a.slidesToShow,$=a.slideCount,P=a.currentSlide,T=a.targetSlide,C=a.lazyLoad,O=a.infinite;if(y=$%S!==0,c=y?0:($-P)%S,s.message==="previous")d=c===0?S:b-c,_=P-d,C&&!O&&(f=P-d,_=f===-1?$-1:f),O||(_=T-S);else if(s.message==="next")d=c===0?S:c,_=P+d,C&&!O&&(_=(P+S)%$+c),O||(_=T+S);else if(s.message==="dots")_=s.index*s.slidesToScroll;else if(s.message==="children"){if(_=s.index,O){var A=siblingDirection(_objectSpread$m(_objectSpread$m({},a),{},{targetSlide:_}));_>s.currentSlide&&A==="left"?_=_-$:_10)return{scrolling:!0};_&&(I.swipeLength=X);var W=(S?-1:1)*(I.curX>I.startX?1:-1);_&&(W=I.curY>I.startY?1:-1);var K=Math.ceil(A/F),ie=getSwipeDirection(s.touchObject,_),ee=I.swipeLength;return j||(b===0&&(ie==="right"||ie==="down")||b+1>=K&&(ie==="left"||ie==="up")||!canGoNext(s)&&(ie==="left"||ie==="up"))&&(ee=I.swipeLength*$,P===!1&&T&&(T(ie),H.edgeDragged=!0)),!C&&M&&(M(ie),H.swiped=!0),d?z=G+ee*(L/U)*W:S?z=G-ee*W:z=G+ee*W,_&&(z=G+ee*W),H=_objectSpread$m(_objectSpread$m({},H),{},{touchObject:I,swipeLeft:z,trackStyle:getTrackCSS(_objectSpread$m(_objectSpread$m({},s),{},{left:z}))}),Math.abs(I.curX-I.startX)10&&(H.swiping=!0,safePreventDefault(a)),H}};innerSliderUtils.swipeMove=swipeMove;var swipeEnd=function(a,s){var c=s.dragging,f=s.swipe,d=s.touchObject,y=s.listWidth,_=s.touchThreshold,S=s.verticalSwiping,b=s.listHeight,$=s.swipeToSlide,P=s.scrolling,T=s.onSwipe,C=s.targetSlide,O=s.currentSlide,A=s.infinite;if(!c)return f&&safePreventDefault(a),{};var F=S?b/_:y/_,j=getSwipeDirection(d,S),I={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(P||!d.swipeLength)return I;if(d.swipeLength>F){safePreventDefault(a),T&&T(j);var M,L,U=A?O:C;switch(j){case"left":case"up":L=U+getSlideCount(s),M=$?checkNavigable(s,L):L,I.currentDirection=0;break;case"right":case"down":L=U-getSlideCount(s),M=$?checkNavigable(s,L):L,I.currentDirection=1;break;default:M=U}I.triggerSlideHandler=M}else{var z=getTrackLeft(s);I.trackStyle=getTrackAnimateCSS(_objectSpread$m(_objectSpread$m({},s),{},{left:z}))}return I};innerSliderUtils.swipeEnd=swipeEnd;var getNavigableIndexes=function(a){for(var s=a.infinite?a.slideCount*2:a.slideCount,c=a.infinite?a.slidesToShow*-1:0,f=a.infinite?a.slidesToShow*-1:0,d=[];cc[c.length-1])s=c[c.length-1];else for(var d in c){if(sa.swipeLeft*-1)return c=S,!1}else if(S.offsetLeft-s+getWidth(S)/2>a.swipeLeft*-1)return c=S,!1;return!0}),!c)return 0;var y=a.rtl===!0?a.slideCount-a.currentSlide:a.currentSlide,_=Math.abs(c.dataset.index-y)||1;return _}else return a.slidesToScroll};innerSliderUtils.getSlideCount=getSlideCount;var checkSpecKeys=function(a,s){return s.reduce(function(c,f){return c&&a.hasOwnProperty(f)},!0)?null:void 0};innerSliderUtils.checkSpecKeys=checkSpecKeys;var getTrackCSS=function(a){checkSpecKeys(a,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var s,c,f=a.slideCount+2*a.slidesToShow;a.vertical?c=f*a.slideHeight:s=getTotalSlides(a)*a.slideWidth;var d={opacity:1,transition:"",WebkitTransition:""};if(a.useTransform){var y=a.vertical?"translate3d(0px, "+a.left+"px, 0px)":"translate3d("+a.left+"px, 0px, 0px)",_=a.vertical?"translate3d(0px, "+a.left+"px, 0px)":"translate3d("+a.left+"px, 0px, 0px)",S=a.vertical?"translateY("+a.left+"px)":"translateX("+a.left+"px)";d=_objectSpread$m(_objectSpread$m({},d),{},{WebkitTransform:y,transform:_,msTransform:S})}else a.vertical?d.top=a.left:d.left=a.left;return a.fade&&(d={opacity:1}),s&&(d.width=s),c&&(d.height=c),window&&!window.addEventListener&&window.attachEvent&&(a.vertical?d.marginTop=a.left+"px":d.marginLeft=a.left+"px"),d};innerSliderUtils.getTrackCSS=getTrackCSS;var getTrackAnimateCSS=function(a){checkSpecKeys(a,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var s=getTrackCSS(a);return a.useTransform?(s.WebkitTransition="-webkit-transform "+a.speed+"ms "+a.cssEase,s.transition="transform "+a.speed+"ms "+a.cssEase):a.vertical?s.transition="top "+a.speed+"ms "+a.cssEase:s.transition="left "+a.speed+"ms "+a.cssEase,s};innerSliderUtils.getTrackAnimateCSS=getTrackAnimateCSS;var getTrackLeft=function(a){if(a.unslick)return 0;checkSpecKeys(a,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var s=a.slideIndex,c=a.trackRef,f=a.infinite,d=a.centerMode,y=a.slideCount,_=a.slidesToShow,S=a.slidesToScroll,b=a.slideWidth,$=a.listWidth,P=a.variableWidth,T=a.slideHeight,C=a.fade,O=a.vertical,A=0,F,j,I=0;if(C||a.slideCount===1)return 0;var M=0;if(f?(M=-getPreClones(a),y%S!==0&&s+S>y&&(M=-(s>y?_-(s-y):y%S)),d&&(M+=parseInt(_/2))):(y%S!==0&&s+S>y&&(M=_-y%S),d&&(M=parseInt(_/2))),A=M*b,I=M*T,O?F=s*T*-1+I:F=s*b*-1+A,P===!0){var L,U=c&&c.node;if(L=s+getPreClones(a),j=U&&U.childNodes[L],F=j?j.offsetLeft*-1:0,d===!0){L=f?s+getPreClones(a):s,j=U&&U.children[L],F=0;for(var z=0;za.currentSlide?a.targetSlide>a.currentSlide+slidesOnRight(a)?"left":"right":a.targetSlide0&&(y+=1),f&&s%2===0&&(y+=1),y}return f?0:s-1};innerSliderUtils.slidesOnRight=slidesOnRight;var slidesOnLeft=function(a){var s=a.slidesToShow,c=a.centerMode,f=a.rtl,d=a.centerPadding;if(c){var y=(s-1)/2+1;return parseInt(d)>0&&(y+=1),!f&&s%2===0&&(y+=1),y}return f?s-1:0};innerSliderUtils.slidesOnLeft=slidesOnLeft;var canUseDOM=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)};innerSliderUtils.canUseDOM=canUseDOM;var track={};function _typeof$i(o){"@babel/helpers - typeof";return _typeof$i=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},_typeof$i(o)}Object.defineProperty(track,"__esModule",{value:!0});track.Track=void 0;var _react$4=_interopRequireDefault$9(reactExports),_classnames$3=_interopRequireDefault$9(classnamesExports),_innerSliderUtils$3=innerSliderUtils;function _interopRequireDefault$9(o){return o&&o.__esModule?o:{default:o}}function _extends$e(){return _extends$e=Object.assign||function(o){for(var a=1;a=a.slideCount,a.centerMode?(d=Math.floor(a.slidesToShow/2),c=(y-a.currentSlide)%a.slideCount===0,y>a.currentSlide-d-1&&y<=a.currentSlide+d&&(s=!0)):s=a.currentSlide<=y&&y=a.slideCount?_=a.targetSlide-a.slideCount:_=a.targetSlide;var S=y===_;return{"slick-slide":!0,"slick-active":s,"slick-center":c,"slick-cloned":f,"slick-current":S}},getSlideStyle=function(a){var s={};return(a.variableWidth===void 0||a.variableWidth===!1)&&(s.width=a.slideWidth),a.fade&&(s.position="relative",a.vertical?s.top=-a.index*parseInt(a.slideHeight):s.left=-a.index*parseInt(a.slideWidth),s.opacity=a.currentSlide===a.index?1:0,a.useCSS&&(s.transition="opacity "+a.speed+"ms "+a.cssEase+", visibility "+a.speed+"ms "+a.cssEase)),s},getKey$1=function(a,s){return a.key||s},renderSlides=function(a){var s,c=[],f=[],d=[],y=_react$4.default.Children.count(a.children),_=(0,_innerSliderUtils$3.lazyStartIndex)(a),S=(0,_innerSliderUtils$3.lazyEndIndex)(a);return _react$4.default.Children.forEach(a.children,function(b,$){var P,T={message:"children",index:$,slidesToScroll:a.slidesToScroll,currentSlide:a.currentSlide};!a.lazyLoad||a.lazyLoad&&a.lazyLoadedList.indexOf($)>=0?P=b:P=_react$4.default.createElement("div",null);var C=getSlideStyle(_objectSpread$l(_objectSpread$l({},a),{},{index:$})),O=P.props.className||"",A=getSlideClasses(_objectSpread$l(_objectSpread$l({},a),{},{index:$}));if(c.push(_react$4.default.cloneElement(P,{key:"original"+getKey$1(P,$),"data-index":$,className:(0,_classnames$3.default)(A,O),tabIndex:"-1","aria-hidden":!A["slick-active"],style:_objectSpread$l(_objectSpread$l({outline:"none"},P.props.style||{}),C),onClick:function(I){P.props&&P.props.onClick&&P.props.onClick(I),a.focusOnSelect&&a.focusOnSelect(T)}})),a.infinite&&a.fade===!1){var F=y-$;F<=(0,_innerSliderUtils$3.getPreClones)(a)&&y!==a.slidesToShow&&(s=-F,s>=_&&(P=b),A=getSlideClasses(_objectSpread$l(_objectSpread$l({},a),{},{index:s})),f.push(_react$4.default.cloneElement(P,{key:"precloned"+getKey$1(P,s),"data-index":s,tabIndex:"-1",className:(0,_classnames$3.default)(A,O),"aria-hidden":!A["slick-active"],style:_objectSpread$l(_objectSpread$l({},P.props.style||{}),C),onClick:function(I){P.props&&P.props.onClick&&P.props.onClick(I),a.focusOnSelect&&a.focusOnSelect(T)}}))),y!==a.slidesToShow&&(s=y+$,s=L&&T<=I:T===L}),z={message:"dots",index:F,slidesToScroll:b,currentSlide:T},H=this.clickHandler.bind(this,z);A=A.concat(_react$3.default.createElement("li",{key:F,className:U},_react$3.default.cloneElement(this.props.customPaging(F),{onClick:H})))}return _react$3.default.cloneElement(this.props.appendDots(A),_objectSpread$k({className:this.props.dotsClass},O))}}]),s}(_react$3.default.PureComponent);dots.Dots=Dots;var arrows={};function _typeof$g(o){"@babel/helpers - typeof";return _typeof$g=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},_typeof$g(o)}Object.defineProperty(arrows,"__esModule",{value:!0});arrows.PrevArrow=arrows.NextArrow=void 0;var _react$2=_interopRequireDefault$7(reactExports),_classnames$1=_interopRequireDefault$7(classnamesExports),_innerSliderUtils$1=innerSliderUtils;function _interopRequireDefault$7(o){return o&&o.__esModule?o:{default:o}}function _extends$d(){return _extends$d=Object.assign||function(o){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$8(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function ownKeys$j(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$i(o){for(var a=1;a0&&(f.setState(function(S){return{lazyLoadedList:S.lazyLoadedList.concat(y)}}),f.props.onLazyLoad&&f.props.onLazyLoad(y))}var _=_objectSpread$i({listRef:f.list,trackRef:f.track},f.props);f.updateState(_,!0,function(){f.adaptHeight(),f.props.autoplay&&f.autoPlay("update")}),f.props.lazyLoad==="progressive"&&(f.lazyLoadTimer=setInterval(f.progressiveLazyLoad,1e3)),f.ro=new _resizeObserverPolyfill.default(function(){f.state.animating?(f.onWindowResized(!1),f.callbackTimers.push(setTimeout(function(){return f.onWindowResized()},f.props.speed))):f.onWindowResized()}),f.ro.observe(f.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(S){S.onfocus=f.props.pauseOnFocus?f.onSlideFocus:null,S.onblur=f.props.pauseOnFocus?f.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",f.onWindowResized):window.attachEvent("onresize",f.onWindowResized)}),_defineProperty$k(_assertThisInitialized$1(f),"componentWillUnmount",function(){f.animationEndCallback&&clearTimeout(f.animationEndCallback),f.lazyLoadTimer&&clearInterval(f.lazyLoadTimer),f.callbackTimers.length&&(f.callbackTimers.forEach(function(y){return clearTimeout(y)}),f.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",f.onWindowResized):window.detachEvent("onresize",f.onWindowResized),f.autoplayTimer&&clearInterval(f.autoplayTimer),f.ro.disconnect()}),_defineProperty$k(_assertThisInitialized$1(f),"componentDidUpdate",function(y){if(f.checkImagesLoad(),f.props.onReInit&&f.props.onReInit(),f.props.lazyLoad){var _=(0,_innerSliderUtils.getOnDemandLazySlides)(_objectSpread$i(_objectSpread$i({},f.props),f.state));_.length>0&&(f.setState(function($){return{lazyLoadedList:$.lazyLoadedList.concat(_)}}),f.props.onLazyLoad&&f.props.onLazyLoad(_))}f.adaptHeight();var S=_objectSpread$i(_objectSpread$i({listRef:f.list,trackRef:f.track},f.props),f.state),b=f.didPropsChange(y);b&&f.updateState(S,b,function(){f.state.currentSlide>=_react$1.default.Children.count(f.props.children)&&f.changeSlide({message:"index",index:_react$1.default.Children.count(f.props.children)-f.props.slidesToShow,currentSlide:f.state.currentSlide}),f.props.autoplay?f.autoPlay("update"):f.pause("paused")})}),_defineProperty$k(_assertThisInitialized$1(f),"onWindowResized",function(y){f.debouncedResize&&f.debouncedResize.cancel(),f.debouncedResize=(0,_lodash.default)(function(){return f.resizeWindow(y)},50),f.debouncedResize()}),_defineProperty$k(_assertThisInitialized$1(f),"resizeWindow",function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,_=!!(f.track&&f.track.node);if(_){var S=_objectSpread$i(_objectSpread$i({listRef:f.list,trackRef:f.track},f.props),f.state);f.updateState(S,y,function(){f.props.autoplay?f.autoPlay("update"):f.pause("paused")}),f.setState({animating:!1}),clearTimeout(f.animationEndCallback),delete f.animationEndCallback}}),_defineProperty$k(_assertThisInitialized$1(f),"updateState",function(y,_,S){var b=(0,_innerSliderUtils.initializedState)(y);y=_objectSpread$i(_objectSpread$i(_objectSpread$i({},y),b),{},{slideIndex:b.currentSlide});var $=(0,_innerSliderUtils.getTrackLeft)(y);y=_objectSpread$i(_objectSpread$i({},y),{},{left:$});var P=(0,_innerSliderUtils.getTrackCSS)(y);(_||_react$1.default.Children.count(f.props.children)!==_react$1.default.Children.count(y.children))&&(b.trackStyle=P),f.setState(b,S)}),_defineProperty$k(_assertThisInitialized$1(f),"ssrInit",function(){if(f.props.variableWidth){var y=0,_=0,S=[],b=(0,_innerSliderUtils.getPreClones)(_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{slideCount:f.props.children.length})),$=(0,_innerSliderUtils.getPostClones)(_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{slideCount:f.props.children.length}));f.props.children.forEach(function(H){S.push(H.props.style.width),y+=H.props.style.width});for(var P=0;P=_&&f.onWindowResized()};if(!b.onclick)b.onclick=function(){return b.parentNode.focus()};else{var P=b.onclick;b.onclick=function(){P(),b.parentNode.focus()}}b.onload||(f.props.lazyLoad?b.onload=function(){f.adaptHeight(),f.callbackTimers.push(setTimeout(f.onWindowResized,f.props.speed))}:(b.onload=$,b.onerror=function(){$(),f.props.onLazyLoadError&&f.props.onLazyLoadError()}))})}),_defineProperty$k(_assertThisInitialized$1(f),"progressiveLazyLoad",function(){for(var y=[],_=_objectSpread$i(_objectSpread$i({},f.props),f.state),S=f.state.currentSlide;S=-(0,_innerSliderUtils.getPreClones)(_);b--)if(f.state.lazyLoadedList.indexOf(b)<0){y.push(b);break}y.length>0?(f.setState(function($){return{lazyLoadedList:$.lazyLoadedList.concat(y)}}),f.props.onLazyLoad&&f.props.onLazyLoad(y)):f.lazyLoadTimer&&(clearInterval(f.lazyLoadTimer),delete f.lazyLoadTimer)}),_defineProperty$k(_assertThisInitialized$1(f),"slideHandler",function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=f.props,b=S.asNavFor,$=S.beforeChange,P=S.onLazyLoad,T=S.speed,C=S.afterChange,O=f.state.currentSlide,A=(0,_innerSliderUtils.slideHandler)(_objectSpread$i(_objectSpread$i(_objectSpread$i({index:y},f.props),f.state),{},{trackRef:f.track,useCSS:f.props.useCSS&&!_})),F=A.state,j=A.nextState;if(F){$&&$(O,F.currentSlide);var I=F.lazyLoadedList.filter(function(M){return f.state.lazyLoadedList.indexOf(M)<0});P&&I.length>0&&P(I),!f.props.waitForAnimate&&f.animationEndCallback&&(clearTimeout(f.animationEndCallback),C&&C(O),delete f.animationEndCallback),f.setState(F,function(){b&&f.asNavForIndex!==y&&(f.asNavForIndex=y,b.innerSlider.slideHandler(y)),j&&(f.animationEndCallback=setTimeout(function(){var M=j.animating,L=_objectWithoutProperties$6(j,["animating"]);f.setState(L,function(){f.callbackTimers.push(setTimeout(function(){return f.setState({animating:M})},10)),C&&C(F.currentSlide),delete f.animationEndCallback})},T))})}}),_defineProperty$k(_assertThisInitialized$1(f),"changeSlide",function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=_objectSpread$i(_objectSpread$i({},f.props),f.state),b=(0,_innerSliderUtils.changeSlide)(S,y);if(!(b!==0&&!b)&&(_===!0?f.slideHandler(b,_):f.slideHandler(b),f.props.autoplay&&f.autoPlay("update"),f.props.focusOnSelect)){var $=f.list.querySelectorAll(".slick-current");$[0]&&$[0].focus()}}),_defineProperty$k(_assertThisInitialized$1(f),"clickHandler",function(y){f.clickable===!1&&(y.stopPropagation(),y.preventDefault()),f.clickable=!0}),_defineProperty$k(_assertThisInitialized$1(f),"keyHandler",function(y){var _=(0,_innerSliderUtils.keyHandler)(y,f.props.accessibility,f.props.rtl);_!==""&&f.changeSlide({message:_})}),_defineProperty$k(_assertThisInitialized$1(f),"selectHandler",function(y){f.changeSlide(y)}),_defineProperty$k(_assertThisInitialized$1(f),"disableBodyScroll",function(){var y=function(S){S=S||window.event,S.preventDefault&&S.preventDefault(),S.returnValue=!1};window.ontouchmove=y}),_defineProperty$k(_assertThisInitialized$1(f),"enableBodyScroll",function(){window.ontouchmove=null}),_defineProperty$k(_assertThisInitialized$1(f),"swipeStart",function(y){f.props.verticalSwiping&&f.disableBodyScroll();var _=(0,_innerSliderUtils.swipeStart)(y,f.props.swipe,f.props.draggable);_!==""&&f.setState(_)}),_defineProperty$k(_assertThisInitialized$1(f),"swipeMove",function(y){var _=(0,_innerSliderUtils.swipeMove)(y,_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{trackRef:f.track,listRef:f.list,slideIndex:f.state.currentSlide}));_&&(_.swiping&&(f.clickable=!1),f.setState(_))}),_defineProperty$k(_assertThisInitialized$1(f),"swipeEnd",function(y){var _=(0,_innerSliderUtils.swipeEnd)(y,_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{trackRef:f.track,listRef:f.list,slideIndex:f.state.currentSlide}));if(_){var S=_.triggerSlideHandler;delete _.triggerSlideHandler,f.setState(_),S!==void 0&&(f.slideHandler(S),f.props.verticalSwiping&&f.enableBodyScroll())}}),_defineProperty$k(_assertThisInitialized$1(f),"touchEnd",function(y){f.swipeEnd(y),f.clickable=!0}),_defineProperty$k(_assertThisInitialized$1(f),"slickPrev",function(){f.callbackTimers.push(setTimeout(function(){return f.changeSlide({message:"previous"})},0))}),_defineProperty$k(_assertThisInitialized$1(f),"slickNext",function(){f.callbackTimers.push(setTimeout(function(){return f.changeSlide({message:"next"})},0))}),_defineProperty$k(_assertThisInitialized$1(f),"slickGoTo",function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(y=Number(y),isNaN(y))return"";f.callbackTimers.push(setTimeout(function(){return f.changeSlide({message:"index",index:y,currentSlide:f.state.currentSlide},_)},0))}),_defineProperty$k(_assertThisInitialized$1(f),"play",function(){var y;if(f.props.rtl)y=f.state.currentSlide-f.props.slidesToScroll;else if((0,_innerSliderUtils.canGoNext)(_objectSpread$i(_objectSpread$i({},f.props),f.state)))y=f.state.currentSlide+f.props.slidesToScroll;else return!1;f.slideHandler(y)}),_defineProperty$k(_assertThisInitialized$1(f),"autoPlay",function(y){f.autoplayTimer&&clearInterval(f.autoplayTimer);var _=f.state.autoplaying;if(y==="update"){if(_==="hovered"||_==="focused"||_==="paused")return}else if(y==="leave"){if(_==="paused"||_==="focused")return}else if(y==="blur"&&(_==="paused"||_==="hovered"))return;f.autoplayTimer=setInterval(f.play,f.props.autoplaySpeed+50),f.setState({autoplaying:"playing"})}),_defineProperty$k(_assertThisInitialized$1(f),"pause",function(y){f.autoplayTimer&&(clearInterval(f.autoplayTimer),f.autoplayTimer=null);var _=f.state.autoplaying;y==="paused"?f.setState({autoplaying:"paused"}):y==="focused"?(_==="hovered"||_==="playing")&&f.setState({autoplaying:"focused"}):_==="playing"&&f.setState({autoplaying:"hovered"})}),_defineProperty$k(_assertThisInitialized$1(f),"onDotsOver",function(){return f.props.autoplay&&f.pause("hovered")}),_defineProperty$k(_assertThisInitialized$1(f),"onDotsLeave",function(){return f.props.autoplay&&f.state.autoplaying==="hovered"&&f.autoPlay("leave")}),_defineProperty$k(_assertThisInitialized$1(f),"onTrackOver",function(){return f.props.autoplay&&f.pause("hovered")}),_defineProperty$k(_assertThisInitialized$1(f),"onTrackLeave",function(){return f.props.autoplay&&f.state.autoplaying==="hovered"&&f.autoPlay("leave")}),_defineProperty$k(_assertThisInitialized$1(f),"onSlideFocus",function(){return f.props.autoplay&&f.pause("focused")}),_defineProperty$k(_assertThisInitialized$1(f),"onSlideBlur",function(){return f.props.autoplay&&f.state.autoplaying==="focused"&&f.autoPlay("blur")}),_defineProperty$k(_assertThisInitialized$1(f),"render",function(){var y=(0,_classnames.default)("slick-slider",f.props.className,{"slick-vertical":f.props.vertical,"slick-initialized":!0}),_=_objectSpread$i(_objectSpread$i({},f.props),f.state),S=(0,_innerSliderUtils.extractObject)(_,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),b=f.props.pauseOnHover;S=_objectSpread$i(_objectSpread$i({},S),{},{onMouseEnter:b?f.onTrackOver:null,onMouseLeave:b?f.onTrackLeave:null,onMouseOver:b?f.onTrackOver:null,focusOnSelect:f.props.focusOnSelect&&f.clickable?f.selectHandler:null});var $;if(f.props.dots===!0&&f.state.slideCount>=f.props.slidesToShow){var P=(0,_innerSliderUtils.extractObject)(_,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),T=f.props.pauseOnDotsHover;P=_objectSpread$i(_objectSpread$i({},P),{},{clickHandler:f.changeSlide,onMouseEnter:T?f.onDotsLeave:null,onMouseOver:T?f.onDotsOver:null,onMouseLeave:T?f.onDotsLeave:null}),$=_react$1.default.createElement(_dots.Dots,P)}var C,O,A=(0,_innerSliderUtils.extractObject)(_,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);A.clickHandler=f.changeSlide,f.props.arrows&&(C=_react$1.default.createElement(_arrows.PrevArrow,A),O=_react$1.default.createElement(_arrows.NextArrow,A));var F=null;f.props.vertical&&(F={height:f.state.listHeight});var j=null;f.props.vertical===!1?f.props.centerMode===!0&&(j={padding:"0px "+f.props.centerPadding}):f.props.centerMode===!0&&(j={padding:f.props.centerPadding+" 0px"});var I=_objectSpread$i(_objectSpread$i({},F),j),M=f.props.touchMove,L={className:"slick-list",style:I,onClick:f.clickHandler,onMouseDown:M?f.swipeStart:null,onMouseMove:f.state.dragging&&M?f.swipeMove:null,onMouseUp:M?f.swipeEnd:null,onMouseLeave:f.state.dragging&&M?f.swipeEnd:null,onTouchStart:M?f.swipeStart:null,onTouchMove:f.state.dragging&&M?f.swipeMove:null,onTouchEnd:M?f.touchEnd:null,onTouchCancel:f.state.dragging&&M?f.swipeEnd:null,onKeyDown:f.props.accessibility?f.keyHandler:null},U={className:y,dir:"ltr",style:f.props.style};return f.props.unslick&&(L={className:"slick-list"},U={className:y}),_react$1.default.createElement("div",U,f.props.unslick?"":C,_react$1.default.createElement("div",_extends$c({ref:f.listRefHandler},L),_react$1.default.createElement(_track.Track,_extends$c({ref:f.trackRefHandler},S),f.props.children)),f.props.unslick?"":O,f.props.unslick?"":$)}),f.list=null,f.track=null,f.state=_objectSpread$i(_objectSpread$i({},_initialState.default),{},{currentSlide:f.props.initialSlide,slideCount:_react$1.default.Children.count(f.props.children)}),f.callbackTimers=[],f.clickable=!0,f.debouncedResize=null;var d=f.ssrInit();return f.state=_objectSpread$i(_objectSpread$i({},f.state),d),f}return _createClass$1(s,[{key:"didPropsChange",value:function(f){for(var d=!1,y=0,_=Object.keys(this.props);y<_.length;y++){var S=_[y];if(!f.hasOwnProperty(S)){d=!0;break}if(!(_typeof$f(f[S])==="object"||typeof f[S]=="function")&&f[S]!==this.props[S]){d=!0;break}}return d||_react$1.default.Children.count(this.props.children)!==_react$1.default.Children.count(f.children)}}]),s}(_react$1.default.Component);innerSlider.InnerSlider=InnerSlider;var defaultProps$1={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=s(reactExports);function s(d){return d&&d.__esModule?d:{default:d}}var c={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(y){return a.default.createElement("ul",{style:{display:"block"}},y)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(y){return a.default.createElement("button",null,y+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},f=c;o.default=f})(defaultProps$1);var QueryHandler_1,hasRequiredQueryHandler;function requireQueryHandler(){if(hasRequiredQueryHandler)return QueryHandler_1;hasRequiredQueryHandler=1;function o(a){this.options=a,!a.deferSetup&&this.setup()}return o.prototype={constructor:o,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a){return this.options===a||this.options.match===a}},QueryHandler_1=o,QueryHandler_1}var Util$1,hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return Util$1;hasRequiredUtil=1;function o(c,f){var d=0,y=c.length,_;for(d;d1&&arguments[1]!==void 0?arguments[1]:!1;return ie.innerSlider.slickGoTo(ee,de)}),U(I(ie),"slickPause",function(){return ie.innerSlider.pause("paused")}),U(I(ie),"slickPlay",function(){return ie.innerSlider.autoPlay("play")}),ie.state={breakpoint:null},ie._responsiveMediaHandlers=[],ie}return C(W,[{key:"media",value:function(ie,ee){z.register(ie,ee),this._responsiveMediaHandlers.push({query:ie,handler:ee})}},{key:"componentDidMount",value:function(){var ie=this;if(this.props.responsive){var ee=this.props.responsive.map(function(Z){return Z.breakpoint});ee.sort(function(Z,Q){return Z-Q}),ee.forEach(function(Z,Q){var J;Q===0?J=(0,f.default)({minWidth:0,maxWidth:Z}):J=(0,f.default)({minWidth:ee[Q-1]+1,maxWidth:Z}),(0,y.canUseDOM)()&&ie.media(J,function(){ie.setState({breakpoint:Z})})});var de=(0,f.default)({minWidth:ee.slice(-1)[0]});(0,y.canUseDOM)()&&this.media(de,function(){ie.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(ie){z.unregister(ie.query,ie.handler)})}},{key:"render",value:function(){var ie=this,ee,de;this.state.breakpoint?(de=this.props.responsive.filter(function(pe){return pe.breakpoint===ie.state.breakpoint}),ee=de[0].settings==="unslick"?"unslick":$($($({},d.default),this.props),de[0].settings)):ee=$($({},d.default),this.props),ee.centerMode&&(ee.slidesToScroll>1,ee.slidesToScroll=1),ee.fade&&(ee.slidesToShow>1,ee.slidesToScroll>1,ee.slidesToShow=1,ee.slidesToScroll=1);var Z=s.default.Children.toArray(this.props.children);Z=Z.filter(function(pe){return typeof pe=="string"?!!pe.trim():!!pe}),ee.variableWidth&&(ee.rows>1||ee.slidesPerRow>1)&&(ee.variableWidth=!1);for(var Q=[],J=null,ne=0;ne=Z.length));ce+=1)ae.push(s.default.cloneElement(Z[ce],{key:100*ne+10*le+ce,tabIndex:-1,style:{width:"".concat(100/ee.slidesPerRow,"%"),display:"inline-block"}}));fe.push(s.default.createElement("div",{key:10*ne+le},ae))}ee.variableWidth?Q.push(s.default.createElement("div",{key:ne,style:{width:J}},fe)):Q.push(s.default.createElement("div",{key:ne},fe))}if(ee==="unslick"){var ge="regular slider "+(this.props.className||"");return s.default.createElement("div",{className:ge},Z)}else Q.length<=ee.slidesToShow&&(ee.unslick=!0);return s.default.createElement(c.InnerSlider,S({style:this.props.style,ref:this.innerSliderRefHandler},ee),Q)}}]),W}(s.default.Component);o.default=H})(slider);(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=s(slider);function s(f){return f&&f.__esModule?f:{default:f}}var c=a.default;o.default=c})(lib$3);const Slider=getDefaultExportFromCjs(lib$3);var lib$2={exports:{}},_FullInternals={},_CoreInternals={},Global={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o._registerNode=o.Konva=o.glob=void 0;const a=Math.PI/180;function s(){return typeof window!="undefined"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}o.glob=typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"?self:{},o.Konva={_global:o.glob,version:"9.3.3",isBrowser:s(),isUnminified:/param/.test(function(f){}.toString()),dblClickWindow:400,getAngle(f){return o.Konva.angleDeg?f*a:f},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window!="undefined"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return o.Konva.DD.isDragging},isDragReady(){return!!o.Konva.DD.node},releaseCanvasOnDestroy:!0,document:o.glob.document,_injectGlobal(f){o.glob.Konva=f}};const c=f=>{o.Konva[f.prototype.getClassName()]=f};o._registerNode=c,o.Konva._injectGlobal(o.Konva)})(Global);var Util={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Util=o.Transform=void 0;const a=Global;class s{constructor(L=[1,0,0,1,0,0]){this.dirty=!1,this.m=L&&L.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new s(this.m)}copyInto(L){L.m[0]=this.m[0],L.m[1]=this.m[1],L.m[2]=this.m[2],L.m[3]=this.m[3],L.m[4]=this.m[4],L.m[5]=this.m[5]}point(L){var U=this.m;return{x:U[0]*L.x+U[2]*L.y+U[4],y:U[1]*L.x+U[3]*L.y+U[5]}}translate(L,U){return this.m[4]+=this.m[0]*L+this.m[2]*U,this.m[5]+=this.m[1]*L+this.m[3]*U,this}scale(L,U){return this.m[0]*=L,this.m[1]*=L,this.m[2]*=U,this.m[3]*=U,this}rotate(L){var U=Math.cos(L),z=Math.sin(L),H=this.m[0]*U+this.m[2]*z,G=this.m[1]*U+this.m[3]*z,X=this.m[0]*-z+this.m[2]*U,W=this.m[1]*-z+this.m[3]*U;return this.m[0]=H,this.m[1]=G,this.m[2]=X,this.m[3]=W,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(L,U){var z=this.m[0]+this.m[2]*U,H=this.m[1]+this.m[3]*U,G=this.m[2]+this.m[0]*L,X=this.m[3]+this.m[1]*L;return this.m[0]=z,this.m[1]=H,this.m[2]=G,this.m[3]=X,this}multiply(L){var U=this.m[0]*L.m[0]+this.m[2]*L.m[1],z=this.m[1]*L.m[0]+this.m[3]*L.m[1],H=this.m[0]*L.m[2]+this.m[2]*L.m[3],G=this.m[1]*L.m[2]+this.m[3]*L.m[3],X=this.m[0]*L.m[4]+this.m[2]*L.m[5]+this.m[4],W=this.m[1]*L.m[4]+this.m[3]*L.m[5]+this.m[5];return this.m[0]=U,this.m[1]=z,this.m[2]=H,this.m[3]=G,this.m[4]=X,this.m[5]=W,this}invert(){var L=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),U=this.m[3]*L,z=-this.m[1]*L,H=-this.m[2]*L,G=this.m[0]*L,X=L*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),W=L*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=U,this.m[1]=z,this.m[2]=H,this.m[3]=G,this.m[4]=X,this.m[5]=W,this}getMatrix(){return this.m}decompose(){var L=this.m[0],U=this.m[1],z=this.m[2],H=this.m[3],G=this.m[4],X=this.m[5],W=L*H-U*z;let K={x:G,y:X,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(L!=0||U!=0){var ie=Math.sqrt(L*L+U*U);K.rotation=U>0?Math.acos(L/ie):-Math.acos(L/ie),K.scaleX=ie,K.scaleY=W/ie,K.skewX=(L*z+U*H)/W,K.skewY=0}else if(z!=0||H!=0){var ee=Math.sqrt(z*z+H*H);K.rotation=Math.PI/2-(H>0?Math.acos(-z/ee):-Math.acos(z/ee)),K.scaleX=W/ee,K.scaleY=ee,K.skewX=0,K.skewY=(L*z+U*H)/W}return K.rotation=o.Util._getRotation(K.rotation),K}}o.Transform=s;var c="[object Array]",f="[object Number]",d="[object String]",y="[object Boolean]",_=Math.PI/180,S=180/Math.PI,b="#",$="",P="0",T="Konva warning: ",C="Konva error: ",O="rgb(",A={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},F=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,j=[];const I=typeof requestAnimationFrame!="undefined"&&requestAnimationFrame||function(M){setTimeout(M,60)};o.Util={_isElement(M){return!!(M&&M.nodeType==1)},_isFunction(M){return!!(M&&M.constructor&&M.call&&M.apply)},_isPlainObject(M){return!!M&&M.constructor===Object},_isArray(M){return Object.prototype.toString.call(M)===c},_isNumber(M){return Object.prototype.toString.call(M)===f&&!isNaN(M)&&isFinite(M)},_isString(M){return Object.prototype.toString.call(M)===d},_isBoolean(M){return Object.prototype.toString.call(M)===y},isObject(M){return M instanceof Object},isValidSelector(M){if(typeof M!="string")return!1;var L=M[0];return L==="#"||L==="."||L===L.toUpperCase()},_sign(M){return M===0||M>0?1:-1},requestAnimFrame(M){j.push(M),j.length===1&&I(function(){const L=j;j=[],L.forEach(function(U){U()})})},createCanvasElement(){var M=document.createElement("canvas");try{M.style=M.style||{}}catch(L){}return M},createImageElement(){return document.createElement("img")},_isInDocument(M){for(;M=M.parentNode;)if(M==document)return!0;return!1},_urlToImage(M,L){var U=o.Util.createImageElement();U.onload=function(){L(U)},U.src=M},_rgbToHex(M,L,U){return((1<<24)+(M<<16)+(L<<8)+U).toString(16).slice(1)},_hexToRgb(M){M=M.replace(b,$);var L=parseInt(M,16);return{r:L>>16&255,g:L>>8&255,b:L&255}},getRandomColor(){for(var M=(Math.random()*16777215<<0).toString(16);M.length<6;)M=P+M;return b+M},getRGB(M){var L;return M in A?(L=A[M],{r:L[0],g:L[1],b:L[2]}):M[0]===b?this._hexToRgb(M.substring(1)):M.substr(0,4)===O?(L=F.exec(M.replace(/ /g,"")),{r:parseInt(L[1],10),g:parseInt(L[2],10),b:parseInt(L[3],10)}):{r:0,g:0,b:0}},colorToRGBA(M){return M=M||"black",o.Util._namedColorToRBA(M)||o.Util._hex3ColorToRGBA(M)||o.Util._hex4ColorToRGBA(M)||o.Util._hex6ColorToRGBA(M)||o.Util._hex8ColorToRGBA(M)||o.Util._rgbColorToRGBA(M)||o.Util._rgbaColorToRGBA(M)||o.Util._hslColorToRGBA(M)},_namedColorToRBA(M){var L=A[M.toLowerCase()];return L?{r:L[0],g:L[1],b:L[2],a:1}:null},_rgbColorToRGBA(M){if(M.indexOf("rgb(")===0){M=M.match(/rgb\(([^)]+)\)/)[1];var L=M.split(/ *, */).map(Number);return{r:L[0],g:L[1],b:L[2],a:1}}},_rgbaColorToRGBA(M){if(M.indexOf("rgba(")===0){M=M.match(/rgba\(([^)]+)\)/)[1];var L=M.split(/ *, */).map((U,z)=>U.slice(-1)==="%"?z===3?parseInt(U)/100:parseInt(U)/100*255:Number(U));return{r:L[0],g:L[1],b:L[2],a:L[3]}}},_hex8ColorToRGBA(M){if(M[0]==="#"&&M.length===9)return{r:parseInt(M.slice(1,3),16),g:parseInt(M.slice(3,5),16),b:parseInt(M.slice(5,7),16),a:parseInt(M.slice(7,9),16)/255}},_hex6ColorToRGBA(M){if(M[0]==="#"&&M.length===7)return{r:parseInt(M.slice(1,3),16),g:parseInt(M.slice(3,5),16),b:parseInt(M.slice(5,7),16),a:1}},_hex4ColorToRGBA(M){if(M[0]==="#"&&M.length===5)return{r:parseInt(M[1]+M[1],16),g:parseInt(M[2]+M[2],16),b:parseInt(M[3]+M[3],16),a:parseInt(M[4]+M[4],16)/255}},_hex3ColorToRGBA(M){if(M[0]==="#"&&M.length===4)return{r:parseInt(M[1]+M[1],16),g:parseInt(M[2]+M[2],16),b:parseInt(M[3]+M[3],16),a:1}},_hslColorToRGBA(M){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(M)){const[L,...U]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(M),z=Number(U[0])/360,H=Number(U[1])/100,G=Number(U[2])/100;let X,W,K;if(H===0)return K=G*255,{r:Math.round(K),g:Math.round(K),b:Math.round(K),a:1};G<.5?X=G*(1+H):X=G+H-G*H;const ie=2*G-X,ee=[0,0,0];for(let de=0;de<3;de++)W=z+1/3*-(de-1),W<0&&W++,W>1&&W--,6*W<1?K=ie+(X-ie)*6*W:2*W<1?K=X:3*W<2?K=ie+(X-ie)*(2/3-W)*6:K=ie,ee[de]=K*255;return{r:Math.round(ee[0]),g:Math.round(ee[1]),b:Math.round(ee[2]),a:1}}},haveIntersection(M,L){return!(L.x>M.x+M.width||L.x+L.widthM.y+M.height||L.y+L.height1?(X=U,W=z,K=(U-H)*(U-H)+(z-G)*(z-G)):(X=M+ee*(U-M),W=L+ee*(z-L),K=(X-H)*(X-H)+(W-G)*(W-G))}return[X,W,K]},_getProjectionToLine(M,L,U){var z=o.Util.cloneObject(M),H=Number.MAX_VALUE;return L.forEach(function(G,X){if(!(!U&&X===L.length-1)){var W=L[(X+1)%L.length],K=o.Util._getProjectionToSegment(G.x,G.y,W.x,W.y,M.x,M.y),ie=K[0],ee=K[1],de=K[2];deL.length){var X=L;L=M,M=X}for(z=0;z{L.width=0,L.height=0})},drawRoundedRectPath(M,L,U,z){let H=0,G=0,X=0,W=0;typeof z=="number"?H=G=X=W=Math.min(z,L/2,U/2):(H=Math.min(z[0]||0,L/2,U/2),G=Math.min(z[1]||0,L/2,U/2),W=Math.min(z[2]||0,L/2,U/2),X=Math.min(z[3]||0,L/2,U/2)),M.moveTo(H,0),M.lineTo(L-G,0),M.arc(L-G,G,G,Math.PI*3/2,0,!1),M.lineTo(L,U-W),M.arc(L-W,U-W,W,0,Math.PI/2,!1),M.lineTo(X,U),M.arc(X,U-X,X,Math.PI/2,Math.PI,!1),M.lineTo(0,H),M.arc(H,H,H,Math.PI,Math.PI*3/2,!1)}}})(Util);var Node$1={},Factory={},Validators={};Object.defineProperty(Validators,"__esModule",{value:!0});Validators.getComponentValidator=Validators.getBooleanValidator=Validators.getNumberArrayValidator=Validators.getFunctionValidator=Validators.getStringOrGradientValidator=Validators.getStringValidator=Validators.getNumberOrAutoValidator=Validators.getNumberOrArrayOfNumbersValidator=Validators.getNumberValidator=Validators.alphaComponent=Validators.RGBComponent=void 0;const Global_1$p=Global,Util_1$f=Util;function _formatValue(o){return Util_1$f.Util._isString(o)?'"'+o+'"':Object.prototype.toString.call(o)==="[object Number]"||Util_1$f.Util._isBoolean(o)?o:Object.prototype.toString.call(o)}function RGBComponent(o){return o>255?255:o<0?0:Math.round(o)}Validators.RGBComponent=RGBComponent;function alphaComponent(o){return o>1?1:o<1e-4?1e-4:o}Validators.alphaComponent=alphaComponent;function getNumberValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){return Util_1$f.Util._isNumber(o)||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a number.'),o}}Validators.getNumberValidator=getNumberValidator;function getNumberOrArrayOfNumbersValidator(o){if(Global_1$p.Konva.isUnminified)return function(a,s){let c=Util_1$f.Util._isNumber(a),f=Util_1$f.Util._isArray(a)&&a.length==o;return!c&&!f&&Util_1$f.Util.warn(_formatValue(a)+' is a not valid value for "'+s+'" attribute. The value should be a number or Array('+o+")"),a}}Validators.getNumberOrArrayOfNumbersValidator=getNumberOrArrayOfNumbersValidator;function getNumberOrAutoValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){var s=Util_1$f.Util._isNumber(o),c=o==="auto";return s||c||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a number or "auto".'),o}}Validators.getNumberOrAutoValidator=getNumberOrAutoValidator;function getStringValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){return Util_1$f.Util._isString(o)||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a string.'),o}}Validators.getStringValidator=getStringValidator;function getStringOrGradientValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){const s=Util_1$f.Util._isString(o),c=Object.prototype.toString.call(o)==="[object CanvasGradient]"||o&&o.addColorStop;return s||c||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a string or a native gradient.'),o}}Validators.getStringOrGradientValidator=getStringOrGradientValidator;function getFunctionValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){return Util_1$f.Util._isFunction(o)||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a function.'),o}}Validators.getFunctionValidator=getFunctionValidator;function getNumberArrayValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){const s=Int8Array?Object.getPrototypeOf(Int8Array):null;return s&&o instanceof s||(Util_1$f.Util._isArray(o)?o.forEach(function(c){Util_1$f.Util._isNumber(c)||Util_1$f.Util.warn('"'+a+'" attribute has non numeric element '+c+". Make sure that all elements are numbers.")}):Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a array of numbers.')),o}}Validators.getNumberArrayValidator=getNumberArrayValidator;function getBooleanValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){var s=o===!0||o===!1;return s||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a boolean.'),o}}Validators.getBooleanValidator=getBooleanValidator;function getComponentValidator(o){if(Global_1$p.Konva.isUnminified)return function(a,s){return a==null||Util_1$f.Util.isObject(a)||Util_1$f.Util.warn(_formatValue(a)+' is a not valid value for "'+s+'" attribute. The value should be an object with properties '+o),a}}Validators.getComponentValidator=getComponentValidator;(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Factory=void 0;const a=Util,s=Validators;var c="get",f="set";o.Factory={addGetterSetter(d,y,_,S,b){o.Factory.addGetter(d,y,_),o.Factory.addSetter(d,y,S,b),o.Factory.addOverloadedGetterSetter(d,y)},addGetter(d,y,_){var S=c+a.Util._capitalize(y);d.prototype[S]=d.prototype[S]||function(){var b=this.attrs[y];return b===void 0?_:b}},addSetter(d,y,_,S){var b=f+a.Util._capitalize(y);d.prototype[b]||o.Factory.overWriteSetter(d,y,_,S)},overWriteSetter(d,y,_,S){var b=f+a.Util._capitalize(y);d.prototype[b]=function($){return _&&$!==void 0&&$!==null&&($=_.call(this,$,y)),this._setAttr(y,$),S&&S.call(this),this}},addComponentsGetterSetter(d,y,_,S,b){var $=_.length,P=a.Util._capitalize,T=c+P(y),C=f+P(y),O,A;d.prototype[T]=function(){var j={};for(O=0;O<$;O++)A=_[O],j[A]=this.getAttr(y+P(A));return j};var F=(0,s.getComponentValidator)(_);d.prototype[C]=function(j){var I=this.attrs[y],M;S&&(j=S.call(this,j)),F&&F.call(this,j,y);for(M in j)j.hasOwnProperty(M)&&this._setAttr(y+P(M),j[M]);return j||_.forEach(L=>{this._setAttr(y+P(L),void 0)}),this._fireChangeEvent(y,I,j),b&&b.call(this),this},o.Factory.addOverloadedGetterSetter(d,y)},addOverloadedGetterSetter(d,y){var _=a.Util._capitalize(y),S=f+_,b=c+_;d.prototype[y]=function(){return arguments.length?(this[S](arguments[0]),this):this[b]()}},addDeprecatedGetterSetter(d,y,_,S){a.Util.error("Adding deprecated "+y);var b=c+a.Util._capitalize(y),$=y+" property is deprecated and will be removed soon. Look at Konva change log for more information.";d.prototype[b]=function(){a.Util.error($);var P=this.attrs[y];return P===void 0?_:P},o.Factory.addSetter(d,y,S,function(){a.Util.error($)}),o.Factory.addOverloadedGetterSetter(d,y)},backCompat(d,y){a.Util.each(y,function(_,S){var b=d.prototype[S],$=c+a.Util._capitalize(_),P=f+a.Util._capitalize(_);function T(){b.apply(this,arguments),a.Util.error('"'+_+'" method is deprecated and will be removed soon. Use ""'+S+'" instead.')}d.prototype[_]=T,d.prototype[$]=T,d.prototype[P]=T})},afterSetFilter(){this._filterUpToDate=!1}}})(Factory);var Canvas$1={},Context$2={};Object.defineProperty(Context$2,"__esModule",{value:!0});Context$2.HitContext=Context$2.SceneContext=Context$2.Context=void 0;const Util_1$e=Util,Global_1$o=Global;function simplifyArray(o){var a=[],s=o.length,c=Util_1$e.Util,f,d;for(f=0;ftypeof $=="number"?Math.floor($):$)),d+=OPEN_PAREN+b.join(COMMA)+CLOSE_PAREN)):(d+=_.property,a||(d+=EQUALS+_.val)),d+=SEMICOLON;return d}clearTrace(){this.traceArr=[]}_trace(a){var s=this.traceArr,c;s.push(a),c=s.length,c>=traceArrMax&&s.shift()}reset(){var a=this.getCanvas().getPixelRatio();this.setTransform(1*a,0,0,1*a,0,0)}getCanvas(){return this.canvas}clear(a){var s=this.getCanvas();a?this.clearRect(a.x||0,a.y||0,a.width||0,a.height||0):this.clearRect(0,0,s.getWidth()/s.pixelRatio,s.getHeight()/s.pixelRatio)}_applyLineCap(a){const s=a.attrs.lineCap;s&&this.setAttr("lineCap",s)}_applyOpacity(a){var s=a.getAbsoluteOpacity();s!==1&&this.setAttr("globalAlpha",s)}_applyLineJoin(a){const s=a.attrs.lineJoin;s&&this.setAttr("lineJoin",s)}setAttr(a,s){this._context[a]=s}arc(a,s,c,f,d,y){this._context.arc(a,s,c,f,d,y)}arcTo(a,s,c,f,d){this._context.arcTo(a,s,c,f,d)}beginPath(){this._context.beginPath()}bezierCurveTo(a,s,c,f,d,y){this._context.bezierCurveTo(a,s,c,f,d,y)}clearRect(a,s,c,f){this._context.clearRect(a,s,c,f)}clip(...a){this._context.clip.apply(this._context,a)}closePath(){this._context.closePath()}createImageData(a,s){var c=arguments;if(c.length===2)return this._context.createImageData(a,s);if(c.length===1)return this._context.createImageData(a)}createLinearGradient(a,s,c,f){return this._context.createLinearGradient(a,s,c,f)}createPattern(a,s){return this._context.createPattern(a,s)}createRadialGradient(a,s,c,f,d,y){return this._context.createRadialGradient(a,s,c,f,d,y)}drawImage(a,s,c,f,d,y,_,S,b){var $=arguments,P=this._context;$.length===3?P.drawImage(a,s,c):$.length===5?P.drawImage(a,s,c,f,d):$.length===9&&P.drawImage(a,s,c,f,d,y,_,S,b)}ellipse(a,s,c,f,d,y,_,S){this._context.ellipse(a,s,c,f,d,y,_,S)}isPointInPath(a,s,c,f){return c?this._context.isPointInPath(c,a,s,f):this._context.isPointInPath(a,s,f)}fill(...a){this._context.fill.apply(this._context,a)}fillRect(a,s,c,f){this._context.fillRect(a,s,c,f)}strokeRect(a,s,c,f){this._context.strokeRect(a,s,c,f)}fillText(a,s,c,f){f?this._context.fillText(a,s,c,f):this._context.fillText(a,s,c)}measureText(a){return this._context.measureText(a)}getImageData(a,s,c,f){return this._context.getImageData(a,s,c,f)}lineTo(a,s){this._context.lineTo(a,s)}moveTo(a,s){this._context.moveTo(a,s)}rect(a,s,c,f){this._context.rect(a,s,c,f)}roundRect(a,s,c,f,d){this._context.roundRect(a,s,c,f,d)}putImageData(a,s,c){this._context.putImageData(a,s,c)}quadraticCurveTo(a,s,c,f){this._context.quadraticCurveTo(a,s,c,f)}restore(){this._context.restore()}rotate(a){this._context.rotate(a)}save(){this._context.save()}scale(a,s){this._context.scale(a,s)}setLineDash(a){this._context.setLineDash?this._context.setLineDash(a):"mozDash"in this._context?this._context.mozDash=a:"webkitLineDash"in this._context&&(this._context.webkitLineDash=a)}getLineDash(){return this._context.getLineDash()}setTransform(a,s,c,f,d,y){this._context.setTransform(a,s,c,f,d,y)}stroke(a){a?this._context.stroke(a):this._context.stroke()}strokeText(a,s,c,f){this._context.strokeText(a,s,c,f)}transform(a,s,c,f,d,y){this._context.transform(a,s,c,f,d,y)}translate(a,s){this._context.translate(a,s)}_enableTrace(){var a=this,s=CONTEXT_METHODS.length,c=this.setAttr,f,d,y=function(_){var S=a[_],b;a[_]=function(){return d=simplifyArray(Array.prototype.slice.call(arguments,0)),b=S.apply(a,arguments),a._trace({method:_,args:d}),b}};for(f=0;f{f.dragStatus==="dragging"&&(c=!0)}),c},justDragged:!1,get node(){var c;return o.DD._dragElements.forEach(f=>{c=f.node}),c},_dragElements:new Map,_drag(c){const f=[];o.DD._dragElements.forEach((d,y)=>{const{node:_}=d,S=_.getStage();S.setPointersPositions(c),d.pointerId===void 0&&(d.pointerId=s.Util._getFirstPointerId(c));const b=S._changedPointerPositions.find(T=>T.id===d.pointerId);if(b){if(d.dragStatus!=="dragging"){var $=_.dragDistance(),P=Math.max(Math.abs(b.x-d.startPointerPos.x),Math.abs(b.y-d.startPointerPos.y));if(P<$||(_.startDrag({evt:c}),!_.isDragging()))return}_._setDragPosition(c,d),f.push(_)}}),f.forEach(d=>{d.fire("dragmove",{type:"dragmove",target:d,evt:c},!0)})},_endDragBefore(c){const f=[];o.DD._dragElements.forEach(d=>{const{node:y}=d,_=y.getStage();if(c&&_.setPointersPositions(c),!_._changedPointerPositions.find($=>$.id===d.pointerId))return;(d.dragStatus==="dragging"||d.dragStatus==="stopped")&&(o.DD.justDragged=!0,a.Konva._mouseListenClick=!1,a.Konva._touchListenClick=!1,a.Konva._pointerListenClick=!1,d.dragStatus="stopped");const b=d.node.getLayer()||d.node instanceof a.Konva.Stage&&d.node;b&&f.indexOf(b)===-1&&f.push(b)}),f.forEach(d=>{d.draw()})},_endDragAfter(c){o.DD._dragElements.forEach((f,d)=>{f.dragStatus==="stopped"&&f.node.fire("dragend",{type:"dragend",target:f.node,evt:c},!0),f.dragStatus!=="dragging"&&o.DD._dragElements.delete(d)})}},a.Konva.isBrowser&&(window.addEventListener("mouseup",o.DD._endDragBefore,!0),window.addEventListener("touchend",o.DD._endDragBefore,!0),window.addEventListener("mousemove",o.DD._drag),window.addEventListener("touchmove",o.DD._drag),window.addEventListener("mouseup",o.DD._endDragAfter,!1),window.addEventListener("touchend",o.DD._endDragAfter,!1))})(DragAndDrop);Object.defineProperty(Node$1,"__esModule",{value:!0});Node$1.Node=void 0;const Util_1$c=Util,Factory_1$y=Factory,Canvas_1$1=Canvas$1,Global_1$m=Global,DragAndDrop_1=DragAndDrop,Validators_1$x=Validators;var ABSOLUTE_OPACITY="absoluteOpacity",ALL_LISTENERS="allEventListeners",ABSOLUTE_TRANSFORM="absoluteTransform",ABSOLUTE_SCALE="absoluteScale",CANVAS="canvas",CHANGE="Change",CHILDREN="children",KONVA="konva",LISTENING="listening",MOUSEENTER="mouseenter",MOUSELEAVE="mouseleave",SET="set",SHAPE="Shape",SPACE$2=" ",STAGE="stage",TRANSFORM="transform",UPPER_STAGE="Stage",VISIBLE="visible",TRANSFORM_CHANGE_STR$1=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(SPACE$2);let idCounter$1=1;class Node{constructor(a){this._id=idCounter$1++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(a),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(a){(a===TRANSFORM||a===ABSOLUTE_TRANSFORM)&&this._cache.get(a)?this._cache.get(a).dirty=!0:a?this._cache.delete(a):this._cache.clear()}_getCache(a,s){var c=this._cache.get(a),f=a===TRANSFORM||a===ABSOLUTE_TRANSFORM,d=c===void 0||f&&c.dirty===!0;return d&&(c=s.call(this),this._cache.set(a,c)),c}_calculate(a,s,c){if(!this._attachedDepsListeners.get(a)){const f=s.map(d=>d+"Change.konva").join(SPACE$2);this.on(f,()=>{this._clearCache(a)}),this._attachedDepsListeners.set(a,!0)}return this._getCache(a,c)}_getCanvasCache(){return this._cache.get(CANVAS)}_clearSelfAndDescendantCache(a){this._clearCache(a),a===ABSOLUTE_TRANSFORM&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(CANVAS)){const{scene:a,filter:s,hit:c}=this._cache.get(CANVAS);Util_1$c.Util.releaseCanvas(a,s,c),this._cache.delete(CANVAS)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(a){var s=a||{},c={};(s.x===void 0||s.y===void 0||s.width===void 0||s.height===void 0)&&(c=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var f=Math.ceil(s.width||c.width),d=Math.ceil(s.height||c.height),y=s.pixelRatio,_=s.x===void 0?Math.floor(c.x):s.x,S=s.y===void 0?Math.floor(c.y):s.y,b=s.offset||0,$=s.drawBorder||!1,P=s.hitCanvasPixelRatio||1;if(!f||!d){Util_1$c.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const T=Math.abs(Math.round(c.x)-_)>.5?1:0,C=Math.abs(Math.round(c.y)-S)>.5?1:0;f+=b*2+T,d+=b*2+C,_-=b,S-=b;var O=new Canvas_1$1.SceneCanvas({pixelRatio:y,width:f,height:d}),A=new Canvas_1$1.SceneCanvas({pixelRatio:y,width:0,height:0,willReadFrequently:!0}),F=new Canvas_1$1.HitCanvas({pixelRatio:P,width:f,height:d}),j=O.getContext(),I=F.getContext();return F.isCache=!0,O.isCache=!0,this._cache.delete(CANVAS),this._filterUpToDate=!1,s.imageSmoothingEnabled===!1&&(O.getContext()._context.imageSmoothingEnabled=!1,A.getContext()._context.imageSmoothingEnabled=!1),j.save(),I.save(),j.translate(-_,-S),I.translate(-_,-S),this._isUnderCache=!0,this._clearSelfAndDescendantCache(ABSOLUTE_OPACITY),this._clearSelfAndDescendantCache(ABSOLUTE_SCALE),this.drawScene(O,this),this.drawHit(F,this),this._isUnderCache=!1,j.restore(),I.restore(),$&&(j.save(),j.beginPath(),j.rect(0,0,f,d),j.closePath(),j.setAttr("strokeStyle","red"),j.setAttr("lineWidth",5),j.stroke(),j.restore()),this._cache.set(CANVAS,{scene:O,filter:A,hit:F,x:_,y:S}),this._requestDraw(),this}isCached(){return this._cache.has(CANVAS)}getClientRect(a){throw new Error('abstract "getClientRect" method call')}_transformedRect(a,s){var c=[{x:a.x,y:a.y},{x:a.x+a.width,y:a.y},{x:a.x+a.width,y:a.y+a.height},{x:a.x,y:a.y+a.height}],f=1/0,d=1/0,y=-1/0,_=-1/0,S=this.getAbsoluteTransform(s);return c.forEach(function(b){var $=S.point(b);f===void 0&&(f=y=$.x,d=_=$.y),f=Math.min(f,$.x),d=Math.min(d,$.y),y=Math.max(y,$.x),_=Math.max(_,$.y)}),{x:f,y:d,width:y-f,height:_-d}}_drawCachedSceneCanvas(a){a.save(),a._applyOpacity(this),a._applyGlobalCompositeOperation(this);const s=this._getCanvasCache();a.translate(s.x,s.y);var c=this._getCachedSceneCanvas(),f=c.pixelRatio;a.drawImage(c._canvas,0,0,c.width/f,c.height/f),a.restore()}_drawCachedHitCanvas(a){var s=this._getCanvasCache(),c=s.hit;a.save(),a.translate(s.x,s.y),a.drawImage(c._canvas,0,0,c.width/c.pixelRatio,c.height/c.pixelRatio),a.restore()}_getCachedSceneCanvas(){var a=this.filters(),s=this._getCanvasCache(),c=s.scene,f=s.filter,d=f.getContext(),y,_,S,b;if(a){if(!this._filterUpToDate){var $=c.pixelRatio;f.setSize(c.width/c.pixelRatio,c.height/c.pixelRatio);try{for(y=a.length,d.clear(),d.drawImage(c._canvas,0,0,c.getWidth()/$,c.getHeight()/$),_=d.getImageData(0,0,f.getWidth(),f.getHeight()),S=0;S{var s,c;if(!a)return this;for(s in a)s!==CHILDREN&&(c=SET+Util_1$c.Util._capitalize(s),Util_1$c.Util._isFunction(this[c])?this[c](a[s]):this._setAttr(s,a[s]))}),this}isListening(){return this._getCache(LISTENING,this._isListening)}_isListening(a){if(!this.listening())return!1;const c=this.getParent();return c&&c!==a&&this!==a?c._isListening(a):!0}isVisible(){return this._getCache(VISIBLE,this._isVisible)}_isVisible(a){if(!this.visible())return!1;const c=this.getParent();return c&&c!==a&&this!==a?c._isVisible(a):!0}shouldDrawHit(a,s=!1){if(a)return this._isVisible(a)&&this._isListening(a);var c=this.getLayer(),f=!1;DragAndDrop_1.DD._dragElements.forEach(y=>{y.dragStatus==="dragging"&&(y.node.nodeType==="Stage"||y.node.getLayer()===c)&&(f=!0)});var d=!s&&!Global_1$m.Konva.hitOnDragEnabled&&f;return this.isListening()&&this.isVisible()&&!d}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var a=this.getDepth(),s=this,c=0,f,d,y,_;function S($){for(f=[],d=$.length,y=0;y0&&f[0].getDepth()<=a&&S(f)}const b=this.getStage();return s.nodeType!==UPPER_STAGE&&b&&S(b.getChildren()),c}getDepth(){for(var a=0,s=this.parent;s;)a++,s=s.parent;return a}_batchTransformChanges(a){this._batchingTransformChange=!0,a(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(TRANSFORM),this._clearSelfAndDescendantCache(ABSOLUTE_TRANSFORM)),this._needClearTransformCache=!1}setPosition(a){return this._batchTransformChanges(()=>{this.x(a.x),this.y(a.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const a=this.getStage();if(!a)return null;var s=a.getPointerPosition();if(!s)return null;var c=this.getAbsoluteTransform().copy();return c.invert(),c.point(s)}getAbsolutePosition(a){let s=!1,c=this.parent;for(;c;){if(c.isCached()){s=!0;break}c=c.parent}s&&!a&&(a=!0);var f=this.getAbsoluteTransform(a).getMatrix(),d=new Util_1$c.Transform,y=this.offset();return d.m=f.slice(),d.translate(y.x,y.y),d.getTranslation()}setAbsolutePosition(a){const y=this._clearTransform(),{x:s,y:c}=y,f=fr(y,["x","y"]);this.attrs.x=s,this.attrs.y=c,this._clearCache(TRANSFORM);var d=this._getAbsoluteTransform().copy();return d.invert(),d.translate(a.x,a.y),a={x:this.attrs.x+d.getTranslation().x,y:this.attrs.y+d.getTranslation().y},this._setTransform(f),this.setPosition({x:a.x,y:a.y}),this._clearCache(TRANSFORM),this._clearSelfAndDescendantCache(ABSOLUTE_TRANSFORM),this}_setTransform(a){var s;for(s in a)this.attrs[s]=a[s]}_clearTransform(){var a={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,a}move(a){var s=a.x,c=a.y,f=this.x(),d=this.y();return s!==void 0&&(f+=s),c!==void 0&&(d+=c),this.setPosition({x:f,y:d}),this}_eachAncestorReverse(a,s){var c=[],f=this.getParent(),d,y;if(!(s&&s._id===this._id)){for(c.unshift(this);f&&(!s||f._id!==s._id);)c.unshift(f),f=f.parent;for(d=c.length,y=0;y0?(this.parent.children.splice(a,1),this.parent.children.splice(a-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Util_1$c.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var a=this.index;return a>0?(this.parent.children.splice(a,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(a){if(!this.parent)return Util_1$c.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(a<0||a>=this.parent.children.length)&&Util_1$c.Util.warn("Unexpected value "+a+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var s=this.index;return this.parent.children.splice(s,1),this.parent.children.splice(a,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(ABSOLUTE_OPACITY,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var a=this.opacity(),s=this.getParent();return s&&!s._isUnderCache&&(a*=s.getAbsoluteOpacity()),a}moveTo(a){return this.getParent()!==a&&(this._remove(),a.add(this)),this}toObject(){var a=this.getAttrs(),s,c,f,d,y;const _={attrs:{},className:this.getClassName()};for(s in a)c=a[s],y=Util_1$c.Util.isObject(c)&&!Util_1$c.Util._isPlainObject(c)&&!Util_1$c.Util._isArray(c),!y&&(f=typeof this[s]=="function"&&this[s],delete a[s],d=f?f.call(this):null,a[s]=c,d!==c&&(_.attrs[s]=c));return Util_1$c.Util._prepareToStringify(_)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(a,s,c){var f=[];s&&this._isMatch(a)&&f.push(this);for(var d=this.parent;d;){if(d===c)return f;d._isMatch(a)&&f.push(d),d=d.parent}return f}isAncestorOf(a){return!1}findAncestor(a,s,c){return this.findAncestors(a,s,c)[0]}_isMatch(a){if(!a)return!1;if(typeof a=="function")return a(this);var s=a.replace(/ /g,"").split(","),c=s.length,f,d;for(f=0;f{try{const f=a==null?void 0:a.callback;f&&delete a.callback,Util_1$c.Util._urlToImage(this.toDataURL(a),function(d){s(d),f==null||f(d)})}catch(f){c(f)}})}toBlob(a){return new Promise((s,c)=>{try{const f=a==null?void 0:a.callback;f&&delete a.callback,this.toCanvas(a).toBlob(d=>{s(d),f==null||f(d)},a==null?void 0:a.mimeType,a==null?void 0:a.quality)}catch(f){c(f)}})}setSize(a){return this.width(a.width),this.height(a.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Global_1$m.Konva.dragDistance}_off(a,s,c){var f=this.eventListeners[a],d,y,_;for(d=0;d=0;if(c&&!this.isDragging()){var f=!1;DragAndDrop_1.DD._dragElements.forEach(d=>{this.isAncestorOf(d.node)&&(f=!0)}),f||this._createDragElement(a)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var a=this.getStage();if(!a)return;const s=DragAndDrop_1.DD._dragElements.get(this._id),c=s&&s.dragStatus==="dragging",f=s&&s.dragStatus==="ready";c?this.stopDrag():f&&DragAndDrop_1.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(a={x:0,y:0}){const s=this.getStage();if(!s)return!1;const c={x:-a.x,y:-a.y,width:s.width()+2*a.x,height:s.height()+2*a.y};return Util_1$c.Util.haveIntersection(c,this.getClientRect())}static create(a,s){return Util_1$c.Util._isString(a)&&(a=JSON.parse(a)),this._createNode(a,s)}static _createNode(a,s){var c=Node.prototype.getClassName.call(a),f=a.children,d,y,_;s&&(a.attrs.container=s),Global_1$m.Konva[c]||(Util_1$c.Util.warn('Can not find a node with class name "'+c+'". Fallback to "Shape".'),c="Shape");const S=Global_1$m.Konva[c];if(d=new S(a.attrs),f)for(y=f.length,_=0;_0}removeChildren(){return this.getChildren().forEach(a=>{a.parent=null,a.index=0,a.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(a=>{a.parent=null,a.index=0,a.destroy()}),this.children=[],this._requestDraw(),this}add(...a){if(a.length===0)return this;if(a.length>1){for(var s=0;s0?s[0]:void 0}_generalFind(a,s){var c=[];return this._descendants(f=>{const d=f._isMatch(a);return d&&c.push(f),!!(d&&s)}),c}_descendants(a){let s=!1;const c=this.getChildren();for(const f of c){if(s=a(f),s)return!0;if(f.hasChildren()&&(s=f._descendants(a),s))return!0}return!1}toObject(){var a=Node_1$h.Node.prototype.toObject.call(this);return a.children=[],this.getChildren().forEach(s=>{a.children.push(s.toObject())}),a}isAncestorOf(a){for(var s=a.getParent();s;){if(s._id===this._id)return!0;s=s.getParent()}return!1}clone(a){var s=Node_1$h.Node.prototype.clone.call(this,a);return this.getChildren().forEach(function(c){s.add(c.clone())}),s}getAllIntersections(a){var s=[];return this.find("Shape").forEach(c=>{c.isVisible()&&c.intersects(a)&&s.push(c)}),s}_clearSelfAndDescendantCache(a){var s;super._clearSelfAndDescendantCache(a),!this.isCached()&&((s=this.children)===null||s===void 0||s.forEach(function(c){c._clearSelfAndDescendantCache(a)}))}_setChildrenIndices(){var a;(a=this.children)===null||a===void 0||a.forEach(function(s,c){s.index=c}),this._requestDraw()}drawScene(a,s,c){var f=this.getLayer(),d=a||f&&f.getCanvas(),y=d&&d.getContext(),_=this._getCanvasCache(),S=_&&_.scene,b=d&&d.isCache;if(!this.isVisible()&&!b)return this;if(S){y.save();var $=this.getAbsoluteTransform(s).getMatrix();y.transform($[0],$[1],$[2],$[3],$[4],$[5]),this._drawCachedSceneCanvas(y),y.restore()}else this._drawChildren("drawScene",d,s,c);return this}drawHit(a,s){if(!this.shouldDrawHit(s))return this;var c=this.getLayer(),f=a||c&&c.hitCanvas,d=f&&f.getContext(),y=this._getCanvasCache(),_=y&&y.hit;if(_){d.save();var S=this.getAbsoluteTransform(s).getMatrix();d.transform(S[0],S[1],S[2],S[3],S[4],S[5]),this._drawCachedHitCanvas(d),d.restore()}else this._drawChildren("drawHit",f,s);return this}_drawChildren(a,s,c,f){var d,y=s&&s.getContext(),_=this.clipWidth(),S=this.clipHeight(),b=this.clipFunc(),$=_&&S||b;const P=c===this;if($){y.save();var T=this.getAbsoluteTransform(c),C=T.getMatrix();y.transform(C[0],C[1],C[2],C[3],C[4],C[5]),y.beginPath();let j;if(b)j=b.call(this,y,this);else{var O=this.clipX(),A=this.clipY();y.rect(O,A,_,S)}y.clip.apply(y,j),C=T.copy().invert().getMatrix(),y.transform(C[0],C[1],C[2],C[3],C[4],C[5])}var F=!P&&this.globalCompositeOperation()!=="source-over"&&a==="drawScene";F&&(y.save(),y._applyGlobalCompositeOperation(this)),(d=this.children)===null||d===void 0||d.forEach(function(j){j[a](s,c,f)}),F&&y.restore(),$&&y.restore()}getClientRect(a={}){var s,c=a.skipTransform,f=a.relativeTo,d,y,_,S,b={x:1/0,y:1/0,width:0,height:0},$=this;(s=this.children)===null||s===void 0||s.forEach(function(A){if(A.visible()){var F=A.getClientRect({relativeTo:$,skipShadow:a.skipShadow,skipStroke:a.skipStroke});F.width===0&&F.height===0||(d===void 0?(d=F.x,y=F.y,_=F.x+F.width,S=F.y+F.height):(d=Math.min(d,F.x),y=Math.min(y,F.y),_=Math.max(_,F.x+F.width),S=Math.max(S,F.y+F.height)))}});for(var P=this.find("Shape"),T=!1,C=0;CCe.indexOf("pointer")>=0?"pointer":Ce.indexOf("touch")>=0?"touch":"mouse",ce=Ce=>{const ue=ae(Ce);if(ue==="pointer")return f.Konva.pointerEventsEnabled&&le.pointer;if(ue==="touch")return le.touch;if(ue==="mouse")return le.mouse};function ge(Ce={}){return(Ce.clipFunc||Ce.clipWidth||Ce.clipHeight)&&a.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),Ce}const pe="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";o.stages=[];class Ie extends c.Container{constructor(ue){super(ge(ue)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),o.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{ge(this.attrs)}),this._checkVisibility()}_validateAdd(ue){const xe=ue.getType()==="Layer",Pe=ue.getType()==="FastLayer";xe||Pe||a.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const ue=this.visible()?"":"none";this.content.style.display=ue}setContainer(ue){if(typeof ue===$){if(ue.charAt(0)==="."){var xe=ue.slice(1);ue=document.getElementsByClassName(xe)[0]}else{var Pe;ue.charAt(0)!=="#"?Pe=ue:Pe=ue.slice(1),ue=document.getElementById(Pe)}if(!ue)throw"Can not find container in document with id "+Pe}return this._setAttr("container",ue),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),ue.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var ue=this.children,xe=ue.length,Pe;for(Pe=0;Pe-1&&o.stages.splice(xe,1),a.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const ue=this._pointerPositions[0]||this._changedPointerPositions[0];return ue?{x:ue.x,y:ue.y}:(a.Util.warn(pe),null)}_getPointerById(ue){return this._pointerPositions.find(xe=>xe.id===ue)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(ue){ue=ue||{},ue.x=ue.x||0,ue.y=ue.y||0,ue.width=ue.width||this.width(),ue.height=ue.height||this.height();var xe=new d.SceneCanvas({width:ue.width,height:ue.height,pixelRatio:ue.pixelRatio||1}),Pe=xe.getContext()._context,Ve=this.children;return(ue.x||ue.y)&&Pe.translate(-1*ue.x,-1*ue.y),Ve.forEach(function(je){if(je.isVisible()){var ze=je._toKonvaCanvas(ue);Pe.drawImage(ze._canvas,ue.x,ue.y,ze.getWidth()/ze.getPixelRatio(),ze.getHeight()/ze.getPixelRatio())}}),xe}getIntersection(ue){if(!ue)return null;var xe=this.children,Pe=xe.length,Ve=Pe-1,je;for(je=Ve;je>=0;je--){const ze=xe[je].getIntersection(ue);if(ze)return ze}return null}_resizeDOM(){var ue=this.width(),xe=this.height();this.content&&(this.content.style.width=ue+P,this.content.style.height=xe+P),this.bufferCanvas.setSize(ue,xe),this.bufferHitCanvas.setSize(ue,xe),this.children.forEach(Pe=>{Pe.setSize({width:ue,height:xe}),Pe.draw()})}add(ue,...xe){if(arguments.length>1){for(var Pe=0;Pene&&a.Util.warn("The stage has "+Ve+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),ue.setSize({width:this.width(),height:this.height()}),ue.draw(),f.Konva.isBrowser&&this.content.appendChild(ue.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(ue){return S.hasPointerCapture(ue,this)}setPointerCapture(ue){S.setPointerCapture(ue,this)}releaseCapture(ue){S.releaseCapture(ue,this)}getLayers(){return this.children}_bindContentEvents(){f.Konva.isBrowser&&fe.forEach(([ue,xe])=>{this.content.addEventListener(ue,Pe=>{this[xe](Pe)},{passive:!1})})}_pointerenter(ue){this.setPointersPositions(ue);const xe=ce(ue.type);xe&&this._fire(xe.pointerenter,{evt:ue,target:this,currentTarget:this})}_pointerover(ue){this.setPointersPositions(ue);const xe=ce(ue.type);xe&&this._fire(xe.pointerover,{evt:ue,target:this,currentTarget:this})}_getTargetShape(ue){let xe=this[ue+"targetShape"];return xe&&!xe.getStage()&&(xe=null),xe}_pointerleave(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(xe){this.setPointersPositions(ue);var Ve=this._getTargetShape(Pe),je=!y.DD.isDragging||f.Konva.hitOnDragEnabled;Ve&&je?(Ve._fireAndBubble(xe.pointerout,{evt:ue}),Ve._fireAndBubble(xe.pointerleave,{evt:ue}),this._fire(xe.pointerleave,{evt:ue,target:this,currentTarget:this}),this[Pe+"targetShape"]=null):je&&(this._fire(xe.pointerleave,{evt:ue,target:this,currentTarget:this}),this._fire(xe.pointerout,{evt:ue,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(xe){this.setPointersPositions(ue);var Ve=!1;this._changedPointerPositions.forEach(je=>{var ze=this.getIntersection(je);if(y.DD.justDragged=!1,f.Konva["_"+Pe+"ListenClick"]=!0,!ze||!ze.isListening())return;f.Konva.capturePointerEventsEnabled&&ze.setPointerCapture(je.id),this[Pe+"ClickStartShape"]=ze,ze._fireAndBubble(xe.pointerdown,{evt:ue,pointerId:je.id}),Ve=!0;const Xe=ue.type.indexOf("touch")>=0;ze.preventDefault()&&ue.cancelable&&Xe&&ue.preventDefault()}),Ve||this._fire(xe.pointerdown,{evt:ue,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(!xe)return;y.DD.isDragging&&y.DD.node.preventDefault()&&ue.cancelable&&ue.preventDefault(),this.setPointersPositions(ue);var Ve=!y.DD.isDragging||f.Konva.hitOnDragEnabled;if(!Ve)return;var je={};let ze=!1;var Xe=this._getTargetShape(Pe);this._changedPointerPositions.forEach(Ut=>{const Je=S.getCapturedShape(Ut.id)||this.getIntersection(Ut),Ft=Ut.id,It={evt:ue,pointerId:Ft};var nr=Xe!==Je;if(nr&&Xe&&(Xe._fireAndBubble(xe.pointerout,se({},It),Je),Xe._fireAndBubble(xe.pointerleave,se({},It),Je)),Je){if(je[Je._id])return;je[Je._id]=!0}Je&&Je.isListening()?(ze=!0,nr&&(Je._fireAndBubble(xe.pointerover,se({},It),Xe),Je._fireAndBubble(xe.pointerenter,se({},It),Xe),this[Pe+"targetShape"]=Je),Je._fireAndBubble(xe.pointermove,se({},It))):Xe&&(this._fire(xe.pointerover,{evt:ue,target:this,currentTarget:this,pointerId:Ft}),this[Pe+"targetShape"]=null)}),ze||this._fire(xe.pointermove,{evt:ue,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(!xe)return;this.setPointersPositions(ue);const Ve=this[Pe+"ClickStartShape"],je=this[Pe+"ClickEndShape"];var ze={};let Xe=!1;this._changedPointerPositions.forEach(Ut=>{const Je=S.getCapturedShape(Ut.id)||this.getIntersection(Ut);if(Je){if(Je.releaseCapture(Ut.id),ze[Je._id])return;ze[Je._id]=!0}const Ft=Ut.id,It={evt:ue,pointerId:Ft};let nr=!1;f.Konva["_"+Pe+"InDblClickWindow"]?(nr=!0,clearTimeout(this[Pe+"DblTimeout"])):y.DD.justDragged||(f.Konva["_"+Pe+"InDblClickWindow"]=!0,clearTimeout(this[Pe+"DblTimeout"])),this[Pe+"DblTimeout"]=setTimeout(function(){f.Konva["_"+Pe+"InDblClickWindow"]=!1},f.Konva.dblClickWindow),Je&&Je.isListening()?(Xe=!0,this[Pe+"ClickEndShape"]=Je,Je._fireAndBubble(xe.pointerup,se({},It)),f.Konva["_"+Pe+"ListenClick"]&&Ve&&Ve===Je&&(Je._fireAndBubble(xe.pointerclick,se({},It)),nr&&je&&je===Je&&Je._fireAndBubble(xe.pointerdblclick,se({},It)))):(this[Pe+"ClickEndShape"]=null,f.Konva["_"+Pe+"ListenClick"]&&this._fire(xe.pointerclick,{evt:ue,target:this,currentTarget:this,pointerId:Ft}),nr&&this._fire(xe.pointerdblclick,{evt:ue,target:this,currentTarget:this,pointerId:Ft}))}),Xe||this._fire(xe.pointerup,{evt:ue,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),f.Konva["_"+Pe+"ListenClick"]=!1,ue.cancelable&&Pe!=="touch"&&ue.preventDefault()}_contextmenu(ue){this.setPointersPositions(ue);var xe=this.getIntersection(this.getPointerPosition());xe&&xe.isListening()?xe._fireAndBubble(ie,{evt:ue}):this._fire(ie,{evt:ue,target:this,currentTarget:this})}_wheel(ue){this.setPointersPositions(ue);var xe=this.getIntersection(this.getPointerPosition());xe&&xe.isListening()?xe._fireAndBubble(J,{evt:ue}):this._fire(J,{evt:ue,target:this,currentTarget:this})}_pointercancel(ue){this.setPointersPositions(ue);const xe=S.getCapturedShape(ue.pointerId)||this.getIntersection(this.getPointerPosition());xe&&xe._fireAndBubble(U,S.createEvent(ue)),S.releaseCapture(ue.pointerId)}_lostpointercapture(ue){S.releaseCapture(ue.pointerId)}setPointersPositions(ue){var xe=this._getContentPosition(),Pe=null,Ve=null;ue=ue||window.event,ue.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(ue.touches,je=>{this._pointerPositions.push({id:je.identifier,x:(je.clientX-xe.left)/xe.scaleX,y:(je.clientY-xe.top)/xe.scaleY})}),Array.prototype.forEach.call(ue.changedTouches||ue.touches,je=>{this._changedPointerPositions.push({id:je.identifier,x:(je.clientX-xe.left)/xe.scaleX,y:(je.clientY-xe.top)/xe.scaleY})})):(Pe=(ue.clientX-xe.left)/xe.scaleX,Ve=(ue.clientY-xe.top)/xe.scaleY,this.pointerPos={x:Pe,y:Ve},this._pointerPositions=[{x:Pe,y:Ve,id:a.Util._getFirstPointerId(ue)}],this._changedPointerPositions=[{x:Pe,y:Ve,id:a.Util._getFirstPointerId(ue)}])}_setPointerPosition(ue){a.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(ue)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var ue=this.content.getBoundingClientRect();return{top:ue.top,left:ue.left,scaleX:ue.width/this.content.clientWidth||1,scaleY:ue.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new d.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new d.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!f.Konva.isBrowser){var ue=this.container();if(!ue)throw"Stage has no container. A container is required.";ue.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),ue.appendChild(this.content),this._resizeDOM()}}cache(){return a.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(ue){ue.batchDraw()}),this}}o.Stage=Ie,Ie.prototype.nodeType=b,(0,_._registerNode)(Ie),s.Factory.addGetterSetter(Ie,"container")})(Stage);var Layer$1={},Shape={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Shape=o.shapes=void 0;const a=Global,s=Util,c=Factory,f=Node$1,d=Validators,y=Global,_=PointerEvents;var S="hasShadow",b="shadowRGBA",$="patternImage",P="linearGradient",T="radialGradient";let C;function O(){return C||(C=s.Util.createCanvasElement().getContext("2d"),C)}o.shapes={};function A(X){const W=this.attrs.fillRule;W?X.fill(W):X.fill()}function F(X){X.stroke()}function j(X){X.fill()}function I(X){X.stroke()}function M(){this._clearCache(S)}function L(){this._clearCache(b)}function U(){this._clearCache($)}function z(){this._clearCache(P)}function H(){this._clearCache(T)}class G extends f.Node{constructor(W){super(W);let K;for(;K=s.Util.getRandomColor(),!(K&&!(K in o.shapes)););this.colorKey=K,o.shapes[K]=this}getContext(){return s.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return s.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(S,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache($,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var W=O();const K=W.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(K&&K.setTransform){const ie=new s.Transform;ie.translate(this.fillPatternX(),this.fillPatternY()),ie.rotate(a.Konva.getAngle(this.fillPatternRotation())),ie.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),ie.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const ee=ie.getMatrix(),de=typeof DOMMatrix=="undefined"?{a:ee[0],b:ee[1],c:ee[2],d:ee[3],e:ee[4],f:ee[5]}:new DOMMatrix(ee);K.setTransform(de)}return K}}_getLinearGradient(){return this._getCache(P,this.__getLinearGradient)}__getLinearGradient(){var W=this.fillLinearGradientColorStops();if(W){for(var K=O(),ie=this.fillLinearGradientStartPoint(),ee=this.fillLinearGradientEndPoint(),de=K.createLinearGradient(ie.x,ie.y,ee.x,ee.y),Z=0;Zthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const W=this.hitStrokeWidth();return W==="auto"?this.hasStroke():this.strokeEnabled()&&!!W}intersects(W){var K=this.getStage();if(!K)return!1;const ie=K.bufferHitCanvas;return ie.getContext().clear(),this.drawHit(ie,void 0,!0),ie.context.getImageData(Math.round(W.x),Math.round(W.y),1,1).data[3]>0}destroy(){return f.Node.prototype.destroy.call(this),delete o.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(W){var K;if(!((K=this.attrs.perfectDrawEnabled)!==null&&K!==void 0?K:!0))return!1;const ee=W||this.hasFill(),de=this.hasStroke(),Z=this.getAbsoluteOpacity()!==1;if(ee&&de&&Z)return!0;const Q=this.hasShadow(),J=this.shadowForStrokeEnabled();return!!(ee&&de&&Q&&J)}setStrokeHitEnabled(W){s.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),W?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var W=this.size();return{x:this._centroid?-W.width/2:0,y:this._centroid?-W.height/2:0,width:W.width,height:W.height}}getClientRect(W={}){const K=W.skipTransform,ie=W.relativeTo,ee=this.getSelfRect(),Z=!W.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=ee.width+Z,J=ee.height+Z,ne=!W.skipShadow&&this.hasShadow(),fe=ne?this.shadowOffsetX():0,le=ne?this.shadowOffsetY():0,ae=Q+Math.abs(fe),ce=J+Math.abs(le),ge=ne&&this.shadowBlur()||0,pe=ae+ge*2,Ie=ce+ge*2,Ce={width:pe,height:Ie,x:-(Z/2+ge)+Math.min(fe,0)+ee.x,y:-(Z/2+ge)+Math.min(le,0)+ee.y};return K?Ce:this._transformedRect(Ce,ie)}drawScene(W,K,ie){var ee=this.getLayer(),de=W||ee.getCanvas(),Z=de.getContext(),Q=this._getCanvasCache(),J=this.getSceneFunc(),ne=this.hasShadow(),fe,le,ae=de.isCache,ce=K===this;if(!this.isVisible()&&!ce)return this;if(Q){Z.save();var ge=this.getAbsoluteTransform(K).getMatrix();return Z.transform(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5]),this._drawCachedSceneCanvas(Z),Z.restore(),this}if(!J)return this;if(Z.save(),this._useBufferCanvas()&&!ae){fe=this.getStage();const Ce=ie||fe.bufferCanvas;le=Ce.getContext(),le.clear(),le.save(),le._applyLineJoin(this);var pe=this.getAbsoluteTransform(K).getMatrix();le.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5]),J.call(this,le,this),le.restore();var Ie=Ce.pixelRatio;ne&&Z._applyShadow(this),Z._applyOpacity(this),Z._applyGlobalCompositeOperation(this),Z.drawImage(Ce._canvas,0,0,Ce.width/Ie,Ce.height/Ie)}else{if(Z._applyLineJoin(this),!ce){var pe=this.getAbsoluteTransform(K).getMatrix();Z.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5]),Z._applyOpacity(this),Z._applyGlobalCompositeOperation(this)}ne&&Z._applyShadow(this),J.call(this,Z,this)}return Z.restore(),this}drawHit(W,K,ie=!1){if(!this.shouldDrawHit(K,ie))return this;var ee=this.getLayer(),de=W||ee.hitCanvas,Z=de&&de.getContext(),Q=this.hitFunc()||this.sceneFunc(),J=this._getCanvasCache(),ne=J&&J.hit;if(this.colorKey||s.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),ne){Z.save();var fe=this.getAbsoluteTransform(K).getMatrix();return Z.transform(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5]),this._drawCachedHitCanvas(Z),Z.restore(),this}if(!Q)return this;if(Z.save(),Z._applyLineJoin(this),!(this===K)){var ae=this.getAbsoluteTransform(K).getMatrix();Z.transform(ae[0],ae[1],ae[2],ae[3],ae[4],ae[5])}return Q.call(this,Z,this),Z.restore(),this}drawHitFromCache(W=0){var K=this._getCanvasCache(),ie=this._getCachedSceneCanvas(),ee=K.hit,de=ee.getContext(),Z=ee.getWidth(),Q=ee.getHeight(),J,ne,fe,le,ae,ce;de.clear(),de.drawImage(ie._canvas,0,0,Z,Q);try{for(J=de.getImageData(0,0,Z,Q),ne=J.data,fe=ne.length,le=s.Util._hexToRgb(this.colorKey),ae=0;aeW?(ne[ae]=le.r,ne[ae+1]=le.g,ne[ae+2]=le.b,ne[ae+3]=255):ne[ae+3]=0;de.putImageData(J,0,0)}catch(ge){s.Util.error("Unable to draw hit graph from cached scene canvas. "+ge.message)}return this}hasPointerCapture(W){return _.hasPointerCapture(W,this)}setPointerCapture(W){_.setPointerCapture(W,this)}releaseCapture(W){_.releaseCapture(W,this)}}o.Shape=G,G.prototype._fillFunc=A,G.prototype._strokeFunc=F,G.prototype._fillFuncHit=j,G.prototype._strokeFuncHit=I,G.prototype._centroid=!1,G.prototype.nodeType="Shape",(0,y._registerNode)(G),G.prototype.eventListeners={},G.prototype.on.call(G.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",M),G.prototype.on.call(G.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",L),G.prototype.on.call(G.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",U),G.prototype.on.call(G.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",z),G.prototype.on.call(G.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",H),c.Factory.addGetterSetter(G,"stroke",void 0,(0,d.getStringOrGradientValidator)()),c.Factory.addGetterSetter(G,"strokeWidth",2,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillAfterStrokeEnabled",!1),c.Factory.addGetterSetter(G,"hitStrokeWidth","auto",(0,d.getNumberOrAutoValidator)()),c.Factory.addGetterSetter(G,"strokeHitEnabled",!0,(0,d.getBooleanValidator)()),c.Factory.addGetterSetter(G,"perfectDrawEnabled",!0,(0,d.getBooleanValidator)()),c.Factory.addGetterSetter(G,"shadowForStrokeEnabled",!0,(0,d.getBooleanValidator)()),c.Factory.addGetterSetter(G,"lineJoin"),c.Factory.addGetterSetter(G,"lineCap"),c.Factory.addGetterSetter(G,"sceneFunc"),c.Factory.addGetterSetter(G,"hitFunc"),c.Factory.addGetterSetter(G,"dash"),c.Factory.addGetterSetter(G,"dashOffset",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"shadowColor",void 0,(0,d.getStringValidator)()),c.Factory.addGetterSetter(G,"shadowBlur",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"shadowOpacity",1,(0,d.getNumberValidator)()),c.Factory.addComponentsGetterSetter(G,"shadowOffset",["x","y"]),c.Factory.addGetterSetter(G,"shadowOffsetX",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"shadowOffsetY",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternImage"),c.Factory.addGetterSetter(G,"fill",void 0,(0,d.getStringOrGradientValidator)()),c.Factory.addGetterSetter(G,"fillPatternX",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternY",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillLinearGradientColorStops"),c.Factory.addGetterSetter(G,"strokeLinearGradientColorStops"),c.Factory.addGetterSetter(G,"fillRadialGradientStartRadius",0),c.Factory.addGetterSetter(G,"fillRadialGradientEndRadius",0),c.Factory.addGetterSetter(G,"fillRadialGradientColorStops"),c.Factory.addGetterSetter(G,"fillPatternRepeat","repeat"),c.Factory.addGetterSetter(G,"fillEnabled",!0),c.Factory.addGetterSetter(G,"strokeEnabled",!0),c.Factory.addGetterSetter(G,"shadowEnabled",!0),c.Factory.addGetterSetter(G,"dashEnabled",!0),c.Factory.addGetterSetter(G,"strokeScaleEnabled",!0),c.Factory.addGetterSetter(G,"fillPriority","color"),c.Factory.addComponentsGetterSetter(G,"fillPatternOffset",["x","y"]),c.Factory.addGetterSetter(G,"fillPatternOffsetX",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternOffsetY",0,(0,d.getNumberValidator)()),c.Factory.addComponentsGetterSetter(G,"fillPatternScale",["x","y"]),c.Factory.addGetterSetter(G,"fillPatternScaleX",1,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternScaleY",1,(0,d.getNumberValidator)()),c.Factory.addComponentsGetterSetter(G,"fillLinearGradientStartPoint",["x","y"]),c.Factory.addComponentsGetterSetter(G,"strokeLinearGradientStartPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillLinearGradientStartPointX",0),c.Factory.addGetterSetter(G,"strokeLinearGradientStartPointX",0),c.Factory.addGetterSetter(G,"fillLinearGradientStartPointY",0),c.Factory.addGetterSetter(G,"strokeLinearGradientStartPointY",0),c.Factory.addComponentsGetterSetter(G,"fillLinearGradientEndPoint",["x","y"]),c.Factory.addComponentsGetterSetter(G,"strokeLinearGradientEndPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillLinearGradientEndPointX",0),c.Factory.addGetterSetter(G,"strokeLinearGradientEndPointX",0),c.Factory.addGetterSetter(G,"fillLinearGradientEndPointY",0),c.Factory.addGetterSetter(G,"strokeLinearGradientEndPointY",0),c.Factory.addComponentsGetterSetter(G,"fillRadialGradientStartPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillRadialGradientStartPointX",0),c.Factory.addGetterSetter(G,"fillRadialGradientStartPointY",0),c.Factory.addComponentsGetterSetter(G,"fillRadialGradientEndPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillRadialGradientEndPointX",0),c.Factory.addGetterSetter(G,"fillRadialGradientEndPointY",0),c.Factory.addGetterSetter(G,"fillPatternRotation",0),c.Factory.addGetterSetter(G,"fillRule",void 0,(0,d.getStringValidator)()),c.Factory.backCompat(G,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(Shape);Object.defineProperty(Layer$1,"__esModule",{value:!0});Layer$1.Layer=void 0;const Util_1$b=Util,Container_1$1=Container$1,Node_1$g=Node$1,Factory_1$w=Factory,Canvas_1=Canvas$1,Validators_1$v=Validators,Shape_1$g=Shape,Global_1$k=Global;var HASH="#",BEFORE_DRAW="beforeDraw",DRAW="draw",INTERSECTION_OFFSETS=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],INTERSECTION_OFFSETS_LEN=INTERSECTION_OFFSETS.length;class Layer extends Container_1$1.Container{constructor(a){super(a),this.canvas=new Canvas_1.SceneCanvas,this.hitCanvas=new Canvas_1.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(a){return this.getContext().clear(a),this.getHitCanvas().getContext().clear(a),this}setZIndex(a){super.setZIndex(a);var s=this.getStage();return s&&s.content&&(s.content.removeChild(this.getNativeCanvasElement()),a{this.draw(),this._waitingForDraw=!1})),this}getIntersection(a){if(!this.isListening()||!this.isVisible())return null;for(var s=1,c=!1;;){for(let f=0;f0)return{antialiased:!0};return{}}drawScene(a,s){var c=this.getLayer(),f=a||c&&c.getCanvas();return this._fire(BEFORE_DRAW,{node:this}),this.clearBeforeDraw()&&f.getContext().clear(),Container_1$1.Container.prototype.drawScene.call(this,f,s),this._fire(DRAW,{node:this}),this}drawHit(a,s){var c=this.getLayer(),f=a||c&&c.hitCanvas;return c&&c.clearBeforeDraw()&&c.getHitCanvas().getContext().clear(),Container_1$1.Container.prototype.drawHit.call(this,f,s),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(a){Util_1$b.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(a)}getHitGraphEnabled(a){return Util_1$b.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var a=this.parent,s=!!this.hitCanvas._canvas.parentNode;s?a.content.removeChild(this.hitCanvas._canvas):a.content.appendChild(this.hitCanvas._canvas)}}destroy(){return Util_1$b.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}Layer$1.Layer=Layer;Layer.prototype.nodeType="Layer";(0,Global_1$k._registerNode)(Layer);Factory_1$w.Factory.addGetterSetter(Layer,"imageSmoothingEnabled",!0);Factory_1$w.Factory.addGetterSetter(Layer,"clearBeforeDraw",!0);Factory_1$w.Factory.addGetterSetter(Layer,"hitGraphEnabled",!0,(0,Validators_1$v.getBooleanValidator)());var FastLayer$1={};Object.defineProperty(FastLayer$1,"__esModule",{value:!0});FastLayer$1.FastLayer=void 0;const Util_1$a=Util,Layer_1=Layer$1,Global_1$j=Global;class FastLayer extends Layer_1.Layer{constructor(a){super(a),this.listening(!1),Util_1$a.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}FastLayer$1.FastLayer=FastLayer;FastLayer.prototype.nodeType="FastLayer";(0,Global_1$j._registerNode)(FastLayer);var Group$1={};Object.defineProperty(Group$1,"__esModule",{value:!0});Group$1.Group=void 0;const Util_1$9=Util,Container_1=Container$1,Global_1$i=Global;class Group extends Container_1.Container{_validateAdd(a){var s=a.getType();s!=="Group"&&s!=="Shape"&&Util_1$9.Util.throw("You may only add groups and shapes to groups.")}}Group$1.Group=Group;Group.prototype.nodeType="Group";(0,Global_1$i._registerNode)(Group);var Animation$1={};Object.defineProperty(Animation$1,"__esModule",{value:!0});Animation$1.Animation=void 0;const Global_1$h=Global,Util_1$8=Util,now$3=function(){return Global_1$h.glob.performance&&Global_1$h.glob.performance.now?function(){return Global_1$h.glob.performance.now()}:function(){return new Date().getTime()}}();class Animation{constructor(a,s){this.id=Animation.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:now$3(),frameRate:0},this.func=a,this.setLayers(s)}setLayers(a){let s=[];return a&&(s=Array.isArray(a)?a:[a]),this.layers=s,this}getLayers(){return this.layers}addLayer(a){const s=this.layers,c=s.length;for(let f=0;fthis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():O<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=O,this.update())}getTime(){return this._time}setPosition(O){this.prevPos=this._pos,this.propFunc(O),this._pos=O}getPosition(O){return O===void 0&&(O=this._time),this.func(O,this.begin,this._change,this.duration)}play(){this.state=_,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=S,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(O){this.pause(),this._time=O,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var O=this.getTimer()-this._startTime;this.state===_?this.setTime(O):this.state===S&&this.setTime(this.duration-O)}pause(){this.state=y,this.fire("onPause")}getTimer(){return new Date().getTime()}}class T{constructor(O){var A=this,F=O.node,j=F._id,I,M=O.easing||o.Easings.Linear,L=!!O.yoyo,U;typeof O.duration=="undefined"?I=.3:O.duration===0?I=.001:I=O.duration,this.node=F,this._id=b++;var z=F.getLayer()||(F instanceof f.Konva.Stage?F.getLayers():null);z||a.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new s.Animation(function(){A.tween.onEnterFrame()},z),this.tween=new P(U,function(H){A._tweenFunc(H)},M,0,1,I*1e3,L),this._addListeners(),T.attrs[j]||(T.attrs[j]={}),T.attrs[j][this._id]||(T.attrs[j][this._id]={}),T.tweens[j]||(T.tweens[j]={});for(U in O)d[U]===void 0&&this._addAttr(U,O[U]);this.reset(),this.onFinish=O.onFinish,this.onReset=O.onReset,this.onUpdate=O.onUpdate}_addAttr(O,A){var F=this.node,j=F._id,I,M,L,U,z,H,G,X;if(L=T.tweens[j][O],L&&delete T.attrs[j][L][O],I=F.getAttr(O),a.Util._isArray(A))if(M=[],z=Math.max(A.length,I.length),O==="points"&&A.length!==I.length&&(A.length>I.length?(G=I,I=a.Util._prepareArrayForTween(I,A,F.closed())):(H=A,A=a.Util._prepareArrayForTween(A,I,F.closed()))),O.indexOf("fill")===0)for(U=0;U{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var O=this.node,A=T.attrs[O._id][this._id];A.points&&A.points.trueEnd&&O.setAttr("points",A.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var O=this.node,A=T.attrs[O._id][this._id];A.points&&A.points.trueStart&&O.points(A.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(O){return this.tween.seek(O*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var O=this.node._id,A=this._id,F=T.tweens[O],j;this.pause();for(j in F)delete T.tweens[O][j];delete T.attrs[O][A]}}o.Tween=T,T.attrs={},T.tweens={},c.Node.prototype.to=function(C){var O=C.onFinish;C.node=this,C.onFinish=function(){this.destroy(),O&&O()};var A=new T(C);A.play()},o.Easings={BackEaseIn(C,O,A,F){var j=1.70158;return A*(C/=F)*C*((j+1)*C-j)+O},BackEaseOut(C,O,A,F){var j=1.70158;return A*((C=C/F-1)*C*((j+1)*C+j)+1)+O},BackEaseInOut(C,O,A,F){var j=1.70158;return(C/=F/2)<1?A/2*(C*C*(((j*=1.525)+1)*C-j))+O:A/2*((C-=2)*C*(((j*=1.525)+1)*C+j)+2)+O},ElasticEaseIn(C,O,A,F,j,I){var M=0;return C===0?O:(C/=F)===1?O+A:(I||(I=F*.3),!j||j0?a:s),$=y*s,P=_*(_>0?a:s),T=S*(S>0?s:a);return{x:b,y:c?-1*T:P,width:$-b,height:T-P}}}Arc$1.Arc=Arc;Arc.prototype._centroid=!0;Arc.prototype.className="Arc";Arc.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Global_2$2._registerNode)(Arc);Factory_1$v.Factory.addGetterSetter(Arc,"innerRadius",0,(0,Validators_1$u.getNumberValidator)());Factory_1$v.Factory.addGetterSetter(Arc,"outerRadius",0,(0,Validators_1$u.getNumberValidator)());Factory_1$v.Factory.addGetterSetter(Arc,"angle",0,(0,Validators_1$u.getNumberValidator)());Factory_1$v.Factory.addGetterSetter(Arc,"clockwise",!1,(0,Validators_1$u.getBooleanValidator)());var Arrow$1={},Line$1={};Object.defineProperty(Line$1,"__esModule",{value:!0});Line$1.Line=void 0;const Factory_1$u=Factory,Shape_1$e=Shape,Validators_1$t=Validators,Global_1$f=Global;function getControlPoints(o,a,s,c,f,d,y){var _=Math.sqrt(Math.pow(s-o,2)+Math.pow(c-a,2)),S=Math.sqrt(Math.pow(f-s,2)+Math.pow(d-c,2)),b=y*_/(_+S),$=y*S/(_+S),P=s-b*(f-o),T=c-b*(d-a),C=s+$*(f-o),O=c+$*(d-a);return[P,T,C,O]}function expandPoints(o,a){var s=o.length,c=[],f,d;for(f=2;f4){for(_=this.getTensionPoints(),S=_.length,b=d?0:4,d||a.quadraticCurveTo(_[0],_[1],_[2],_[3]);b{let b,$,P;b=S/2,$=0;for(let C=0;C<20;C++)P=b*o.tValues[20][C]+b,$+=o.cValues[20][C]*c(y,_,P);return b*$};o.getCubicArcLength=a;const s=(y,_,S)=>{S===void 0&&(S=1);const b=y[0]-2*y[1]+y[2],$=_[0]-2*_[1]+_[2],P=2*y[1]-2*y[0],T=2*_[1]-2*_[0],C=4*(b*b+$*$),O=4*(b*P+$*T),A=P*P+T*T;if(C===0)return S*Math.sqrt(Math.pow(y[2]-y[0],2)+Math.pow(_[2]-_[0],2));const F=O/(2*C),j=A/C,I=S+F,M=j-F*F,L=I*I+M>0?Math.sqrt(I*I+M):0,U=F*F+M>0?Math.sqrt(F*F+M):0,z=F+Math.sqrt(F*F+M)!==0?M*Math.log(Math.abs((I+L)/(F+U))):0;return Math.sqrt(C)/2*(I*L-F*U+z)};o.getQuadraticArcLength=s;function c(y,_,S){const b=f(1,S,y),$=f(1,S,_),P=b*b+$*$;return Math.sqrt(P)}const f=(y,_,S)=>{const b=S.length-1;let $,P;if(b===0)return 0;if(y===0){P=0;for(let T=0;T<=b;T++)P+=o.binomialCoefficients[b][T]*Math.pow(1-_,b-T)*Math.pow(_,T)*S[T];return P}else{$=new Array(b);for(let T=0;T{let b=1,$=y/_,P=(y-S($))/_,T=0;for(;b>.001;){const C=S($+P),O=Math.abs(y-C)/_;if(O500)break}return $};o.t2length=d})(BezierFunctions);Object.defineProperty(Path$1,"__esModule",{value:!0});Path$1.Path=void 0;const Factory_1$t=Factory,Shape_1$d=Shape,Global_1$e=Global,BezierFunctions_1=BezierFunctions;class Path extends Shape_1$d.Shape{constructor(a){super(a),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=Path.parsePathData(this.data()),this.pathLength=Path.getPathLength(this.dataArray)}_sceneFunc(a){var s=this.dataArray;a.beginPath();for(var c=!1,f=0;f$?b:$,F=b>$?1:b/$,j=b>$?$/b:1;a.translate(_,S),a.rotate(C),a.scale(F,j),a.arc(0,0,A,P,P+T,1-O),a.scale(1/F,1/j),a.rotate(-C),a.translate(-_,-S);break;case"z":c=!0,a.closePath();break}}!c&&!this.hasFill()?a.strokeShape(this):a.fillStrokeShape(this)}getSelfRect(){var a=[];this.dataArray.forEach(function(b){if(b.command==="A"){var $=b.points[4],P=b.points[5],T=b.points[4]+P,C=Math.PI/180;if(Math.abs($-T)T;O-=C){const A=Path.getPointOnEllipticalArc(b.points[0],b.points[1],b.points[2],b.points[3],O,0);a.push(A.x,A.y)}else for(let O=$+C;Os[f].pathLength;)a-=s[f].pathLength,++f;if(f===d)return c=s[f-1].points.slice(-2),{x:c[0],y:c[1]};if(a<.01)return c=s[f].points.slice(0,2),{x:c[0],y:c[1]};var y=s[f],_=y.points;switch(y.command){case"L":return Path.getPointOnLine(a,y.start.x,y.start.y,_[0],_[1]);case"C":return Path.getPointOnCubicBezier((0,BezierFunctions_1.t2length)(a,Path.getPathLength(s),A=>(0,BezierFunctions_1.getCubicArcLength)([y.start.x,_[0],_[2],_[4]],[y.start.y,_[1],_[3],_[5]],A)),y.start.x,y.start.y,_[0],_[1],_[2],_[3],_[4],_[5]);case"Q":return Path.getPointOnQuadraticBezier((0,BezierFunctions_1.t2length)(a,Path.getPathLength(s),A=>(0,BezierFunctions_1.getQuadraticArcLength)([y.start.x,_[0],_[2]],[y.start.y,_[1],_[3]],A)),y.start.x,y.start.y,_[0],_[1],_[2],_[3]);case"A":var S=_[0],b=_[1],$=_[2],P=_[3],T=_[4],C=_[5],O=_[6];return T+=C*a/y.pathLength,Path.getPointOnEllipticalArc(S,b,$,P,T,O)}return null}static getPointOnLine(a,s,c,f,d,y,_){y===void 0&&(y=s),_===void 0&&(_=c);var S=(d-c)/(f-s+1e-8),b=Math.sqrt(a*a/(1+S*S));f0&&!isNaN(O[0]);){var I="",M=[],L=S,U=b,z,H,G,X,W,K,ie,ee,de,Z;switch(C){case"l":S+=O.shift(),b+=O.shift(),I="L",M.push(S,b);break;case"L":S=O.shift(),b=O.shift(),M.push(S,b);break;case"m":var Q=O.shift(),J=O.shift();if(S+=Q,b+=J,I="M",y.length>2&&y[y.length-1].command==="z"){for(var ne=y.length-2;ne>=0;ne--)if(y[ne].command==="M"){S=y[ne].points[0]+Q,b=y[ne].points[1]+J;break}}M.push(S,b),C="l";break;case"M":S=O.shift(),b=O.shift(),I="M",M.push(S,b),C="L";break;case"h":S+=O.shift(),I="L",M.push(S,b);break;case"H":S=O.shift(),I="L",M.push(S,b);break;case"v":b+=O.shift(),I="L",M.push(S,b);break;case"V":b=O.shift(),I="L",M.push(S,b);break;case"C":M.push(O.shift(),O.shift(),O.shift(),O.shift()),S=O.shift(),b=O.shift(),M.push(S,b);break;case"c":M.push(S+O.shift(),b+O.shift(),S+O.shift(),b+O.shift()),S+=O.shift(),b+=O.shift(),I="C",M.push(S,b);break;case"S":H=S,G=b,z=y[y.length-1],z.command==="C"&&(H=S+(S-z.points[2]),G=b+(b-z.points[3])),M.push(H,G,O.shift(),O.shift()),S=O.shift(),b=O.shift(),I="C",M.push(S,b);break;case"s":H=S,G=b,z=y[y.length-1],z.command==="C"&&(H=S+(S-z.points[2]),G=b+(b-z.points[3])),M.push(H,G,S+O.shift(),b+O.shift()),S+=O.shift(),b+=O.shift(),I="C",M.push(S,b);break;case"Q":M.push(O.shift(),O.shift()),S=O.shift(),b=O.shift(),M.push(S,b);break;case"q":M.push(S+O.shift(),b+O.shift()),S+=O.shift(),b+=O.shift(),I="Q",M.push(S,b);break;case"T":H=S,G=b,z=y[y.length-1],z.command==="Q"&&(H=S+(S-z.points[0]),G=b+(b-z.points[1])),S=O.shift(),b=O.shift(),I="Q",M.push(H,G,S,b);break;case"t":H=S,G=b,z=y[y.length-1],z.command==="Q"&&(H=S+(S-z.points[0]),G=b+(b-z.points[1])),S+=O.shift(),b+=O.shift(),I="Q",M.push(H,G,S,b);break;case"A":X=O.shift(),W=O.shift(),K=O.shift(),ie=O.shift(),ee=O.shift(),de=S,Z=b,S=O.shift(),b=O.shift(),I="A",M=this.convertEndpointToCenterParameterization(de,Z,S,b,ie,ee,X,W,K);break;case"a":X=O.shift(),W=O.shift(),K=O.shift(),ie=O.shift(),ee=O.shift(),de=S,Z=b,S+=O.shift(),b+=O.shift(),I="A",M=this.convertEndpointToCenterParameterization(de,Z,S,b,ie,ee,X,W,K);break}y.push({command:I||C,points:M,start:{x:L,y:U},pathLength:this.calcLength(L,U,I||C,M)})}(C==="z"||C==="Z")&&y.push({command:"z",points:[],start:void 0,pathLength:0})}return y}static calcLength(a,s,c,f){var d,y,_,S,b=Path;switch(c){case"L":return b.getLineLength(a,s,f[0],f[1]);case"C":return(0,BezierFunctions_1.getCubicArcLength)([a,f[0],f[2],f[4]],[s,f[1],f[3],f[5]],1);case"Q":return(0,BezierFunctions_1.getQuadraticArcLength)([a,f[0],f[2]],[s,f[1],f[3]],1);case"A":d=0;var $=f[4],P=f[5],T=f[4]+P,C=Math.PI/180;if(Math.abs($-T)T;S-=C)_=b.getPointOnEllipticalArc(f[0],f[1],f[2],f[3],S,0),d+=b.getLineLength(y.x,y.y,_.x,_.y),y=_;else for(S=$+C;S1&&(_*=Math.sqrt(C),S*=Math.sqrt(C));var O=Math.sqrt((_*_*(S*S)-_*_*(T*T)-S*S*(P*P))/(_*_*(T*T)+S*S*(P*P)));d===y&&(O*=-1),isNaN(O)&&(O=0);var A=O*_*T/S,F=O*-S*P/_,j=(a+c)/2+Math.cos($)*A-Math.sin($)*F,I=(s+f)/2+Math.sin($)*A+Math.cos($)*F,M=function(W){return Math.sqrt(W[0]*W[0]+W[1]*W[1])},L=function(W,K){return(W[0]*K[0]+W[1]*K[1])/(M(W)*M(K))},U=function(W,K){return(W[0]*K[1]=1&&(X=0),y===0&&X>0&&(X=X-2*Math.PI),y===1&&X<0&&(X=X+2*Math.PI),[j,I,_,S,z,X,$,y]}}Path$1.Path=Path;Path.prototype.className="Path";Path.prototype._attrsAffectingSize=["data"];(0,Global_1$e._registerNode)(Path);Factory_1$t.Factory.addGetterSetter(Path,"data");Object.defineProperty(Arrow$1,"__esModule",{value:!0});Arrow$1.Arrow=void 0;const Factory_1$s=Factory,Line_1$1=Line$1,Validators_1$s=Validators,Global_1$d=Global,Path_1$2=Path$1;class Arrow extends Line_1$1.Line{_sceneFunc(a){super._sceneFunc(a);var s=Math.PI*2,c=this.points(),f=c,d=this.tension()!==0&&c.length>4;d&&(f=this.getTensionPoints());var y=this.pointerLength(),_=c.length,S,b;if(d){const T=[f[f.length-4],f[f.length-3],f[f.length-2],f[f.length-1],c[_-2],c[_-1]],C=Path_1$2.Path.calcLength(f[f.length-4],f[f.length-3],"C",T),O=Path_1$2.Path.getPointOnQuadraticBezier(Math.min(1,1-y/C),T[0],T[1],T[2],T[3],T[4],T[5]);S=c[_-2]-O.x,b=c[_-1]-O.y}else S=c[_-2]-c[_-4],b=c[_-1]-c[_-3];var $=(Math.atan2(b,S)+s)%s,P=this.pointerWidth();this.pointerAtEnding()&&(a.save(),a.beginPath(),a.translate(c[_-2],c[_-1]),a.rotate($),a.moveTo(0,0),a.lineTo(-y,P/2),a.lineTo(-y,-P/2),a.closePath(),a.restore(),this.__fillStroke(a)),this.pointerAtBeginning()&&(a.save(),a.beginPath(),a.translate(c[0],c[1]),d?(S=(f[0]+f[2])/2-c[0],b=(f[1]+f[3])/2-c[1]):(S=c[2]-c[0],b=c[3]-c[1]),a.rotate((Math.atan2(-b,-S)+s)%s),a.moveTo(0,0),a.lineTo(-y,P/2),a.lineTo(-y,-P/2),a.closePath(),a.restore(),this.__fillStroke(a))}__fillStroke(a){var s=this.dashEnabled();s&&(this.attrs.dashEnabled=!1,a.setLineDash([])),a.fillStrokeShape(this),s&&(this.attrs.dashEnabled=!0)}getSelfRect(){const a=super.getSelfRect(),s=this.pointerWidth()/2;return{x:a.x-s,y:a.y-s,width:a.width+s*2,height:a.height+s*2}}}Arrow$1.Arrow=Arrow;Arrow.prototype.className="Arrow";(0,Global_1$d._registerNode)(Arrow);Factory_1$s.Factory.addGetterSetter(Arrow,"pointerLength",10,(0,Validators_1$s.getNumberValidator)());Factory_1$s.Factory.addGetterSetter(Arrow,"pointerWidth",10,(0,Validators_1$s.getNumberValidator)());Factory_1$s.Factory.addGetterSetter(Arrow,"pointerAtBeginning",!1);Factory_1$s.Factory.addGetterSetter(Arrow,"pointerAtEnding",!0);var Circle$1={};Object.defineProperty(Circle$1,"__esModule",{value:!0});Circle$1.Circle=void 0;const Factory_1$r=Factory,Shape_1$c=Shape,Validators_1$r=Validators,Global_1$c=Global;class Circle extends Shape_1$c.Shape{_sceneFunc(a){a.beginPath(),a.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(a){this.radius()!==a/2&&this.radius(a/2)}setHeight(a){this.radius()!==a/2&&this.radius(a/2)}}Circle$1.Circle=Circle;Circle.prototype._centroid=!0;Circle.prototype.className="Circle";Circle.prototype._attrsAffectingSize=["radius"];(0,Global_1$c._registerNode)(Circle);Factory_1$r.Factory.addGetterSetter(Circle,"radius",0,(0,Validators_1$r.getNumberValidator)());var Ellipse$1={};Object.defineProperty(Ellipse$1,"__esModule",{value:!0});Ellipse$1.Ellipse=void 0;const Factory_1$q=Factory,Shape_1$b=Shape,Validators_1$q=Validators,Global_1$b=Global;class Ellipse extends Shape_1$b.Shape{_sceneFunc(a){var s=this.radiusX(),c=this.radiusY();a.beginPath(),a.save(),s!==c&&a.scale(1,c/s),a.arc(0,0,s,0,Math.PI*2,!1),a.restore(),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(a){this.radiusX(a/2)}setHeight(a){this.radiusY(a/2)}}Ellipse$1.Ellipse=Ellipse;Ellipse.prototype.className="Ellipse";Ellipse.prototype._centroid=!0;Ellipse.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,Global_1$b._registerNode)(Ellipse);Factory_1$q.Factory.addComponentsGetterSetter(Ellipse,"radius",["x","y"]);Factory_1$q.Factory.addGetterSetter(Ellipse,"radiusX",0,(0,Validators_1$q.getNumberValidator)());Factory_1$q.Factory.addGetterSetter(Ellipse,"radiusY",0,(0,Validators_1$q.getNumberValidator)());var Image$1={};Object.defineProperty(Image$1,"__esModule",{value:!0});Image$1.Image=void 0;const Util_1$7=Util,Factory_1$p=Factory,Shape_1$a=Shape,Global_1$a=Global,Validators_1$p=Validators;class Image extends Shape_1$a.Shape{constructor(a){super(a),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const a=this.image();a&&a.complete||a&&a.readyState===4||a&&a.addEventListener&&a.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(a){const s=this.getWidth(),c=this.getHeight(),f=this.cornerRadius(),d=this.attrs.image;let y;if(d){const _=this.attrs.cropWidth,S=this.attrs.cropHeight;_&&S?y=[d,this.cropX(),this.cropY(),_,S,0,0,s,c]:y=[d,0,0,s,c]}(this.hasFill()||this.hasStroke()||f)&&(a.beginPath(),f?Util_1$7.Util.drawRoundedRectPath(a,s,c,f):a.rect(0,0,s,c),a.closePath(),a.fillStrokeShape(this)),d&&(f&&a.clip(),a.drawImage.apply(a,y))}_hitFunc(a){var s=this.width(),c=this.height(),f=this.cornerRadius();a.beginPath(),f?Util_1$7.Util.drawRoundedRectPath(a,s,c,f):a.rect(0,0,s,c),a.closePath(),a.fillStrokeShape(this)}getWidth(){var a,s;return(a=this.attrs.width)!==null&&a!==void 0?a:(s=this.image())===null||s===void 0?void 0:s.width}getHeight(){var a,s;return(a=this.attrs.height)!==null&&a!==void 0?a:(s=this.image())===null||s===void 0?void 0:s.height}static fromURL(a,s,c=null){var f=Util_1$7.Util.createImageElement();f.onload=function(){var d=new Image({image:f});s(d)},f.onerror=c,f.crossOrigin="Anonymous",f.src=a}}Image$1.Image=Image;Image.prototype.className="Image";(0,Global_1$a._registerNode)(Image);Factory_1$p.Factory.addGetterSetter(Image,"cornerRadius",0,(0,Validators_1$p.getNumberOrArrayOfNumbersValidator)(4));Factory_1$p.Factory.addGetterSetter(Image,"image");Factory_1$p.Factory.addComponentsGetterSetter(Image,"crop",["x","y","width","height"]);Factory_1$p.Factory.addGetterSetter(Image,"cropX",0,(0,Validators_1$p.getNumberValidator)());Factory_1$p.Factory.addGetterSetter(Image,"cropY",0,(0,Validators_1$p.getNumberValidator)());Factory_1$p.Factory.addGetterSetter(Image,"cropWidth",0,(0,Validators_1$p.getNumberValidator)());Factory_1$p.Factory.addGetterSetter(Image,"cropHeight",0,(0,Validators_1$p.getNumberValidator)());var Label$1={};Object.defineProperty(Label$1,"__esModule",{value:!0});Label$1.Tag=Label$1.Label=void 0;const Factory_1$o=Factory,Shape_1$9=Shape,Group_1$1=Group$1,Validators_1$o=Validators,Global_1$9=Global;var ATTR_CHANGE_LIST$2=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],CHANGE_KONVA$1="Change.konva",NONE$1="none",UP="up",RIGHT$1="right",DOWN="down",LEFT$1="left",attrChangeListLen$1=ATTR_CHANGE_LIST$2.length;class Label extends Group_1$1.Group{constructor(a){super(a),this.on("add.konva",function(s){this._addListeners(s.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(a){var s=this,c,f=function(){s._sync()};for(c=0;c{s=Math.min(s,y.x),c=Math.max(c,y.x),f=Math.min(f,y.y),d=Math.max(d,y.y)}),{x:s,y:f,width:c-s,height:d-f}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(a){this.radius(a/2)}setHeight(a){this.radius(a/2)}}RegularPolygon$1.RegularPolygon=RegularPolygon;RegularPolygon.prototype.className="RegularPolygon";RegularPolygon.prototype._centroid=!0;RegularPolygon.prototype._attrsAffectingSize=["radius"];(0,Global_1$7._registerNode)(RegularPolygon);Factory_1$m.Factory.addGetterSetter(RegularPolygon,"radius",0,(0,Validators_1$m.getNumberValidator)());Factory_1$m.Factory.addGetterSetter(RegularPolygon,"sides",0,(0,Validators_1$m.getNumberValidator)());var Ring$1={};Object.defineProperty(Ring$1,"__esModule",{value:!0});Ring$1.Ring=void 0;const Factory_1$l=Factory,Shape_1$6=Shape,Validators_1$l=Validators,Global_1$6=Global;var PIx2=Math.PI*2;class Ring extends Shape_1$6.Shape{_sceneFunc(a){a.beginPath(),a.arc(0,0,this.innerRadius(),0,PIx2,!1),a.moveTo(this.outerRadius(),0),a.arc(0,0,this.outerRadius(),PIx2,0,!0),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(a){this.outerRadius(a/2)}setHeight(a){this.outerRadius(a/2)}}Ring$1.Ring=Ring;Ring.prototype.className="Ring";Ring.prototype._centroid=!0;Ring.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Global_1$6._registerNode)(Ring);Factory_1$l.Factory.addGetterSetter(Ring,"innerRadius",0,(0,Validators_1$l.getNumberValidator)());Factory_1$l.Factory.addGetterSetter(Ring,"outerRadius",0,(0,Validators_1$l.getNumberValidator)());var Sprite$1={};Object.defineProperty(Sprite$1,"__esModule",{value:!0});Sprite$1.Sprite=void 0;const Factory_1$k=Factory,Shape_1$5=Shape,Animation_1=Animation$1,Validators_1$k=Validators,Global_1$5=Global;class Sprite extends Shape_1$5.Shape{constructor(a){super(a),this._updated=!0,this.anim=new Animation_1.Animation(()=>{var s=this._updated;return this._updated=!1,s}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(a){var s=this.animation(),c=this.frameIndex(),f=c*4,d=this.animations()[s],y=this.frameOffsets(),_=d[f+0],S=d[f+1],b=d[f+2],$=d[f+3],P=this.image();if((this.hasFill()||this.hasStroke())&&(a.beginPath(),a.rect(0,0,b,$),a.closePath(),a.fillStrokeShape(this)),P)if(y){var T=y[s],C=c*2;a.drawImage(P,_,S,b,$,T[C+0],T[C+1],b,$)}else a.drawImage(P,_,S,b,$,0,0,b,$)}_hitFunc(a){var s=this.animation(),c=this.frameIndex(),f=c*4,d=this.animations()[s],y=this.frameOffsets(),_=d[f+2],S=d[f+3];if(a.beginPath(),y){var b=y[s],$=c*2;a.rect(b[$+0],b[$+1],_,S)}else a.rect(0,0,_,S);a.closePath(),a.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var a=this;this.interval=setInterval(function(){a._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var a=this.getLayer();this.anim.setLayers(a),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var a=this.frameIndex(),s=this.animation(),c=this.animations(),f=c[s],d=f.length/4;a{a=a.trim();const s=a.indexOf(" ")>=0,c=a.indexOf('"')>=0||a.indexOf("'")>=0;return s&&!c&&(a=`"${a}"`),a}).join(", ")}var dummyContext;function getDummyContext(){return dummyContext||(dummyContext=Util_1$5.Util.createCanvasElement().getContext(CONTEXT_2D),dummyContext)}function _fillFunc$1(o){o.fillText(this._partialText,this._partialTextX,this._partialTextY)}function _strokeFunc$1(o){o.setAttr("miterLimit",2),o.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function checkDefaultFill(o){return o=o||{},!o.fillLinearGradientColorStops&&!o.fillRadialGradientColorStops&&!o.fillPatternImage&&(o.fill=o.fill||"black"),o}let Text$3=class extends Shape_1$3.Shape{constructor(a){super(checkDefaultFill(a)),this._partialTextX=0,this._partialTextY=0;for(var s=0;s1&&(I+=y)}}}_hitFunc(a){var s=this.getWidth(),c=this.getHeight();a.beginPath(),a.rect(0,0,s,c),a.closePath(),a.fillStrokeShape(this)}setText(a){var s=Util_1$5.Util._isString(a)?a:a==null?"":a+"";return this._setAttr(TEXT,s),this}getWidth(){var a=this.attrs.width===AUTO||this.attrs.width===void 0;return a?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var a=this.attrs.height===AUTO||this.attrs.height===void 0;return a?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return Util_1$5.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(a){var s=getDummyContext(),c=this.fontSize(),f;return s.save(),s.font=this._getContextFont(),f=s.measureText(a),s.restore(),{width:f.width,height:c}}_getContextFont(){return this.fontStyle()+SPACE$1+this.fontVariant()+SPACE$1+(this.fontSize()+PX_SPACE)+normalizeFontFamily(this.fontFamily())}_addTextLine(a){this.align()===JUSTIFY&&(a=a.trim());var c=this._getTextWidth(a);return this.textArr.push({text:a,width:c,lastInParagraph:!1})}_getTextWidth(a){var s=this.letterSpacing(),c=a.length;return getDummyContext().measureText(a).width+(c?s*(c-1):0)}_setTextData(){var a=this.text().split(` -`),s=+this.fontSize(),c=0,f=this.lineHeight()*s,d=this.attrs.width,y=this.attrs.height,_=d!==AUTO&&d!==void 0,S=y!==AUTO&&y!==void 0,b=this.padding(),$=d-b*2,P=y-b*2,T=0,C=this.wrap(),O=C!==NONE,A=C!==CHAR&&O,F=this.ellipsis();this.textArr=[],getDummyContext().font=this._getContextFont();for(var j=F?this._getTextWidth(ELLIPSIS):0,I=0,M=a.length;I$)for(;L.length>0;){for(var z=0,H=L.length,G="",X=0;z>>1,K=L.slice(0,W+1),ie=this._getTextWidth(K)+j;ie<=$?(z=W+1,G=K,X=ie):H=W}if(G){if(A){var ee,de=L[G.length],Z=de===SPACE$1||de===DASH;Z&&X<=$?ee=G.length:ee=Math.max(G.lastIndexOf(SPACE$1),G.lastIndexOf(DASH))+1,ee>0&&(z=ee,G=G.slice(0,z),X=this._getTextWidth(G))}G=G.trimRight(),this._addTextLine(G),c=Math.max(c,X),T+=f;var Q=this._shouldHandleEllipsis(T);if(Q){this._tryToAddEllipsisToLastLine();break}if(L=L.slice(z),L=L.trimLeft(),L.length>0&&(U=this._getTextWidth(L),U<=$)){this._addTextLine(L),T+=f,c=Math.max(c,U);break}}else break}else this._addTextLine(L),T+=f,c=Math.max(c,U),this._shouldHandleEllipsis(T)&&IP)break}this.textHeight=s,this.textWidth=c}_shouldHandleEllipsis(a){var s=+this.fontSize(),c=this.lineHeight()*s,f=this.attrs.height,d=f!==AUTO&&f!==void 0,y=this.padding(),_=f-y*2,S=this.wrap(),b=S!==NONE;return!b||d&&a+c>_}_tryToAddEllipsisToLastLine(){var a=this.attrs.width,s=a!==AUTO&&a!==void 0,c=this.padding(),f=a-c*2,d=this.ellipsis(),y=this.textArr[this.textArr.length-1];if(!(!y||!d)){if(s){var _=this._getTextWidth(y.text+ELLIPSIS)s?null:Path_1$1.Path.getPointAtLengthOfDataArray(a,this.dataArray)}_readDataAttribute(){this.dataArray=Path_1$1.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(a){a.setAttr("font",this._getContextFont()),a.setAttr("textBaseline",this.textBaseline()),a.setAttr("textAlign","left"),a.save();var s=this.textDecoration(),c=this.fill(),f=this.fontSize(),d=this.glyphInfo;s==="underline"&&a.beginPath();for(var y=0;y=1){var c=s[0].p0;a.moveTo(c.x,c.y)}for(var f=0;fo+`.${EVENTS_NAME}`).join(" "),NODES_RECT="nodesRect",TRANSFORM_CHANGE_STR=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],ANGLES={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const TOUCH_DEVICE="ontouchstart"in Global_1$1.Konva._global;function getCursor(o,a,s){if(o==="rotater")return s;a+=Util_1$3.Util.degToRad(ANGLES[o]||0);var c=(Util_1$3.Util.radToDeg(a)%360+360)%360;return Util_1$3.Util._inRange(c,315+22.5,360)||Util_1$3.Util._inRange(c,0,22.5)?"ns-resize":Util_1$3.Util._inRange(c,45-22.5,45+22.5)?"nesw-resize":Util_1$3.Util._inRange(c,90-22.5,90+22.5)?"ew-resize":Util_1$3.Util._inRange(c,135-22.5,135+22.5)?"nwse-resize":Util_1$3.Util._inRange(c,180-22.5,180+22.5)?"ns-resize":Util_1$3.Util._inRange(c,225-22.5,225+22.5)?"nesw-resize":Util_1$3.Util._inRange(c,270-22.5,270+22.5)?"ew-resize":Util_1$3.Util._inRange(c,315-22.5,315+22.5)?"nwse-resize":(Util_1$3.Util.error("Transformer has unknown angle for cursor detection: "+c),"pointer")}var ANCHORS_NAMES=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],MAX_SAFE_INTEGER$2=1e8;function getCenter(o){return{x:o.x+o.width/2*Math.cos(o.rotation)+o.height/2*Math.sin(-o.rotation),y:o.y+o.height/2*Math.cos(o.rotation)+o.width/2*Math.sin(o.rotation)}}function rotateAroundPoint(o,a,s){const c=s.x+(o.x-s.x)*Math.cos(a)-(o.y-s.y)*Math.sin(a),f=s.y+(o.x-s.x)*Math.sin(a)+(o.y-s.y)*Math.cos(a);return we(se({},o),{rotation:o.rotation+a,x:c,y:f})}function rotateAroundCenter(o,a){const s=getCenter(o);return rotateAroundPoint(o,a,s)}function getSnap(o,a,s){let c=a;for(let f=0;ff.isAncestorOf(this)?(Util_1$3.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);this._nodes=a=s,a.length===1&&this.useSingleNodeRotation()?this.rotation(a[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(f=>{const d=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},y=f._attrsAffectingSize.map(_=>_+"Change."+this._getEventNamespace()).join(" ");f.on(y,d),f.on(TRANSFORM_CHANGE_STR.map(_=>_+`.${this._getEventNamespace()}`).join(" "),d),f.on(`absoluteTransformChange.${this._getEventNamespace()}`,d),this._proxyDrag(f)}),this._resetTransformCache();var c=!!this.findOne(".top-left");return c&&this.update(),this}_proxyDrag(a){let s;a.on(`dragstart.${this._getEventNamespace()}`,c=>{s=a.getAbsolutePosition(),!this.isDragging()&&a!==this.findOne(".back")&&this.startDrag(c,!1)}),a.on(`dragmove.${this._getEventNamespace()}`,c=>{if(!s)return;const f=a.getAbsolutePosition(),d=f.x-s.x,y=f.y-s.y;this.nodes().forEach(_=>{if(_===a||_.isDragging())return;const S=_.getAbsolutePosition();_.setAbsolutePosition({x:S.x+d,y:S.y+y}),_.startDrag(c)}),s=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(a=>{a.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(NODES_RECT),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(NODES_RECT,this.__getNodeRect)}__getNodeShape(a,s=this.rotation(),c){var f=a.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),d=a.getAbsoluteScale(c),y=a.getAbsolutePosition(c),_=f.x*d.x-a.offsetX()*d.x,S=f.y*d.y-a.offsetY()*d.y;const b=(Global_1$1.Konva.getAngle(a.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),$={x:y.x+_*Math.cos(b)+S*Math.sin(-b),y:y.y+S*Math.cos(b)+_*Math.sin(b),width:f.width*d.x,height:f.height*d.y,rotation:b};return rotateAroundPoint($,-Global_1$1.Konva.getAngle(s),{x:0,y:0})}__getNodeRect(){var a=this.getNode();if(!a)return{x:-MAX_SAFE_INTEGER$2,y:-MAX_SAFE_INTEGER$2,width:0,height:0,rotation:0};const s=[];this.nodes().map(b=>{const $=b.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var P=[{x:$.x,y:$.y},{x:$.x+$.width,y:$.y},{x:$.x+$.width,y:$.y+$.height},{x:$.x,y:$.y+$.height}],T=b.getAbsoluteTransform();P.forEach(function(C){var O=T.point(C);s.push(O)})});const c=new Util_1$3.Transform;c.rotate(-Global_1$1.Konva.getAngle(this.rotation()));var f=1/0,d=1/0,y=-1/0,_=-1/0;s.forEach(function(b){var $=c.point(b);f===void 0&&(f=y=$.x,d=_=$.y),f=Math.min(f,$.x),d=Math.min(d,$.y),y=Math.max(y,$.x),_=Math.max(_,$.y)}),c.invert();const S=c.point({x:f,y:d});return{x:S.x,y:S.y,width:y-f,height:_-d,rotation:Global_1$1.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),ANCHORS_NAMES.forEach(a=>{this._createAnchor(a)}),this._createAnchor("rotater")}_createAnchor(a){var s=new Rect_1$1.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:a+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:TOUCH_DEVICE?10:"auto"}),c=this;s.on("mousedown touchstart",function(f){c._handleMouseDown(f)}),s.on("dragstart",f=>{s.stopDrag(),f.cancelBubble=!0}),s.on("dragend",f=>{f.cancelBubble=!0}),s.on("mouseenter",()=>{var f=Global_1$1.Konva.getAngle(this.rotation()),d=this.rotateAnchorCursor(),y=getCursor(a,f,d);s.getStage().content&&(s.getStage().content.style.cursor=y),this._cursorChange=!0}),s.on("mouseout",()=>{s.getStage().content&&(s.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(s)}_createBack(){var a=new Shape_1$1.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(s,c){var f=c.getParent(),d=f.padding();s.beginPath(),s.rect(-d,-d,c.width()+d*2,c.height()+d*2),s.moveTo(c.width()/2,-d),f.rotateEnabled()&&f.rotateLineVisible()&&s.lineTo(c.width()/2,-f.rotateAnchorOffset()*Util_1$3.Util._sign(c.height())-d),s.fillStrokeShape(c)},hitFunc:(s,c)=>{if(this.shouldOverdrawWholeArea()){var f=this.padding();s.beginPath(),s.rect(-f,-f,c.width()+f*2,c.height()+f*2),s.fillStrokeShape(c)}}});this.add(a),this._proxyDrag(a),a.on("dragstart",s=>{s.cancelBubble=!0}),a.on("dragmove",s=>{s.cancelBubble=!0}),a.on("dragend",s=>{s.cancelBubble=!0}),this.on("dragmove",s=>{this.update()})}_handleMouseDown(a){this._movingAnchorName=a.target.name().split(" ")[0];var s=this._getNodeRect(),c=s.width,f=s.height,d=Math.sqrt(Math.pow(c,2)+Math.pow(f,2));this.sin=Math.abs(f/d),this.cos=Math.abs(c/d),typeof window!="undefined"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var y=a.target.getAbsolutePosition(),_=a.target.getStage().getPointerPosition();this._anchorDragOffset={x:_.x-y.x,y:_.y-y.y},this._fire("transformstart",{evt:a.evt,target:this.getNode()}),this._nodes.forEach(S=>{S._fire("transformstart",{evt:a.evt,target:S})})}_handleMouseMove(a){var s,c,f,d=this.findOne("."+this._movingAnchorName),y=d.getStage();y.setPointersPositions(a);const _=y.getPointerPosition();let S={x:_.x-this._anchorDragOffset.x,y:_.y-this._anchorDragOffset.y};const b=d.getAbsolutePosition();this.anchorDragBoundFunc()&&(S=this.anchorDragBoundFunc()(b,S,a)),d.setAbsolutePosition(S);const $=d.getAbsolutePosition();if(!(b.x===$.x&&b.y===$.y)){if(this._movingAnchorName==="rotater"){var P=this._getNodeRect();s=d.x()-P.width/2,c=-d.y()+P.height/2;let ee=Math.atan2(-c,s)+Math.PI/2;P.height<0&&(ee-=Math.PI);var T=Global_1$1.Konva.getAngle(this.rotation());const de=T+ee,Z=Global_1$1.Konva.getAngle(this.rotationSnapTolerance()),J=getSnap(this.rotationSnaps(),de,Z)-P.rotation,ne=rotateAroundCenter(P,J);this._fitNodesInto(ne,a);return}var C=this.shiftBehavior(),O;C==="inverted"?O=this.keepRatio()&&!a.shiftKey:C==="none"?O=this.keepRatio():O=this.keepRatio()||a.shiftKey;var M=this.centeredScaling()||a.altKey;if(this._movingAnchorName==="top-left"){if(O){var A=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};f=Math.sqrt(Math.pow(A.x-d.x(),2)+Math.pow(A.y-d.y(),2));var F=this.findOne(".top-left").x()>A.x?-1:1,j=this.findOne(".top-left").y()>A.y?-1:1;s=f*this.cos*F,c=f*this.sin*j,this.findOne(".top-left").x(A.x-s),this.findOne(".top-left").y(A.y-c)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(d.y());else if(this._movingAnchorName==="top-right"){if(O){var A=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};f=Math.sqrt(Math.pow(d.x()-A.x,2)+Math.pow(A.y-d.y(),2));var F=this.findOne(".top-right").x()A.y?-1:1;s=f*this.cos*F,c=f*this.sin*j,this.findOne(".top-right").x(A.x+s),this.findOne(".top-right").y(A.y-c)}var I=d.position();this.findOne(".top-left").y(I.y),this.findOne(".bottom-right").x(I.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(d.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(d.x());else if(this._movingAnchorName==="bottom-left"){if(O){var A=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};f=Math.sqrt(Math.pow(A.x-d.x(),2)+Math.pow(d.y()-A.y,2));var F=A.x{c._fire("transformend",{evt:a,target:c})}),this._movingAnchorName=null}}_fitNodesInto(a,s){var c=this._getNodeRect();const f=1;if(Util_1$3.Util._inRange(a.width,-this.padding()*2-f,f)){this.update();return}if(Util_1$3.Util._inRange(a.height,-this.padding()*2-f,f)){this.update();return}var d=new Util_1$3.Transform;if(d.rotate(Global_1$1.Konva.getAngle(this.rotation())),this._movingAnchorName&&a.width<0&&this._movingAnchorName.indexOf("left")>=0){const T=d.point({x:-this.padding()*2,y:0});a.x+=T.x,a.y+=T.y,a.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y}else if(this._movingAnchorName&&a.width<0&&this._movingAnchorName.indexOf("right")>=0){const T=d.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y,a.width+=this.padding()*2}if(this._movingAnchorName&&a.height<0&&this._movingAnchorName.indexOf("top")>=0){const T=d.point({x:0,y:-this.padding()*2});a.x+=T.x,a.y+=T.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y,a.height+=this.padding()*2}else if(this._movingAnchorName&&a.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const T=d.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y,a.height+=this.padding()*2}if(this.boundBoxFunc()){const T=this.boundBoxFunc()(c,a);T?a=T:Util_1$3.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const y=1e7,_=new Util_1$3.Transform;_.translate(c.x,c.y),_.rotate(c.rotation),_.scale(c.width/y,c.height/y);const S=new Util_1$3.Transform,b=a.width/y,$=a.height/y;this.flipEnabled()===!1?(S.translate(a.x,a.y),S.rotate(a.rotation),S.translate(a.width<0?a.width:0,a.height<0?a.height:0),S.scale(Math.abs(b),Math.abs($))):(S.translate(a.x,a.y),S.rotate(a.rotation),S.scale(b,$));const P=S.multiply(_.invert());this._nodes.forEach(T=>{var C;const O=T.getParent().getAbsoluteTransform(),A=T.getTransform().copy();A.translate(T.offsetX(),T.offsetY());const F=new Util_1$3.Transform;F.multiply(O.copy().invert()).multiply(P).multiply(O).multiply(A);const j=F.decompose();T.setAttrs(j),this._fire("transform",{evt:s,target:T}),T._fire("transform",{evt:s,target:T}),(C=T.getLayer())===null||C===void 0||C.batchDraw()}),this.rotation(Util_1$3.Util._getRotation(a.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(a,s){this.findOne(a).setAttrs(s)}update(){var a,s=this._getNodeRect();this.rotation(Util_1$3.Util._getRotation(s.rotation));var c=s.width,f=s.height,d=this.enabledAnchors(),y=this.resizeEnabled(),_=this.padding(),S=this.anchorSize();const b=this.find("._anchor");b.forEach(P=>{P.setAttrs({width:S,height:S,offsetX:S/2,offsetY:S/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:S/2+_,offsetY:S/2+_,visible:y&&d.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:c/2,y:0,offsetY:S/2+_,visible:y&&d.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:c,y:0,offsetX:S/2-_,offsetY:S/2+_,visible:y&&d.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:f/2,offsetX:S/2+_,visible:y&&d.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:c,y:f/2,offsetX:S/2-_,visible:y&&d.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:f,offsetX:S/2+_,offsetY:S/2-_,visible:y&&d.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:c/2,y:f,offsetY:S/2-_,visible:y&&d.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:c,y:f,offsetX:S/2-_,offsetY:S/2-_,visible:y&&d.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:c/2,y:-this.rotateAnchorOffset()*Util_1$3.Util._sign(f)-_,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:c,height:f,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const $=this.anchorStyleFunc();$&&b.forEach(P=>{$(P)}),(a=this.getLayer())===null||a===void 0||a.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var a=this.findOne("."+this._movingAnchorName);a&&a.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),Group_1.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Node_1$f.Node.prototype.toObject.call(this)}clone(a){var s=Node_1$f.Node.prototype.clone.call(this,a);return s}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}Transformer$1.Transformer=Transformer;function validateAnchors(o){return o instanceof Array||Util_1$3.Util.warn("enabledAnchors value should be an array"),o instanceof Array&&o.forEach(function(a){ANCHORS_NAMES.indexOf(a)===-1&&Util_1$3.Util.warn("Unknown anchor name: "+a+". Available names are: "+ANCHORS_NAMES.join(", "))}),o||[]}Transformer.prototype.className="Transformer";(0,Global_2$1._registerNode)(Transformer);Factory_1$g.Factory.addGetterSetter(Transformer,"enabledAnchors",ANCHORS_NAMES,validateAnchors);Factory_1$g.Factory.addGetterSetter(Transformer,"flipEnabled",!0,(0,Validators_1$g.getBooleanValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"resizeEnabled",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"anchorSize",10,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"rotateEnabled",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"rotateLineVisible",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"rotationSnaps",[]);Factory_1$g.Factory.addGetterSetter(Transformer,"rotateAnchorOffset",50,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"rotateAnchorCursor","crosshair");Factory_1$g.Factory.addGetterSetter(Transformer,"rotationSnapTolerance",5,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"borderEnabled",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"anchorStroke","rgb(0, 161, 255)");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorStrokeWidth",1,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"anchorFill","white");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorCornerRadius",0,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"borderStroke","rgb(0, 161, 255)");Factory_1$g.Factory.addGetterSetter(Transformer,"borderStrokeWidth",1,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"borderDash");Factory_1$g.Factory.addGetterSetter(Transformer,"keepRatio",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"shiftBehavior","default");Factory_1$g.Factory.addGetterSetter(Transformer,"centeredScaling",!1);Factory_1$g.Factory.addGetterSetter(Transformer,"ignoreStroke",!1);Factory_1$g.Factory.addGetterSetter(Transformer,"padding",0,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"node");Factory_1$g.Factory.addGetterSetter(Transformer,"nodes");Factory_1$g.Factory.addGetterSetter(Transformer,"boundBoxFunc");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorDragBoundFunc");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorStyleFunc");Factory_1$g.Factory.addGetterSetter(Transformer,"shouldOverdrawWholeArea",!1);Factory_1$g.Factory.addGetterSetter(Transformer,"useSingleNodeRotation",!0);Factory_1$g.Factory.backCompat(Transformer,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var Wedge$1={};Object.defineProperty(Wedge$1,"__esModule",{value:!0});Wedge$1.Wedge=void 0;const Factory_1$f=Factory,Shape_1=Shape,Global_1=Global,Validators_1$f=Validators,Global_2=Global;class Wedge extends Shape_1.Shape{_sceneFunc(a){a.beginPath(),a.arc(0,0,this.radius(),0,Global_1.Konva.getAngle(this.angle()),this.clockwise()),a.lineTo(0,0),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(a){this.radius(a/2)}setHeight(a){this.radius(a/2)}}Wedge$1.Wedge=Wedge;Wedge.prototype.className="Wedge";Wedge.prototype._centroid=!0;Wedge.prototype._attrsAffectingSize=["radius"];(0,Global_2._registerNode)(Wedge);Factory_1$f.Factory.addGetterSetter(Wedge,"radius",0,(0,Validators_1$f.getNumberValidator)());Factory_1$f.Factory.addGetterSetter(Wedge,"angle",0,(0,Validators_1$f.getNumberValidator)());Factory_1$f.Factory.addGetterSetter(Wedge,"clockwise",!1);Factory_1$f.Factory.backCompat(Wedge,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var Blur$1={};Object.defineProperty(Blur$1,"__esModule",{value:!0});Blur$1.Blur=void 0;const Factory_1$e=Factory,Node_1$e=Node$1,Validators_1$e=Validators;function BlurStack(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var mul_table=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],shg_table=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function filterGaussBlurRGBA(o,a){var s=o.data,c=o.width,f=o.height,d,y,_,S,b,$,P,T,C,O,A,F,j,I,M,L,U,z,H,G,X,W,K,ie,ee=a+a+1,de=c-1,Z=f-1,Q=a+1,J=Q*(Q+1)/2,ne=new BlurStack,fe=null,le=ne,ae=null,ce=null,ge=mul_table[a],pe=shg_table[a];for(_=1;_>pe,K!==0?(K=255/K,s[$]=(T*ge>>pe)*K,s[$+1]=(C*ge>>pe)*K,s[$+2]=(O*ge>>pe)*K):s[$]=s[$+1]=s[$+2]=0,T-=F,C-=j,O-=I,A-=M,F-=ae.r,j-=ae.g,I-=ae.b,M-=ae.a,S=P+((S=d+a+1)>pe,K>0?(K=255/K,s[S]=(T*ge>>pe)*K,s[S+1]=(C*ge>>pe)*K,s[S+2]=(O*ge>>pe)*K):s[S]=s[S+1]=s[S+2]=0,T-=F,C-=j,O-=I,A-=M,F-=ae.r,j-=ae.g,I-=ae.b,M-=ae.a,S=d+((S=y+Q)0&&filterGaussBlurRGBA(a,s)};Blur$1.Blur=Blur;Factory_1$e.Factory.addGetterSetter(Node_1$e.Node,"blurRadius",0,(0,Validators_1$e.getNumberValidator)(),Factory_1$e.Factory.afterSetFilter);var Brighten$1={};Object.defineProperty(Brighten$1,"__esModule",{value:!0});Brighten$1.Brighten=void 0;const Factory_1$d=Factory,Node_1$d=Node$1,Validators_1$d=Validators,Brighten=function(o){var a=this.brightness()*255,s=o.data,c=s.length,f;for(f=0;f255?255:f,d=d<0?0:d>255?255:d,y=y<0?0:y>255?255:y,s[_]=f,s[_+1]=d,s[_+2]=y};Contrast$1.Contrast=Contrast;Factory_1$c.Factory.addGetterSetter(Node_1$c.Node,"contrast",0,(0,Validators_1$c.getNumberValidator)(),Factory_1$c.Factory.afterSetFilter);var Emboss$1={};Object.defineProperty(Emboss$1,"__esModule",{value:!0});Emboss$1.Emboss=void 0;const Factory_1$b=Factory,Node_1$b=Node$1,Util_1$2=Util,Validators_1$b=Validators,Emboss=function(o){var a=this.embossStrength()*10,s=this.embossWhiteLevel()*255,c=this.embossDirection(),f=this.embossBlend(),d=0,y=0,_=o.data,S=o.width,b=o.height,$=S*4,P=b;switch(c){case"top-left":d=-1,y=-1;break;case"top":d=-1,y=0;break;case"top-right":d=-1,y=1;break;case"right":d=0,y=1;break;case"bottom-right":d=1,y=1;break;case"bottom":d=1,y=0;break;case"bottom-left":d=1,y=-1;break;case"left":d=0,y=-1;break;default:Util_1$2.Util.error("Unknown emboss direction: "+c)}do{var T=(P-1)*$,C=d;P+C<1&&(C=0),P+C>b&&(C=0);var O=(P-1+C)*S*4,A=S;do{var F=T+(A-1)*4,j=y;A+j<1&&(j=0),A+j>S&&(j=0);var I=O+(A-1+j)*4,M=_[F]-_[I],L=_[F+1]-_[I+1],U=_[F+2]-_[I+2],z=M,H=z>0?z:-z,G=L>0?L:-L,X=U>0?U:-U;if(G>H&&(z=L),X>H&&(z=U),z*=a,f){var W=_[F]+z,K=_[F+1]+z,ie=_[F+2]+z;_[F]=W>255?255:W<0?0:W,_[F+1]=K>255?255:K<0?0:K,_[F+2]=ie>255?255:ie<0?0:ie}else{var ee=s-z;ee<0?ee=0:ee>255&&(ee=255),_[F]=_[F+1]=_[F+2]=ee}}while(--A)}while(--P)};Emboss$1.Emboss=Emboss;Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossStrength",.5,(0,Validators_1$b.getNumberValidator)(),Factory_1$b.Factory.afterSetFilter);Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossWhiteLevel",.5,(0,Validators_1$b.getNumberValidator)(),Factory_1$b.Factory.afterSetFilter);Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossDirection","top-left",null,Factory_1$b.Factory.afterSetFilter);Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossBlend",!1,null,Factory_1$b.Factory.afterSetFilter);var Enhance$1={};Object.defineProperty(Enhance$1,"__esModule",{value:!0});Enhance$1.Enhance=void 0;const Factory_1$a=Factory,Node_1$a=Node$1,Validators_1$a=Validators;function remap(o,a,s,c,f){var d=s-a,y=f-c,_;return d===0?c+y/2:y===0?c:(_=(o-a)/d,_=y*_+c,_)}const Enhance=function(o){var a=o.data,s=a.length,c=a[0],f=c,d,y=a[1],_=y,S,b=a[2],$=b,P,T,C=this.enhance();if(C!==0){for(T=0;Tf&&(f=d),S=a[T+1],S_&&(_=S),P=a[T+2],P$&&($=P);f===c&&(f=255,c=0),_===y&&(_=255,y=0),$===b&&($=255,b=0);var O,A,F,j,I,M,L,U,z;for(C>0?(A=f+C*(255-f),F=c-C*(c-0),I=_+C*(255-_),M=y-C*(y-0),U=$+C*(255-$),z=b-C*(b-0)):(O=(f+c)*.5,A=f+C*(f-O),F=c+C*(c-O),j=(_+y)*.5,I=_+C*(_-j),M=y+C*(y-j),L=($+b)*.5,U=$+C*($-L),z=b+C*(b-L)),T=0;Tj?F:j;var I=y,M=d,L,U,z=360/M*Math.PI/180,H,G;for(U=0;UM?I:M;var L=y,U=d,z,H,G=s.polarRotation||0,X,W;for($=0;$a&&(L=M,U=0,z=-1),f=0;f=0&&C=0&&O=0&&C=0&&O=255*4?255:0}return y}function smoothEdgeMask(o,a,s){for(var c=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],f=Math.round(Math.sqrt(c.length)),d=Math.floor(f/2),y=[],_=0;_=0&&C=0&&O=s))for(d=A;d=c||(y=(s*d+f)*4,_+=L[y+0],S+=L[y+1],b+=L[y+2],$+=L[y+3],M+=1);for(_=_/M,S=S/M,b=b/M,$=$/M,f=C;f=s))for(d=A;d=c||(y=(s*d+f)*4,L[y+0]=_,L[y+1]=S,L[y+2]=b,L[y+3]=$)}};Pixelate$1.Pixelate=Pixelate;Factory_1$4.Factory.addGetterSetter(Node_1$4.Node,"pixelSize",8,(0,Validators_1$4.getNumberValidator)(),Factory_1$4.Factory.afterSetFilter);var Posterize$1={};Object.defineProperty(Posterize$1,"__esModule",{value:!0});Posterize$1.Posterize=void 0;const Factory_1$3=Factory,Node_1$3=Node$1,Validators_1$3=Validators,Posterize=function(o){var a=Math.round(this.levels()*254)+1,s=o.data,c=s.length,f=255/a,d;for(d=0;d255?255:o<0?0:Math.round(o)});Factory_1$2.Factory.addGetterSetter(Node_1$2.Node,"green",0,function(o){return this._filterUpToDate=!1,o>255?255:o<0?0:Math.round(o)});Factory_1$2.Factory.addGetterSetter(Node_1$2.Node,"blue",0,Validators_1$2.RGBComponent,Factory_1$2.Factory.afterSetFilter);var RGBA$1={};Object.defineProperty(RGBA$1,"__esModule",{value:!0});RGBA$1.RGBA=void 0;const Factory_1$1=Factory,Node_1$1=Node$1,Validators_1$1=Validators,RGBA=function(o){var a=o.data,s=a.length,c=this.red(),f=this.green(),d=this.blue(),y=this.alpha(),_,S;for(_=0;_255?255:o<0?0:Math.round(o)});Factory_1$1.Factory.addGetterSetter(Node_1$1.Node,"green",0,function(o){return this._filterUpToDate=!1,o>255?255:o<0?0:Math.round(o)});Factory_1$1.Factory.addGetterSetter(Node_1$1.Node,"blue",0,Validators_1$1.RGBComponent,Factory_1$1.Factory.afterSetFilter);Factory_1$1.Factory.addGetterSetter(Node_1$1.Node,"alpha",1,function(o){return this._filterUpToDate=!1,o>1?1:o<0?0:o});var Sepia$1={};Object.defineProperty(Sepia$1,"__esModule",{value:!0});Sepia$1.Sepia=void 0;const Sepia=function(o){var a=o.data,s=a.length,c,f,d,y;for(c=0;c127&&(b=255-b),$>127&&($=255-$),P>127&&(P=255-P),a[S]=b,a[S+1]=$,a[S+2]=P}while(--_)}while(--d)};Solarize$1.Solarize=Solarize;var Threshold$1={};Object.defineProperty(Threshold$1,"__esModule",{value:!0});Threshold$1.Threshold=void 0;const Factory_1=Factory,Node_1=Node$1,Validators_1=Validators,Threshold=function(o){var a=this.threshold()*255,s=o.data,c=s.length,f;for(f=0;f{Ce.current=void 0,ge.current=void 0,ae.current=Pe});const Ve=reactExports.useMemo(()=>reactExports.createElement(F,_extends$f({},Pe,{ref:X})),[X,F,Pe]);return reactExports.useMemo(()=>O?reactExports.createElement(K.Provider,{value:le},Ve):Ve,[K,Ve,le])}const z=reactExports.memo(I);if(z.WrappedComponent=F,z.displayName=I.displayName=L,S){const G=reactExports.forwardRef(function(W,K){return reactExports.createElement(z,_extends$f({},W,{reactReduxForwardedRef:K}))});return G.displayName=L,G.WrappedComponent=F,hoistNonReactStatics(G,F)}return hoistNonReactStatics(z,F)}}function Provider({store:o,context:a,children:s,serverState:c,stabilityCheck:f="once",noopCheck:d="once"}){const y=reactExports.useMemo(()=>{const b=createSubscription(o);return{store:o,subscription:b,getServerState:c?()=>c:void 0,stabilityCheck:f,noopCheck:d}},[o,c,f,d]),_=reactExports.useMemo(()=>o.getState(),[o]);useIsomorphicLayoutEffect$2(()=>{const{subscription:b}=y;return b.onStateChange=b.notifyNestedSubs,b.trySubscribe(),_!==o.getState()&&b.notifyNestedSubs(),()=>{b.tryUnsubscribe(),b.onStateChange=void 0}},[y,_]);const S=a||ReactReduxContext;return reactExports.createElement(S.Provider,{value:y},s)}function createStoreHook(o=ReactReduxContext){const a=o===ReactReduxContext?useReduxContext:createReduxContextHook(o);return function(){const{store:c}=a();return c}}const useStore$2=createStoreHook();function createDispatchHook(o=ReactReduxContext){const a=o===ReactReduxContext?useStore$2:createStoreHook(o);return function(){return a().dispatch}}const useDispatch=createDispatchHook();initializeUseSelector(withSelectorExports.useSyncExternalStoreWithSelector);initializeConnect(shimExports.useSyncExternalStore);setBatch(reactDomExports.unstable_batchedUpdates);function _typeof$m(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$m=function(s){return typeof s}:_typeof$m=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$m(o)}function _classCallCheck$6(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(o,a){for(var s=0;s',a.insertBefore(s,a.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",o):o()}const consoleLogger={type:"logger",log(o){this.output("log",o)},warn(o){this.output("warn",o)},error(o){this.output("error",o)},output(o,a){console&&console[o]}};class Logger{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(a,s)}init(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=s.prefix||"i18next:",this.logger=a||consoleLogger,this.options=s,this.debug=s.debug}log(){for(var a=arguments.length,s=new Array(a),c=0;c{this.observers[c]=this.observers[c]||[],this.observers[c].push(s)}),this}off(a,s){if(this.observers[a]){if(!s){delete this.observers[a];return}this.observers[a]=this.observers[a].filter(c=>c!==s)}}emit(a){for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f{y(...c)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(y=>{y.apply(y,[a,...c])})}}function defer(){let o,a;const s=new Promise((c,f)=>{o=c,a=f});return s.resolve=o,s.reject=a,s}function makeString(o){return o==null?"":""+o}function copy$1(o,a,s){o.forEach(c=>{a[c]&&(s[c]=a[c])})}function getLastOfPath(o,a,s){function c(y){return y&&y.indexOf("###")>-1?y.replace(/###/g,"."):y}function f(){return!o||typeof o=="string"}const d=typeof a!="string"?[].concat(a):a.split(".");for(;d.length>1;){if(f())return{};const y=c(d.shift());!o[y]&&s&&(o[y]=new s),Object.prototype.hasOwnProperty.call(o,y)?o=o[y]:o={}}return f()?{}:{obj:o,k:c(d.shift())}}function setPath(o,a,s){const{obj:c,k:f}=getLastOfPath(o,a,Object);c[f]=s}function pushPath(o,a,s,c){const{obj:f,k:d}=getLastOfPath(o,a,Object);f[d]=f[d]||[],c&&(f[d]=f[d].concat(s)),c||f[d].push(s)}function getPath$1(o,a){const{obj:s,k:c}=getLastOfPath(o,a);if(s)return s[c]}function getPathWithDefaults(o,a,s){const c=getPath$1(o,s);return c!==void 0?c:getPath$1(a,s)}function deepExtend(o,a,s){for(const c in a)c!=="__proto__"&&c!=="constructor"&&(c in o?typeof o[c]=="string"||o[c]instanceof String||typeof a[c]=="string"||a[c]instanceof String?s&&(o[c]=a[c]):deepExtend(o[c],a[c],s):o[c]=a[c]);return o}function regexEscape(o){return o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function escape$1(o){return typeof o=="string"?o.replace(/[&<>"'\/]/g,a=>_entityMap[a]):o}const chars=[" ",",","?","!",";"];function looksLikeObjectPath(o,a,s){a=a||"",s=s||"";const c=chars.filter(y=>a.indexOf(y)<0&&s.indexOf(y)<0);if(c.length===0)return!0;const f=new RegExp(`(${c.map(y=>y==="?"?"\\?":y).join("|")})`);let d=!f.test(o);if(!d){const y=o.indexOf(s);y>0&&!f.test(o.substring(0,y))&&(d=!0)}return d}function deepFind(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!o)return;if(o[a])return o[a];const c=a.split(s);let f=o;for(let d=0;dd+y;)y++,_=c.slice(d,d+y).join(s),S=f[_];if(S===void 0)return;if(S===null)return null;if(a.endsWith(_)){if(typeof S=="string")return S;if(_&&typeof S[_]=="string")return S[_]}const b=c.slice(d+y).join(s);return b?deepFind(S,b,s):void 0}f=f[c[d]]}return f}function getCleanedCode(o){return o&&o.indexOf("_")>0?o.replace("_","-"):o}class ResourceStore extends EventEmitter{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=a||{},this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}removeNamespaces(a){const s=this.options.ns.indexOf(a);s>-1&&this.options.ns.splice(s,1)}getResource(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,y=f.ignoreJSONStructure!==void 0?f.ignoreJSONStructure:this.options.ignoreJSONStructure;let _=[a,s];c&&typeof c!="string"&&(_=_.concat(c)),c&&typeof c=="string"&&(_=_.concat(d?c.split(d):c)),a.indexOf(".")>-1&&(_=a.split("."));const S=getPath$1(this.data,_);return S||!y||typeof c!="string"?S:deepFind(this.data&&this.data[a]&&this.data[a][s],c,d)}addResource(a,s,c,f){let d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const y=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let _=[a,s];c&&(_=_.concat(y?c.split(y):c)),a.indexOf(".")>-1&&(_=a.split("."),f=s,s=_[1]),this.addNamespaces(s),setPath(this.data,_,f),d.silent||this.emit("added",a,s,c,f)}addResources(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const d in c)(typeof c[d]=="string"||Object.prototype.toString.apply(c[d])==="[object Array]")&&this.addResource(a,s,d,c[d],{silent:!0});f.silent||this.emit("added",a,s,c)}addResourceBundle(a,s,c,f,d){let y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},_=[a,s];a.indexOf(".")>-1&&(_=a.split("."),f=c,c=s,s=_[1]),this.addNamespaces(s);let S=getPath$1(this.data,_)||{};f?deepExtend(S,c,d):S=se(se({},S),c),setPath(this.data,_,S),y.silent||this.emit("added",a,s,c)}removeResourceBundle(a,s){this.hasResourceBundle(a,s)&&delete this.data[a][s],this.removeNamespaces(s),this.emit("removed",a,s)}hasResourceBundle(a,s){return this.getResource(a,s)!==void 0}getResourceBundle(a,s){return s||(s=this.options.defaultNS),this.options.compatibilityAPI==="v1"?se({},this.getResource(a,s)):this.getResource(a,s)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){const s=this.getDataByLanguage(a);return!!(s&&Object.keys(s)||[]).find(f=>s[f]&&Object.keys(s[f]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(o){this.processors[o.name]=o},handle(o,a,s,c,f){return o.forEach(d=>{this.processors[d]&&(a=this.processors[d].process(a,s,c,f))}),a}};const checkedLoadedFor={};class Translator extends EventEmitter{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),copy$1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(a==null)return!1;const c=this.resolve(a,s);return c&&c.res!==void 0}extractFromKey(a,s){let c=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const f=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let d=s.ns||this.options.defaultNS||[];const y=c&&a.indexOf(c)>-1,_=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!looksLikeObjectPath(a,c,f);if(y&&!_){const S=a.match(this.interpolator.nestingRegexp);if(S&&S.length>0)return{key:a,namespaces:d};const b=a.split(c);(c!==f||c===f&&this.options.ns.indexOf(b[0])>-1)&&(d=b.shift()),a=b.join(f)}return typeof d=="string"&&(d=[d]),{key:a,namespaces:d}}translate(a,s,c){if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s=se({},s)),s||(s={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);const f=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,d=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:y,namespaces:_}=this.extractFromKey(a[a.length-1],s),S=_[_.length-1],b=s.lng||this.language,$=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(b&&b.toLowerCase()==="cimode"){if($){const I=s.nsSeparator||this.options.nsSeparator;return f?{res:`${S}${I}${y}`,usedKey:y,exactUsedKey:y,usedLng:b,usedNS:S,usedParams:this.getUsedParamsDetails(s)}:`${S}${I}${y}`}return f?{res:y,usedKey:y,exactUsedKey:y,usedLng:b,usedNS:S,usedParams:this.getUsedParamsDetails(s)}:y}const P=this.resolve(a,s);let T=P&&P.res;const C=P&&P.usedKey||y,O=P&&P.exactUsedKey||y,A=Object.prototype.toString.apply(T),F=["[object Number]","[object Function]","[object RegExp]"],j=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject;if(L&&T&&(typeof T!="string"&&typeof T!="boolean"&&typeof T!="number")&&F.indexOf(A)<0&&!(typeof j=="string"&&A==="[object Array]")){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const I=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,T,$e(se({},s),{ns:_})):`key '${y} (${this.language})' returned an object instead of string.`;return f?(P.res=I,P.usedParams=this.getUsedParamsDetails(s),P):I}if(d){const I=A==="[object Array]",U=I?[]:{},z=I?O:C;for(const H in T)if(Object.prototype.hasOwnProperty.call(T,H)){const G=`${z}${d}${H}`;U[H]=this.translate(G,$e(se({},s),{joinArrays:!1,ns:_})),U[H]===G&&(U[H]=T[H])}T=U}}else if(L&&typeof j=="string"&&A==="[object Array]")T=T.join(j),T&&(T=this.extendTranslation(T,a,s,c));else{let I=!1,U=!1;const z=s.count!==void 0&&typeof s.count!="string",H=Translator.hasDefaultValue(s),G=z?this.pluralResolver.getSuffix(b,s.count,s):"",X=s.ordinal&&z?this.pluralResolver.getSuffix(b,s.count,{ordinal:!1}):"",K=z&&!s.ordinal&&s.count===0&&this.pluralResolver.shouldUseIntlApi()&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${G}`]||s[`defaultValue${X}`]||s.defaultValue;!this.isValidLookup(T)&&H&&(I=!0,T=K),this.isValidLookup(T)||(U=!0,T=y);const ee=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&U?void 0:T,de=H&&K!==T&&this.options.updateMissing;if(U||I||de){if(this.logger.log(de?"updateKey":"missingKey",b,S,y,de?K:T),d){const ne=this.resolve(y,$e(se({},s),{keySeparator:!1}));ne&&ne.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Z=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let ne=0;ne{const ae=H&&le!==T?le:ee;this.options.missingKeyHandler?this.options.missingKeyHandler(ne,S,fe,ae,de,s):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ne,S,fe,ae,de,s),this.emit("missingKey",ne,S,fe,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&z?Z.forEach(ne=>{this.pluralResolver.getSuffixes(ne,s).forEach(fe=>{J([ne],y+fe,s[`defaultValue${fe}`]||K)})}):J(Z,y,K))}T=this.extendTranslation(T,a,s,P,c),U&&T===y&&this.options.appendNamespaceToMissingKey&&(T=`${S}:${y}`),(U||I)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${S}:${y}`:y,I?T:void 0):T=this.options.parseMissingKeyHandler(T))}return f?(P.res=T,P.usedParams=this.getUsedParamsDetails(s),P):T}extendTranslation(a,s,c,f,d){var y=this;if(this.i18nFormat&&this.i18nFormat.parse)a=this.i18nFormat.parse(a,se(se({},this.options.interpolation.defaultVariables),c),c.lng||this.language||f.usedLng,f.usedNS,f.usedKey,{resolved:f});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init($e(se({},c),{interpolation:se(se({},this.options.interpolation),c.interpolation)}));const b=typeof a=="string"&&(c&&c.interpolation&&c.interpolation.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let $;if(b){const T=a.match(this.interpolator.nestingRegexp);$=T&&T.length}let P=c.replace&&typeof c.replace!="string"?c.replace:c;if(this.options.interpolation.defaultVariables&&(P=se(se({},this.options.interpolation.defaultVariables),P)),a=this.interpolator.interpolate(a,P,c.lng||this.language,c),b){const T=a.match(this.interpolator.nestingRegexp),C=T&&T.length;$1&&arguments[1]!==void 0?arguments[1]:{},c,f,d,y,_;return typeof a=="string"&&(a=[a]),a.forEach(S=>{if(this.isValidLookup(c))return;const b=this.extractFromKey(S,s),$=b.key;f=$;let P=b.namespaces;this.options.fallbackNS&&(P=P.concat(this.options.fallbackNS));const T=s.count!==void 0&&typeof s.count!="string",C=T&&!s.ordinal&&s.count===0&&this.pluralResolver.shouldUseIntlApi(),O=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",A=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);P.forEach(F=>{this.isValidLookup(c)||(_=F,!checkedLoadedFor[`${A[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(_)&&(checkedLoadedFor[`${A[0]}-${F}`]=!0,this.logger.warn(`key "${f}" for languages "${A.join(", ")}" won't get resolved as namespace "${_}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),A.forEach(j=>{if(this.isValidLookup(c))return;y=j;const L=[$];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(L,$,j,F,s);else{let I;T&&(I=this.pluralResolver.getSuffix(j,s.count,s));const U=`${this.options.pluralSeparator}zero`,z=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(L.push($+I),s.ordinal&&I.indexOf(z)===0&&L.push($+I.replace(z,this.options.pluralSeparator)),C&&L.push($+U)),O){const H=`${$}${this.options.contextSeparator}${s.context}`;L.push(H),T&&(L.push(H+I),s.ordinal&&I.indexOf(z)===0&&L.push(H+I.replace(z,this.options.pluralSeparator)),C&&L.push(H+U))}}let M;for(;M=L.pop();)this.isValidLookup(c)||(d=M,c=this.getResource(j,F,M,s))}))})}),{res:c,usedKey:f,exactUsedKey:d,usedLng:y,usedNS:_}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(a,s,c,f):this.resourceStore.getResource(a,s,c,f)}getUsedParamsDetails(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=a.replace&&typeof a.replace!="string";let f=c?a.replace:a;if(c&&typeof a.count!="undefined"&&(f.count=a.count),this.options.interpolation.defaultVariables&&(f=se(se({},this.options.interpolation.defaultVariables),f)),!c){f=se({},f);for(const d of s)delete f[d]}return f}static hasDefaultValue(a){const s="defaultValue";for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&s===c.substring(0,s.length)&&a[c]!==void 0)return!0;return!1}}function capitalize(o){return o.charAt(0).toUpperCase()+o.slice(1)}class LanguageUtil{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(a){if(a=getCleanedCode(a),!a||a.indexOf("-")<0)return null;const s=a.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(a){if(a=getCleanedCode(a),!a||a.indexOf("-")<0)return a;const s=a.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(a){if(typeof a=="string"&&a.indexOf("-")>-1){const s=["hans","hant","latn","cyrl","cans","mong","arab"];let c=a.split("-");return this.options.lowerCaseLng?c=c.map(f=>f.toLowerCase()):c.length===2?(c[0]=c[0].toLowerCase(),c[1]=c[1].toUpperCase(),s.indexOf(c[1].toLowerCase())>-1&&(c[1]=capitalize(c[1].toLowerCase()))):c.length===3&&(c[0]=c[0].toLowerCase(),c[1].length===2&&(c[1]=c[1].toUpperCase()),c[0]!=="sgn"&&c[2].length===2&&(c[2]=c[2].toUpperCase()),s.indexOf(c[1].toLowerCase())>-1&&(c[1]=capitalize(c[1].toLowerCase())),s.indexOf(c[2].toLowerCase())>-1&&(c[2]=capitalize(c[2].toLowerCase()))),c.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let s;return a.forEach(c=>{if(s)return;const f=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(f))&&(s=f)}),!s&&this.options.supportedLngs&&a.forEach(c=>{if(s)return;const f=this.getLanguagePartFromCode(c);if(this.isSupportedCode(f))return s=f;s=this.options.supportedLngs.find(d=>{if(d===f)return d;if(!(d.indexOf("-")<0&&f.indexOf("-")<0)&&d.indexOf(f)===0)return d})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(a,s){if(!a)return[];if(typeof a=="function"&&(a=a(s)),typeof a=="string"&&(a=[a]),Object.prototype.toString.apply(a)==="[object Array]")return a;if(!s)return a.default||[];let c=a[s];return c||(c=a[this.getScriptPartFromCode(s)]),c||(c=a[this.formatLanguageCode(s)]),c||(c=a[this.getLanguagePartFromCode(s)]),c||(c=a.default),c||[]}toResolveHierarchy(a,s){const c=this.getFallbackCodes(s||this.options.fallbackLng||[],a),f=[],d=y=>{y&&(this.isSupportedCode(y)?f.push(y):this.logger.warn(`rejecting language code not found in supportedLngs: ${y}`))};return typeof a=="string"&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(a))):typeof a=="string"&&d(this.formatLanguageCode(a)),c.forEach(y=>{f.indexOf(y)<0&&d(this.formatLanguageCode(y))}),f}}let sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_rulesPluralsTypes={1:function(o){return+(o>1)},2:function(o){return+(o!=1)},3:function(o){return 0},4:function(o){return o%10==1&&o%100!=11?0:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?1:2},5:function(o){return o==0?0:o==1?1:o==2?2:o%100>=3&&o%100<=10?3:o%100>=11?4:5},6:function(o){return o==1?0:o>=2&&o<=4?1:2},7:function(o){return o==1?0:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?1:2},8:function(o){return o==1?0:o==2?1:o!=8&&o!=11?2:3},9:function(o){return+(o>=2)},10:function(o){return o==1?0:o==2?1:o<7?2:o<11?3:4},11:function(o){return o==1||o==11?0:o==2||o==12?1:o>2&&o<20?2:3},12:function(o){return+(o%10!=1||o%100==11)},13:function(o){return+(o!==0)},14:function(o){return o==1?0:o==2?1:o==3?2:3},15:function(o){return o%10==1&&o%100!=11?0:o%10>=2&&(o%100<10||o%100>=20)?1:2},16:function(o){return o%10==1&&o%100!=11?0:o!==0?1:2},17:function(o){return o==1||o%10==1&&o%100!=11?0:1},18:function(o){return o==0?0:o==1?1:2},19:function(o){return o==1?0:o==0||o%100>1&&o%100<11?1:o%100>10&&o%100<20?2:3},20:function(o){return o==1?0:o==0||o%100>0&&o%100<20?1:2},21:function(o){return o%100==1?1:o%100==2?2:o%100==3||o%100==4?3:0},22:function(o){return o==1?0:o==2?1:(o<0||o>10)&&o%10==0?2:3}};const nonIntlVersions=["v1","v2","v3"],intlVersions=["v4"],suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){const o={};return sets.forEach(a=>{a.lngs.forEach(s=>{o[s]={numbers:a.nr,plurals:_rulesPluralsTypes[a.fc]}})}),o}class PluralResolver{constructor(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=a,this.options=s,this.logger=baseLogger.create("pluralResolver"),(!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}addRule(a,s){this.rules[a]=s}getRule(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(getCleanedCode(a),{type:s.ordinal?"ordinal":"cardinal"})}catch(c){return}return this.rules[a]||this.rules[this.languageUtils.getLanguagePartFromCode(a)]}needsPlural(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const c=this.getRule(a,s);return this.shouldUseIntlApi()?c&&c.resolvedOptions().pluralCategories.length>1:c&&c.numbers.length>1}getPluralFormsOfKey(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(a,c).map(f=>`${s}${f}`)}getSuffixes(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const c=this.getRule(a,s);return c?this.shouldUseIntlApi()?c.resolvedOptions().pluralCategories.sort((f,d)=>suffixesOrder[f]-suffixesOrder[d]).map(f=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${f}`):c.numbers.map(f=>this.getSuffix(a,f,s)):[]}getSuffix(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const f=this.getRule(a,c);return f?this.shouldUseIntlApi()?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${f.select(s)}`:this.getSuffixRetroCompatible(f,s):(this.logger.warn(`no plural rule found for: ${a}`),"")}getSuffixRetroCompatible(a,s){const c=a.noAbs?a.plurals(s):a.plurals(Math.abs(s));let f=a.numbers[c];this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1&&(f===2?f="plural":f===1&&(f=""));const d=()=>this.options.prepend&&f.toString()?this.options.prepend+f.toString():f.toString();return this.options.compatibilityJSON==="v1"?f===1?"":typeof f=="number"?`_plural_${f.toString()}`:d():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1?d():this.options.prepend&&c.toString()?this.options.prepend+c.toString():c.toString()}shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON)}}function deepFindWithDefaults(o,a,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,d=getPathWithDefaults(o,a,s);return!d&&f&&typeof s=="string"&&(d=deepFind(o,s,c),d===void 0&&(d=deepFind(a,s,c))),d}class Interpolator{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator"),this.options=a,this.format=a.interpolation&&a.interpolation.format||(s=>s),this.init(a)}init(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};a.interpolation||(a.interpolation={escapeValue:!0});const s=a.interpolation;this.escape=s.escape!==void 0?s.escape:escape$1,this.escapeValue=s.escapeValue!==void 0?s.escapeValue:!0,this.useRawValueToEscape=s.useRawValueToEscape!==void 0?s.useRawValueToEscape:!1,this.prefix=s.prefix?regexEscape(s.prefix):s.prefixEscaped||"{{",this.suffix=s.suffix?regexEscape(s.suffix):s.suffixEscaped||"}}",this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||",",this.unescapePrefix=s.unescapeSuffix?"":s.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":s.unescapeSuffix||"",this.nestingPrefix=s.nestingPrefix?regexEscape(s.nestingPrefix):s.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=s.nestingSuffix?regexEscape(s.nestingSuffix):s.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=s.nestingOptionsSeparator?s.nestingOptionsSeparator:s.nestingOptionsSeparator||",",this.maxReplaces=s.maxReplaces?s.maxReplaces:1e3,this.alwaysFormat=s.alwaysFormat!==void 0?s.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const a=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(a,"g");const s=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(s,"g");const c=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(c,"g")}interpolate(a,s,c,f){let d,y,_;const S=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function b(O){return O.replace(/\$/g,"$$$$")}const $=O=>{if(O.indexOf(this.formatSeparator)<0){const L=deepFindWithDefaults(s,S,O,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(L,void 0,c,$e(se(se({},f),s),{interpolationkey:O})):L}const A=O.split(this.formatSeparator),F=A.shift().trim(),j=A.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(s,S,F,this.options.keySeparator,this.options.ignoreJSONStructure),j,c,$e(se(se({},f),s),{interpolationkey:F}))};this.resetRegExp();const P=f&&f.missingInterpolationHandler||this.options.missingInterpolationHandler,T=f&&f.interpolation&&f.interpolation.skipOnVariables!==void 0?f.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:O=>b(O)},{regex:this.regexp,safeValue:O=>this.escapeValue?b(this.escape(O)):b(O)}].forEach(O=>{for(_=0;d=O.regex.exec(a);){const A=d[1].trim();if(y=$(A),y===void 0)if(typeof P=="function"){const j=P(a,d,f);y=typeof j=="string"?j:""}else if(f&&Object.prototype.hasOwnProperty.call(f,A))y="";else if(T){y=d[0];continue}else this.logger.warn(`missed to pass in variable ${A} for interpolating ${a}`),y="";else typeof y!="string"&&!this.useRawValueToEscape&&(y=makeString(y));const F=O.safeValue(y);if(a=a.replace(d[0],F),T?(O.regex.lastIndex+=y.length,O.regex.lastIndex-=d[0].length):O.regex.lastIndex=0,_++,_>=this.maxReplaces)break}}),a}nest(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f,d,y;function _(S,b){const $=this.nestingOptionsSeparator;if(S.indexOf($)<0)return S;const P=S.split(new RegExp(`${$}[ ]*{`));let T=`{${P[1]}`;S=P[0],T=this.interpolate(T,y);const C=T.match(/'/g),O=T.match(/"/g);(C&&C.length%2===0&&!O||O.length%2!==0)&&(T=T.replace(/'/g,'"'));try{y=JSON.parse(T),b&&(y=se(se({},b),y))}catch(A){return this.logger.warn(`failed parsing options string in nesting for key ${S}`,A),`${S}${$}${T}`}return delete y.defaultValue,S}for(;f=this.nestingRegexp.exec(a);){let S=[];y=se({},c),y=y.replace&&typeof y.replace!="string"?y.replace:y,y.applyPostProcessor=!1,delete y.defaultValue;let b=!1;if(f[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(f[1])){const $=f[1].split(this.formatSeparator).map(P=>P.trim());f[1]=$.shift(),S=$,b=!0}if(d=s(_.call(this,f[1].trim(),y),y),d&&f[0]===a&&typeof d!="string")return d;typeof d!="string"&&(d=makeString(d)),d||(this.logger.warn(`missed to resolve ${f[1]} for nesting ${a}`),d=""),b&&(d=S.reduce(($,P)=>this.format($,P,c.lng,$e(se({},c),{interpolationkey:f[1].trim()})),d.trim())),a=a.replace(f[0],d),this.regexp.lastIndex=0}return a}}function parseFormatStr(o){let a=o.toLowerCase().trim();const s={};if(o.indexOf("(")>-1){const c=o.split("(");a=c[0].toLowerCase().trim();const f=c[1].substring(0,c[1].length-1);a==="currency"&&f.indexOf(":")<0?s.currency||(s.currency=f.trim()):a==="relativetime"&&f.indexOf(":")<0?s.range||(s.range=f.trim()):f.split(";").forEach(y=>{if(!y)return;const[_,...S]=y.split(":"),b=S.join(":").trim().replace(/^'+|'+$/g,"");s[_.trim()]||(s[_.trim()]=b),b==="false"&&(s[_.trim()]=!1),b==="true"&&(s[_.trim()]=!0),isNaN(b)||(s[_.trim()]=parseInt(b,10))})}return{formatName:a,formatOptions:s}}function createCachedFormatter(o){const a={};return function(c,f,d){const y=f+JSON.stringify(d);let _=a[y];return _||(_=o(getCleanedCode(f),d),a[y]=_),_(c)}}class Formatter{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter"),this.options=a,this.formats={number:createCachedFormatter((s,c)=>{const f=new Intl.NumberFormat(s,se({},c));return d=>f.format(d)}),currency:createCachedFormatter((s,c)=>{const f=new Intl.NumberFormat(s,$e(se({},c),{style:"currency"}));return d=>f.format(d)}),datetime:createCachedFormatter((s,c)=>{const f=new Intl.DateTimeFormat(s,se({},c));return d=>f.format(d)}),relativetime:createCachedFormatter((s,c)=>{const f=new Intl.RelativeTimeFormat(s,se({},c));return d=>f.format(d,c.range||"day")}),list:createCachedFormatter((s,c)=>{const f=new Intl.ListFormat(s,se({},c));return d=>f.format(d)})},this.init(a)}init(a){const c=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=c.formatSeparator?c.formatSeparator:c.formatSeparator||","}add(a,s){this.formats[a.toLowerCase().trim()]=s}addCached(a,s){this.formats[a.toLowerCase().trim()]=createCachedFormatter(s)}format(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return s.split(this.formatSeparator).reduce((_,S)=>{const{formatName:b,formatOptions:$}=parseFormatStr(S);if(this.formats[b]){let P=_;try{const T=f&&f.formatParams&&f.formatParams[f.interpolationkey]||{},C=T.locale||T.lng||f.locale||f.lng||c;P=this.formats[b](_,C,se(se(se({},$),f),T))}catch(T){this.logger.warn(T)}return P}else this.logger.warn(`there was no format function for ${b}`);return _},a)}}function removePending(o,a){o.pending[a]!==void 0&&(delete o.pending[a],o.pendingCount--)}class Connector extends EventEmitter{constructor(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=a,this.store=s,this.services=c,this.languageUtils=c.languageUtils,this.options=f,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=f.maxParallelReads||10,this.readingCalls=0,this.maxRetries=f.maxRetries>=0?f.maxRetries:5,this.retryTimeout=f.retryTimeout>=1?f.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(c,f.backend,f)}queueLoad(a,s,c,f){const d={},y={},_={},S={};return a.forEach(b=>{let $=!0;s.forEach(P=>{const T=`${b}|${P}`;!c.reload&&this.store.hasResourceBundle(b,P)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?y[T]===void 0&&(y[T]=!0):(this.state[T]=1,$=!1,y[T]===void 0&&(y[T]=!0),d[T]===void 0&&(d[T]=!0),S[P]===void 0&&(S[P]=!0)))}),$||(_[b]=!0)}),(Object.keys(d).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:f}),{toLoad:Object.keys(d),pending:Object.keys(y),toLoadLanguages:Object.keys(_),toLoadNamespaces:Object.keys(S)}}loaded(a,s,c){const f=a.split("|"),d=f[0],y=f[1];s&&this.emit("failedLoading",d,y,s),c&&this.store.addResourceBundle(d,y,c),this.state[a]=s?-1:2;const _={};this.queue.forEach(S=>{pushPath(S.loaded,[d],y),removePending(S,a),s&&S.errors.push(s),S.pendingCount===0&&!S.done&&(Object.keys(S.loaded).forEach(b=>{_[b]||(_[b]={});const $=S.loaded[b];$.length&&$.forEach(P=>{_[b][P]===void 0&&(_[b][P]=!0)})}),S.done=!0,S.errors.length?S.callback(S.errors):S.callback())}),this.emit("loaded",_),this.queue=this.queue.filter(S=>!S.done)}read(a,s,c){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,y=arguments.length>5?arguments[5]:void 0;if(!a.length)return y(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:s,fcName:c,tried:f,wait:d,callback:y});return}this.readingCalls++;const _=(b,$)=>{if(this.readingCalls--,this.waitingReads.length>0){const P=this.waitingReads.shift();this.read(P.lng,P.ns,P.fcName,P.tried,P.wait,P.callback)}if(b&&$&&f{this.read.call(this,a,s,c,f+1,d*2,y)},d);return}y(b,$)},S=this.backend[c].bind(this.backend);if(S.length===2){try{const b=S(a,s);b&&typeof b.then=="function"?b.then($=>_(null,$)).catch(_):_(null,b)}catch(b){_(b)}return}return S(a,s,_)}prepareLoading(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();typeof a=="string"&&(a=this.languageUtils.toResolveHierarchy(a)),typeof s=="string"&&(s=[s]);const d=this.queueLoad(a,s,c,f);if(!d.toLoad.length)return d.pending.length||f(),null;d.toLoad.forEach(y=>{this.loadOne(y)})}load(a,s,c){this.prepareLoading(a,s,{},c)}reload(a,s,c){this.prepareLoading(a,s,{reload:!0},c)}loadOne(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const c=a.split("|"),f=c[0],d=c[1];this.read(f,d,"read",void 0,void 0,(y,_)=>{y&&this.logger.warn(`${s}loading namespace ${d} for language ${f} failed`,y),!y&&_&&this.logger.log(`${s}loaded namespace ${d} for language ${f}`,_),this.loaded(a,y,_)})}saveMissing(a,s,c,f,d){let y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},_=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(s)){this.logger.warn(`did not save key "${c}" as the namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(c==null||c==="")){if(this.backend&&this.backend.create){const S=$e(se({},y),{isUpdate:d}),b=this.backend.create.bind(this.backend);if(b.length<6)try{let $;b.length===5?$=b(a,s,c,f,S):$=b(a,s,c,f),$&&typeof $.then=="function"?$.then(P=>_(null,P)).catch(_):_(null,$)}catch($){_($)}else b(a,s,c,f,_,S)}!a||!a[0]||this.store.addResource(a[0],s,c,f)}}}function get$1(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(a){let s={};if(typeof a[1]=="object"&&(s=a[1]),typeof a[1]=="string"&&(s.defaultValue=a[1]),typeof a[2]=="string"&&(s.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const c=a[3]||a[2];Object.keys(c).forEach(f=>{s[f]=c[f]})}return s},interpolation:{escapeValue:!0,format:o=>o,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(o){return typeof o.ns=="string"&&(o.ns=[o.ns]),typeof o.fallbackLng=="string"&&(o.fallbackLng=[o.fallbackLng]),typeof o.fallbackNS=="string"&&(o.fallbackNS=[o.fallbackNS]),o.supportedLngs&&o.supportedLngs.indexOf("cimode")<0&&(o.supportedLngs=o.supportedLngs.concat(["cimode"])),o}function noop$5(){}function bindMemberFunctions(o){Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach(s=>{typeof o[s]=="function"&&(o[s]=o[s].bind(o))})}class I18n extends EventEmitter{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(a),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),s&&!this.isInitialized&&!a.isClone){if(!this.options.initImmediate)return this.init(a,s),this;setTimeout(()=>{this.init(a,s)},0)}}init(){var a=this;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;typeof s=="function"&&(c=s,s={}),!s.defaultNS&&s.defaultNS!==!1&&s.ns&&(typeof s.ns=="string"?s.defaultNS=s.ns:s.ns.indexOf("translation")<0&&(s.defaultNS=s.ns[0]));const f=get$1();this.options=se(se(se({},f),this.options),transformOptions(s)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=se(se({},f.interpolation),this.options.interpolation)),s.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=s.keySeparator),s.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=s.nsSeparator);function d($){return $?typeof $=="function"?new $:$:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(d(this.modules.logger),this.options):baseLogger.init(null,this.options);let $;this.modules.formatter?$=this.modules.formatter:typeof Intl!="undefined"&&($=Formatter);const P=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const T=this.services;T.logger=baseLogger,T.resourceStore=this.store,T.languageUtils=P,T.pluralResolver=new PluralResolver(P,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),$&&(!this.options.interpolation.format||this.options.interpolation.format===f.interpolation.format)&&(T.formatter=d($),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new Interpolator(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new Connector(d(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",function(C){for(var O=arguments.length,A=new Array(O>1?O-1:0),F=1;F1?O-1:0),F=1;F{C.init&&C.init(this)})}if(this.format=this.options.interpolation.format,c||(c=noop$5),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const $=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);$.length>0&&$[0]!=="dev"&&(this.options.lng=$[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach($=>{this[$]=function(){return a.store[$](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach($=>{this[$]=function(){return a.store[$](...arguments),a}});const S=defer(),b=()=>{const $=(P,T)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),S.resolve(T),c(P,T)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return $(null,this.t.bind(this));this.changeLanguage(this.options.lng,$)};return this.options.resources||!this.options.initImmediate?b():setTimeout(b,0),S}loadResources(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$5;const f=typeof a=="string"?a:this.language;if(typeof a=="function"&&(c=a),!this.options.resources||this.options.partialBundledLanguages){if(f&&f.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const d=[],y=_=>{if(!_||_==="cimode")return;this.services.languageUtils.toResolveHierarchy(_).forEach(b=>{b!=="cimode"&&d.indexOf(b)<0&&d.push(b)})};f?y(f):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(S=>y(S)),this.options.preload&&this.options.preload.forEach(_=>y(_)),this.services.backendConnector.load(d,this.options.ns,_=>{!_&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(_)})}else c(null)}reloadResources(a,s,c){const f=defer();return a||(a=this.languages),s||(s=this.options.ns),c||(c=noop$5),this.services.backendConnector.reload(a,s,d=>{f.resolve(),c(d)}),f}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&postProcessor.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1))for(let s=0;s-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}}changeLanguage(a,s){var c=this;this.isLanguageChangingTo=a;const f=defer();this.emit("languageChanging",a);const d=S=>{this.language=S,this.languages=this.services.languageUtils.toResolveHierarchy(S),this.resolvedLanguage=void 0,this.setResolvedLanguage(S)},y=(S,b)=>{b?(d(b),this.translator.changeLanguage(b),this.isLanguageChangingTo=void 0,this.emit("languageChanged",b),this.logger.log("languageChanged",b)):this.isLanguageChangingTo=void 0,f.resolve(function(){return c.t(...arguments)}),s&&s(S,function(){return c.t(...arguments)})},_=S=>{!a&&!S&&this.services.languageDetector&&(S=[]);const b=typeof S=="string"?S:this.services.languageUtils.getBestMatchFromCodes(S);b&&(this.language||d(b),this.translator.language||this.translator.changeLanguage(b),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(b)),this.loadResources(b,$=>{y($,b)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?_(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(_):this.services.languageDetector.detect(_):_(a),f}getFixedT(a,s,c){var f=this;const d=function(y,_){let S;if(typeof _!="object"){for(var b=arguments.length,$=new Array(b>2?b-2:0),P=2;P`${S.keyPrefix}${T}${O}`):C=S.keyPrefix?`${S.keyPrefix}${T}${y}`:y,f.t(C,S)};return typeof a=="string"?d.lng=a:d.lngs=a,d.ns=s,d.keyPrefix=c,d}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const c=s.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const y=(_,S)=>{const b=this.services.backendConnector.state[`${_}|${S}`];return b===-1||b===2};if(s.precheck){const _=s.precheck(this,y);if(_!==void 0)return _}return!!(this.hasResourceBundle(c,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(c,a)&&(!f||y(d,a)))}loadNamespaces(a,s){const c=defer();return this.options.ns?(typeof a=="string"&&(a=[a]),a.forEach(f=>{this.options.ns.indexOf(f)<0&&this.options.ns.push(f)}),this.loadResources(f=>{c.resolve(),s&&s(f)}),c):(s&&s(),Promise.resolve())}loadLanguages(a,s){const c=defer();typeof a=="string"&&(a=[a]);const f=this.options.preload||[],d=a.filter(y=>f.indexOf(y)<0);return d.length?(this.options.preload=f.concat(d),this.loadResources(y=>{c.resolve(),s&&s(y)}),c):(s&&s(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!a)return"rtl";const s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],c=this.services&&this.services.languageUtils||new LanguageUtil(get$1());return s.indexOf(c.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;return new I18n(a,s)}cloneInstance(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$5;const c=a.forkResourceStore;c&&delete a.forkResourceStore;const f=$e(se(se({},this.options),a),{isClone:!0}),d=new I18n(f);return(a.debug!==void 0||a.prefix!==void 0)&&(d.logger=d.logger.clone(a)),["store","services","language"].forEach(_=>{d[_]=this[_]}),d.services=se({},this.services),d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},c&&(d.store=new ResourceStore(this.store.data,f),d.services.resourceStore=d.store),d.translator=new Translator(d.services,f),d.translator.on("*",function(_){for(var S=arguments.length,b=new Array(S>1?S-1:0),$=1;$-1};function T(Z){if(typeof Z!="string"&&(Z=String(Z)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(Z)||Z==="")throw new TypeError('Invalid character in header field name: "'+Z+'"');return Z.toLowerCase()}function C(Z){return typeof Z!="string"&&(Z=String(Z)),Z}function O(Z){var Q={next:function(){var J=Z.shift();return{done:J===void 0,value:J}}};return S.iterable&&(Q[Symbol.iterator]=function(){return Q}),Q}function A(Z){this.map={},Z instanceof A?Z.forEach(function(Q,J){this.append(J,Q)},this):Array.isArray(Z)?Z.forEach(function(Q){this.append(Q[0],Q[1])},this):Z&&Object.getOwnPropertyNames(Z).forEach(function(Q){this.append(Q,Z[Q])},this)}A.prototype.append=function(Z,Q){Z=T(Z),Q=C(Q);var J=this.map[Z];this.map[Z]=J?J+", "+Q:Q},A.prototype.delete=function(Z){delete this.map[T(Z)]},A.prototype.get=function(Z){return Z=T(Z),this.has(Z)?this.map[Z]:null},A.prototype.has=function(Z){return this.map.hasOwnProperty(T(Z))},A.prototype.set=function(Z,Q){this.map[T(Z)]=C(Q)},A.prototype.forEach=function(Z,Q){for(var J in this.map)this.map.hasOwnProperty(J)&&Z.call(Q,this.map[J],J,this)},A.prototype.keys=function(){var Z=[];return this.forEach(function(Q,J){Z.push(J)}),O(Z)},A.prototype.values=function(){var Z=[];return this.forEach(function(Q){Z.push(Q)}),O(Z)},A.prototype.entries=function(){var Z=[];return this.forEach(function(Q,J){Z.push([J,Q])}),O(Z)},S.iterable&&(A.prototype[Symbol.iterator]=A.prototype.entries);function F(Z){if(Z.bodyUsed)return Promise.reject(new TypeError("Already read"));Z.bodyUsed=!0}function j(Z){return new Promise(function(Q,J){Z.onload=function(){Q(Z.result)},Z.onerror=function(){J(Z.error)}})}function L(Z){var Q=new FileReader,J=j(Q);return Q.readAsArrayBuffer(Z),J}function M(Z){var Q=new FileReader,J=j(Q);return Q.readAsText(Z),J}function I(Z){for(var Q=new Uint8Array(Z),J=new Array(Q.length),ne=0;ne-1?Q:Z}function X(Z,Q){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Q=Q||{};var J=Q.body;if(Z instanceof X){if(Z.bodyUsed)throw new TypeError("Already read");this.url=Z.url,this.credentials=Z.credentials,Q.headers||(this.headers=new A(Z.headers)),this.method=Z.method,this.mode=Z.mode,this.signal=Z.signal,!J&&Z._bodyInit!=null&&(J=Z._bodyInit,Z.bodyUsed=!0)}else this.url=String(Z);if(this.credentials=Q.credentials||this.credentials||"same-origin",(Q.headers||!this.headers)&&(this.headers=new A(Q.headers)),this.method=G(Q.method||this.method||"GET"),this.mode=Q.mode||this.mode||null,this.signal=Q.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&J)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(J),(this.method==="GET"||this.method==="HEAD")&&(Q.cache==="no-store"||Q.cache==="no-cache")){var ne=/([?&])_=[^&]*/;if(ne.test(this.url))this.url=this.url.replace(ne,"$1_="+new Date().getTime());else{var fe=/\?/;this.url+=(fe.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}X.prototype.clone=function(){return new X(this,{body:this._bodyInit})};function W(Z){var Q=new FormData;return Z.trim().split("&").forEach(function(J){if(J){var ne=J.split("="),fe=ne.shift().replace(/\+/g," "),le=ne.join("=").replace(/\+/g," ");Q.append(decodeURIComponent(fe),decodeURIComponent(le))}}),Q}function K(Z){var Q=new A,J=Z.replace(/\r?\n[\t ]+/g," ");return J.split("\r").map(function(ne){return ne.indexOf(` +`)===0?ne.substr(1,ne.length):ne}).forEach(function(ne){var fe=ne.split(":"),le=fe.shift().trim();if(le){var ae=fe.join(":").trim();Q.append(le,ae)}}),Q}z.call(X.prototype);function ie(Z,Q){if(!(this instanceof ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Q||(Q={}),this.type="default",this.status=Q.status===void 0?200:Q.status,this.ok=this.status>=200&&this.status<300,this.statusText=Q.statusText===void 0?"":""+Q.statusText,this.headers=new A(Q.headers),this.url=Q.url||"",this._initBody(Z)}z.call(ie.prototype),ie.prototype.clone=function(){return new ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new A(this.headers),url:this.url})},ie.error=function(){var Z=new ie(null,{status:0,statusText:""});return Z.type="error",Z};var ee=[301,302,303,307,308];ie.redirect=function(Z,Q){if(ee.indexOf(Q)===-1)throw new RangeError("Invalid status code");return new ie(null,{status:Q,headers:{location:Z}})},y.DOMException=_.DOMException;try{new y.DOMException}catch(Z){y.DOMException=function(Q,J){this.message=Q,this.name=J;var ne=Error(Q);this.stack=ne.stack},y.DOMException.prototype=Object.create(Error.prototype),y.DOMException.prototype.constructor=y.DOMException}function de(Z,Q){return new Promise(function(J,ne){var fe=new X(Z,Q);if(fe.signal&&fe.signal.aborted)return ne(new y.DOMException("Aborted","AbortError"));var le=new XMLHttpRequest;function ae(){le.abort()}le.onload=function(){var ge={status:le.status,statusText:le.statusText,headers:K(le.getAllResponseHeaders()||"")};ge.url="responseURL"in le?le.responseURL:ge.headers.get("X-Request-URL");var pe="response"in le?le.response:le.responseText;setTimeout(function(){J(new ie(pe,ge))},0)},le.onerror=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},le.ontimeout=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},le.onabort=function(){setTimeout(function(){ne(new y.DOMException("Aborted","AbortError"))},0)};function ce(ge){try{return ge===""&&_.location.href?_.location.href:ge}catch(pe){return ge}}le.open(fe.method,ce(fe.url),!0),fe.credentials==="include"?le.withCredentials=!0:fe.credentials==="omit"&&(le.withCredentials=!1),"responseType"in le&&(S.blob?le.responseType="blob":S.arrayBuffer&&fe.headers.get("Content-Type")&&fe.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(le.responseType="arraybuffer")),Q&&typeof Q.headers=="object"&&!(Q.headers instanceof A)?Object.getOwnPropertyNames(Q.headers).forEach(function(ge){le.setRequestHeader(ge,C(Q.headers[ge]))}):fe.headers.forEach(function(ge,pe){le.setRequestHeader(pe,ge)}),fe.signal&&(fe.signal.addEventListener("abort",ae),le.onreadystatechange=function(){le.readyState===4&&fe.signal.removeEventListener("abort",ae)}),le.send(typeof fe._bodyInit=="undefined"?null:fe._bodyInit)})}return de.polyfill=!0,_.fetch||(_.fetch=de,_.Headers=A,_.Request=X,_.Response=ie),y.Headers=A,y.Request=X,y.Response=ie,y.fetch=de,y})({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var f=s.fetch?s:c;a=f.fetch,a.default=f.fetch,a.fetch=f.fetch,a.Headers=f.Headers,a.Request=f.Request,a.Response=f.Response,o.exports=a}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}(function(o,a){var s;if(typeof fetch=="function"&&(typeof commonjsGlobal!="undefined"&&commonjsGlobal.fetch?s=commonjsGlobal.fetch:typeof window!="undefined"&&window.fetch?s=window.fetch:s=fetch),typeof commonjsRequire!="undefined"&&(typeof window=="undefined"||typeof window.document=="undefined")){var c=s||requireBrowserPonyfill();c.default&&(c=c.default),a.default=c,o.exports=a.default}})(getFetch$1,getFetch$1.exports);var getFetchExports=getFetch$1.exports;const getFetch=getDefaultExportFromCjs(getFetchExports),fetchNode=_mergeNamespaces({__proto__:null,default:getFetch},[getFetchExports]);function _typeof$k(o){"@babel/helpers - typeof";return _typeof$k=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},_typeof$k(o)}var fetchApi;typeof fetch=="function"&&(typeof global!="undefined"&&global.fetch?fetchApi=global.fetch:typeof window!="undefined"&&window.fetch?fetchApi=window.fetch:fetchApi=fetch);var XmlHttpRequestApi;hasXMLHttpRequest()&&(typeof global!="undefined"&&global.XMLHttpRequest?XmlHttpRequestApi=global.XMLHttpRequest:typeof window!="undefined"&&window.XMLHttpRequest&&(XmlHttpRequestApi=window.XMLHttpRequest));var ActiveXObjectApi;typeof ActiveXObject=="function"&&(typeof global!="undefined"&&global.ActiveXObject?ActiveXObjectApi=global.ActiveXObject:typeof window!="undefined"&&window.ActiveXObject&&(ActiveXObjectApi=window.ActiveXObject));!fetchApi&&fetchNode&&!XmlHttpRequestApi&&!ActiveXObjectApi&&(fetchApi=getFetch||fetchNode);typeof fetchApi!="function"&&(fetchApi=void 0);var addQueryString=function(a,s){if(s&&_typeof$k(s)==="object"){var c="";for(var f in s)c+="&"+encodeURIComponent(f)+"="+encodeURIComponent(s[f]);if(!c)return a;a=a+(a.indexOf("?")!==-1?"&":"?")+c.slice(1)}return a},fetchIt=function(a,s,c){var f=function(y){if(!y.ok)return c(y.statusText||"Error",{status:y.status});y.text().then(function(_){c(null,{status:y.status,data:_})}).catch(c)};typeof fetch=="function"?fetch(a,s).then(f).catch(c):fetchApi(a,s).then(f).catch(c)},omitFetchOptions=!1,requestWithFetch=function(a,s,c,f){a.queryStringParams&&(s=addQueryString(s,a.queryStringParams));var d=defaults$5({},typeof a.customHeaders=="function"?a.customHeaders():a.customHeaders);typeof window=="undefined"&&typeof global!="undefined"&&typeof global.process!="undefined"&&global.process.versions&&global.process.versions.node&&(d["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),c&&(d["Content-Type"]="application/json");var y=typeof a.requestOptions=="function"?a.requestOptions(c):a.requestOptions,_=defaults$5({method:c?"POST":"GET",body:c?a.stringify(c):void 0,headers:d},omitFetchOptions?{}:y);try{fetchIt(s,_,f)}catch(S){if(!y||Object.keys(y).length===0||!S.message||S.message.indexOf("not implemented")<0)return f(S);try{Object.keys(y).forEach(function(b){delete _[b]}),fetchIt(s,_,f),omitFetchOptions=!0}catch(b){f(b)}}},requestWithXmlHttpRequest=function(a,s,c,f){c&&_typeof$k(c)==="object"&&(c=addQueryString("",c).slice(1)),a.queryStringParams&&(s=addQueryString(s,a.queryStringParams));try{var d;XmlHttpRequestApi?d=new XmlHttpRequestApi:d=new ActiveXObjectApi("MSXML2.XMLHTTP.3.0"),d.open(c?"POST":"GET",s,1),a.crossDomain||d.setRequestHeader("X-Requested-With","XMLHttpRequest"),d.withCredentials=!!a.withCredentials,c&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.overrideMimeType&&d.overrideMimeType("application/json");var y=a.customHeaders;if(y=typeof y=="function"?y():y,y)for(var _ in y)d.setRequestHeader(_,y[_]);d.onreadystatechange=function(){d.readyState>3&&f(d.status>=400?d.statusText:null,{status:d.status,data:d.responseText})},d.send(c)}catch(S){}},request$1=function(a,s,c,f){if(typeof c=="function"&&(f=c,c=void 0),f=f||function(){},fetchApi&&s.indexOf("file:")!==0)return requestWithFetch(a,s,c,f);if(hasXMLHttpRequest()||typeof ActiveXObject=="function")return requestWithXmlHttpRequest(a,s,c,f);f(new Error("No fetch and no xhr implementation found!"))};function _typeof$j(o){"@babel/helpers - typeof";return _typeof$j=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},_typeof$j(o)}function _classCallCheck$5(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(o,a){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_classCallCheck$5(this,o),this.services=a,this.options=s,this.allOptions=c,this.type="backend",this.init(a,s,c)}return _createClass$5(o,[{key:"init",value:function(s){var c=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=s,this.options=defaults$5(f,this.options||{},getDefaults$1()),this.allOptions=d,this.services&&this.options.reloadInterval&&setInterval(function(){return c.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(s,c,f){this._readAny(s,s,c,c,f)}},{key:"read",value:function(s,c,f){this._readAny([s],s,[c],c,f)}},{key:"_readAny",value:function(s,c,f,d,y){var _=this,S=this.options.loadPath;typeof this.options.loadPath=="function"&&(S=this.options.loadPath(s,f)),S=makePromise(S),S.then(function(b){if(!b)return y(null,{});var $=_.services.interpolator.interpolate(b,{lng:s.join("+"),ns:f.join("+")});_.loadUrl($,y,c,d)})}},{key:"loadUrl",value:function(s,c,f,d){var y=this,_=typeof f=="string"?[f]:f,S=typeof d=="string"?[d]:d,b=this.options.parseLoadPayload(_,S);this.options.request(this.options,s,b,function($,P){if(P&&(P.status>=500&&P.status<600||!P.status))return c("failed loading "+s+"; status code: "+P.status,!0);if(P&&P.status>=400&&P.status<500)return c("failed loading "+s+"; status code: "+P.status,!1);if(!P&&$&&$.message&&$.message.indexOf("Failed to fetch")>-1)return c("failed loading "+s+": "+$.message,!0);if($)return c($,!1);var T,C;try{typeof P.data=="string"?T=y.options.parse(P.data,f,d):T=P.data}catch(O){C="failed parsing "+s+" to json"}if(C)return c(C,!1);c(null,T)})}},{key:"create",value:function(s,c,f,d,y){var _=this;if(this.options.addPath){typeof s=="string"&&(s=[s]);var S=this.options.parsePayload(c,f,d),b=0,$=[],P=[];s.forEach(function(T){var C=_.options.addPath;typeof _.options.addPath=="function"&&(C=_.options.addPath(T,c));var O=_.services.interpolator.interpolate(C,{lng:T,ns:c});_.options.request(_.options,O,S,function(A,F){b+=1,$.push(A),P.push(F),b===s.length&&typeof y=="function"&&y($,P)})})}}},{key:"reload",value:function(){var s=this,c=this.services,f=c.backendConnector,d=c.languageUtils,y=c.logger,_=f.language;if(!(_&&_.toLowerCase()==="cimode")){var S=[],b=function(P){var T=d.toResolveHierarchy(P);T.forEach(function(C){S.indexOf(C)<0&&S.push(C)})};b(_),this.allOptions.preload&&this.allOptions.preload.forEach(function($){return b($)}),S.forEach(function($){s.allOptions.ns.forEach(function(P){f.read($,P,"read",null,null,function(T,C){T&&y.warn("loading namespace ".concat(P," for language ").concat($," failed"),T),!T&&C&&y.log("loaded namespace ".concat(P," for language ").concat($),C),f.loaded("".concat($,"|").concat(P),T,C)})})})}}}]),o}();Backend.type="backend";function warn(){if(console&&console.warn){for(var o=arguments.length,a=new Array(o),s=0;s()=>{if(o.isInitialized)a();else{const s=()=>{setTimeout(()=>{o.off("initialized",s)},0),a()};o.on("initialized",s)}};function loadNamespaces(o,a,s){o.loadNamespaces(a,loadedClb(o,s))}function loadLanguages(o,a,s,c){typeof s=="string"&&(s=[s]),s.forEach(f=>{o.options.ns.indexOf(f)<0&&o.options.ns.push(f)}),o.loadLanguages(a,loadedClb(o,c))}function oldI18nextHasLoadedNamespace(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const c=a.languages[0],f=a.options?a.options.fallbackLng:!1,d=a.languages[a.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const y=(_,S)=>{const b=a.services.backendConnector.state[`${_}|${S}`];return b===-1||b===2};return s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!y(a.isLanguageChangingTo,o)?!1:!!(a.hasResourceBundle(c,o)||!a.services.backendConnector.backend||a.options.resources&&!a.options.partialBundledLanguages||y(c,o)&&(!f||y(d,o)))}function hasLoadedNamespace(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!a.languages||!a.languages.length?(warnOnce("i18n.languages were undefined or empty",a.languages),!0):a.options.ignoreJSONStructure!==void 0?a.hasLoadedNamespace(o,{lng:s.lng,precheck:(f,d)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&f.services.backendConnector.backend&&f.isLanguageChangingTo&&!d(f.isLanguageChangingTo,o))return!1}}):oldI18nextHasLoadedNamespace(o,a,s)}const matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},unescapeHtmlEntity=o=>htmlEntities[o],unescape$1=o=>o.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:unescape$1};function setDefaults(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions=se(se({},defaultOptions),o)}function getDefaults(){return defaultOptions}let i18nInstance;function setI18n(o){i18nInstance=o}function getI18n(){return i18nInstance}const initReactI18next={type:"3rdParty",init(o){setDefaults(o.options.react),setI18n(o)}},I18nContext=reactExports.createContext();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const usePrevious$1=(o,a)=>{const s=reactExports.useRef();return reactExports.useEffect(()=>{s.current=a?s.current:o},[o,a]),s.current};function useTranslation(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:s}=a,{i18n:c,defaultNS:f}=reactExports.useContext(I18nContext)||{},d=s||c||getI18n();if(d&&!d.reportNamespaces&&(d.reportNamespaces=new ReportNamespaces),!d){warnOnce("You will need to pass in an i18next instance by using initReactI18next");const M=(U,z)=>typeof z=="string"?z:z&&typeof z=="object"&&typeof z.defaultValue=="string"?z.defaultValue:Array.isArray(U)?U[U.length-1]:U,I=[M,{},!1];return I.t=M,I.i18n={},I.ready=!1,I}d.options.react&&d.options.react.wait!==void 0&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const y=se(se(se({},getDefaults()),d.options.react),a),{useSuspense:_,keyPrefix:S}=y;let b=o||f||d.options&&d.options.defaultNS;b=typeof b=="string"?[b]:b||["translation"],d.reportNamespaces.addUsedNamespaces&&d.reportNamespaces.addUsedNamespaces(b);const $=(d.isInitialized||d.initializedStoreOnce)&&b.every(M=>hasLoadedNamespace(M,d,y));function P(){return d.getFixedT(a.lng||null,y.nsMode==="fallback"?b:b[0],S)}const[T,C]=reactExports.useState(P);let O=b.join();a.lng&&(O=`${a.lng}${O}`);const A=usePrevious$1(O),F=reactExports.useRef(!0);reactExports.useEffect(()=>{const{bindI18n:M,bindI18nStore:I}=y;F.current=!0,!$&&!_&&(a.lng?loadLanguages(d,a.lng,b,()=>{F.current&&C(P)}):loadNamespaces(d,b,()=>{F.current&&C(P)})),$&&A&&A!==O&&F.current&&C(P);function U(){F.current&&C(P)}return M&&d&&d.on(M,U),I&&d&&d.store.on(I,U),()=>{F.current=!1,M&&d&&M.split(" ").forEach(z=>d.off(z,U)),I&&d&&I.split(" ").forEach(z=>d.store.off(z,U))}},[d,O]);const j=reactExports.useRef(!0);reactExports.useEffect(()=>{F.current&&!j.current&&C(P),j.current=!1},[d,S]);const L=[T,d,$];if(L.t=T,L.i18n=d,L.ready=$,$||!$&&!_)return L;throw new Promise(M=>{a.lng?loadLanguages(d,a.lng,b,()=>M()):loadNamespaces(d,b,()=>M())})}const currentLanguage=window.location.search.split("=")[1];instance.use(Backend).use(initReactI18next).init({lng:currentLanguage||"zh",fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},partialBundledLanguages:!0,backend:{loadPath:"/react-antd-admin-pnpm//locales/{{lng}}/{{ns}}.json"}});const createStoreImpl$1=o=>{let a;const s=new Set,c=(S,b)=>{const $=typeof S=="function"?S(a):S;if(!Object.is($,a)){const P=a;a=(b!=null?b:typeof $!="object"||$===null)?$:Object.assign({},a,$),s.forEach(T=>T(a,P))}},f=()=>a,_={setState:c,getState:f,subscribe:S=>(s.add(S),()=>s.delete(S)),destroy:()=>{s.clear()}};return a=o(c,f,_),_},createStore$3=o=>o?createStoreImpl$1(o):createStoreImpl$1,{useDebugValue:useDebugValue$1}=React$4,{useSyncExternalStoreWithSelector:useSyncExternalStoreWithSelector$1}=useSyncExternalStoreExports;let didWarnAboutEqualityFn$1=!1;function useStore$1(o,a=o.getState,s){const c=useSyncExternalStoreWithSelector$1(o.subscribe,o.getState,o.getServerState||o.getState,a,s);return useDebugValue$1(c),c}const createImpl$1=o=>{const a=typeof o=="function"?createStore$3(o):o,s=(c,f)=>useStore$1(a,c,f);return Object.assign(s,a),s},create$1=o=>o?createImpl$1(o):createImpl$1;function createJSONStorage(o,a){let s;try{s=o()}catch(f){return}return{getItem:f=>{var d;const y=S=>S===null?null:JSON.parse(S,a==null?void 0:a.reviver),_=(d=s.getItem(f))!=null?d:null;return _ instanceof Promise?_.then(y):y(_)},setItem:(f,d)=>s.setItem(f,JSON.stringify(d,a==null?void 0:a.replacer)),removeItem:f=>s.removeItem(f)}}const toThenable=o=>a=>{try{const s=o(a);return s instanceof Promise?s:{then(c){return toThenable(c)(s)},catch(c){return this}}}catch(s){return{then(c){return this},catch(c){return toThenable(c)(s)}}}},oldImpl=(o,a)=>(s,c,f)=>{let d=se({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:F=>F,version:0,merge:(F,j)=>se(se({},j),F)},a),y=!1;const _=new Set,S=new Set;let b;try{b=d.getStorage()}catch(F){}if(!b)return o((...F)=>{s(...F)},c,f);const $=toThenable(d.serialize),P=()=>{const F=d.partialize(se({},c()));let j;const L=$({state:F,version:d.version}).then(M=>b.setItem(d.name,M)).catch(M=>{j=M});if(j)throw j;return L},T=f.setState;f.setState=(F,j)=>{T(F,j),P()};const C=o((...F)=>{s(...F),P()},c,f);let O;const A=()=>{var F;if(!b)return;y=!1,_.forEach(L=>L(c()));const j=((F=d.onRehydrateStorage)==null?void 0:F.call(d,c()))||void 0;return toThenable(b.getItem.bind(b))(d.name).then(L=>{if(L)return d.deserialize(L)}).then(L=>{if(L)if(typeof L.version=="number"&&L.version!==d.version){if(d.migrate)return d.migrate(L.state,L.version)}else return L.state}).then(L=>{var M;return O=d.merge(L,(M=c())!=null?M:C),s(O,!0),P()}).then(()=>{j==null||j(O,void 0),y=!0,S.forEach(L=>L(O))}).catch(L=>{j==null||j(void 0,L)})};return f.persist={setOptions:F=>{d=se(se({},d),F),F.getStorage&&(b=F.getStorage())},clearStorage:()=>{b==null||b.removeItem(d.name)},getOptions:()=>d,rehydrate:()=>A(),hasHydrated:()=>y,onHydrate:F=>(_.add(F),()=>{_.delete(F)}),onFinishHydration:F=>(S.add(F),()=>{S.delete(F)})},A(),O||C},newImpl=(o,a)=>(s,c,f)=>{let d=se({storage:createJSONStorage(()=>localStorage),partialize:A=>A,version:0,merge:(A,F)=>se(se({},F),A)},a),y=!1;const _=new Set,S=new Set;let b=d.storage;if(!b)return o((...A)=>{s(...A)},c,f);const $=()=>{const A=d.partialize(se({},c()));return b.setItem(d.name,{state:A,version:d.version})},P=f.setState;f.setState=(A,F)=>{P(A,F),$()};const T=o((...A)=>{s(...A),$()},c,f);let C;const O=()=>{var A,F;if(!b)return;y=!1,_.forEach(L=>{var M;return L((M=c())!=null?M:T)});const j=((F=d.onRehydrateStorage)==null?void 0:F.call(d,(A=c())!=null?A:T))||void 0;return toThenable(b.getItem.bind(b))(d.name).then(L=>{if(L)if(typeof L.version=="number"&&L.version!==d.version){if(d.migrate)return d.migrate(L.state,L.version)}else return L.state}).then(L=>{var M;return C=d.merge(L,(M=c())!=null?M:T),s(C,!0),$()}).then(()=>{j==null||j(C,void 0),C=c(),y=!0,S.forEach(L=>L(C))}).catch(L=>{j==null||j(void 0,L)})};return f.persist={setOptions:A=>{d=se(se({},d),A),A.storage&&(b=A.storage)},clearStorage:()=>{b==null||b.removeItem(d.name)},getOptions:()=>d,rehydrate:()=>O(),hasHydrated:()=>y,onHydrate:A=>(_.add(A),()=>{_.delete(A)}),onFinishHydration:A=>(S.add(A),()=>{S.delete(A)})},d.skipHydration||O(),C||T},persistImpl=(o,a)=>"getStorage"in a||"serialize"in a||"deserialize"in a?oldImpl(o,a):newImpl(o,a),persist=persistImpl,useGlobalStore=create$1()(persist((o,a)=>({theme:"light",setTheme:s=>{o({theme:s})},preset:"#00A76F",setPreset:s=>{o({preset:s})},hasTabs:!0,setHasTabs:s=>{o({hasTabs:s})},hasCrumbs:!0,setHasCrumbs:s=>{o({hasCrumbs:s})}}),{name:"adminGlobal"}));var __defProp$2=Object.defineProperty,__export=(o,a)=>{for(var s in a)__defProp$2(o,s,{get:a[s],enumerable:!0})},globals_exports={};__export(globals_exports,{assign:()=>assign$1,colors:()=>colors,createStringInterpolator:()=>createStringInterpolator,skipAnimation:()=>skipAnimation,to:()=>to,willAdvance:()=>willAdvance});var updateQueue=makeQueue(),raf=o=>schedule(o,updateQueue),writeQueue=makeQueue();raf.write=o=>schedule(o,writeQueue);var onStartQueue=makeQueue();raf.onStart=o=>schedule(o,onStartQueue);var onFrameQueue=makeQueue();raf.onFrame=o=>schedule(o,onFrameQueue);var onFinishQueue=makeQueue();raf.onFinish=o=>schedule(o,onFinishQueue);var timeouts=[];raf.setTimeout=(o,a)=>{const s=raf.now()+a,c=()=>{const d=timeouts.findIndex(y=>y.cancel==c);~d&&timeouts.splice(d,1),pendingCount-=~d?1:0},f={time:s,handler:o,cancel:c};return timeouts.splice(findTimeout(s),0,f),pendingCount+=1,start(),f};var findTimeout=o=>~(~timeouts.findIndex(a=>a.time>o)||~timeouts.length);raf.cancel=o=>{onStartQueue.delete(o),onFrameQueue.delete(o),onFinishQueue.delete(o),updateQueue.delete(o),writeQueue.delete(o)};raf.sync=o=>{sync=!0,raf.batchedUpdates(o),sync=!1};raf.throttle=o=>{let a;function s(){try{o(...a)}finally{a=null}}function c(...f){a=f,raf.onStart(s)}return c.handler=o,c.cancel=()=>{onStartQueue.delete(s),a=null},c};var nativeRaf=typeof window!="undefined"?window.requestAnimationFrame:()=>{};raf.use=o=>nativeRaf=o;raf.now=typeof performance!="undefined"?()=>performance.now():Date.now;raf.batchedUpdates=o=>o();raf.catch=console.error;raf.frameLoop="always";raf.advance=()=>{raf.frameLoop!=="demand"||update()};var ts=-1,pendingCount=0,sync=!1;function schedule(o,a){sync?(a.delete(o),o(0)):(a.add(o),start())}function start(){ts<0&&(ts=0,raf.frameLoop!=="demand"&&nativeRaf(loop$1))}function stop(){ts=-1}function loop$1(){~ts&&(nativeRaf(loop$1),raf.batchedUpdates(update))}function update(){const o=ts;ts=raf.now();const a=findTimeout(ts);if(a&&(eachSafely(timeouts.splice(0,a),s=>s.handler()),pendingCount-=a),!pendingCount){stop();return}onStartQueue.flush(),updateQueue.flush(o?Math.min(64,ts-o):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()}function makeQueue(){let o=new Set,a=o;return{add(s){pendingCount+=a==o&&!o.has(s)?1:0,o.add(s)},delete(s){return pendingCount-=a==o&&o.has(s)?1:0,o.delete(s)},flush(s){a.size&&(o=new Set,pendingCount-=a.size,eachSafely(a,c=>c(s)&&o.add(c)),pendingCount+=o.size,a=o)}}}function eachSafely(o,a){o.forEach(s=>{try{a(s)}catch(c){raf.catch(c)}})}function noop$4(){}var defineHidden=(o,a,s)=>Object.defineProperty(o,a,{value:s,writable:!0,configurable:!0}),is$1={arr:Array.isArray,obj:o=>!!o&&o.constructor.name==="Object",fun:o=>typeof o=="function",str:o=>typeof o=="string",num:o=>typeof o=="number",und:o=>o===void 0};function isEqual$1(o,a){if(is$1.arr(o)){if(!is$1.arr(a)||o.length!==a.length)return!1;for(let s=0;so.forEach(a);function eachProp(o,a,s){if(is$1.arr(o)){for(let c=0;cis$1.und(o)?[]:is$1.arr(o)?o:[o];function flush(o,a){if(o.size){const s=Array.from(o);o.clear(),each$1(s,a)}}var flushCalls=(o,...a)=>flush(o,s=>s(...a)),isSSR$1=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),createStringInterpolator,to,colors=null,skipAnimation=!1,willAdvance=noop$4,assign$1=o=>{o.to&&(to=o.to),o.now&&(raf.now=o.now),o.colors!==void 0&&(colors=o.colors),o.skipAnimation!=null&&(skipAnimation=o.skipAnimation),o.createStringInterpolator&&(createStringInterpolator=o.createStringInterpolator),o.requestAnimationFrame&&raf.use(o.requestAnimationFrame),o.batchedUpdates&&(raf.batchedUpdates=o.batchedUpdates),o.willAdvance&&(willAdvance=o.willAdvance),o.frameLoop&&(raf.frameLoop=o.frameLoop)},startQueue=new Set,currentFrame=[],prevFrame=[],priority=0,frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(o){priority>o.priority?(startQueue.add(o),raf.onStart(flushStartQueue)):(startSafely(o),raf(advance))},advance,sort(o){if(priority)raf.onFrame(()=>frameLoop.sort(o));else{const a=currentFrame.indexOf(o);~a&&(currentFrame.splice(a,1),startUnsafely(o))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(o){currentFrame.includes(o)||startUnsafely(o)}function startUnsafely(o){currentFrame.splice(findIndex(currentFrame,a=>a.priority>o.priority),0,o)}function advance(o){const a=prevFrame;for(let s=0;s0}function findIndex(o,a){const s=o.findIndex(a);return s<0?o.length:s}var clamp$1=(o,a,s)=>Math.min(Math.max(s,o),a),colors2={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call$1(...o){return"\\(\\s*("+o.join(")\\s*,\\s*(")+")\\s*\\)"}var rgb=new RegExp("rgb"+call$1(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call$1(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call$1(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call$1(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(o){let a;return typeof o=="number"?o>>>0===o&&o>=0&&o<=4294967295?o:null:(a=hex6.exec(o))?parseInt(a[1]+"ff",16)>>>0:colors&&colors[o]!==void 0?colors[o]:(a=rgb.exec(o))?(parse255(a[1])<<24|parse255(a[2])<<16|parse255(a[3])<<8|255)>>>0:(a=rgba.exec(o))?(parse255(a[1])<<24|parse255(a[2])<<16|parse255(a[3])<<8|parse1(a[4]))>>>0:(a=hex3.exec(o))?parseInt(a[1]+a[1]+a[2]+a[2]+a[3]+a[3]+"ff",16)>>>0:(a=hex8.exec(o))?parseInt(a[1],16)>>>0:(a=hex4.exec(o))?parseInt(a[1]+a[1]+a[2]+a[2]+a[3]+a[3]+a[4]+a[4],16)>>>0:(a=hsl.exec(o))?(hslToRgb(parse360(a[1]),parsePercentage(a[2]),parsePercentage(a[3]))|255)>>>0:(a=hsla.exec(o))?(hslToRgb(parse360(a[1]),parsePercentage(a[2]),parsePercentage(a[3]))|parse1(a[4]))>>>0:null}function hue2rgb(o,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?o+(a-o)*6*s:s<1/2?a:s<2/3?o+(a-o)*(2/3-s)*6:o}function hslToRgb(o,a,s){const c=s<.5?s*(1+a):s+a-s*a,f=2*s-c,d=hue2rgb(f,c,o+1/3),y=hue2rgb(f,c,o),_=hue2rgb(f,c,o-1/3);return Math.round(d*255)<<24|Math.round(y*255)<<16|Math.round(_*255)<<8}function parse255(o){const a=parseInt(o,10);return a<0?0:a>255?255:a}function parse360(o){return(parseFloat(o)%360+360)%360/360}function parse1(o){const a=parseFloat(o);return a<0?0:a>1?255:Math.round(a*255)}function parsePercentage(o){const a=parseFloat(o);return a<0?0:a>100?1:a/100}function colorToRgba(o){let a=normalizeColor(o);if(a===null)return o;a=a||0;const s=(a&4278190080)>>>24,c=(a&16711680)>>>16,f=(a&65280)>>>8,d=(a&255)/255;return`rgba(${s}, ${c}, ${f}, ${d})`}var createInterpolator=(o,a,s)=>{if(is$1.fun(o))return o;if(is$1.arr(o))return createInterpolator({range:o,output:a,extrapolate:s});if(is$1.str(o.output[0]))return createStringInterpolator(o);const c=o,f=c.output,d=c.range||[0,1],y=c.extrapolateLeft||c.extrapolate||"extend",_=c.extrapolateRight||c.extrapolate||"extend",S=c.easing||(b=>b);return b=>{const $=findRange(b,d);return interpolate(b,d[$],d[$+1],f[$],f[$+1],S,y,_,c.map)}};function interpolate(o,a,s,c,f,d,y,_,S){let b=S?S(o):o;if(bs){if(_==="identity")return b;_==="clamp"&&(b=s)}return c===f?c:a===s?o<=a?c:f:(a===-1/0?b=-b:s===1/0?b=b-a:b=(b-a)/(s-a),b=d(b),c===-1/0?b=-b:f===1/0?b=b+c:b=b*(f-c)+c,b)}function findRange(o,a){for(var s=1;s=o);++s);return s-1}var steps=(o,a="end")=>s=>{s=a==="end"?Math.min(s,.999):Math.max(s,.001);const c=s*o,f=a==="end"?Math.floor(c):Math.ceil(c);return clamp$1(0,1,f/o)},c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=o=>o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375,easings={linear:o=>o,easeInQuad:o=>o*o,easeOutQuad:o=>1-(1-o)*(1-o),easeInOutQuad:o=>o<.5?2*o*o:1-Math.pow(-2*o+2,2)/2,easeInCubic:o=>o*o*o,easeOutCubic:o=>1-Math.pow(1-o,3),easeInOutCubic:o=>o<.5?4*o*o*o:1-Math.pow(-2*o+2,3)/2,easeInQuart:o=>o*o*o*o,easeOutQuart:o=>1-Math.pow(1-o,4),easeInOutQuart:o=>o<.5?8*o*o*o*o:1-Math.pow(-2*o+2,4)/2,easeInQuint:o=>o*o*o*o*o,easeOutQuint:o=>1-Math.pow(1-o,5),easeInOutQuint:o=>o<.5?16*o*o*o*o*o:1-Math.pow(-2*o+2,5)/2,easeInSine:o=>1-Math.cos(o*Math.PI/2),easeOutSine:o=>Math.sin(o*Math.PI/2),easeInOutSine:o=>-(Math.cos(Math.PI*o)-1)/2,easeInExpo:o=>o===0?0:Math.pow(2,10*o-10),easeOutExpo:o=>o===1?1:1-Math.pow(2,-10*o),easeInOutExpo:o=>o===0?0:o===1?1:o<.5?Math.pow(2,20*o-10)/2:(2-Math.pow(2,-20*o+10))/2,easeInCirc:o=>1-Math.sqrt(1-Math.pow(o,2)),easeOutCirc:o=>Math.sqrt(1-Math.pow(o-1,2)),easeInOutCirc:o=>o<.5?(1-Math.sqrt(1-Math.pow(2*o,2)))/2:(Math.sqrt(1-Math.pow(-2*o+2,2))+1)/2,easeInBack:o=>c3*o*o*o-c1*o*o,easeOutBack:o=>1+c3*Math.pow(o-1,3)+c1*Math.pow(o-1,2),easeInOutBack:o=>o<.5?Math.pow(2*o,2)*((c2+1)*2*o-c2)/2:(Math.pow(2*o-2,2)*((c2+1)*(o*2-2)+c2)+2)/2,easeInElastic:o=>o===0?0:o===1?1:-Math.pow(2,10*o-10)*Math.sin((o*10-10.75)*c4),easeOutElastic:o=>o===0?0:o===1?1:Math.pow(2,-10*o)*Math.sin((o*10-.75)*c4)+1,easeInOutElastic:o=>o===0?0:o===1?1:o<.5?-(Math.pow(2,20*o-10)*Math.sin((20*o-11.125)*c5))/2:Math.pow(2,-20*o+10)*Math.sin((20*o-11.125)*c5)/2+1,easeInBounce:o=>1-bounceOut(1-o),easeOutBounce:bounceOut,easeInOutBounce:o=>o<.5?(1-bounceOut(1-2*o))/2:(1+bounceOut(2*o-1))/2,steps},$get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=o=>!!(o&&o[$get]),getFluidValue=o=>o&&o[$get]?o[$get]():o,getFluidObservers=o=>o[$observers]||null;function callFluidObserver(o,a){o.eventObserved?o.eventObserved(a):o(a)}function callFluidObservers(o,a){const s=o[$observers];s&&s.forEach(c=>{callFluidObserver(c,a)})}var FluidValue=class{constructor(o){if(!o&&!(o=this.get))throw Error("Unknown getter");setFluidGetter(this,o)}},setFluidGetter=(o,a)=>setHidden(o,$get,a);function addFluidObserver(o,a){if(o[$get]){let s=o[$observers];s||setHidden(o,$observers,s=new Set),s.has(a)||(s.add(a),o.observerAdded&&o.observerAdded(s.size,a))}return a}function removeFluidObserver(o,a){const s=o[$observers];if(s&&s.has(a)){const c=s.size-1;c?s.delete(a):o[$observers]=null,o.observerRemoved&&o.observerRemoved(c,a)}}var setHidden=(o,a,s)=>Object.defineProperty(o,a,{value:s,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=o=>{const[a,s]=parseCSSVariable(o);if(!a||isSSR$1())return o;const c=window.getComputedStyle(document.documentElement).getPropertyValue(a);if(c)return c.trim();if(s&&s.startsWith("--")){const f=window.getComputedStyle(document.documentElement).getPropertyValue(s);return f||o}else{if(s&&cssVariableRegex.test(s))return variableToRgba(s);if(s)return s}return o},parseCSSVariable=o=>{const a=cssVariableRegex.exec(o);if(!a)return[,];const[,s,c]=a;return[s,c]},namedColorRegex,rgbaRound=(o,a,s,c,f)=>`rgba(${Math.round(a)}, ${Math.round(s)}, ${Math.round(c)}, ${f})`,createStringInterpolator2=o=>{namedColorRegex||(namedColorRegex=colors?new RegExp(`(${Object.keys(colors).join("|")})(?!\\w)`,"g"):/^\b$/);const a=o.output.map(d=>getFluidValue(d).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba)),s=a.map(d=>d.match(numberRegex).map(Number)),f=s[0].map((d,y)=>s.map(_=>{if(!(y in _))throw Error('The arity of each "output" value must be equal');return _[y]})).map(d=>createInterpolator($e(se({},o),{output:d})));return d=>{var S;const y=!unitRegex.test(a[0])&&((S=a.find(b=>unitRegex.test(b)))==null?void 0:S.replace(numberRegex,""));let _=0;return a[0].replace(numberRegex,()=>`${f[_++](d)}${y||""}`).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=o=>{const a=o;let s=!1;if(typeof a!="function")throw new TypeError(`${prefix}once requires a function parameter`);return(...c)=>{s||(a(...c),s=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function isAnimatedString(o){return is$1.str(o)&&(o[0]=="#"||/\d/.test(o)||!isSSR$1()&&cssVariableRegex.test(o)||o in(colors||{}))}var useIsomorphicLayoutEffect$1=isSSR$1()?reactExports.useEffect:reactExports.useLayoutEffect,useIsMounted=()=>{const o=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>(o.current=!0,()=>{o.current=!1}),[]),o};function useForceUpdate(){const o=reactExports.useState()[1],a=useIsMounted();return()=>{a.current&&o(Math.random())}}function useMemoOne(o,a){const[s]=reactExports.useState(()=>({inputs:a,result:o()})),c=reactExports.useRef(),f=c.current;let d=f;return d?a&&d.inputs&&areInputsEqual(a,d.inputs)||(d={inputs:a,result:o()}):d=s,reactExports.useEffect(()=>{c.current=d,f==s&&(s.inputs=s.result=void 0)},[d]),d.result}function areInputsEqual(o,a){if(o.length!==a.length)return!1;for(let s=0;sreactExports.useEffect(o,emptyDeps),emptyDeps=[];function usePrev(o){const a=reactExports.useRef();return reactExports.useEffect(()=>{a.current=o}),a.current}var $node=Symbol.for("Animated:node"),isAnimated=o=>!!o&&o[$node]===o,getAnimated=o=>o&&o[$node],setAnimated=(o,a)=>defineHidden(o,$node,a),getPayload=o=>o&&o[$node]&&o[$node].getPayload(),Animated=class{constructor(){setAnimated(this,this)}getPayload(){return this.payload||[]}},AnimatedValue=class extends Animated{constructor(o){super(),this._value=o,this.done=!0,this.durationProgress=0,is$1.num(this._value)&&(this.lastPosition=this._value)}static create(o){return new AnimatedValue(o)}getPayload(){return[this]}getValue(){return this._value}setValue(o,a){return is$1.num(o)&&(this.lastPosition=o,a&&(o=Math.round(o/a)*a,this.done&&(this.lastPosition=o))),this._value===o?!1:(this._value=o,!0)}reset(){const{done:o}=this;this.done=!1,is$1.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,o&&(this.lastVelocity=null),this.v0=null)}},AnimatedString=class extends AnimatedValue{constructor(o){super(0),this._string=null,this._toString=createInterpolator({output:[o,o]})}static create(o){return new AnimatedString(o)}getValue(){const o=this._string;return o==null?this._string=this._toString(this._value):o}setValue(o){if(is$1.str(o)){if(o==this._string)return!1;this._string=o,this._value=1}else if(super.setValue(o))this._string=null;else return!1;return!0}reset(o){o&&(this._toString=createInterpolator({output:[this.getValue(),o]})),this._value=0,super.reset()}},TreeContext={dependencies:null},AnimatedObject=class extends Animated{constructor(o){super(),this.source=o,this.setValue(o)}getValue(o){const a={};return eachProp(this.source,(s,c)=>{isAnimated(s)?a[c]=s.getValue(o):hasFluidValue(s)?a[c]=getFluidValue(s):o||(a[c]=s)}),a}setValue(o){this.source=o,this.payload=this._makePayload(o)}reset(){this.payload&&each$1(this.payload,o=>o.reset())}_makePayload(o){if(o){const a=new Set;return eachProp(o,this._addToPayload,a),Array.from(a)}}_addToPayload(o){TreeContext.dependencies&&hasFluidValue(o)&&TreeContext.dependencies.add(o);const a=getPayload(o);a&&each$1(a,s=>this.add(s))}},AnimatedArray=class extends AnimatedObject{constructor(o){super(o)}static create(o){return new AnimatedArray(o)}getValue(){return this.source.map(o=>o.getValue())}setValue(o){const a=this.getPayload();return o.length==a.length?a.map((s,c)=>s.setValue(o[c])).some(Boolean):(super.setValue(o.map(makeAnimated)),!0)}};function makeAnimated(o){return(isAnimatedString(o)?AnimatedString:AnimatedValue).create(o)}function getAnimatedType(o){const a=getAnimated(o);return a?a.constructor:is$1.arr(o)?AnimatedArray:isAnimatedString(o)?AnimatedString:AnimatedValue}var withAnimated=(o,a)=>{const s=!is$1.fun(o)||o.prototype&&o.prototype.isReactComponent;return reactExports.forwardRef((c,f)=>{const d=reactExports.useRef(null),y=s&&reactExports.useCallback(O=>{d.current=updateRef(f,O)},[f]),[_,S]=getAnimatedState(c,a),b=useForceUpdate(),$=()=>{const O=d.current;if(s&&!O)return;(O?a.applyAnimatedValues(O,_.getValue(!0)):!1)===!1&&b()},P=new PropsObserver($,S),T=reactExports.useRef();useIsomorphicLayoutEffect$1(()=>(T.current=P,each$1(S,O=>addFluidObserver(O,P)),()=>{T.current&&(each$1(T.current.deps,O=>removeFluidObserver(O,T.current)),raf.cancel(T.current.update))})),reactExports.useEffect($,[]),useOnce(()=>()=>{const O=T.current;each$1(O.deps,A=>removeFluidObserver(A,O))});const C=a.getComponentProps(_.getValue());return reactExports.createElement(o,$e(se({},C),{ref:y}))})},PropsObserver=class{constructor(o,a){this.update=o,this.deps=a}eventObserved(o){o.type=="change"&&raf.write(this.update)}};function getAnimatedState(o,a){const s=new Set;return TreeContext.dependencies=s,o.style&&(o=$e(se({},o),{style:a.createAnimatedStyle(o.style)})),o=new AnimatedObject(o),TreeContext.dependencies=null,[o,s]}function updateRef(o,a){return o&&(is$1.fun(o)?o(a):o.current=a),a}var cacheKey=Symbol.for("AnimatedComponent"),createHost=(o,{applyAnimatedValues:a=()=>!1,createAnimatedStyle:s=f=>new AnimatedObject(f),getComponentProps:c=f=>f}={})=>{const f={applyAnimatedValues:a,createAnimatedStyle:s,getComponentProps:c},d=y=>{const _=getDisplayName(y)||"Anonymous";return is$1.str(y)?y=d[y]||(d[y]=withAnimated(y,f)):y=y[cacheKey]||(y[cacheKey]=withAnimated(y,f)),y.displayName=`Animated(${_})`,y};return eachProp(o,(y,_)=>{is$1.arr(o)&&(_=getDisplayName(y)),d[_]=d(y)}),{animated:d}},getDisplayName=o=>is$1.str(o)?o:o&&is$1.str(o.displayName)?o.displayName:is$1.fun(o)&&o.name||null;function callProp(o,...a){return is$1.fun(o)?o(...a):o}var matchProp=(o,a)=>o===!0||!!(a&&o&&(is$1.fun(o)?o(a):toArray$1(o).includes(a))),resolveProp=(o,a)=>is$1.obj(o)?a&&o[a]:o,getDefaultProp=(o,a)=>o.default===!0?o[a]:o.default?o.default[a]:void 0,noopTransform=o=>o,getDefaultProps=(o,a=noopTransform)=>{let s=DEFAULT_PROPS;o.default&&o.default!==!0&&(o=o.default,s=Object.keys(o));const c={};for(const f of s){const d=a(o[f],f);is$1.und(d)||(c[f]=d)}return c},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function getForwardProps(o){const a={};let s=0;if(eachProp(o,(c,f)=>{RESERVED_PROPS[f]||(a[f]=c,s++)}),s)return a}function inferTo(o){const a=getForwardProps(o);if(a){const s={to:a};return eachProp(o,(c,f)=>f in a||(s[f]=c)),s}return se({},o)}function computeGoal(o){return o=getFluidValue(o),is$1.arr(o)?o.map(computeGoal):isAnimatedString(o)?globals_exports.createStringInterpolator({range:[0,1],output:[o,o]})(1):o}function hasProps(o){for(const a in o)return!0;return!1}function isAsyncTo(o){return is$1.fun(o)||is$1.arr(o)&&is$1.obj(o[0])}function detachRefs(o,a){var s;(s=o.ref)==null||s.delete(o),a==null||a.delete(o)}function replaceRef(o,a){var s;a&&o.ref!==a&&((s=o.ref)==null||s.delete(o),a.add(o),o.ref=a)}var config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},defaults$4=$e(se({},config.default),{mass:1,damping:1,easing:easings.linear,clamp:!1}),AnimationConfig=class{constructor(){this.velocity=0,Object.assign(this,defaults$4)}};function mergeConfig$1(o,a,s){s&&(s=se({},s),sanitizeConfig(s,a),a=se(se({},s),a)),sanitizeConfig(o,a),Object.assign(o,a);for(const y in defaults$4)o[y]==null&&(o[y]=defaults$4[y]);let{frequency:c,damping:f}=o;const{mass:d}=o;return is$1.und(c)||(c<.01&&(c=.01),f<0&&(f=0),o.tension=Math.pow(2*Math.PI/c,2)*d,o.friction=4*Math.PI*f*d/c),o}function sanitizeConfig(o,a){if(!is$1.und(a.decay))o.duration=void 0;else{const s=!is$1.und(a.tension)||!is$1.und(a.friction);(s||!is$1.und(a.frequency)||!is$1.und(a.damping)||!is$1.und(a.mass))&&(o.duration=void 0,o.decay=void 0),s&&(o.frequency=void 0)}}var emptyArray=[],Animation$2=class{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.config=new AnimationConfig,this.immediate=!1}};function scheduleProps(o,{key:a,props:s,defaultProps:c,state:f,actions:d}){return new Promise((y,_)=>{var O;let S,b,$=matchProp((O=s.cancel)!=null?O:c==null?void 0:c.cancel,a);if($)C();else{is$1.und(s.pause)||(f.paused=matchProp(s.pause,a));let A=c==null?void 0:c.pause;A!==!0&&(A=f.paused||matchProp(A,a)),S=callProp(s.delay||0,a),A?(f.resumeQueue.add(T),d.pause()):(d.resume(),T())}function P(){f.resumeQueue.add(T),f.timeouts.delete(b),b.cancel(),S=b.time-raf.now()}function T(){S>0&&!globals_exports.skipAnimation?(f.delayed=!0,b=raf.setTimeout(C,S),f.pauseQueue.add(P),f.timeouts.add(b)):C()}function C(){f.delayed&&(f.delayed=!1),f.pauseQueue.delete(P),f.timeouts.delete(b),o<=(f.cancelId||0)&&($=!0);try{d.start($e(se({},s),{callId:o,cancel:$}),y)}catch(A){_(A)}}})}var getCombinedResult=(o,a)=>a.length==1?a[0]:a.some(s=>s.cancelled)?getCancelledResult(o.get()):a.every(s=>s.noop)?getNoopResult(o.get()):getFinishedResult(o.get(),a.every(s=>s.finished)),getNoopResult=o=>({value:o,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(o,a,s=!1)=>({value:o,finished:a,cancelled:s}),getCancelledResult=o=>({value:o,cancelled:!0,finished:!1});function runAsync(o,a,s,c){const{callId:f,parentId:d,onRest:y}=a,{asyncTo:_,promise:S}=s;return!d&&o===_&&!a.reset?S:s.promise=(()=>xt(this,null,function*(){s.asyncId=f,s.asyncTo=o;const b=getDefaultProps(a,(F,j)=>j==="onRest"?void 0:F);let $,P;const T=new Promise((F,j)=>($=F,P=j)),C=F=>{const j=f<=(s.cancelId||0)&&getCancelledResult(c)||f!==s.asyncId&&getFinishedResult(c,!1);if(j)throw F.result=j,P(F),F},O=(F,j)=>{const L=new BailSignal,M=new SkipAnimationSignal;return(()=>xt(this,null,function*(){if(globals_exports.skipAnimation)throw stopAsync(s),M.result=getFinishedResult(c,!1),P(M),M;C(L);const I=is$1.obj(F)?se({},F):$e(se({},j),{to:F});I.parentId=f,eachProp(b,(z,H)=>{is$1.und(I[H])&&(I[H]=z)});const U=yield c.start(I);return C(L),s.paused&&(yield new Promise(z=>{s.resumeQueue.add(z)})),U}))()};let A;if(globals_exports.skipAnimation)return stopAsync(s),getFinishedResult(c,!1);try{let F;is$1.arr(o)?F=(j=>xt(this,null,function*(){for(const L of j)yield O(L)}))(o):F=Promise.resolve(o(O,c.stop.bind(c))),yield Promise.all([F.then($),T]),A=getFinishedResult(c.get(),!0,!1)}catch(F){if(F instanceof BailSignal)A=F.result;else if(F instanceof SkipAnimationSignal)A=F.result;else throw F}finally{f==s.asyncId&&(s.asyncId=d,s.asyncTo=d?_:void 0,s.promise=d?S:void 0)}return is$1.fun(y)&&raf.batchedUpdates(()=>{y(A,c,c.item)}),A}))()}function stopAsync(o,a){flush(o.timeouts,s=>s.cancel()),o.pauseQueue.clear(),o.resumeQueue.clear(),o.asyncId=o.asyncTo=o.promise=void 0,a&&(o.cancelId=a)}var BailSignal=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},SkipAnimationSignal=class extends Error{constructor(){super("SkipAnimationSignal")}},isFrameValue=o=>o instanceof FrameValue,nextId=1,FrameValue=class extends FluidValue{constructor(){super(...arguments),this.id=nextId++,this._priority=0}get priority(){return this._priority}set priority(o){this._priority!=o&&(this._priority=o,this._onPriorityChange(o))}get(){const o=getAnimated(this);return o&&o.getValue()}to(...o){return globals_exports.to(this,o)}interpolate(...o){return deprecateInterpolate(),globals_exports.to(this,o)}toJSON(){return this.get()}observerAdded(o){o==1&&this._attach()}observerRemoved(o){o==0&&this._detach()}_attach(){}_detach(){}_onChange(o,a=!1){callFluidObservers(this,{type:"change",parent:this,value:o,idle:a})}_onPriorityChange(o){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:o})}},$P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=o=>(o[$P]&HAS_ANIMATED)>0,isAnimating=o=>(o[$P]&IS_ANIMATING)>0,isPaused=o=>(o[$P]&IS_PAUSED)>0,setActiveBit=(o,a)=>a?o[$P]|=IS_ANIMATING|HAS_ANIMATED:o[$P]&=~IS_ANIMATING,setPausedBit=(o,a)=>a?o[$P]|=IS_PAUSED:o[$P]&=~IS_PAUSED,SpringValue=class extends FrameValue{constructor(o,a){if(super(),this.animation=new Animation$2,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!is$1.und(o)||!is$1.und(a)){const s=is$1.obj(o)?se({},o):$e(se({},a),{from:o});is$1.und(s.default)&&(s.default=!0),this.start(s)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const o=getAnimated(this);return o instanceof AnimatedValue?o.lastVelocity||0:o.getPayload().map(a=>a.lastVelocity||0)}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(o){let a=!0,s=!1;const c=this.animation;let{toValues:f}=c;const{config:d}=c,y=getPayload(c.to);!y&&hasFluidValue(c.to)&&(f=toArray$1(getFluidValue(c.to))),c.values.forEach((b,$)=>{if(b.done)return;const P=b.constructor==AnimatedString?1:y?y[$].lastPosition:f[$];let T=c.immediate,C=P;if(!T){if(C=b.lastPosition,d.tension<=0){b.done=!0;return}let O=b.elapsedTime+=o;const A=c.fromValues[$],F=b.v0!=null?b.v0:b.v0=is$1.arr(d.velocity)?d.velocity[$]:d.velocity;let j;const L=d.precision||(A==P?.005:Math.min(1,Math.abs(P-A)*.001));if(is$1.und(d.duration))if(d.decay){const M=d.decay===!0?.998:d.decay,I=Math.exp(-(1-M)*O);C=A+F/(1-M)*(1-I),T=Math.abs(b.lastPosition-C)<=L,j=F*I}else{j=b.lastVelocity==null?F:b.lastVelocity;const M=d.restVelocity||L/10,I=d.clamp?0:d.bounce,U=!is$1.und(I),z=A==P?b.v0>0:AM,!(!H&&(T=Math.abs(P-C)<=L,T)));++K){U&&(G=C==P||C>P==z,G&&(j=-j*I,C=P));const ie=-d.tension*1e-6*(C-P),ee=-d.friction*.001*j,de=(ie+ee)/d.mass;j=j+de*X,C=C+j*X}}else{let M=1;d.duration>0&&(this._memoizedDuration!==d.duration&&(this._memoizedDuration=d.duration,b.durationProgress>0&&(b.elapsedTime=d.duration*b.durationProgress,O=b.elapsedTime+=o)),M=(d.progress||0)+O/this._memoizedDuration,M=M>1?1:M<0?0:M,b.durationProgress=M),C=A+d.easing(M)*(P-A),j=(C-b.lastPosition)/o,T=M==1}b.lastVelocity=j,Number.isNaN(C)&&(T=!0)}y&&!y[$].done&&(T=!1),T?b.done=!0:a=!1,b.setValue(C,d.round)&&(s=!0)});const _=getAnimated(this),S=_.getValue();if(a){const b=getFluidValue(c.to);(S!==b||s)&&!d.decay?(_.setValue(b),this._onChange(b)):s&&d.decay&&this._onChange(S),this._stop()}else s&&this._onChange(S)}set(o){return raf.batchedUpdates(()=>{this._stop(),this._focus(o),this._set(o)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:o,config:a}=this.animation;raf.batchedUpdates(()=>{this._onStart(),a.decay||this._set(o,!1),this._stop()})}return this}update(o){return(this.queue||(this.queue=[])).push(o),this}start(o,a){let s;return is$1.und(o)?(s=this.queue||[],this.queue=[]):s=[is$1.obj(o)?o:$e(se({},a),{to:o})],Promise.all(s.map(c=>this._update(c))).then(c=>getCombinedResult(this,c))}stop(o){const{to:a}=this.animation;return this._focus(this.get()),stopAsync(this._state,o&&this._lastCallId),raf.batchedUpdates(()=>this._stop(a,o)),this}reset(){this._update({reset:!0})}eventObserved(o){o.type=="change"?this._start():o.type=="priority"&&(this.priority=o.priority+1)}_prepareNode(o){const a=this.key||"";let{to:s,from:c}=o;s=is$1.obj(s)?s[a]:s,(s==null||isAsyncTo(s))&&(s=void 0),c=is$1.obj(c)?c[a]:c,c==null&&(c=void 0);const f={to:s,from:c};return hasAnimated(this)||(o.reverse&&([s,c]=[c,s]),c=getFluidValue(c),is$1.und(c)?getAnimated(this)||this._set(s):this._set(c)),f}_update(s,a){var o=er(s,[]);const{key:c,defaultProps:f}=this;o.default&&Object.assign(f,getDefaultProps(o,(_,S)=>/^on/.test(S)?resolveProp(_,c):_)),mergeActiveFn(this,o,"onProps"),sendEvent(this,"onProps",o,this);const d=this._prepareNode(o);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const y=this._state;return scheduleProps(++this._lastCallId,{key:c,props:o,defaultProps:f,state:y,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(y.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(y.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,d)}}).then(_=>{if(o.loop&&_.finished&&!(a&&_.noop)){const S=createLoopUpdate(o);if(S)return this._update(S,!0)}return _})}_merge(o,a,s){if(a.cancel)return this.stop(!0),s(getCancelledResult(this));const c=!is$1.und(o.to),f=!is$1.und(o.from);if(c||f)if(a.callId>this._lastToId)this._lastToId=a.callId;else return s(getCancelledResult(this));const{key:d,defaultProps:y,animation:_}=this,{to:S,from:b}=_;let{to:$=S,from:P=b}=o;f&&!c&&(!a.default||is$1.und($))&&($=P),a.reverse&&([$,P]=[P,$]);const T=!isEqual$1(P,b);T&&(_.from=P),P=getFluidValue(P);const C=!isEqual$1($,S);C&&this._focus($);const O=isAsyncTo(a.to),{config:A}=_,{decay:F,velocity:j}=A;(c||f)&&(A.velocity=0),a.config&&!O&&mergeConfig$1(A,callProp(a.config,d),a.config!==y.config?callProp(y.config,d):void 0);let L=getAnimated(this);if(!L||is$1.und($))return s(getFinishedResult(this,!0));const M=is$1.und(a.reset)?f&&!a.default:!is$1.und(P)&&matchProp(a.reset,d),I=M?P:this.get(),U=computeGoal($),z=is$1.num(U)||is$1.arr(U)||isAnimatedString(U),H=!O&&(!z||matchProp(y.immediate||a.immediate,d));if(C){const K=getAnimatedType($);if(K!==L.constructor)if(H)L=this._set(U);else throw Error(`Cannot animate between ${L.constructor.name} and ${K.name}, as the "to" prop suggests`)}const G=L.constructor;let X=hasFluidValue($),W=!1;if(!X){const K=M||!hasAnimated(this)&&T;(C||K)&&(W=isEqual$1(computeGoal(I),U),X=!W),(!isEqual$1(_.immediate,H)&&!H||!isEqual$1(A.decay,F)||!isEqual$1(A.velocity,j))&&(X=!0)}if(W&&isAnimating(this)&&(_.changed&&!M?X=!0:X||this._stop(S)),!O&&((X||hasFluidValue(S))&&(_.values=L.getPayload(),_.toValues=hasFluidValue($)?null:G==AnimatedString?[1]:toArray$1(U)),_.immediate!=H&&(_.immediate=H,!H&&!M&&this._set(S)),X)){const{onRest:K}=_;each$1(ACTIVE_EVENTS,ee=>mergeActiveFn(this,a,ee));const ie=getFinishedResult(this,checkFinished(this,S));flushCalls(this._pendingCalls,ie),this._pendingCalls.add(s),_.changed&&raf.batchedUpdates(()=>{var ee;_.changed=!M,K==null||K(ie,this),M?callProp(y.onRest,ie):(ee=_.onStart)==null||ee.call(_,ie,this)})}M&&this._set(I),O?s(runAsync(a.to,a,this._state,this)):X?this._start():isAnimating(this)&&!C?this._pendingCalls.add(s):s(getNoopResult(I))}_focus(o){const a=this.animation;o!==a.to&&(getFluidObservers(this)&&this._detach(),a.to=o,getFluidObservers(this)&&this._attach())}_attach(){let o=0;const{to:a}=this.animation;hasFluidValue(a)&&(addFluidObserver(a,this),isFrameValue(a)&&(o=a.priority+1)),this.priority=o}_detach(){const{to:o}=this.animation;hasFluidValue(o)&&removeFluidObserver(o,this)}_set(o,a=!0){const s=getFluidValue(o);if(!is$1.und(s)){const c=getAnimated(this);if(!c||!isEqual$1(s,c.getValue())){const f=getAnimatedType(s);!c||c.constructor!=f?setAnimated(this,f.create(s)):c.setValue(s),c&&raf.batchedUpdates(()=>{this._onChange(s,a)})}}return getAnimated(this)}_onStart(){const o=this.animation;o.changed||(o.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,o.to)),this))}_onChange(o,a){a||(this._onStart(),callProp(this.animation.onChange,o,this)),callProp(this.defaultProps.onChange,o,this),super._onChange(o,a)}_start(){const o=this.animation;getAnimated(this).reset(getFluidValue(o.to)),o.immediate||(o.fromValues=o.values.map(a=>a.lastPosition)),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals_exports.skipAnimation?this.finish():frameLoop.start(this)}_stop(o,a){if(isAnimating(this)){setActiveBit(this,!1);const s=this.animation;each$1(s.values,f=>{f.done=!0}),s.toValues&&(s.onChange=s.onPause=s.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const c=a?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,o!=null?o:s.to));flushCalls(this._pendingCalls,c),s.changed&&(s.changed=!1,sendEvent(this,"onRest",c,this))}}};function checkFinished(o,a){const s=computeGoal(a),c=computeGoal(o.get());return isEqual$1(c,s)}function createLoopUpdate(o,a=o.loop,s=o.to){const c=callProp(a);if(c){const f=c!==!0&&inferTo(c),d=(f||o).reverse,y=!f||f.reset;return createUpdate(se($e(se({},o),{loop:a,default:!1,pause:void 0,to:!d||isAsyncTo(s)?s:void 0,from:y?o.from:void 0,reset:y}),f))}}function createUpdate(o){const{to:a,from:s}=o=inferTo(o),c=new Set;return is$1.obj(a)&&findDefined(a,c),is$1.obj(s)&&findDefined(s,c),o.keys=c.size?Array.from(c):null,o}function declareUpdate(o){const a=createUpdate(o);return is$1.und(a.default)&&(a.default=getDefaultProps(a)),a}function findDefined(o,a){eachProp(o,(s,c)=>s!=null&&a.add(c))}var ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(o,a,s){o.animation[s]=a[s]!==getDefaultProp(a,s)?resolveProp(a[s],o.key):void 0}function sendEvent(o,a,...s){var c,f,d,y;(f=(c=o.animation)[a])==null||f.call(c,...s),(y=(d=o.defaultProps)[a])==null||y.call(d,...s)}var BATCHED_EVENTS=["onStart","onChange","onRest"],nextId2=1,Controller=class{constructor(o,a){this.id=nextId2++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),a&&(this._flush=a),o&&this.start(se({default:!0},o))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(o=>o.idle&&!o.isDelayed&&!o.isPaused)}get item(){return this._item}set item(o){this._item=o}get(){const o={};return this.each((a,s)=>o[s]=a.get()),o}set(o){for(const a in o){const s=o[a];is$1.und(s)||this.springs[a].set(s)}}update(o){return o&&this.queue.push(createUpdate(o)),this}start(o){let{queue:a}=this;return o?a=toArray$1(o).map(createUpdate):this.queue=[],this._flush?this._flush(this,a):(prepareKeys(this,a),flushUpdateQueue(this,a))}stop(o,a){if(o!==!!o&&(a=o),a){const s=this.springs;each$1(toArray$1(a),c=>s[c].stop(!!o))}else stopAsync(this._state,this._lastAsyncId),this.each(s=>s.stop(!!o));return this}pause(o){if(is$1.und(o))this.start({pause:!0});else{const a=this.springs;each$1(toArray$1(o),s=>a[s].pause())}return this}resume(o){if(is$1.und(o))this.start({pause:!1});else{const a=this.springs;each$1(toArray$1(o),s=>a[s].resume())}return this}each(o){eachProp(this.springs,o)}_onFrame(){const{onStart:o,onChange:a,onRest:s}=this._events,c=this._active.size>0,f=this._changed.size>0;(c&&!this._started||f&&!this._started)&&(this._started=!0,flush(o,([_,S])=>{S.value=this.get(),_(S,this,this._item)}));const d=!c&&this._started,y=f||d&&s.size?this.get():null;f&&a.size&&flush(a,([_,S])=>{S.value=y,_(S,this,this._item)}),d&&(this._started=!1,flush(s,([_,S])=>{S.value=y,_(S,this,this._item)}))}eventObserved(o){if(o.type=="change")this._changed.add(o.parent),o.idle||this._active.add(o.parent);else if(o.type=="idle")this._active.delete(o.parent);else return;raf.onFrame(this._onFrame)}};function flushUpdateQueue(o,a){return Promise.all(a.map(s=>flushUpdate(o,s))).then(s=>getCombinedResult(o,s))}function flushUpdate(o,a,s){return xt(this,null,function*(){const{keys:c,to:f,from:d,loop:y,onRest:_,onResolve:S}=a,b=is$1.obj(a.default)&&a.default;y&&(a.loop=!1),f===!1&&(a.to=null),d===!1&&(a.from=null);const $=is$1.arr(f)||is$1.fun(f)?f:void 0;$?(a.to=void 0,a.onRest=void 0,b&&(b.onRest=void 0)):each$1(BATCHED_EVENTS,A=>{const F=a[A];if(is$1.fun(F)){const j=o._events[A];a[A]=({finished:L,cancelled:M})=>{const I=j.get(F);I?(L||(I.finished=!1),M&&(I.cancelled=!0)):j.set(F,{value:null,finished:L||!1,cancelled:M||!1})},b&&(b[A]=a[A])}});const P=o._state;a.pause===!P.paused?(P.paused=a.pause,flushCalls(a.pause?P.pauseQueue:P.resumeQueue)):P.paused&&(a.pause=!0);const T=(c||Object.keys(o.springs)).map(A=>o.springs[A].start(a)),C=a.cancel===!0||getDefaultProp(a,"cancel")===!0;($||C&&P.asyncId)&&T.push(scheduleProps(++o._lastAsyncId,{props:a,state:P,actions:{pause:noop$4,resume:noop$4,start(A,F){C?(stopAsync(P,o._lastAsyncId),F(getCancelledResult(o))):(A.onRest=_,F(runAsync($,A,P,o)))}}})),P.paused&&(yield new Promise(A=>{P.resumeQueue.add(A)}));const O=getCombinedResult(o,yield Promise.all(T));if(y&&O.finished&&!(s&&O.noop)){const A=createLoopUpdate(a,y,f);if(A)return prepareKeys(o,[A]),flushUpdate(o,A,!0)}return S&&raf.batchedUpdates(()=>S(O,o,o.item)),O})}function getSprings(o,a){const s=se({},o.springs);return a&&each$1(toArray$1(a),c=>{is$1.und(c.keys)&&(c=createUpdate(c)),is$1.obj(c.to)||(c=$e(se({},c),{to:void 0})),prepareSprings(s,c,f=>createSpring(f))}),setSprings(o,s),s}function setSprings(o,a){eachProp(a,(s,c)=>{o.springs[c]||(o.springs[c]=s,addFluidObserver(s,o))})}function createSpring(o,a){const s=new SpringValue;return s.key=o,a&&addFluidObserver(s,a),s}function prepareSprings(o,a,s){a.keys&&each$1(a.keys,c=>{(o[c]||(o[c]=s(c)))._prepareNode(a)})}function prepareKeys(o,a){each$1(a,s=>{prepareSprings(o.springs,s,c=>createSpring(c,o))})}var SpringContext=s=>{var c=s,{children:o}=c,a=er(c,["children"]);const f=reactExports.useContext(ctx),d=a.pause||!!f.pause,y=a.immediate||!!f.immediate;a=useMemoOne(()=>({pause:d,immediate:y}),[d,y]);const{Provider:_}=ctx;return reactExports.createElement(_,{value:a},o)},ctx=makeContext(SpringContext,{});SpringContext.Provider=ctx.Provider;SpringContext.Consumer=ctx.Consumer;function makeContext(o,a){return Object.assign(o,reactExports.createContext(a)),o.Provider._context=o,o.Consumer._context=o,o}var SpringRef=()=>{const o=[],a=function(c){deprecateDirectCall();const f=[];return each$1(o,(d,y)=>{if(is$1.und(c))f.push(d.start());else{const _=s(c,d,y);_&&f.push(d.start(_))}}),f};a.current=o,a.add=function(c){o.includes(c)||o.push(c)},a.delete=function(c){const f=o.indexOf(c);~f&&o.splice(f,1)},a.pause=function(){return each$1(o,c=>c.pause(...arguments)),this},a.resume=function(){return each$1(o,c=>c.resume(...arguments)),this},a.set=function(c){each$1(o,(f,d)=>{const y=is$1.fun(c)?c(d,f):c;y&&f.set(y)})},a.start=function(c){const f=[];return each$1(o,(d,y)=>{if(is$1.und(c))f.push(d.start());else{const _=this._getProps(c,d,y);_&&f.push(d.start(_))}}),f},a.stop=function(){return each$1(o,c=>c.stop(...arguments)),this},a.update=function(c){return each$1(o,(f,d)=>f.update(this._getProps(c,f,d))),this};const s=function(c,f,d){return is$1.fun(c)?c(d,f):c};return a._getProps=s,a};function useSprings(o,a,s){const c=is$1.fun(a)&&a;c&&!s&&(s=[]);const f=reactExports.useMemo(()=>c||arguments.length==3?SpringRef():void 0,[]),d=reactExports.useRef(0),y=useForceUpdate(),_=reactExports.useMemo(()=>({ctrls:[],queue:[],flush(j,L){const M=getSprings(j,L);return d.current>0&&!_.queue.length&&!Object.keys(M).some(U=>!j.springs[U])?flushUpdateQueue(j,L):new Promise(U=>{setSprings(j,M),_.queue.push(()=>{U(flushUpdateQueue(j,L))}),y()})}}),[]),S=reactExports.useRef([..._.ctrls]),b=[],$=usePrev(o)||0;reactExports.useMemo(()=>{each$1(S.current.slice(o,$),j=>{detachRefs(j,f),j.stop(!0)}),S.current.length=o,P($,o)},[o]),reactExports.useMemo(()=>{P(0,Math.min($,o))},s);function P(j,L){for(let M=j;MgetSprings(j,b[L])),C=reactExports.useContext(SpringContext),O=usePrev(C),A=C!==O&&hasProps(C);useIsomorphicLayoutEffect$1(()=>{d.current++,_.ctrls=S.current;const{queue:j}=_;j.length&&(_.queue=[],each$1(j,L=>L())),each$1(S.current,(L,M)=>{f==null||f.add(L),A&&L.start({default:C});const I=b[M];I&&(replaceRef(L,I.ref),L.ref?L.queue.push(I):L.start(I))})}),useOnce(()=>()=>{each$1(_.ctrls,j=>j.stop(!0))});const F=T.map(j=>se({},j));return f?[F,f]:F}function useSpring(o,a){const s=is$1.fun(o),[[c],f]=useSprings(1,s?o:[o],s?a||[]:a);return s||arguments.length==2?[c,f]:c}var Interpolation=class extends FrameValue{constructor(o,a){super(),this.source=o,this.idle=!0,this._active=new Set,this.calc=createInterpolator(...a);const s=this._get(),c=getAnimatedType(s);setAnimated(this,c.create(s))}advance(o){const a=this._get(),s=this.get();isEqual$1(a,s)||(getAnimated(this).setValue(a),this._onChange(a,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const o=is$1.arr(this.source)?this.source.map(getFluidValue):toArray$1(getFluidValue(this.source));return this.calc(...o)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each$1(getPayload(this),o=>{o.done=!1}),globals_exports.skipAnimation?(raf.batchedUpdates(()=>this.advance()),becomeIdle(this)):frameLoop.start(this))}_attach(){let o=1;each$1(toArray$1(this.source),a=>{hasFluidValue(a)&&addFluidObserver(a,this),isFrameValue(a)&&(a.idle||this._active.add(a),o=Math.max(o,a.priority+1))}),this.priority=o,this._start()}_detach(){each$1(toArray$1(this.source),o=>{hasFluidValue(o)&&removeFluidObserver(o,this)}),this._active.clear(),becomeIdle(this)}eventObserved(o){o.type=="change"?o.idle?this.advance():(this._active.add(o.parent),this._start()):o.type=="idle"?this._active.delete(o.parent):o.type=="priority"&&(this.priority=toArray$1(this.source).reduce((a,s)=>Math.max(a,(isFrameValue(s)?s.priority:0)+1),0))}};function isIdle(o){return o.idle!==!1}function checkIdle(o){return!o.size||Array.from(o).every(isIdle)}function becomeIdle(o){o.idle||(o.idle=!0,each$1(getPayload(o),a=>{a.done=!0}),callFluidObservers(o,{type:"idle",parent:o}))}globals_exports.assign({createStringInterpolator:createStringInterpolator2,to:(o,a)=>new Interpolation(o,a)});var isCustomPropRE=/^--/;function dangerousStyleValue(o,a){return a==null||typeof a=="boolean"||a===""?"":typeof a=="number"&&a!==0&&!isCustomPropRE.test(o)&&!(isUnitlessNumber.hasOwnProperty(o)&&isUnitlessNumber[o])?a+"px":(""+a).trim()}var attributeCache={};function applyAnimatedValues(o,a){if(!o.nodeType||!o.setAttribute)return!1;const s=o.nodeName==="filter"||o.parentNode&&o.parentNode.nodeName==="filter",P=a,{style:c,children:f,scrollTop:d,scrollLeft:y,viewBox:_}=P,S=er(P,["style","children","scrollTop","scrollLeft","viewBox"]),b=Object.values(S),$=Object.keys(S).map(T=>s||o.hasAttribute(T)?T:attributeCache[T]||(attributeCache[T]=T.replace(/([A-Z])/g,C=>"-"+C.toLowerCase())));f!==void 0&&(o.textContent=f);for(const T in c)if(c.hasOwnProperty(T)){const C=dangerousStyleValue(T,c[T]);isCustomPropRE.test(T)?o.style.setProperty(T,C):o.style[T]=C}$.forEach((T,C)=>{o.setAttribute(T,b[C])}),d!==void 0&&(o.scrollTop=d),y!==void 0&&(o.scrollLeft=y),_!==void 0&&o.setAttribute("viewBox",_)}var isUnitlessNumber={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},prefixKey=(o,a)=>o+a.charAt(0).toUpperCase()+a.substring(1),prefixes$1=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce((o,a)=>(prefixes$1.forEach(s=>o[prefixKey(s,a)]=o[a]),o),isUnitlessNumber);var domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(o,a)=>is$1.num(o)&&o!==0?o+a:o,isValueIdentity=(o,a)=>is$1.arr(o)?o.every(s=>isValueIdentity(s,a)):is$1.num(o)?o===a:parseFloat(o)===a,AnimatedStyle=class extends AnimatedObject{constructor(f){var d=f,{x:o,y:a,z:s}=d,c=er(d,["x","y","z"]);const y=[],_=[];(o||a||s)&&(y.push([o||0,a||0,s||0]),_.push(S=>[`translate3d(${S.map(b=>addUnit(b,"px")).join(",")})`,isValueIdentity(S,0)])),eachProp(c,(S,b)=>{if(b==="transform")y.push([S||""]),_.push($=>[$,$===""]);else if(domTransforms.test(b)){if(delete c[b],is$1.und(S))return;const $=pxTransforms.test(b)?"px":degTransforms.test(b)?"deg":"";y.push(toArray$1(S)),_.push(b==="rotate3d"?([P,T,C,O])=>[`rotate3d(${P},${T},${C},${addUnit(O,$)})`,isValueIdentity(O,0)]:P=>[`${b}(${P.map(T=>addUnit(T,$)).join(",")})`,isValueIdentity(P,b.startsWith("scale")?1:0)])}}),y.length&&(c.transform=new FluidTransform(y,_)),super(c)}},FluidTransform=class extends FluidValue{constructor(o,a){super(),this.inputs=o,this.transforms=a,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let o="",a=!0;return each$1(this.inputs,(s,c)=>{const f=getFluidValue(s[0]),[d,y]=this.transforms[c](is$1.arr(f)?f:s.map(getFluidValue));o+=" "+d,a=a&&y}),a?"none":o}observerAdded(o){o==1&&each$1(this.inputs,a=>each$1(a,s=>hasFluidValue(s)&&addFluidObserver(s,this)))}observerRemoved(o){o==0&&each$1(this.inputs,a=>each$1(a,s=>hasFluidValue(s)&&removeFluidObserver(s,this)))}eventObserved(o){o.type=="change"&&(this._value=null),callFluidObservers(this,o)}},primitives=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];globals_exports.assign({batchedUpdates:reactDomExports.unstable_batchedUpdates,createStringInterpolator:createStringInterpolator2,colors:colors2});var host=createHost(primitives,{applyAnimatedValues,createAnimatedStyle:o=>new AnimatedStyle(o),getComponentProps:c=>{var f=c,{scrollTop:o,scrollLeft:a}=f,s=er(f,["scrollTop","scrollLeft"]);return s}}),animated=host.animated;const useStyles$g=createStyles(()=>({"svg-icon":{display:"inline-block",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}));function SvgIcon$1({name:o,prefix:a="icon",size:s=16,style:c,className:f}){const{styles:d}=useStyles$g(),y=`#${a}-${o}`,_=se({width:`${s}px`,height:`${s}px`},c);return jsxRuntimeExports.jsx("svg",{className:`${d["svg-icon"]} ${f}`,style:_,"aria-hidden":"true",children:jsxRuntimeExports.jsx("use",{href:y})})}const useStyles$f=createStyles(({token:o})=>({"custom-card":{boxShadow:"rgba(145, 158, 171, 0.2) 0px 0px 2px 0px, rgba(145, 158, 171, 0.12) 0px 12px 24px -4px",transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",".ant-card-body":{padding:o.paddingMD}}})),createDot=(o,a,s,c,f=0)=>{const d=document.createElement("div");return d.style.position="absolute",d.style.left=`${s}px`,d.style.top=`${c}px`,d.style.width=`${f}px`,d.style.height=`${f}px`,d.style.borderRadius="50%",d.style.background=a,d.style.transform="translate(-50%, -50%)",d.style.transition="all 1s ease-out",o.appendChild(d),d},createHolder=o=>{const{borderWidth:a}=getComputedStyle(o),s=parseInt(a,10),c=document.createElement("div");return c.style.position="absolute",c.style.inset=`-${s}px`,c.style.borderRadius="inherit",c.style.background="transparent",c.style.zIndex="999",c.style.pointerEvents="none",c.style.overflow="hidden",o.appendChild(c),c},showInsetEffect=(o,{event:a,component:s})=>{const c=createHolder(o),f=c.getBoundingClientRect(),d=a.clientX-f.left,y=a.clientY-f.top,_=createDot(c,"rgba(255, 255, 255, 0.65)",d,y);requestAnimationFrame(()=>{_.ontransitionend=()=>{c.remove()},_.style.width="400px",_.style.height="400px",_.style.opacity="0"})},GlobalConfig=s=>{var c=s,{children:o}=c,a=er(c,["children"]);const{styles:f}=useStyles$f(),d=()=>jsxRuntimeExports.jsxs("div",{style:{textAlign:"center"},children:[jsxRuntimeExports.jsx(SvgIcon$1,{name:"ic_content",size:120}),jsxRuntimeExports.jsx("p",{children:"Data Not Found"})]});return jsxRuntimeExports.jsx(ConfigProvider,$e(se({wave:{showEffect:showInsetEffect},card:{className:f["custom-card"]},renderEmpty:d},a),{children:jsxRuntimeExports.jsx(App$1,{children:o})}))};var lib$3={},slider={},innerSlider={},initialState$3={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},s=a;o.default=s})(initialState$3);var FUNC_ERROR_TEXT$3="Expected a function",NAN$2=0/0,symbolTag$5="[object Symbol]",reTrim$1=/^\s+|\s+$/g,reIsBadHex$2=/^[-+]0x[0-9a-f]+$/i,reIsBinary$2=/^0b[01]+$/i,reIsOctal$2=/^0o[0-7]+$/i,freeParseInt$2=parseInt,freeGlobal$5=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf$3=typeof self=="object"&&self&&self.Object===Object&&self,root$6=freeGlobal$5||freeSelf$3||Function("return this")(),objectProto$j=Object.prototype,objectToString$5=objectProto$j.toString,nativeMax$3=Math.max,nativeMin$3=Math.min,now$4=function(){return root$6.Date.now()};function debounce$4(o,a,s){var c,f,d,y,_,S,b=0,$=!1,P=!1,T=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT$3);a=toNumber$3(a)||0,isObject$9(s)&&($=!!s.leading,P="maxWait"in s,d=P?nativeMax$3(toNumber$3(s.maxWait)||0,a):d,T="trailing"in s?!!s.trailing:T);function C(z){var H=c,G=f;return c=f=void 0,b=z,y=o.apply(G,H),y}function O(z){return b=z,_=setTimeout(j,a),$?C(z):y}function A(z){var H=z-S,G=z-b,X=a-H;return P?nativeMin$3(X,d-G):X}function F(z){var H=z-S,G=z-b;return S===void 0||H>=a||H<0||P&&G>=d}function j(){var z=now$4();if(F(z))return L(z);_=setTimeout(j,A(z))}function L(z){return _=void 0,T&&c?C(z):(c=f=void 0,y)}function M(){_!==void 0&&clearTimeout(_),b=0,c=S=f=_=void 0}function I(){return _===void 0?y:L(now$4())}function U(){var z=now$4(),H=F(z);if(c=arguments,f=this,S=z,H){if(_===void 0)return O(S);if(P)return _=setTimeout(j,a),C(S)}return _===void 0&&(_=setTimeout(j,a)),y}return U.cancel=M,U.flush=I,U}function isObject$9(o){var a=typeof o;return!!o&&(a=="object"||a=="function")}function isObjectLike$5(o){return!!o&&typeof o=="object"}function isSymbol$4(o){return typeof o=="symbol"||isObjectLike$5(o)&&objectToString$5.call(o)==symbolTag$5}function toNumber$3(o){if(typeof o=="number")return o;if(isSymbol$4(o))return NAN$2;if(isObject$9(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=isObject$9(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=o.replace(reTrim$1,"");var s=reIsBinary$2.test(o);return s||reIsOctal$2.test(o)?freeParseInt$2(o.slice(2),s?2:8):reIsBadHex$2.test(o)?NAN$2:+o}var lodash_debounce=debounce$4;const debounce$5=getDefaultExportFromCjs(lodash_debounce);var innerSliderUtils={};Object.defineProperty(innerSliderUtils,"__esModule",{value:!0});innerSliderUtils.checkSpecKeys=innerSliderUtils.checkNavigable=innerSliderUtils.changeSlide=innerSliderUtils.canUseDOM=innerSliderUtils.canGoNext=void 0;innerSliderUtils.clamp=clamp;innerSliderUtils.swipeStart=innerSliderUtils.swipeMove=innerSliderUtils.swipeEnd=innerSliderUtils.slidesOnRight=innerSliderUtils.slidesOnLeft=innerSliderUtils.slideHandler=innerSliderUtils.siblingDirection=innerSliderUtils.safePreventDefault=innerSliderUtils.lazyStartIndex=innerSliderUtils.lazySlidesOnRight=innerSliderUtils.lazySlidesOnLeft=innerSliderUtils.lazyEndIndex=innerSliderUtils.keyHandler=innerSliderUtils.initializedState=innerSliderUtils.getWidth=innerSliderUtils.getTrackLeft=innerSliderUtils.getTrackCSS=innerSliderUtils.getTrackAnimateCSS=innerSliderUtils.getTotalSlides=innerSliderUtils.getSwipeDirection=innerSliderUtils.getSlideCount=innerSliderUtils.getRequiredLazySlides=innerSliderUtils.getPreClones=innerSliderUtils.getPostClones=innerSliderUtils.getOnDemandLazySlides=innerSliderUtils.getNavigableIndexes=innerSliderUtils.getHeight=innerSliderUtils.extractObject=void 0;var _react$5=_interopRequireDefault$a(reactExports);function _interopRequireDefault$a(o){return o&&o.__esModule?o:{default:o}}function ownKeys$n(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$m(o){for(var a=1;a0?1:0):0};innerSliderUtils.lazySlidesOnLeft=lazySlidesOnLeft;var lazySlidesOnRight=function(a){return a.centerMode?Math.floor((a.slidesToShow-1)/2)+1+(parseInt(a.centerPadding)>0?1:0):a.slidesToShow};innerSliderUtils.lazySlidesOnRight=lazySlidesOnRight;var getWidth=function(a){return a&&a.offsetWidth||0};innerSliderUtils.getWidth=getWidth;var getHeight=function(a){return a&&a.offsetHeight||0};innerSliderUtils.getHeight=getHeight;var getSwipeDirection=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c,f,d,y;return c=a.startX-a.curX,f=a.startY-a.curY,d=Math.atan2(f,c),y=Math.round(d*180/Math.PI),y<0&&(y=360-Math.abs(y)),y<=45&&y>=0||y<=360&&y>=315?"left":y>=135&&y<=225?"right":s===!0?y>=35&&y<=135?"up":"down":"vertical"};innerSliderUtils.getSwipeDirection=getSwipeDirection;var canGoNext=function(a){var s=!0;return a.infinite||(a.centerMode&&a.currentSlide>=a.slideCount-1||a.slideCount<=a.slidesToShow||a.currentSlide>=a.slideCount-a.slidesToShow)&&(s=!1),s};innerSliderUtils.canGoNext=canGoNext;var extractObject=function(a,s){var c={};return s.forEach(function(f){return c[f]=a[f]}),c};innerSliderUtils.extractObject=extractObject;var initializedState=function(a){var s=_react$5.default.Children.count(a.children),c=a.listRef,f=Math.ceil(getWidth(c)),d=a.trackRef&&a.trackRef.node,y=Math.ceil(getWidth(d)),_;if(a.vertical)_=f;else{var S=a.centerMode&&parseInt(a.centerPadding)*2;typeof a.centerPadding=="string"&&a.centerPadding.slice(-1)==="%"&&(S*=f/100),_=Math.ceil((f-S)/a.slidesToShow)}var b=c&&getHeight(c.querySelector('[data-index="0"]')),$=b*a.slidesToShow,P=a.currentSlide===void 0?a.initialSlide:a.currentSlide;a.rtl&&a.currentSlide===void 0&&(P=s-1-a.initialSlide);var T=a.lazyLoadedList||[],C=getOnDemandLazySlides(_objectSpread$m(_objectSpread$m({},a),{},{currentSlide:P,lazyLoadedList:T}));T=T.concat(C);var O={slideCount:s,slideWidth:_,listWidth:f,trackWidth:y,currentSlide:P,slideHeight:b,listHeight:$,lazyLoadedList:T};return a.autoplaying===null&&a.autoplay&&(O.autoplaying="playing"),O};innerSliderUtils.initializedState=initializedState;var slideHandler=function(a){var s=a.waitForAnimate,c=a.animating,f=a.fade,d=a.infinite,y=a.index,_=a.slideCount,S=a.lazyLoad,b=a.currentSlide,$=a.centerMode,P=a.slidesToScroll,T=a.slidesToShow,C=a.useCSS,O=a.lazyLoadedList;if(s&&c)return{};var A=y,F,j,L,M={},I={},U=d?y:clamp(y,0,_-1);if(f){if(!d&&(y<0||y>=_))return{};y<0?A=y+_:y>=_&&(A=y-_),S&&O.indexOf(A)<0&&(O=O.concat(A)),M={animating:!0,currentSlide:A,lazyLoadedList:O,targetSlide:A},I={animating:!1,targetSlide:A}}else F=A,A<0?(F=A+_,d?_%P!==0&&(F=_-_%P):F=0):!canGoNext(a)&&A>b?A=F=b:$&&A>=_?(A=d?_:_-1,F=d?0:_-1):A>=_&&(F=A-_,d?_%P!==0&&(F=0):F=_-T),!d&&A+T>=_&&(F=_-T),j=getTrackLeft(_objectSpread$m(_objectSpread$m({},a),{},{slideIndex:A})),L=getTrackLeft(_objectSpread$m(_objectSpread$m({},a),{},{slideIndex:F})),d||(j===L&&(A=F),j=L),S&&(O=O.concat(getOnDemandLazySlides(_objectSpread$m(_objectSpread$m({},a),{},{currentSlide:A})))),C?(M={animating:!0,currentSlide:F,trackStyle:getTrackAnimateCSS(_objectSpread$m(_objectSpread$m({},a),{},{left:j})),lazyLoadedList:O,targetSlide:U},I={animating:!1,currentSlide:F,trackStyle:getTrackCSS(_objectSpread$m(_objectSpread$m({},a),{},{left:L})),swipeLeft:null,targetSlide:U}):M={currentSlide:F,trackStyle:getTrackCSS(_objectSpread$m(_objectSpread$m({},a),{},{left:L})),lazyLoadedList:O,targetSlide:U};return{state:M,nextState:I}};innerSliderUtils.slideHandler=slideHandler;var changeSlide=function(a,s){var c,f,d,y,_,S=a.slidesToScroll,b=a.slidesToShow,$=a.slideCount,P=a.currentSlide,T=a.targetSlide,C=a.lazyLoad,O=a.infinite;if(y=$%S!==0,c=y?0:($-P)%S,s.message==="previous")d=c===0?S:b-c,_=P-d,C&&!O&&(f=P-d,_=f===-1?$-1:f),O||(_=T-S);else if(s.message==="next")d=c===0?S:c,_=P+d,C&&!O&&(_=(P+S)%$+c),O||(_=T+S);else if(s.message==="dots")_=s.index*s.slidesToScroll;else if(s.message==="children"){if(_=s.index,O){var A=siblingDirection(_objectSpread$m(_objectSpread$m({},a),{},{targetSlide:_}));_>s.currentSlide&&A==="left"?_=_-$:_10)return{scrolling:!0};_&&(L.swipeLength=X);var W=(S?-1:1)*(L.curX>L.startX?1:-1);_&&(W=L.curY>L.startY?1:-1);var K=Math.ceil(A/F),ie=getSwipeDirection(s.touchObject,_),ee=L.swipeLength;return j||(b===0&&(ie==="right"||ie==="down")||b+1>=K&&(ie==="left"||ie==="up")||!canGoNext(s)&&(ie==="left"||ie==="up"))&&(ee=L.swipeLength*$,P===!1&&T&&(T(ie),H.edgeDragged=!0)),!C&&M&&(M(ie),H.swiped=!0),d?z=G+ee*(I/U)*W:S?z=G-ee*W:z=G+ee*W,_&&(z=G+ee*W),H=_objectSpread$m(_objectSpread$m({},H),{},{touchObject:L,swipeLeft:z,trackStyle:getTrackCSS(_objectSpread$m(_objectSpread$m({},s),{},{left:z}))}),Math.abs(L.curX-L.startX)10&&(H.swiping=!0,safePreventDefault(a)),H}};innerSliderUtils.swipeMove=swipeMove;var swipeEnd=function(a,s){var c=s.dragging,f=s.swipe,d=s.touchObject,y=s.listWidth,_=s.touchThreshold,S=s.verticalSwiping,b=s.listHeight,$=s.swipeToSlide,P=s.scrolling,T=s.onSwipe,C=s.targetSlide,O=s.currentSlide,A=s.infinite;if(!c)return f&&safePreventDefault(a),{};var F=S?b/_:y/_,j=getSwipeDirection(d,S),L={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(P||!d.swipeLength)return L;if(d.swipeLength>F){safePreventDefault(a),T&&T(j);var M,I,U=A?O:C;switch(j){case"left":case"up":I=U+getSlideCount(s),M=$?checkNavigable(s,I):I,L.currentDirection=0;break;case"right":case"down":I=U-getSlideCount(s),M=$?checkNavigable(s,I):I,L.currentDirection=1;break;default:M=U}L.triggerSlideHandler=M}else{var z=getTrackLeft(s);L.trackStyle=getTrackAnimateCSS(_objectSpread$m(_objectSpread$m({},s),{},{left:z}))}return L};innerSliderUtils.swipeEnd=swipeEnd;var getNavigableIndexes=function(a){for(var s=a.infinite?a.slideCount*2:a.slideCount,c=a.infinite?a.slidesToShow*-1:0,f=a.infinite?a.slidesToShow*-1:0,d=[];cc[c.length-1])s=c[c.length-1];else for(var d in c){if(sa.swipeLeft*-1)return c=S,!1}else if(S.offsetLeft-s+getWidth(S)/2>a.swipeLeft*-1)return c=S,!1;return!0}),!c)return 0;var y=a.rtl===!0?a.slideCount-a.currentSlide:a.currentSlide,_=Math.abs(c.dataset.index-y)||1;return _}else return a.slidesToScroll};innerSliderUtils.getSlideCount=getSlideCount;var checkSpecKeys=function(a,s){return s.reduce(function(c,f){return c&&a.hasOwnProperty(f)},!0)?null:void 0};innerSliderUtils.checkSpecKeys=checkSpecKeys;var getTrackCSS=function(a){checkSpecKeys(a,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var s,c,f=a.slideCount+2*a.slidesToShow;a.vertical?c=f*a.slideHeight:s=getTotalSlides(a)*a.slideWidth;var d={opacity:1,transition:"",WebkitTransition:""};if(a.useTransform){var y=a.vertical?"translate3d(0px, "+a.left+"px, 0px)":"translate3d("+a.left+"px, 0px, 0px)",_=a.vertical?"translate3d(0px, "+a.left+"px, 0px)":"translate3d("+a.left+"px, 0px, 0px)",S=a.vertical?"translateY("+a.left+"px)":"translateX("+a.left+"px)";d=_objectSpread$m(_objectSpread$m({},d),{},{WebkitTransform:y,transform:_,msTransform:S})}else a.vertical?d.top=a.left:d.left=a.left;return a.fade&&(d={opacity:1}),s&&(d.width=s),c&&(d.height=c),window&&!window.addEventListener&&window.attachEvent&&(a.vertical?d.marginTop=a.left+"px":d.marginLeft=a.left+"px"),d};innerSliderUtils.getTrackCSS=getTrackCSS;var getTrackAnimateCSS=function(a){checkSpecKeys(a,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var s=getTrackCSS(a);return a.useTransform?(s.WebkitTransition="-webkit-transform "+a.speed+"ms "+a.cssEase,s.transition="transform "+a.speed+"ms "+a.cssEase):a.vertical?s.transition="top "+a.speed+"ms "+a.cssEase:s.transition="left "+a.speed+"ms "+a.cssEase,s};innerSliderUtils.getTrackAnimateCSS=getTrackAnimateCSS;var getTrackLeft=function(a){if(a.unslick)return 0;checkSpecKeys(a,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var s=a.slideIndex,c=a.trackRef,f=a.infinite,d=a.centerMode,y=a.slideCount,_=a.slidesToShow,S=a.slidesToScroll,b=a.slideWidth,$=a.listWidth,P=a.variableWidth,T=a.slideHeight,C=a.fade,O=a.vertical,A=0,F,j,L=0;if(C||a.slideCount===1)return 0;var M=0;if(f?(M=-getPreClones(a),y%S!==0&&s+S>y&&(M=-(s>y?_-(s-y):y%S)),d&&(M+=parseInt(_/2))):(y%S!==0&&s+S>y&&(M=_-y%S),d&&(M=parseInt(_/2))),A=M*b,L=M*T,O?F=s*T*-1+L:F=s*b*-1+A,P===!0){var I,U=c&&c.node;if(I=s+getPreClones(a),j=U&&U.childNodes[I],F=j?j.offsetLeft*-1:0,d===!0){I=f?s+getPreClones(a):s,j=U&&U.children[I],F=0;for(var z=0;za.currentSlide?a.targetSlide>a.currentSlide+slidesOnRight(a)?"left":"right":a.targetSlide0&&(y+=1),f&&s%2===0&&(y+=1),y}return f?0:s-1};innerSliderUtils.slidesOnRight=slidesOnRight;var slidesOnLeft=function(a){var s=a.slidesToShow,c=a.centerMode,f=a.rtl,d=a.centerPadding;if(c){var y=(s-1)/2+1;return parseInt(d)>0&&(y+=1),!f&&s%2===0&&(y+=1),y}return f?s-1:0};innerSliderUtils.slidesOnLeft=slidesOnLeft;var canUseDOM=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)};innerSliderUtils.canUseDOM=canUseDOM;var track={};function _typeof$i(o){"@babel/helpers - typeof";return _typeof$i=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},_typeof$i(o)}Object.defineProperty(track,"__esModule",{value:!0});track.Track=void 0;var _react$4=_interopRequireDefault$9(reactExports),_classnames$3=_interopRequireDefault$9(classnamesExports),_innerSliderUtils$3=innerSliderUtils;function _interopRequireDefault$9(o){return o&&o.__esModule?o:{default:o}}function _extends$e(){return _extends$e=Object.assign||function(o){for(var a=1;a=a.slideCount,a.centerMode?(d=Math.floor(a.slidesToShow/2),c=(y-a.currentSlide)%a.slideCount===0,y>a.currentSlide-d-1&&y<=a.currentSlide+d&&(s=!0)):s=a.currentSlide<=y&&y=a.slideCount?_=a.targetSlide-a.slideCount:_=a.targetSlide;var S=y===_;return{"slick-slide":!0,"slick-active":s,"slick-center":c,"slick-cloned":f,"slick-current":S}},getSlideStyle=function(a){var s={};return(a.variableWidth===void 0||a.variableWidth===!1)&&(s.width=a.slideWidth),a.fade&&(s.position="relative",a.vertical?s.top=-a.index*parseInt(a.slideHeight):s.left=-a.index*parseInt(a.slideWidth),s.opacity=a.currentSlide===a.index?1:0,a.useCSS&&(s.transition="opacity "+a.speed+"ms "+a.cssEase+", visibility "+a.speed+"ms "+a.cssEase)),s},getKey$1=function(a,s){return a.key||s},renderSlides=function(a){var s,c=[],f=[],d=[],y=_react$4.default.Children.count(a.children),_=(0,_innerSliderUtils$3.lazyStartIndex)(a),S=(0,_innerSliderUtils$3.lazyEndIndex)(a);return _react$4.default.Children.forEach(a.children,function(b,$){var P,T={message:"children",index:$,slidesToScroll:a.slidesToScroll,currentSlide:a.currentSlide};!a.lazyLoad||a.lazyLoad&&a.lazyLoadedList.indexOf($)>=0?P=b:P=_react$4.default.createElement("div",null);var C=getSlideStyle(_objectSpread$l(_objectSpread$l({},a),{},{index:$})),O=P.props.className||"",A=getSlideClasses(_objectSpread$l(_objectSpread$l({},a),{},{index:$}));if(c.push(_react$4.default.cloneElement(P,{key:"original"+getKey$1(P,$),"data-index":$,className:(0,_classnames$3.default)(A,O),tabIndex:"-1","aria-hidden":!A["slick-active"],style:_objectSpread$l(_objectSpread$l({outline:"none"},P.props.style||{}),C),onClick:function(L){P.props&&P.props.onClick&&P.props.onClick(L),a.focusOnSelect&&a.focusOnSelect(T)}})),a.infinite&&a.fade===!1){var F=y-$;F<=(0,_innerSliderUtils$3.getPreClones)(a)&&y!==a.slidesToShow&&(s=-F,s>=_&&(P=b),A=getSlideClasses(_objectSpread$l(_objectSpread$l({},a),{},{index:s})),f.push(_react$4.default.cloneElement(P,{key:"precloned"+getKey$1(P,s),"data-index":s,tabIndex:"-1",className:(0,_classnames$3.default)(A,O),"aria-hidden":!A["slick-active"],style:_objectSpread$l(_objectSpread$l({},P.props.style||{}),C),onClick:function(L){P.props&&P.props.onClick&&P.props.onClick(L),a.focusOnSelect&&a.focusOnSelect(T)}}))),y!==a.slidesToShow&&(s=y+$,s=I&&T<=L:T===I}),z={message:"dots",index:F,slidesToScroll:b,currentSlide:T},H=this.clickHandler.bind(this,z);A=A.concat(_react$3.default.createElement("li",{key:F,className:U},_react$3.default.cloneElement(this.props.customPaging(F),{onClick:H})))}return _react$3.default.cloneElement(this.props.appendDots(A),_objectSpread$k({className:this.props.dotsClass},O))}}]),s}(_react$3.default.PureComponent);dots.Dots=Dots;var arrows={};function _typeof$g(o){"@babel/helpers - typeof";return _typeof$g=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},_typeof$g(o)}Object.defineProperty(arrows,"__esModule",{value:!0});arrows.PrevArrow=arrows.NextArrow=void 0;var _react$2=_interopRequireDefault$7(reactExports),_classnames$1=_interopRequireDefault$7(classnamesExports),_innerSliderUtils$1=innerSliderUtils;function _interopRequireDefault$7(o){return o&&o.__esModule?o:{default:o}}function _extends$d(){return _extends$d=Object.assign||function(o){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$8(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function ownKeys$j(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$i(o){for(var a=1;a0&&(f.setState(function(S){return{lazyLoadedList:S.lazyLoadedList.concat(y)}}),f.props.onLazyLoad&&f.props.onLazyLoad(y))}var _=_objectSpread$i({listRef:f.list,trackRef:f.track},f.props);f.updateState(_,!0,function(){f.adaptHeight(),f.props.autoplay&&f.autoPlay("update")}),f.props.lazyLoad==="progressive"&&(f.lazyLoadTimer=setInterval(f.progressiveLazyLoad,1e3)),f.ro=new _resizeObserverPolyfill.default(function(){f.state.animating?(f.onWindowResized(!1),f.callbackTimers.push(setTimeout(function(){return f.onWindowResized()},f.props.speed))):f.onWindowResized()}),f.ro.observe(f.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(S){S.onfocus=f.props.pauseOnFocus?f.onSlideFocus:null,S.onblur=f.props.pauseOnFocus?f.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",f.onWindowResized):window.attachEvent("onresize",f.onWindowResized)}),_defineProperty$k(_assertThisInitialized$1(f),"componentWillUnmount",function(){f.animationEndCallback&&clearTimeout(f.animationEndCallback),f.lazyLoadTimer&&clearInterval(f.lazyLoadTimer),f.callbackTimers.length&&(f.callbackTimers.forEach(function(y){return clearTimeout(y)}),f.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",f.onWindowResized):window.detachEvent("onresize",f.onWindowResized),f.autoplayTimer&&clearInterval(f.autoplayTimer),f.ro.disconnect()}),_defineProperty$k(_assertThisInitialized$1(f),"componentDidUpdate",function(y){if(f.checkImagesLoad(),f.props.onReInit&&f.props.onReInit(),f.props.lazyLoad){var _=(0,_innerSliderUtils.getOnDemandLazySlides)(_objectSpread$i(_objectSpread$i({},f.props),f.state));_.length>0&&(f.setState(function($){return{lazyLoadedList:$.lazyLoadedList.concat(_)}}),f.props.onLazyLoad&&f.props.onLazyLoad(_))}f.adaptHeight();var S=_objectSpread$i(_objectSpread$i({listRef:f.list,trackRef:f.track},f.props),f.state),b=f.didPropsChange(y);b&&f.updateState(S,b,function(){f.state.currentSlide>=_react$1.default.Children.count(f.props.children)&&f.changeSlide({message:"index",index:_react$1.default.Children.count(f.props.children)-f.props.slidesToShow,currentSlide:f.state.currentSlide}),f.props.autoplay?f.autoPlay("update"):f.pause("paused")})}),_defineProperty$k(_assertThisInitialized$1(f),"onWindowResized",function(y){f.debouncedResize&&f.debouncedResize.cancel(),f.debouncedResize=(0,_lodash.default)(function(){return f.resizeWindow(y)},50),f.debouncedResize()}),_defineProperty$k(_assertThisInitialized$1(f),"resizeWindow",function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,_=!!(f.track&&f.track.node);if(_){var S=_objectSpread$i(_objectSpread$i({listRef:f.list,trackRef:f.track},f.props),f.state);f.updateState(S,y,function(){f.props.autoplay?f.autoPlay("update"):f.pause("paused")}),f.setState({animating:!1}),clearTimeout(f.animationEndCallback),delete f.animationEndCallback}}),_defineProperty$k(_assertThisInitialized$1(f),"updateState",function(y,_,S){var b=(0,_innerSliderUtils.initializedState)(y);y=_objectSpread$i(_objectSpread$i(_objectSpread$i({},y),b),{},{slideIndex:b.currentSlide});var $=(0,_innerSliderUtils.getTrackLeft)(y);y=_objectSpread$i(_objectSpread$i({},y),{},{left:$});var P=(0,_innerSliderUtils.getTrackCSS)(y);(_||_react$1.default.Children.count(f.props.children)!==_react$1.default.Children.count(y.children))&&(b.trackStyle=P),f.setState(b,S)}),_defineProperty$k(_assertThisInitialized$1(f),"ssrInit",function(){if(f.props.variableWidth){var y=0,_=0,S=[],b=(0,_innerSliderUtils.getPreClones)(_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{slideCount:f.props.children.length})),$=(0,_innerSliderUtils.getPostClones)(_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{slideCount:f.props.children.length}));f.props.children.forEach(function(H){S.push(H.props.style.width),y+=H.props.style.width});for(var P=0;P=_&&f.onWindowResized()};if(!b.onclick)b.onclick=function(){return b.parentNode.focus()};else{var P=b.onclick;b.onclick=function(){P(),b.parentNode.focus()}}b.onload||(f.props.lazyLoad?b.onload=function(){f.adaptHeight(),f.callbackTimers.push(setTimeout(f.onWindowResized,f.props.speed))}:(b.onload=$,b.onerror=function(){$(),f.props.onLazyLoadError&&f.props.onLazyLoadError()}))})}),_defineProperty$k(_assertThisInitialized$1(f),"progressiveLazyLoad",function(){for(var y=[],_=_objectSpread$i(_objectSpread$i({},f.props),f.state),S=f.state.currentSlide;S=-(0,_innerSliderUtils.getPreClones)(_);b--)if(f.state.lazyLoadedList.indexOf(b)<0){y.push(b);break}y.length>0?(f.setState(function($){return{lazyLoadedList:$.lazyLoadedList.concat(y)}}),f.props.onLazyLoad&&f.props.onLazyLoad(y)):f.lazyLoadTimer&&(clearInterval(f.lazyLoadTimer),delete f.lazyLoadTimer)}),_defineProperty$k(_assertThisInitialized$1(f),"slideHandler",function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=f.props,b=S.asNavFor,$=S.beforeChange,P=S.onLazyLoad,T=S.speed,C=S.afterChange,O=f.state.currentSlide,A=(0,_innerSliderUtils.slideHandler)(_objectSpread$i(_objectSpread$i(_objectSpread$i({index:y},f.props),f.state),{},{trackRef:f.track,useCSS:f.props.useCSS&&!_})),F=A.state,j=A.nextState;if(F){$&&$(O,F.currentSlide);var L=F.lazyLoadedList.filter(function(M){return f.state.lazyLoadedList.indexOf(M)<0});P&&L.length>0&&P(L),!f.props.waitForAnimate&&f.animationEndCallback&&(clearTimeout(f.animationEndCallback),C&&C(O),delete f.animationEndCallback),f.setState(F,function(){b&&f.asNavForIndex!==y&&(f.asNavForIndex=y,b.innerSlider.slideHandler(y)),j&&(f.animationEndCallback=setTimeout(function(){var M=j.animating,I=_objectWithoutProperties$6(j,["animating"]);f.setState(I,function(){f.callbackTimers.push(setTimeout(function(){return f.setState({animating:M})},10)),C&&C(F.currentSlide),delete f.animationEndCallback})},T))})}}),_defineProperty$k(_assertThisInitialized$1(f),"changeSlide",function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=_objectSpread$i(_objectSpread$i({},f.props),f.state),b=(0,_innerSliderUtils.changeSlide)(S,y);if(!(b!==0&&!b)&&(_===!0?f.slideHandler(b,_):f.slideHandler(b),f.props.autoplay&&f.autoPlay("update"),f.props.focusOnSelect)){var $=f.list.querySelectorAll(".slick-current");$[0]&&$[0].focus()}}),_defineProperty$k(_assertThisInitialized$1(f),"clickHandler",function(y){f.clickable===!1&&(y.stopPropagation(),y.preventDefault()),f.clickable=!0}),_defineProperty$k(_assertThisInitialized$1(f),"keyHandler",function(y){var _=(0,_innerSliderUtils.keyHandler)(y,f.props.accessibility,f.props.rtl);_!==""&&f.changeSlide({message:_})}),_defineProperty$k(_assertThisInitialized$1(f),"selectHandler",function(y){f.changeSlide(y)}),_defineProperty$k(_assertThisInitialized$1(f),"disableBodyScroll",function(){var y=function(S){S=S||window.event,S.preventDefault&&S.preventDefault(),S.returnValue=!1};window.ontouchmove=y}),_defineProperty$k(_assertThisInitialized$1(f),"enableBodyScroll",function(){window.ontouchmove=null}),_defineProperty$k(_assertThisInitialized$1(f),"swipeStart",function(y){f.props.verticalSwiping&&f.disableBodyScroll();var _=(0,_innerSliderUtils.swipeStart)(y,f.props.swipe,f.props.draggable);_!==""&&f.setState(_)}),_defineProperty$k(_assertThisInitialized$1(f),"swipeMove",function(y){var _=(0,_innerSliderUtils.swipeMove)(y,_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{trackRef:f.track,listRef:f.list,slideIndex:f.state.currentSlide}));_&&(_.swiping&&(f.clickable=!1),f.setState(_))}),_defineProperty$k(_assertThisInitialized$1(f),"swipeEnd",function(y){var _=(0,_innerSliderUtils.swipeEnd)(y,_objectSpread$i(_objectSpread$i(_objectSpread$i({},f.props),f.state),{},{trackRef:f.track,listRef:f.list,slideIndex:f.state.currentSlide}));if(_){var S=_.triggerSlideHandler;delete _.triggerSlideHandler,f.setState(_),S!==void 0&&(f.slideHandler(S),f.props.verticalSwiping&&f.enableBodyScroll())}}),_defineProperty$k(_assertThisInitialized$1(f),"touchEnd",function(y){f.swipeEnd(y),f.clickable=!0}),_defineProperty$k(_assertThisInitialized$1(f),"slickPrev",function(){f.callbackTimers.push(setTimeout(function(){return f.changeSlide({message:"previous"})},0))}),_defineProperty$k(_assertThisInitialized$1(f),"slickNext",function(){f.callbackTimers.push(setTimeout(function(){return f.changeSlide({message:"next"})},0))}),_defineProperty$k(_assertThisInitialized$1(f),"slickGoTo",function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(y=Number(y),isNaN(y))return"";f.callbackTimers.push(setTimeout(function(){return f.changeSlide({message:"index",index:y,currentSlide:f.state.currentSlide},_)},0))}),_defineProperty$k(_assertThisInitialized$1(f),"play",function(){var y;if(f.props.rtl)y=f.state.currentSlide-f.props.slidesToScroll;else if((0,_innerSliderUtils.canGoNext)(_objectSpread$i(_objectSpread$i({},f.props),f.state)))y=f.state.currentSlide+f.props.slidesToScroll;else return!1;f.slideHandler(y)}),_defineProperty$k(_assertThisInitialized$1(f),"autoPlay",function(y){f.autoplayTimer&&clearInterval(f.autoplayTimer);var _=f.state.autoplaying;if(y==="update"){if(_==="hovered"||_==="focused"||_==="paused")return}else if(y==="leave"){if(_==="paused"||_==="focused")return}else if(y==="blur"&&(_==="paused"||_==="hovered"))return;f.autoplayTimer=setInterval(f.play,f.props.autoplaySpeed+50),f.setState({autoplaying:"playing"})}),_defineProperty$k(_assertThisInitialized$1(f),"pause",function(y){f.autoplayTimer&&(clearInterval(f.autoplayTimer),f.autoplayTimer=null);var _=f.state.autoplaying;y==="paused"?f.setState({autoplaying:"paused"}):y==="focused"?(_==="hovered"||_==="playing")&&f.setState({autoplaying:"focused"}):_==="playing"&&f.setState({autoplaying:"hovered"})}),_defineProperty$k(_assertThisInitialized$1(f),"onDotsOver",function(){return f.props.autoplay&&f.pause("hovered")}),_defineProperty$k(_assertThisInitialized$1(f),"onDotsLeave",function(){return f.props.autoplay&&f.state.autoplaying==="hovered"&&f.autoPlay("leave")}),_defineProperty$k(_assertThisInitialized$1(f),"onTrackOver",function(){return f.props.autoplay&&f.pause("hovered")}),_defineProperty$k(_assertThisInitialized$1(f),"onTrackLeave",function(){return f.props.autoplay&&f.state.autoplaying==="hovered"&&f.autoPlay("leave")}),_defineProperty$k(_assertThisInitialized$1(f),"onSlideFocus",function(){return f.props.autoplay&&f.pause("focused")}),_defineProperty$k(_assertThisInitialized$1(f),"onSlideBlur",function(){return f.props.autoplay&&f.state.autoplaying==="focused"&&f.autoPlay("blur")}),_defineProperty$k(_assertThisInitialized$1(f),"render",function(){var y=(0,_classnames.default)("slick-slider",f.props.className,{"slick-vertical":f.props.vertical,"slick-initialized":!0}),_=_objectSpread$i(_objectSpread$i({},f.props),f.state),S=(0,_innerSliderUtils.extractObject)(_,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),b=f.props.pauseOnHover;S=_objectSpread$i(_objectSpread$i({},S),{},{onMouseEnter:b?f.onTrackOver:null,onMouseLeave:b?f.onTrackLeave:null,onMouseOver:b?f.onTrackOver:null,focusOnSelect:f.props.focusOnSelect&&f.clickable?f.selectHandler:null});var $;if(f.props.dots===!0&&f.state.slideCount>=f.props.slidesToShow){var P=(0,_innerSliderUtils.extractObject)(_,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),T=f.props.pauseOnDotsHover;P=_objectSpread$i(_objectSpread$i({},P),{},{clickHandler:f.changeSlide,onMouseEnter:T?f.onDotsLeave:null,onMouseOver:T?f.onDotsOver:null,onMouseLeave:T?f.onDotsLeave:null}),$=_react$1.default.createElement(_dots.Dots,P)}var C,O,A=(0,_innerSliderUtils.extractObject)(_,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);A.clickHandler=f.changeSlide,f.props.arrows&&(C=_react$1.default.createElement(_arrows.PrevArrow,A),O=_react$1.default.createElement(_arrows.NextArrow,A));var F=null;f.props.vertical&&(F={height:f.state.listHeight});var j=null;f.props.vertical===!1?f.props.centerMode===!0&&(j={padding:"0px "+f.props.centerPadding}):f.props.centerMode===!0&&(j={padding:f.props.centerPadding+" 0px"});var L=_objectSpread$i(_objectSpread$i({},F),j),M=f.props.touchMove,I={className:"slick-list",style:L,onClick:f.clickHandler,onMouseDown:M?f.swipeStart:null,onMouseMove:f.state.dragging&&M?f.swipeMove:null,onMouseUp:M?f.swipeEnd:null,onMouseLeave:f.state.dragging&&M?f.swipeEnd:null,onTouchStart:M?f.swipeStart:null,onTouchMove:f.state.dragging&&M?f.swipeMove:null,onTouchEnd:M?f.touchEnd:null,onTouchCancel:f.state.dragging&&M?f.swipeEnd:null,onKeyDown:f.props.accessibility?f.keyHandler:null},U={className:y,dir:"ltr",style:f.props.style};return f.props.unslick&&(I={className:"slick-list"},U={className:y}),_react$1.default.createElement("div",U,f.props.unslick?"":C,_react$1.default.createElement("div",_extends$c({ref:f.listRefHandler},I),_react$1.default.createElement(_track.Track,_extends$c({ref:f.trackRefHandler},S),f.props.children)),f.props.unslick?"":O,f.props.unslick?"":$)}),f.list=null,f.track=null,f.state=_objectSpread$i(_objectSpread$i({},_initialState.default),{},{currentSlide:f.props.initialSlide,slideCount:_react$1.default.Children.count(f.props.children)}),f.callbackTimers=[],f.clickable=!0,f.debouncedResize=null;var d=f.ssrInit();return f.state=_objectSpread$i(_objectSpread$i({},f.state),d),f}return _createClass$1(s,[{key:"didPropsChange",value:function(f){for(var d=!1,y=0,_=Object.keys(this.props);y<_.length;y++){var S=_[y];if(!f.hasOwnProperty(S)){d=!0;break}if(!(_typeof$f(f[S])==="object"||typeof f[S]=="function")&&f[S]!==this.props[S]){d=!0;break}}return d||_react$1.default.Children.count(this.props.children)!==_react$1.default.Children.count(f.children)}}]),s}(_react$1.default.Component);innerSlider.InnerSlider=InnerSlider;var defaultProps$1={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=s(reactExports);function s(d){return d&&d.__esModule?d:{default:d}}var c={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(y){return a.default.createElement("ul",{style:{display:"block"}},y)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(y){return a.default.createElement("button",null,y+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},f=c;o.default=f})(defaultProps$1);var QueryHandler_1,hasRequiredQueryHandler;function requireQueryHandler(){if(hasRequiredQueryHandler)return QueryHandler_1;hasRequiredQueryHandler=1;function o(a){this.options=a,!a.deferSetup&&this.setup()}return o.prototype={constructor:o,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a){return this.options===a||this.options.match===a}},QueryHandler_1=o,QueryHandler_1}var Util$1,hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return Util$1;hasRequiredUtil=1;function o(c,f){var d=0,y=c.length,_;for(d;d1&&arguments[1]!==void 0?arguments[1]:!1;return ie.innerSlider.slickGoTo(ee,de)}),U(L(ie),"slickPause",function(){return ie.innerSlider.pause("paused")}),U(L(ie),"slickPlay",function(){return ie.innerSlider.autoPlay("play")}),ie.state={breakpoint:null},ie._responsiveMediaHandlers=[],ie}return C(W,[{key:"media",value:function(ie,ee){z.register(ie,ee),this._responsiveMediaHandlers.push({query:ie,handler:ee})}},{key:"componentDidMount",value:function(){var ie=this;if(this.props.responsive){var ee=this.props.responsive.map(function(Z){return Z.breakpoint});ee.sort(function(Z,Q){return Z-Q}),ee.forEach(function(Z,Q){var J;Q===0?J=(0,f.default)({minWidth:0,maxWidth:Z}):J=(0,f.default)({minWidth:ee[Q-1]+1,maxWidth:Z}),(0,y.canUseDOM)()&&ie.media(J,function(){ie.setState({breakpoint:Z})})});var de=(0,f.default)({minWidth:ee.slice(-1)[0]});(0,y.canUseDOM)()&&this.media(de,function(){ie.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(ie){z.unregister(ie.query,ie.handler)})}},{key:"render",value:function(){var ie=this,ee,de;this.state.breakpoint?(de=this.props.responsive.filter(function(pe){return pe.breakpoint===ie.state.breakpoint}),ee=de[0].settings==="unslick"?"unslick":$($($({},d.default),this.props),de[0].settings)):ee=$($({},d.default),this.props),ee.centerMode&&(ee.slidesToScroll>1,ee.slidesToScroll=1),ee.fade&&(ee.slidesToShow>1,ee.slidesToScroll>1,ee.slidesToShow=1,ee.slidesToScroll=1);var Z=s.default.Children.toArray(this.props.children);Z=Z.filter(function(pe){return typeof pe=="string"?!!pe.trim():!!pe}),ee.variableWidth&&(ee.rows>1||ee.slidesPerRow>1)&&(ee.variableWidth=!1);for(var Q=[],J=null,ne=0;ne=Z.length));ce+=1)ae.push(s.default.cloneElement(Z[ce],{key:100*ne+10*le+ce,tabIndex:-1,style:{width:"".concat(100/ee.slidesPerRow,"%"),display:"inline-block"}}));fe.push(s.default.createElement("div",{key:10*ne+le},ae))}ee.variableWidth?Q.push(s.default.createElement("div",{key:ne,style:{width:J}},fe)):Q.push(s.default.createElement("div",{key:ne},fe))}if(ee==="unslick"){var ge="regular slider "+(this.props.className||"");return s.default.createElement("div",{className:ge},Z)}else Q.length<=ee.slidesToShow&&(ee.unslick=!0);return s.default.createElement(c.InnerSlider,S({style:this.props.style,ref:this.innerSliderRefHandler},ee),Q)}}]),W}(s.default.Component);o.default=H})(slider);(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var a=s(slider);function s(f){return f&&f.__esModule?f:{default:f}}var c=a.default;o.default=c})(lib$3);const Slider=getDefaultExportFromCjs(lib$3);var lib$2={exports:{}},_FullInternals={},_CoreInternals={},Global={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o._registerNode=o.Konva=o.glob=void 0;const a=Math.PI/180;function s(){return typeof window!="undefined"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}o.glob=typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"?self:{},o.Konva={_global:o.glob,version:"9.3.3",isBrowser:s(),isUnminified:/param/.test(function(f){}.toString()),dblClickWindow:400,getAngle(f){return o.Konva.angleDeg?f*a:f},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window!="undefined"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return o.Konva.DD.isDragging},isDragReady(){return!!o.Konva.DD.node},releaseCanvasOnDestroy:!0,document:o.glob.document,_injectGlobal(f){o.glob.Konva=f}};const c=f=>{o.Konva[f.prototype.getClassName()]=f};o._registerNode=c,o.Konva._injectGlobal(o.Konva)})(Global);var Util={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Util=o.Transform=void 0;const a=Global;class s{constructor(I=[1,0,0,1,0,0]){this.dirty=!1,this.m=I&&I.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new s(this.m)}copyInto(I){I.m[0]=this.m[0],I.m[1]=this.m[1],I.m[2]=this.m[2],I.m[3]=this.m[3],I.m[4]=this.m[4],I.m[5]=this.m[5]}point(I){var U=this.m;return{x:U[0]*I.x+U[2]*I.y+U[4],y:U[1]*I.x+U[3]*I.y+U[5]}}translate(I,U){return this.m[4]+=this.m[0]*I+this.m[2]*U,this.m[5]+=this.m[1]*I+this.m[3]*U,this}scale(I,U){return this.m[0]*=I,this.m[1]*=I,this.m[2]*=U,this.m[3]*=U,this}rotate(I){var U=Math.cos(I),z=Math.sin(I),H=this.m[0]*U+this.m[2]*z,G=this.m[1]*U+this.m[3]*z,X=this.m[0]*-z+this.m[2]*U,W=this.m[1]*-z+this.m[3]*U;return this.m[0]=H,this.m[1]=G,this.m[2]=X,this.m[3]=W,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(I,U){var z=this.m[0]+this.m[2]*U,H=this.m[1]+this.m[3]*U,G=this.m[2]+this.m[0]*I,X=this.m[3]+this.m[1]*I;return this.m[0]=z,this.m[1]=H,this.m[2]=G,this.m[3]=X,this}multiply(I){var U=this.m[0]*I.m[0]+this.m[2]*I.m[1],z=this.m[1]*I.m[0]+this.m[3]*I.m[1],H=this.m[0]*I.m[2]+this.m[2]*I.m[3],G=this.m[1]*I.m[2]+this.m[3]*I.m[3],X=this.m[0]*I.m[4]+this.m[2]*I.m[5]+this.m[4],W=this.m[1]*I.m[4]+this.m[3]*I.m[5]+this.m[5];return this.m[0]=U,this.m[1]=z,this.m[2]=H,this.m[3]=G,this.m[4]=X,this.m[5]=W,this}invert(){var I=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),U=this.m[3]*I,z=-this.m[1]*I,H=-this.m[2]*I,G=this.m[0]*I,X=I*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),W=I*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=U,this.m[1]=z,this.m[2]=H,this.m[3]=G,this.m[4]=X,this.m[5]=W,this}getMatrix(){return this.m}decompose(){var I=this.m[0],U=this.m[1],z=this.m[2],H=this.m[3],G=this.m[4],X=this.m[5],W=I*H-U*z;let K={x:G,y:X,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(I!=0||U!=0){var ie=Math.sqrt(I*I+U*U);K.rotation=U>0?Math.acos(I/ie):-Math.acos(I/ie),K.scaleX=ie,K.scaleY=W/ie,K.skewX=(I*z+U*H)/W,K.skewY=0}else if(z!=0||H!=0){var ee=Math.sqrt(z*z+H*H);K.rotation=Math.PI/2-(H>0?Math.acos(-z/ee):-Math.acos(z/ee)),K.scaleX=W/ee,K.scaleY=ee,K.skewX=0,K.skewY=(I*z+U*H)/W}return K.rotation=o.Util._getRotation(K.rotation),K}}o.Transform=s;var c="[object Array]",f="[object Number]",d="[object String]",y="[object Boolean]",_=Math.PI/180,S=180/Math.PI,b="#",$="",P="0",T="Konva warning: ",C="Konva error: ",O="rgb(",A={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},F=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,j=[];const L=typeof requestAnimationFrame!="undefined"&&requestAnimationFrame||function(M){setTimeout(M,60)};o.Util={_isElement(M){return!!(M&&M.nodeType==1)},_isFunction(M){return!!(M&&M.constructor&&M.call&&M.apply)},_isPlainObject(M){return!!M&&M.constructor===Object},_isArray(M){return Object.prototype.toString.call(M)===c},_isNumber(M){return Object.prototype.toString.call(M)===f&&!isNaN(M)&&isFinite(M)},_isString(M){return Object.prototype.toString.call(M)===d},_isBoolean(M){return Object.prototype.toString.call(M)===y},isObject(M){return M instanceof Object},isValidSelector(M){if(typeof M!="string")return!1;var I=M[0];return I==="#"||I==="."||I===I.toUpperCase()},_sign(M){return M===0||M>0?1:-1},requestAnimFrame(M){j.push(M),j.length===1&&L(function(){const I=j;j=[],I.forEach(function(U){U()})})},createCanvasElement(){var M=document.createElement("canvas");try{M.style=M.style||{}}catch(I){}return M},createImageElement(){return document.createElement("img")},_isInDocument(M){for(;M=M.parentNode;)if(M==document)return!0;return!1},_urlToImage(M,I){var U=o.Util.createImageElement();U.onload=function(){I(U)},U.src=M},_rgbToHex(M,I,U){return((1<<24)+(M<<16)+(I<<8)+U).toString(16).slice(1)},_hexToRgb(M){M=M.replace(b,$);var I=parseInt(M,16);return{r:I>>16&255,g:I>>8&255,b:I&255}},getRandomColor(){for(var M=(Math.random()*16777215<<0).toString(16);M.length<6;)M=P+M;return b+M},getRGB(M){var I;return M in A?(I=A[M],{r:I[0],g:I[1],b:I[2]}):M[0]===b?this._hexToRgb(M.substring(1)):M.substr(0,4)===O?(I=F.exec(M.replace(/ /g,"")),{r:parseInt(I[1],10),g:parseInt(I[2],10),b:parseInt(I[3],10)}):{r:0,g:0,b:0}},colorToRGBA(M){return M=M||"black",o.Util._namedColorToRBA(M)||o.Util._hex3ColorToRGBA(M)||o.Util._hex4ColorToRGBA(M)||o.Util._hex6ColorToRGBA(M)||o.Util._hex8ColorToRGBA(M)||o.Util._rgbColorToRGBA(M)||o.Util._rgbaColorToRGBA(M)||o.Util._hslColorToRGBA(M)},_namedColorToRBA(M){var I=A[M.toLowerCase()];return I?{r:I[0],g:I[1],b:I[2],a:1}:null},_rgbColorToRGBA(M){if(M.indexOf("rgb(")===0){M=M.match(/rgb\(([^)]+)\)/)[1];var I=M.split(/ *, */).map(Number);return{r:I[0],g:I[1],b:I[2],a:1}}},_rgbaColorToRGBA(M){if(M.indexOf("rgba(")===0){M=M.match(/rgba\(([^)]+)\)/)[1];var I=M.split(/ *, */).map((U,z)=>U.slice(-1)==="%"?z===3?parseInt(U)/100:parseInt(U)/100*255:Number(U));return{r:I[0],g:I[1],b:I[2],a:I[3]}}},_hex8ColorToRGBA(M){if(M[0]==="#"&&M.length===9)return{r:parseInt(M.slice(1,3),16),g:parseInt(M.slice(3,5),16),b:parseInt(M.slice(5,7),16),a:parseInt(M.slice(7,9),16)/255}},_hex6ColorToRGBA(M){if(M[0]==="#"&&M.length===7)return{r:parseInt(M.slice(1,3),16),g:parseInt(M.slice(3,5),16),b:parseInt(M.slice(5,7),16),a:1}},_hex4ColorToRGBA(M){if(M[0]==="#"&&M.length===5)return{r:parseInt(M[1]+M[1],16),g:parseInt(M[2]+M[2],16),b:parseInt(M[3]+M[3],16),a:parseInt(M[4]+M[4],16)/255}},_hex3ColorToRGBA(M){if(M[0]==="#"&&M.length===4)return{r:parseInt(M[1]+M[1],16),g:parseInt(M[2]+M[2],16),b:parseInt(M[3]+M[3],16),a:1}},_hslColorToRGBA(M){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(M)){const[I,...U]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(M),z=Number(U[0])/360,H=Number(U[1])/100,G=Number(U[2])/100;let X,W,K;if(H===0)return K=G*255,{r:Math.round(K),g:Math.round(K),b:Math.round(K),a:1};G<.5?X=G*(1+H):X=G+H-G*H;const ie=2*G-X,ee=[0,0,0];for(let de=0;de<3;de++)W=z+1/3*-(de-1),W<0&&W++,W>1&&W--,6*W<1?K=ie+(X-ie)*6*W:2*W<1?K=X:3*W<2?K=ie+(X-ie)*(2/3-W)*6:K=ie,ee[de]=K*255;return{r:Math.round(ee[0]),g:Math.round(ee[1]),b:Math.round(ee[2]),a:1}}},haveIntersection(M,I){return!(I.x>M.x+M.width||I.x+I.widthM.y+M.height||I.y+I.height1?(X=U,W=z,K=(U-H)*(U-H)+(z-G)*(z-G)):(X=M+ee*(U-M),W=I+ee*(z-I),K=(X-H)*(X-H)+(W-G)*(W-G))}return[X,W,K]},_getProjectionToLine(M,I,U){var z=o.Util.cloneObject(M),H=Number.MAX_VALUE;return I.forEach(function(G,X){if(!(!U&&X===I.length-1)){var W=I[(X+1)%I.length],K=o.Util._getProjectionToSegment(G.x,G.y,W.x,W.y,M.x,M.y),ie=K[0],ee=K[1],de=K[2];deI.length){var X=I;I=M,M=X}for(z=0;z{I.width=0,I.height=0})},drawRoundedRectPath(M,I,U,z){let H=0,G=0,X=0,W=0;typeof z=="number"?H=G=X=W=Math.min(z,I/2,U/2):(H=Math.min(z[0]||0,I/2,U/2),G=Math.min(z[1]||0,I/2,U/2),W=Math.min(z[2]||0,I/2,U/2),X=Math.min(z[3]||0,I/2,U/2)),M.moveTo(H,0),M.lineTo(I-G,0),M.arc(I-G,G,G,Math.PI*3/2,0,!1),M.lineTo(I,U-W),M.arc(I-W,U-W,W,0,Math.PI/2,!1),M.lineTo(X,U),M.arc(X,U-X,X,Math.PI/2,Math.PI,!1),M.lineTo(0,H),M.arc(H,H,H,Math.PI,Math.PI*3/2,!1)}}})(Util);var Node$1={},Factory={},Validators={};Object.defineProperty(Validators,"__esModule",{value:!0});Validators.getComponentValidator=Validators.getBooleanValidator=Validators.getNumberArrayValidator=Validators.getFunctionValidator=Validators.getStringOrGradientValidator=Validators.getStringValidator=Validators.getNumberOrAutoValidator=Validators.getNumberOrArrayOfNumbersValidator=Validators.getNumberValidator=Validators.alphaComponent=Validators.RGBComponent=void 0;const Global_1$p=Global,Util_1$f=Util;function _formatValue(o){return Util_1$f.Util._isString(o)?'"'+o+'"':Object.prototype.toString.call(o)==="[object Number]"||Util_1$f.Util._isBoolean(o)?o:Object.prototype.toString.call(o)}function RGBComponent(o){return o>255?255:o<0?0:Math.round(o)}Validators.RGBComponent=RGBComponent;function alphaComponent(o){return o>1?1:o<1e-4?1e-4:o}Validators.alphaComponent=alphaComponent;function getNumberValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){return Util_1$f.Util._isNumber(o)||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a number.'),o}}Validators.getNumberValidator=getNumberValidator;function getNumberOrArrayOfNumbersValidator(o){if(Global_1$p.Konva.isUnminified)return function(a,s){let c=Util_1$f.Util._isNumber(a),f=Util_1$f.Util._isArray(a)&&a.length==o;return!c&&!f&&Util_1$f.Util.warn(_formatValue(a)+' is a not valid value for "'+s+'" attribute. The value should be a number or Array('+o+")"),a}}Validators.getNumberOrArrayOfNumbersValidator=getNumberOrArrayOfNumbersValidator;function getNumberOrAutoValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){var s=Util_1$f.Util._isNumber(o),c=o==="auto";return s||c||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a number or "auto".'),o}}Validators.getNumberOrAutoValidator=getNumberOrAutoValidator;function getStringValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){return Util_1$f.Util._isString(o)||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a string.'),o}}Validators.getStringValidator=getStringValidator;function getStringOrGradientValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){const s=Util_1$f.Util._isString(o),c=Object.prototype.toString.call(o)==="[object CanvasGradient]"||o&&o.addColorStop;return s||c||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a string or a native gradient.'),o}}Validators.getStringOrGradientValidator=getStringOrGradientValidator;function getFunctionValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){return Util_1$f.Util._isFunction(o)||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a function.'),o}}Validators.getFunctionValidator=getFunctionValidator;function getNumberArrayValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){const s=Int8Array?Object.getPrototypeOf(Int8Array):null;return s&&o instanceof s||(Util_1$f.Util._isArray(o)?o.forEach(function(c){Util_1$f.Util._isNumber(c)||Util_1$f.Util.warn('"'+a+'" attribute has non numeric element '+c+". Make sure that all elements are numbers.")}):Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a array of numbers.')),o}}Validators.getNumberArrayValidator=getNumberArrayValidator;function getBooleanValidator(){if(Global_1$p.Konva.isUnminified)return function(o,a){var s=o===!0||o===!1;return s||Util_1$f.Util.warn(_formatValue(o)+' is a not valid value for "'+a+'" attribute. The value should be a boolean.'),o}}Validators.getBooleanValidator=getBooleanValidator;function getComponentValidator(o){if(Global_1$p.Konva.isUnminified)return function(a,s){return a==null||Util_1$f.Util.isObject(a)||Util_1$f.Util.warn(_formatValue(a)+' is a not valid value for "'+s+'" attribute. The value should be an object with properties '+o),a}}Validators.getComponentValidator=getComponentValidator;(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Factory=void 0;const a=Util,s=Validators;var c="get",f="set";o.Factory={addGetterSetter(d,y,_,S,b){o.Factory.addGetter(d,y,_),o.Factory.addSetter(d,y,S,b),o.Factory.addOverloadedGetterSetter(d,y)},addGetter(d,y,_){var S=c+a.Util._capitalize(y);d.prototype[S]=d.prototype[S]||function(){var b=this.attrs[y];return b===void 0?_:b}},addSetter(d,y,_,S){var b=f+a.Util._capitalize(y);d.prototype[b]||o.Factory.overWriteSetter(d,y,_,S)},overWriteSetter(d,y,_,S){var b=f+a.Util._capitalize(y);d.prototype[b]=function($){return _&&$!==void 0&&$!==null&&($=_.call(this,$,y)),this._setAttr(y,$),S&&S.call(this),this}},addComponentsGetterSetter(d,y,_,S,b){var $=_.length,P=a.Util._capitalize,T=c+P(y),C=f+P(y),O,A;d.prototype[T]=function(){var j={};for(O=0;O<$;O++)A=_[O],j[A]=this.getAttr(y+P(A));return j};var F=(0,s.getComponentValidator)(_);d.prototype[C]=function(j){var L=this.attrs[y],M;S&&(j=S.call(this,j)),F&&F.call(this,j,y);for(M in j)j.hasOwnProperty(M)&&this._setAttr(y+P(M),j[M]);return j||_.forEach(I=>{this._setAttr(y+P(I),void 0)}),this._fireChangeEvent(y,L,j),b&&b.call(this),this},o.Factory.addOverloadedGetterSetter(d,y)},addOverloadedGetterSetter(d,y){var _=a.Util._capitalize(y),S=f+_,b=c+_;d.prototype[y]=function(){return arguments.length?(this[S](arguments[0]),this):this[b]()}},addDeprecatedGetterSetter(d,y,_,S){a.Util.error("Adding deprecated "+y);var b=c+a.Util._capitalize(y),$=y+" property is deprecated and will be removed soon. Look at Konva change log for more information.";d.prototype[b]=function(){a.Util.error($);var P=this.attrs[y];return P===void 0?_:P},o.Factory.addSetter(d,y,S,function(){a.Util.error($)}),o.Factory.addOverloadedGetterSetter(d,y)},backCompat(d,y){a.Util.each(y,function(_,S){var b=d.prototype[S],$=c+a.Util._capitalize(_),P=f+a.Util._capitalize(_);function T(){b.apply(this,arguments),a.Util.error('"'+_+'" method is deprecated and will be removed soon. Use ""'+S+'" instead.')}d.prototype[_]=T,d.prototype[$]=T,d.prototype[P]=T})},afterSetFilter(){this._filterUpToDate=!1}}})(Factory);var Canvas$1={},Context$2={};Object.defineProperty(Context$2,"__esModule",{value:!0});Context$2.HitContext=Context$2.SceneContext=Context$2.Context=void 0;const Util_1$e=Util,Global_1$o=Global;function simplifyArray(o){var a=[],s=o.length,c=Util_1$e.Util,f,d;for(f=0;ftypeof $=="number"?Math.floor($):$)),d+=OPEN_PAREN+b.join(COMMA)+CLOSE_PAREN)):(d+=_.property,a||(d+=EQUALS+_.val)),d+=SEMICOLON;return d}clearTrace(){this.traceArr=[]}_trace(a){var s=this.traceArr,c;s.push(a),c=s.length,c>=traceArrMax&&s.shift()}reset(){var a=this.getCanvas().getPixelRatio();this.setTransform(1*a,0,0,1*a,0,0)}getCanvas(){return this.canvas}clear(a){var s=this.getCanvas();a?this.clearRect(a.x||0,a.y||0,a.width||0,a.height||0):this.clearRect(0,0,s.getWidth()/s.pixelRatio,s.getHeight()/s.pixelRatio)}_applyLineCap(a){const s=a.attrs.lineCap;s&&this.setAttr("lineCap",s)}_applyOpacity(a){var s=a.getAbsoluteOpacity();s!==1&&this.setAttr("globalAlpha",s)}_applyLineJoin(a){const s=a.attrs.lineJoin;s&&this.setAttr("lineJoin",s)}setAttr(a,s){this._context[a]=s}arc(a,s,c,f,d,y){this._context.arc(a,s,c,f,d,y)}arcTo(a,s,c,f,d){this._context.arcTo(a,s,c,f,d)}beginPath(){this._context.beginPath()}bezierCurveTo(a,s,c,f,d,y){this._context.bezierCurveTo(a,s,c,f,d,y)}clearRect(a,s,c,f){this._context.clearRect(a,s,c,f)}clip(...a){this._context.clip.apply(this._context,a)}closePath(){this._context.closePath()}createImageData(a,s){var c=arguments;if(c.length===2)return this._context.createImageData(a,s);if(c.length===1)return this._context.createImageData(a)}createLinearGradient(a,s,c,f){return this._context.createLinearGradient(a,s,c,f)}createPattern(a,s){return this._context.createPattern(a,s)}createRadialGradient(a,s,c,f,d,y){return this._context.createRadialGradient(a,s,c,f,d,y)}drawImage(a,s,c,f,d,y,_,S,b){var $=arguments,P=this._context;$.length===3?P.drawImage(a,s,c):$.length===5?P.drawImage(a,s,c,f,d):$.length===9&&P.drawImage(a,s,c,f,d,y,_,S,b)}ellipse(a,s,c,f,d,y,_,S){this._context.ellipse(a,s,c,f,d,y,_,S)}isPointInPath(a,s,c,f){return c?this._context.isPointInPath(c,a,s,f):this._context.isPointInPath(a,s,f)}fill(...a){this._context.fill.apply(this._context,a)}fillRect(a,s,c,f){this._context.fillRect(a,s,c,f)}strokeRect(a,s,c,f){this._context.strokeRect(a,s,c,f)}fillText(a,s,c,f){f?this._context.fillText(a,s,c,f):this._context.fillText(a,s,c)}measureText(a){return this._context.measureText(a)}getImageData(a,s,c,f){return this._context.getImageData(a,s,c,f)}lineTo(a,s){this._context.lineTo(a,s)}moveTo(a,s){this._context.moveTo(a,s)}rect(a,s,c,f){this._context.rect(a,s,c,f)}roundRect(a,s,c,f,d){this._context.roundRect(a,s,c,f,d)}putImageData(a,s,c){this._context.putImageData(a,s,c)}quadraticCurveTo(a,s,c,f){this._context.quadraticCurveTo(a,s,c,f)}restore(){this._context.restore()}rotate(a){this._context.rotate(a)}save(){this._context.save()}scale(a,s){this._context.scale(a,s)}setLineDash(a){this._context.setLineDash?this._context.setLineDash(a):"mozDash"in this._context?this._context.mozDash=a:"webkitLineDash"in this._context&&(this._context.webkitLineDash=a)}getLineDash(){return this._context.getLineDash()}setTransform(a,s,c,f,d,y){this._context.setTransform(a,s,c,f,d,y)}stroke(a){a?this._context.stroke(a):this._context.stroke()}strokeText(a,s,c,f){this._context.strokeText(a,s,c,f)}transform(a,s,c,f,d,y){this._context.transform(a,s,c,f,d,y)}translate(a,s){this._context.translate(a,s)}_enableTrace(){var a=this,s=CONTEXT_METHODS.length,c=this.setAttr,f,d,y=function(_){var S=a[_],b;a[_]=function(){return d=simplifyArray(Array.prototype.slice.call(arguments,0)),b=S.apply(a,arguments),a._trace({method:_,args:d}),b}};for(f=0;f{f.dragStatus==="dragging"&&(c=!0)}),c},justDragged:!1,get node(){var c;return o.DD._dragElements.forEach(f=>{c=f.node}),c},_dragElements:new Map,_drag(c){const f=[];o.DD._dragElements.forEach((d,y)=>{const{node:_}=d,S=_.getStage();S.setPointersPositions(c),d.pointerId===void 0&&(d.pointerId=s.Util._getFirstPointerId(c));const b=S._changedPointerPositions.find(T=>T.id===d.pointerId);if(b){if(d.dragStatus!=="dragging"){var $=_.dragDistance(),P=Math.max(Math.abs(b.x-d.startPointerPos.x),Math.abs(b.y-d.startPointerPos.y));if(P<$||(_.startDrag({evt:c}),!_.isDragging()))return}_._setDragPosition(c,d),f.push(_)}}),f.forEach(d=>{d.fire("dragmove",{type:"dragmove",target:d,evt:c},!0)})},_endDragBefore(c){const f=[];o.DD._dragElements.forEach(d=>{const{node:y}=d,_=y.getStage();if(c&&_.setPointersPositions(c),!_._changedPointerPositions.find($=>$.id===d.pointerId))return;(d.dragStatus==="dragging"||d.dragStatus==="stopped")&&(o.DD.justDragged=!0,a.Konva._mouseListenClick=!1,a.Konva._touchListenClick=!1,a.Konva._pointerListenClick=!1,d.dragStatus="stopped");const b=d.node.getLayer()||d.node instanceof a.Konva.Stage&&d.node;b&&f.indexOf(b)===-1&&f.push(b)}),f.forEach(d=>{d.draw()})},_endDragAfter(c){o.DD._dragElements.forEach((f,d)=>{f.dragStatus==="stopped"&&f.node.fire("dragend",{type:"dragend",target:f.node,evt:c},!0),f.dragStatus!=="dragging"&&o.DD._dragElements.delete(d)})}},a.Konva.isBrowser&&(window.addEventListener("mouseup",o.DD._endDragBefore,!0),window.addEventListener("touchend",o.DD._endDragBefore,!0),window.addEventListener("mousemove",o.DD._drag),window.addEventListener("touchmove",o.DD._drag),window.addEventListener("mouseup",o.DD._endDragAfter,!1),window.addEventListener("touchend",o.DD._endDragAfter,!1))})(DragAndDrop);Object.defineProperty(Node$1,"__esModule",{value:!0});Node$1.Node=void 0;const Util_1$c=Util,Factory_1$y=Factory,Canvas_1$1=Canvas$1,Global_1$m=Global,DragAndDrop_1=DragAndDrop,Validators_1$x=Validators;var ABSOLUTE_OPACITY="absoluteOpacity",ALL_LISTENERS="allEventListeners",ABSOLUTE_TRANSFORM="absoluteTransform",ABSOLUTE_SCALE="absoluteScale",CANVAS="canvas",CHANGE="Change",CHILDREN="children",KONVA="konva",LISTENING="listening",MOUSEENTER="mouseenter",MOUSELEAVE="mouseleave",SET="set",SHAPE="Shape",SPACE$2=" ",STAGE="stage",TRANSFORM="transform",UPPER_STAGE="Stage",VISIBLE="visible",TRANSFORM_CHANGE_STR$1=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(SPACE$2);let idCounter$1=1;class Node{constructor(a){this._id=idCounter$1++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(a),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(a){(a===TRANSFORM||a===ABSOLUTE_TRANSFORM)&&this._cache.get(a)?this._cache.get(a).dirty=!0:a?this._cache.delete(a):this._cache.clear()}_getCache(a,s){var c=this._cache.get(a),f=a===TRANSFORM||a===ABSOLUTE_TRANSFORM,d=c===void 0||f&&c.dirty===!0;return d&&(c=s.call(this),this._cache.set(a,c)),c}_calculate(a,s,c){if(!this._attachedDepsListeners.get(a)){const f=s.map(d=>d+"Change.konva").join(SPACE$2);this.on(f,()=>{this._clearCache(a)}),this._attachedDepsListeners.set(a,!0)}return this._getCache(a,c)}_getCanvasCache(){return this._cache.get(CANVAS)}_clearSelfAndDescendantCache(a){this._clearCache(a),a===ABSOLUTE_TRANSFORM&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(CANVAS)){const{scene:a,filter:s,hit:c}=this._cache.get(CANVAS);Util_1$c.Util.releaseCanvas(a,s,c),this._cache.delete(CANVAS)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(a){var s=a||{},c={};(s.x===void 0||s.y===void 0||s.width===void 0||s.height===void 0)&&(c=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var f=Math.ceil(s.width||c.width),d=Math.ceil(s.height||c.height),y=s.pixelRatio,_=s.x===void 0?Math.floor(c.x):s.x,S=s.y===void 0?Math.floor(c.y):s.y,b=s.offset||0,$=s.drawBorder||!1,P=s.hitCanvasPixelRatio||1;if(!f||!d){Util_1$c.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const T=Math.abs(Math.round(c.x)-_)>.5?1:0,C=Math.abs(Math.round(c.y)-S)>.5?1:0;f+=b*2+T,d+=b*2+C,_-=b,S-=b;var O=new Canvas_1$1.SceneCanvas({pixelRatio:y,width:f,height:d}),A=new Canvas_1$1.SceneCanvas({pixelRatio:y,width:0,height:0,willReadFrequently:!0}),F=new Canvas_1$1.HitCanvas({pixelRatio:P,width:f,height:d}),j=O.getContext(),L=F.getContext();return F.isCache=!0,O.isCache=!0,this._cache.delete(CANVAS),this._filterUpToDate=!1,s.imageSmoothingEnabled===!1&&(O.getContext()._context.imageSmoothingEnabled=!1,A.getContext()._context.imageSmoothingEnabled=!1),j.save(),L.save(),j.translate(-_,-S),L.translate(-_,-S),this._isUnderCache=!0,this._clearSelfAndDescendantCache(ABSOLUTE_OPACITY),this._clearSelfAndDescendantCache(ABSOLUTE_SCALE),this.drawScene(O,this),this.drawHit(F,this),this._isUnderCache=!1,j.restore(),L.restore(),$&&(j.save(),j.beginPath(),j.rect(0,0,f,d),j.closePath(),j.setAttr("strokeStyle","red"),j.setAttr("lineWidth",5),j.stroke(),j.restore()),this._cache.set(CANVAS,{scene:O,filter:A,hit:F,x:_,y:S}),this._requestDraw(),this}isCached(){return this._cache.has(CANVAS)}getClientRect(a){throw new Error('abstract "getClientRect" method call')}_transformedRect(a,s){var c=[{x:a.x,y:a.y},{x:a.x+a.width,y:a.y},{x:a.x+a.width,y:a.y+a.height},{x:a.x,y:a.y+a.height}],f=1/0,d=1/0,y=-1/0,_=-1/0,S=this.getAbsoluteTransform(s);return c.forEach(function(b){var $=S.point(b);f===void 0&&(f=y=$.x,d=_=$.y),f=Math.min(f,$.x),d=Math.min(d,$.y),y=Math.max(y,$.x),_=Math.max(_,$.y)}),{x:f,y:d,width:y-f,height:_-d}}_drawCachedSceneCanvas(a){a.save(),a._applyOpacity(this),a._applyGlobalCompositeOperation(this);const s=this._getCanvasCache();a.translate(s.x,s.y);var c=this._getCachedSceneCanvas(),f=c.pixelRatio;a.drawImage(c._canvas,0,0,c.width/f,c.height/f),a.restore()}_drawCachedHitCanvas(a){var s=this._getCanvasCache(),c=s.hit;a.save(),a.translate(s.x,s.y),a.drawImage(c._canvas,0,0,c.width/c.pixelRatio,c.height/c.pixelRatio),a.restore()}_getCachedSceneCanvas(){var a=this.filters(),s=this._getCanvasCache(),c=s.scene,f=s.filter,d=f.getContext(),y,_,S,b;if(a){if(!this._filterUpToDate){var $=c.pixelRatio;f.setSize(c.width/c.pixelRatio,c.height/c.pixelRatio);try{for(y=a.length,d.clear(),d.drawImage(c._canvas,0,0,c.getWidth()/$,c.getHeight()/$),_=d.getImageData(0,0,f.getWidth(),f.getHeight()),S=0;S{var s,c;if(!a)return this;for(s in a)s!==CHILDREN&&(c=SET+Util_1$c.Util._capitalize(s),Util_1$c.Util._isFunction(this[c])?this[c](a[s]):this._setAttr(s,a[s]))}),this}isListening(){return this._getCache(LISTENING,this._isListening)}_isListening(a){if(!this.listening())return!1;const c=this.getParent();return c&&c!==a&&this!==a?c._isListening(a):!0}isVisible(){return this._getCache(VISIBLE,this._isVisible)}_isVisible(a){if(!this.visible())return!1;const c=this.getParent();return c&&c!==a&&this!==a?c._isVisible(a):!0}shouldDrawHit(a,s=!1){if(a)return this._isVisible(a)&&this._isListening(a);var c=this.getLayer(),f=!1;DragAndDrop_1.DD._dragElements.forEach(y=>{y.dragStatus==="dragging"&&(y.node.nodeType==="Stage"||y.node.getLayer()===c)&&(f=!0)});var d=!s&&!Global_1$m.Konva.hitOnDragEnabled&&f;return this.isListening()&&this.isVisible()&&!d}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var a=this.getDepth(),s=this,c=0,f,d,y,_;function S($){for(f=[],d=$.length,y=0;y0&&f[0].getDepth()<=a&&S(f)}const b=this.getStage();return s.nodeType!==UPPER_STAGE&&b&&S(b.getChildren()),c}getDepth(){for(var a=0,s=this.parent;s;)a++,s=s.parent;return a}_batchTransformChanges(a){this._batchingTransformChange=!0,a(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(TRANSFORM),this._clearSelfAndDescendantCache(ABSOLUTE_TRANSFORM)),this._needClearTransformCache=!1}setPosition(a){return this._batchTransformChanges(()=>{this.x(a.x),this.y(a.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const a=this.getStage();if(!a)return null;var s=a.getPointerPosition();if(!s)return null;var c=this.getAbsoluteTransform().copy();return c.invert(),c.point(s)}getAbsolutePosition(a){let s=!1,c=this.parent;for(;c;){if(c.isCached()){s=!0;break}c=c.parent}s&&!a&&(a=!0);var f=this.getAbsoluteTransform(a).getMatrix(),d=new Util_1$c.Transform,y=this.offset();return d.m=f.slice(),d.translate(y.x,y.y),d.getTranslation()}setAbsolutePosition(a){const y=this._clearTransform(),{x:s,y:c}=y,f=er(y,["x","y"]);this.attrs.x=s,this.attrs.y=c,this._clearCache(TRANSFORM);var d=this._getAbsoluteTransform().copy();return d.invert(),d.translate(a.x,a.y),a={x:this.attrs.x+d.getTranslation().x,y:this.attrs.y+d.getTranslation().y},this._setTransform(f),this.setPosition({x:a.x,y:a.y}),this._clearCache(TRANSFORM),this._clearSelfAndDescendantCache(ABSOLUTE_TRANSFORM),this}_setTransform(a){var s;for(s in a)this.attrs[s]=a[s]}_clearTransform(){var a={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,a}move(a){var s=a.x,c=a.y,f=this.x(),d=this.y();return s!==void 0&&(f+=s),c!==void 0&&(d+=c),this.setPosition({x:f,y:d}),this}_eachAncestorReverse(a,s){var c=[],f=this.getParent(),d,y;if(!(s&&s._id===this._id)){for(c.unshift(this);f&&(!s||f._id!==s._id);)c.unshift(f),f=f.parent;for(d=c.length,y=0;y0?(this.parent.children.splice(a,1),this.parent.children.splice(a-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Util_1$c.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var a=this.index;return a>0?(this.parent.children.splice(a,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(a){if(!this.parent)return Util_1$c.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(a<0||a>=this.parent.children.length)&&Util_1$c.Util.warn("Unexpected value "+a+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var s=this.index;return this.parent.children.splice(s,1),this.parent.children.splice(a,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(ABSOLUTE_OPACITY,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var a=this.opacity(),s=this.getParent();return s&&!s._isUnderCache&&(a*=s.getAbsoluteOpacity()),a}moveTo(a){return this.getParent()!==a&&(this._remove(),a.add(this)),this}toObject(){var a=this.getAttrs(),s,c,f,d,y;const _={attrs:{},className:this.getClassName()};for(s in a)c=a[s],y=Util_1$c.Util.isObject(c)&&!Util_1$c.Util._isPlainObject(c)&&!Util_1$c.Util._isArray(c),!y&&(f=typeof this[s]=="function"&&this[s],delete a[s],d=f?f.call(this):null,a[s]=c,d!==c&&(_.attrs[s]=c));return Util_1$c.Util._prepareToStringify(_)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(a,s,c){var f=[];s&&this._isMatch(a)&&f.push(this);for(var d=this.parent;d;){if(d===c)return f;d._isMatch(a)&&f.push(d),d=d.parent}return f}isAncestorOf(a){return!1}findAncestor(a,s,c){return this.findAncestors(a,s,c)[0]}_isMatch(a){if(!a)return!1;if(typeof a=="function")return a(this);var s=a.replace(/ /g,"").split(","),c=s.length,f,d;for(f=0;f{try{const f=a==null?void 0:a.callback;f&&delete a.callback,Util_1$c.Util._urlToImage(this.toDataURL(a),function(d){s(d),f==null||f(d)})}catch(f){c(f)}})}toBlob(a){return new Promise((s,c)=>{try{const f=a==null?void 0:a.callback;f&&delete a.callback,this.toCanvas(a).toBlob(d=>{s(d),f==null||f(d)},a==null?void 0:a.mimeType,a==null?void 0:a.quality)}catch(f){c(f)}})}setSize(a){return this.width(a.width),this.height(a.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Global_1$m.Konva.dragDistance}_off(a,s,c){var f=this.eventListeners[a],d,y,_;for(d=0;d=0;if(c&&!this.isDragging()){var f=!1;DragAndDrop_1.DD._dragElements.forEach(d=>{this.isAncestorOf(d.node)&&(f=!0)}),f||this._createDragElement(a)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var a=this.getStage();if(!a)return;const s=DragAndDrop_1.DD._dragElements.get(this._id),c=s&&s.dragStatus==="dragging",f=s&&s.dragStatus==="ready";c?this.stopDrag():f&&DragAndDrop_1.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(a={x:0,y:0}){const s=this.getStage();if(!s)return!1;const c={x:-a.x,y:-a.y,width:s.width()+2*a.x,height:s.height()+2*a.y};return Util_1$c.Util.haveIntersection(c,this.getClientRect())}static create(a,s){return Util_1$c.Util._isString(a)&&(a=JSON.parse(a)),this._createNode(a,s)}static _createNode(a,s){var c=Node.prototype.getClassName.call(a),f=a.children,d,y,_;s&&(a.attrs.container=s),Global_1$m.Konva[c]||(Util_1$c.Util.warn('Can not find a node with class name "'+c+'". Fallback to "Shape".'),c="Shape");const S=Global_1$m.Konva[c];if(d=new S(a.attrs),f)for(y=f.length,_=0;_0}removeChildren(){return this.getChildren().forEach(a=>{a.parent=null,a.index=0,a.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(a=>{a.parent=null,a.index=0,a.destroy()}),this.children=[],this._requestDraw(),this}add(...a){if(a.length===0)return this;if(a.length>1){for(var s=0;s0?s[0]:void 0}_generalFind(a,s){var c=[];return this._descendants(f=>{const d=f._isMatch(a);return d&&c.push(f),!!(d&&s)}),c}_descendants(a){let s=!1;const c=this.getChildren();for(const f of c){if(s=a(f),s)return!0;if(f.hasChildren()&&(s=f._descendants(a),s))return!0}return!1}toObject(){var a=Node_1$h.Node.prototype.toObject.call(this);return a.children=[],this.getChildren().forEach(s=>{a.children.push(s.toObject())}),a}isAncestorOf(a){for(var s=a.getParent();s;){if(s._id===this._id)return!0;s=s.getParent()}return!1}clone(a){var s=Node_1$h.Node.prototype.clone.call(this,a);return this.getChildren().forEach(function(c){s.add(c.clone())}),s}getAllIntersections(a){var s=[];return this.find("Shape").forEach(c=>{c.isVisible()&&c.intersects(a)&&s.push(c)}),s}_clearSelfAndDescendantCache(a){var s;super._clearSelfAndDescendantCache(a),!this.isCached()&&((s=this.children)===null||s===void 0||s.forEach(function(c){c._clearSelfAndDescendantCache(a)}))}_setChildrenIndices(){var a;(a=this.children)===null||a===void 0||a.forEach(function(s,c){s.index=c}),this._requestDraw()}drawScene(a,s,c){var f=this.getLayer(),d=a||f&&f.getCanvas(),y=d&&d.getContext(),_=this._getCanvasCache(),S=_&&_.scene,b=d&&d.isCache;if(!this.isVisible()&&!b)return this;if(S){y.save();var $=this.getAbsoluteTransform(s).getMatrix();y.transform($[0],$[1],$[2],$[3],$[4],$[5]),this._drawCachedSceneCanvas(y),y.restore()}else this._drawChildren("drawScene",d,s,c);return this}drawHit(a,s){if(!this.shouldDrawHit(s))return this;var c=this.getLayer(),f=a||c&&c.hitCanvas,d=f&&f.getContext(),y=this._getCanvasCache(),_=y&&y.hit;if(_){d.save();var S=this.getAbsoluteTransform(s).getMatrix();d.transform(S[0],S[1],S[2],S[3],S[4],S[5]),this._drawCachedHitCanvas(d),d.restore()}else this._drawChildren("drawHit",f,s);return this}_drawChildren(a,s,c,f){var d,y=s&&s.getContext(),_=this.clipWidth(),S=this.clipHeight(),b=this.clipFunc(),$=_&&S||b;const P=c===this;if($){y.save();var T=this.getAbsoluteTransform(c),C=T.getMatrix();y.transform(C[0],C[1],C[2],C[3],C[4],C[5]),y.beginPath();let j;if(b)j=b.call(this,y,this);else{var O=this.clipX(),A=this.clipY();y.rect(O,A,_,S)}y.clip.apply(y,j),C=T.copy().invert().getMatrix(),y.transform(C[0],C[1],C[2],C[3],C[4],C[5])}var F=!P&&this.globalCompositeOperation()!=="source-over"&&a==="drawScene";F&&(y.save(),y._applyGlobalCompositeOperation(this)),(d=this.children)===null||d===void 0||d.forEach(function(j){j[a](s,c,f)}),F&&y.restore(),$&&y.restore()}getClientRect(a={}){var s,c=a.skipTransform,f=a.relativeTo,d,y,_,S,b={x:1/0,y:1/0,width:0,height:0},$=this;(s=this.children)===null||s===void 0||s.forEach(function(A){if(A.visible()){var F=A.getClientRect({relativeTo:$,skipShadow:a.skipShadow,skipStroke:a.skipStroke});F.width===0&&F.height===0||(d===void 0?(d=F.x,y=F.y,_=F.x+F.width,S=F.y+F.height):(d=Math.min(d,F.x),y=Math.min(y,F.y),_=Math.max(_,F.x+F.width),S=Math.max(S,F.y+F.height)))}});for(var P=this.find("Shape"),T=!1,C=0;CCe.indexOf("pointer")>=0?"pointer":Ce.indexOf("touch")>=0?"touch":"mouse",ce=Ce=>{const ue=ae(Ce);if(ue==="pointer")return f.Konva.pointerEventsEnabled&&le.pointer;if(ue==="touch")return le.touch;if(ue==="mouse")return le.mouse};function ge(Ce={}){return(Ce.clipFunc||Ce.clipWidth||Ce.clipHeight)&&a.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),Ce}const pe="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";o.stages=[];class Ie extends c.Container{constructor(ue){super(ge(ue)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),o.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{ge(this.attrs)}),this._checkVisibility()}_validateAdd(ue){const xe=ue.getType()==="Layer",Pe=ue.getType()==="FastLayer";xe||Pe||a.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const ue=this.visible()?"":"none";this.content.style.display=ue}setContainer(ue){if(typeof ue===$){if(ue.charAt(0)==="."){var xe=ue.slice(1);ue=document.getElementsByClassName(xe)[0]}else{var Pe;ue.charAt(0)!=="#"?Pe=ue:Pe=ue.slice(1),ue=document.getElementById(Pe)}if(!ue)throw"Can not find container in document with id "+Pe}return this._setAttr("container",ue),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),ue.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var ue=this.children,xe=ue.length,Pe;for(Pe=0;Pe-1&&o.stages.splice(xe,1),a.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const ue=this._pointerPositions[0]||this._changedPointerPositions[0];return ue?{x:ue.x,y:ue.y}:(a.Util.warn(pe),null)}_getPointerById(ue){return this._pointerPositions.find(xe=>xe.id===ue)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(ue){ue=ue||{},ue.x=ue.x||0,ue.y=ue.y||0,ue.width=ue.width||this.width(),ue.height=ue.height||this.height();var xe=new d.SceneCanvas({width:ue.width,height:ue.height,pixelRatio:ue.pixelRatio||1}),Pe=xe.getContext()._context,Ve=this.children;return(ue.x||ue.y)&&Pe.translate(-1*ue.x,-1*ue.y),Ve.forEach(function(je){if(je.isVisible()){var ze=je._toKonvaCanvas(ue);Pe.drawImage(ze._canvas,ue.x,ue.y,ze.getWidth()/ze.getPixelRatio(),ze.getHeight()/ze.getPixelRatio())}}),xe}getIntersection(ue){if(!ue)return null;var xe=this.children,Pe=xe.length,Ve=Pe-1,je;for(je=Ve;je>=0;je--){const ze=xe[je].getIntersection(ue);if(ze)return ze}return null}_resizeDOM(){var ue=this.width(),xe=this.height();this.content&&(this.content.style.width=ue+P,this.content.style.height=xe+P),this.bufferCanvas.setSize(ue,xe),this.bufferHitCanvas.setSize(ue,xe),this.children.forEach(Pe=>{Pe.setSize({width:ue,height:xe}),Pe.draw()})}add(ue,...xe){if(arguments.length>1){for(var Pe=0;Pene&&a.Util.warn("The stage has "+Ve+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),ue.setSize({width:this.width(),height:this.height()}),ue.draw(),f.Konva.isBrowser&&this.content.appendChild(ue.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(ue){return S.hasPointerCapture(ue,this)}setPointerCapture(ue){S.setPointerCapture(ue,this)}releaseCapture(ue){S.releaseCapture(ue,this)}getLayers(){return this.children}_bindContentEvents(){f.Konva.isBrowser&&fe.forEach(([ue,xe])=>{this.content.addEventListener(ue,Pe=>{this[xe](Pe)},{passive:!1})})}_pointerenter(ue){this.setPointersPositions(ue);const xe=ce(ue.type);xe&&this._fire(xe.pointerenter,{evt:ue,target:this,currentTarget:this})}_pointerover(ue){this.setPointersPositions(ue);const xe=ce(ue.type);xe&&this._fire(xe.pointerover,{evt:ue,target:this,currentTarget:this})}_getTargetShape(ue){let xe=this[ue+"targetShape"];return xe&&!xe.getStage()&&(xe=null),xe}_pointerleave(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(xe){this.setPointersPositions(ue);var Ve=this._getTargetShape(Pe),je=!y.DD.isDragging||f.Konva.hitOnDragEnabled;Ve&&je?(Ve._fireAndBubble(xe.pointerout,{evt:ue}),Ve._fireAndBubble(xe.pointerleave,{evt:ue}),this._fire(xe.pointerleave,{evt:ue,target:this,currentTarget:this}),this[Pe+"targetShape"]=null):je&&(this._fire(xe.pointerleave,{evt:ue,target:this,currentTarget:this}),this._fire(xe.pointerout,{evt:ue,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(xe){this.setPointersPositions(ue);var Ve=!1;this._changedPointerPositions.forEach(je=>{var ze=this.getIntersection(je);if(y.DD.justDragged=!1,f.Konva["_"+Pe+"ListenClick"]=!0,!ze||!ze.isListening())return;f.Konva.capturePointerEventsEnabled&&ze.setPointerCapture(je.id),this[Pe+"ClickStartShape"]=ze,ze._fireAndBubble(xe.pointerdown,{evt:ue,pointerId:je.id}),Ve=!0;const Xe=ue.type.indexOf("touch")>=0;ze.preventDefault()&&ue.cancelable&&Xe&&ue.preventDefault()}),Ve||this._fire(xe.pointerdown,{evt:ue,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(!xe)return;y.DD.isDragging&&y.DD.node.preventDefault()&&ue.cancelable&&ue.preventDefault(),this.setPointersPositions(ue);var Ve=!y.DD.isDragging||f.Konva.hitOnDragEnabled;if(!Ve)return;var je={};let ze=!1;var Xe=this._getTargetShape(Pe);this._changedPointerPositions.forEach(Ut=>{const Je=S.getCapturedShape(Ut.id)||this.getIntersection(Ut),Ft=Ut.id,It={evt:ue,pointerId:Ft};var ir=Xe!==Je;if(ir&&Xe&&(Xe._fireAndBubble(xe.pointerout,se({},It),Je),Xe._fireAndBubble(xe.pointerleave,se({},It),Je)),Je){if(je[Je._id])return;je[Je._id]=!0}Je&&Je.isListening()?(ze=!0,ir&&(Je._fireAndBubble(xe.pointerover,se({},It),Xe),Je._fireAndBubble(xe.pointerenter,se({},It),Xe),this[Pe+"targetShape"]=Je),Je._fireAndBubble(xe.pointermove,se({},It))):Xe&&(this._fire(xe.pointerover,{evt:ue,target:this,currentTarget:this,pointerId:Ft}),this[Pe+"targetShape"]=null)}),ze||this._fire(xe.pointermove,{evt:ue,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(ue){const xe=ce(ue.type),Pe=ae(ue.type);if(!xe)return;this.setPointersPositions(ue);const Ve=this[Pe+"ClickStartShape"],je=this[Pe+"ClickEndShape"];var ze={};let Xe=!1;this._changedPointerPositions.forEach(Ut=>{const Je=S.getCapturedShape(Ut.id)||this.getIntersection(Ut);if(Je){if(Je.releaseCapture(Ut.id),ze[Je._id])return;ze[Je._id]=!0}const Ft=Ut.id,It={evt:ue,pointerId:Ft};let ir=!1;f.Konva["_"+Pe+"InDblClickWindow"]?(ir=!0,clearTimeout(this[Pe+"DblTimeout"])):y.DD.justDragged||(f.Konva["_"+Pe+"InDblClickWindow"]=!0,clearTimeout(this[Pe+"DblTimeout"])),this[Pe+"DblTimeout"]=setTimeout(function(){f.Konva["_"+Pe+"InDblClickWindow"]=!1},f.Konva.dblClickWindow),Je&&Je.isListening()?(Xe=!0,this[Pe+"ClickEndShape"]=Je,Je._fireAndBubble(xe.pointerup,se({},It)),f.Konva["_"+Pe+"ListenClick"]&&Ve&&Ve===Je&&(Je._fireAndBubble(xe.pointerclick,se({},It)),ir&&je&&je===Je&&Je._fireAndBubble(xe.pointerdblclick,se({},It)))):(this[Pe+"ClickEndShape"]=null,f.Konva["_"+Pe+"ListenClick"]&&this._fire(xe.pointerclick,{evt:ue,target:this,currentTarget:this,pointerId:Ft}),ir&&this._fire(xe.pointerdblclick,{evt:ue,target:this,currentTarget:this,pointerId:Ft}))}),Xe||this._fire(xe.pointerup,{evt:ue,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),f.Konva["_"+Pe+"ListenClick"]=!1,ue.cancelable&&Pe!=="touch"&&ue.preventDefault()}_contextmenu(ue){this.setPointersPositions(ue);var xe=this.getIntersection(this.getPointerPosition());xe&&xe.isListening()?xe._fireAndBubble(ie,{evt:ue}):this._fire(ie,{evt:ue,target:this,currentTarget:this})}_wheel(ue){this.setPointersPositions(ue);var xe=this.getIntersection(this.getPointerPosition());xe&&xe.isListening()?xe._fireAndBubble(J,{evt:ue}):this._fire(J,{evt:ue,target:this,currentTarget:this})}_pointercancel(ue){this.setPointersPositions(ue);const xe=S.getCapturedShape(ue.pointerId)||this.getIntersection(this.getPointerPosition());xe&&xe._fireAndBubble(U,S.createEvent(ue)),S.releaseCapture(ue.pointerId)}_lostpointercapture(ue){S.releaseCapture(ue.pointerId)}setPointersPositions(ue){var xe=this._getContentPosition(),Pe=null,Ve=null;ue=ue||window.event,ue.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(ue.touches,je=>{this._pointerPositions.push({id:je.identifier,x:(je.clientX-xe.left)/xe.scaleX,y:(je.clientY-xe.top)/xe.scaleY})}),Array.prototype.forEach.call(ue.changedTouches||ue.touches,je=>{this._changedPointerPositions.push({id:je.identifier,x:(je.clientX-xe.left)/xe.scaleX,y:(je.clientY-xe.top)/xe.scaleY})})):(Pe=(ue.clientX-xe.left)/xe.scaleX,Ve=(ue.clientY-xe.top)/xe.scaleY,this.pointerPos={x:Pe,y:Ve},this._pointerPositions=[{x:Pe,y:Ve,id:a.Util._getFirstPointerId(ue)}],this._changedPointerPositions=[{x:Pe,y:Ve,id:a.Util._getFirstPointerId(ue)}])}_setPointerPosition(ue){a.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(ue)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var ue=this.content.getBoundingClientRect();return{top:ue.top,left:ue.left,scaleX:ue.width/this.content.clientWidth||1,scaleY:ue.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new d.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new d.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!f.Konva.isBrowser){var ue=this.container();if(!ue)throw"Stage has no container. A container is required.";ue.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),ue.appendChild(this.content),this._resizeDOM()}}cache(){return a.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(ue){ue.batchDraw()}),this}}o.Stage=Ie,Ie.prototype.nodeType=b,(0,_._registerNode)(Ie),s.Factory.addGetterSetter(Ie,"container")})(Stage);var Layer$1={},Shape={};(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.Shape=o.shapes=void 0;const a=Global,s=Util,c=Factory,f=Node$1,d=Validators,y=Global,_=PointerEvents;var S="hasShadow",b="shadowRGBA",$="patternImage",P="linearGradient",T="radialGradient";let C;function O(){return C||(C=s.Util.createCanvasElement().getContext("2d"),C)}o.shapes={};function A(X){const W=this.attrs.fillRule;W?X.fill(W):X.fill()}function F(X){X.stroke()}function j(X){X.fill()}function L(X){X.stroke()}function M(){this._clearCache(S)}function I(){this._clearCache(b)}function U(){this._clearCache($)}function z(){this._clearCache(P)}function H(){this._clearCache(T)}class G extends f.Node{constructor(W){super(W);let K;for(;K=s.Util.getRandomColor(),!(K&&!(K in o.shapes)););this.colorKey=K,o.shapes[K]=this}getContext(){return s.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return s.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(S,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache($,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var W=O();const K=W.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(K&&K.setTransform){const ie=new s.Transform;ie.translate(this.fillPatternX(),this.fillPatternY()),ie.rotate(a.Konva.getAngle(this.fillPatternRotation())),ie.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),ie.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const ee=ie.getMatrix(),de=typeof DOMMatrix=="undefined"?{a:ee[0],b:ee[1],c:ee[2],d:ee[3],e:ee[4],f:ee[5]}:new DOMMatrix(ee);K.setTransform(de)}return K}}_getLinearGradient(){return this._getCache(P,this.__getLinearGradient)}__getLinearGradient(){var W=this.fillLinearGradientColorStops();if(W){for(var K=O(),ie=this.fillLinearGradientStartPoint(),ee=this.fillLinearGradientEndPoint(),de=K.createLinearGradient(ie.x,ie.y,ee.x,ee.y),Z=0;Zthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const W=this.hitStrokeWidth();return W==="auto"?this.hasStroke():this.strokeEnabled()&&!!W}intersects(W){var K=this.getStage();if(!K)return!1;const ie=K.bufferHitCanvas;return ie.getContext().clear(),this.drawHit(ie,void 0,!0),ie.context.getImageData(Math.round(W.x),Math.round(W.y),1,1).data[3]>0}destroy(){return f.Node.prototype.destroy.call(this),delete o.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(W){var K;if(!((K=this.attrs.perfectDrawEnabled)!==null&&K!==void 0?K:!0))return!1;const ee=W||this.hasFill(),de=this.hasStroke(),Z=this.getAbsoluteOpacity()!==1;if(ee&&de&&Z)return!0;const Q=this.hasShadow(),J=this.shadowForStrokeEnabled();return!!(ee&&de&&Q&&J)}setStrokeHitEnabled(W){s.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),W?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var W=this.size();return{x:this._centroid?-W.width/2:0,y:this._centroid?-W.height/2:0,width:W.width,height:W.height}}getClientRect(W={}){const K=W.skipTransform,ie=W.relativeTo,ee=this.getSelfRect(),Z=!W.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=ee.width+Z,J=ee.height+Z,ne=!W.skipShadow&&this.hasShadow(),fe=ne?this.shadowOffsetX():0,le=ne?this.shadowOffsetY():0,ae=Q+Math.abs(fe),ce=J+Math.abs(le),ge=ne&&this.shadowBlur()||0,pe=ae+ge*2,Ie=ce+ge*2,Ce={width:pe,height:Ie,x:-(Z/2+ge)+Math.min(fe,0)+ee.x,y:-(Z/2+ge)+Math.min(le,0)+ee.y};return K?Ce:this._transformedRect(Ce,ie)}drawScene(W,K,ie){var ee=this.getLayer(),de=W||ee.getCanvas(),Z=de.getContext(),Q=this._getCanvasCache(),J=this.getSceneFunc(),ne=this.hasShadow(),fe,le,ae=de.isCache,ce=K===this;if(!this.isVisible()&&!ce)return this;if(Q){Z.save();var ge=this.getAbsoluteTransform(K).getMatrix();return Z.transform(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5]),this._drawCachedSceneCanvas(Z),Z.restore(),this}if(!J)return this;if(Z.save(),this._useBufferCanvas()&&!ae){fe=this.getStage();const Ce=ie||fe.bufferCanvas;le=Ce.getContext(),le.clear(),le.save(),le._applyLineJoin(this);var pe=this.getAbsoluteTransform(K).getMatrix();le.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5]),J.call(this,le,this),le.restore();var Ie=Ce.pixelRatio;ne&&Z._applyShadow(this),Z._applyOpacity(this),Z._applyGlobalCompositeOperation(this),Z.drawImage(Ce._canvas,0,0,Ce.width/Ie,Ce.height/Ie)}else{if(Z._applyLineJoin(this),!ce){var pe=this.getAbsoluteTransform(K).getMatrix();Z.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5]),Z._applyOpacity(this),Z._applyGlobalCompositeOperation(this)}ne&&Z._applyShadow(this),J.call(this,Z,this)}return Z.restore(),this}drawHit(W,K,ie=!1){if(!this.shouldDrawHit(K,ie))return this;var ee=this.getLayer(),de=W||ee.hitCanvas,Z=de&&de.getContext(),Q=this.hitFunc()||this.sceneFunc(),J=this._getCanvasCache(),ne=J&&J.hit;if(this.colorKey||s.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),ne){Z.save();var fe=this.getAbsoluteTransform(K).getMatrix();return Z.transform(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5]),this._drawCachedHitCanvas(Z),Z.restore(),this}if(!Q)return this;if(Z.save(),Z._applyLineJoin(this),!(this===K)){var ae=this.getAbsoluteTransform(K).getMatrix();Z.transform(ae[0],ae[1],ae[2],ae[3],ae[4],ae[5])}return Q.call(this,Z,this),Z.restore(),this}drawHitFromCache(W=0){var K=this._getCanvasCache(),ie=this._getCachedSceneCanvas(),ee=K.hit,de=ee.getContext(),Z=ee.getWidth(),Q=ee.getHeight(),J,ne,fe,le,ae,ce;de.clear(),de.drawImage(ie._canvas,0,0,Z,Q);try{for(J=de.getImageData(0,0,Z,Q),ne=J.data,fe=ne.length,le=s.Util._hexToRgb(this.colorKey),ae=0;aeW?(ne[ae]=le.r,ne[ae+1]=le.g,ne[ae+2]=le.b,ne[ae+3]=255):ne[ae+3]=0;de.putImageData(J,0,0)}catch(ge){s.Util.error("Unable to draw hit graph from cached scene canvas. "+ge.message)}return this}hasPointerCapture(W){return _.hasPointerCapture(W,this)}setPointerCapture(W){_.setPointerCapture(W,this)}releaseCapture(W){_.releaseCapture(W,this)}}o.Shape=G,G.prototype._fillFunc=A,G.prototype._strokeFunc=F,G.prototype._fillFuncHit=j,G.prototype._strokeFuncHit=L,G.prototype._centroid=!1,G.prototype.nodeType="Shape",(0,y._registerNode)(G),G.prototype.eventListeners={},G.prototype.on.call(G.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",M),G.prototype.on.call(G.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",I),G.prototype.on.call(G.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",U),G.prototype.on.call(G.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",z),G.prototype.on.call(G.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",H),c.Factory.addGetterSetter(G,"stroke",void 0,(0,d.getStringOrGradientValidator)()),c.Factory.addGetterSetter(G,"strokeWidth",2,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillAfterStrokeEnabled",!1),c.Factory.addGetterSetter(G,"hitStrokeWidth","auto",(0,d.getNumberOrAutoValidator)()),c.Factory.addGetterSetter(G,"strokeHitEnabled",!0,(0,d.getBooleanValidator)()),c.Factory.addGetterSetter(G,"perfectDrawEnabled",!0,(0,d.getBooleanValidator)()),c.Factory.addGetterSetter(G,"shadowForStrokeEnabled",!0,(0,d.getBooleanValidator)()),c.Factory.addGetterSetter(G,"lineJoin"),c.Factory.addGetterSetter(G,"lineCap"),c.Factory.addGetterSetter(G,"sceneFunc"),c.Factory.addGetterSetter(G,"hitFunc"),c.Factory.addGetterSetter(G,"dash"),c.Factory.addGetterSetter(G,"dashOffset",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"shadowColor",void 0,(0,d.getStringValidator)()),c.Factory.addGetterSetter(G,"shadowBlur",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"shadowOpacity",1,(0,d.getNumberValidator)()),c.Factory.addComponentsGetterSetter(G,"shadowOffset",["x","y"]),c.Factory.addGetterSetter(G,"shadowOffsetX",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"shadowOffsetY",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternImage"),c.Factory.addGetterSetter(G,"fill",void 0,(0,d.getStringOrGradientValidator)()),c.Factory.addGetterSetter(G,"fillPatternX",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternY",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillLinearGradientColorStops"),c.Factory.addGetterSetter(G,"strokeLinearGradientColorStops"),c.Factory.addGetterSetter(G,"fillRadialGradientStartRadius",0),c.Factory.addGetterSetter(G,"fillRadialGradientEndRadius",0),c.Factory.addGetterSetter(G,"fillRadialGradientColorStops"),c.Factory.addGetterSetter(G,"fillPatternRepeat","repeat"),c.Factory.addGetterSetter(G,"fillEnabled",!0),c.Factory.addGetterSetter(G,"strokeEnabled",!0),c.Factory.addGetterSetter(G,"shadowEnabled",!0),c.Factory.addGetterSetter(G,"dashEnabled",!0),c.Factory.addGetterSetter(G,"strokeScaleEnabled",!0),c.Factory.addGetterSetter(G,"fillPriority","color"),c.Factory.addComponentsGetterSetter(G,"fillPatternOffset",["x","y"]),c.Factory.addGetterSetter(G,"fillPatternOffsetX",0,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternOffsetY",0,(0,d.getNumberValidator)()),c.Factory.addComponentsGetterSetter(G,"fillPatternScale",["x","y"]),c.Factory.addGetterSetter(G,"fillPatternScaleX",1,(0,d.getNumberValidator)()),c.Factory.addGetterSetter(G,"fillPatternScaleY",1,(0,d.getNumberValidator)()),c.Factory.addComponentsGetterSetter(G,"fillLinearGradientStartPoint",["x","y"]),c.Factory.addComponentsGetterSetter(G,"strokeLinearGradientStartPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillLinearGradientStartPointX",0),c.Factory.addGetterSetter(G,"strokeLinearGradientStartPointX",0),c.Factory.addGetterSetter(G,"fillLinearGradientStartPointY",0),c.Factory.addGetterSetter(G,"strokeLinearGradientStartPointY",0),c.Factory.addComponentsGetterSetter(G,"fillLinearGradientEndPoint",["x","y"]),c.Factory.addComponentsGetterSetter(G,"strokeLinearGradientEndPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillLinearGradientEndPointX",0),c.Factory.addGetterSetter(G,"strokeLinearGradientEndPointX",0),c.Factory.addGetterSetter(G,"fillLinearGradientEndPointY",0),c.Factory.addGetterSetter(G,"strokeLinearGradientEndPointY",0),c.Factory.addComponentsGetterSetter(G,"fillRadialGradientStartPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillRadialGradientStartPointX",0),c.Factory.addGetterSetter(G,"fillRadialGradientStartPointY",0),c.Factory.addComponentsGetterSetter(G,"fillRadialGradientEndPoint",["x","y"]),c.Factory.addGetterSetter(G,"fillRadialGradientEndPointX",0),c.Factory.addGetterSetter(G,"fillRadialGradientEndPointY",0),c.Factory.addGetterSetter(G,"fillPatternRotation",0),c.Factory.addGetterSetter(G,"fillRule",void 0,(0,d.getStringValidator)()),c.Factory.backCompat(G,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(Shape);Object.defineProperty(Layer$1,"__esModule",{value:!0});Layer$1.Layer=void 0;const Util_1$b=Util,Container_1$1=Container$1,Node_1$g=Node$1,Factory_1$w=Factory,Canvas_1=Canvas$1,Validators_1$v=Validators,Shape_1$g=Shape,Global_1$k=Global;var HASH="#",BEFORE_DRAW="beforeDraw",DRAW="draw",INTERSECTION_OFFSETS=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],INTERSECTION_OFFSETS_LEN=INTERSECTION_OFFSETS.length;class Layer extends Container_1$1.Container{constructor(a){super(a),this.canvas=new Canvas_1.SceneCanvas,this.hitCanvas=new Canvas_1.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(a){return this.getContext().clear(a),this.getHitCanvas().getContext().clear(a),this}setZIndex(a){super.setZIndex(a);var s=this.getStage();return s&&s.content&&(s.content.removeChild(this.getNativeCanvasElement()),a{this.draw(),this._waitingForDraw=!1})),this}getIntersection(a){if(!this.isListening()||!this.isVisible())return null;for(var s=1,c=!1;;){for(let f=0;f0)return{antialiased:!0};return{}}drawScene(a,s){var c=this.getLayer(),f=a||c&&c.getCanvas();return this._fire(BEFORE_DRAW,{node:this}),this.clearBeforeDraw()&&f.getContext().clear(),Container_1$1.Container.prototype.drawScene.call(this,f,s),this._fire(DRAW,{node:this}),this}drawHit(a,s){var c=this.getLayer(),f=a||c&&c.hitCanvas;return c&&c.clearBeforeDraw()&&c.getHitCanvas().getContext().clear(),Container_1$1.Container.prototype.drawHit.call(this,f,s),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(a){Util_1$b.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(a)}getHitGraphEnabled(a){return Util_1$b.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var a=this.parent,s=!!this.hitCanvas._canvas.parentNode;s?a.content.removeChild(this.hitCanvas._canvas):a.content.appendChild(this.hitCanvas._canvas)}}destroy(){return Util_1$b.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}Layer$1.Layer=Layer;Layer.prototype.nodeType="Layer";(0,Global_1$k._registerNode)(Layer);Factory_1$w.Factory.addGetterSetter(Layer,"imageSmoothingEnabled",!0);Factory_1$w.Factory.addGetterSetter(Layer,"clearBeforeDraw",!0);Factory_1$w.Factory.addGetterSetter(Layer,"hitGraphEnabled",!0,(0,Validators_1$v.getBooleanValidator)());var FastLayer$1={};Object.defineProperty(FastLayer$1,"__esModule",{value:!0});FastLayer$1.FastLayer=void 0;const Util_1$a=Util,Layer_1=Layer$1,Global_1$j=Global;class FastLayer extends Layer_1.Layer{constructor(a){super(a),this.listening(!1),Util_1$a.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}FastLayer$1.FastLayer=FastLayer;FastLayer.prototype.nodeType="FastLayer";(0,Global_1$j._registerNode)(FastLayer);var Group$1={};Object.defineProperty(Group$1,"__esModule",{value:!0});Group$1.Group=void 0;const Util_1$9=Util,Container_1=Container$1,Global_1$i=Global;class Group extends Container_1.Container{_validateAdd(a){var s=a.getType();s!=="Group"&&s!=="Shape"&&Util_1$9.Util.throw("You may only add groups and shapes to groups.")}}Group$1.Group=Group;Group.prototype.nodeType="Group";(0,Global_1$i._registerNode)(Group);var Animation$1={};Object.defineProperty(Animation$1,"__esModule",{value:!0});Animation$1.Animation=void 0;const Global_1$h=Global,Util_1$8=Util,now$3=function(){return Global_1$h.glob.performance&&Global_1$h.glob.performance.now?function(){return Global_1$h.glob.performance.now()}:function(){return new Date().getTime()}}();class Animation{constructor(a,s){this.id=Animation.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:now$3(),frameRate:0},this.func=a,this.setLayers(s)}setLayers(a){let s=[];return a&&(s=Array.isArray(a)?a:[a]),this.layers=s,this}getLayers(){return this.layers}addLayer(a){const s=this.layers,c=s.length;for(let f=0;fthis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():O<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=O,this.update())}getTime(){return this._time}setPosition(O){this.prevPos=this._pos,this.propFunc(O),this._pos=O}getPosition(O){return O===void 0&&(O=this._time),this.func(O,this.begin,this._change,this.duration)}play(){this.state=_,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=S,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(O){this.pause(),this._time=O,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var O=this.getTimer()-this._startTime;this.state===_?this.setTime(O):this.state===S&&this.setTime(this.duration-O)}pause(){this.state=y,this.fire("onPause")}getTimer(){return new Date().getTime()}}class T{constructor(O){var A=this,F=O.node,j=F._id,L,M=O.easing||o.Easings.Linear,I=!!O.yoyo,U;typeof O.duration=="undefined"?L=.3:O.duration===0?L=.001:L=O.duration,this.node=F,this._id=b++;var z=F.getLayer()||(F instanceof f.Konva.Stage?F.getLayers():null);z||a.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new s.Animation(function(){A.tween.onEnterFrame()},z),this.tween=new P(U,function(H){A._tweenFunc(H)},M,0,1,L*1e3,I),this._addListeners(),T.attrs[j]||(T.attrs[j]={}),T.attrs[j][this._id]||(T.attrs[j][this._id]={}),T.tweens[j]||(T.tweens[j]={});for(U in O)d[U]===void 0&&this._addAttr(U,O[U]);this.reset(),this.onFinish=O.onFinish,this.onReset=O.onReset,this.onUpdate=O.onUpdate}_addAttr(O,A){var F=this.node,j=F._id,L,M,I,U,z,H,G,X;if(I=T.tweens[j][O],I&&delete T.attrs[j][I][O],L=F.getAttr(O),a.Util._isArray(A))if(M=[],z=Math.max(A.length,L.length),O==="points"&&A.length!==L.length&&(A.length>L.length?(G=L,L=a.Util._prepareArrayForTween(L,A,F.closed())):(H=A,A=a.Util._prepareArrayForTween(A,L,F.closed()))),O.indexOf("fill")===0)for(U=0;U{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var O=this.node,A=T.attrs[O._id][this._id];A.points&&A.points.trueEnd&&O.setAttr("points",A.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var O=this.node,A=T.attrs[O._id][this._id];A.points&&A.points.trueStart&&O.points(A.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(O){return this.tween.seek(O*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var O=this.node._id,A=this._id,F=T.tweens[O],j;this.pause();for(j in F)delete T.tweens[O][j];delete T.attrs[O][A]}}o.Tween=T,T.attrs={},T.tweens={},c.Node.prototype.to=function(C){var O=C.onFinish;C.node=this,C.onFinish=function(){this.destroy(),O&&O()};var A=new T(C);A.play()},o.Easings={BackEaseIn(C,O,A,F){var j=1.70158;return A*(C/=F)*C*((j+1)*C-j)+O},BackEaseOut(C,O,A,F){var j=1.70158;return A*((C=C/F-1)*C*((j+1)*C+j)+1)+O},BackEaseInOut(C,O,A,F){var j=1.70158;return(C/=F/2)<1?A/2*(C*C*(((j*=1.525)+1)*C-j))+O:A/2*((C-=2)*C*(((j*=1.525)+1)*C+j)+2)+O},ElasticEaseIn(C,O,A,F,j,L){var M=0;return C===0?O:(C/=F)===1?O+A:(L||(L=F*.3),!j||j0?a:s),$=y*s,P=_*(_>0?a:s),T=S*(S>0?s:a);return{x:b,y:c?-1*T:P,width:$-b,height:T-P}}}Arc$1.Arc=Arc;Arc.prototype._centroid=!0;Arc.prototype.className="Arc";Arc.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Global_2$2._registerNode)(Arc);Factory_1$v.Factory.addGetterSetter(Arc,"innerRadius",0,(0,Validators_1$u.getNumberValidator)());Factory_1$v.Factory.addGetterSetter(Arc,"outerRadius",0,(0,Validators_1$u.getNumberValidator)());Factory_1$v.Factory.addGetterSetter(Arc,"angle",0,(0,Validators_1$u.getNumberValidator)());Factory_1$v.Factory.addGetterSetter(Arc,"clockwise",!1,(0,Validators_1$u.getBooleanValidator)());var Arrow$1={},Line$1={};Object.defineProperty(Line$1,"__esModule",{value:!0});Line$1.Line=void 0;const Factory_1$u=Factory,Shape_1$e=Shape,Validators_1$t=Validators,Global_1$f=Global;function getControlPoints(o,a,s,c,f,d,y){var _=Math.sqrt(Math.pow(s-o,2)+Math.pow(c-a,2)),S=Math.sqrt(Math.pow(f-s,2)+Math.pow(d-c,2)),b=y*_/(_+S),$=y*S/(_+S),P=s-b*(f-o),T=c-b*(d-a),C=s+$*(f-o),O=c+$*(d-a);return[P,T,C,O]}function expandPoints(o,a){var s=o.length,c=[],f,d;for(f=2;f4){for(_=this.getTensionPoints(),S=_.length,b=d?0:4,d||a.quadraticCurveTo(_[0],_[1],_[2],_[3]);b{let b,$,P;b=S/2,$=0;for(let C=0;C<20;C++)P=b*o.tValues[20][C]+b,$+=o.cValues[20][C]*c(y,_,P);return b*$};o.getCubicArcLength=a;const s=(y,_,S)=>{S===void 0&&(S=1);const b=y[0]-2*y[1]+y[2],$=_[0]-2*_[1]+_[2],P=2*y[1]-2*y[0],T=2*_[1]-2*_[0],C=4*(b*b+$*$),O=4*(b*P+$*T),A=P*P+T*T;if(C===0)return S*Math.sqrt(Math.pow(y[2]-y[0],2)+Math.pow(_[2]-_[0],2));const F=O/(2*C),j=A/C,L=S+F,M=j-F*F,I=L*L+M>0?Math.sqrt(L*L+M):0,U=F*F+M>0?Math.sqrt(F*F+M):0,z=F+Math.sqrt(F*F+M)!==0?M*Math.log(Math.abs((L+I)/(F+U))):0;return Math.sqrt(C)/2*(L*I-F*U+z)};o.getQuadraticArcLength=s;function c(y,_,S){const b=f(1,S,y),$=f(1,S,_),P=b*b+$*$;return Math.sqrt(P)}const f=(y,_,S)=>{const b=S.length-1;let $,P;if(b===0)return 0;if(y===0){P=0;for(let T=0;T<=b;T++)P+=o.binomialCoefficients[b][T]*Math.pow(1-_,b-T)*Math.pow(_,T)*S[T];return P}else{$=new Array(b);for(let T=0;T{let b=1,$=y/_,P=(y-S($))/_,T=0;for(;b>.001;){const C=S($+P),O=Math.abs(y-C)/_;if(O500)break}return $};o.t2length=d})(BezierFunctions);Object.defineProperty(Path$1,"__esModule",{value:!0});Path$1.Path=void 0;const Factory_1$t=Factory,Shape_1$d=Shape,Global_1$e=Global,BezierFunctions_1=BezierFunctions;class Path extends Shape_1$d.Shape{constructor(a){super(a),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=Path.parsePathData(this.data()),this.pathLength=Path.getPathLength(this.dataArray)}_sceneFunc(a){var s=this.dataArray;a.beginPath();for(var c=!1,f=0;f$?b:$,F=b>$?1:b/$,j=b>$?$/b:1;a.translate(_,S),a.rotate(C),a.scale(F,j),a.arc(0,0,A,P,P+T,1-O),a.scale(1/F,1/j),a.rotate(-C),a.translate(-_,-S);break;case"z":c=!0,a.closePath();break}}!c&&!this.hasFill()?a.strokeShape(this):a.fillStrokeShape(this)}getSelfRect(){var a=[];this.dataArray.forEach(function(b){if(b.command==="A"){var $=b.points[4],P=b.points[5],T=b.points[4]+P,C=Math.PI/180;if(Math.abs($-T)T;O-=C){const A=Path.getPointOnEllipticalArc(b.points[0],b.points[1],b.points[2],b.points[3],O,0);a.push(A.x,A.y)}else for(let O=$+C;Os[f].pathLength;)a-=s[f].pathLength,++f;if(f===d)return c=s[f-1].points.slice(-2),{x:c[0],y:c[1]};if(a<.01)return c=s[f].points.slice(0,2),{x:c[0],y:c[1]};var y=s[f],_=y.points;switch(y.command){case"L":return Path.getPointOnLine(a,y.start.x,y.start.y,_[0],_[1]);case"C":return Path.getPointOnCubicBezier((0,BezierFunctions_1.t2length)(a,Path.getPathLength(s),A=>(0,BezierFunctions_1.getCubicArcLength)([y.start.x,_[0],_[2],_[4]],[y.start.y,_[1],_[3],_[5]],A)),y.start.x,y.start.y,_[0],_[1],_[2],_[3],_[4],_[5]);case"Q":return Path.getPointOnQuadraticBezier((0,BezierFunctions_1.t2length)(a,Path.getPathLength(s),A=>(0,BezierFunctions_1.getQuadraticArcLength)([y.start.x,_[0],_[2]],[y.start.y,_[1],_[3]],A)),y.start.x,y.start.y,_[0],_[1],_[2],_[3]);case"A":var S=_[0],b=_[1],$=_[2],P=_[3],T=_[4],C=_[5],O=_[6];return T+=C*a/y.pathLength,Path.getPointOnEllipticalArc(S,b,$,P,T,O)}return null}static getPointOnLine(a,s,c,f,d,y,_){y===void 0&&(y=s),_===void 0&&(_=c);var S=(d-c)/(f-s+1e-8),b=Math.sqrt(a*a/(1+S*S));f0&&!isNaN(O[0]);){var L="",M=[],I=S,U=b,z,H,G,X,W,K,ie,ee,de,Z;switch(C){case"l":S+=O.shift(),b+=O.shift(),L="L",M.push(S,b);break;case"L":S=O.shift(),b=O.shift(),M.push(S,b);break;case"m":var Q=O.shift(),J=O.shift();if(S+=Q,b+=J,L="M",y.length>2&&y[y.length-1].command==="z"){for(var ne=y.length-2;ne>=0;ne--)if(y[ne].command==="M"){S=y[ne].points[0]+Q,b=y[ne].points[1]+J;break}}M.push(S,b),C="l";break;case"M":S=O.shift(),b=O.shift(),L="M",M.push(S,b),C="L";break;case"h":S+=O.shift(),L="L",M.push(S,b);break;case"H":S=O.shift(),L="L",M.push(S,b);break;case"v":b+=O.shift(),L="L",M.push(S,b);break;case"V":b=O.shift(),L="L",M.push(S,b);break;case"C":M.push(O.shift(),O.shift(),O.shift(),O.shift()),S=O.shift(),b=O.shift(),M.push(S,b);break;case"c":M.push(S+O.shift(),b+O.shift(),S+O.shift(),b+O.shift()),S+=O.shift(),b+=O.shift(),L="C",M.push(S,b);break;case"S":H=S,G=b,z=y[y.length-1],z.command==="C"&&(H=S+(S-z.points[2]),G=b+(b-z.points[3])),M.push(H,G,O.shift(),O.shift()),S=O.shift(),b=O.shift(),L="C",M.push(S,b);break;case"s":H=S,G=b,z=y[y.length-1],z.command==="C"&&(H=S+(S-z.points[2]),G=b+(b-z.points[3])),M.push(H,G,S+O.shift(),b+O.shift()),S+=O.shift(),b+=O.shift(),L="C",M.push(S,b);break;case"Q":M.push(O.shift(),O.shift()),S=O.shift(),b=O.shift(),M.push(S,b);break;case"q":M.push(S+O.shift(),b+O.shift()),S+=O.shift(),b+=O.shift(),L="Q",M.push(S,b);break;case"T":H=S,G=b,z=y[y.length-1],z.command==="Q"&&(H=S+(S-z.points[0]),G=b+(b-z.points[1])),S=O.shift(),b=O.shift(),L="Q",M.push(H,G,S,b);break;case"t":H=S,G=b,z=y[y.length-1],z.command==="Q"&&(H=S+(S-z.points[0]),G=b+(b-z.points[1])),S+=O.shift(),b+=O.shift(),L="Q",M.push(H,G,S,b);break;case"A":X=O.shift(),W=O.shift(),K=O.shift(),ie=O.shift(),ee=O.shift(),de=S,Z=b,S=O.shift(),b=O.shift(),L="A",M=this.convertEndpointToCenterParameterization(de,Z,S,b,ie,ee,X,W,K);break;case"a":X=O.shift(),W=O.shift(),K=O.shift(),ie=O.shift(),ee=O.shift(),de=S,Z=b,S+=O.shift(),b+=O.shift(),L="A",M=this.convertEndpointToCenterParameterization(de,Z,S,b,ie,ee,X,W,K);break}y.push({command:L||C,points:M,start:{x:I,y:U},pathLength:this.calcLength(I,U,L||C,M)})}(C==="z"||C==="Z")&&y.push({command:"z",points:[],start:void 0,pathLength:0})}return y}static calcLength(a,s,c,f){var d,y,_,S,b=Path;switch(c){case"L":return b.getLineLength(a,s,f[0],f[1]);case"C":return(0,BezierFunctions_1.getCubicArcLength)([a,f[0],f[2],f[4]],[s,f[1],f[3],f[5]],1);case"Q":return(0,BezierFunctions_1.getQuadraticArcLength)([a,f[0],f[2]],[s,f[1],f[3]],1);case"A":d=0;var $=f[4],P=f[5],T=f[4]+P,C=Math.PI/180;if(Math.abs($-T)T;S-=C)_=b.getPointOnEllipticalArc(f[0],f[1],f[2],f[3],S,0),d+=b.getLineLength(y.x,y.y,_.x,_.y),y=_;else for(S=$+C;S1&&(_*=Math.sqrt(C),S*=Math.sqrt(C));var O=Math.sqrt((_*_*(S*S)-_*_*(T*T)-S*S*(P*P))/(_*_*(T*T)+S*S*(P*P)));d===y&&(O*=-1),isNaN(O)&&(O=0);var A=O*_*T/S,F=O*-S*P/_,j=(a+c)/2+Math.cos($)*A-Math.sin($)*F,L=(s+f)/2+Math.sin($)*A+Math.cos($)*F,M=function(W){return Math.sqrt(W[0]*W[0]+W[1]*W[1])},I=function(W,K){return(W[0]*K[0]+W[1]*K[1])/(M(W)*M(K))},U=function(W,K){return(W[0]*K[1]=1&&(X=0),y===0&&X>0&&(X=X-2*Math.PI),y===1&&X<0&&(X=X+2*Math.PI),[j,L,_,S,z,X,$,y]}}Path$1.Path=Path;Path.prototype.className="Path";Path.prototype._attrsAffectingSize=["data"];(0,Global_1$e._registerNode)(Path);Factory_1$t.Factory.addGetterSetter(Path,"data");Object.defineProperty(Arrow$1,"__esModule",{value:!0});Arrow$1.Arrow=void 0;const Factory_1$s=Factory,Line_1$1=Line$1,Validators_1$s=Validators,Global_1$d=Global,Path_1$2=Path$1;class Arrow extends Line_1$1.Line{_sceneFunc(a){super._sceneFunc(a);var s=Math.PI*2,c=this.points(),f=c,d=this.tension()!==0&&c.length>4;d&&(f=this.getTensionPoints());var y=this.pointerLength(),_=c.length,S,b;if(d){const T=[f[f.length-4],f[f.length-3],f[f.length-2],f[f.length-1],c[_-2],c[_-1]],C=Path_1$2.Path.calcLength(f[f.length-4],f[f.length-3],"C",T),O=Path_1$2.Path.getPointOnQuadraticBezier(Math.min(1,1-y/C),T[0],T[1],T[2],T[3],T[4],T[5]);S=c[_-2]-O.x,b=c[_-1]-O.y}else S=c[_-2]-c[_-4],b=c[_-1]-c[_-3];var $=(Math.atan2(b,S)+s)%s,P=this.pointerWidth();this.pointerAtEnding()&&(a.save(),a.beginPath(),a.translate(c[_-2],c[_-1]),a.rotate($),a.moveTo(0,0),a.lineTo(-y,P/2),a.lineTo(-y,-P/2),a.closePath(),a.restore(),this.__fillStroke(a)),this.pointerAtBeginning()&&(a.save(),a.beginPath(),a.translate(c[0],c[1]),d?(S=(f[0]+f[2])/2-c[0],b=(f[1]+f[3])/2-c[1]):(S=c[2]-c[0],b=c[3]-c[1]),a.rotate((Math.atan2(-b,-S)+s)%s),a.moveTo(0,0),a.lineTo(-y,P/2),a.lineTo(-y,-P/2),a.closePath(),a.restore(),this.__fillStroke(a))}__fillStroke(a){var s=this.dashEnabled();s&&(this.attrs.dashEnabled=!1,a.setLineDash([])),a.fillStrokeShape(this),s&&(this.attrs.dashEnabled=!0)}getSelfRect(){const a=super.getSelfRect(),s=this.pointerWidth()/2;return{x:a.x-s,y:a.y-s,width:a.width+s*2,height:a.height+s*2}}}Arrow$1.Arrow=Arrow;Arrow.prototype.className="Arrow";(0,Global_1$d._registerNode)(Arrow);Factory_1$s.Factory.addGetterSetter(Arrow,"pointerLength",10,(0,Validators_1$s.getNumberValidator)());Factory_1$s.Factory.addGetterSetter(Arrow,"pointerWidth",10,(0,Validators_1$s.getNumberValidator)());Factory_1$s.Factory.addGetterSetter(Arrow,"pointerAtBeginning",!1);Factory_1$s.Factory.addGetterSetter(Arrow,"pointerAtEnding",!0);var Circle$1={};Object.defineProperty(Circle$1,"__esModule",{value:!0});Circle$1.Circle=void 0;const Factory_1$r=Factory,Shape_1$c=Shape,Validators_1$r=Validators,Global_1$c=Global;class Circle extends Shape_1$c.Shape{_sceneFunc(a){a.beginPath(),a.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(a){this.radius()!==a/2&&this.radius(a/2)}setHeight(a){this.radius()!==a/2&&this.radius(a/2)}}Circle$1.Circle=Circle;Circle.prototype._centroid=!0;Circle.prototype.className="Circle";Circle.prototype._attrsAffectingSize=["radius"];(0,Global_1$c._registerNode)(Circle);Factory_1$r.Factory.addGetterSetter(Circle,"radius",0,(0,Validators_1$r.getNumberValidator)());var Ellipse$1={};Object.defineProperty(Ellipse$1,"__esModule",{value:!0});Ellipse$1.Ellipse=void 0;const Factory_1$q=Factory,Shape_1$b=Shape,Validators_1$q=Validators,Global_1$b=Global;class Ellipse extends Shape_1$b.Shape{_sceneFunc(a){var s=this.radiusX(),c=this.radiusY();a.beginPath(),a.save(),s!==c&&a.scale(1,c/s),a.arc(0,0,s,0,Math.PI*2,!1),a.restore(),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(a){this.radiusX(a/2)}setHeight(a){this.radiusY(a/2)}}Ellipse$1.Ellipse=Ellipse;Ellipse.prototype.className="Ellipse";Ellipse.prototype._centroid=!0;Ellipse.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,Global_1$b._registerNode)(Ellipse);Factory_1$q.Factory.addComponentsGetterSetter(Ellipse,"radius",["x","y"]);Factory_1$q.Factory.addGetterSetter(Ellipse,"radiusX",0,(0,Validators_1$q.getNumberValidator)());Factory_1$q.Factory.addGetterSetter(Ellipse,"radiusY",0,(0,Validators_1$q.getNumberValidator)());var Image$1={};Object.defineProperty(Image$1,"__esModule",{value:!0});Image$1.Image=void 0;const Util_1$7=Util,Factory_1$p=Factory,Shape_1$a=Shape,Global_1$a=Global,Validators_1$p=Validators;class Image extends Shape_1$a.Shape{constructor(a){super(a),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const a=this.image();a&&a.complete||a&&a.readyState===4||a&&a.addEventListener&&a.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(a){const s=this.getWidth(),c=this.getHeight(),f=this.cornerRadius(),d=this.attrs.image;let y;if(d){const _=this.attrs.cropWidth,S=this.attrs.cropHeight;_&&S?y=[d,this.cropX(),this.cropY(),_,S,0,0,s,c]:y=[d,0,0,s,c]}(this.hasFill()||this.hasStroke()||f)&&(a.beginPath(),f?Util_1$7.Util.drawRoundedRectPath(a,s,c,f):a.rect(0,0,s,c),a.closePath(),a.fillStrokeShape(this)),d&&(f&&a.clip(),a.drawImage.apply(a,y))}_hitFunc(a){var s=this.width(),c=this.height(),f=this.cornerRadius();a.beginPath(),f?Util_1$7.Util.drawRoundedRectPath(a,s,c,f):a.rect(0,0,s,c),a.closePath(),a.fillStrokeShape(this)}getWidth(){var a,s;return(a=this.attrs.width)!==null&&a!==void 0?a:(s=this.image())===null||s===void 0?void 0:s.width}getHeight(){var a,s;return(a=this.attrs.height)!==null&&a!==void 0?a:(s=this.image())===null||s===void 0?void 0:s.height}static fromURL(a,s,c=null){var f=Util_1$7.Util.createImageElement();f.onload=function(){var d=new Image({image:f});s(d)},f.onerror=c,f.crossOrigin="Anonymous",f.src=a}}Image$1.Image=Image;Image.prototype.className="Image";(0,Global_1$a._registerNode)(Image);Factory_1$p.Factory.addGetterSetter(Image,"cornerRadius",0,(0,Validators_1$p.getNumberOrArrayOfNumbersValidator)(4));Factory_1$p.Factory.addGetterSetter(Image,"image");Factory_1$p.Factory.addComponentsGetterSetter(Image,"crop",["x","y","width","height"]);Factory_1$p.Factory.addGetterSetter(Image,"cropX",0,(0,Validators_1$p.getNumberValidator)());Factory_1$p.Factory.addGetterSetter(Image,"cropY",0,(0,Validators_1$p.getNumberValidator)());Factory_1$p.Factory.addGetterSetter(Image,"cropWidth",0,(0,Validators_1$p.getNumberValidator)());Factory_1$p.Factory.addGetterSetter(Image,"cropHeight",0,(0,Validators_1$p.getNumberValidator)());var Label$1={};Object.defineProperty(Label$1,"__esModule",{value:!0});Label$1.Tag=Label$1.Label=void 0;const Factory_1$o=Factory,Shape_1$9=Shape,Group_1$1=Group$1,Validators_1$o=Validators,Global_1$9=Global;var ATTR_CHANGE_LIST$2=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],CHANGE_KONVA$1="Change.konva",NONE$1="none",UP="up",RIGHT$1="right",DOWN="down",LEFT$1="left",attrChangeListLen$1=ATTR_CHANGE_LIST$2.length;class Label extends Group_1$1.Group{constructor(a){super(a),this.on("add.konva",function(s){this._addListeners(s.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(a){var s=this,c,f=function(){s._sync()};for(c=0;c{s=Math.min(s,y.x),c=Math.max(c,y.x),f=Math.min(f,y.y),d=Math.max(d,y.y)}),{x:s,y:f,width:c-s,height:d-f}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(a){this.radius(a/2)}setHeight(a){this.radius(a/2)}}RegularPolygon$1.RegularPolygon=RegularPolygon;RegularPolygon.prototype.className="RegularPolygon";RegularPolygon.prototype._centroid=!0;RegularPolygon.prototype._attrsAffectingSize=["radius"];(0,Global_1$7._registerNode)(RegularPolygon);Factory_1$m.Factory.addGetterSetter(RegularPolygon,"radius",0,(0,Validators_1$m.getNumberValidator)());Factory_1$m.Factory.addGetterSetter(RegularPolygon,"sides",0,(0,Validators_1$m.getNumberValidator)());var Ring$1={};Object.defineProperty(Ring$1,"__esModule",{value:!0});Ring$1.Ring=void 0;const Factory_1$l=Factory,Shape_1$6=Shape,Validators_1$l=Validators,Global_1$6=Global;var PIx2=Math.PI*2;class Ring extends Shape_1$6.Shape{_sceneFunc(a){a.beginPath(),a.arc(0,0,this.innerRadius(),0,PIx2,!1),a.moveTo(this.outerRadius(),0),a.arc(0,0,this.outerRadius(),PIx2,0,!0),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(a){this.outerRadius(a/2)}setHeight(a){this.outerRadius(a/2)}}Ring$1.Ring=Ring;Ring.prototype.className="Ring";Ring.prototype._centroid=!0;Ring.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Global_1$6._registerNode)(Ring);Factory_1$l.Factory.addGetterSetter(Ring,"innerRadius",0,(0,Validators_1$l.getNumberValidator)());Factory_1$l.Factory.addGetterSetter(Ring,"outerRadius",0,(0,Validators_1$l.getNumberValidator)());var Sprite$1={};Object.defineProperty(Sprite$1,"__esModule",{value:!0});Sprite$1.Sprite=void 0;const Factory_1$k=Factory,Shape_1$5=Shape,Animation_1=Animation$1,Validators_1$k=Validators,Global_1$5=Global;class Sprite extends Shape_1$5.Shape{constructor(a){super(a),this._updated=!0,this.anim=new Animation_1.Animation(()=>{var s=this._updated;return this._updated=!1,s}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(a){var s=this.animation(),c=this.frameIndex(),f=c*4,d=this.animations()[s],y=this.frameOffsets(),_=d[f+0],S=d[f+1],b=d[f+2],$=d[f+3],P=this.image();if((this.hasFill()||this.hasStroke())&&(a.beginPath(),a.rect(0,0,b,$),a.closePath(),a.fillStrokeShape(this)),P)if(y){var T=y[s],C=c*2;a.drawImage(P,_,S,b,$,T[C+0],T[C+1],b,$)}else a.drawImage(P,_,S,b,$,0,0,b,$)}_hitFunc(a){var s=this.animation(),c=this.frameIndex(),f=c*4,d=this.animations()[s],y=this.frameOffsets(),_=d[f+2],S=d[f+3];if(a.beginPath(),y){var b=y[s],$=c*2;a.rect(b[$+0],b[$+1],_,S)}else a.rect(0,0,_,S);a.closePath(),a.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var a=this;this.interval=setInterval(function(){a._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var a=this.getLayer();this.anim.setLayers(a),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var a=this.frameIndex(),s=this.animation(),c=this.animations(),f=c[s],d=f.length/4;a{a=a.trim();const s=a.indexOf(" ")>=0,c=a.indexOf('"')>=0||a.indexOf("'")>=0;return s&&!c&&(a=`"${a}"`),a}).join(", ")}var dummyContext;function getDummyContext(){return dummyContext||(dummyContext=Util_1$5.Util.createCanvasElement().getContext(CONTEXT_2D),dummyContext)}function _fillFunc$1(o){o.fillText(this._partialText,this._partialTextX,this._partialTextY)}function _strokeFunc$1(o){o.setAttr("miterLimit",2),o.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function checkDefaultFill(o){return o=o||{},!o.fillLinearGradientColorStops&&!o.fillRadialGradientColorStops&&!o.fillPatternImage&&(o.fill=o.fill||"black"),o}let Text$3=class extends Shape_1$3.Shape{constructor(a){super(checkDefaultFill(a)),this._partialTextX=0,this._partialTextY=0;for(var s=0;s1&&(L+=y)}}}_hitFunc(a){var s=this.getWidth(),c=this.getHeight();a.beginPath(),a.rect(0,0,s,c),a.closePath(),a.fillStrokeShape(this)}setText(a){var s=Util_1$5.Util._isString(a)?a:a==null?"":a+"";return this._setAttr(TEXT,s),this}getWidth(){var a=this.attrs.width===AUTO||this.attrs.width===void 0;return a?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var a=this.attrs.height===AUTO||this.attrs.height===void 0;return a?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return Util_1$5.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(a){var s=getDummyContext(),c=this.fontSize(),f;return s.save(),s.font=this._getContextFont(),f=s.measureText(a),s.restore(),{width:f.width,height:c}}_getContextFont(){return this.fontStyle()+SPACE$1+this.fontVariant()+SPACE$1+(this.fontSize()+PX_SPACE)+normalizeFontFamily(this.fontFamily())}_addTextLine(a){this.align()===JUSTIFY&&(a=a.trim());var c=this._getTextWidth(a);return this.textArr.push({text:a,width:c,lastInParagraph:!1})}_getTextWidth(a){var s=this.letterSpacing(),c=a.length;return getDummyContext().measureText(a).width+(c?s*(c-1):0)}_setTextData(){var a=this.text().split(` +`),s=+this.fontSize(),c=0,f=this.lineHeight()*s,d=this.attrs.width,y=this.attrs.height,_=d!==AUTO&&d!==void 0,S=y!==AUTO&&y!==void 0,b=this.padding(),$=d-b*2,P=y-b*2,T=0,C=this.wrap(),O=C!==NONE,A=C!==CHAR&&O,F=this.ellipsis();this.textArr=[],getDummyContext().font=this._getContextFont();for(var j=F?this._getTextWidth(ELLIPSIS):0,L=0,M=a.length;L$)for(;I.length>0;){for(var z=0,H=I.length,G="",X=0;z>>1,K=I.slice(0,W+1),ie=this._getTextWidth(K)+j;ie<=$?(z=W+1,G=K,X=ie):H=W}if(G){if(A){var ee,de=I[G.length],Z=de===SPACE$1||de===DASH;Z&&X<=$?ee=G.length:ee=Math.max(G.lastIndexOf(SPACE$1),G.lastIndexOf(DASH))+1,ee>0&&(z=ee,G=G.slice(0,z),X=this._getTextWidth(G))}G=G.trimRight(),this._addTextLine(G),c=Math.max(c,X),T+=f;var Q=this._shouldHandleEllipsis(T);if(Q){this._tryToAddEllipsisToLastLine();break}if(I=I.slice(z),I=I.trimLeft(),I.length>0&&(U=this._getTextWidth(I),U<=$)){this._addTextLine(I),T+=f,c=Math.max(c,U);break}}else break}else this._addTextLine(I),T+=f,c=Math.max(c,U),this._shouldHandleEllipsis(T)&&LP)break}this.textHeight=s,this.textWidth=c}_shouldHandleEllipsis(a){var s=+this.fontSize(),c=this.lineHeight()*s,f=this.attrs.height,d=f!==AUTO&&f!==void 0,y=this.padding(),_=f-y*2,S=this.wrap(),b=S!==NONE;return!b||d&&a+c>_}_tryToAddEllipsisToLastLine(){var a=this.attrs.width,s=a!==AUTO&&a!==void 0,c=this.padding(),f=a-c*2,d=this.ellipsis(),y=this.textArr[this.textArr.length-1];if(!(!y||!d)){if(s){var _=this._getTextWidth(y.text+ELLIPSIS)s?null:Path_1$1.Path.getPointAtLengthOfDataArray(a,this.dataArray)}_readDataAttribute(){this.dataArray=Path_1$1.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(a){a.setAttr("font",this._getContextFont()),a.setAttr("textBaseline",this.textBaseline()),a.setAttr("textAlign","left"),a.save();var s=this.textDecoration(),c=this.fill(),f=this.fontSize(),d=this.glyphInfo;s==="underline"&&a.beginPath();for(var y=0;y=1){var c=s[0].p0;a.moveTo(c.x,c.y)}for(var f=0;fo+`.${EVENTS_NAME}`).join(" "),NODES_RECT="nodesRect",TRANSFORM_CHANGE_STR=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],ANGLES={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const TOUCH_DEVICE="ontouchstart"in Global_1$1.Konva._global;function getCursor(o,a,s){if(o==="rotater")return s;a+=Util_1$3.Util.degToRad(ANGLES[o]||0);var c=(Util_1$3.Util.radToDeg(a)%360+360)%360;return Util_1$3.Util._inRange(c,315+22.5,360)||Util_1$3.Util._inRange(c,0,22.5)?"ns-resize":Util_1$3.Util._inRange(c,45-22.5,45+22.5)?"nesw-resize":Util_1$3.Util._inRange(c,90-22.5,90+22.5)?"ew-resize":Util_1$3.Util._inRange(c,135-22.5,135+22.5)?"nwse-resize":Util_1$3.Util._inRange(c,180-22.5,180+22.5)?"ns-resize":Util_1$3.Util._inRange(c,225-22.5,225+22.5)?"nesw-resize":Util_1$3.Util._inRange(c,270-22.5,270+22.5)?"ew-resize":Util_1$3.Util._inRange(c,315-22.5,315+22.5)?"nwse-resize":(Util_1$3.Util.error("Transformer has unknown angle for cursor detection: "+c),"pointer")}var ANCHORS_NAMES=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],MAX_SAFE_INTEGER$2=1e8;function getCenter(o){return{x:o.x+o.width/2*Math.cos(o.rotation)+o.height/2*Math.sin(-o.rotation),y:o.y+o.height/2*Math.cos(o.rotation)+o.width/2*Math.sin(o.rotation)}}function rotateAroundPoint(o,a,s){const c=s.x+(o.x-s.x)*Math.cos(a)-(o.y-s.y)*Math.sin(a),f=s.y+(o.x-s.x)*Math.sin(a)+(o.y-s.y)*Math.cos(a);return $e(se({},o),{rotation:o.rotation+a,x:c,y:f})}function rotateAroundCenter(o,a){const s=getCenter(o);return rotateAroundPoint(o,a,s)}function getSnap(o,a,s){let c=a;for(let f=0;ff.isAncestorOf(this)?(Util_1$3.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);this._nodes=a=s,a.length===1&&this.useSingleNodeRotation()?this.rotation(a[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(f=>{const d=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},y=f._attrsAffectingSize.map(_=>_+"Change."+this._getEventNamespace()).join(" ");f.on(y,d),f.on(TRANSFORM_CHANGE_STR.map(_=>_+`.${this._getEventNamespace()}`).join(" "),d),f.on(`absoluteTransformChange.${this._getEventNamespace()}`,d),this._proxyDrag(f)}),this._resetTransformCache();var c=!!this.findOne(".top-left");return c&&this.update(),this}_proxyDrag(a){let s;a.on(`dragstart.${this._getEventNamespace()}`,c=>{s=a.getAbsolutePosition(),!this.isDragging()&&a!==this.findOne(".back")&&this.startDrag(c,!1)}),a.on(`dragmove.${this._getEventNamespace()}`,c=>{if(!s)return;const f=a.getAbsolutePosition(),d=f.x-s.x,y=f.y-s.y;this.nodes().forEach(_=>{if(_===a||_.isDragging())return;const S=_.getAbsolutePosition();_.setAbsolutePosition({x:S.x+d,y:S.y+y}),_.startDrag(c)}),s=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(a=>{a.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(NODES_RECT),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(NODES_RECT,this.__getNodeRect)}__getNodeShape(a,s=this.rotation(),c){var f=a.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),d=a.getAbsoluteScale(c),y=a.getAbsolutePosition(c),_=f.x*d.x-a.offsetX()*d.x,S=f.y*d.y-a.offsetY()*d.y;const b=(Global_1$1.Konva.getAngle(a.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),$={x:y.x+_*Math.cos(b)+S*Math.sin(-b),y:y.y+S*Math.cos(b)+_*Math.sin(b),width:f.width*d.x,height:f.height*d.y,rotation:b};return rotateAroundPoint($,-Global_1$1.Konva.getAngle(s),{x:0,y:0})}__getNodeRect(){var a=this.getNode();if(!a)return{x:-MAX_SAFE_INTEGER$2,y:-MAX_SAFE_INTEGER$2,width:0,height:0,rotation:0};const s=[];this.nodes().map(b=>{const $=b.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var P=[{x:$.x,y:$.y},{x:$.x+$.width,y:$.y},{x:$.x+$.width,y:$.y+$.height},{x:$.x,y:$.y+$.height}],T=b.getAbsoluteTransform();P.forEach(function(C){var O=T.point(C);s.push(O)})});const c=new Util_1$3.Transform;c.rotate(-Global_1$1.Konva.getAngle(this.rotation()));var f=1/0,d=1/0,y=-1/0,_=-1/0;s.forEach(function(b){var $=c.point(b);f===void 0&&(f=y=$.x,d=_=$.y),f=Math.min(f,$.x),d=Math.min(d,$.y),y=Math.max(y,$.x),_=Math.max(_,$.y)}),c.invert();const S=c.point({x:f,y:d});return{x:S.x,y:S.y,width:y-f,height:_-d,rotation:Global_1$1.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),ANCHORS_NAMES.forEach(a=>{this._createAnchor(a)}),this._createAnchor("rotater")}_createAnchor(a){var s=new Rect_1$1.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:a+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:TOUCH_DEVICE?10:"auto"}),c=this;s.on("mousedown touchstart",function(f){c._handleMouseDown(f)}),s.on("dragstart",f=>{s.stopDrag(),f.cancelBubble=!0}),s.on("dragend",f=>{f.cancelBubble=!0}),s.on("mouseenter",()=>{var f=Global_1$1.Konva.getAngle(this.rotation()),d=this.rotateAnchorCursor(),y=getCursor(a,f,d);s.getStage().content&&(s.getStage().content.style.cursor=y),this._cursorChange=!0}),s.on("mouseout",()=>{s.getStage().content&&(s.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(s)}_createBack(){var a=new Shape_1$1.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(s,c){var f=c.getParent(),d=f.padding();s.beginPath(),s.rect(-d,-d,c.width()+d*2,c.height()+d*2),s.moveTo(c.width()/2,-d),f.rotateEnabled()&&f.rotateLineVisible()&&s.lineTo(c.width()/2,-f.rotateAnchorOffset()*Util_1$3.Util._sign(c.height())-d),s.fillStrokeShape(c)},hitFunc:(s,c)=>{if(this.shouldOverdrawWholeArea()){var f=this.padding();s.beginPath(),s.rect(-f,-f,c.width()+f*2,c.height()+f*2),s.fillStrokeShape(c)}}});this.add(a),this._proxyDrag(a),a.on("dragstart",s=>{s.cancelBubble=!0}),a.on("dragmove",s=>{s.cancelBubble=!0}),a.on("dragend",s=>{s.cancelBubble=!0}),this.on("dragmove",s=>{this.update()})}_handleMouseDown(a){this._movingAnchorName=a.target.name().split(" ")[0];var s=this._getNodeRect(),c=s.width,f=s.height,d=Math.sqrt(Math.pow(c,2)+Math.pow(f,2));this.sin=Math.abs(f/d),this.cos=Math.abs(c/d),typeof window!="undefined"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var y=a.target.getAbsolutePosition(),_=a.target.getStage().getPointerPosition();this._anchorDragOffset={x:_.x-y.x,y:_.y-y.y},this._fire("transformstart",{evt:a.evt,target:this.getNode()}),this._nodes.forEach(S=>{S._fire("transformstart",{evt:a.evt,target:S})})}_handleMouseMove(a){var s,c,f,d=this.findOne("."+this._movingAnchorName),y=d.getStage();y.setPointersPositions(a);const _=y.getPointerPosition();let S={x:_.x-this._anchorDragOffset.x,y:_.y-this._anchorDragOffset.y};const b=d.getAbsolutePosition();this.anchorDragBoundFunc()&&(S=this.anchorDragBoundFunc()(b,S,a)),d.setAbsolutePosition(S);const $=d.getAbsolutePosition();if(!(b.x===$.x&&b.y===$.y)){if(this._movingAnchorName==="rotater"){var P=this._getNodeRect();s=d.x()-P.width/2,c=-d.y()+P.height/2;let ee=Math.atan2(-c,s)+Math.PI/2;P.height<0&&(ee-=Math.PI);var T=Global_1$1.Konva.getAngle(this.rotation());const de=T+ee,Z=Global_1$1.Konva.getAngle(this.rotationSnapTolerance()),J=getSnap(this.rotationSnaps(),de,Z)-P.rotation,ne=rotateAroundCenter(P,J);this._fitNodesInto(ne,a);return}var C=this.shiftBehavior(),O;C==="inverted"?O=this.keepRatio()&&!a.shiftKey:C==="none"?O=this.keepRatio():O=this.keepRatio()||a.shiftKey;var M=this.centeredScaling()||a.altKey;if(this._movingAnchorName==="top-left"){if(O){var A=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};f=Math.sqrt(Math.pow(A.x-d.x(),2)+Math.pow(A.y-d.y(),2));var F=this.findOne(".top-left").x()>A.x?-1:1,j=this.findOne(".top-left").y()>A.y?-1:1;s=f*this.cos*F,c=f*this.sin*j,this.findOne(".top-left").x(A.x-s),this.findOne(".top-left").y(A.y-c)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(d.y());else if(this._movingAnchorName==="top-right"){if(O){var A=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};f=Math.sqrt(Math.pow(d.x()-A.x,2)+Math.pow(A.y-d.y(),2));var F=this.findOne(".top-right").x()A.y?-1:1;s=f*this.cos*F,c=f*this.sin*j,this.findOne(".top-right").x(A.x+s),this.findOne(".top-right").y(A.y-c)}var L=d.position();this.findOne(".top-left").y(L.y),this.findOne(".bottom-right").x(L.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(d.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(d.x());else if(this._movingAnchorName==="bottom-left"){if(O){var A=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};f=Math.sqrt(Math.pow(A.x-d.x(),2)+Math.pow(d.y()-A.y,2));var F=A.x{c._fire("transformend",{evt:a,target:c})}),this._movingAnchorName=null}}_fitNodesInto(a,s){var c=this._getNodeRect();const f=1;if(Util_1$3.Util._inRange(a.width,-this.padding()*2-f,f)){this.update();return}if(Util_1$3.Util._inRange(a.height,-this.padding()*2-f,f)){this.update();return}var d=new Util_1$3.Transform;if(d.rotate(Global_1$1.Konva.getAngle(this.rotation())),this._movingAnchorName&&a.width<0&&this._movingAnchorName.indexOf("left")>=0){const T=d.point({x:-this.padding()*2,y:0});a.x+=T.x,a.y+=T.y,a.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y}else if(this._movingAnchorName&&a.width<0&&this._movingAnchorName.indexOf("right")>=0){const T=d.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y,a.width+=this.padding()*2}if(this._movingAnchorName&&a.height<0&&this._movingAnchorName.indexOf("top")>=0){const T=d.point({x:0,y:-this.padding()*2});a.x+=T.x,a.y+=T.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y,a.height+=this.padding()*2}else if(this._movingAnchorName&&a.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const T=d.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=T.x,this._anchorDragOffset.y-=T.y,a.height+=this.padding()*2}if(this.boundBoxFunc()){const T=this.boundBoxFunc()(c,a);T?a=T:Util_1$3.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const y=1e7,_=new Util_1$3.Transform;_.translate(c.x,c.y),_.rotate(c.rotation),_.scale(c.width/y,c.height/y);const S=new Util_1$3.Transform,b=a.width/y,$=a.height/y;this.flipEnabled()===!1?(S.translate(a.x,a.y),S.rotate(a.rotation),S.translate(a.width<0?a.width:0,a.height<0?a.height:0),S.scale(Math.abs(b),Math.abs($))):(S.translate(a.x,a.y),S.rotate(a.rotation),S.scale(b,$));const P=S.multiply(_.invert());this._nodes.forEach(T=>{var C;const O=T.getParent().getAbsoluteTransform(),A=T.getTransform().copy();A.translate(T.offsetX(),T.offsetY());const F=new Util_1$3.Transform;F.multiply(O.copy().invert()).multiply(P).multiply(O).multiply(A);const j=F.decompose();T.setAttrs(j),this._fire("transform",{evt:s,target:T}),T._fire("transform",{evt:s,target:T}),(C=T.getLayer())===null||C===void 0||C.batchDraw()}),this.rotation(Util_1$3.Util._getRotation(a.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(a,s){this.findOne(a).setAttrs(s)}update(){var a,s=this._getNodeRect();this.rotation(Util_1$3.Util._getRotation(s.rotation));var c=s.width,f=s.height,d=this.enabledAnchors(),y=this.resizeEnabled(),_=this.padding(),S=this.anchorSize();const b=this.find("._anchor");b.forEach(P=>{P.setAttrs({width:S,height:S,offsetX:S/2,offsetY:S/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:S/2+_,offsetY:S/2+_,visible:y&&d.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:c/2,y:0,offsetY:S/2+_,visible:y&&d.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:c,y:0,offsetX:S/2-_,offsetY:S/2+_,visible:y&&d.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:f/2,offsetX:S/2+_,visible:y&&d.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:c,y:f/2,offsetX:S/2-_,visible:y&&d.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:f,offsetX:S/2+_,offsetY:S/2-_,visible:y&&d.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:c/2,y:f,offsetY:S/2-_,visible:y&&d.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:c,y:f,offsetX:S/2-_,offsetY:S/2-_,visible:y&&d.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:c/2,y:-this.rotateAnchorOffset()*Util_1$3.Util._sign(f)-_,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:c,height:f,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const $=this.anchorStyleFunc();$&&b.forEach(P=>{$(P)}),(a=this.getLayer())===null||a===void 0||a.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var a=this.findOne("."+this._movingAnchorName);a&&a.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),Group_1.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Node_1$f.Node.prototype.toObject.call(this)}clone(a){var s=Node_1$f.Node.prototype.clone.call(this,a);return s}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}Transformer$1.Transformer=Transformer;function validateAnchors(o){return o instanceof Array||Util_1$3.Util.warn("enabledAnchors value should be an array"),o instanceof Array&&o.forEach(function(a){ANCHORS_NAMES.indexOf(a)===-1&&Util_1$3.Util.warn("Unknown anchor name: "+a+". Available names are: "+ANCHORS_NAMES.join(", "))}),o||[]}Transformer.prototype.className="Transformer";(0,Global_2$1._registerNode)(Transformer);Factory_1$g.Factory.addGetterSetter(Transformer,"enabledAnchors",ANCHORS_NAMES,validateAnchors);Factory_1$g.Factory.addGetterSetter(Transformer,"flipEnabled",!0,(0,Validators_1$g.getBooleanValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"resizeEnabled",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"anchorSize",10,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"rotateEnabled",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"rotateLineVisible",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"rotationSnaps",[]);Factory_1$g.Factory.addGetterSetter(Transformer,"rotateAnchorOffset",50,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"rotateAnchorCursor","crosshair");Factory_1$g.Factory.addGetterSetter(Transformer,"rotationSnapTolerance",5,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"borderEnabled",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"anchorStroke","rgb(0, 161, 255)");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorStrokeWidth",1,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"anchorFill","white");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorCornerRadius",0,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"borderStroke","rgb(0, 161, 255)");Factory_1$g.Factory.addGetterSetter(Transformer,"borderStrokeWidth",1,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"borderDash");Factory_1$g.Factory.addGetterSetter(Transformer,"keepRatio",!0);Factory_1$g.Factory.addGetterSetter(Transformer,"shiftBehavior","default");Factory_1$g.Factory.addGetterSetter(Transformer,"centeredScaling",!1);Factory_1$g.Factory.addGetterSetter(Transformer,"ignoreStroke",!1);Factory_1$g.Factory.addGetterSetter(Transformer,"padding",0,(0,Validators_1$g.getNumberValidator)());Factory_1$g.Factory.addGetterSetter(Transformer,"node");Factory_1$g.Factory.addGetterSetter(Transformer,"nodes");Factory_1$g.Factory.addGetterSetter(Transformer,"boundBoxFunc");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorDragBoundFunc");Factory_1$g.Factory.addGetterSetter(Transformer,"anchorStyleFunc");Factory_1$g.Factory.addGetterSetter(Transformer,"shouldOverdrawWholeArea",!1);Factory_1$g.Factory.addGetterSetter(Transformer,"useSingleNodeRotation",!0);Factory_1$g.Factory.backCompat(Transformer,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var Wedge$1={};Object.defineProperty(Wedge$1,"__esModule",{value:!0});Wedge$1.Wedge=void 0;const Factory_1$f=Factory,Shape_1=Shape,Global_1=Global,Validators_1$f=Validators,Global_2=Global;class Wedge extends Shape_1.Shape{_sceneFunc(a){a.beginPath(),a.arc(0,0,this.radius(),0,Global_1.Konva.getAngle(this.angle()),this.clockwise()),a.lineTo(0,0),a.closePath(),a.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(a){this.radius(a/2)}setHeight(a){this.radius(a/2)}}Wedge$1.Wedge=Wedge;Wedge.prototype.className="Wedge";Wedge.prototype._centroid=!0;Wedge.prototype._attrsAffectingSize=["radius"];(0,Global_2._registerNode)(Wedge);Factory_1$f.Factory.addGetterSetter(Wedge,"radius",0,(0,Validators_1$f.getNumberValidator)());Factory_1$f.Factory.addGetterSetter(Wedge,"angle",0,(0,Validators_1$f.getNumberValidator)());Factory_1$f.Factory.addGetterSetter(Wedge,"clockwise",!1);Factory_1$f.Factory.backCompat(Wedge,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var Blur$1={};Object.defineProperty(Blur$1,"__esModule",{value:!0});Blur$1.Blur=void 0;const Factory_1$e=Factory,Node_1$e=Node$1,Validators_1$e=Validators;function BlurStack(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var mul_table=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],shg_table=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function filterGaussBlurRGBA(o,a){var s=o.data,c=o.width,f=o.height,d,y,_,S,b,$,P,T,C,O,A,F,j,L,M,I,U,z,H,G,X,W,K,ie,ee=a+a+1,de=c-1,Z=f-1,Q=a+1,J=Q*(Q+1)/2,ne=new BlurStack,fe=null,le=ne,ae=null,ce=null,ge=mul_table[a],pe=shg_table[a];for(_=1;_>pe,K!==0?(K=255/K,s[$]=(T*ge>>pe)*K,s[$+1]=(C*ge>>pe)*K,s[$+2]=(O*ge>>pe)*K):s[$]=s[$+1]=s[$+2]=0,T-=F,C-=j,O-=L,A-=M,F-=ae.r,j-=ae.g,L-=ae.b,M-=ae.a,S=P+((S=d+a+1)>pe,K>0?(K=255/K,s[S]=(T*ge>>pe)*K,s[S+1]=(C*ge>>pe)*K,s[S+2]=(O*ge>>pe)*K):s[S]=s[S+1]=s[S+2]=0,T-=F,C-=j,O-=L,A-=M,F-=ae.r,j-=ae.g,L-=ae.b,M-=ae.a,S=d+((S=y+Q)0&&filterGaussBlurRGBA(a,s)};Blur$1.Blur=Blur;Factory_1$e.Factory.addGetterSetter(Node_1$e.Node,"blurRadius",0,(0,Validators_1$e.getNumberValidator)(),Factory_1$e.Factory.afterSetFilter);var Brighten$1={};Object.defineProperty(Brighten$1,"__esModule",{value:!0});Brighten$1.Brighten=void 0;const Factory_1$d=Factory,Node_1$d=Node$1,Validators_1$d=Validators,Brighten=function(o){var a=this.brightness()*255,s=o.data,c=s.length,f;for(f=0;f255?255:f,d=d<0?0:d>255?255:d,y=y<0?0:y>255?255:y,s[_]=f,s[_+1]=d,s[_+2]=y};Contrast$1.Contrast=Contrast;Factory_1$c.Factory.addGetterSetter(Node_1$c.Node,"contrast",0,(0,Validators_1$c.getNumberValidator)(),Factory_1$c.Factory.afterSetFilter);var Emboss$1={};Object.defineProperty(Emboss$1,"__esModule",{value:!0});Emboss$1.Emboss=void 0;const Factory_1$b=Factory,Node_1$b=Node$1,Util_1$2=Util,Validators_1$b=Validators,Emboss=function(o){var a=this.embossStrength()*10,s=this.embossWhiteLevel()*255,c=this.embossDirection(),f=this.embossBlend(),d=0,y=0,_=o.data,S=o.width,b=o.height,$=S*4,P=b;switch(c){case"top-left":d=-1,y=-1;break;case"top":d=-1,y=0;break;case"top-right":d=-1,y=1;break;case"right":d=0,y=1;break;case"bottom-right":d=1,y=1;break;case"bottom":d=1,y=0;break;case"bottom-left":d=1,y=-1;break;case"left":d=0,y=-1;break;default:Util_1$2.Util.error("Unknown emboss direction: "+c)}do{var T=(P-1)*$,C=d;P+C<1&&(C=0),P+C>b&&(C=0);var O=(P-1+C)*S*4,A=S;do{var F=T+(A-1)*4,j=y;A+j<1&&(j=0),A+j>S&&(j=0);var L=O+(A-1+j)*4,M=_[F]-_[L],I=_[F+1]-_[L+1],U=_[F+2]-_[L+2],z=M,H=z>0?z:-z,G=I>0?I:-I,X=U>0?U:-U;if(G>H&&(z=I),X>H&&(z=U),z*=a,f){var W=_[F]+z,K=_[F+1]+z,ie=_[F+2]+z;_[F]=W>255?255:W<0?0:W,_[F+1]=K>255?255:K<0?0:K,_[F+2]=ie>255?255:ie<0?0:ie}else{var ee=s-z;ee<0?ee=0:ee>255&&(ee=255),_[F]=_[F+1]=_[F+2]=ee}}while(--A)}while(--P)};Emboss$1.Emboss=Emboss;Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossStrength",.5,(0,Validators_1$b.getNumberValidator)(),Factory_1$b.Factory.afterSetFilter);Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossWhiteLevel",.5,(0,Validators_1$b.getNumberValidator)(),Factory_1$b.Factory.afterSetFilter);Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossDirection","top-left",null,Factory_1$b.Factory.afterSetFilter);Factory_1$b.Factory.addGetterSetter(Node_1$b.Node,"embossBlend",!1,null,Factory_1$b.Factory.afterSetFilter);var Enhance$1={};Object.defineProperty(Enhance$1,"__esModule",{value:!0});Enhance$1.Enhance=void 0;const Factory_1$a=Factory,Node_1$a=Node$1,Validators_1$a=Validators;function remap(o,a,s,c,f){var d=s-a,y=f-c,_;return d===0?c+y/2:y===0?c:(_=(o-a)/d,_=y*_+c,_)}const Enhance=function(o){var a=o.data,s=a.length,c=a[0],f=c,d,y=a[1],_=y,S,b=a[2],$=b,P,T,C=this.enhance();if(C!==0){for(T=0;Tf&&(f=d),S=a[T+1],S_&&(_=S),P=a[T+2],P$&&($=P);f===c&&(f=255,c=0),_===y&&(_=255,y=0),$===b&&($=255,b=0);var O,A,F,j,L,M,I,U,z;for(C>0?(A=f+C*(255-f),F=c-C*(c-0),L=_+C*(255-_),M=y-C*(y-0),U=$+C*(255-$),z=b-C*(b-0)):(O=(f+c)*.5,A=f+C*(f-O),F=c+C*(c-O),j=(_+y)*.5,L=_+C*(_-j),M=y+C*(y-j),I=($+b)*.5,U=$+C*($-I),z=b+C*(b-I)),T=0;Tj?F:j;var L=y,M=d,I,U,z=360/M*Math.PI/180,H,G;for(U=0;UM?L:M;var I=y,U=d,z,H,G=s.polarRotation||0,X,W;for($=0;$a&&(I=M,U=0,z=-1),f=0;f=0&&C=0&&O=0&&C=0&&O=255*4?255:0}return y}function smoothEdgeMask(o,a,s){for(var c=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],f=Math.round(Math.sqrt(c.length)),d=Math.floor(f/2),y=[],_=0;_=0&&C=0&&O=s))for(d=A;d=c||(y=(s*d+f)*4,_+=I[y+0],S+=I[y+1],b+=I[y+2],$+=I[y+3],M+=1);for(_=_/M,S=S/M,b=b/M,$=$/M,f=C;f=s))for(d=A;d=c||(y=(s*d+f)*4,I[y+0]=_,I[y+1]=S,I[y+2]=b,I[y+3]=$)}};Pixelate$1.Pixelate=Pixelate;Factory_1$4.Factory.addGetterSetter(Node_1$4.Node,"pixelSize",8,(0,Validators_1$4.getNumberValidator)(),Factory_1$4.Factory.afterSetFilter);var Posterize$1={};Object.defineProperty(Posterize$1,"__esModule",{value:!0});Posterize$1.Posterize=void 0;const Factory_1$3=Factory,Node_1$3=Node$1,Validators_1$3=Validators,Posterize=function(o){var a=Math.round(this.levels()*254)+1,s=o.data,c=s.length,f=255/a,d;for(d=0;d255?255:o<0?0:Math.round(o)});Factory_1$2.Factory.addGetterSetter(Node_1$2.Node,"green",0,function(o){return this._filterUpToDate=!1,o>255?255:o<0?0:Math.round(o)});Factory_1$2.Factory.addGetterSetter(Node_1$2.Node,"blue",0,Validators_1$2.RGBComponent,Factory_1$2.Factory.afterSetFilter);var RGBA$1={};Object.defineProperty(RGBA$1,"__esModule",{value:!0});RGBA$1.RGBA=void 0;const Factory_1$1=Factory,Node_1$1=Node$1,Validators_1$1=Validators,RGBA=function(o){var a=o.data,s=a.length,c=this.red(),f=this.green(),d=this.blue(),y=this.alpha(),_,S;for(_=0;_255?255:o<0?0:Math.round(o)});Factory_1$1.Factory.addGetterSetter(Node_1$1.Node,"green",0,function(o){return this._filterUpToDate=!1,o>255?255:o<0?0:Math.round(o)});Factory_1$1.Factory.addGetterSetter(Node_1$1.Node,"blue",0,Validators_1$1.RGBComponent,Factory_1$1.Factory.afterSetFilter);Factory_1$1.Factory.addGetterSetter(Node_1$1.Node,"alpha",1,function(o){return this._filterUpToDate=!1,o>1?1:o<0?0:o});var Sepia$1={};Object.defineProperty(Sepia$1,"__esModule",{value:!0});Sepia$1.Sepia=void 0;const Sepia=function(o){var a=o.data,s=a.length,c,f,d,y;for(c=0;c127&&(b=255-b),$>127&&($=255-$),P>127&&(P=255-P),a[S]=b,a[S+1]=$,a[S+2]=P}while(--_)}while(--d)};Solarize$1.Solarize=Solarize;var Threshold$1={};Object.defineProperty(Threshold$1,"__esModule",{value:!0});Threshold$1.Threshold=void 0;const Factory_1=Factory,Node_1=Node$1,Validators_1=Validators,Threshold=function(o){var a=this.threshold()*255,s=o.data,c=s.length,f;for(f=0;fhe||D[te]!==V[he]){var ve=` -`+D[te].replace(" at new "," at ");return x.displayName&&ve.includes("")&&(ve=ve.replace("",x.displayName)),ve}while(1<=te&&0<=he);break}}}finally{Ui=!1,Error.prepareStackTrace=R}return(x=x?x.displayName||x.name:"")?Pn(x):""}var zo=Object.prototype.hasOwnProperty,Bi=[],Xr=-1;function Er(x){return{current:x}}function rt(x){0>Xr||(x.current=Bi[Xr],Bi[Xr]=null,Xr--)}function tt(x,E){Xr++,Bi[Xr]=x.current,x.current=E}var $r={},gt=Er($r),wt=Er(!1),Ur=$r;function Qr(x,E){var R=x.type.contextTypes;if(!R)return $r;var N=x.stateNode;if(N&&N.__reactInternalMemoizedUnmaskedChildContext===E)return N.__reactInternalMemoizedMaskedChildContext;var D={},V;for(V in R)D[V]=E[V];return N&&(x=x.stateNode,x.__reactInternalMemoizedUnmaskedChildContext=E,x.__reactInternalMemoizedMaskedChildContext=D),D}function Ot(x){return x=x.childContextTypes,x!=null}function Zn(){rt(wt),rt(gt)}function Ia(x,E,R){if(gt.current!==$r)throw Error(y(168));tt(gt,E),tt(wt,R)}function La(x,E,R){var N=x.stateNode;if(E=E.childContextTypes,typeof N.getChildContext!="function")return R;N=N.getChildContext();for(var D in N)if(!(D in E))throw Error(y(108,G(x)||"Unknown",D));return d({},R,N)}function ei(x){return x=(x=x.stateNode)&&x.__reactInternalMemoizedMergedChildContext||$r,Ur=gt.current,tt(gt,x),tt(wt,wt.current),!0}function Hi(x,E,R){var N=x.stateNode;if(!N)throw Error(y(169));R?(x=La(x,E,Ur),N.__reactInternalMemoizedMergedChildContext=x,rt(wt),rt(gt),tt(gt,x)):rt(wt),tt(wt,R)}var Yt=Math.clz32?Math.clz32:Ho,Bo=Math.log,Na=Math.LN2;function Ho(x){return x>>>=0,x===0?32:31-(Bo(x)/Na|0)|0}var ti=64,Tn=4194304;function On(x){switch(x&-x){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return x&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return x&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return x}}function ri(x,E){var R=x.pendingLanes;if(R===0)return 0;var N=0,D=x.suspendedLanes,V=x.pingedLanes,te=R&268435455;if(te!==0){var he=te&~D;he!==0?N=On(he):(V&=te,V!==0&&(N=On(V)))}else te=R&~D,te!==0?N=On(te):V!==0&&(N=On(V));if(N===0)return 0;if(E!==0&&E!==N&&!(E&D)&&(D=N&-N,V=E&-E,D>=V||D===16&&(V&4194240)!==0))return E;if(N&4&&(N|=R&16),E=x.entangledLanes,E!==0)for(x=x.entanglements,E&=N;0R;R++)E.push(x);return E}function Cn(x,E,R){x.pendingLanes|=E,E!==536870912&&(x.suspendedLanes=0,x.pingedLanes=0),x=x.eventTimes,E=31-Yt(E),x[E]=R}function Wo(x,E){var R=x.pendingLanes&~E;x.pendingLanes=E,x.suspendedLanes=0,x.pingedLanes=0,x.expiredLanes&=E,x.mutableReadLanes&=E,x.entangledLanes&=E,E=x.entanglements;var N=x.eventTimes;for(x=x.expirationTimes;0>=te,D-=te,gr=1<<32-Yt(E)+D|R<Ze?(St=Ge,Ge=null):St=Ge.sibling;var et=Te(ye,Ge,be[Ze],Oe);if(et===null){Ge===null&&(Ge=St);break}x&&Ge&&et.alternate===null&&E(ye,Ge),me=V(et,me,Ze),qe===null?ke=et:qe.sibling=et,qe=et,Ge=St}if(Ze===be.length)return R(ye,Ge),nt&&Pr(ye,Ze),ke;if(Ge===null){for(;ZeZe?(St=Ge,Ge=null):St=Ge.sibling;var cn=Te(ye,Ge,et.value,Oe);if(cn===null){Ge===null&&(Ge=St);break}x&&Ge&&cn.alternate===null&&E(ye,Ge),me=V(cn,me,Ze),qe===null?ke=cn:qe.sibling=cn,qe=cn,Ge=St}if(et.done)return R(ye,Ge),nt&&Pr(ye,Ze),ke;if(Ge===null){for(;!et.done;Ze++,et=be.next())et=He(ye,et.value,Oe),et!==null&&(me=V(et,me,Ze),qe===null?ke=et:qe.sibling=et,qe=et);return nt&&Pr(ye,Ze),ke}for(Ge=N(ye,Ge);!et.done;Ze++,et=be.next())et=at(Ge,ye,Ze,et.value,Oe),et!==null&&(x&&et.alternate!==null&&Ge.delete(et.key===null?Ze:et.key),me=V(et,me,Ze),qe===null?ke=et:qe.sibling=et,qe=et);return x&&Ge.forEach(function(Ku){return E(ye,Ku)}),nt&&Pr(ye,Ze),ke}function Vr(ye,me,be,Oe){if(typeof be=="object"&&be!==null&&be.type===$&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case S:e:{for(var ke=be.key,qe=me;qe!==null;){if(qe.key===ke){if(ke=be.type,ke===$){if(qe.tag===7){R(ye,qe.sibling),me=D(qe,be.props.children),me.return=ye,ye=me;break e}}else if(qe.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===M&&Re(ke)===qe.type){R(ye,qe.sibling),me=D(qe,be.props),me.ref=Y(ye,qe,be),me.return=ye,ye=me;break e}R(ye,qe);break}else E(ye,qe);qe=qe.sibling}be.type===$?(me=zn(be.props.children,ye.mode,Oe,be.key),me.return=ye,ye=me):(Oe=So(be.type,be.key,be.props,null,ye.mode,Oe),Oe.ref=Y(ye,me,be),Oe.return=ye,ye=Oe)}return te(ye);case b:e:{for(qe=be.key;me!==null;){if(me.key===qe)if(me.tag===4&&me.stateNode.containerInfo===be.containerInfo&&me.stateNode.implementation===be.implementation){R(ye,me.sibling),me=D(me,be.children||[]),me.return=ye,ye=me;break e}else{R(ye,me);break}else E(ye,me);me=me.sibling}me=Gs(be,ye.mode,Oe),me.return=ye,ye=me}return te(ye);case M:return qe=be._init,Vr(ye,me,qe(be._payload),Oe)}if(Z(be))return it(ye,me,be,Oe);if(z(be))return Kt(ye,me,be,Oe);Se(ye,be)}return typeof be=="string"&&be!==""||typeof be=="number"?(be=""+be,me!==null&&me.tag===6?(R(ye,me.sibling),me=D(me,be),me.return=ye,ye=me):(R(ye,me),me=Hs(be,ye.mode,Oe),me.return=ye,ye=me),te(ye)):R(ye,me)}return Vr}var jt=Ke(!0),nn=Ke(!1),oa={},sr=Er(oa),sa=Er(oa),mi=Er(oa);function Cr(x){if(x===oa)throw Error(y(174));return x}function Zo(x,E){tt(mi,E),tt(sa,x),tt(sr,oa),x=J(E),rt(sr),tt(sr,x)}function yi(){rt(sr),rt(sa),rt(mi)}function Ys(x){var E=Cr(mi.current),R=Cr(sr.current);E=ne(R,x.type,E),R!==E&&(tt(sa,x),tt(sr,E))}function es(x){sa.current===x&&(rt(sr),rt(sa))}var lt=Er(0);function Ka(x){for(var E=x;E!==null;){if(E.tag===13){var R=E.memoizedState;if(R!==null&&(R=R.dehydrated,R===null||Ca(R)||Qn(R)))return E}else if(E.tag===19&&E.memoizedProps.revealOrder!==void 0){if(E.flags&128)return E}else if(E.child!==null){E.child.return=E,E=E.child;continue}if(E===x)break;for(;E.sibling===null;){if(E.return===null||E.return===x)return null;E=E.return}E.sibling.return=E.return,E=E.sibling}return null}var rs=[];function ns(){for(var x=0;xR?R:4,x(!0);var N=as.transition;as.transition={};try{x(!1),E()}finally{Qe=R,as.transition=N}}function hl(){return lr().memoizedState}function Su(x,E,R){var N=sn(x);if(R={lane:N,action:R,hasEagerState:!1,eagerState:null,next:null},pl(x))gl(E,R);else if(R=Wa(x,E,R,N),R!==null){var D=Mt();ur(R,x,N,D),ml(R,E,N)}}function xu(x,E,R){var N=sn(x),D={lane:N,action:R,hasEagerState:!1,eagerState:null,next:null};if(pl(x))gl(E,D);else{var V=x.alternate;if(x.lanes===0&&(V===null||V.lanes===0)&&(V=E.lastRenderedReducer,V!==null))try{var te=E.lastRenderedState,he=V(te,R);if(D.hasEagerState=!0,D.eagerState=he,Xt(he,te)){var ve=E.interleaved;ve===null?(D.next=D,hi(E)):(D.next=ve.next,ve.next=D),E.interleaved=D;return}}catch(Ee){}finally{}R=Wa(x,E,D,N),R!==null&&(D=Mt(),ur(R,x,N,D),ml(R,E,N))}}function pl(x){var E=x.alternate;return x===ut||E!==null&&E===ut}function gl(x,E){la=Xa=!0;var R=x.pending;R===null?E.next=E:(E.next=R.next,R.next=E),x.pending=E}function ml(x,E,R){if(R&4194240){var N=E.lanes;N&=x.pendingLanes,R|=N,E.lanes=R,Wi(x,R)}}var Za={readContext:kt,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useInsertionEffect:Ct,useLayoutEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useMutableSource:Ct,useSyncExternalStore:Ct,useId:Ct,unstable_isNewReconciler:!1},Eu={readContext:kt,useCallback:function(x,E){return Rr().memoizedState=[x,E===void 0?null:E],x},useContext:kt,useEffect:al,useImperativeHandle:function(x,E,R){return R=R!=null?R.concat([x]):null,Qa(4194308,4,ll.bind(null,E,x),R)},useLayoutEffect:function(x,E){return Qa(4194308,4,x,E)},useInsertionEffect:function(x,E){return Qa(4,2,x,E)},useMemo:function(x,E){var R=Rr();return E=E===void 0?null:E,x=x(),R.memoizedState=[x,E],x},useReducer:function(x,E,R){var N=Rr();return E=R!==void 0?R(E):E,N.memoizedState=N.baseState=E,x={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:x,lastRenderedState:E},N.queue=x,x=x.dispatch=Su.bind(null,ut,x),[N.memoizedState,x]},useRef:function(x){var E=Rr();return x={current:x},E.memoizedState=x},useState:nl,useDebugValue:ps,useDeferredValue:function(x){return Rr().memoizedState=x},useTransition:function(){var x=nl(!1),E=x[0];return x=bu.bind(null,x[1]),Rr().memoizedState=x,[E,x]},useMutableSource:function(){},useSyncExternalStore:function(x,E,R){var N=ut,D=Rr();if(nt){if(R===void 0)throw Error(y(407));R=R()}else{if(R=E(),bt===null)throw Error(y(349));Nn&30||Js(N,E,R)}D.memoizedState=R;var V={value:R,getSnapshot:E};return D.queue=V,al(el.bind(null,N,V,x),[x]),N.flags|=2048,fa(9,Zs.bind(null,N,V,R,E),void 0,null),R},useId:function(){var x=Rr(),E=bt.identifierPrefix;if(nt){var R=mr,N=gr;R=(N&~(1<<32-Yt(N)-1)).toString(32)+R,E=":"+E+"R"+R,R=ua++,0")&&(ve=ve.replace("",x.displayName)),ve}while(1<=te&&0<=he);break}}}finally{Ui=!1,Error.prepareStackTrace=R}return(x=x?x.displayName||x.name:"")?Pn(x):""}var zo=Object.prototype.hasOwnProperty,Bi=[],Xr=-1;function Er(x){return{current:x}}function rt(x){0>Xr||(x.current=Bi[Xr],Bi[Xr]=null,Xr--)}function tt(x,E){Xr++,Bi[Xr]=x.current,x.current=E}var $r={},gt=Er($r),wt=Er(!1),Ur=$r;function Qr(x,E){var R=x.type.contextTypes;if(!R)return $r;var N=x.stateNode;if(N&&N.__reactInternalMemoizedUnmaskedChildContext===E)return N.__reactInternalMemoizedMaskedChildContext;var D={},V;for(V in R)D[V]=E[V];return N&&(x=x.stateNode,x.__reactInternalMemoizedUnmaskedChildContext=E,x.__reactInternalMemoizedMaskedChildContext=D),D}function Ot(x){return x=x.childContextTypes,x!=null}function Zn(){rt(wt),rt(gt)}function Ia(x,E,R){if(gt.current!==$r)throw Error(y(168));tt(gt,E),tt(wt,R)}function La(x,E,R){var N=x.stateNode;if(E=E.childContextTypes,typeof N.getChildContext!="function")return R;N=N.getChildContext();for(var D in N)if(!(D in E))throw Error(y(108,G(x)||"Unknown",D));return d({},R,N)}function ei(x){return x=(x=x.stateNode)&&x.__reactInternalMemoizedMergedChildContext||$r,Ur=gt.current,tt(gt,x),tt(wt,wt.current),!0}function Hi(x,E,R){var N=x.stateNode;if(!N)throw Error(y(169));R?(x=La(x,E,Ur),N.__reactInternalMemoizedMergedChildContext=x,rt(wt),rt(gt),tt(gt,x)):rt(wt),tt(wt,R)}var Yt=Math.clz32?Math.clz32:Ho,Bo=Math.log,Na=Math.LN2;function Ho(x){return x>>>=0,x===0?32:31-(Bo(x)/Na|0)|0}var ti=64,Tn=4194304;function On(x){switch(x&-x){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return x&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return x&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return x}}function ri(x,E){var R=x.pendingLanes;if(R===0)return 0;var N=0,D=x.suspendedLanes,V=x.pingedLanes,te=R&268435455;if(te!==0){var he=te&~D;he!==0?N=On(he):(V&=te,V!==0&&(N=On(V)))}else te=R&~D,te!==0?N=On(te):V!==0&&(N=On(V));if(N===0)return 0;if(E!==0&&E!==N&&!(E&D)&&(D=N&-N,V=E&-E,D>=V||D===16&&(V&4194240)!==0))return E;if(N&4&&(N|=R&16),E=x.entangledLanes,E!==0)for(x=x.entanglements,E&=N;0R;R++)E.push(x);return E}function Cn(x,E,R){x.pendingLanes|=E,E!==536870912&&(x.suspendedLanes=0,x.pingedLanes=0),x=x.eventTimes,E=31-Yt(E),x[E]=R}function Wo(x,E){var R=x.pendingLanes&~E;x.pendingLanes=E,x.suspendedLanes=0,x.pingedLanes=0,x.expiredLanes&=E,x.mutableReadLanes&=E,x.entangledLanes&=E,E=x.entanglements;var N=x.eventTimes;for(x=x.expirationTimes;0>=te,D-=te,gr=1<<32-Yt(E)+D|R<Ze?(St=Ge,Ge=null):St=Ge.sibling;var et=Te(ye,Ge,be[Ze],Oe);if(et===null){Ge===null&&(Ge=St);break}x&&Ge&&et.alternate===null&&E(ye,Ge),me=V(et,me,Ze),qe===null?ke=et:qe.sibling=et,qe=et,Ge=St}if(Ze===be.length)return R(ye,Ge),nt&&Pr(ye,Ze),ke;if(Ge===null){for(;ZeZe?(St=Ge,Ge=null):St=Ge.sibling;var cn=Te(ye,Ge,et.value,Oe);if(cn===null){Ge===null&&(Ge=St);break}x&&Ge&&cn.alternate===null&&E(ye,Ge),me=V(cn,me,Ze),qe===null?ke=cn:qe.sibling=cn,qe=cn,Ge=St}if(et.done)return R(ye,Ge),nt&&Pr(ye,Ze),ke;if(Ge===null){for(;!et.done;Ze++,et=be.next())et=He(ye,et.value,Oe),et!==null&&(me=V(et,me,Ze),qe===null?ke=et:qe.sibling=et,qe=et);return nt&&Pr(ye,Ze),ke}for(Ge=N(ye,Ge);!et.done;Ze++,et=be.next())et=at(Ge,ye,Ze,et.value,Oe),et!==null&&(x&&et.alternate!==null&&Ge.delete(et.key===null?Ze:et.key),me=V(et,me,Ze),qe===null?ke=et:qe.sibling=et,qe=et);return x&&Ge.forEach(function(Ku){return E(ye,Ku)}),nt&&Pr(ye,Ze),ke}function Vr(ye,me,be,Oe){if(typeof be=="object"&&be!==null&&be.type===$&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case S:e:{for(var ke=be.key,qe=me;qe!==null;){if(qe.key===ke){if(ke=be.type,ke===$){if(qe.tag===7){R(ye,qe.sibling),me=D(qe,be.props.children),me.return=ye,ye=me;break e}}else if(qe.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===M&&Re(ke)===qe.type){R(ye,qe.sibling),me=D(qe,be.props),me.ref=Y(ye,qe,be),me.return=ye,ye=me;break e}R(ye,qe);break}else E(ye,qe);qe=qe.sibling}be.type===$?(me=zn(be.props.children,ye.mode,Oe,be.key),me.return=ye,ye=me):(Oe=So(be.type,be.key,be.props,null,ye.mode,Oe),Oe.ref=Y(ye,me,be),Oe.return=ye,ye=Oe)}return te(ye);case b:e:{for(qe=be.key;me!==null;){if(me.key===qe)if(me.tag===4&&me.stateNode.containerInfo===be.containerInfo&&me.stateNode.implementation===be.implementation){R(ye,me.sibling),me=D(me,be.children||[]),me.return=ye,ye=me;break e}else{R(ye,me);break}else E(ye,me);me=me.sibling}me=Gs(be,ye.mode,Oe),me.return=ye,ye=me}return te(ye);case M:return qe=be._init,Vr(ye,me,qe(be._payload),Oe)}if(Z(be))return it(ye,me,be,Oe);if(z(be))return Kt(ye,me,be,Oe);Se(ye,be)}return typeof be=="string"&&be!==""||typeof be=="number"?(be=""+be,me!==null&&me.tag===6?(R(ye,me.sibling),me=D(me,be),me.return=ye,ye=me):(R(ye,me),me=Hs(be,ye.mode,Oe),me.return=ye,ye=me),te(ye)):R(ye,me)}return Vr}var jt=Ke(!0),nn=Ke(!1),oa={},lr=Er(oa),sa=Er(oa),mi=Er(oa);function Cr(x){if(x===oa)throw Error(y(174));return x}function Zo(x,E){tt(mi,E),tt(sa,x),tt(lr,oa),x=J(E),rt(lr),tt(lr,x)}function yi(){rt(lr),rt(sa),rt(mi)}function Ys(x){var E=Cr(mi.current),R=Cr(lr.current);E=ne(R,x.type,E),R!==E&&(tt(sa,x),tt(lr,E))}function es(x){sa.current===x&&(rt(lr),rt(sa))}var lt=Er(0);function Ka(x){for(var E=x;E!==null;){if(E.tag===13){var R=E.memoizedState;if(R!==null&&(R=R.dehydrated,R===null||Ca(R)||Qn(R)))return E}else if(E.tag===19&&E.memoizedProps.revealOrder!==void 0){if(E.flags&128)return E}else if(E.child!==null){E.child.return=E,E=E.child;continue}if(E===x)break;for(;E.sibling===null;){if(E.return===null||E.return===x)return null;E=E.return}E.sibling.return=E.return,E=E.sibling}return null}var rs=[];function ns(){for(var x=0;xR?R:4,x(!0);var N=as.transition;as.transition={};try{x(!1),E()}finally{Qe=R,as.transition=N}}function hl(){return ur().memoizedState}function Su(x,E,R){var N=sn(x);if(R={lane:N,action:R,hasEagerState:!1,eagerState:null,next:null},pl(x))gl(E,R);else if(R=Wa(x,E,R,N),R!==null){var D=Mt();cr(R,x,N,D),ml(R,E,N)}}function xu(x,E,R){var N=sn(x),D={lane:N,action:R,hasEagerState:!1,eagerState:null,next:null};if(pl(x))gl(E,D);else{var V=x.alternate;if(x.lanes===0&&(V===null||V.lanes===0)&&(V=E.lastRenderedReducer,V!==null))try{var te=E.lastRenderedState,he=V(te,R);if(D.hasEagerState=!0,D.eagerState=he,Xt(he,te)){var ve=E.interleaved;ve===null?(D.next=D,hi(E)):(D.next=ve.next,ve.next=D),E.interleaved=D;return}}catch(Ee){}finally{}R=Wa(x,E,D,N),R!==null&&(D=Mt(),cr(R,x,N,D),ml(R,E,N))}}function pl(x){var E=x.alternate;return x===ut||E!==null&&E===ut}function gl(x,E){la=Xa=!0;var R=x.pending;R===null?E.next=E:(E.next=R.next,R.next=E),x.pending=E}function ml(x,E,R){if(R&4194240){var N=E.lanes;N&=x.pendingLanes,R|=N,E.lanes=R,Wi(x,R)}}var Za={readContext:kt,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useInsertionEffect:Ct,useLayoutEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useMutableSource:Ct,useSyncExternalStore:Ct,useId:Ct,unstable_isNewReconciler:!1},Eu={readContext:kt,useCallback:function(x,E){return Rr().memoizedState=[x,E===void 0?null:E],x},useContext:kt,useEffect:al,useImperativeHandle:function(x,E,R){return R=R!=null?R.concat([x]):null,Qa(4194308,4,ll.bind(null,E,x),R)},useLayoutEffect:function(x,E){return Qa(4194308,4,x,E)},useInsertionEffect:function(x,E){return Qa(4,2,x,E)},useMemo:function(x,E){var R=Rr();return E=E===void 0?null:E,x=x(),R.memoizedState=[x,E],x},useReducer:function(x,E,R){var N=Rr();return E=R!==void 0?R(E):E,N.memoizedState=N.baseState=E,x={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:x,lastRenderedState:E},N.queue=x,x=x.dispatch=Su.bind(null,ut,x),[N.memoizedState,x]},useRef:function(x){var E=Rr();return x={current:x},E.memoizedState=x},useState:nl,useDebugValue:ps,useDeferredValue:function(x){return Rr().memoizedState=x},useTransition:function(){var x=nl(!1),E=x[0];return x=bu.bind(null,x[1]),Rr().memoizedState=x,[E,x]},useMutableSource:function(){},useSyncExternalStore:function(x,E,R){var N=ut,D=Rr();if(nt){if(R===void 0)throw Error(y(407));R=R()}else{if(R=E(),bt===null)throw Error(y(349));Nn&30||Js(N,E,R)}D.memoizedState=R;var V={value:R,getSnapshot:E};return D.queue=V,al(el.bind(null,N,V,x),[x]),N.flags|=2048,fa(9,Zs.bind(null,N,V,R,E),void 0,null),R},useId:function(){var x=Rr(),E=bt.identifierPrefix;if(nt){var R=mr,N=gr;R=(N&~(1<<32-Yt(N)-1)).toString(32)+R,E=":"+E+"R"+R,R=ua++,0Ls&&(E.flags|=128,N=!0,pa(D,!1),E.lanes=4194304)}else{if(!N)if(x=Ka(V),x!==null){if(E.flags|=128,N=!0,x=x.updateQueue,x!==null&&(E.updateQueue=x,E.flags|=4),pa(D,!0),D.tail===null&&D.tailMode==="hidden"&&!V.alternate&&!nt)return Rt(E),null}else 2*dt()-D.renderingStartTime>Ls&&R!==1073741824&&(E.flags|=128,N=!0,pa(D,!1),E.lanes=4194304);D.isBackwards?(V.sibling=E.child,E.child=V):(x=D.last,x!==null?x.sibling=V:E.child=V,D.last=V)}return D.tail!==null?(E=D.tail,D.rendering=E,D.tail=E.sibling,D.renderingStartTime=dt(),E.sibling=null,x=lt.current,tt(lt,N?x&1|2:x&1),E):(Rt(E),null);case 22:case 23:return Us(),R=E.memoizedState!==null,x!==null&&x.memoizedState!==null!==R&&(E.flags|=8192),R&&E.mode&1?Zt&1073741824&&(Rt(E),je&&E.subtreeFlags&6&&(E.flags|=8192)):Rt(E),null;case 24:return null;case 25:return null}throw Error(y(156,E.tag))}function Au(x,E){switch(oi(E),E.tag){case 1:return Ot(E.type)&&Zn(),x=E.flags,x&65536?(E.flags=x&-65537|128,E):null;case 3:return yi(),rt(wt),rt(gt),ns(),x=E.flags,x&65536&&!(x&128)?(E.flags=x&-65537|128,E):null;case 5:return es(E),null;case 13:if(rt(lt),x=E.memoizedState,x!==null&&x.dehydrated!==null){if(E.alternate===null)throw Error(y(340));Zr()}return x=E.flags,x&65536?(E.flags=x&-65537|128,E):null;case 19:return rt(lt),null;case 4:return yi(),null;case 10:return ia(E.type._context),null;case 22:case 23:return Us(),null;case 24:return null;default:return null}}var ao=!1,At=!1,Mu=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function _i(x,E){var R=x.ref;if(R!==null)if(typeof R=="function")try{R(null)}catch(N){ot(x,E,N)}else R.current=null}function Es(x,E,R){try{R()}catch(N){ot(x,E,N)}}var Ll=!1;function Fu(x,E){for(fe(x.containerInfo),Ae=E;Ae!==null;)if(x=Ae,E=x.child,(x.subtreeFlags&1028)!==0&&E!==null)E.return=x,Ae=E;else for(;Ae!==null;){x=Ae;try{var R=x.alternate;if(x.flags&1024)switch(x.tag){case 0:case 11:case 15:break;case 1:if(R!==null){var N=R.memoizedProps,D=R.memoizedState,V=x.stateNode,te=V.getSnapshotBeforeUpdate(x.elementType===x.type?N:Gt(x.type,N),D);V.__reactInternalSnapshotBeforeUpdate=te}break;case 3:je&&Pa(x.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(he){ot(x,x.return,he)}if(E=x.sibling,E!==null){E.return=x.return,Ae=E;break}Ae=x.return}return R=Ll,Ll=!1,R}function ga(x,E,R){var N=E.updateQueue;if(N=N!==null?N.lastEffect:null,N!==null){var D=N=N.next;do{if((D.tag&x)===x){var V=D.destroy;D.destroy=void 0,V!==void 0&&Es(E,R,V)}D=D.next}while(D!==N)}}function oo(x,E){if(E=E.updateQueue,E=E!==null?E.lastEffect:null,E!==null){var R=E=E.next;do{if((R.tag&x)===x){var N=R.create;R.destroy=N()}R=R.next}while(R!==E)}}function $s(x){var E=x.ref;if(E!==null){var R=x.stateNode;switch(x.tag){case 5:x=Q(R);break;default:x=R}typeof E=="function"?E(x):E.current=x}}function Nl(x){var E=x.alternate;E!==null&&(x.alternate=null,Nl(E)),x.child=null,x.deletions=null,x.sibling=null,x.tag===5&&(E=x.stateNode,E!==null&&It(E)),x.stateNode=null,x.return=null,x.dependencies=null,x.memoizedProps=null,x.memoizedState=null,x.pendingProps=null,x.stateNode=null,x.updateQueue=null}function kl(x){return x.tag===5||x.tag===3||x.tag===4}function jl(x){e:for(;;){for(;x.sibling===null;){if(x.return===null||kl(x.return))return null;x=x.return}for(x.sibling.return=x.return,x=x.sibling;x.tag!==5&&x.tag!==6&&x.tag!==18;){if(x.flags&2||x.child===null||x.tag===4)continue e;x.child.return=x,x=x.child}if(!(x.flags&2))return x.stateNode}}function ws(x,E,R){var N=x.tag;if(N===5||N===6)x=x.stateNode,E?Ue(R,x,E):xn(R,x);else if(N!==4&&(x=x.child,x!==null))for(ws(x,E,R),x=x.sibling;x!==null;)ws(x,E,R),x=x.sibling}function Ps(x,E,R){var N=x.tag;if(N===5||N===6)x=x.stateNode,E?ct(R,x,E):Sn(R,x);else if(N!==4&&(x=x.child,x!==null))for(Ps(x,E,R),x=x.sibling;x!==null;)Ps(x,E,R),x=x.sibling}var Pt=null,br=!1;function Mr(x,E,R){for(R=R.child;R!==null;)Ts(x,E,R),R=R.sibling}function Ts(x,E,R){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(ni,R)}catch(he){}switch(R.tag){case 5:At||_i(R,E);case 6:if(je){var N=Pt,D=br;Pt=null,Mr(x,E,R),Pt=N,br=D,Pt!==null&&(br?Be(Pt,R.stateNode):De(Pt,R.stateNode))}else Mr(x,E,R);break;case 18:je&&Pt!==null&&(br?Ma(Pt,R.stateNode):Aa(Pt,R.stateNode));break;case 4:je?(N=Pt,D=br,Pt=R.stateNode.containerInfo,br=!0,Mr(x,E,R),Pt=N,br=D):(ze&&(N=R.stateNode.containerInfo,D=Yn(N),Xn(N,D)),Mr(x,E,R));break;case 0:case 11:case 14:case 15:if(!At&&(N=R.updateQueue,N!==null&&(N=N.lastEffect,N!==null))){D=N=N.next;do{var V=D,te=V.destroy;V=V.tag,te!==void 0&&(V&2||V&4)&&Es(R,E,te),D=D.next}while(D!==N)}Mr(x,E,R);break;case 1:if(!At&&(_i(R,E),N=R.stateNode,typeof N.componentWillUnmount=="function"))try{N.props=R.memoizedProps,N.state=R.memoizedState,N.componentWillUnmount()}catch(he){ot(R,E,he)}Mr(x,E,R);break;case 21:Mr(x,E,R);break;case 22:R.mode&1?(At=(N=At)||R.memoizedState!==null,Mr(x,E,R),At=N):Mr(x,E,R);break;default:Mr(x,E,R)}}function Dl(x){var E=x.updateQueue;if(E!==null){x.updateQueue=null;var R=x.stateNode;R===null&&(R=x.stateNode=new Mu),E.forEach(function(N){var D=Bu.bind(null,x,N);R.has(N)||(R.add(N),N.then(D,D))})}}function Sr(x,E){var R=E.deletions;if(R!==null)for(var N=0;N";case lo:return":has("+(Rs(x)||"")+")";case uo:return'[role="'+x.value+'"]';case fo:return'"'+x.value+'"';case co:return'[data-testname="'+x.value+'"]';default:throw Error(y(365))}}function Vl(x,E){var R=[];x=[x,0];for(var N=0;ND&&(D=te),N&=~V}if(N=D,N=dt()-N,N=(120>N?120:480>N?480:1080>N?1080:1920>N?1920:3e3>N?3e3:4320>N?4320:1960*Lu(N/1960))-N,10x?16:x,on===null)var N=!1;else{if(x=on,on=null,yo=0,Ye&6)throw Error(y(331));var D=Ye;for(Ye|=4,Ae=x.current;Ae!==null;){var V=Ae,te=V.child;if(Ae.flags&16){var he=V.deletions;if(he!==null){for(var ve=0;vedt()-Is?jn(x,0):Fs|=R),qt(x,E)}function eu(x,E){E===0&&(x.mode&1?(E=Tn,Tn<<=1,!(Tn&130023424)&&(Tn=4194304)):E=1);var R=Mt();x=Jt(x,E),x!==null&&(Cn(x,E,R),qt(x,R))}function zu(x){var E=x.memoizedState,R=0;E!==null&&(R=E.retryLane),eu(x,R)}function Bu(x,E){var R=0;switch(x.tag){case 13:var N=x.stateNode,D=x.memoizedState;D!==null&&(R=D.retryLane);break;case 19:N=x.stateNode;break;default:throw Error(y(314))}N!==null&&N.delete(E),eu(x,R)}var tu;tu=function(x,E,R){if(x!==null)if(x.memoizedProps!==E.pendingProps||wt.current)Vt=!0;else{if(!(x.lanes&R)&&!(E.flags&128))return Vt=!1,Cu(x,E,R);Vt=!!(x.flags&131072)}else Vt=!1,nt&&E.flags&1048576&&za(E,Rn,E.index);switch(E.lanes=0,E.tag){case 2:var N=E.type;ro(x,E),x=E.pendingProps;var D=Qr(E,gt.current);yr(E,R),D=us(null,E,N,x,D,R);var V=cs();return E.flags|=1,typeof D=="object"&&D!==null&&typeof D.render=="function"&&D.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,Ot(N)?(V=!0,ei(E)):V=!1,E.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,tn(E),D.updater=rn,E.stateNode=D,D._reactInternals=E,B(E,N,x,R),E=vs(null,E,N,!0,V,R)):(E.tag=0,nt&&V&&Zi(E),Dt(null,E,D,R),E=E.child),E;case 16:N=E.elementType;e:{switch(ro(x,E),x=E.pendingProps,D=N._init,N=D(N._payload),E.type=N,D=E.tag=Gu(N),x=Gt(N,x),D){case 0:E=ys(null,E,N,x,R);break e;case 1:E=Tl(null,E,N,x,R);break e;case 11:E=xl(null,E,N,x,R);break e;case 14:E=El(null,E,N,Gt(N.type,x),R);break e}throw Error(y(306,N,""))}return E;case 0:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),ys(x,E,N,D,R);case 1:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),Tl(x,E,N,D,R);case 3:e:{if(Ol(E),x===null)throw Error(y(387));N=E.pendingProps,V=E.memoizedState,D=V.element,Fn(x,E),gi(E,N,null,R);var te=E.memoizedState;if(N=te.element,Xe&&V.isDehydrated)if(V={element:N,isDehydrated:!1,cache:te.cache,pendingSuspenseBoundaries:te.pendingSuspenseBoundaries,transitions:te.transitions},E.updateQueue.baseState=V,E.memoizedState=V,E.flags&256){D=vi(Error(y(423)),E),E=Cl(x,E,N,R,D);break e}else if(N!==D){D=vi(Error(y(424)),E),E=Cl(x,E,N,R,D);break e}else for(Xe&&(Ht=Fo(E.stateNode.containerInfo),Nt=E,nt=!0,Qt=null,An=!1),R=nn(E,null,N,R),E.child=R;R;)R.flags=R.flags&-3|4096,R=R.sibling;else{if(Zr(),N===D){E=Hr(x,E,R);break e}Dt(x,E,N,R)}E=E.child}return E;case 5:return Ys(E),x===null&&si(E),N=E.type,D=E.pendingProps,V=x!==null?x.memoizedProps:null,te=D.children,Ie(N,D)?te=null:V!==null&&Ie(N,V)&&(E.flags|=32),Pl(x,E),Dt(x,E,te,R),E.child;case 6:return x===null&&si(E),null;case 13:return Rl(x,E,R);case 4:return Zo(E,E.stateNode.containerInfo),N=E.pendingProps,x===null?E.child=jt(E,null,N,R):Dt(x,E,N,R),E.child;case 11:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),xl(x,E,N,D,R);case 7:return Dt(x,E,E.pendingProps,R),E.child;case 8:return Dt(x,E,E.pendingProps.children,R),E.child;case 12:return Dt(x,E,E.pendingProps.children,R),E.child;case 10:e:{if(N=E.type._context,D=E.pendingProps,V=E.memoizedProps,te=D.value,Va(E,N,te),V!==null)if(Xt(V.value,te)){if(V.children===D.children&&!wt.current){E=Hr(x,E,R);break e}}else for(V=E.child,V!==null&&(V.return=E);V!==null;){var he=V.dependencies;if(he!==null){te=V.child;for(var ve=he.firstContext;ve!==null;){if(ve.context===N){if(V.tag===1){ve=vr(-1,R&-R),ve.tag=2;var Ee=V.updateQueue;if(Ee!==null){Ee=Ee.shared;var Me=Ee.pending;Me===null?ve.next=ve:(ve.next=Me.next,Me.next=ve),Ee.pending=ve}}V.lanes|=R,ve=V.alternate,ve!==null&&(ve.lanes|=R),aa(V.return,R,E),he.lanes|=R;break}ve=ve.next}}else if(V.tag===10)te=V.type===E.type?null:V.child;else if(V.tag===18){if(te=V.return,te===null)throw Error(y(341));te.lanes|=R,he=te.alternate,he!==null&&(he.lanes|=R),aa(te,R,E),te=V.sibling}else te=V.child;if(te!==null)te.return=V;else for(te=V;te!==null;){if(te===E){te=null;break}if(V=te.sibling,V!==null){V.return=te.return,te=V;break}te=te.return}V=te}Dt(x,E,D.children,R),E=E.child}return E;case 9:return D=E.type,N=E.pendingProps.children,yr(E,R),D=kt(D),N=N(D),E.flags|=1,Dt(x,E,N,R),E.child;case 14:return N=E.type,D=Gt(N,E.pendingProps),D=Gt(N.type,D),El(x,E,N,D,R);case 15:return $l(x,E,E.type,E.pendingProps,R);case 17:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),ro(x,E),E.tag=1,Ot(N)?(x=!0,ei(E)):x=!1,yr(E,R),Ln(E,N,D),B(E,N,D,R),vs(null,E,N,!0,x,R);case 19:return Ml(x,E,R);case 22:return wl(x,E,R)}throw Error(y(156,E.tag))};function ru(x,E){return qi(x,E)}function Hu(x,E,R,N){this.tag=x,this.key=R,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=E,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cr(x,E,R,N){return new Hu(x,E,R,N)}function Bs(x){return x=x.prototype,!(!x||!x.isReactComponent)}function Gu(x){if(typeof x=="function")return Bs(x)?1:0;if(x!=null){if(x=x.$$typeof,x===A)return 11;if(x===I)return 14}return 2}function un(x,E){var R=x.alternate;return R===null?(R=cr(x.tag,E,x.key,x.mode),R.elementType=x.elementType,R.type=x.type,R.stateNode=x.stateNode,R.alternate=x,x.alternate=R):(R.pendingProps=E,R.type=x.type,R.flags=0,R.subtreeFlags=0,R.deletions=null),R.flags=x.flags&14680064,R.childLanes=x.childLanes,R.lanes=x.lanes,R.child=x.child,R.memoizedProps=x.memoizedProps,R.memoizedState=x.memoizedState,R.updateQueue=x.updateQueue,E=x.dependencies,R.dependencies=E===null?null:{lanes:E.lanes,firstContext:E.firstContext},R.sibling=x.sibling,R.index=x.index,R.ref=x.ref,R}function So(x,E,R,N,D,V){var te=2;if(N=x,typeof x=="function")Bs(x)&&(te=1);else if(typeof x=="string")te=5;else e:switch(x){case $:return zn(R.children,D,V,E);case P:te=8,D|=8;break;case T:return x=cr(12,R,E,D|2),x.elementType=T,x.lanes=V,x;case F:return x=cr(13,R,E,D),x.elementType=F,x.lanes=V,x;case j:return x=cr(19,R,E,D),x.elementType=j,x.lanes=V,x;case L:return xo(R,D,V,E);default:if(typeof x=="object"&&x!==null)switch(x.$$typeof){case C:te=10;break e;case O:te=9;break e;case A:te=11;break e;case I:te=14;break e;case M:te=16,N=null;break e}throw Error(y(130,x==null?x:typeof x,""))}return E=cr(te,R,E,D),E.elementType=x,E.type=N,E.lanes=V,E}function zn(x,E,R,N){return x=cr(7,x,N,E),x.lanes=R,x}function xo(x,E,R,N){return x=cr(22,x,N,E),x.elementType=L,x.lanes=R,x.stateNode={isHidden:!1},x}function Hs(x,E,R){return x=cr(6,x,null,E),x.lanes=R,x}function Gs(x,E,R){return E=cr(4,x.children!==null?x.children:[],x.key,E),E.lanes=R,E.stateNode={containerInfo:x.containerInfo,pendingChildren:null,implementation:x.implementation},E}function Vu(x,E,R,N,D){this.tag=E,this.containerInfo=x,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Pe,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vi(0),this.expirationTimes=Vi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vi(0),this.identifierPrefix=N,this.onRecoverableError=D,Xe&&(this.mutableSourceEagerHydrationData=null)}function nu(x,E,R,N,D,V,te,he,ve){return x=new Vu(x,E,R,he,ve),E===1?(E=1,V===!0&&(E|=8)):E=0,V=cr(3,null,null,E),x.current=V,V.stateNode=x,V.memoizedState={element:N,isDehydrated:R,cache:null,transitions:null,pendingSuspenseBoundaries:null},tn(V),x}function iu(x){if(!x)return $r;x=x._reactInternals;e:{if(X(x)!==x||x.tag!==1)throw Error(y(170));var E=x;do{switch(E.tag){case 3:E=E.stateNode.context;break e;case 1:if(Ot(E.type)){E=E.stateNode.__reactInternalMemoizedMergedChildContext;break e}}E=E.return}while(E!==null);throw Error(y(171))}if(x.tag===1){var R=x.type;if(Ot(R))return La(x,R,E)}return E}function au(x){var E=x._reactInternals;if(E===void 0)throw typeof x.render=="function"?Error(y(188)):(x=Object.keys(x).join(","),Error(y(268,x)));return x=ie(E),x===null?null:x.stateNode}function ou(x,E){if(x=x.memoizedState,x!==null&&x.dehydrated!==null){var R=x.retryLane;x.retryLane=R!==0&&R=Ee&&V>=He&&D<=Me&&te<=Te){x.splice(E,1);break}else if(N!==Ee||R.width!==ve.width||Tete){if(!(V!==He||R.height!==ve.height||MeD)){Ee>N&&(ve.width+=Ee-N,ve.x=N),MeV&&(ve.height+=He-V,ve.y=V),TeR&&(R=te)),teLs&&(E.flags|=128,N=!0,pa(D,!1),E.lanes=4194304)}else{if(!N)if(x=Ka(V),x!==null){if(E.flags|=128,N=!0,x=x.updateQueue,x!==null&&(E.updateQueue=x,E.flags|=4),pa(D,!0),D.tail===null&&D.tailMode==="hidden"&&!V.alternate&&!nt)return Rt(E),null}else 2*dt()-D.renderingStartTime>Ls&&R!==1073741824&&(E.flags|=128,N=!0,pa(D,!1),E.lanes=4194304);D.isBackwards?(V.sibling=E.child,E.child=V):(x=D.last,x!==null?x.sibling=V:E.child=V,D.last=V)}return D.tail!==null?(E=D.tail,D.rendering=E,D.tail=E.sibling,D.renderingStartTime=dt(),E.sibling=null,x=lt.current,tt(lt,N?x&1|2:x&1),E):(Rt(E),null);case 22:case 23:return Us(),R=E.memoizedState!==null,x!==null&&x.memoizedState!==null!==R&&(E.flags|=8192),R&&E.mode&1?Zt&1073741824&&(Rt(E),je&&E.subtreeFlags&6&&(E.flags|=8192)):Rt(E),null;case 24:return null;case 25:return null}throw Error(y(156,E.tag))}function Au(x,E){switch(oi(E),E.tag){case 1:return Ot(E.type)&&Zn(),x=E.flags,x&65536?(E.flags=x&-65537|128,E):null;case 3:return yi(),rt(wt),rt(gt),ns(),x=E.flags,x&65536&&!(x&128)?(E.flags=x&-65537|128,E):null;case 5:return es(E),null;case 13:if(rt(lt),x=E.memoizedState,x!==null&&x.dehydrated!==null){if(E.alternate===null)throw Error(y(340));Zr()}return x=E.flags,x&65536?(E.flags=x&-65537|128,E):null;case 19:return rt(lt),null;case 4:return yi(),null;case 10:return ia(E.type._context),null;case 22:case 23:return Us(),null;case 24:return null;default:return null}}var ao=!1,At=!1,Mu=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function _i(x,E){var R=x.ref;if(R!==null)if(typeof R=="function")try{R(null)}catch(N){ot(x,E,N)}else R.current=null}function Es(x,E,R){try{R()}catch(N){ot(x,E,N)}}var Ll=!1;function Fu(x,E){for(fe(x.containerInfo),Ae=E;Ae!==null;)if(x=Ae,E=x.child,(x.subtreeFlags&1028)!==0&&E!==null)E.return=x,Ae=E;else for(;Ae!==null;){x=Ae;try{var R=x.alternate;if(x.flags&1024)switch(x.tag){case 0:case 11:case 15:break;case 1:if(R!==null){var N=R.memoizedProps,D=R.memoizedState,V=x.stateNode,te=V.getSnapshotBeforeUpdate(x.elementType===x.type?N:Gt(x.type,N),D);V.__reactInternalSnapshotBeforeUpdate=te}break;case 3:je&&Pa(x.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(he){ot(x,x.return,he)}if(E=x.sibling,E!==null){E.return=x.return,Ae=E;break}Ae=x.return}return R=Ll,Ll=!1,R}function ga(x,E,R){var N=E.updateQueue;if(N=N!==null?N.lastEffect:null,N!==null){var D=N=N.next;do{if((D.tag&x)===x){var V=D.destroy;D.destroy=void 0,V!==void 0&&Es(E,R,V)}D=D.next}while(D!==N)}}function oo(x,E){if(E=E.updateQueue,E=E!==null?E.lastEffect:null,E!==null){var R=E=E.next;do{if((R.tag&x)===x){var N=R.create;R.destroy=N()}R=R.next}while(R!==E)}}function $s(x){var E=x.ref;if(E!==null){var R=x.stateNode;switch(x.tag){case 5:x=Q(R);break;default:x=R}typeof E=="function"?E(x):E.current=x}}function Nl(x){var E=x.alternate;E!==null&&(x.alternate=null,Nl(E)),x.child=null,x.deletions=null,x.sibling=null,x.tag===5&&(E=x.stateNode,E!==null&&It(E)),x.stateNode=null,x.return=null,x.dependencies=null,x.memoizedProps=null,x.memoizedState=null,x.pendingProps=null,x.stateNode=null,x.updateQueue=null}function kl(x){return x.tag===5||x.tag===3||x.tag===4}function jl(x){e:for(;;){for(;x.sibling===null;){if(x.return===null||kl(x.return))return null;x=x.return}for(x.sibling.return=x.return,x=x.sibling;x.tag!==5&&x.tag!==6&&x.tag!==18;){if(x.flags&2||x.child===null||x.tag===4)continue e;x.child.return=x,x=x.child}if(!(x.flags&2))return x.stateNode}}function ws(x,E,R){var N=x.tag;if(N===5||N===6)x=x.stateNode,E?Ue(R,x,E):xn(R,x);else if(N!==4&&(x=x.child,x!==null))for(ws(x,E,R),x=x.sibling;x!==null;)ws(x,E,R),x=x.sibling}function Ps(x,E,R){var N=x.tag;if(N===5||N===6)x=x.stateNode,E?ct(R,x,E):Sn(R,x);else if(N!==4&&(x=x.child,x!==null))for(Ps(x,E,R),x=x.sibling;x!==null;)Ps(x,E,R),x=x.sibling}var Pt=null,br=!1;function Mr(x,E,R){for(R=R.child;R!==null;)Ts(x,E,R),R=R.sibling}function Ts(x,E,R){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(ni,R)}catch(he){}switch(R.tag){case 5:At||_i(R,E);case 6:if(je){var N=Pt,D=br;Pt=null,Mr(x,E,R),Pt=N,br=D,Pt!==null&&(br?Be(Pt,R.stateNode):De(Pt,R.stateNode))}else Mr(x,E,R);break;case 18:je&&Pt!==null&&(br?Ma(Pt,R.stateNode):Aa(Pt,R.stateNode));break;case 4:je?(N=Pt,D=br,Pt=R.stateNode.containerInfo,br=!0,Mr(x,E,R),Pt=N,br=D):(ze&&(N=R.stateNode.containerInfo,D=Yn(N),Xn(N,D)),Mr(x,E,R));break;case 0:case 11:case 14:case 15:if(!At&&(N=R.updateQueue,N!==null&&(N=N.lastEffect,N!==null))){D=N=N.next;do{var V=D,te=V.destroy;V=V.tag,te!==void 0&&(V&2||V&4)&&Es(R,E,te),D=D.next}while(D!==N)}Mr(x,E,R);break;case 1:if(!At&&(_i(R,E),N=R.stateNode,typeof N.componentWillUnmount=="function"))try{N.props=R.memoizedProps,N.state=R.memoizedState,N.componentWillUnmount()}catch(he){ot(R,E,he)}Mr(x,E,R);break;case 21:Mr(x,E,R);break;case 22:R.mode&1?(At=(N=At)||R.memoizedState!==null,Mr(x,E,R),At=N):Mr(x,E,R);break;default:Mr(x,E,R)}}function Dl(x){var E=x.updateQueue;if(E!==null){x.updateQueue=null;var R=x.stateNode;R===null&&(R=x.stateNode=new Mu),E.forEach(function(N){var D=Bu.bind(null,x,N);R.has(N)||(R.add(N),N.then(D,D))})}}function Sr(x,E){var R=E.deletions;if(R!==null)for(var N=0;N";case lo:return":has("+(Rs(x)||"")+")";case uo:return'[role="'+x.value+'"]';case fo:return'"'+x.value+'"';case co:return'[data-testname="'+x.value+'"]';default:throw Error(y(365))}}function Vl(x,E){var R=[];x=[x,0];for(var N=0;ND&&(D=te),N&=~V}if(N=D,N=dt()-N,N=(120>N?120:480>N?480:1080>N?1080:1920>N?1920:3e3>N?3e3:4320>N?4320:1960*Lu(N/1960))-N,10x?16:x,on===null)var N=!1;else{if(x=on,on=null,yo=0,Ye&6)throw Error(y(331));var D=Ye;for(Ye|=4,Ae=x.current;Ae!==null;){var V=Ae,te=V.child;if(Ae.flags&16){var he=V.deletions;if(he!==null){for(var ve=0;vedt()-Is?jn(x,0):Fs|=R),qt(x,E)}function eu(x,E){E===0&&(x.mode&1?(E=Tn,Tn<<=1,!(Tn&130023424)&&(Tn=4194304)):E=1);var R=Mt();x=Jt(x,E),x!==null&&(Cn(x,E,R),qt(x,R))}function zu(x){var E=x.memoizedState,R=0;E!==null&&(R=E.retryLane),eu(x,R)}function Bu(x,E){var R=0;switch(x.tag){case 13:var N=x.stateNode,D=x.memoizedState;D!==null&&(R=D.retryLane);break;case 19:N=x.stateNode;break;default:throw Error(y(314))}N!==null&&N.delete(E),eu(x,R)}var tu;tu=function(x,E,R){if(x!==null)if(x.memoizedProps!==E.pendingProps||wt.current)Vt=!0;else{if(!(x.lanes&R)&&!(E.flags&128))return Vt=!1,Cu(x,E,R);Vt=!!(x.flags&131072)}else Vt=!1,nt&&E.flags&1048576&&za(E,Rn,E.index);switch(E.lanes=0,E.tag){case 2:var N=E.type;ro(x,E),x=E.pendingProps;var D=Qr(E,gt.current);yr(E,R),D=us(null,E,N,x,D,R);var V=cs();return E.flags|=1,typeof D=="object"&&D!==null&&typeof D.render=="function"&&D.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,Ot(N)?(V=!0,ei(E)):V=!1,E.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,tn(E),D.updater=rn,E.stateNode=D,D._reactInternals=E,B(E,N,x,R),E=vs(null,E,N,!0,V,R)):(E.tag=0,nt&&V&&Zi(E),Dt(null,E,D,R),E=E.child),E;case 16:N=E.elementType;e:{switch(ro(x,E),x=E.pendingProps,D=N._init,N=D(N._payload),E.type=N,D=E.tag=Gu(N),x=Gt(N,x),D){case 0:E=ys(null,E,N,x,R);break e;case 1:E=Tl(null,E,N,x,R);break e;case 11:E=xl(null,E,N,x,R);break e;case 14:E=El(null,E,N,Gt(N.type,x),R);break e}throw Error(y(306,N,""))}return E;case 0:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),ys(x,E,N,D,R);case 1:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),Tl(x,E,N,D,R);case 3:e:{if(Ol(E),x===null)throw Error(y(387));N=E.pendingProps,V=E.memoizedState,D=V.element,Fn(x,E),gi(E,N,null,R);var te=E.memoizedState;if(N=te.element,Xe&&V.isDehydrated)if(V={element:N,isDehydrated:!1,cache:te.cache,pendingSuspenseBoundaries:te.pendingSuspenseBoundaries,transitions:te.transitions},E.updateQueue.baseState=V,E.memoizedState=V,E.flags&256){D=vi(Error(y(423)),E),E=Cl(x,E,N,R,D);break e}else if(N!==D){D=vi(Error(y(424)),E),E=Cl(x,E,N,R,D);break e}else for(Xe&&(Ht=Fo(E.stateNode.containerInfo),Nt=E,nt=!0,Qt=null,An=!1),R=nn(E,null,N,R),E.child=R;R;)R.flags=R.flags&-3|4096,R=R.sibling;else{if(Zr(),N===D){E=Hr(x,E,R);break e}Dt(x,E,N,R)}E=E.child}return E;case 5:return Ys(E),x===null&&si(E),N=E.type,D=E.pendingProps,V=x!==null?x.memoizedProps:null,te=D.children,Ie(N,D)?te=null:V!==null&&Ie(N,V)&&(E.flags|=32),Pl(x,E),Dt(x,E,te,R),E.child;case 6:return x===null&&si(E),null;case 13:return Rl(x,E,R);case 4:return Zo(E,E.stateNode.containerInfo),N=E.pendingProps,x===null?E.child=jt(E,null,N,R):Dt(x,E,N,R),E.child;case 11:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),xl(x,E,N,D,R);case 7:return Dt(x,E,E.pendingProps,R),E.child;case 8:return Dt(x,E,E.pendingProps.children,R),E.child;case 12:return Dt(x,E,E.pendingProps.children,R),E.child;case 10:e:{if(N=E.type._context,D=E.pendingProps,V=E.memoizedProps,te=D.value,Va(E,N,te),V!==null)if(Xt(V.value,te)){if(V.children===D.children&&!wt.current){E=Hr(x,E,R);break e}}else for(V=E.child,V!==null&&(V.return=E);V!==null;){var he=V.dependencies;if(he!==null){te=V.child;for(var ve=he.firstContext;ve!==null;){if(ve.context===N){if(V.tag===1){ve=vr(-1,R&-R),ve.tag=2;var Ee=V.updateQueue;if(Ee!==null){Ee=Ee.shared;var Me=Ee.pending;Me===null?ve.next=ve:(ve.next=Me.next,Me.next=ve),Ee.pending=ve}}V.lanes|=R,ve=V.alternate,ve!==null&&(ve.lanes|=R),aa(V.return,R,E),he.lanes|=R;break}ve=ve.next}}else if(V.tag===10)te=V.type===E.type?null:V.child;else if(V.tag===18){if(te=V.return,te===null)throw Error(y(341));te.lanes|=R,he=te.alternate,he!==null&&(he.lanes|=R),aa(te,R,E),te=V.sibling}else te=V.child;if(te!==null)te.return=V;else for(te=V;te!==null;){if(te===E){te=null;break}if(V=te.sibling,V!==null){V.return=te.return,te=V;break}te=te.return}V=te}Dt(x,E,D.children,R),E=E.child}return E;case 9:return D=E.type,N=E.pendingProps.children,yr(E,R),D=kt(D),N=N(D),E.flags|=1,Dt(x,E,N,R),E.child;case 14:return N=E.type,D=Gt(N,E.pendingProps),D=Gt(N.type,D),El(x,E,N,D,R);case 15:return $l(x,E,E.type,E.pendingProps,R);case 17:return N=E.type,D=E.pendingProps,D=E.elementType===N?D:Gt(N,D),ro(x,E),E.tag=1,Ot(N)?(x=!0,ei(E)):x=!1,yr(E,R),Ln(E,N,D),B(E,N,D,R),vs(null,E,N,!0,x,R);case 19:return Ml(x,E,R);case 22:return wl(x,E,R)}throw Error(y(156,E.tag))};function ru(x,E){return qi(x,E)}function Hu(x,E,R,N){this.tag=x,this.key=R,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=E,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fr(x,E,R,N){return new Hu(x,E,R,N)}function Bs(x){return x=x.prototype,!(!x||!x.isReactComponent)}function Gu(x){if(typeof x=="function")return Bs(x)?1:0;if(x!=null){if(x=x.$$typeof,x===A)return 11;if(x===L)return 14}return 2}function un(x,E){var R=x.alternate;return R===null?(R=fr(x.tag,E,x.key,x.mode),R.elementType=x.elementType,R.type=x.type,R.stateNode=x.stateNode,R.alternate=x,x.alternate=R):(R.pendingProps=E,R.type=x.type,R.flags=0,R.subtreeFlags=0,R.deletions=null),R.flags=x.flags&14680064,R.childLanes=x.childLanes,R.lanes=x.lanes,R.child=x.child,R.memoizedProps=x.memoizedProps,R.memoizedState=x.memoizedState,R.updateQueue=x.updateQueue,E=x.dependencies,R.dependencies=E===null?null:{lanes:E.lanes,firstContext:E.firstContext},R.sibling=x.sibling,R.index=x.index,R.ref=x.ref,R}function So(x,E,R,N,D,V){var te=2;if(N=x,typeof x=="function")Bs(x)&&(te=1);else if(typeof x=="string")te=5;else e:switch(x){case $:return zn(R.children,D,V,E);case P:te=8,D|=8;break;case T:return x=fr(12,R,E,D|2),x.elementType=T,x.lanes=V,x;case F:return x=fr(13,R,E,D),x.elementType=F,x.lanes=V,x;case j:return x=fr(19,R,E,D),x.elementType=j,x.lanes=V,x;case I:return xo(R,D,V,E);default:if(typeof x=="object"&&x!==null)switch(x.$$typeof){case C:te=10;break e;case O:te=9;break e;case A:te=11;break e;case L:te=14;break e;case M:te=16,N=null;break e}throw Error(y(130,x==null?x:typeof x,""))}return E=fr(te,R,E,D),E.elementType=x,E.type=N,E.lanes=V,E}function zn(x,E,R,N){return x=fr(7,x,N,E),x.lanes=R,x}function xo(x,E,R,N){return x=fr(22,x,N,E),x.elementType=I,x.lanes=R,x.stateNode={isHidden:!1},x}function Hs(x,E,R){return x=fr(6,x,null,E),x.lanes=R,x}function Gs(x,E,R){return E=fr(4,x.children!==null?x.children:[],x.key,E),E.lanes=R,E.stateNode={containerInfo:x.containerInfo,pendingChildren:null,implementation:x.implementation},E}function Vu(x,E,R,N,D){this.tag=E,this.containerInfo=x,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Pe,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vi(0),this.expirationTimes=Vi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vi(0),this.identifierPrefix=N,this.onRecoverableError=D,Xe&&(this.mutableSourceEagerHydrationData=null)}function nu(x,E,R,N,D,V,te,he,ve){return x=new Vu(x,E,R,he,ve),E===1?(E=1,V===!0&&(E|=8)):E=0,V=fr(3,null,null,E),x.current=V,V.stateNode=x,V.memoizedState={element:N,isDehydrated:R,cache:null,transitions:null,pendingSuspenseBoundaries:null},tn(V),x}function iu(x){if(!x)return $r;x=x._reactInternals;e:{if(X(x)!==x||x.tag!==1)throw Error(y(170));var E=x;do{switch(E.tag){case 3:E=E.stateNode.context;break e;case 1:if(Ot(E.type)){E=E.stateNode.__reactInternalMemoizedMergedChildContext;break e}}E=E.return}while(E!==null);throw Error(y(171))}if(x.tag===1){var R=x.type;if(Ot(R))return La(x,R,E)}return E}function au(x){var E=x._reactInternals;if(E===void 0)throw typeof x.render=="function"?Error(y(188)):(x=Object.keys(x).join(","),Error(y(268,x)));return x=ie(E),x===null?null:x.stateNode}function ou(x,E){if(x=x.memoizedState,x!==null&&x.dehydrated!==null){var R=x.retryLane;x.retryLane=R!==0&&R=Ee&&V>=He&&D<=Me&&te<=Te){x.splice(E,1);break}else if(N!==Ee||R.width!==ve.width||Tete){if(!(V!==He||R.height!==ve.height||MeD)){Ee>N&&(ve.width+=Ee-N,ve.x=N),MeV&&(ve.height+=He-V,ve.y=V),TeR&&(R=te)),te ")+` No matching component was found for: - `)+x.join(" > ")}return null},s.getPublicRootInstance=function(x){if(x=x.current,!x.child)return null;switch(x.child.tag){case 5:return Q(x.child.stateNode);default:return x.child.stateNode}},s.injectIntoDevTools=function(x){if(x={bundleType:x.bundleType,version:x.version,rendererPackageName:x.rendererPackageName,rendererConfig:x.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:Wu,findFiberByHostInstance:x.findFiberByHostInstance||qu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")x=!1;else{var E=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(E.isDisabled||!E.supportsFiber)x=!0;else{try{ni=E.inject(x),Lt=E}catch(R){}x=!!E.checkDCE}}return x},s.isAlreadyRendering=function(){return!1},s.observeVisibleRects=function(x,E,R,N){if(!kr)throw Error(y(363));x=As(x,E);var D=bn(x,R,N).disconnect;return{disconnect:function(){D()}}},s.registerMutableSourceForHydration=function(x,E){var R=E._getVersion;R=R(E._source),x.mutableSourceEagerHydrationData==null?x.mutableSourceEagerHydrationData=[E,R]:x.mutableSourceEagerHydrationData.push(E,R)},s.runWithPriority=function(x,E){var R=Qe;try{return Qe=x,E()}finally{Qe=R}},s.shouldError=function(){return null},s.shouldSuspend=function(){return!1},s.updateContainer=function(x,E,R,N){var D=E.current,V=Mt(),te=sn(D);return R=iu(R),E.context===null?E.context=R:E.pendingContext=R,E=vr(V,te),E.payload={element:x},N=N===void 0?null:N,N!==null&&(E.callback=N),x=_r(D,E,te),x!==null&&(ur(x,D,te,V),pi(x,D,te)),te},s};reactReconciler.exports=reactReconciler_production_min;var reactReconcilerExports=reactReconciler.exports;const ReactFiberReconciler=getDefaultExportFromCjs(reactReconcilerExports);var constants={exports:{}},reactReconcilerConstants_production_min={};/** + `)+x.join(" > ")}return null},s.getPublicRootInstance=function(x){if(x=x.current,!x.child)return null;switch(x.child.tag){case 5:return Q(x.child.stateNode);default:return x.child.stateNode}},s.injectIntoDevTools=function(x){if(x={bundleType:x.bundleType,version:x.version,rendererPackageName:x.rendererPackageName,rendererConfig:x.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:Wu,findFiberByHostInstance:x.findFiberByHostInstance||qu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")x=!1;else{var E=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(E.isDisabled||!E.supportsFiber)x=!0;else{try{ni=E.inject(x),Lt=E}catch(R){}x=!!E.checkDCE}}return x},s.isAlreadyRendering=function(){return!1},s.observeVisibleRects=function(x,E,R,N){if(!kr)throw Error(y(363));x=As(x,E);var D=bn(x,R,N).disconnect;return{disconnect:function(){D()}}},s.registerMutableSourceForHydration=function(x,E){var R=E._getVersion;R=R(E._source),x.mutableSourceEagerHydrationData==null?x.mutableSourceEagerHydrationData=[E,R]:x.mutableSourceEagerHydrationData.push(E,R)},s.runWithPriority=function(x,E){var R=Qe;try{return Qe=x,E()}finally{Qe=R}},s.shouldError=function(){return null},s.shouldSuspend=function(){return!1},s.updateContainer=function(x,E,R,N){var D=E.current,V=Mt(),te=sn(D);return R=iu(R),E.context===null?E.context=R:E.pendingContext=R,E=vr(V,te),E.payload={element:x},N=N===void 0?null:N,N!==null&&(E.callback=N),x=_r(D,E,te),x!==null&&(cr(x,D,te,V),pi(x,D,te)),te},s};reactReconciler.exports=reactReconciler_production_min;var reactReconcilerExports=reactReconciler.exports;const ReactFiberReconciler=getDefaultExportFromCjs(reactReconcilerExports);var constants={exports:{}},reactReconcilerConstants_production_min={};/** * @license React * react-reconciler-constants.production.min.js * @@ -53,7 +53,7 @@ For more info see: https://github.com/konvajs/react-konva/issues/256 `,Z_INDEX_WARNING=`ReactKonva: You are using "zIndex" attribute for a Konva node. react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. For more info see: https://github.com/konvajs/react-konva/issues/194 -`,EMPTY_PROPS={};function applyNodeProps(o,a,s=EMPTY_PROPS){if(!zIndexWarningShowed&&"zIndex"in a&&(zIndexWarningShowed=!0),!dragWarningShowed&&a.draggable){var c=a.x!==void 0||a.y!==void 0,f=a.onDragEnd||a.onDragMove;c&&!f&&(dragWarningShowed=!0)}for(var d in s)if(!propsToSkip[d]){var y=d.slice(0,2)==="on",_=s[d]!==a[d];if(y&&_){var S=d.substr(2).toLowerCase();S.substr(0,7)==="content"&&(S="content"+S.substr(7,1).toUpperCase()+S.substr(8)),o.off(S,s[d])}var b=!a.hasOwnProperty(d);b&&o.setAttr(d,void 0)}var $=a._useStrictMode,P={},T=!1;const C={};for(var d in a)if(!propsToSkip[d]){var y=d.slice(0,2)==="on",O=s[d]!==a[d];if(y&&O){var S=d.substr(2).toLowerCase();S.substr(0,7)==="content"&&(S="content"+S.substr(7,1).toUpperCase()+S.substr(8)),a[d]&&(C[S]=a[d])}!y&&(a[d]!==s[d]||$&&a[d]!==o.getAttr(d))&&(T=!0,P[d]=a[d])}T&&(o.setAttrs(P),updatePicture(o));for(var S in C)o.on(S+EVENTS_NAMESPACE,C[S])}function updatePicture(o){if(!Global.Konva.autoDrawEnabled){var a=o.getLayer()||o.getStage();a&&a.batchDraw()}}const NO_CONTEXT={},UPDATE_SIGNAL={};Konva.Node.prototype._applyProps=applyNodeProps;function appendInitialChild(o,a){typeof a!="string"&&(o.add(a),updatePicture(o))}function createInstance$1(o,a,s){let c=Konva[o];c||(c=Konva.Group);const f={},d={};for(var y in a){var _=y.slice(0,2)==="on";_?d[y]=a[y]:f[y]=a[y]}const S=new c(f);return applyNodeProps(S,d),S}function createTextInstance(o,a,s){}function finalizeInitialChildren(o,a,s){return!1}function getPublicInstance(o){return o}function prepareForCommit(){return null}function preparePortalMount(){return null}function prepareUpdate(o,a,s,c){return UPDATE_SIGNAL}function resetAfterCommit(){}function resetTextContent(o){}function shouldDeprioritizeSubtree(o,a){return!1}function getRootHostContext(){return NO_CONTEXT}function getChildHostContext(){return NO_CONTEXT}const scheduleTimeout=setTimeout,cancelTimeout=clearTimeout,noTimeout=-1;function shouldSetTextContent(o,a){return!1}const isPrimaryRenderer=!1,warnsIfNotActing=!0,supportsMutation=!0;function appendChild(o,a){a.parent===o?a.moveToTop():o.add(a),updatePicture(o)}function appendChildToContainer(o,a){a.parent===o?a.moveToTop():o.add(a),updatePicture(o)}function insertBefore(o,a,s){a._remove(),o.add(a),a.setZIndex(s.getZIndex()),updatePicture(o)}function insertInContainerBefore(o,a,s){insertBefore(o,a,s)}function removeChild(o,a){a.destroy(),a.off(EVENTS_NAMESPACE),updatePicture(o)}function removeChildFromContainer(o,a){a.destroy(),a.off(EVENTS_NAMESPACE),updatePicture(o)}function commitTextUpdate(o,a,s){}function commitMount(o,a,s){}function commitUpdate(o,a,s,c,f){applyNodeProps(o,f,c)}function hideInstance(o){o.hide(),updatePicture(o)}function hideTextInstance(o){}function unhideInstance(o,a){(a.visible==null||a.visible)&&o.show()}function unhideTextInstance(o,a){}function clearContainer(o){}function detachDeletedInstance(){}const getCurrentEventPriority=()=>constantsExports.DefaultEventPriority,HostConfig=Object.freeze(Object.defineProperty({__proto__:null,appendChild,appendChildToContainer,appendInitialChild,cancelTimeout,clearContainer,commitMount,commitTextUpdate,commitUpdate,createInstance:createInstance$1,createTextInstance,detachDeletedInstance,finalizeInitialChildren,getChildHostContext,getCurrentEventPriority,getPublicInstance,getRootHostContext,hideInstance,hideTextInstance,idlePriority:schedulerExports.unstable_IdlePriority,insertBefore,insertInContainerBefore,isPrimaryRenderer,noTimeout,now:schedulerExports.unstable_now,prepareForCommit,preparePortalMount,prepareUpdate,removeChild,removeChildFromContainer,resetAfterCommit,resetTextContent,run:schedulerExports.unstable_runWithPriority,scheduleTimeout,shouldDeprioritizeSubtree,shouldSetTextContent,supportsMutation,unhideInstance,unhideTextInstance,warnsIfNotActing},Symbol.toStringTag,{value:"Module"}));var __defProp$1=Object.defineProperty,__defProps$1=Object.defineProperties,__getOwnPropDescs$1=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$1=Object.getOwnPropertySymbols,__hasOwnProp$1=Object.prototype.hasOwnProperty,__propIsEnum$1=Object.prototype.propertyIsEnumerable,__defNormalProp$1=(o,a,s)=>a in o?__defProp$1(o,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[a]=s,__spreadValues$1=(o,a)=>{for(var s in a||(a={}))__hasOwnProp$1.call(a,s)&&__defNormalProp$1(o,s,a[s]);if(__getOwnPropSymbols$1)for(var s of __getOwnPropSymbols$1(a))__propIsEnum$1.call(a,s)&&__defNormalProp$1(o,s,a[s]);return o},__spreadProps$1=(o,a)=>__defProps$1(o,__getOwnPropDescs$1(a));function traverseFiber(o,a,s){if(!o)return;if(s(o)===!0)return o;let c=a?o.return:o.child;for(;c;){const f=traverseFiber(c,a,s);if(f)return f;c=a?null:c.sibling}}function wrapContext(o){try{return Object.defineProperties(o,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch(a){return o}}const FiberContext=wrapContext(reactExports.createContext(null));class FiberProvider extends reactExports.Component{render(){return reactExports.createElement(FiberContext.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner,ReactCurrentDispatcher}=reactExports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function useFiber(){const o=reactExports.useContext(FiberContext);if(o===null)throw new Error("its-fine: useFiber must be called within a !");const a=reactExports.useId();return reactExports.useMemo(()=>{for(const c of[ReactCurrentOwner==null?void 0:ReactCurrentOwner.current,o,o==null?void 0:o.alternate]){if(!c)continue;const f=traverseFiber(c,!1,d=>{let y=d.memoizedState;for(;y;){if(y.memoizedState===a)return!0;y=y.next}});if(f)return f}},[o,a])}function useContextMap(){var o,a;const s=useFiber(),[c]=reactExports.useState(()=>new Map);c.clear();let f=s;for(;f;){const d=(o=f.type)==null?void 0:o._context;d&&d!==FiberContext&&!c.has(d)&&c.set(d,(a=ReactCurrentDispatcher==null?void 0:ReactCurrentDispatcher.current)==null?void 0:a.readContext(wrapContext(d))),f=f.return}return c}function useContextBridge(){const o=useContextMap();return reactExports.useMemo(()=>Array.from(o.keys()).reduce((a,s)=>c=>reactExports.createElement(a,null,reactExports.createElement(s.Provider,__spreadProps$1(__spreadValues$1({},c),{value:o.get(s)}))),a=>reactExports.createElement(FiberProvider,__spreadValues$1({},a))),[o])}function usePrevious(o){const a=React$4.useRef({});return React$4.useLayoutEffect(()=>{a.current=o}),React$4.useLayoutEffect(()=>()=>{a.current={}},[]),a.current}const StageWrap=o=>{const a=React$4.useRef(),s=React$4.useRef(),c=React$4.useRef(),f=usePrevious(o),d=useContextBridge(),y=_=>{const{forwardedRef:S}=o;S&&(typeof S=="function"?S(_):S.current=_)};return React$4.useLayoutEffect(()=>(s.current=new Konva.Stage({width:o.width,height:o.height,container:a.current}),y(s.current),c.current=KonvaRenderer.createContainer(s.current,constantsExports.LegacyRoot,!1,null),KonvaRenderer.updateContainer(React$4.createElement(d,{},o.children),c.current),()=>{Konva.isBrowser&&(y(null),KonvaRenderer.updateContainer(null,c.current,null),s.current.destroy())}),[]),React$4.useLayoutEffect(()=>{y(s.current),applyNodeProps(s.current,o,f),KonvaRenderer.updateContainer(React$4.createElement(d,{},o.children),c.current,null)}),React$4.createElement("div",{ref:a,id:o.id,accessKey:o.accessKey,className:o.className,role:o.role,style:o.style,tabIndex:o.tabIndex,title:o.title})},KonvaRenderer=ReactFiberReconciler(HostConfig);KonvaRenderer.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:React$4.version,rendererPackageName:"react-konva"});React$4.forwardRef((o,a)=>React$4.createElement(FiberProvider,{},React$4.createElement(StageWrap,we(se({},o),{forwardedRef:a}))));const cyanImg="/react-antd-admin-pnpm/assets/cyan-blur-b0a7d652.png",redImg="/react-antd-admin-pnpm/assets/red-blur-bf4de889.png";function _inheritsLoose$2(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,_setPrototypeOf$8(o,a)}function invariant(o,a){if(!o){var s=new Error("loadable: "+a);throw s.framesToPop=1,s.name="Invariant Violation",s}}var Context=React$4.createContext(),LOADABLE_SHARED={initialChunks:{}},STATUS_PENDING="PENDING",STATUS_RESOLVED="RESOLVED",STATUS_REJECTED="REJECTED";function resolveConstructor(o){return typeof o=="function"?{requireAsync:o,resolve:function(){},chunkName:function(){}}:o}var withChunkExtractor=function(a){var s=function(f){return React$4.createElement(Context.Consumer,null,function(d){return React$4.createElement(a,Object.assign({__chunkExtractor:d},f))})};return a.displayName&&(s.displayName=a.displayName+"WithChunkExtractor"),s},identity$2=function(a){return a};function createLoadable(o){var a=o.defaultResolveComponent,s=a===void 0?identity$2:a,c=o.render,f=o.onLoad;function d(_,S){S===void 0&&(S={});var b=resolveConstructor(_),$={};function P(j){return S.cacheKey?S.cacheKey(j):b.resolve?b.resolve(j):"static"}function T(j,I,M){var L=S.resolveComponent?S.resolveComponent(j,I):s(j);return hoistNonReactStatics(M,L,{preload:!0}),L}var C=function(I){var M=P(I),L=$[M];return(!L||L.status===STATUS_REJECTED)&&(L=b.requireAsync(I),L.status=STATUS_PENDING,$[M]=L,L.then(function(){L.status=STATUS_RESOLVED},function(U){L.status=STATUS_REJECTED})),L},O=function(j){_inheritsLoose$2(I,j),I.getDerivedStateFromProps=function(U,z){var H=P(U);return _extends$f({},z,{cacheKey:H,loading:z.loading||z.cacheKey!==H})};function I(L){var U;return U=j.call(this,L)||this,U.state={result:null,error:null,loading:!0,cacheKey:P(L)},invariant(!L.__chunkExtractor||b.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),L.__chunkExtractor?S.ssr===!1?_assertThisInitialized$6(U):(b.requireAsync(L).catch(function(){return null}),U.loadSync(),L.__chunkExtractor.addChunk(b.chunkName(L)),_assertThisInitialized$6(U)):(S.ssr!==!1&&(b.isReady&&b.isReady(L)||b.chunkName&&LOADABLE_SHARED.initialChunks[b.chunkName(L)])&&U.loadSync(),U)}var M=I.prototype;return M.componentDidMount=function(){this.mounted=!0;var U=this.getCache();U&&U.status===STATUS_REJECTED&&this.setCache(),this.state.loading&&this.loadAsync()},M.componentDidUpdate=function(U,z){z.cacheKey!==this.state.cacheKey&&this.loadAsync()},M.componentWillUnmount=function(){this.mounted=!1},M.safeSetState=function(U,z){this.mounted&&this.setState(U,z)},M.getCacheKey=function(){return P(this.props)},M.getCache=function(){return $[this.getCacheKey()]},M.setCache=function(U){U===void 0&&(U=void 0),$[this.getCacheKey()]=U},M.triggerOnLoad=function(){var U=this;f&&setTimeout(function(){f(U.state.result,U.props)})},M.loadSync=function(){if(this.state.loading)try{var U=b.requireSync(this.props),z=T(U,this.props,F);this.state.result=z,this.state.loading=!1}catch(H){this.state.error=H}},M.loadAsync=function(){var U=this,z=this.resolveAsync();return z.then(function(H){var G=T(H,U.props,F);U.safeSetState({result:G,loading:!1},function(){return U.triggerOnLoad()})}).catch(function(H){return U.safeSetState({error:H,loading:!1})}),z},M.resolveAsync=function(){var U=this.props;U.__chunkExtractor,U.forwardedRef;var z=_objectWithoutPropertiesLoose$9(U,["__chunkExtractor","forwardedRef"]);return C(z)},M.render=function(){var U=this.props,z=U.forwardedRef,H=U.fallback;U.__chunkExtractor;var G=_objectWithoutPropertiesLoose$9(U,["forwardedRef","fallback","__chunkExtractor"]),X=this.state,W=X.error,K=X.loading,ie=X.result;if(S.suspense){var ee=this.getCache()||this.loadAsync();if(ee.status===STATUS_PENDING)throw this.loadAsync()}if(W)throw W;var de=H||S.fallback||null;return K?de:c({fallback:de,result:ie,options:S,props:_extends$f({},G,{ref:z})})},I}(React$4.Component),A=withChunkExtractor(O),F=React$4.forwardRef(function(j,I){return React$4.createElement(A,Object.assign({forwardedRef:I},j))});return F.displayName="Loadable",F.preload=function(j){F.load(j)},F.load=function(j){return C(j)},F}function y(_,S){return d(_,_extends$f({},S,{suspense:!0}))}return{loadable:d,lazy:y}}function defaultResolveComponent(o){return o.__esModule?o.default:o.default||o}var _createLoadable=createLoadable({defaultResolveComponent,render:function(a){var s=a.result,c=a.props;return React$4.createElement(s,c)}}),loadable=_createLoadable.loadable,lazy=_createLoadable.lazy,_createLoadable$1=createLoadable({onLoad:function(a,s){a&&s.forwardedRef&&(typeof s.forwardedRef=="function"?s.forwardedRef(a):s.forwardedRef.current=a)},render:function(a){var s=a.result,c=a.props;return c.children?c.children(s):null}}),loadable$1=_createLoadable$1.loadable,lazy$1=_createLoadable$1.lazy,loadable$2=loadable;loadable$2.lib=loadable$1;var lazy$2=lazy;lazy$2.lib=lazy$1;const useStyles$d=createStyles(({css:o,token:a})=>({loadingContainer:o` +`,EMPTY_PROPS={};function applyNodeProps(o,a,s=EMPTY_PROPS){if(!zIndexWarningShowed&&"zIndex"in a&&(zIndexWarningShowed=!0),!dragWarningShowed&&a.draggable){var c=a.x!==void 0||a.y!==void 0,f=a.onDragEnd||a.onDragMove;c&&!f&&(dragWarningShowed=!0)}for(var d in s)if(!propsToSkip[d]){var y=d.slice(0,2)==="on",_=s[d]!==a[d];if(y&&_){var S=d.substr(2).toLowerCase();S.substr(0,7)==="content"&&(S="content"+S.substr(7,1).toUpperCase()+S.substr(8)),o.off(S,s[d])}var b=!a.hasOwnProperty(d);b&&o.setAttr(d,void 0)}var $=a._useStrictMode,P={},T=!1;const C={};for(var d in a)if(!propsToSkip[d]){var y=d.slice(0,2)==="on",O=s[d]!==a[d];if(y&&O){var S=d.substr(2).toLowerCase();S.substr(0,7)==="content"&&(S="content"+S.substr(7,1).toUpperCase()+S.substr(8)),a[d]&&(C[S]=a[d])}!y&&(a[d]!==s[d]||$&&a[d]!==o.getAttr(d))&&(T=!0,P[d]=a[d])}T&&(o.setAttrs(P),updatePicture(o));for(var S in C)o.on(S+EVENTS_NAMESPACE,C[S])}function updatePicture(o){if(!Global.Konva.autoDrawEnabled){var a=o.getLayer()||o.getStage();a&&a.batchDraw()}}const NO_CONTEXT={},UPDATE_SIGNAL={};Konva.Node.prototype._applyProps=applyNodeProps;function appendInitialChild(o,a){typeof a!="string"&&(o.add(a),updatePicture(o))}function createInstance$1(o,a,s){let c=Konva[o];c||(c=Konva.Group);const f={},d={};for(var y in a){var _=y.slice(0,2)==="on";_?d[y]=a[y]:f[y]=a[y]}const S=new c(f);return applyNodeProps(S,d),S}function createTextInstance(o,a,s){}function finalizeInitialChildren(o,a,s){return!1}function getPublicInstance(o){return o}function prepareForCommit(){return null}function preparePortalMount(){return null}function prepareUpdate(o,a,s,c){return UPDATE_SIGNAL}function resetAfterCommit(){}function resetTextContent(o){}function shouldDeprioritizeSubtree(o,a){return!1}function getRootHostContext(){return NO_CONTEXT}function getChildHostContext(){return NO_CONTEXT}const scheduleTimeout=setTimeout,cancelTimeout=clearTimeout,noTimeout=-1;function shouldSetTextContent(o,a){return!1}const isPrimaryRenderer=!1,warnsIfNotActing=!0,supportsMutation=!0;function appendChild(o,a){a.parent===o?a.moveToTop():o.add(a),updatePicture(o)}function appendChildToContainer(o,a){a.parent===o?a.moveToTop():o.add(a),updatePicture(o)}function insertBefore(o,a,s){a._remove(),o.add(a),a.setZIndex(s.getZIndex()),updatePicture(o)}function insertInContainerBefore(o,a,s){insertBefore(o,a,s)}function removeChild(o,a){a.destroy(),a.off(EVENTS_NAMESPACE),updatePicture(o)}function removeChildFromContainer(o,a){a.destroy(),a.off(EVENTS_NAMESPACE),updatePicture(o)}function commitTextUpdate(o,a,s){}function commitMount(o,a,s){}function commitUpdate(o,a,s,c,f){applyNodeProps(o,f,c)}function hideInstance(o){o.hide(),updatePicture(o)}function hideTextInstance(o){}function unhideInstance(o,a){(a.visible==null||a.visible)&&o.show()}function unhideTextInstance(o,a){}function clearContainer(o){}function detachDeletedInstance(){}const getCurrentEventPriority=()=>constantsExports.DefaultEventPriority,HostConfig=Object.freeze(Object.defineProperty({__proto__:null,appendChild,appendChildToContainer,appendInitialChild,cancelTimeout,clearContainer,commitMount,commitTextUpdate,commitUpdate,createInstance:createInstance$1,createTextInstance,detachDeletedInstance,finalizeInitialChildren,getChildHostContext,getCurrentEventPriority,getPublicInstance,getRootHostContext,hideInstance,hideTextInstance,idlePriority:schedulerExports.unstable_IdlePriority,insertBefore,insertInContainerBefore,isPrimaryRenderer,noTimeout,now:schedulerExports.unstable_now,prepareForCommit,preparePortalMount,prepareUpdate,removeChild,removeChildFromContainer,resetAfterCommit,resetTextContent,run:schedulerExports.unstable_runWithPriority,scheduleTimeout,shouldDeprioritizeSubtree,shouldSetTextContent,supportsMutation,unhideInstance,unhideTextInstance,warnsIfNotActing},Symbol.toStringTag,{value:"Module"}));var __defProp$1=Object.defineProperty,__defProps$1=Object.defineProperties,__getOwnPropDescs$1=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$1=Object.getOwnPropertySymbols,__hasOwnProp$1=Object.prototype.hasOwnProperty,__propIsEnum$1=Object.prototype.propertyIsEnumerable,__defNormalProp$1=(o,a,s)=>a in o?__defProp$1(o,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[a]=s,__spreadValues$1=(o,a)=>{for(var s in a||(a={}))__hasOwnProp$1.call(a,s)&&__defNormalProp$1(o,s,a[s]);if(__getOwnPropSymbols$1)for(var s of __getOwnPropSymbols$1(a))__propIsEnum$1.call(a,s)&&__defNormalProp$1(o,s,a[s]);return o},__spreadProps$1=(o,a)=>__defProps$1(o,__getOwnPropDescs$1(a));function traverseFiber(o,a,s){if(!o)return;if(s(o)===!0)return o;let c=a?o.return:o.child;for(;c;){const f=traverseFiber(c,a,s);if(f)return f;c=a?null:c.sibling}}function wrapContext(o){try{return Object.defineProperties(o,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch(a){return o}}const FiberContext=wrapContext(reactExports.createContext(null));class FiberProvider extends reactExports.Component{render(){return reactExports.createElement(FiberContext.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner,ReactCurrentDispatcher}=reactExports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function useFiber(){const o=reactExports.useContext(FiberContext);if(o===null)throw new Error("its-fine: useFiber must be called within a !");const a=reactExports.useId();return reactExports.useMemo(()=>{for(const c of[ReactCurrentOwner==null?void 0:ReactCurrentOwner.current,o,o==null?void 0:o.alternate]){if(!c)continue;const f=traverseFiber(c,!1,d=>{let y=d.memoizedState;for(;y;){if(y.memoizedState===a)return!0;y=y.next}});if(f)return f}},[o,a])}function useContextMap(){var o,a;const s=useFiber(),[c]=reactExports.useState(()=>new Map);c.clear();let f=s;for(;f;){const d=(o=f.type)==null?void 0:o._context;d&&d!==FiberContext&&!c.has(d)&&c.set(d,(a=ReactCurrentDispatcher==null?void 0:ReactCurrentDispatcher.current)==null?void 0:a.readContext(wrapContext(d))),f=f.return}return c}function useContextBridge(){const o=useContextMap();return reactExports.useMemo(()=>Array.from(o.keys()).reduce((a,s)=>c=>reactExports.createElement(a,null,reactExports.createElement(s.Provider,__spreadProps$1(__spreadValues$1({},c),{value:o.get(s)}))),a=>reactExports.createElement(FiberProvider,__spreadValues$1({},a))),[o])}function usePrevious(o){const a=React$4.useRef({});return React$4.useLayoutEffect(()=>{a.current=o}),React$4.useLayoutEffect(()=>()=>{a.current={}},[]),a.current}const StageWrap=o=>{const a=React$4.useRef(),s=React$4.useRef(),c=React$4.useRef(),f=usePrevious(o),d=useContextBridge(),y=_=>{const{forwardedRef:S}=o;S&&(typeof S=="function"?S(_):S.current=_)};return React$4.useLayoutEffect(()=>(s.current=new Konva.Stage({width:o.width,height:o.height,container:a.current}),y(s.current),c.current=KonvaRenderer.createContainer(s.current,constantsExports.LegacyRoot,!1,null),KonvaRenderer.updateContainer(React$4.createElement(d,{},o.children),c.current),()=>{Konva.isBrowser&&(y(null),KonvaRenderer.updateContainer(null,c.current,null),s.current.destroy())}),[]),React$4.useLayoutEffect(()=>{y(s.current),applyNodeProps(s.current,o,f),KonvaRenderer.updateContainer(React$4.createElement(d,{},o.children),c.current,null)}),React$4.createElement("div",{ref:a,id:o.id,accessKey:o.accessKey,className:o.className,role:o.role,style:o.style,tabIndex:o.tabIndex,title:o.title})},KonvaRenderer=ReactFiberReconciler(HostConfig);KonvaRenderer.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:React$4.version,rendererPackageName:"react-konva"});React$4.forwardRef((o,a)=>React$4.createElement(FiberProvider,{},React$4.createElement(StageWrap,$e(se({},o),{forwardedRef:a}))));const cyanImg="/react-antd-admin-pnpm/assets/cyan-blur-b0a7d652.png",redImg="/react-antd-admin-pnpm/assets/red-blur-bf4de889.png";function _inheritsLoose$2(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,_setPrototypeOf$8(o,a)}function invariant(o,a){if(!o){var s=new Error("loadable: "+a);throw s.framesToPop=1,s.name="Invariant Violation",s}}var Context=React$4.createContext(),LOADABLE_SHARED={initialChunks:{}},STATUS_PENDING="PENDING",STATUS_RESOLVED="RESOLVED",STATUS_REJECTED="REJECTED";function resolveConstructor(o){return typeof o=="function"?{requireAsync:o,resolve:function(){},chunkName:function(){}}:o}var withChunkExtractor=function(a){var s=function(f){return React$4.createElement(Context.Consumer,null,function(d){return React$4.createElement(a,Object.assign({__chunkExtractor:d},f))})};return a.displayName&&(s.displayName=a.displayName+"WithChunkExtractor"),s},identity$2=function(a){return a};function createLoadable(o){var a=o.defaultResolveComponent,s=a===void 0?identity$2:a,c=o.render,f=o.onLoad;function d(_,S){S===void 0&&(S={});var b=resolveConstructor(_),$={};function P(j){return S.cacheKey?S.cacheKey(j):b.resolve?b.resolve(j):"static"}function T(j,L,M){var I=S.resolveComponent?S.resolveComponent(j,L):s(j);return hoistNonReactStatics(M,I,{preload:!0}),I}var C=function(L){var M=P(L),I=$[M];return(!I||I.status===STATUS_REJECTED)&&(I=b.requireAsync(L),I.status=STATUS_PENDING,$[M]=I,I.then(function(){I.status=STATUS_RESOLVED},function(U){I.status=STATUS_REJECTED})),I},O=function(j){_inheritsLoose$2(L,j),L.getDerivedStateFromProps=function(U,z){var H=P(U);return _extends$f({},z,{cacheKey:H,loading:z.loading||z.cacheKey!==H})};function L(I){var U;return U=j.call(this,I)||this,U.state={result:null,error:null,loading:!0,cacheKey:P(I)},invariant(!I.__chunkExtractor||b.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),I.__chunkExtractor?S.ssr===!1?_assertThisInitialized$6(U):(b.requireAsync(I).catch(function(){return null}),U.loadSync(),I.__chunkExtractor.addChunk(b.chunkName(I)),_assertThisInitialized$6(U)):(S.ssr!==!1&&(b.isReady&&b.isReady(I)||b.chunkName&&LOADABLE_SHARED.initialChunks[b.chunkName(I)])&&U.loadSync(),U)}var M=L.prototype;return M.componentDidMount=function(){this.mounted=!0;var U=this.getCache();U&&U.status===STATUS_REJECTED&&this.setCache(),this.state.loading&&this.loadAsync()},M.componentDidUpdate=function(U,z){z.cacheKey!==this.state.cacheKey&&this.loadAsync()},M.componentWillUnmount=function(){this.mounted=!1},M.safeSetState=function(U,z){this.mounted&&this.setState(U,z)},M.getCacheKey=function(){return P(this.props)},M.getCache=function(){return $[this.getCacheKey()]},M.setCache=function(U){U===void 0&&(U=void 0),$[this.getCacheKey()]=U},M.triggerOnLoad=function(){var U=this;f&&setTimeout(function(){f(U.state.result,U.props)})},M.loadSync=function(){if(this.state.loading)try{var U=b.requireSync(this.props),z=T(U,this.props,F);this.state.result=z,this.state.loading=!1}catch(H){this.state.error=H}},M.loadAsync=function(){var U=this,z=this.resolveAsync();return z.then(function(H){var G=T(H,U.props,F);U.safeSetState({result:G,loading:!1},function(){return U.triggerOnLoad()})}).catch(function(H){return U.safeSetState({error:H,loading:!1})}),z},M.resolveAsync=function(){var U=this.props;U.__chunkExtractor,U.forwardedRef;var z=_objectWithoutPropertiesLoose$9(U,["__chunkExtractor","forwardedRef"]);return C(z)},M.render=function(){var U=this.props,z=U.forwardedRef,H=U.fallback;U.__chunkExtractor;var G=_objectWithoutPropertiesLoose$9(U,["forwardedRef","fallback","__chunkExtractor"]),X=this.state,W=X.error,K=X.loading,ie=X.result;if(S.suspense){var ee=this.getCache()||this.loadAsync();if(ee.status===STATUS_PENDING)throw this.loadAsync()}if(W)throw W;var de=H||S.fallback||null;return K?de:c({fallback:de,result:ie,options:S,props:_extends$f({},G,{ref:z})})},L}(React$4.Component),A=withChunkExtractor(O),F=React$4.forwardRef(function(j,L){return React$4.createElement(A,Object.assign({forwardedRef:L},j))});return F.displayName="Loadable",F.preload=function(j){F.load(j)},F.load=function(j){return C(j)},F}function y(_,S){return d(_,_extends$f({},S,{suspense:!0}))}return{loadable:d,lazy:y}}function defaultResolveComponent(o){return o.__esModule?o.default:o.default||o}var _createLoadable=createLoadable({defaultResolveComponent,render:function(a){var s=a.result,c=a.props;return React$4.createElement(s,c)}}),loadable=_createLoadable.loadable,lazy=_createLoadable.lazy,_createLoadable$1=createLoadable({onLoad:function(a,s){a&&s.forwardedRef&&(typeof s.forwardedRef=="function"?s.forwardedRef(a):s.forwardedRef.current=a)},render:function(a){var s=a.result,c=a.props;return c.children?c.children(s):null}}),loadable$1=_createLoadable$1.loadable,lazy$1=_createLoadable$1.lazy,loadable$2=loadable;loadable$2.lib=loadable$1;var lazy$2=lazy;lazy$2.lib=lazy$1;const useStyles$e=createStyles(({css:o,token:a})=>({loadingContainer:o` width: 100%; height: 100%; display: flex; @@ -87,7 +87,7 @@ For more info see: https://github.com/konvajs/react-konva/issues/194 transform: rotate(1turn); } } - `})),Loading=()=>{const{styles:o}=useStyles$d();return jsxRuntimeExports.jsx("div",{className:o.loadingContainer,children:jsxRuntimeExports.jsx("div",{className:o.loading})})},LazyLoad=o=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(Loading,{}),children:jsxRuntimeExports.jsx(o,{})})});var TABLE_PAGESIZE=10,TABLE_START_PAGE=1,TABLE_CTRL_KEY="ctrl",TABLE_DEFAULT_ROW_KEY="id",INPUT_DEFAULT_MAXLENGTH=30,TEXTAREA_DEFAULT_MAXLENGTH=200,NUMBER_DEFAULT_MIN=0,NUMBER_DEFAULT_MAX=99999999,PERCENT_DEFAULT_MAX=100,FORM_DEFAULT_ALLOW_CLEAR=!0,FORM_TYPE_INPUT="input",FORM_TYPE_SEARCH="search",FORM_TYPE_NUMBER="number",FORM_TYPE_PERCENT="percent",FORM_TYPE_PASSWORD="password",FORM_TYPE_TEXTAREA="textarea",FORM_TYPE_SELECT="select",FORM_TYPE_SWITCH="switch",FORM_TYPE_CHECKBOX="checkbox",FORM_TYPE_CHECKBOX_GROUP="checkbox-group",FORM_TYPE_RADIO_GROUP="radio-group",FORM_TYPE_DATE="date",FORM_TYPE_DATE_RANGE="date-range",FORM_TYPE_EMPTY="empty",FORM_TYPE_CUSTOM="custom",FORM_TYPE_CARD="card",FORM_TYPE_GROUP="group",FORM_TYPE_INPUT_GROUP="input-group",FORM_TYPE_RATE="rate",FORM_TYPE_SLIDER="slider",FORM_TYPE_TAG_GROUP="tag-group",FORM_TYPE_CARD_GROUP="card-group",FORM_TYPE_HTML="html",FORM_TYPE_LIST="list",FORM_DEFAULT_VALUE_INPUT="",FORM_DEFAULT_VALUE_SEARCH="",FORM_DEFAULT_VALUE_NUMBER=null,FORM_DEFAULT_VALUE_PERCENT=null,FORM_DEFAULT_VALUE_PASSWORD="",FORM_DEFAULT_VALUE_TEXTAREA="",FORM_DEFAULT_VALUE_SELECT=void 0,FORM_DEFAULT_VALUE_SWITCH=!1,FORM_DEFAULT_VALUE_CHECKBOX=!1,FORM_DEFAULT_VALUE_CHECKBOX_GROUP=[],FORM_DEFAULT_VALUE_RADIO_GROUP=null,FORM_DEFAULT_VALUE_DATE=void 0,FORM_DEFAULT_VALUE_DATE_RANGE=[],FORM_DEFAULT_VALUE_EMPTY="",FORM_DEFAULT_VALUE_RATE=null,FORM_DEFAULT_VALUE_SLIDER=0,FORM_DEFAULT_VALUE_TAG_GROUP=void 0,FORM_DEFAULT_VALUE_CARD_GROUP=void 0,FORM_DEFAULT_VALUE_HTML=void 0,FORM_READONLY_EMPTY="-";function _typeof$e(o){"@babel/helpers - typeof";return _typeof$e=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},_typeof$e(o)}function ownKeys$i(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$h(o){for(var a=1;a2&&arguments[2]!==void 0?arguments[2]:"badge",f=s.find(function(d){var y=d.value;return y===a});return!f||!f.label?a:!f.color&&!f.status?f.label:React$4.createElement("div",null,c==="badge"?React$4.createElement(Badge,{color:f.color,status:f.status,text:f.label}):React$4.createElement(Tag$1,{color:f.color},f.label))},optionObj=function(a,s){var c={};return typeof s=="string"?c[s]=a[s]:Array.isArray(s)&&s.forEach(function(f){return c[f]=a[f]}),c},omitObj=function(a,s){var c=_objectSpread$h({},a);return typeof s=="string"?delete c[s]:Array.isArray(s)&&s.forEach(function(f){return delete c[f]}),c},getRowKey=function(a,s){try{if(typeof s=="function"){var c=s(a);if(typeof c=="string"||typeof c=="number")return c}else if(typeof s=="string"||typeof s=="number")return s;return TABLE_DEFAULT_ROW_KEY}catch(f){return TABLE_DEFAULT_ROW_KEY}},getKey=function(a,s){return a[getRowKey(a,s)]},_templateObject$3,_templateObject2$2,_templateObject3$2;function _taggedTemplateLiteral$3(o,a){return a||(a=o.slice(0)),Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}}))}const useStyles$c=createStyles(function(o){o.token;var a=o.css,s=a(_templateObject$3||(_templateObject$3=_taggedTemplateLiteral$3([""])));return{gButton:s,simple:a(_templateObject2$2||(_templateObject2$2=_taggedTemplateLiteral$3([` + `})),Loading=()=>{const{styles:o}=useStyles$e();return jsxRuntimeExports.jsx("div",{className:o.loadingContainer,children:jsxRuntimeExports.jsx("div",{className:o.loading})})},LazyLoad=o=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(Loading,{}),children:jsxRuntimeExports.jsx(o,{})})});var CTRL_DEFAULT_MAX=3,CTRL_DEFAULT_MORE_TEXT="更多",TABLE_PAGESIZE=10,TABLE_START_PAGE=1,TABLE_CTRL_KEY="ctrl",TABLE_DEFAULT_ROW_KEY="id",INPUT_DEFAULT_MAXLENGTH=30,TEXTAREA_DEFAULT_MAXLENGTH=200,NUMBER_DEFAULT_MIN=0,NUMBER_DEFAULT_MAX=99999999,PERCENT_DEFAULT_MAX=100,FORM_DEFAULT_ALLOW_CLEAR=!0,FORM_TYPE_INPUT="input",FORM_TYPE_SEARCH="search",FORM_TYPE_NUMBER="number",FORM_TYPE_PERCENT="percent",FORM_TYPE_PASSWORD="password",FORM_TYPE_TEXTAREA="textarea",FORM_TYPE_SELECT="select",FORM_TYPE_SWITCH="switch",FORM_TYPE_CHECKBOX="checkbox",FORM_TYPE_CHECKBOX_GROUP="checkbox-group",FORM_TYPE_RADIO_GROUP="radio-group",FORM_TYPE_DATE="date",FORM_TYPE_DATE_RANGE="date-range",FORM_TYPE_EMPTY="empty",FORM_TYPE_CUSTOM="custom",FORM_TYPE_CARD="card",FORM_TYPE_GROUP="group",FORM_TYPE_INPUT_GROUP="input-group",FORM_TYPE_RATE="rate",FORM_TYPE_SLIDER="slider",FORM_TYPE_TAG_GROUP="tag-group",FORM_TYPE_CARD_GROUP="card-group",FORM_TYPE_HTML="html",FORM_TYPE_LIST="list",FORM_DEFAULT_VALUE_INPUT="",FORM_DEFAULT_VALUE_SEARCH="",FORM_DEFAULT_VALUE_NUMBER=null,FORM_DEFAULT_VALUE_PERCENT=null,FORM_DEFAULT_VALUE_PASSWORD="",FORM_DEFAULT_VALUE_TEXTAREA="",FORM_DEFAULT_VALUE_SELECT=void 0,FORM_DEFAULT_VALUE_SWITCH=!1,FORM_DEFAULT_VALUE_CHECKBOX=!1,FORM_DEFAULT_VALUE_CHECKBOX_GROUP=[],FORM_DEFAULT_VALUE_RADIO_GROUP=null,FORM_DEFAULT_VALUE_DATE=void 0,FORM_DEFAULT_VALUE_DATE_RANGE=[],FORM_DEFAULT_VALUE_EMPTY="",FORM_DEFAULT_VALUE_RATE=null,FORM_DEFAULT_VALUE_SLIDER=0,FORM_DEFAULT_VALUE_TAG_GROUP=void 0,FORM_DEFAULT_VALUE_CARD_GROUP=void 0,FORM_DEFAULT_VALUE_HTML=void 0,FORM_READONLY_EMPTY="-";function _typeof$e(o){"@babel/helpers - typeof";return _typeof$e=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},_typeof$e(o)}function ownKeys$i(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$h(o){for(var a=1;a2&&arguments[2]!==void 0?arguments[2]:"badge",f=s.find(function(d){var y=d.value;return y===a});return!f||!f.label?a:!f.color&&!f.status?f.label:React$4.createElement("div",null,c==="badge"?React$4.createElement(Badge,{color:f.color,status:f.status,text:f.label}):React$4.createElement(Tag$1,{color:f.color},f.label))},optionObj=function(a,s){var c={};return typeof s=="string"?c[s]=a[s]:Array.isArray(s)&&s.forEach(function(f){return c[f]=a[f]}),c},omitObj=function(a,s){var c=_objectSpread$h({},a);return typeof s=="string"?delete c[s]:Array.isArray(s)&&s.forEach(function(f){return delete c[f]}),c},getRowKey=function(a,s){try{if(typeof s=="function"){var c=s(a);if(typeof c=="string"||typeof c=="number")return c}else if(typeof s=="string"||typeof s=="number")return s;return TABLE_DEFAULT_ROW_KEY}catch(f){return TABLE_DEFAULT_ROW_KEY}},getKey=function(a,s){return a[getRowKey(a,s)]},_templateObject$3,_templateObject2$2,_templateObject3$2;function _taggedTemplateLiteral$3(o,a){return a||(a=o.slice(0)),Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}}))}const useStyles$d=createStyles(function(o){o.token;var a=o.css,s=a(_templateObject$3||(_templateObject$3=_taggedTemplateLiteral$3([""])));return{gButton:s,simple:a(_templateObject2$2||(_templateObject2$2=_taggedTemplateLiteral$3([` `,`, width: '100%', `])),s),sub:a(_templateObject3$2||(_templateObject3$2=_taggedTemplateLiteral$3([` @@ -106,10 +106,10 @@ For more info see: https://github.com/konvajs/react-konva/issues/194 background-color: unset; } `])),s)}});function _typeof$d(o){"@babel/helpers - typeof";return _typeof$d=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},_typeof$d(o)}function _extends$b(){return _extends$b=Object.assign?Object.assign.bind():function(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0;--le){var ae=this.tryEntries[le],ce=ae.completion;if(ae.tryLoc==="root")return fe("end");if(ae.tryLoc<=this.prev){var ge=c.call(ae,"catchLoc"),pe=c.call(ae,"finallyLoc");if(ge&&pe){if(this.prev=0;--fe){var le=this.tryEntries[fe];if(le.tryLoc<=this.prev&&c.call(le,"finallyLoc")&&this.prev=0;--ne){var fe=this.tryEntries[ne];if(fe.finallyLoc===J)return this.complete(fe.completion,fe.afterLoc),ee(fe),F}},catch:function(J){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var fe=this.tryEntries[ne];if(fe.tryLoc===J){var le=fe.completion;if(le.type==="throw"){var ae=le.arg;ee(fe)}return ae}}throw new Error("illegal catch attempt")},delegateYield:function(J,ne,fe){return this.delegate={iterator:Z(J),resultName:ne,nextLoc:fe},this.method==="next"&&(this.arg=o),F}},a}function asyncGeneratorStep$1(o,a,s,c,f,d,y){try{var _=o[d](y),S=_.value}catch(b){s(b);return}_.done?a(S):Promise.resolve(S).then(c,f)}function _asyncToGenerator$1(o){return function(){var a=this,s=arguments;return new Promise(function(c,f){var d=o.apply(a,s);function y(S){asyncGeneratorStep$1(d,c,f,y,_,"next",S)}function _(S){asyncGeneratorStep$1(d,c,f,y,_,"throw",S)}y(void 0)})}}function _toConsumableArray$9(o){return _arrayWithoutHoles$9(o)||_iterableToArray$9(o)||_unsupportedIterableToArray$a(o)||_nonIterableSpread$9()}function _nonIterableSpread$9(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$b(o,a){if(o){if(typeof o=="string")return _arrayLikeToArray$b(o,a);var s=Object.prototype.toString.call(o).slice(8,-1);if(s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set")return Array.from(o);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return _arrayLikeToArray$b(o,a)}}function _arrayLikeToArray$b(o,a){(a==null||a>o.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0;--le){var ae=this.tryEntries[le],ce=ae.completion;if(ae.tryLoc==="root")return fe("end");if(ae.tryLoc<=this.prev){var ge=c.call(ae,"catchLoc"),pe=c.call(ae,"finallyLoc");if(ge&&pe){if(this.prev=0;--fe){var le=this.tryEntries[fe];if(le.tryLoc<=this.prev&&c.call(le,"finallyLoc")&&this.prev=0;--ne){var fe=this.tryEntries[ne];if(fe.finallyLoc===J)return this.complete(fe.completion,fe.afterLoc),ee(fe),F}},catch:function(J){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var fe=this.tryEntries[ne];if(fe.tryLoc===J){var le=fe.completion;if(le.type==="throw"){var ae=le.arg;ee(fe)}return ae}}throw new Error("illegal catch attempt")},delegateYield:function(J,ne,fe){return this.delegate={iterator:Z(J),resultName:ne,nextLoc:fe},this.method==="next"&&(this.arg=o),F}},a}function asyncGeneratorStep$1(o,a,s,c,f,d,y){try{var _=o[d](y),S=_.value}catch(b){s(b);return}_.done?a(S):Promise.resolve(S).then(c,f)}function _asyncToGenerator$1(o){return function(){var a=this,s=arguments;return new Promise(function(c,f){var d=o.apply(a,s);function y(S){asyncGeneratorStep$1(d,c,f,y,_,"next",S)}function _(S){asyncGeneratorStep$1(d,c,f,y,_,"throw",S)}y(void 0)})}}function _toConsumableArray$9(o){return _arrayWithoutHoles$9(o)||_iterableToArray$9(o)||_unsupportedIterableToArray$a(o)||_nonIterableSpread$9()}function _nonIterableSpread$9(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$9(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function _arrayWithoutHoles$9(o){if(Array.isArray(o))return _arrayLikeToArray$a(o)}function _slicedToArray$6(o,a){return _arrayWithHoles$6(o)||_iterableToArrayLimit$6(o,a)||_unsupportedIterableToArray$a(o,a)||_nonIterableRest$6()}function _nonIterableRest$6(){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 _unsupportedIterableToArray$a(o,a){if(o){if(typeof o=="string")return _arrayLikeToArray$a(o,a);var s=Object.prototype.toString.call(o).slice(8,-1);if(s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set")return Array.from(o);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return _arrayLikeToArray$a(o,a)}}function _arrayLikeToArray$a(o,a){(a==null||a>o.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$7(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function ownKeys$e(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$d(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$7(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function ownKeys$e(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$d(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$6(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}var isExpression$1=function(a){return typeof a!="string"?!1:/^{{(.+)}}$/.test(a)};function parseExpression(o,a){var s=o.substring(2,o.length-2),c=s.replace(/formValues/g,JSON.stringify(a));try{return new Function("return ("+c+")")()}catch(f){}return c}function parseFields(o,a){var s=function c(f){var d=f.children,y=_objectWithoutProperties$4(f,_excluded$5);for(var _ in y)Array.isArray(y[_])&&_==="children"?y[_]=y[_].map(function(S){return c(_objectSpread$b({},S))}):isObj(y[_])&&!(dayjs(y[_]).isValid()||reactExports.isValidElement(y[_]))?y[_]=c(_objectSpread$b({},y[_])):isExpression$1(y[_])&&(y[_]=parseExpression(y[_],a));return _objectSpread$b(_objectSpread$b({},y),{},{children:d})};return o.map(function(c){return s(_objectSpread$b({},c))})}var getDateValue=function(a,s,c){var f,d=s!=null&&s.showTime||s!=null&&(f=s.props)!==null&&f!==void 0&&f.showTime?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";if(s.formatRule&&(d=s.formatRule),s.readonlyFormatRule&&c&&(d=s.readonlyFormatRule),s.type===FORM_TYPE_DATE)a=a?dayjs(a).format(d):null;else if(Array.isArray(a)&&s.type===FORM_TYPE_DATE_RANGE){var y=a,_=_slicedToArray$4(y,2),S=_[0],b=_[1];a=[S?dayjs(S).format(d):null,b?dayjs(b).format(d):null]}return a};function _typeof$7(o){"@babel/helpers - typeof";return _typeof$7=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},_typeof$7(o)}var _excluded$4=["key","name"];function _extends$6(){return _extends$6=Object.assign?Object.assign.bind():function(o){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$5(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function _defineProperty$c(o,a,s){return a=_toPropertyKey$8(a),a in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s,o}function _toPropertyKey$8(o){var a=_toPrimitive$8(o,"string");return _typeof$7(a)=="symbol"?a:String(a)}function _toPrimitive$8(o,a){if(_typeof$7(o)!="object"||!o)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var c=s.call(o,a||"default");if(_typeof$7(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(o)}function _toConsumableArray$5(o){return _arrayWithoutHoles$5(o)||_iterableToArray$5(o)||_unsupportedIterableToArray$4(o)||_nonIterableSpread$5()}function _nonIterableSpread$5(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$5(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function _arrayWithoutHoles$5(o){if(Array.isArray(o))return _arrayLikeToArray$4(o)}function _slicedToArray$3(o,a){return _arrayWithHoles$3(o)||_iterableToArrayLimit$3(o,a)||_unsupportedIterableToArray$4(o,a)||_nonIterableRest$3()}function _nonIterableRest$3(){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 _unsupportedIterableToArray$4(o,a){if(o){if(typeof o=="string")return _arrayLikeToArray$4(o,a);var s=Object.prototype.toString.call(o).slice(8,-1);if(s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set")return Array.from(o);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return _arrayLikeToArray$4(o,a)}}function _arrayLikeToArray$4(o,a){(a==null||a>o.length)&&(a=o.length);for(var s=0,c=new Array(a);s_&&React$4.createElement("span",{className:"g-form-list-action",onClick:function(){return A(G,L)}},React$4.createElement(Tooltip,{title:locale.form.removeRow},React$4.createElement(DeleteOutlined,null)))))}),T=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$4(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s_&&React$4.createElement("span",{className:"g-form-list-action",onClick:function(){return A(G,I)}},React$4.createElement(Tooltip,{title:locale.form.removeRow},React$4.createElement(DeleteOutlined,null)))))}),T=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$4(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);so.length)&&(a=o.length);for(var s=0,c=new Array(a);s=a||H<0||P&&G>=d}function j(){var z=now$1();if(F(z))return I(z);_=setTimeout(j,A(z))}function I(z){return _=void 0,T&&c?C(z):(c=f=void 0,y)}function M(){_!==void 0&&clearTimeout(_),b=0,c=S=f=_=void 0}function L(){return _===void 0?y:I(now$1())}function U(){var z=now$1(),H=F(z);if(c=arguments,f=this,S=z,H){if(_===void 0)return O(S);if(P)return clearTimeout(_),_=setTimeout(j,a),C(S)}return _===void 0&&(_=setTimeout(j,a)),y}return U.cancel=M,U.flush=L,U}var debounce_1=debounce$2;const debounce$3=getDefaultExportFromCjs(debounce_1);var debounce$1=debounce_1,isObject$5=isObject_1,FUNC_ERROR_TEXT$1="Expected a function";function throttle$2(o,a,s){var c=!0,f=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$5(s)&&(c="leading"in s?!!s.leading:c,f="trailing"in s?!!s.trailing:f),debounce$1(o,a,{leading:c,maxWait:a,trailing:f})}var throttle_1=throttle$2;const throttle$3=getDefaultExportFromCjs(throttle_1);var extendStatics=function(o,a){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var f in c)c.hasOwnProperty(f)&&(s[f]=c[f])},extendStatics(o,a)};function __extends$1(o,a){extendStatics(o,a);function s(){this.constructor=o}o.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}var __assign$1=function(){return __assign$1=Object.assign||function(a){for(var s,c=1,f=arguments.length;c0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const s=(o=window.document)===null||o===void 0||(o=o.documentElement)===null||o===void 0?void 0:o.style;if(!s||a in s)return"";for(let c=0;ca===s.identifier)||o.changedTouches&&(0,_shims$2.findInArray)(o.changedTouches,s=>a===s.identifier)}function getTouchIdentifier(o){if(o.targetTouches&&o.targetTouches[0])return o.targetTouches[0].identifier;if(o.changedTouches&&o.changedTouches[0])return o.changedTouches[0].identifier}function addUserSelectStyles(o){if(!o)return;let a=o.getElementById("react-draggable-style-el");a||(a=o.createElement("style"),a.type="text/css",a.id="react-draggable-style-el",a.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} + }`])));return{gSearch:c,gForm:d,inline:f,antCardBody:y}}),index$1="";var dist={},DetectableOverflow$1={};function isObject$8(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}var isObject_1=isObject$8,freeGlobal$4=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$4,freeGlobal$3=_freeGlobal,freeSelf$2=typeof self=="object"&&self&&self.Object===Object&&self,root$5=freeGlobal$3||freeSelf$2||Function("return this")(),_root=root$5,root$4=_root,now$2=function(){return root$4.Date.now()},now_1=now$2,reWhitespace=/\s/;function trimmedEndIndex$1(o){for(var a=o.length;a--&&reWhitespace.test(o.charAt(a)););return a}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(o){return o&&o.slice(0,trimmedEndIndex(o)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root$3=_root,Symbol$5=root$3.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$i=Object.prototype,hasOwnProperty$e=objectProto$i.hasOwnProperty,nativeObjectToString$3=objectProto$i.toString,symToStringTag$3=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$2(o){var a=hasOwnProperty$e.call(o,symToStringTag$3),s=o[symToStringTag$3];try{o[symToStringTag$3]=void 0;var c=!0}catch(d){}var f=nativeObjectToString$3.call(o);return c&&(a?o[symToStringTag$3]=s:delete o[symToStringTag$3]),f}var _getRawTag=getRawTag$2,objectProto$h=Object.prototype,nativeObjectToString$2=objectProto$h.toString;function objectToString$4(o){return nativeObjectToString$2.call(o)}var _objectToString=objectToString$4,Symbol$3=_Symbol,getRawTag$1=_getRawTag,objectToString$3=_objectToString,nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$2(o){return o==null?o===void 0?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(o)?getRawTag$1(o):objectToString$3(o)}var _baseGetTag=baseGetTag$2;function isObjectLike$4(o){return o!=null&&typeof o=="object"}var isObjectLike_1=isObjectLike$4,baseGetTag$1=_baseGetTag,isObjectLike$3=isObjectLike_1,symbolTag$4="[object Symbol]";function isSymbol$3(o){return typeof o=="symbol"||isObjectLike$3(o)&&baseGetTag$1(o)==symbolTag$4}var isSymbol_1=isSymbol$3,baseTrim=_baseTrim,isObject$7=isObject_1,isSymbol$2=isSymbol_1,NAN$1=0/0,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$2(o){if(typeof o=="number")return o;if(isSymbol$2(o))return NAN$1;if(isObject$7(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=isObject$7(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=baseTrim(o);var s=reIsBinary$1.test(o);return s||reIsOctal$1.test(o)?freeParseInt$1(o.slice(2),s?2:8):reIsBadHex$1.test(o)?NAN$1:+o}var toNumber_1=toNumber$2,isObject$6=isObject_1,now$1=now_1,toNumber$1=toNumber_1,FUNC_ERROR_TEXT$2="Expected a function",nativeMax$2=Math.max,nativeMin$2=Math.min;function debounce$2(o,a,s){var c,f,d,y,_,S,b=0,$=!1,P=!1,T=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT$2);a=toNumber$1(a)||0,isObject$6(s)&&($=!!s.leading,P="maxWait"in s,d=P?nativeMax$2(toNumber$1(s.maxWait)||0,a):d,T="trailing"in s?!!s.trailing:T);function C(z){var H=c,G=f;return c=f=void 0,b=z,y=o.apply(G,H),y}function O(z){return b=z,_=setTimeout(j,a),$?C(z):y}function A(z){var H=z-S,G=z-b,X=a-H;return P?nativeMin$2(X,d-G):X}function F(z){var H=z-S,G=z-b;return S===void 0||H>=a||H<0||P&&G>=d}function j(){var z=now$1();if(F(z))return L(z);_=setTimeout(j,A(z))}function L(z){return _=void 0,T&&c?C(z):(c=f=void 0,y)}function M(){_!==void 0&&clearTimeout(_),b=0,c=S=f=_=void 0}function I(){return _===void 0?y:L(now$1())}function U(){var z=now$1(),H=F(z);if(c=arguments,f=this,S=z,H){if(_===void 0)return O(S);if(P)return clearTimeout(_),_=setTimeout(j,a),C(S)}return _===void 0&&(_=setTimeout(j,a)),y}return U.cancel=M,U.flush=I,U}var debounce_1=debounce$2;const debounce$3=getDefaultExportFromCjs(debounce_1);var debounce$1=debounce_1,isObject$5=isObject_1,FUNC_ERROR_TEXT$1="Expected a function";function throttle$2(o,a,s){var c=!0,f=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$5(s)&&(c="leading"in s?!!s.leading:c,f="trailing"in s?!!s.trailing:f),debounce$1(o,a,{leading:c,maxWait:a,trailing:f})}var throttle_1=throttle$2;const throttle$3=getDefaultExportFromCjs(throttle_1);var extendStatics=function(o,a){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var f in c)c.hasOwnProperty(f)&&(s[f]=c[f])},extendStatics(o,a)};function __extends$1(o,a){extendStatics(o,a);function s(){this.constructor=o}o.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}var __assign$1=function(){return __assign$1=Object.assign||function(a){for(var s,c=1,f=arguments.length;c0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const s=(o=window.document)===null||o===void 0||(o=o.documentElement)===null||o===void 0?void 0:o.style;if(!s||a in s)return"";for(let c=0;ca===s.identifier)||o.changedTouches&&(0,_shims$2.findInArray)(o.changedTouches,s=>a===s.identifier)}function getTouchIdentifier(o){if(o.targetTouches&&o.targetTouches[0])return o.targetTouches[0].identifier;if(o.changedTouches&&o.changedTouches[0])return o.changedTouches[0].identifier}function addUserSelectStyles(o){if(!o)return;let a=o.getElementById("react-draggable-style-el");a||(a=o.createElement("style"),a.type="text/css",a.id="react-draggable-style-el",a.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} `,a.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,o.getElementsByTagName("head")[0].appendChild(a)),o.body&&addClassName(o.body,"react-draggable-transparent-selection")}function removeUserSelectStyles(o){if(o)try{if(o.body&&removeClassName(o.body,"react-draggable-transparent-selection"),o.selection)o.selection.empty();else{const a=(o.defaultView||window).getSelection();a&&a.type!=="Caret"&&a.removeAllRanges()}}catch(a){}}function addClassName(o,a){o.classList?o.classList.add(a):o.className.match(new RegExp("(?:^|\\s)".concat(a,"(?!\\S)")))||(o.className+=" ".concat(a))}function removeClassName(o,a){o.classList?o.classList.remove(a):o.className=o.className.replace(new RegExp("(?:^|\\s)".concat(a,"(?!\\S)"),"g"),"")}var positionFns={};Object.defineProperty(positionFns,"__esModule",{value:!0});positionFns.canDragX=canDragX;positionFns.canDragY=canDragY;positionFns.createCoreData=createCoreData;positionFns.createDraggableData=createDraggableData;positionFns.getBoundPosition=getBoundPosition;positionFns.getControlPosition=getControlPosition;positionFns.snapToGrid=snapToGrid;var _shims$1=shims,_domFns$1=domFns;function getBoundPosition(o,a,s){if(!o.props.bounds)return[a,s];let{bounds:c}=o.props;c=typeof c=="string"?c:cloneBounds(c);const f=findDOMNode(o);if(typeof c=="string"){const{ownerDocument:d}=f,y=d.defaultView;let _;if(c==="parent"?_=f.parentNode:_=d.querySelector(c),!(_ instanceof y.HTMLElement))throw new Error('Bounds selector "'+c+'" could not find an element.');const S=_,b=y.getComputedStyle(f),$=y.getComputedStyle(S);c={left:-f.offsetLeft+(0,_shims$1.int)($.paddingLeft)+(0,_shims$1.int)(b.marginLeft),top:-f.offsetTop+(0,_shims$1.int)($.paddingTop)+(0,_shims$1.int)(b.marginTop),right:(0,_domFns$1.innerWidth)(S)-(0,_domFns$1.outerWidth)(f)-f.offsetLeft+(0,_shims$1.int)($.paddingRight)-(0,_shims$1.int)(b.marginRight),bottom:(0,_domFns$1.innerHeight)(S)-(0,_domFns$1.outerHeight)(f)-f.offsetTop+(0,_shims$1.int)($.paddingBottom)-(0,_shims$1.int)(b.marginBottom)}}return(0,_shims$1.isNum)(c.right)&&(a=Math.min(a,c.right)),(0,_shims$1.isNum)(c.bottom)&&(s=Math.min(s,c.bottom)),(0,_shims$1.isNum)(c.left)&&(a=Math.max(a,c.left)),(0,_shims$1.isNum)(c.top)&&(s=Math.max(s,c.top)),[a,s]}function snapToGrid(o,a,s){const c=Math.round(a/o[0])*o[0],f=Math.round(s/o[1])*o[1];return[c,f]}function canDragX(o){return o.props.axis==="both"||o.props.axis==="x"}function canDragY(o){return o.props.axis==="both"||o.props.axis==="y"}function getControlPosition(o,a,s){const c=typeof a=="number"?(0,_domFns$1.getTouch)(o,a):null;if(typeof a=="number"&&!c)return null;const f=findDOMNode(s),d=s.props.offsetParent||f.offsetParent||f.ownerDocument.body;return(0,_domFns$1.offsetXYFromParent)(c||o,d,s.props.scale)}function createCoreData(o,a,s){const c=!(0,_shims$1.isNum)(o.lastX),f=findDOMNode(o);return c?{node:f,deltaX:0,deltaY:0,lastX:a,lastY:s,x:a,y:s}:{node:f,deltaX:a-o.lastX,deltaY:s-o.lastY,lastX:o.lastX,lastY:o.lastY,x:a,y:s}}function createDraggableData(o,a){const s=o.props.scale;return{node:a.node,x:o.state.x+a.deltaX/s,y:o.state.y+a.deltaY/s,deltaX:a.deltaX/s,deltaY:a.deltaY/s,lastX:o.state.x,lastY:o.state.y}}function cloneBounds(o){return{left:o.left,top:o.top,right:o.right,bottom:o.bottom}}function findDOMNode(o){const a=o.findDOMNode();if(!a)throw new Error(": Unmounted during event!");return a}var DraggableCore$2={},log$1={};Object.defineProperty(log$1,"__esModule",{value:!0});log$1.default=log;function log(){}Object.defineProperty(DraggableCore$2,"__esModule",{value:!0});DraggableCore$2.default=void 0;var React$2=_interopRequireWildcard$2(reactExports),_propTypes$3=_interopRequireDefault$5(propTypesExports),_reactDom=_interopRequireDefault$5(reactDomExports),_domFns=domFns,_positionFns=positionFns,_shims=shims,_log=_interopRequireDefault$5(log$1);function _interopRequireDefault$5(o){return o&&o.__esModule?o:{default:o}}function _getRequireWildcardCache$2(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(_getRequireWildcardCache$2=function(c){return c?s:a})(o)}function _interopRequireWildcard$2(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var s=_getRequireWildcardCache$2(a);if(s&&s.has(o))return s.get(o);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in o)if(d!=="default"&&Object.prototype.hasOwnProperty.call(o,d)){var y=f?Object.getOwnPropertyDescriptor(o,d):null;y&&(y.get||y.set)?Object.defineProperty(c,d,y):c[d]=o[d]}return c.default=o,s&&s.set(o,c),c}function _defineProperty$a(o,a,s){return a=_toPropertyKey$6(a),a in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s,o}function _toPropertyKey$6(o){var a=_toPrimitive$6(o,"string");return typeof a=="symbol"?a:String(a)}function _toPrimitive$6(o,a){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var c=s.call(o,a||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(o)}const eventsFor={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let dragEventFor=eventsFor.mouse,DraggableCore$1=class extends React$2.Component{constructor(){super(...arguments),_defineProperty$a(this,"dragging",!1),_defineProperty$a(this,"lastX",NaN),_defineProperty$a(this,"lastY",NaN),_defineProperty$a(this,"touchIdentifier",null),_defineProperty$a(this,"mounted",!1),_defineProperty$a(this,"handleDragStart",a=>{if(this.props.onMouseDown(a),!this.props.allowAnyClick&&typeof a.button=="number"&&a.button!==0)return!1;const s=this.findDOMNode();if(!s||!s.ownerDocument||!s.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:c}=s;if(this.props.disabled||!(a.target instanceof c.defaultView.Node)||this.props.handle&&!(0,_domFns.matchesSelectorAndParentsTo)(a.target,this.props.handle,s)||this.props.cancel&&(0,_domFns.matchesSelectorAndParentsTo)(a.target,this.props.cancel,s))return;a.type==="touchstart"&&a.preventDefault();const f=(0,_domFns.getTouchIdentifier)(a);this.touchIdentifier=f;const d=(0,_positionFns.getControlPosition)(a,f,this);if(d==null)return;const{x:y,y:_}=d,S=(0,_positionFns.createCoreData)(this,y,_);(0,_log.default)("DraggableCore: handleDragStart: %j",S),(0,_log.default)("calling",this.props.onStart),!(this.props.onStart(a,S)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,_domFns.addUserSelectStyles)(c),this.dragging=!0,this.lastX=y,this.lastY=_,(0,_domFns.addEvent)(c,dragEventFor.move,this.handleDrag),(0,_domFns.addEvent)(c,dragEventFor.stop,this.handleDragStop))}),_defineProperty$a(this,"handleDrag",a=>{const s=(0,_positionFns.getControlPosition)(a,this.touchIdentifier,this);if(s==null)return;let{x:c,y:f}=s;if(Array.isArray(this.props.grid)){let _=c-this.lastX,S=f-this.lastY;if([_,S]=(0,_positionFns.snapToGrid)(this.props.grid,_,S),!_&&!S)return;c=this.lastX+_,f=this.lastY+S}const d=(0,_positionFns.createCoreData)(this,c,f);if((0,_log.default)("DraggableCore: handleDrag: %j",d),this.props.onDrag(a,d)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(_){const S=document.createEvent("MouseEvents");S.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(S)}return}this.lastX=c,this.lastY=f}),_defineProperty$a(this,"handleDragStop",a=>{if(!this.dragging)return;const s=(0,_positionFns.getControlPosition)(a,this.touchIdentifier,this);if(s==null)return;let{x:c,y:f}=s;if(Array.isArray(this.props.grid)){let S=c-this.lastX||0,b=f-this.lastY||0;[S,b]=(0,_positionFns.snapToGrid)(this.props.grid,S,b),c=this.lastX+S,f=this.lastY+b}const d=(0,_positionFns.createCoreData)(this,c,f);if(this.props.onStop(a,d)===!1||this.mounted===!1)return!1;const _=this.findDOMNode();_&&this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(_.ownerDocument),(0,_log.default)("DraggableCore: handleDragStop: %j",d),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,_&&((0,_log.default)("DraggableCore: Removing handlers"),(0,_domFns.removeEvent)(_.ownerDocument,dragEventFor.move,this.handleDrag),(0,_domFns.removeEvent)(_.ownerDocument,dragEventFor.stop,this.handleDragStop))}),_defineProperty$a(this,"onMouseDown",a=>(dragEventFor=eventsFor.mouse,this.handleDragStart(a))),_defineProperty$a(this,"onMouseUp",a=>(dragEventFor=eventsFor.mouse,this.handleDragStop(a))),_defineProperty$a(this,"onTouchStart",a=>(dragEventFor=eventsFor.touch,this.handleDragStart(a))),_defineProperty$a(this,"onTouchEnd",a=>(dragEventFor=eventsFor.touch,this.handleDragStop(a)))}componentDidMount(){this.mounted=!0;const a=this.findDOMNode();a&&(0,_domFns.addEvent)(a,eventsFor.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const a=this.findDOMNode();if(a){const{ownerDocument:s}=a;(0,_domFns.removeEvent)(s,eventsFor.mouse.move,this.handleDrag),(0,_domFns.removeEvent)(s,eventsFor.touch.move,this.handleDrag),(0,_domFns.removeEvent)(s,eventsFor.mouse.stop,this.handleDragStop),(0,_domFns.removeEvent)(s,eventsFor.touch.stop,this.handleDragStop),(0,_domFns.removeEvent)(a,eventsFor.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(s)}}findDOMNode(){var a,s;return(a=this.props)!==null&&a!==void 0&&a.nodeRef?(s=this.props)===null||s===void 0||(s=s.nodeRef)===null||s===void 0?void 0:s.current:_reactDom.default.findDOMNode(this)}render(){return React$2.cloneElement(React$2.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};DraggableCore$2.default=DraggableCore$1;_defineProperty$a(DraggableCore$1,"displayName","DraggableCore");_defineProperty$a(DraggableCore$1,"propTypes",{allowAnyClick:_propTypes$3.default.bool,children:_propTypes$3.default.node.isRequired,disabled:_propTypes$3.default.bool,enableUserSelectHack:_propTypes$3.default.bool,offsetParent:function(o,a){if(o[a]&&o[a].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:_propTypes$3.default.arrayOf(_propTypes$3.default.number),handle:_propTypes$3.default.string,cancel:_propTypes$3.default.string,nodeRef:_propTypes$3.default.object,onStart:_propTypes$3.default.func,onDrag:_propTypes$3.default.func,onStop:_propTypes$3.default.func,onMouseDown:_propTypes$3.default.func,scale:_propTypes$3.default.number,className:_shims.dontSetMe,style:_shims.dontSetMe,transform:_shims.dontSetMe});_defineProperty$a(DraggableCore$1,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(o){Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"DraggableCore",{enumerable:!0,get:function(){return S.default}}),o.default=void 0;var a=T(reactExports),s=$(propTypesExports),c=$(reactDomExports),f=$(require$$3),d=domFns,y=positionFns,_=shims,S=$(DraggableCore$2),b=$(log$1);function $(I){return I&&I.__esModule?I:{default:I}}function P(I){if(typeof WeakMap!="function")return null;var M=new WeakMap,L=new WeakMap;return(P=function(U){return U?L:M})(I)}function T(I,M){if(!M&&I&&I.__esModule)return I;if(I===null||typeof I!="object"&&typeof I!="function")return{default:I};var L=P(M);if(L&&L.has(I))return L.get(I);var U={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in I)if(H!=="default"&&Object.prototype.hasOwnProperty.call(I,H)){var G=z?Object.getOwnPropertyDescriptor(I,H):null;G&&(G.get||G.set)?Object.defineProperty(U,H,G):U[H]=I[H]}return U.default=I,L&&L.set(I,U),U}function C(){return C=Object.assign?Object.assign.bind():function(I){for(var M=1;M{if((0,b.default)("Draggable: onDragStart: %j",U),this.props.onStart(L,(0,y.createDraggableData)(this,U))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),O(this,"onDrag",(L,U)=>{if(!this.state.dragging)return!1;(0,b.default)("Draggable: onDrag: %j",U);const z=(0,y.createDraggableData)(this,U),H={x:z.x,y:z.y,slackX:0,slackY:0};if(this.props.bounds){const{x:X,y:W}=H;H.x+=this.state.slackX,H.y+=this.state.slackY;const[K,ie]=(0,y.getBoundPosition)(this,H.x,H.y);H.x=K,H.y=ie,H.slackX=this.state.slackX+(X-H.x),H.slackY=this.state.slackY+(W-H.y),z.x=H.x,z.y=H.y,z.deltaX=H.x-this.state.x,z.deltaY=H.y-this.state.y}if(this.props.onDrag(L,z)===!1)return!1;this.setState(H)}),O(this,"onDragStop",(L,U)=>{if(!this.state.dragging||this.props.onStop(L,(0,y.createDraggableData)(this,U))===!1)return!1;(0,b.default)("Draggable: onDragStop: %j",U);const H={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:X,y:W}=this.props.position;H.x=X,H.y=W}this.setState(H)}),this.state={dragging:!1,dragged:!1,x:M.position?M.position.x:M.defaultPosition.x,y:M.position?M.position.y:M.defaultPosition.y,prevPropsPosition:se({},M.position),slackX:0,slackY:0,isElementSVG:!1},M.position&&(M.onDrag||M.onStop)}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var M,L;return(M=(L=this.props)===null||L===void 0||(L=L.nodeRef)===null||L===void 0?void 0:L.current)!==null&&M!==void 0?M:c.default.findDOMNode(this)}render(){const ae=this.props,{axis:M,bounds:L,children:U,defaultPosition:z,defaultClassName:H,defaultClassNameDragging:G,defaultClassNameDragged:X,position:W,positionOffset:K,scale:ie}=ae,ee=fr(ae,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let de={},Z=null;const J=!!!W||this.state.dragging,ne=W||z,fe={x:(0,y.canDragX)(this)&&J?this.state.x:ne.x,y:(0,y.canDragY)(this)&&J?this.state.y:ne.y};this.state.isElementSVG?Z=(0,d.createSVGTransform)(fe,K):de=(0,d.createCSSTransform)(fe,K);const le=(0,f.default)(U.props.className||"",H,{[G]:this.state.dragging,[X]:this.state.dragged});return a.createElement(S.default,C({},ee,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),a.cloneElement(a.Children.only(U),{className:le,style:se(se({},U.props.style),de),transform:Z}))}}o.default=j,O(j,"displayName","Draggable"),O(j,"propTypes",we(se({},S.default.propTypes),{axis:s.default.oneOf(["both","x","y","none"]),bounds:s.default.oneOfType([s.default.shape({left:s.default.number,right:s.default.number,top:s.default.number,bottom:s.default.number}),s.default.string,s.default.oneOf([!1])]),defaultClassName:s.default.string,defaultClassNameDragging:s.default.string,defaultClassNameDragged:s.default.string,defaultPosition:s.default.shape({x:s.default.number,y:s.default.number}),positionOffset:s.default.shape({x:s.default.oneOfType([s.default.number,s.default.string]),y:s.default.oneOfType([s.default.number,s.default.string])}),position:s.default.shape({x:s.default.number,y:s.default.number}),className:_.dontSetMe,style:_.dontSetMe,transform:_.dontSetMe})),O(j,"defaultProps",we(se({},S.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))})(Draggable$1);const{default:Draggable,DraggableCore}=Draggable$1;cjs.exports=Draggable;cjs.exports.default=Draggable;cjs.exports.DraggableCore=DraggableCore;var cjsExports=cjs.exports,utils$5={};utils$5.__esModule=!0;utils$5.cloneElement=cloneElement;var _react=_interopRequireDefault$4(reactExports);function _interopRequireDefault$4(o){return o&&o.__esModule?o:{default:o}}function ownKeys$9(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$8(o){for(var a=1;a=0)&&(s[f]=o[f]);return s}function ownKeys$8(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$7(o){for(var a=1;aMath.abs(T*$)?d=f/$:f=d*$}var C=f,O=d,A=this.slack||[0,0],F=A[0],j=A[1];return f+=F,d+=j,_&&(f=Math.max(_[0],f),d=Math.max(_[1],d)),S&&(f=Math.min(S[0],f),d=Math.min(S[1],d)),this.slack=[F+(C-f),j+(O-d)],[f,d]},s.resizeHandler=function(f,d){var y=this;return function(_,S){var b=S.node,$=S.deltaX,P=S.deltaY;f==="onResizeStart"&&y.resetData();var T=(y.props.axis==="both"||y.props.axis==="x")&&d!=="n"&&d!=="s",C=(y.props.axis==="both"||y.props.axis==="y")&&d!=="e"&&d!=="w";if(!(!T&&!C)){var O=d[0],A=d[d.length-1],F=b.getBoundingClientRect();if(y.lastHandleRect!=null){if(A==="w"){var j=F.left-y.lastHandleRect.left;$+=j}if(O==="n"){var I=F.top-y.lastHandleRect.top;P+=I}}y.lastHandleRect=F,A==="w"&&($=-$),O==="n"&&(P=-P);var M=y.props.width+(T?$/y.props.transformScale:0),L=y.props.height+(C?P/y.props.transformScale:0),U=y.runConstraints(M,L);M=U[0],L=U[1];var z=M!==y.props.width||L!==y.props.height,H=typeof y.props[f]=="function"?y.props[f]:null,G=f==="onResize"&&!z;H&&!G&&(_.persist==null||_.persist(),H(_,{node:b,size:{width:M,height:L},handle:d})),f==="onResizeStop"&&y.resetData()}}},s.renderResizeHandle=function(f,d){var y=this.props.handle;if(!y)return React$1.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+f,ref:d});if(typeof y=="function")return y(f,d);var _=typeof y.type=="string",S=_objectSpread$7({ref:d},_?{}:{handleAxis:f});return React$1.cloneElement(y,S)},s.render=function(){var f=this,d=this.props,y=d.children,_=d.className,S=d.draggableOpts;d.width,d.height,d.handle,d.handleSize,d.lockAspectRatio,d.axis,d.minConstraints,d.maxConstraints,d.onResize,d.onResizeStop,d.onResizeStart;var b=d.resizeHandles;d.transformScale;var $=_objectWithoutPropertiesLoose$3(d,_excluded$2);return(0,_utils.cloneElement)(y,_objectSpread$7(_objectSpread$7({},$),{},{className:(_?_+" ":"")+"react-resizable",children:[].concat(y.props.children,b.map(function(P){var T,C=(T=f.handleRefs[P])!=null?T:f.handleRefs[P]=React$1.createRef();return React$1.createElement(_reactDraggable.DraggableCore,_extends$4({},S,{nodeRef:C,key:"resizableHandle-"+P,onStop:f.resizeHandler("onResizeStop",P),onStart:f.resizeHandler("onResizeStart",P),onDrag:f.resizeHandler("onResize",P)}),f.renderResizeHandle(P,C))}))}))},a}(React$1.Component);Resizable$2.default=Resizable$1;Resizable$1.propTypes=_propTypes$1.resizableProps;Resizable$1.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var ResizableBox$1={};ResizableBox$1.__esModule=!0;ResizableBox$1.default=void 0;var React=_interopRequireWildcard(reactExports),_propTypes=_interopRequireDefault$2(propTypesExports),_Resizable=_interopRequireDefault$2(Resizable$2),_propTypes2=propTypes,_excluded$1=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function _interopRequireDefault$2(o){return o&&o.__esModule?o:{default:o}}function _getRequireWildcardCache(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(_getRequireWildcardCache=function(f){return f?s:a})(o)}function _interopRequireWildcard(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var s=_getRequireWildcardCache(a);if(s&&s.has(o))return s.get(o);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in o)if(d!=="default"&&Object.prototype.hasOwnProperty.call(o,d)){var y=f?Object.getOwnPropertyDescriptor(o,d):null;y&&(y.get||y.set)?Object.defineProperty(c,d,y):c[d]=o[d]}return c.default=o,s&&s.set(o,c),c}function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(o){for(var a=1;a=0)&&(s[f]=o[f]);return s}function _inheritsLoose(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,_setPrototypeOf$1(o,a)}function _setPrototypeOf$1(o,a){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,f){return c.__proto__=f,c},_setPrototypeOf$1(o,a)}var ResizableBox=function(o){_inheritsLoose(a,o);function a(){for(var c,f=arguments.length,d=new Array(f),y=0;y=a||H<0||P&&G>=d}function j(){var z=now();if(F(z))return I(z);_=setTimeout(j,A(z))}function I(z){return _=void 0,T&&c?C(z):(c=f=void 0,y)}function M(){_!==void 0&&clearTimeout(_),b=0,c=S=f=_=void 0}function L(){return _===void 0?y:I(now())}function U(){var z=now(),H=F(z);if(c=arguments,f=this,S=z,H){if(_===void 0)return O(S);if(P)return _=setTimeout(j,a),C(S)}return _===void 0&&(_=setTimeout(j,a)),y}return U.cancel=M,U.flush=L,U}function throttle(o,a,s){var c=!0,f=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$4(s)&&(c="leading"in s?!!s.leading:c,f="trailing"in s?!!s.trailing:f),debounce(o,a,{leading:c,maxWait:a,trailing:f})}function isObject$4(o){var a=typeof o;return!!o&&(a=="object"||a=="function")}function isObjectLike$2(o){return!!o&&typeof o=="object"}function isSymbol$1(o){return typeof o=="symbol"||isObjectLike$2(o)&&objectToString$2.call(o)==symbolTag$3}function toNumber(o){if(typeof o=="number")return o;if(isSymbol$1(o))return NAN;if(isObject$4(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=isObject$4(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=o.replace(reTrim,"");var s=reIsBinary.test(o);return s||reIsOctal.test(o)?freeParseInt(o.slice(2),s?2:8):reIsBadHex.test(o)?NAN:+o}var lodash_throttle=throttle;const throttle$1=getDefaultExportFromCjs(lodash_throttle);var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(o,a,s)=>a in o?__defProp(o,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[a]=s,__spreadValues=(o,a)=>{for(var s in a||(a={}))__hasOwnProp.call(a,s)&&__defNormalProp(o,s,a[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(a))__propIsEnum.call(a,s)&&__defNormalProp(o,s,a[s]);return o},__spreadProps=(o,a)=>__defProps(o,__getOwnPropDescs(a)),__objRest=(o,a)=>{var s={};for(var c in o)__hasOwnProp.call(o,c)&&a.indexOf(c)<0&&(s[c]=o[c]);if(o!=null&&__getOwnPropSymbols)for(var c of __getOwnPropSymbols(o))a.indexOf(c)<0&&__propIsEnum.call(o,c)&&(s[c]=o[c]);return s};function depthFirstSearch(o,a,s){const c=[...o];return function f(d){if(d)for(let y=0;y<(d==null?void 0:d.length);y++){if(a(d[y])){d[y]=__spreadProps(__spreadValues({},d[y]),{width:s});return}d[y].children&&f(d[y].children)}}(c),c}function isString$4(o){return typeof o=="string"}function isEmpty(o){return typeof o!="object"||o===null?!0:!(Array.isArray(o)&&o.length||Object.keys(o).length)}var useUnmountedRef=()=>{const o=reactExports.useRef(!1);return reactExports.useEffect(()=>(o.current=!1,()=>{o.current=!0}),[]),o};function useSafeState(o){const a=useUnmountedRef(),[s,c]=reactExports.useState(o),f=reactExports.useCallback(d=>{a.current||c(d)},[]);return[s,f]}var ResizableHeader=o=>{const a=o,{width:s,minWidth:c,maxWidth:f,resizable:d,hideInTable:y,onResize:_,onResizeStart:S,onResizeEnd:b,onMount:$,triggerRender:P,className:T,style:C,onClick:O,children:A,rowSpan:F,colSpan:j,title:I,scope:M,tooltipRender:L}=a,U=__objRest(a,["width","minWidth","maxWidth","resizable","hideInTable","onResize","onResizeStart","onResizeEnd","onMount","triggerRender","className","style","onClick","children","rowSpan","colSpan","title","scope","tooltipRender"]),[z,H]=useSafeState(0),{overflow:G,ref:X}=dist.useOverflowDetector({});if(reactExports.useEffect(()=>{s&&(H(s),$==null||$(s,{overflow:G}))},[P]),reactExports.useEffect(()=>{s&&H(s)},[H,s]),y)return null;if(!s||Number.isNaN(Number(s))||d===!1)return jsxRuntimeExports.jsx("th",__spreadProps(__spreadValues({},U),{"data-arh-disable":"true",style:C,className:T,onClick:O,rowSpan:F,colSpan:j,children:jsxRuntimeExports.jsx("span",{title:I,children:A})}));const W=Q=>{document.body.style.userSelect=Q?"none":"",document.body.style.pointerEvents=Q?"none":"",document.documentElement.style.cursor=Q?"col-resize":""},K=({},Q)=>{H(Q.size.width),W(!0),S==null||S(Q.size.width)},ie=({},Q)=>{H(Q.size.width)},ee=()=>{z<=0||(_(z,{overflow:G}),W(!1),b==null||b(z))},de=()=>{var Q,J;if(Array.isArray(A)){const ne=A[A.length-1];if(ne)return isString$4(ne)||((Q=ne.props)==null?void 0:Q.ellipsis)||isString$4((J=ne.props)==null?void 0:J.label)}return!1},Z=jsxRuntimeExports.jsx("div",__spreadProps(__spreadValues({},U),{ref:X,className:`resizable-title${de()?" ellipsis":""}`,children:A}));return jsxRuntimeExports.jsxs("th",{scope:M,className:`resizable-container ${T}`,style:__spreadProps(__spreadValues({},C),{overflow:"unset"}),"data-uarh-enable":"true",onClick:O,rowSpan:F,colSpan:j,children:[jsxRuntimeExports.jsx(Resizable,{className:"resizable-box",width:z,minConstraints:[c,0],maxConstraints:[f,0],height:0,handle:jsxRuntimeExports.jsx("div",{className:"resizable-handler",onClick:Q=>{Q.stopPropagation()},children:jsxRuntimeExports.jsx("div",{className:"resizable-line"})}),draggableOpts:{enableUserSelectHack:!1},onResizeStart:K,onResize:ie,onResizeStop:ee,children:jsxRuntimeExports.jsx("div",{style:{width:z,height:"100%"}})}),L?L({children:Z,open:G?void 0:!1,title:A}):Z]})},ResizableHeader_default=reactExports.memo(ResizableHeader);function useCreation(o,a){const{current:s}=reactExports.useRef({deps:a,obj:void 0,initialized:!1});return(s.initialized===!1||!depsAreSame(s.deps,a))&&(s.deps=a,s.obj=o(),s.initialized=!0),s.obj}function depsAreSame(o,a){if(o===a)return!0;for(let s=0;sdebounce$5((...y)=>c.current(...y),f,a),[]);return reactExports.useEffect(()=>{d.cancel()},[]),{run:d,cancel:d.cancel,flush:d.flush}}var GETKEY="dataIndex",ResizableUniqIdPrefix="resizable-table-id";function getUniqueId(o){return`${ResizableUniqIdPrefix}-${o}`}function getColumns(o){const a=o==null?void 0:o.filter(c=>!isEmpty(c));return a==null?void 0:a.map((c,f)=>{var d;return __spreadProps(__spreadValues({},c),{children:(d=c==null?void 0:c.children)!=null&&d.length?getColumns(c.children):void 0,[GETKEY]:c[GETKEY]||c.key||getUniqueId(`${c.title}-${f}`)})})}function useGetDataIndexColumns(o){return reactExports.useMemo(()=>getColumns(o),[o])||o}var isBrowser$2=!!(typeof window!="undefined"&&window.document&&window.document.createElement),useIsomorphicLayoutEffect=isBrowser$2?reactExports.useLayoutEffect:reactExports.useEffect;function useLatest$1(o){const a=reactExports.useRef(o);return a.current=o,a}function useMemoizedFn$1(o){const a=reactExports.useRef(o);a.current=reactExports.useMemo(()=>o,[o]);const s=reactExports.useRef();return s.current||(s.current=function(...c){return a.current.apply(this,c)}),s.current}function mergeColumns(o,a,s){const c=o;return Array.isArray(c)&&Array.isArray(a)&&c.forEach((f,d)=>{var y,_;f!=null&&f.children?mergeColumns(f.children,(y=a[d])==null?void 0:y.children,s):c[d][s]=((_=a.find(S=>S.dataIndex===c[d].dataIndex))==null?void 0:_[s])||c[d][s]}),c}function useLocalColumns({columnsState:o,resizableColumns:a,columns:s}){const c=useGetDataIndexColumns(s),f=useMemoizedFn$1(()=>{var S;const{persistenceType:b,persistenceKey:$}=o||{};if(!$||!b||typeof window=="undefined")return c;const P=window[b];try{const T=(S=JSON.parse((P==null?void 0:P.getItem($))||"{}"))==null?void 0:S.resizableColumns;return mergeColumns(c||[],T,"width")}catch(T){}}),[d,y]=reactExports.useState(f);reactExports.useEffect(()=>{y(f())},[c]),reactExports.useEffect(()=>{const{persistenceType:S,persistenceKey:b}=o||{};if(!b||!S||!(a!=null&&a.length)||typeof window=="undefined")return;const $=window[S];try{$.setItem(b,JSON.stringify(__spreadProps(__spreadValues({},JSON.parse(($==null?void 0:$.getItem(b))||"{}")),{resizableColumns:a.map(P=>{const T={dataIndex:P.dataIndex,key:P.key,width:P.width,children:P.children};return isString$4(P.title)&&(T.title=P.title),T})})))}catch(P){}},[a]);const _=useMemoizedFn$1(()=>{y([...c||[]])});return{localColumns:reactExports.useMemo(()=>d,[d]),resetLocalColumns:_}}var createUpdateEffect=o=>(a,s)=>{const c=reactExports.useRef(!1);o(()=>()=>{c.current=!1},[]),o(()=>{if(!c.current)c.current=!0;else return a()},s)};function useThrottleFn(o,a){var s;const c=reactExports.useRef(o);c.current=o;const f=(s=a==null?void 0:a.wait)!=null?s:1e3,d=useCreation(()=>throttle$1((...y)=>c.current(...y),f,a),[]);return reactExports.useEffect(()=>{d.cancel()},[]),{run:d,cancel:d.cancel,flush:d.flush}}var useUpdateEffect=createUpdateEffect(reactExports.useEffect);function useThrottleEffect(o,a,s){const[c,f]=reactExports.useState({}),{run:d,cancel:y}=useThrottleFn(()=>{f({})},s);reactExports.useEffect(()=>d(),a),reactExports.useEffect(y,[]),useUpdateEffect(o,[c])}var useUpdateThrottleEffect=createUpdateEffect(useThrottleEffect),errorMsgs=new Set,logger={errorOnce(o){errorMsgs.has(o)||errorMsgs.add(o)}};function traverseColumnsWidthAll(o){return!o||!o.length?!1:o.every(a=>a.children&&a.children.length?!1:!!a.width)}function validateColumnsFlex(o){traverseColumnsWidthAll(o)&&logger.errorOnce("[use-antd-resizable-header] 请不要在所有列上添加 `width` 属性,这将导致表格无法自适应")}var WIDTH=120;function useAntdResizableHeader(o){const{columns:a,defaultWidth:s=WIDTH,minConstraints:c=s/2,maxConstraints:f=Number.POSITIVE_INFINITY,cache:d=!0,columnsState:y,onResizeStart:_,onResizeEnd:S,tooltipRender:b}=o;validateColumnsFlex(a);const $=reactExports.useRef(new Map),[P,T]=useSafeState(a||[]),C=useLatest$1(P),{localColumns:O,resetLocalColumns:A}=useLocalColumns({columnsState:y,columns:a,resizableColumns:P}),[F,j]=useSafeState(),[I,M]=reactExports.useReducer(ee=>ee+1,0);let L;const U=useMemoizedFn$1(()=>{L=new Map,$.current=L,A()}),z=reactExports.useCallback(ee=>de=>{de&&T(Z=>{const Q=depthFirstSearch(Z,ne=>ne[GETKEY]===ee&&!!ne.width&&!ne.hideInTable,de);L=L||new Map;function J(ne){var fe;for(let le=0;lez,[z]),G=ee=>de=>{_==null||_(__spreadProps(__spreadValues({},ee),{width:de,resizableColumns:C.current}))},X=ee=>de=>{S==null||S(__spreadProps(__spreadValues({},ee),{width:de,resizableColumns:C.current}))},W=useMemoizedFn$1(ee=>(ee==null?void 0:ee.filter(Q=>!isEmpty(Q))).map(Q=>{var J,ne,fe,le;return __spreadProps(__spreadValues({},Q),{children:(J=Q==null?void 0:Q.children)!=null&&J.length?W(Q.children):void 0,onHeaderCell:ae=>{var ce,ge,pe;return{"data-index":ae.dataIndex,title:typeof(Q==null?void 0:Q.title)=="string"?Q==null?void 0:Q.title:"",width:d&&((pe=(ge=$.current)==null?void 0:ge.get((ce=ae[GETKEY])!=null?ce:""))==null?void 0:pe.width)||(ae==null?void 0:ae.width),resizable:ae.resizable,onMount:z(ae==null?void 0:ae[GETKEY]),onResize:H(ae==null?void 0:ae[GETKEY]),onResizeStart:G(ae),onResizeEnd:X(ae),minWidth:c,maxWidth:f,hideInTable:ae.hideInTable,tooltipRender:b,triggerRender:I}},width:d&&((le=(fe=$.current)==null?void 0:fe.get((ne=Q[GETKEY])!=null?ne:""))==null?void 0:le.width)||(Q==null?void 0:Q.width),[GETKEY]:Q[GETKEY]||Q.key})}));useIsomorphicLayoutEffect(()=>{if(O){const ee=W(O);T(ee)}},[O]),useUpdateThrottleEffect(()=>{const ee=W(P);T(ee)},[I],{wait:500}),useIsomorphicLayoutEffect(()=>{let ee=0;(function de(Z){for(let Q=0;Q(window.addEventListener("resize",K),()=>{window.removeEventListener("resize",K)}),[K]);const ie=reactExports.useMemo(()=>({header:{cell:ResizableHeader_default}}),[]);return{resizableColumns:P,components:ie,tableWidth:F,resetColumns:U}}var GListContext=reactExports.createContext({data:[],disabledKeys:[],setDisabledKeys:function(a){}});function _typeof$5(o){"@babel/helpers - typeof";return _typeof$5=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},_typeof$5(o)}var _excluded=["index"],_excluded2=["field","record","children","tableData","setTableData","rowKey","tableProps"],_excluded3=["field","record","children","tableData","setTableData","tableProps"];function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return a};var o,a={},s=Object.prototype,c=s.hasOwnProperty,f=Object.defineProperty||function(Q,J,ne){Q[J]=ne.value},d=typeof Symbol=="function"?Symbol:{},y=d.iterator||"@@iterator",_=d.asyncIterator||"@@asyncIterator",S=d.toStringTag||"@@toStringTag";function b(Q,J,ne){return Object.defineProperty(Q,J,{value:ne,enumerable:!0,configurable:!0,writable:!0}),Q[J]}try{b({},"")}catch(Q){b=function(ne,fe,le){return ne[fe]=le}}function $(Q,J,ne,fe){var le=J&&J.prototype instanceof j?J:j,ae=Object.create(le.prototype),ce=new de(fe||[]);return f(ae,"_invoke",{value:W(Q,ne,ce)}),ae}function P(Q,J,ne){try{return{type:"normal",arg:Q.call(J,ne)}}catch(fe){return{type:"throw",arg:fe}}}a.wrap=$;var T="suspendedStart",C="suspendedYield",O="executing",A="completed",F={};function j(){}function I(){}function M(){}var L={};b(L,y,function(){return this});var U=Object.getPrototypeOf,z=U&&U(U(Z([])));z&&z!==s&&c.call(z,y)&&(L=z);var H=M.prototype=j.prototype=Object.create(L);function G(Q){["next","throw","return"].forEach(function(J){b(Q,J,function(ne){return this._invoke(J,ne)})})}function X(Q,J){function ne(le,ae,ce,ge){var pe=P(Q[le],Q,ae);if(pe.type!=="throw"){var Ie=pe.arg,Ce=Ie.value;return Ce&&_typeof$5(Ce)=="object"&&c.call(Ce,"__await")?J.resolve(Ce.__await).then(function(ue){ne("next",ue,ce,ge)},function(ue){ne("throw",ue,ce,ge)}):J.resolve(Ce).then(function(ue){Ie.value=ue,ce(Ie)},function(ue){return ne("throw",ue,ce,ge)})}ge(pe.arg)}var fe;f(this,"_invoke",{value:function(ae,ce){function ge(){return new J(function(pe,Ie){ne(ae,ce,pe,Ie)})}return fe=fe?fe.then(ge,ge):ge()}})}function W(Q,J,ne){var fe=T;return function(le,ae){if(fe===O)throw new Error("Generator is already running");if(fe===A){if(le==="throw")throw ae;return{value:o,done:!0}}for(ne.method=le,ne.arg=ae;;){var ce=ne.delegate;if(ce){var ge=K(ce,ne);if(ge){if(ge===F)continue;return ge}}if(ne.method==="next")ne.sent=ne._sent=ne.arg;else if(ne.method==="throw"){if(fe===T)throw fe=A,ne.arg;ne.dispatchException(ne.arg)}else ne.method==="return"&&ne.abrupt("return",ne.arg);fe=O;var pe=P(Q,J,ne);if(pe.type==="normal"){if(fe=ne.done?A:C,pe.arg===F)continue;return{value:pe.arg,done:ne.done}}pe.type==="throw"&&(fe=A,ne.method="throw",ne.arg=pe.arg)}}}function K(Q,J){var ne=J.method,fe=Q.iterator[ne];if(fe===o)return J.delegate=null,ne==="throw"&&Q.iterator.return&&(J.method="return",J.arg=o,K(Q,J),J.method==="throw")||ne!=="return"&&(J.method="throw",J.arg=new TypeError("The iterator does not provide a '"+ne+"' method")),F;var le=P(fe,Q.iterator,J.arg);if(le.type==="throw")return J.method="throw",J.arg=le.arg,J.delegate=null,F;var ae=le.arg;return ae?ae.done?(J[Q.resultName]=ae.value,J.next=Q.nextLoc,J.method!=="return"&&(J.method="next",J.arg=o),J.delegate=null,F):ae:(J.method="throw",J.arg=new TypeError("iterator result is not an object"),J.delegate=null,F)}function ie(Q){var J={tryLoc:Q[0]};1 in Q&&(J.catchLoc=Q[1]),2 in Q&&(J.finallyLoc=Q[2],J.afterLoc=Q[3]),this.tryEntries.push(J)}function ee(Q){var J=Q.completion||{};J.type="normal",delete J.arg,Q.completion=J}function de(Q){this.tryEntries=[{tryLoc:"root"}],Q.forEach(ie,this),this.reset(!0)}function Z(Q){if(Q||Q===""){var J=Q[y];if(J)return J.call(Q);if(typeof Q.next=="function")return Q;if(!isNaN(Q.length)){var ne=-1,fe=function le(){for(;++ne=0;--le){var ae=this.tryEntries[le],ce=ae.completion;if(ae.tryLoc==="root")return fe("end");if(ae.tryLoc<=this.prev){var ge=c.call(ae,"catchLoc"),pe=c.call(ae,"finallyLoc");if(ge&&pe){if(this.prev=0;--fe){var le=this.tryEntries[fe];if(le.tryLoc<=this.prev&&c.call(le,"finallyLoc")&&this.prev=0;--ne){var fe=this.tryEntries[ne];if(fe.finallyLoc===J)return this.complete(fe.completion,fe.afterLoc),ee(fe),F}},catch:function(J){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var fe=this.tryEntries[ne];if(fe.tryLoc===J){var le=fe.completion;if(le.type==="throw"){var ae=le.arg;ee(fe)}return ae}}throw new Error("illegal catch attempt")},delegateYield:function(J,ne,fe){return this.delegate={iterator:Z(J),resultName:ne,nextLoc:fe},this.method==="next"&&(this.arg=o),F}},a}function _toConsumableArray$3(o){return _arrayWithoutHoles$3(o)||_iterableToArray$3(o)||_unsupportedIterableToArray$2(o)||_nonIterableSpread$3()}function _nonIterableSpread$3(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +`,o.getElementsByTagName("head")[0].appendChild(a)),o.body&&addClassName(o.body,"react-draggable-transparent-selection")}function removeUserSelectStyles(o){if(o)try{if(o.body&&removeClassName(o.body,"react-draggable-transparent-selection"),o.selection)o.selection.empty();else{const a=(o.defaultView||window).getSelection();a&&a.type!=="Caret"&&a.removeAllRanges()}}catch(a){}}function addClassName(o,a){o.classList?o.classList.add(a):o.className.match(new RegExp("(?:^|\\s)".concat(a,"(?!\\S)")))||(o.className+=" ".concat(a))}function removeClassName(o,a){o.classList?o.classList.remove(a):o.className=o.className.replace(new RegExp("(?:^|\\s)".concat(a,"(?!\\S)"),"g"),"")}var positionFns={};Object.defineProperty(positionFns,"__esModule",{value:!0});positionFns.canDragX=canDragX;positionFns.canDragY=canDragY;positionFns.createCoreData=createCoreData;positionFns.createDraggableData=createDraggableData;positionFns.getBoundPosition=getBoundPosition;positionFns.getControlPosition=getControlPosition;positionFns.snapToGrid=snapToGrid;var _shims$1=shims,_domFns$1=domFns;function getBoundPosition(o,a,s){if(!o.props.bounds)return[a,s];let{bounds:c}=o.props;c=typeof c=="string"?c:cloneBounds(c);const f=findDOMNode(o);if(typeof c=="string"){const{ownerDocument:d}=f,y=d.defaultView;let _;if(c==="parent"?_=f.parentNode:_=d.querySelector(c),!(_ instanceof y.HTMLElement))throw new Error('Bounds selector "'+c+'" could not find an element.');const S=_,b=y.getComputedStyle(f),$=y.getComputedStyle(S);c={left:-f.offsetLeft+(0,_shims$1.int)($.paddingLeft)+(0,_shims$1.int)(b.marginLeft),top:-f.offsetTop+(0,_shims$1.int)($.paddingTop)+(0,_shims$1.int)(b.marginTop),right:(0,_domFns$1.innerWidth)(S)-(0,_domFns$1.outerWidth)(f)-f.offsetLeft+(0,_shims$1.int)($.paddingRight)-(0,_shims$1.int)(b.marginRight),bottom:(0,_domFns$1.innerHeight)(S)-(0,_domFns$1.outerHeight)(f)-f.offsetTop+(0,_shims$1.int)($.paddingBottom)-(0,_shims$1.int)(b.marginBottom)}}return(0,_shims$1.isNum)(c.right)&&(a=Math.min(a,c.right)),(0,_shims$1.isNum)(c.bottom)&&(s=Math.min(s,c.bottom)),(0,_shims$1.isNum)(c.left)&&(a=Math.max(a,c.left)),(0,_shims$1.isNum)(c.top)&&(s=Math.max(s,c.top)),[a,s]}function snapToGrid(o,a,s){const c=Math.round(a/o[0])*o[0],f=Math.round(s/o[1])*o[1];return[c,f]}function canDragX(o){return o.props.axis==="both"||o.props.axis==="x"}function canDragY(o){return o.props.axis==="both"||o.props.axis==="y"}function getControlPosition(o,a,s){const c=typeof a=="number"?(0,_domFns$1.getTouch)(o,a):null;if(typeof a=="number"&&!c)return null;const f=findDOMNode(s),d=s.props.offsetParent||f.offsetParent||f.ownerDocument.body;return(0,_domFns$1.offsetXYFromParent)(c||o,d,s.props.scale)}function createCoreData(o,a,s){const c=!(0,_shims$1.isNum)(o.lastX),f=findDOMNode(o);return c?{node:f,deltaX:0,deltaY:0,lastX:a,lastY:s,x:a,y:s}:{node:f,deltaX:a-o.lastX,deltaY:s-o.lastY,lastX:o.lastX,lastY:o.lastY,x:a,y:s}}function createDraggableData(o,a){const s=o.props.scale;return{node:a.node,x:o.state.x+a.deltaX/s,y:o.state.y+a.deltaY/s,deltaX:a.deltaX/s,deltaY:a.deltaY/s,lastX:o.state.x,lastY:o.state.y}}function cloneBounds(o){return{left:o.left,top:o.top,right:o.right,bottom:o.bottom}}function findDOMNode(o){const a=o.findDOMNode();if(!a)throw new Error(": Unmounted during event!");return a}var DraggableCore$2={},log$1={};Object.defineProperty(log$1,"__esModule",{value:!0});log$1.default=log;function log(){}Object.defineProperty(DraggableCore$2,"__esModule",{value:!0});DraggableCore$2.default=void 0;var React$2=_interopRequireWildcard$2(reactExports),_propTypes$3=_interopRequireDefault$5(propTypesExports),_reactDom=_interopRequireDefault$5(reactDomExports),_domFns=domFns,_positionFns=positionFns,_shims=shims,_log=_interopRequireDefault$5(log$1);function _interopRequireDefault$5(o){return o&&o.__esModule?o:{default:o}}function _getRequireWildcardCache$2(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(_getRequireWildcardCache$2=function(c){return c?s:a})(o)}function _interopRequireWildcard$2(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var s=_getRequireWildcardCache$2(a);if(s&&s.has(o))return s.get(o);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in o)if(d!=="default"&&Object.prototype.hasOwnProperty.call(o,d)){var y=f?Object.getOwnPropertyDescriptor(o,d):null;y&&(y.get||y.set)?Object.defineProperty(c,d,y):c[d]=o[d]}return c.default=o,s&&s.set(o,c),c}function _defineProperty$a(o,a,s){return a=_toPropertyKey$6(a),a in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s,o}function _toPropertyKey$6(o){var a=_toPrimitive$6(o,"string");return typeof a=="symbol"?a:String(a)}function _toPrimitive$6(o,a){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var c=s.call(o,a||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(o)}const eventsFor={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let dragEventFor=eventsFor.mouse,DraggableCore$1=class extends React$2.Component{constructor(){super(...arguments),_defineProperty$a(this,"dragging",!1),_defineProperty$a(this,"lastX",NaN),_defineProperty$a(this,"lastY",NaN),_defineProperty$a(this,"touchIdentifier",null),_defineProperty$a(this,"mounted",!1),_defineProperty$a(this,"handleDragStart",a=>{if(this.props.onMouseDown(a),!this.props.allowAnyClick&&typeof a.button=="number"&&a.button!==0)return!1;const s=this.findDOMNode();if(!s||!s.ownerDocument||!s.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:c}=s;if(this.props.disabled||!(a.target instanceof c.defaultView.Node)||this.props.handle&&!(0,_domFns.matchesSelectorAndParentsTo)(a.target,this.props.handle,s)||this.props.cancel&&(0,_domFns.matchesSelectorAndParentsTo)(a.target,this.props.cancel,s))return;a.type==="touchstart"&&a.preventDefault();const f=(0,_domFns.getTouchIdentifier)(a);this.touchIdentifier=f;const d=(0,_positionFns.getControlPosition)(a,f,this);if(d==null)return;const{x:y,y:_}=d,S=(0,_positionFns.createCoreData)(this,y,_);(0,_log.default)("DraggableCore: handleDragStart: %j",S),(0,_log.default)("calling",this.props.onStart),!(this.props.onStart(a,S)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,_domFns.addUserSelectStyles)(c),this.dragging=!0,this.lastX=y,this.lastY=_,(0,_domFns.addEvent)(c,dragEventFor.move,this.handleDrag),(0,_domFns.addEvent)(c,dragEventFor.stop,this.handleDragStop))}),_defineProperty$a(this,"handleDrag",a=>{const s=(0,_positionFns.getControlPosition)(a,this.touchIdentifier,this);if(s==null)return;let{x:c,y:f}=s;if(Array.isArray(this.props.grid)){let _=c-this.lastX,S=f-this.lastY;if([_,S]=(0,_positionFns.snapToGrid)(this.props.grid,_,S),!_&&!S)return;c=this.lastX+_,f=this.lastY+S}const d=(0,_positionFns.createCoreData)(this,c,f);if((0,_log.default)("DraggableCore: handleDrag: %j",d),this.props.onDrag(a,d)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(_){const S=document.createEvent("MouseEvents");S.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(S)}return}this.lastX=c,this.lastY=f}),_defineProperty$a(this,"handleDragStop",a=>{if(!this.dragging)return;const s=(0,_positionFns.getControlPosition)(a,this.touchIdentifier,this);if(s==null)return;let{x:c,y:f}=s;if(Array.isArray(this.props.grid)){let S=c-this.lastX||0,b=f-this.lastY||0;[S,b]=(0,_positionFns.snapToGrid)(this.props.grid,S,b),c=this.lastX+S,f=this.lastY+b}const d=(0,_positionFns.createCoreData)(this,c,f);if(this.props.onStop(a,d)===!1||this.mounted===!1)return!1;const _=this.findDOMNode();_&&this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(_.ownerDocument),(0,_log.default)("DraggableCore: handleDragStop: %j",d),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,_&&((0,_log.default)("DraggableCore: Removing handlers"),(0,_domFns.removeEvent)(_.ownerDocument,dragEventFor.move,this.handleDrag),(0,_domFns.removeEvent)(_.ownerDocument,dragEventFor.stop,this.handleDragStop))}),_defineProperty$a(this,"onMouseDown",a=>(dragEventFor=eventsFor.mouse,this.handleDragStart(a))),_defineProperty$a(this,"onMouseUp",a=>(dragEventFor=eventsFor.mouse,this.handleDragStop(a))),_defineProperty$a(this,"onTouchStart",a=>(dragEventFor=eventsFor.touch,this.handleDragStart(a))),_defineProperty$a(this,"onTouchEnd",a=>(dragEventFor=eventsFor.touch,this.handleDragStop(a)))}componentDidMount(){this.mounted=!0;const a=this.findDOMNode();a&&(0,_domFns.addEvent)(a,eventsFor.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const a=this.findDOMNode();if(a){const{ownerDocument:s}=a;(0,_domFns.removeEvent)(s,eventsFor.mouse.move,this.handleDrag),(0,_domFns.removeEvent)(s,eventsFor.touch.move,this.handleDrag),(0,_domFns.removeEvent)(s,eventsFor.mouse.stop,this.handleDragStop),(0,_domFns.removeEvent)(s,eventsFor.touch.stop,this.handleDragStop),(0,_domFns.removeEvent)(a,eventsFor.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(s)}}findDOMNode(){var a,s;return(a=this.props)!==null&&a!==void 0&&a.nodeRef?(s=this.props)===null||s===void 0||(s=s.nodeRef)===null||s===void 0?void 0:s.current:_reactDom.default.findDOMNode(this)}render(){return React$2.cloneElement(React$2.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};DraggableCore$2.default=DraggableCore$1;_defineProperty$a(DraggableCore$1,"displayName","DraggableCore");_defineProperty$a(DraggableCore$1,"propTypes",{allowAnyClick:_propTypes$3.default.bool,children:_propTypes$3.default.node.isRequired,disabled:_propTypes$3.default.bool,enableUserSelectHack:_propTypes$3.default.bool,offsetParent:function(o,a){if(o[a]&&o[a].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:_propTypes$3.default.arrayOf(_propTypes$3.default.number),handle:_propTypes$3.default.string,cancel:_propTypes$3.default.string,nodeRef:_propTypes$3.default.object,onStart:_propTypes$3.default.func,onDrag:_propTypes$3.default.func,onStop:_propTypes$3.default.func,onMouseDown:_propTypes$3.default.func,scale:_propTypes$3.default.number,className:_shims.dontSetMe,style:_shims.dontSetMe,transform:_shims.dontSetMe});_defineProperty$a(DraggableCore$1,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(o){Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"DraggableCore",{enumerable:!0,get:function(){return S.default}}),o.default=void 0;var a=T(reactExports),s=$(propTypesExports),c=$(reactDomExports),f=$(require$$3),d=domFns,y=positionFns,_=shims,S=$(DraggableCore$2),b=$(log$1);function $(L){return L&&L.__esModule?L:{default:L}}function P(L){if(typeof WeakMap!="function")return null;var M=new WeakMap,I=new WeakMap;return(P=function(U){return U?I:M})(L)}function T(L,M){if(!M&&L&&L.__esModule)return L;if(L===null||typeof L!="object"&&typeof L!="function")return{default:L};var I=P(M);if(I&&I.has(L))return I.get(L);var U={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in L)if(H!=="default"&&Object.prototype.hasOwnProperty.call(L,H)){var G=z?Object.getOwnPropertyDescriptor(L,H):null;G&&(G.get||G.set)?Object.defineProperty(U,H,G):U[H]=L[H]}return U.default=L,I&&I.set(L,U),U}function C(){return C=Object.assign?Object.assign.bind():function(L){for(var M=1;M{if((0,b.default)("Draggable: onDragStart: %j",U),this.props.onStart(I,(0,y.createDraggableData)(this,U))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),O(this,"onDrag",(I,U)=>{if(!this.state.dragging)return!1;(0,b.default)("Draggable: onDrag: %j",U);const z=(0,y.createDraggableData)(this,U),H={x:z.x,y:z.y,slackX:0,slackY:0};if(this.props.bounds){const{x:X,y:W}=H;H.x+=this.state.slackX,H.y+=this.state.slackY;const[K,ie]=(0,y.getBoundPosition)(this,H.x,H.y);H.x=K,H.y=ie,H.slackX=this.state.slackX+(X-H.x),H.slackY=this.state.slackY+(W-H.y),z.x=H.x,z.y=H.y,z.deltaX=H.x-this.state.x,z.deltaY=H.y-this.state.y}if(this.props.onDrag(I,z)===!1)return!1;this.setState(H)}),O(this,"onDragStop",(I,U)=>{if(!this.state.dragging||this.props.onStop(I,(0,y.createDraggableData)(this,U))===!1)return!1;(0,b.default)("Draggable: onDragStop: %j",U);const H={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:X,y:W}=this.props.position;H.x=X,H.y=W}this.setState(H)}),this.state={dragging:!1,dragged:!1,x:M.position?M.position.x:M.defaultPosition.x,y:M.position?M.position.y:M.defaultPosition.y,prevPropsPosition:se({},M.position),slackX:0,slackY:0,isElementSVG:!1},M.position&&(M.onDrag||M.onStop)}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var M,I;return(M=(I=this.props)===null||I===void 0||(I=I.nodeRef)===null||I===void 0?void 0:I.current)!==null&&M!==void 0?M:c.default.findDOMNode(this)}render(){const ae=this.props,{axis:M,bounds:I,children:U,defaultPosition:z,defaultClassName:H,defaultClassNameDragging:G,defaultClassNameDragged:X,position:W,positionOffset:K,scale:ie}=ae,ee=er(ae,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let de={},Z=null;const J=!!!W||this.state.dragging,ne=W||z,fe={x:(0,y.canDragX)(this)&&J?this.state.x:ne.x,y:(0,y.canDragY)(this)&&J?this.state.y:ne.y};this.state.isElementSVG?Z=(0,d.createSVGTransform)(fe,K):de=(0,d.createCSSTransform)(fe,K);const le=(0,f.default)(U.props.className||"",H,{[G]:this.state.dragging,[X]:this.state.dragged});return a.createElement(S.default,C({},ee,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),a.cloneElement(a.Children.only(U),{className:le,style:se(se({},U.props.style),de),transform:Z}))}}o.default=j,O(j,"displayName","Draggable"),O(j,"propTypes",$e(se({},S.default.propTypes),{axis:s.default.oneOf(["both","x","y","none"]),bounds:s.default.oneOfType([s.default.shape({left:s.default.number,right:s.default.number,top:s.default.number,bottom:s.default.number}),s.default.string,s.default.oneOf([!1])]),defaultClassName:s.default.string,defaultClassNameDragging:s.default.string,defaultClassNameDragged:s.default.string,defaultPosition:s.default.shape({x:s.default.number,y:s.default.number}),positionOffset:s.default.shape({x:s.default.oneOfType([s.default.number,s.default.string]),y:s.default.oneOfType([s.default.number,s.default.string])}),position:s.default.shape({x:s.default.number,y:s.default.number}),className:_.dontSetMe,style:_.dontSetMe,transform:_.dontSetMe})),O(j,"defaultProps",$e(se({},S.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))})(Draggable$1);const{default:Draggable,DraggableCore}=Draggable$1;cjs.exports=Draggable;cjs.exports.default=Draggable;cjs.exports.DraggableCore=DraggableCore;var cjsExports=cjs.exports,utils$5={};utils$5.__esModule=!0;utils$5.cloneElement=cloneElement;var _react=_interopRequireDefault$4(reactExports);function _interopRequireDefault$4(o){return o&&o.__esModule?o:{default:o}}function ownKeys$9(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$8(o){for(var a=1;a=0)&&(s[f]=o[f]);return s}function ownKeys$8(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$7(o){for(var a=1;aMath.abs(T*$)?d=f/$:f=d*$}var C=f,O=d,A=this.slack||[0,0],F=A[0],j=A[1];return f+=F,d+=j,_&&(f=Math.max(_[0],f),d=Math.max(_[1],d)),S&&(f=Math.min(S[0],f),d=Math.min(S[1],d)),this.slack=[F+(C-f),j+(O-d)],[f,d]},s.resizeHandler=function(f,d){var y=this;return function(_,S){var b=S.node,$=S.deltaX,P=S.deltaY;f==="onResizeStart"&&y.resetData();var T=(y.props.axis==="both"||y.props.axis==="x")&&d!=="n"&&d!=="s",C=(y.props.axis==="both"||y.props.axis==="y")&&d!=="e"&&d!=="w";if(!(!T&&!C)){var O=d[0],A=d[d.length-1],F=b.getBoundingClientRect();if(y.lastHandleRect!=null){if(A==="w"){var j=F.left-y.lastHandleRect.left;$+=j}if(O==="n"){var L=F.top-y.lastHandleRect.top;P+=L}}y.lastHandleRect=F,A==="w"&&($=-$),O==="n"&&(P=-P);var M=y.props.width+(T?$/y.props.transformScale:0),I=y.props.height+(C?P/y.props.transformScale:0),U=y.runConstraints(M,I);M=U[0],I=U[1];var z=M!==y.props.width||I!==y.props.height,H=typeof y.props[f]=="function"?y.props[f]:null,G=f==="onResize"&&!z;H&&!G&&(_.persist==null||_.persist(),H(_,{node:b,size:{width:M,height:I},handle:d})),f==="onResizeStop"&&y.resetData()}}},s.renderResizeHandle=function(f,d){var y=this.props.handle;if(!y)return React$1.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+f,ref:d});if(typeof y=="function")return y(f,d);var _=typeof y.type=="string",S=_objectSpread$7({ref:d},_?{}:{handleAxis:f});return React$1.cloneElement(y,S)},s.render=function(){var f=this,d=this.props,y=d.children,_=d.className,S=d.draggableOpts;d.width,d.height,d.handle,d.handleSize,d.lockAspectRatio,d.axis,d.minConstraints,d.maxConstraints,d.onResize,d.onResizeStop,d.onResizeStart;var b=d.resizeHandles;d.transformScale;var $=_objectWithoutPropertiesLoose$3(d,_excluded$2);return(0,_utils.cloneElement)(y,_objectSpread$7(_objectSpread$7({},$),{},{className:(_?_+" ":"")+"react-resizable",children:[].concat(y.props.children,b.map(function(P){var T,C=(T=f.handleRefs[P])!=null?T:f.handleRefs[P]=React$1.createRef();return React$1.createElement(_reactDraggable.DraggableCore,_extends$4({},S,{nodeRef:C,key:"resizableHandle-"+P,onStop:f.resizeHandler("onResizeStop",P),onStart:f.resizeHandler("onResizeStart",P),onDrag:f.resizeHandler("onResize",P)}),f.renderResizeHandle(P,C))}))}))},a}(React$1.Component);Resizable$2.default=Resizable$1;Resizable$1.propTypes=_propTypes$1.resizableProps;Resizable$1.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var ResizableBox$1={};ResizableBox$1.__esModule=!0;ResizableBox$1.default=void 0;var React=_interopRequireWildcard(reactExports),_propTypes=_interopRequireDefault$2(propTypesExports),_Resizable=_interopRequireDefault$2(Resizable$2),_propTypes2=propTypes,_excluded$1=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function _interopRequireDefault$2(o){return o&&o.__esModule?o:{default:o}}function _getRequireWildcardCache(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(_getRequireWildcardCache=function(f){return f?s:a})(o)}function _interopRequireWildcard(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var s=_getRequireWildcardCache(a);if(s&&s.has(o))return s.get(o);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in o)if(d!=="default"&&Object.prototype.hasOwnProperty.call(o,d)){var y=f?Object.getOwnPropertyDescriptor(o,d):null;y&&(y.get||y.set)?Object.defineProperty(c,d,y):c[d]=o[d]}return c.default=o,s&&s.set(o,c),c}function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(o){for(var a=1;a=0)&&(s[f]=o[f]);return s}function _inheritsLoose(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,_setPrototypeOf$1(o,a)}function _setPrototypeOf$1(o,a){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,f){return c.__proto__=f,c},_setPrototypeOf$1(o,a)}var ResizableBox=function(o){_inheritsLoose(a,o);function a(){for(var c,f=arguments.length,d=new Array(f),y=0;y=a||H<0||P&&G>=d}function j(){var z=now();if(F(z))return L(z);_=setTimeout(j,A(z))}function L(z){return _=void 0,T&&c?C(z):(c=f=void 0,y)}function M(){_!==void 0&&clearTimeout(_),b=0,c=S=f=_=void 0}function I(){return _===void 0?y:L(now())}function U(){var z=now(),H=F(z);if(c=arguments,f=this,S=z,H){if(_===void 0)return O(S);if(P)return _=setTimeout(j,a),C(S)}return _===void 0&&(_=setTimeout(j,a)),y}return U.cancel=M,U.flush=I,U}function throttle(o,a,s){var c=!0,f=!0;if(typeof o!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$4(s)&&(c="leading"in s?!!s.leading:c,f="trailing"in s?!!s.trailing:f),debounce(o,a,{leading:c,maxWait:a,trailing:f})}function isObject$4(o){var a=typeof o;return!!o&&(a=="object"||a=="function")}function isObjectLike$2(o){return!!o&&typeof o=="object"}function isSymbol$1(o){return typeof o=="symbol"||isObjectLike$2(o)&&objectToString$2.call(o)==symbolTag$3}function toNumber(o){if(typeof o=="number")return o;if(isSymbol$1(o))return NAN;if(isObject$4(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=isObject$4(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=o.replace(reTrim,"");var s=reIsBinary.test(o);return s||reIsOctal.test(o)?freeParseInt(o.slice(2),s?2:8):reIsBadHex.test(o)?NAN:+o}var lodash_throttle=throttle;const throttle$1=getDefaultExportFromCjs(lodash_throttle);var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(o,a,s)=>a in o?__defProp(o,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[a]=s,__spreadValues=(o,a)=>{for(var s in a||(a={}))__hasOwnProp.call(a,s)&&__defNormalProp(o,s,a[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(a))__propIsEnum.call(a,s)&&__defNormalProp(o,s,a[s]);return o},__spreadProps=(o,a)=>__defProps(o,__getOwnPropDescs(a)),__objRest=(o,a)=>{var s={};for(var c in o)__hasOwnProp.call(o,c)&&a.indexOf(c)<0&&(s[c]=o[c]);if(o!=null&&__getOwnPropSymbols)for(var c of __getOwnPropSymbols(o))a.indexOf(c)<0&&__propIsEnum.call(o,c)&&(s[c]=o[c]);return s};function depthFirstSearch(o,a,s){const c=[...o];return function f(d){if(d)for(let y=0;y<(d==null?void 0:d.length);y++){if(a(d[y])){d[y]=__spreadProps(__spreadValues({},d[y]),{width:s});return}d[y].children&&f(d[y].children)}}(c),c}function isString$4(o){return typeof o=="string"}function isEmpty(o){return typeof o!="object"||o===null?!0:!(Array.isArray(o)&&o.length||Object.keys(o).length)}var useUnmountedRef=()=>{const o=reactExports.useRef(!1);return reactExports.useEffect(()=>(o.current=!1,()=>{o.current=!0}),[]),o};function useSafeState(o){const a=useUnmountedRef(),[s,c]=reactExports.useState(o),f=reactExports.useCallback(d=>{a.current||c(d)},[]);return[s,f]}var ResizableHeader=o=>{const a=o,{width:s,minWidth:c,maxWidth:f,resizable:d,hideInTable:y,onResize:_,onResizeStart:S,onResizeEnd:b,onMount:$,triggerRender:P,className:T,style:C,onClick:O,children:A,rowSpan:F,colSpan:j,title:L,scope:M,tooltipRender:I}=a,U=__objRest(a,["width","minWidth","maxWidth","resizable","hideInTable","onResize","onResizeStart","onResizeEnd","onMount","triggerRender","className","style","onClick","children","rowSpan","colSpan","title","scope","tooltipRender"]),[z,H]=useSafeState(0),{overflow:G,ref:X}=dist.useOverflowDetector({});if(reactExports.useEffect(()=>{s&&(H(s),$==null||$(s,{overflow:G}))},[P]),reactExports.useEffect(()=>{s&&H(s)},[H,s]),y)return null;if(!s||Number.isNaN(Number(s))||d===!1)return jsxRuntimeExports.jsx("th",__spreadProps(__spreadValues({},U),{"data-arh-disable":"true",style:C,className:T,onClick:O,rowSpan:F,colSpan:j,children:jsxRuntimeExports.jsx("span",{title:L,children:A})}));const W=Q=>{document.body.style.userSelect=Q?"none":"",document.body.style.pointerEvents=Q?"none":"",document.documentElement.style.cursor=Q?"col-resize":""},K=({},Q)=>{H(Q.size.width),W(!0),S==null||S(Q.size.width)},ie=({},Q)=>{H(Q.size.width)},ee=()=>{z<=0||(_(z,{overflow:G}),W(!1),b==null||b(z))},de=()=>{var Q,J;if(Array.isArray(A)){const ne=A[A.length-1];if(ne)return isString$4(ne)||((Q=ne.props)==null?void 0:Q.ellipsis)||isString$4((J=ne.props)==null?void 0:J.label)}return!1},Z=jsxRuntimeExports.jsx("div",__spreadProps(__spreadValues({},U),{ref:X,className:`resizable-title${de()?" ellipsis":""}`,children:A}));return jsxRuntimeExports.jsxs("th",{scope:M,className:`resizable-container ${T}`,style:__spreadProps(__spreadValues({},C),{overflow:"unset"}),"data-uarh-enable":"true",onClick:O,rowSpan:F,colSpan:j,children:[jsxRuntimeExports.jsx(Resizable,{className:"resizable-box",width:z,minConstraints:[c,0],maxConstraints:[f,0],height:0,handle:jsxRuntimeExports.jsx("div",{className:"resizable-handler",onClick:Q=>{Q.stopPropagation()},children:jsxRuntimeExports.jsx("div",{className:"resizable-line"})}),draggableOpts:{enableUserSelectHack:!1},onResizeStart:K,onResize:ie,onResizeStop:ee,children:jsxRuntimeExports.jsx("div",{style:{width:z,height:"100%"}})}),I?I({children:Z,open:G?void 0:!1,title:A}):Z]})},ResizableHeader_default=reactExports.memo(ResizableHeader);function useCreation(o,a){const{current:s}=reactExports.useRef({deps:a,obj:void 0,initialized:!1});return(s.initialized===!1||!depsAreSame(s.deps,a))&&(s.deps=a,s.obj=o(),s.initialized=!0),s.obj}function depsAreSame(o,a){if(o===a)return!0;for(let s=0;sdebounce$5((...y)=>c.current(...y),f,a),[]);return reactExports.useEffect(()=>{d.cancel()},[]),{run:d,cancel:d.cancel,flush:d.flush}}var GETKEY="dataIndex",ResizableUniqIdPrefix="resizable-table-id";function getUniqueId(o){return`${ResizableUniqIdPrefix}-${o}`}function getColumns(o){const a=o==null?void 0:o.filter(c=>!isEmpty(c));return a==null?void 0:a.map((c,f)=>{var d;return __spreadProps(__spreadValues({},c),{children:(d=c==null?void 0:c.children)!=null&&d.length?getColumns(c.children):void 0,[GETKEY]:c[GETKEY]||c.key||getUniqueId(`${c.title}-${f}`)})})}function useGetDataIndexColumns(o){return reactExports.useMemo(()=>getColumns(o),[o])||o}var isBrowser$2=!!(typeof window!="undefined"&&window.document&&window.document.createElement),useIsomorphicLayoutEffect=isBrowser$2?reactExports.useLayoutEffect:reactExports.useEffect;function useLatest$1(o){const a=reactExports.useRef(o);return a.current=o,a}function useMemoizedFn$1(o){const a=reactExports.useRef(o);a.current=reactExports.useMemo(()=>o,[o]);const s=reactExports.useRef();return s.current||(s.current=function(...c){return a.current.apply(this,c)}),s.current}function mergeColumns(o,a,s){const c=o;return Array.isArray(c)&&Array.isArray(a)&&c.forEach((f,d)=>{var y,_;f!=null&&f.children?mergeColumns(f.children,(y=a[d])==null?void 0:y.children,s):c[d][s]=((_=a.find(S=>S.dataIndex===c[d].dataIndex))==null?void 0:_[s])||c[d][s]}),c}function useLocalColumns({columnsState:o,resizableColumns:a,columns:s}){const c=useGetDataIndexColumns(s),f=useMemoizedFn$1(()=>{var S;const{persistenceType:b,persistenceKey:$}=o||{};if(!$||!b||typeof window=="undefined")return c;const P=window[b];try{const T=(S=JSON.parse((P==null?void 0:P.getItem($))||"{}"))==null?void 0:S.resizableColumns;return mergeColumns(c||[],T,"width")}catch(T){}}),[d,y]=reactExports.useState(f);reactExports.useEffect(()=>{y(f())},[c]),reactExports.useEffect(()=>{const{persistenceType:S,persistenceKey:b}=o||{};if(!b||!S||!(a!=null&&a.length)||typeof window=="undefined")return;const $=window[S];try{$.setItem(b,JSON.stringify(__spreadProps(__spreadValues({},JSON.parse(($==null?void 0:$.getItem(b))||"{}")),{resizableColumns:a.map(P=>{const T={dataIndex:P.dataIndex,key:P.key,width:P.width,children:P.children};return isString$4(P.title)&&(T.title=P.title),T})})))}catch(P){}},[a]);const _=useMemoizedFn$1(()=>{y([...c||[]])});return{localColumns:reactExports.useMemo(()=>d,[d]),resetLocalColumns:_}}var createUpdateEffect=o=>(a,s)=>{const c=reactExports.useRef(!1);o(()=>()=>{c.current=!1},[]),o(()=>{if(!c.current)c.current=!0;else return a()},s)};function useThrottleFn(o,a){var s;const c=reactExports.useRef(o);c.current=o;const f=(s=a==null?void 0:a.wait)!=null?s:1e3,d=useCreation(()=>throttle$1((...y)=>c.current(...y),f,a),[]);return reactExports.useEffect(()=>{d.cancel()},[]),{run:d,cancel:d.cancel,flush:d.flush}}var useUpdateEffect=createUpdateEffect(reactExports.useEffect);function useThrottleEffect(o,a,s){const[c,f]=reactExports.useState({}),{run:d,cancel:y}=useThrottleFn(()=>{f({})},s);reactExports.useEffect(()=>d(),a),reactExports.useEffect(y,[]),useUpdateEffect(o,[c])}var useUpdateThrottleEffect=createUpdateEffect(useThrottleEffect),errorMsgs=new Set,logger={errorOnce(o){errorMsgs.has(o)||errorMsgs.add(o)}};function traverseColumnsWidthAll(o){return!o||!o.length?!1:o.every(a=>a.children&&a.children.length?!1:!!a.width)}function validateColumnsFlex(o){traverseColumnsWidthAll(o)&&logger.errorOnce("[use-antd-resizable-header] 请不要在所有列上添加 `width` 属性,这将导致表格无法自适应")}var WIDTH=120;function useAntdResizableHeader(o){const{columns:a,defaultWidth:s=WIDTH,minConstraints:c=s/2,maxConstraints:f=Number.POSITIVE_INFINITY,cache:d=!0,columnsState:y,onResizeStart:_,onResizeEnd:S,tooltipRender:b}=o;validateColumnsFlex(a);const $=reactExports.useRef(new Map),[P,T]=useSafeState(a||[]),C=useLatest$1(P),{localColumns:O,resetLocalColumns:A}=useLocalColumns({columnsState:y,columns:a,resizableColumns:P}),[F,j]=useSafeState(),[L,M]=reactExports.useReducer(ee=>ee+1,0);let I;const U=useMemoizedFn$1(()=>{I=new Map,$.current=I,A()}),z=reactExports.useCallback(ee=>de=>{de&&T(Z=>{const Q=depthFirstSearch(Z,ne=>ne[GETKEY]===ee&&!!ne.width&&!ne.hideInTable,de);I=I||new Map;function J(ne){var fe;for(let le=0;lez,[z]),G=ee=>de=>{_==null||_(__spreadProps(__spreadValues({},ee),{width:de,resizableColumns:C.current}))},X=ee=>de=>{S==null||S(__spreadProps(__spreadValues({},ee),{width:de,resizableColumns:C.current}))},W=useMemoizedFn$1(ee=>(ee==null?void 0:ee.filter(Q=>!isEmpty(Q))).map(Q=>{var J,ne,fe,le;return __spreadProps(__spreadValues({},Q),{children:(J=Q==null?void 0:Q.children)!=null&&J.length?W(Q.children):void 0,onHeaderCell:ae=>{var ce,ge,pe;return{"data-index":ae.dataIndex,title:typeof(Q==null?void 0:Q.title)=="string"?Q==null?void 0:Q.title:"",width:d&&((pe=(ge=$.current)==null?void 0:ge.get((ce=ae[GETKEY])!=null?ce:""))==null?void 0:pe.width)||(ae==null?void 0:ae.width),resizable:ae.resizable,onMount:z(ae==null?void 0:ae[GETKEY]),onResize:H(ae==null?void 0:ae[GETKEY]),onResizeStart:G(ae),onResizeEnd:X(ae),minWidth:c,maxWidth:f,hideInTable:ae.hideInTable,tooltipRender:b,triggerRender:L}},width:d&&((le=(fe=$.current)==null?void 0:fe.get((ne=Q[GETKEY])!=null?ne:""))==null?void 0:le.width)||(Q==null?void 0:Q.width),[GETKEY]:Q[GETKEY]||Q.key})}));useIsomorphicLayoutEffect(()=>{if(O){const ee=W(O);T(ee)}},[O]),useUpdateThrottleEffect(()=>{const ee=W(P);T(ee)},[L],{wait:500}),useIsomorphicLayoutEffect(()=>{let ee=0;(function de(Z){for(let Q=0;Q(window.addEventListener("resize",K),()=>{window.removeEventListener("resize",K)}),[K]);const ie=reactExports.useMemo(()=>({header:{cell:ResizableHeader_default}}),[]);return{resizableColumns:P,components:ie,tableWidth:F,resetColumns:U}}var GListContext=reactExports.createContext({data:[],disabledKeys:[],setDisabledKeys:function(a){}});function _typeof$5(o){"@babel/helpers - typeof";return _typeof$5=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},_typeof$5(o)}var _excluded=["index"],_excluded2=["field","record","children","tableData","setTableData","rowKey","tableProps"],_excluded3=["field","record","children","tableData","setTableData","tableProps"];function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return a};var o,a={},s=Object.prototype,c=s.hasOwnProperty,f=Object.defineProperty||function(Q,J,ne){Q[J]=ne.value},d=typeof Symbol=="function"?Symbol:{},y=d.iterator||"@@iterator",_=d.asyncIterator||"@@asyncIterator",S=d.toStringTag||"@@toStringTag";function b(Q,J,ne){return Object.defineProperty(Q,J,{value:ne,enumerable:!0,configurable:!0,writable:!0}),Q[J]}try{b({},"")}catch(Q){b=function(ne,fe,le){return ne[fe]=le}}function $(Q,J,ne,fe){var le=J&&J.prototype instanceof j?J:j,ae=Object.create(le.prototype),ce=new de(fe||[]);return f(ae,"_invoke",{value:W(Q,ne,ce)}),ae}function P(Q,J,ne){try{return{type:"normal",arg:Q.call(J,ne)}}catch(fe){return{type:"throw",arg:fe}}}a.wrap=$;var T="suspendedStart",C="suspendedYield",O="executing",A="completed",F={};function j(){}function L(){}function M(){}var I={};b(I,y,function(){return this});var U=Object.getPrototypeOf,z=U&&U(U(Z([])));z&&z!==s&&c.call(z,y)&&(I=z);var H=M.prototype=j.prototype=Object.create(I);function G(Q){["next","throw","return"].forEach(function(J){b(Q,J,function(ne){return this._invoke(J,ne)})})}function X(Q,J){function ne(le,ae,ce,ge){var pe=P(Q[le],Q,ae);if(pe.type!=="throw"){var Ie=pe.arg,Ce=Ie.value;return Ce&&_typeof$5(Ce)=="object"&&c.call(Ce,"__await")?J.resolve(Ce.__await).then(function(ue){ne("next",ue,ce,ge)},function(ue){ne("throw",ue,ce,ge)}):J.resolve(Ce).then(function(ue){Ie.value=ue,ce(Ie)},function(ue){return ne("throw",ue,ce,ge)})}ge(pe.arg)}var fe;f(this,"_invoke",{value:function(ae,ce){function ge(){return new J(function(pe,Ie){ne(ae,ce,pe,Ie)})}return fe=fe?fe.then(ge,ge):ge()}})}function W(Q,J,ne){var fe=T;return function(le,ae){if(fe===O)throw new Error("Generator is already running");if(fe===A){if(le==="throw")throw ae;return{value:o,done:!0}}for(ne.method=le,ne.arg=ae;;){var ce=ne.delegate;if(ce){var ge=K(ce,ne);if(ge){if(ge===F)continue;return ge}}if(ne.method==="next")ne.sent=ne._sent=ne.arg;else if(ne.method==="throw"){if(fe===T)throw fe=A,ne.arg;ne.dispatchException(ne.arg)}else ne.method==="return"&&ne.abrupt("return",ne.arg);fe=O;var pe=P(Q,J,ne);if(pe.type==="normal"){if(fe=ne.done?A:C,pe.arg===F)continue;return{value:pe.arg,done:ne.done}}pe.type==="throw"&&(fe=A,ne.method="throw",ne.arg=pe.arg)}}}function K(Q,J){var ne=J.method,fe=Q.iterator[ne];if(fe===o)return J.delegate=null,ne==="throw"&&Q.iterator.return&&(J.method="return",J.arg=o,K(Q,J),J.method==="throw")||ne!=="return"&&(J.method="throw",J.arg=new TypeError("The iterator does not provide a '"+ne+"' method")),F;var le=P(fe,Q.iterator,J.arg);if(le.type==="throw")return J.method="throw",J.arg=le.arg,J.delegate=null,F;var ae=le.arg;return ae?ae.done?(J[Q.resultName]=ae.value,J.next=Q.nextLoc,J.method!=="return"&&(J.method="next",J.arg=o),J.delegate=null,F):ae:(J.method="throw",J.arg=new TypeError("iterator result is not an object"),J.delegate=null,F)}function ie(Q){var J={tryLoc:Q[0]};1 in Q&&(J.catchLoc=Q[1]),2 in Q&&(J.finallyLoc=Q[2],J.afterLoc=Q[3]),this.tryEntries.push(J)}function ee(Q){var J=Q.completion||{};J.type="normal",delete J.arg,Q.completion=J}function de(Q){this.tryEntries=[{tryLoc:"root"}],Q.forEach(ie,this),this.reset(!0)}function Z(Q){if(Q||Q===""){var J=Q[y];if(J)return J.call(Q);if(typeof Q.next=="function")return Q;if(!isNaN(Q.length)){var ne=-1,fe=function le(){for(;++ne=0;--le){var ae=this.tryEntries[le],ce=ae.completion;if(ae.tryLoc==="root")return fe("end");if(ae.tryLoc<=this.prev){var ge=c.call(ae,"catchLoc"),pe=c.call(ae,"finallyLoc");if(ge&&pe){if(this.prev=0;--fe){var le=this.tryEntries[fe];if(le.tryLoc<=this.prev&&c.call(le,"finallyLoc")&&this.prev=0;--ne){var fe=this.tryEntries[ne];if(fe.finallyLoc===J)return this.complete(fe.completion,fe.afterLoc),ee(fe),F}},catch:function(J){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var fe=this.tryEntries[ne];if(fe.tryLoc===J){var le=fe.completion;if(le.type==="throw"){var ae=le.arg;ee(fe)}return ae}}throw new Error("illegal catch attempt")},delegateYield:function(J,ne,fe){return this.delegate={iterator:Z(J),resultName:ne,nextLoc:fe},this.method==="next"&&(this.arg=o),F}},a}function _toConsumableArray$3(o){return _arrayWithoutHoles$3(o)||_iterableToArray$3(o)||_unsupportedIterableToArray$2(o)||_nonIterableSpread$3()}function _nonIterableSpread$3(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$3(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function _arrayWithoutHoles$3(o){if(Array.isArray(o))return _arrayLikeToArray$2(o)}function ownKeys$6(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$5(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$1(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}var Text$2=Typography.Text;function EditableRow(o){var a=o.index,s=_objectWithoutProperties$1(o,_excluded),c=Form.useForm(),f=_slicedToArray$1(c,1),d=f[0],y=reactExports.useContext(GSearchTableContext);return reactExports.useEffect(function(){y.setEditTableRow([{index:a,form:d}])},[]),React$4.createElement(Form,{form:d,component:!1},React$4.createElement(EditableContext.Provider,{value:d},React$4.createElement("tr",_extends$2({},s,{className:"editable-row ".concat(s.className||"")}))))}var RuleFormItem=function(a){var s=a.inputProps,c=a.input,f=a.extra,d=a.popoverProps,y=reactExports.useState(!1),_=_slicedToArray$1(y,2),S=_[0],b=_[1],$=reactExports.useState([]),P=_slicedToArray$1($,2),T=P[0],C=P[1];return reactExports.useEffect(function(){s.validateStatus!=="validating"&&C(s.errors)},[s.errors,s.validateStatus]),React$4.createElement(_Popover,_extends$2({key:"popover",trigger:"focus",placement:"topRight",open:T.length<1?!1:S,onVisibleChange:function(A){A!==S&&b(A)},content:React$4.createElement("div",{className:"g-form-item-with-help"},s.validateStatus==="validating"?React$4.createElement(LoadingOutlined,null):null,T.map(function(O){return React$4.createElement("div",{key:O},React$4.createElement(Text$2,{type:"danger"},React$4.createElement(Space,null,React$4.createElement(InfoCircleFilled,null),O)))}))},d),React$4.createElement("div",null,c,f))};function EditableCell(o){var a=o.field,s=o.record,c=o.children,f=o.tableData,d=o.setTableData;o.rowKey;var y=o.tableProps,_=_objectWithoutProperties$1(o,_excluded2),S=reactExports.useState(!1),b=_slicedToArray$1(S,2),$=b[0],P=b[1],T=reactExports.useContext(EditableContext),C,O=function(){P(!$)},A=function(){var L=_asyncToGenerator(_regeneratorRuntime().mark(function U(){var z,H,G,X;return _regeneratorRuntime().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,T.validateFields();case 2:z=K.sent,H=_objectSpread$5(_objectSpread$5({},s),z),G=_toConsumableArray$3(f),X=G.findIndex(function(ie){return getKey(ie,y.rowKey)===getKey(H,y.rowKey)}),G.splice(X,1,H),d(G),P(!1);case 9:case"end":return K.stop()}},U)}));return function(){return L.apply(this,arguments)}}();reactExports.useEffect(function(){$&&T.setFieldsValue(_defineProperty$6({},a.key,s[a.key]))},[$]);var F=c[1];if(F&&typeof F=="function"){var j=F({editing:$,save:A,toggleEdit:O,form:T,mode:"col"});$?C=React$4.createElement(Form.Item,_extends$2({name:a.key,style:{margin:"-5px 0"}},a.formItemProps),j):C=React$4.createElement("div",{className:classNames("editable-cell",a==null?void 0:a.editableCellClass),style:a==null?void 0:a.editableCellStyle,onClick:O},j)}else a||(C=c);var I=a!=null&&a.before?a.before({record:s,field:a,refreshRow:A}):null,M=a!=null&&a.after?a.after({record:s,field:a,refreshRow:A}):null;return React$4.createElement("td",_,I,C,M)}function EditableRowCell(o){var a=o.field,s=o.record,c=o.children,f=o.tableData,d=o.setTableData,y=o.tableProps,_=_objectWithoutProperties$1(o,_excluded3),S=reactExports.useContext(EditableContext),b=(s==null?void 0:s.editing)||!1,$;reactExports.useEffect(function(){b&&S.setFieldsValue(_objectSpread$5({},s))},[b]);var P=function(){var F=_asyncToGenerator(_regeneratorRuntime().mark(function j(){var I,M,L,U;return _regeneratorRuntime().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,S.validateFields();case 2:I=H.sent,M=_objectSpread$5(_objectSpread$5({},s),I),L=_toConsumableArray$3(f),U=L.findIndex(function(G){return getKey(G,y.rowKey)===getKey(M,y.rowKey)}),L.splice(U,1,M),d(L);case 8:case"end":return H.stop()}},j)}));return function(){return F.apply(this,arguments)}}(),T=c[1];if(T&&typeof T=="function"){var C=T({editing:b,form:S,mode:"row"});b?$=React$4.createElement(Form.Item,_extends$2({_internalItemRender:{mark:"pro_table_render",render:function(j,I){return React$4.createElement(RuleFormItem,_extends$2({inputProps:j},I,{popoverProps:a.popoverProps}))}},name:a.key,style:{margin:"-5px 0"}},a.formItemProps),C):$=React$4.createElement("div",{className:"editable-row-cell"},C)}else a||($=c);var O=a!=null&&a.before?a.before({record:s,field:a,refreshRow:P}):null,A=a!=null&&a.after?a.after({record:s,field:a,refreshRow:P}):null;return React$4.createElement("td",_,O,$,A)}var ColEditComponents={body:{row:EditableRow,cell:EditableCell}},RowEditComponents={body:{row:EditableRow,cell:EditableRowCell}},getComponents=function(a){if(a==="row")return RowEditComponents;if(a==="col")return ColEditComponents};function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose$1(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}var Text$2=Typography.Text;function EditableRow(o){var a=o.index,s=_objectWithoutProperties$1(o,_excluded),c=Form.useForm(),f=_slicedToArray$1(c,1),d=f[0],y=reactExports.useContext(GSearchTableContext);return reactExports.useEffect(function(){y.setEditTableRow([{index:a,form:d}])},[]),React$4.createElement(Form,{form:d,component:!1},React$4.createElement(EditableContext.Provider,{value:d},React$4.createElement("tr",_extends$2({},s,{className:"editable-row ".concat(s.className||"")}))))}var RuleFormItem=function(a){var s=a.inputProps,c=a.input,f=a.extra,d=a.popoverProps,y=reactExports.useState(!1),_=_slicedToArray$1(y,2),S=_[0],b=_[1],$=reactExports.useState([]),P=_slicedToArray$1($,2),T=P[0],C=P[1];return reactExports.useEffect(function(){s.validateStatus!=="validating"&&C(s.errors)},[s.errors,s.validateStatus]),React$4.createElement(_Popover,_extends$2({key:"popover",trigger:"focus",placement:"topRight",open:T.length<1?!1:S,onVisibleChange:function(A){A!==S&&b(A)},content:React$4.createElement("div",{className:"g-form-item-with-help"},s.validateStatus==="validating"?React$4.createElement(LoadingOutlined,null):null,T.map(function(O){return React$4.createElement("div",{key:O},React$4.createElement(Text$2,{type:"danger"},React$4.createElement(Space,null,React$4.createElement(InfoCircleFilled,null),O)))}))},d),React$4.createElement("div",null,c,f))};function EditableCell(o){var a=o.field,s=o.record,c=o.children,f=o.tableData,d=o.setTableData;o.rowKey;var y=o.tableProps,_=_objectWithoutProperties$1(o,_excluded2),S=reactExports.useState(!1),b=_slicedToArray$1(S,2),$=b[0],P=b[1],T=reactExports.useContext(EditableContext),C,O=function(){P(!$)},A=function(){var I=_asyncToGenerator(_regeneratorRuntime().mark(function U(){var z,H,G,X;return _regeneratorRuntime().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,T.validateFields();case 2:z=K.sent,H=_objectSpread$5(_objectSpread$5({},s),z),G=_toConsumableArray$3(f),X=G.findIndex(function(ie){return getKey(ie,y.rowKey)===getKey(H,y.rowKey)}),G.splice(X,1,H),d(G),P(!1);case 9:case"end":return K.stop()}},U)}));return function(){return I.apply(this,arguments)}}();reactExports.useEffect(function(){$&&T.setFieldsValue(_defineProperty$6({},a.key,s[a.key]))},[$]);var F=c[1];if(F&&typeof F=="function"){var j=F({editing:$,save:A,toggleEdit:O,form:T,mode:"col"});$?C=React$4.createElement(Form.Item,_extends$2({name:a.key,style:{margin:"-5px 0"}},a.formItemProps),j):C=React$4.createElement("div",{className:classNames("editable-cell",a==null?void 0:a.editableCellClass),style:a==null?void 0:a.editableCellStyle,onClick:O},j)}else a||(C=c);var L=a!=null&&a.before?a.before({record:s,field:a,refreshRow:A}):null,M=a!=null&&a.after?a.after({record:s,field:a,refreshRow:A}):null;return React$4.createElement("td",_,L,C,M)}function EditableRowCell(o){var a=o.field,s=o.record,c=o.children,f=o.tableData,d=o.setTableData,y=o.tableProps,_=_objectWithoutProperties$1(o,_excluded3),S=reactExports.useContext(EditableContext),b=(s==null?void 0:s.editing)||!1,$;reactExports.useEffect(function(){b&&S.setFieldsValue(_objectSpread$5({},s))},[b]);var P=function(){var F=_asyncToGenerator(_regeneratorRuntime().mark(function j(){var L,M,I,U;return _regeneratorRuntime().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,S.validateFields();case 2:L=H.sent,M=_objectSpread$5(_objectSpread$5({},s),L),I=_toConsumableArray$3(f),U=I.findIndex(function(G){return getKey(G,y.rowKey)===getKey(M,y.rowKey)}),I.splice(U,1,M),d(I);case 8:case"end":return H.stop()}},j)}));return function(){return F.apply(this,arguments)}}(),T=c[1];if(T&&typeof T=="function"){var C=T({editing:b,form:S,mode:"row"});b?$=React$4.createElement(Form.Item,_extends$2({_internalItemRender:{mark:"pro_table_render",render:function(j,L){return React$4.createElement(RuleFormItem,_extends$2({inputProps:j},L,{popoverProps:a.popoverProps}))}},name:a.key,style:{margin:"-5px 0"}},a.formItemProps),C):$=React$4.createElement("div",{className:"editable-row-cell"},C)}else a||($=c);var O=a!=null&&a.before?a.before({record:s,field:a,refreshRow:P}):null,A=a!=null&&a.after?a.after({record:s,field:a,refreshRow:P}):null;return React$4.createElement("td",_,O,$,A)}var ColEditComponents={body:{row:EditableRow,cell:EditableCell}},RowEditComponents={body:{row:EditableRow,cell:EditableRowCell}},getComponents=function(a){if(a==="row")return RowEditComponents;if(a==="col")return ColEditComponents};function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0&&(De.splice(Be,1),ue(De))},insertRow:function(Ue,De){var Be=_toConsumableArray$2(Ce),$t=Be.findIndex(function(pt){return getKey(pt,F)===De});Be.splice($t+1,0,Ue),ue(Be)},addRow:function(Ue){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"after",Be=_toConsumableArray$2(Ce);Be[De==="after"?"push":"unshift"](Ue),ue(Be)},clearFilters:function(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],De=_objectSpread$3({},ce);for(var Be in De.filters)(!Ue.length||Ue.includes(Be))&&(De.filters[Be]=null);ge(De)},setFiltersValue:function(Ue){var De=_objectSpread$3({},ce);for(var Be in Ue)De.filters[Be]=Ue[Be];ge(De)},clearSorts:function(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],De=_objectSpread$3({},ce);if(!Ue.length)De.sorts=[];else for(var Be=0;Be0)return!0}return!1},En=_objectSpread$3({showTotal:function(Ue){return"".concat(locale.table.totalBefore," ").concat(Ue," ").concat(locale.table.totalAfter)},showQuickJumper:!0,size:"default",total:Ft,current:ce.pagination.current,pageSize:ce.pagination.pageSize},z);return React$4.createElement(GListContext.Provider,{value:{data:Ce,disabledKeys:kr,setDisabledKeys:Ii}},React$4.createElement(Card,{className:"g-table ".concat(c||"")},Kn()?React$4.createElement("header",{className:"g-table-header"},React$4.createElement("div",{className:"g-table-header-left"},React$4.createElement(Space,null,typeof P=="string"?React$4.createElement("h2",{className:"g-table-title"},P):P)),React$4.createElement("div",{className:"g-table-header-right"},React$4.createElement(Space,null,ie,$))):null,y,Z,React$4.createElement("div",{className:"g-table-content"},React$4.createElement(Table,_extends({bordered:!0,rowClassName:f,onExpand:U,columns:Yr?jr:xe,components:Yr?_objectSpread$3(_objectSpread$3({},Pe),Li):Pe,dataSource:Ce,loading:ze,rowSelection:T,pagination:z===!1?!1:ne===void 0?En:!1,onChange:qn,rowKey:F,size:S,scroll:{x:Yr?Ni:j,y:ee}},tableDefaultProps,H)),ne===!1&&React$4.createElement(Pagination,_extends({className:"ant-table-pagination ant-table-pagination-right"},En)))))}),_templateObject,_templateObject2,_templateObject3,_templateObject4;function _taggedTemplateLiteral(o,a){return a||(a=o.slice(0)),Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}}))}createStyles(function(o){var a=o.token,s=o.css,c=s(_templateObject||(_templateObject=_taggedTemplateLiteral([` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(o,a){if(o){if(typeof o=="string")return _arrayLikeToArray$1(o,a);var s=Object.prototype.toString.call(o).slice(8,-1);if(s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set")return Array.from(o);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return _arrayLikeToArray$1(o,a)}}function _arrayLikeToArray$1(o,a){(a==null||a>o.length)&&(a=o.length);for(var s=0,c=new Array(a);s=0&&(De.splice(Be,1),ue(De))},insertRow:function(Ue,De){var Be=_toConsumableArray$2(Ce),$t=Be.findIndex(function(pt){return getKey(pt,F)===De});Be.splice($t+1,0,Ue),ue(Be)},addRow:function(Ue){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"after",Be=_toConsumableArray$2(Ce);Be[De==="after"?"push":"unshift"](Ue),ue(Be)},clearFilters:function(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],De=_objectSpread$3({},ce);for(var Be in De.filters)(!Ue.length||Ue.includes(Be))&&(De.filters[Be]=null);ge(De)},setFiltersValue:function(Ue){var De=_objectSpread$3({},ce);for(var Be in Ue)De.filters[Be]=Ue[Be];ge(De)},clearSorts:function(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],De=_objectSpread$3({},ce);if(!Ue.length)De.sorts=[];else for(var Be=0;Be0)return!0}return!1},En=_objectSpread$3({showTotal:function(Ue){return"".concat(locale.table.totalBefore," ").concat(Ue," ").concat(locale.table.totalAfter)},showQuickJumper:!0,size:"default",total:Ft,current:ce.pagination.current,pageSize:ce.pagination.pageSize},z);return React$4.createElement(GListContext.Provider,{value:{data:Ce,disabledKeys:kr,setDisabledKeys:Ii}},React$4.createElement(Card,{className:"g-table ".concat(c||"")},Kn()?React$4.createElement("header",{className:"g-table-header"},React$4.createElement("div",{className:"g-table-header-left"},React$4.createElement(Space,null,typeof P=="string"?React$4.createElement("h2",{className:"g-table-title"},P):P)),React$4.createElement("div",{className:"g-table-header-right"},React$4.createElement(Space,null,ie,$))):null,y,Z,React$4.createElement("div",{className:"g-table-content"},React$4.createElement(Table,_extends({bordered:!0,rowClassName:f,onExpand:U,columns:Yr?jr:xe,components:Yr?_objectSpread$3(_objectSpread$3({},Pe),Li):Pe,dataSource:Ce,loading:ze,rowSelection:T,pagination:z===!1?!1:ne===void 0?En:!1,onChange:qn,rowKey:F,size:S,scroll:{x:Yr?Ni:j,y:ee}},tableDefaultProps,H)),ne===!1&&React$4.createElement(Pagination,_extends({className:"ant-table-pagination ant-table-pagination-right"},En)))))}),_templateObject,_templateObject2,_templateObject3,_templateObject4;function _taggedTemplateLiteral(o,a){return a||(a=o.slice(0)),Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}}))}createStyles(function(o){var a=o.token,s=o.css,c=s(_templateObject||(_templateObject=_taggedTemplateLiteral([` .ant-card-body { padding: 0; } @@ -305,31 +305,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho display: inline-block; `]))),flex:s(_templateObject4||(_templateObject4=_taggedTemplateLiteral([` display: flex; - `])))}});const gSearchList="",gSearchTable="";setDefaultDataFilter(o=>se({content:o.list,totalCount:o.total},o));setGlobalDialogField(()=>({maskClosable:!1,destroyOnClose:!0}));setDefaultSearchFilter(o=>{const a={pageSize:o.pagination.pageSize,pageIndex:o.pagination.current},s=o.search;return a.query=s,a});const useStyles$9=createStyles(()=>({"svg-icon":{display:"inline-block",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}));function SvgIcon({name:o,prefix:a="icon",size:s=16,style:c,className:f}){const{styles:d}=useStyles$9(),y=`#${a}-${o}`,_=se({width:`${s}px`,height:`${s}px`},c);return jsxRuntimeExports.jsx("svg",{className:classNames(d["svg-icon"],f),style:_,"aria-hidden":"true",children:jsxRuntimeExports.jsx("use",{href:y})})}var numeral={exports:{}};/*! @preserve + `])))}});const gSearchList="",gSearchTable="";setDefaultDataFilter(o=>se({content:o.list,totalCount:o.total},o));setGlobalDialogField(()=>({maskClosable:!1,destroyOnClose:!0}));setDefaultSearchFilter(o=>{const a={pageSize:o.pagination.pageSize,pageIndex:o.pagination.current},s=o.search;return a.query=s,a});const useStyles$a=createStyles(()=>({"svg-icon":{display:"inline-block",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}));function SvgIcon({name:o,prefix:a="icon",size:s=16,style:c,className:f}){const{styles:d}=useStyles$a(),y=`#${a}-${o}`,_=se({width:`${s}px`,height:`${s}px`},c);return jsxRuntimeExports.jsx("svg",{className:classNames(d["svg-icon"],f),style:_,"aria-hidden":"true",children:jsxRuntimeExports.jsx("use",{href:y})})}var numeral={exports:{}};/*! @preserve * numeral.js * version : 2.0.6 * author : Adam Draper * license : MIT * http://adamwdraper.github.com/Numeral-js/ - */(function(o){(function(a,s){o.exports?o.exports=s():a.numeral=s()})(commonjsGlobal,function(){var a,s,c="2.0.6",f={},d={},y={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},_={currentLocale:y.currentLocale,zeroFormat:y.zeroFormat,nullFormat:y.nullFormat,defaultFormat:y.defaultFormat,scalePercentBy100:y.scalePercentBy100};function S(b,$){this._input=b,this._value=$}return a=function(b){var $,P,T,C;if(a.isNumeral(b))$=b.value();else if(b===0||typeof b=="undefined")$=0;else if(b===null||s.isNaN(b))$=null;else if(typeof b=="string")if(_.zeroFormat&&b===_.zeroFormat)$=0;else if(_.nullFormat&&b===_.nullFormat||!b.replace(/[^0-9]+/g,"").length)$=null;else{for(P in f)if(C=typeof f[P].regexps.unformat=="function"?f[P].regexps.unformat():f[P].regexps.unformat,C&&b.match(C)){T=f[P].unformat;break}T=T||a._.stringToNumber,$=T(b)}else $=Number(b)||null;return new S(b,$)},a.version=c,a.isNumeral=function(b){return b instanceof S},a._=s={numberToFormat:function(b,$,P){var T=d[a.options.currentLocale],C=!1,O=!1,A=0,F="",j=1e12,I=1e9,M=1e6,L=1e3,U="",z=!1,H,G,X,W,K,ie,ee;if(b=b||0,G=Math.abs(b),a._.includes($,"(")?(C=!0,$=$.replace(/[\(|\)]/g,"")):(a._.includes($,"+")||a._.includes($,"-"))&&(K=a._.includes($,"+")?$.indexOf("+"):b<0?$.indexOf("-"):-1,$=$.replace(/[\+|\-]/g,"")),a._.includes($,"a")&&(H=$.match(/a(k|m|b|t)?/),H=H?H[1]:!1,a._.includes($," a")&&(F=" "),$=$.replace(new RegExp(F+"a[kmbt]?"),""),G>=j&&!H||H==="t"?(F+=T.abbreviations.trillion,b=b/j):G=I&&!H||H==="b"?(F+=T.abbreviations.billion,b=b/I):G=M&&!H||H==="m"?(F+=T.abbreviations.million,b=b/M):(G=L&&!H||H==="k")&&(F+=T.abbreviations.thousand,b=b/L)),a._.includes($,"[.]")&&(O=!0,$=$.replace("[.]",".")),X=b.toString().split(".")[0],W=$.split(".")[1],ie=$.indexOf(","),A=($.split(".")[0].split(",")[0].match(/0/g)||[]).length,W?(a._.includes(W,"[")?(W=W.replace("]",""),W=W.split("["),U=a._.toFixed(b,W[0].length+W[1].length,P,W[1].length)):U=a._.toFixed(b,W.length,P),X=U.split(".")[0],a._.includes(U,".")?U=T.delimiters.decimal+U.split(".")[1]:U="",O&&Number(U.slice(1))===0&&(U="")):X=a._.toFixed(b,0,P),F&&!H&&Number(X)>=1e3&&F!==T.abbreviations.trillion)switch(X=String(Number(X)/1e3),F){case T.abbreviations.thousand:F=T.abbreviations.million;break;case T.abbreviations.million:F=T.abbreviations.billion;break;case T.abbreviations.billion:F=T.abbreviations.trillion;break}if(a._.includes(X,"-")&&(X=X.slice(1),z=!0),X.length0;de--)X="0"+X;return ie>-1&&(X=X.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+T.delimiters.thousands)),$.indexOf(".")===0&&(X=""),ee=X+U+(F||""),C?ee=(C&&z?"(":"")+ee+(C&&z?")":""):K>=0?ee=K===0?(z?"-":"+")+ee:ee+(z?"-":"+"):z&&(ee="-"+ee),ee},stringToNumber:function(b){var $=d[_.currentLocale],P=b,T={thousand:3,million:6,billion:9,trillion:12},C,O,A;if(_.zeroFormat&&b===_.zeroFormat)O=0;else if(_.nullFormat&&b===_.nullFormat||!b.replace(/[^0-9]+/g,"").length)O=null;else{O=1,$.delimiters.decimal!=="."&&(b=b.replace(/\./g,"").replace($.delimiters.decimal,"."));for(C in T)if(A=new RegExp("[^a-zA-Z]"+$.abbreviations[C]+"(?:\\)|(\\"+$.currency.symbol+")?(?:\\))?)?$"),P.match(A)){O*=Math.pow(10,T[C]);break}O*=(b.split("-").length+Math.min(b.split("(").length-1,b.split(")").length-1))%2?1:-1,b=b.replace(/[^0-9\.]+/g,""),O*=Number(b)}return O},isNaN:function(b){return typeof b=="number"&&isNaN(b)},includes:function(b,$){return b.indexOf($)!==-1},insert:function(b,$,P){return b.slice(0,P)+$+b.slice(P)},reduce:function(b,$){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof $!="function")throw new TypeError($+" is not a function");var P=Object(b),T=P.length>>>0,C=0,O;if(arguments.length===3)O=arguments[2];else{for(;C=T)throw new TypeError("Reduce of empty array with no initial value");O=P[C++]}for(;CT?$:T},1)},toFixed:function(b,$,P,T){var C=b.toString().split("."),O=$-(T||0),A,F,j,I;return C.length===2?A=Math.min(Math.max(C[1].length,O),$):A=O,j=Math.pow(10,A),I=(P(b+"e+"+A)/j).toFixed(A),T>$-A&&(F=new RegExp("\\.?0{1,"+(T-($-A))+"}$"),I=I.replace(F,"")),I}},a.options=_,a.formats=f,a.locales=d,a.locale=function(b){return b&&(_.currentLocale=b.toLowerCase()),_.currentLocale},a.localeData=function(b){if(!b)return d[_.currentLocale];if(b=b.toLowerCase(),!d[b])throw new Error("Unknown locale : "+b);return d[b]},a.reset=function(){for(var b in y)_[b]=y[b]},a.zeroFormat=function(b){_.zeroFormat=typeof b=="string"?b:null},a.nullFormat=function(b){_.nullFormat=typeof b=="string"?b:null},a.defaultFormat=function(b){_.defaultFormat=typeof b=="string"?b:"0.0"},a.register=function(b,$,P){if($=$.toLowerCase(),this[b+"s"][$])throw new TypeError($+" "+b+" already registered.");return this[b+"s"][$]=P,P},a.validate=function(b,$){var P,T,C,O,A,F,j,I;if(typeof b!="string"&&(b+=""),b=b.trim(),b.match(/^\d+$/))return!0;if(b==="")return!1;try{j=a.localeData($)}catch(M){j=a.localeData(a.locale())}return C=j.currency.symbol,A=j.abbreviations,P=j.delimiters.decimal,j.delimiters.thousands==="."?T="\\.":T=j.delimiters.thousands,I=b.match(/^[^\d]+/),I!==null&&(b=b.substr(1),I[0]!==C)||(I=b.match(/[^\d]+$/),I!==null&&(b=b.slice(0,-1),I[0]!==A.thousand&&I[0]!==A.million&&I[0]!==A.billion&&I[0]!==A.trillion))?!1:(F=new RegExp(T+"{2}"),b.match(/[^\d.,]/g)?!1:(O=b.split(P),O.length>2?!1:O.length<2?!!O[0].match(/^\d+.*\d$/)&&!O[0].match(F):O[0].length===1?!!O[0].match(/^\d+$/)&&!O[0].match(F)&&!!O[1].match(/^\d+$/):!!O[0].match(/^\d+.*\d$/)&&!O[0].match(F)&&!!O[1].match(/^\d+$/)))},a.fn=S.prototype={clone:function(){return a(this)},format:function(b,$){var P=this._value,T=b||_.defaultFormat,C,O,A;if($=$||Math.round,P===0&&_.zeroFormat!==null)O=_.zeroFormat;else if(P===null&&_.nullFormat!==null)O=_.nullFormat;else{for(C in f)if(T.match(f[C].regexps.format)){A=f[C].format;break}A=A||a._.numberToFormat,O=A(P,T,$)}return O},value:function(){return this._value},input:function(){return this._input},set:function(b){return this._value=Number(b),this},add:function(b){var $=s.correctionFactor.call(null,this._value,b);function P(T,C,O,A){return T+Math.round($*C)}return this._value=s.reduce([this._value,b],P,0)/$,this},subtract:function(b){var $=s.correctionFactor.call(null,this._value,b);function P(T,C,O,A){return T-Math.round($*C)}return this._value=s.reduce([b],P,Math.round(this._value*$))/$,this},multiply:function(b){function $(P,T,C,O){var A=s.correctionFactor(P,T);return Math.round(P*A)*Math.round(T*A)/Math.round(A*A)}return this._value=s.reduce([this._value,b],$,1),this},divide:function(b){function $(P,T,C,O){var A=s.correctionFactor(P,T);return Math.round(P*A)/Math.round(T*A)}return this._value=s.reduce([this._value,b],$),this},difference:function(b){return Math.abs(a(this._value).subtract(b).value())}},a.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(b){var $=b%10;return~~(b%100/10)===1?"th":$===1?"st":$===2?"nd":$===3?"rd":"th"},currency:{symbol:"$"}}),function(){a.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(b,$,P){var T=a._.includes($," BPS")?" ":"",C;return b=b*1e4,$=$.replace(/\s?BPS/,""),C=a._.numberToFormat(b,$,P),a._.includes(C,")")?(C=C.split(""),C.splice(-1,0,T+"BPS"),C=C.join("")):C=C+T+"BPS",C},unformat:function(b){return+(a._.stringToNumber(b)*1e-4).toFixed(15)}})}(),function(){var b={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},$={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},P=b.suffixes.concat($.suffixes.filter(function(C){return b.suffixes.indexOf(C)<0})),T=P.join("|");T="("+T.replace("B","B(?!PS)")+")",a.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(T)},format:function(C,O,A){var F,j=a._.includes(O,"ib")?$:b,I=a._.includes(O," b")||a._.includes(O," ib")?" ":"",M,L,U;for(O=O.replace(/\s?i?b/,""),M=0;M<=j.suffixes.length;M++)if(L=Math.pow(j.base,M),U=Math.pow(j.base,M+1),C===null||C===0||C>=L&&C0&&(C=C/L);break}return F=a._.numberToFormat(C,O,A),F+I},unformat:function(C){var O=a._.stringToNumber(C),A,F;if(O){for(A=b.suffixes.length-1;A>=0;A--){if(a._.includes(C,b.suffixes[A])){F=Math.pow(b.base,A);break}if(a._.includes(C,$.suffixes[A])){F=Math.pow($.base,A);break}}O*=F||1}return O}})}(),function(){a.register("format","currency",{regexps:{format:/(\$)/},format:function(b,$,P){var T=a.locales[a.options.currentLocale],C={before:$.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:$.match(/([\+|\-|\)|\s|\$]*)$/)[0]},O,A,F;for($=$.replace(/\s?\$\s?/,""),O=a._.numberToFormat(b,$,P),b>=0?(C.before=C.before.replace(/[\-\(]/,""),C.after=C.after.replace(/[\-\)]/,"")):b<0&&!a._.includes(C.before,"-")&&!a._.includes(C.before,"(")&&(C.before="-"+C.before),F=0;F=0;F--)switch(A=C.after[F],A){case"$":O=F===C.after.length-1?O+T.currency.symbol:a._.insert(O,T.currency.symbol,-(C.after.length-(1+F)));break;case" ":O=F===C.after.length-1?O+" ":a._.insert(O," ",-(C.after.length-(1+F)+T.currency.symbol.length-1));break}return O}})}(),function(){a.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(b,$,P){var T,C=typeof b=="number"&&!a._.isNaN(b)?b.toExponential():"0e+0",O=C.split("e");return $=$.replace(/e[\+|\-]{1}0/,""),T=a._.numberToFormat(Number(O[0]),$,P),T+"e"+O[1]},unformat:function(b){var $=a._.includes(b,"e+")?b.split("e+"):b.split("e-"),P=Number($[0]),T=Number($[1]);T=a._.includes(b,"e-")?T*=-1:T;function C(O,A,F,j){var I=a._.correctionFactor(O,A),M=O*I*(A*I)/(I*I);return M}return a._.reduce([P,Math.pow(10,T)],C,1)}})}(),function(){a.register("format","ordinal",{regexps:{format:/(o)/},format:function(b,$,P){var T=a.locales[a.options.currentLocale],C,O=a._.includes($," o")?" ":"";return $=$.replace(/\s?o/,""),O+=T.ordinal(b),C=a._.numberToFormat(b,$,P),C+O}})}(),function(){a.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(b,$,P){var T=a._.includes($," %")?" ":"",C;return a.options.scalePercentBy100&&(b=b*100),$=$.replace(/\s?\%/,""),C=a._.numberToFormat(b,$,P),a._.includes(C,")")?(C=C.split(""),C.splice(-1,0,T+"%"),C=C.join("")):C=C+T+"%",C},unformat:function(b){var $=a._.stringToNumber(b);return a.options.scalePercentBy100?$*.01:$}})}(),function(){a.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(b,$,P){var T=Math.floor(b/60/60),C=Math.floor((b-T*60*60)/60),O=Math.round(b-T*60*60-C*60);return T+":"+(C<10?"0"+C:C)+":"+(O<10?"0"+O:O)},unformat:function(b){var $=b.split(":"),P=0;return $.length===3?(P=P+Number($[0])*60*60,P=P+Number($[1])*60,P=P+Number($[2])):$.length===2&&(P=P+Number($[0])*60,P=P+Number($[1])),Number(P)}})}(),a})})(numeral);var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$f=Object.prototype,hasOwnProperty$d=objectProto$f.hasOwnProperty,nativeObjectToString$1=objectProto$f.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(o){var a=hasOwnProperty$d.call(o,symToStringTag$1),s=o[symToStringTag$1];try{o[symToStringTag$1]=void 0;var c=!0}catch(d){}var f=nativeObjectToString$1.call(o);return c&&(a?o[symToStringTag$1]=s:delete o[symToStringTag$1]),f}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString$1(o){return nativeObjectToString.call(o)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(o){return o==null?o===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(o)?getRawTag(o):objectToString$1(o)}function isObjectLike$1(o){return o!=null&&typeof o=="object"}function arrayMap(o,a){for(var s=-1,c=o==null?0:o.length,f=Array(c);++s0){if(++a>=HOT_COUNT)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}function constant(o){return function(){return o}}var defineProperty=function(){try{var o=getNative(Object,"defineProperty");return o({},"",{}),o}catch(a){}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(o,a){return defineProperty$1(o,"toString",{configurable:!0,enumerable:!1,value:constant(a),writable:!0})}:identity$1;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach(o,a){for(var s=-1,c=o==null?0:o.length;++s-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(o,a){var s=typeof o;return a=a==null?MAX_SAFE_INTEGER$1:a,!!a&&(s=="number"||s!="symbol"&&reIsUint.test(o))&&o>-1&&o%1==0&&o-1&&o%1==0&&o<=MAX_SAFE_INTEGER}function isArrayLike(o){return o!=null&&isLength(o.length)&&!isFunction$2(o)}function isIterateeCall(o,a,s){if(!isObject$3(s))return!1;var c=typeof a;return(c=="number"?isArrayLike(s)&&isIndex(a,s.length):c=="string"&&a in s)?eq(s[a],o):!1}function createAssigner(o){return baseRest(function(a,s){var c=-1,f=s.length,d=f>1?s[f-1]:void 0,y=f>2?s[2]:void 0;for(d=o.length>3&&typeof d=="function"?(f--,d):void 0,y&&isIterateeCall(s[0],s[1],y)&&(d=f<3?void 0:d,f=1),a=Object(a);++c-1}function listCacheSet(o,a){var s=this.__data__,c=assocIndexOf(s,o);return c<0?(++this.size,s.push([o,a])):s[c][1]=a,this}function ListCache(o){var a=-1,s=o==null?0:o.length;for(this.clear();++a0&&s(_)?a>1?baseFlatten(_,a-1,s,c,f):arrayPush(f,_):c||(f[f.length]=_)}return f}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$4=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$4=objectProto$4.hasOwnProperty,objectCtorString$1=funcToString.call(Object);function isPlainObject$4(o){if(!isObjectLike$1(o)||baseGetTag(o)!=objectTag$3)return!1;var a=getPrototype$1(o);if(a===null)return!0;var s=hasOwnProperty$4.call(a,"constructor")&&a.constructor;return typeof s=="function"&&s instanceof s&&funcToString.call(s)==objectCtorString$1}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(o){var a=this.__data__,s=a.delete(o);return this.size=a.size,s}function stackGet(o){return this.__data__.get(o)}function stackHas(o){return this.__data__.has(o)}var LARGE_ARRAY_SIZE$1=200;function stackSet(o,a){var s=this.__data__;if(s instanceof ListCache){var c=s.__data__;if(!Map$2||c.length_))return!1;var b=d.get(o),$=d.get(a);if(b&&$)return b==a&&$==o;var P=-1,T=!0,C=s&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(d.set(o,a),d.set(a,o);++P<_;){var O=o[P],A=a[P];if(c)var F=y?c(A,O,P,a,o,d):c(O,A,P,o,a,d);if(F!==void 0){if(F)continue;T=!1;break}if(C){if(!arraySome(a,function(j,I){if(!cacheHas(C,I)&&(O===j||f(O,j,s,c,d)))return C.push(I)})){T=!1;break}}else if(!(O===A||f(O,A,s,c,d))){T=!1;break}}return d.delete(o),d.delete(a),T}function mapToArray(o){var a=-1,s=Array(o.size);return o.forEach(function(c,f){s[++a]=[f,c]}),s}function setToArray(o){var a=-1,s=Array(o.size);return o.forEach(function(c){s[++a]=c}),s}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(o,a,s,c,f,d,y){switch(s){case dataViewTag:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case arrayBufferTag:return!(o.byteLength!=a.byteLength||!d(new Uint8Array$2(o),new Uint8Array$2(a)));case boolTag:case dateTag:case numberTag:return eq(+o,+a);case errorTag:return o.name==a.name&&o.message==a.message;case regexpTag:case stringTag$1:return o==a+"";case mapTag:var _=mapToArray;case setTag:var S=c&COMPARE_PARTIAL_FLAG$2;if(_||(_=setToArray),o.size!=a.size&&!S)return!1;var b=y.get(o);if(b)return b==a;c|=COMPARE_UNORDERED_FLAG,y.set(o,a);var $=equalArrays(_(o),_(a),c,f,d,y);return y.delete(o),$;case symbolTag:if(symbolValueOf)return symbolValueOf.call(o)==symbolValueOf.call(a)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects(o,a,s,c,f,d){var y=s&COMPARE_PARTIAL_FLAG$1,_=getAllKeys(o),S=_.length,b=getAllKeys(a),$=b.length;if(S!=$&&!y)return!1;for(var P=S;P--;){var T=_[P];if(!(y?T in a:hasOwnProperty$2.call(a,T)))return!1}var C=d.get(o),O=d.get(a);if(C&&O)return C==a&&O==o;var A=!0;d.set(o,a),d.set(a,o);for(var F=y;++P=120&&$.length>=120)?new SetCache(y&&$):void 0}$=o[0];var P=-1,T=_[0];e:for(;++P=LARGE_ARRAY_SIZE){var b=a?null:createSet$1(o);if(b)return setToArray(b);y=!1,f=cacheHas,S=new SetCache}else S=a?[]:_;e:for(;++c{var c,f;const s=(f=(c=o[a])==null?void 0:c.format)!=null?f:null;if(s&&typeof s=="function"&&(o[a]=o[a].format(DATE_TIME_FORMAT)),isString$3(a)){const d=o[a];d&&(o[a]=isString$3(d)?d.trim():JSON.stringify(d))}isObject$3(o[a])&&formatRequestDate(o[a])})}function joinTimestamp(o,a=!1){if(!o)return a?"":{};const s=new Date().getTime();return a?`?_t=${s}`:{_t:s}}function setObjToUrlParams(o,a){const s=Object.keys(a).map(c=>`${c}=${encodeURIComponent(a[c])}`).join("&");return s?`${o}?${s}`:o}function deepMerge(o,a,s="replace"){return a?o?mergeWith$1({},o,a,(c,f)=>{if(isArray$8(f)&&isArray$8(c))switch(s){case"union":return unionWith$1(c,f,isEqual);case"intersection":return intersectionWith$1(c,f,isEqual);case"concat":return c.concat(f);case"replace":return f;default:throw new Error(`Unknown merge array strategy: ${s}`)}if(isObject$3(f)&&isObject$3(c))return deepMerge(c,f,s)}):a:o}const getItem$1=o=>{let a=null;try{const s=window.localStorage.getItem(o);s!==null&&s!=="undefined"&&(a=JSON.parse(s))}catch(s){}return a},setItem=(o,a)=>{localStorage.setItem(o,JSON.stringify(a))},removeItem=o=>{localStorage.removeItem(o)},createStoreImpl=o=>{let a;const s=new Set,c=($,P)=>{const T=typeof $=="function"?$(a):$;if(!Object.is(T,a)){const C=a;a=(P!=null?P:typeof T!="object"||T===null)?T:Object.assign({},a,T),s.forEach(O=>O(a,C))}},f=()=>a,S={setState:c,getState:f,getInitialState:()=>b,subscribe:$=>(s.add($),()=>s.delete($)),destroy:()=>{s.clear()}},b=a=o(c,f,S);return S},createStore$2=o=>o?createStoreImpl(o):createStoreImpl,{useDebugValue}=React$4,{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;const identity=o=>o;function useStore(o,a=identity,s){const c=useSyncExternalStoreWithSelector(o.subscribe,o.getState,o.getServerState||o.getInitialState,a,s);return useDebugValue(c),c}const createImpl=o=>{const a=typeof o=="function"?createStore$2(o):o,s=(c,f)=>useStore(a,c,f);return Object.assign(s,a),s},create=o=>o?createImpl(o):createImpl;var BasicStatus=(o=>(o[o.DISABLE=0]="DISABLE",o[o.ENABLE=1]="ENABLE",o))(BasicStatus||{}),PermissionType=(o=>(o[o.CATALOGUE=0]="CATALOGUE",o[o.MENU=1]="MENU",o[o.BUTTON=2]="BUTTON",o))(PermissionType||{}),StorageEnum$1=(o=>(o.User="user",o.Token="token",o.Settings="settings",o.I18N="i18nextLng",o))(StorageEnum$1||{}),ThemeMode=(o=>(o.Light="light",o.Dark="dark",o))(ThemeMode||{}),ThemeLayout=(o=>(o.Vertical="vertical",o.Horizontal="horizontal",o.Mini="mini",o))(ThemeLayout||{}),ThemeColorPresets=(o=>(o.Default="default",o.Cyan="cyan",o.Purple="purple",o.Blue="blue",o.Orange="orange",o.Red="red",o))(ThemeColorPresets||{});const useSettingStore=create(o=>({settings:getItem$1(StorageEnum$1.Settings)||{themeColorPresets:ThemeColorPresets.Default,themeMode:ThemeMode.Light,themeLayout:ThemeLayout.Vertical,themeStretch:!1,breadCrumb:!0,multiTab:!0,unfold:!0},actions:{setSettings:a=>{o({settings:a}),setItem(StorageEnum$1.Settings,a)},clearSettings:()=>{removeItem(StorageEnum$1.Settings)}}})),useSettings=()=>useSettingStore(o=>o.settings),useSettingActions=()=>useSettingStore(o=>o.actions),useStyles$8=createStyles(({token:o,css:a})=>({"app-logo":{display:"flex",alignItems:"center",height:"48px",paddingLeft:"24px",cursor:"pointer",transition:"all 0.3s ease"},"logo-img":{display:"block",width:"32px",height:"32px"},"logo-name":{display:"block",width:"120px",height:"15px"},hidden:{display:"none"},container:{textAlign:"center"},text:{color:o.colorPrimary,fontSize:"20px",fontWeight:"bold",lineHeight:"32px",animation:"showup 0.6s linear forwards","@keyframes showup":{"0%":{filter:"blur(10px)",letterSpacing:"-1px"},"100%":{filter:"blur(0px)",letterSpacing:"2px"}}}})),AppLogo=()=>{const o=useTheme(),{styles:a}=useStyles$8(),c=useSettings().unfold;return jsxRuntimeExports.jsx("div",{className:classNames("anticon",a["app-logo"]),children:jsxRuntimeExports.jsxs(Space,{children:[jsxRuntimeExports.jsx(SvgIcon,{style:{color:o.colorPrimary},name:"logo",size:30}),jsxRuntimeExports.jsx("div",{className:a.container,children:c?"":jsxRuntimeExports.jsx("span",{className:a.text,children:"Beata Admin"})})]})})};var __assign=function(){return __assign=Object.assign||function(a){for(var s,c=1,f=arguments.length;c0&&d[d.length-1])&&(b[0]===6||b[0]===2)){s=0;continue}if(b[0]===3&&(!d||b[1]>d[0]&&b[1]0)&&!(f=c.next()).done;)d.push(f.value)}catch(_){y={error:_}}finally{try{f&&!f.done&&(s=c.return)&&s.call(c)}finally{if(y)throw y.error}}return d}function __spreadArray(o,a,s){if(s||arguments.length===2)for(var c=0,f=a.length,d;c=j&&!H||H==="t"?(F+=T.abbreviations.trillion,b=b/j):G=L&&!H||H==="b"?(F+=T.abbreviations.billion,b=b/L):G=M&&!H||H==="m"?(F+=T.abbreviations.million,b=b/M):(G=I&&!H||H==="k")&&(F+=T.abbreviations.thousand,b=b/I)),a._.includes($,"[.]")&&(O=!0,$=$.replace("[.]",".")),X=b.toString().split(".")[0],W=$.split(".")[1],ie=$.indexOf(","),A=($.split(".")[0].split(",")[0].match(/0/g)||[]).length,W?(a._.includes(W,"[")?(W=W.replace("]",""),W=W.split("["),U=a._.toFixed(b,W[0].length+W[1].length,P,W[1].length)):U=a._.toFixed(b,W.length,P),X=U.split(".")[0],a._.includes(U,".")?U=T.delimiters.decimal+U.split(".")[1]:U="",O&&Number(U.slice(1))===0&&(U="")):X=a._.toFixed(b,0,P),F&&!H&&Number(X)>=1e3&&F!==T.abbreviations.trillion)switch(X=String(Number(X)/1e3),F){case T.abbreviations.thousand:F=T.abbreviations.million;break;case T.abbreviations.million:F=T.abbreviations.billion;break;case T.abbreviations.billion:F=T.abbreviations.trillion;break}if(a._.includes(X,"-")&&(X=X.slice(1),z=!0),X.length0;de--)X="0"+X;return ie>-1&&(X=X.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+T.delimiters.thousands)),$.indexOf(".")===0&&(X=""),ee=X+U+(F||""),C?ee=(C&&z?"(":"")+ee+(C&&z?")":""):K>=0?ee=K===0?(z?"-":"+")+ee:ee+(z?"-":"+"):z&&(ee="-"+ee),ee},stringToNumber:function(b){var $=d[_.currentLocale],P=b,T={thousand:3,million:6,billion:9,trillion:12},C,O,A;if(_.zeroFormat&&b===_.zeroFormat)O=0;else if(_.nullFormat&&b===_.nullFormat||!b.replace(/[^0-9]+/g,"").length)O=null;else{O=1,$.delimiters.decimal!=="."&&(b=b.replace(/\./g,"").replace($.delimiters.decimal,"."));for(C in T)if(A=new RegExp("[^a-zA-Z]"+$.abbreviations[C]+"(?:\\)|(\\"+$.currency.symbol+")?(?:\\))?)?$"),P.match(A)){O*=Math.pow(10,T[C]);break}O*=(b.split("-").length+Math.min(b.split("(").length-1,b.split(")").length-1))%2?1:-1,b=b.replace(/[^0-9\.]+/g,""),O*=Number(b)}return O},isNaN:function(b){return typeof b=="number"&&isNaN(b)},includes:function(b,$){return b.indexOf($)!==-1},insert:function(b,$,P){return b.slice(0,P)+$+b.slice(P)},reduce:function(b,$){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof $!="function")throw new TypeError($+" is not a function");var P=Object(b),T=P.length>>>0,C=0,O;if(arguments.length===3)O=arguments[2];else{for(;C=T)throw new TypeError("Reduce of empty array with no initial value");O=P[C++]}for(;CT?$:T},1)},toFixed:function(b,$,P,T){var C=b.toString().split("."),O=$-(T||0),A,F,j,L;return C.length===2?A=Math.min(Math.max(C[1].length,O),$):A=O,j=Math.pow(10,A),L=(P(b+"e+"+A)/j).toFixed(A),T>$-A&&(F=new RegExp("\\.?0{1,"+(T-($-A))+"}$"),L=L.replace(F,"")),L}},a.options=_,a.formats=f,a.locales=d,a.locale=function(b){return b&&(_.currentLocale=b.toLowerCase()),_.currentLocale},a.localeData=function(b){if(!b)return d[_.currentLocale];if(b=b.toLowerCase(),!d[b])throw new Error("Unknown locale : "+b);return d[b]},a.reset=function(){for(var b in y)_[b]=y[b]},a.zeroFormat=function(b){_.zeroFormat=typeof b=="string"?b:null},a.nullFormat=function(b){_.nullFormat=typeof b=="string"?b:null},a.defaultFormat=function(b){_.defaultFormat=typeof b=="string"?b:"0.0"},a.register=function(b,$,P){if($=$.toLowerCase(),this[b+"s"][$])throw new TypeError($+" "+b+" already registered.");return this[b+"s"][$]=P,P},a.validate=function(b,$){var P,T,C,O,A,F,j,L;if(typeof b!="string"&&(b+=""),b=b.trim(),b.match(/^\d+$/))return!0;if(b==="")return!1;try{j=a.localeData($)}catch(M){j=a.localeData(a.locale())}return C=j.currency.symbol,A=j.abbreviations,P=j.delimiters.decimal,j.delimiters.thousands==="."?T="\\.":T=j.delimiters.thousands,L=b.match(/^[^\d]+/),L!==null&&(b=b.substr(1),L[0]!==C)||(L=b.match(/[^\d]+$/),L!==null&&(b=b.slice(0,-1),L[0]!==A.thousand&&L[0]!==A.million&&L[0]!==A.billion&&L[0]!==A.trillion))?!1:(F=new RegExp(T+"{2}"),b.match(/[^\d.,]/g)?!1:(O=b.split(P),O.length>2?!1:O.length<2?!!O[0].match(/^\d+.*\d$/)&&!O[0].match(F):O[0].length===1?!!O[0].match(/^\d+$/)&&!O[0].match(F)&&!!O[1].match(/^\d+$/):!!O[0].match(/^\d+.*\d$/)&&!O[0].match(F)&&!!O[1].match(/^\d+$/)))},a.fn=S.prototype={clone:function(){return a(this)},format:function(b,$){var P=this._value,T=b||_.defaultFormat,C,O,A;if($=$||Math.round,P===0&&_.zeroFormat!==null)O=_.zeroFormat;else if(P===null&&_.nullFormat!==null)O=_.nullFormat;else{for(C in f)if(T.match(f[C].regexps.format)){A=f[C].format;break}A=A||a._.numberToFormat,O=A(P,T,$)}return O},value:function(){return this._value},input:function(){return this._input},set:function(b){return this._value=Number(b),this},add:function(b){var $=s.correctionFactor.call(null,this._value,b);function P(T,C,O,A){return T+Math.round($*C)}return this._value=s.reduce([this._value,b],P,0)/$,this},subtract:function(b){var $=s.correctionFactor.call(null,this._value,b);function P(T,C,O,A){return T-Math.round($*C)}return this._value=s.reduce([b],P,Math.round(this._value*$))/$,this},multiply:function(b){function $(P,T,C,O){var A=s.correctionFactor(P,T);return Math.round(P*A)*Math.round(T*A)/Math.round(A*A)}return this._value=s.reduce([this._value,b],$,1),this},divide:function(b){function $(P,T,C,O){var A=s.correctionFactor(P,T);return Math.round(P*A)/Math.round(T*A)}return this._value=s.reduce([this._value,b],$),this},difference:function(b){return Math.abs(a(this._value).subtract(b).value())}},a.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(b){var $=b%10;return~~(b%100/10)===1?"th":$===1?"st":$===2?"nd":$===3?"rd":"th"},currency:{symbol:"$"}}),function(){a.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(b,$,P){var T=a._.includes($," BPS")?" ":"",C;return b=b*1e4,$=$.replace(/\s?BPS/,""),C=a._.numberToFormat(b,$,P),a._.includes(C,")")?(C=C.split(""),C.splice(-1,0,T+"BPS"),C=C.join("")):C=C+T+"BPS",C},unformat:function(b){return+(a._.stringToNumber(b)*1e-4).toFixed(15)}})}(),function(){var b={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},$={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},P=b.suffixes.concat($.suffixes.filter(function(C){return b.suffixes.indexOf(C)<0})),T=P.join("|");T="("+T.replace("B","B(?!PS)")+")",a.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(T)},format:function(C,O,A){var F,j=a._.includes(O,"ib")?$:b,L=a._.includes(O," b")||a._.includes(O," ib")?" ":"",M,I,U;for(O=O.replace(/\s?i?b/,""),M=0;M<=j.suffixes.length;M++)if(I=Math.pow(j.base,M),U=Math.pow(j.base,M+1),C===null||C===0||C>=I&&C0&&(C=C/I);break}return F=a._.numberToFormat(C,O,A),F+L},unformat:function(C){var O=a._.stringToNumber(C),A,F;if(O){for(A=b.suffixes.length-1;A>=0;A--){if(a._.includes(C,b.suffixes[A])){F=Math.pow(b.base,A);break}if(a._.includes(C,$.suffixes[A])){F=Math.pow($.base,A);break}}O*=F||1}return O}})}(),function(){a.register("format","currency",{regexps:{format:/(\$)/},format:function(b,$,P){var T=a.locales[a.options.currentLocale],C={before:$.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:$.match(/([\+|\-|\)|\s|\$]*)$/)[0]},O,A,F;for($=$.replace(/\s?\$\s?/,""),O=a._.numberToFormat(b,$,P),b>=0?(C.before=C.before.replace(/[\-\(]/,""),C.after=C.after.replace(/[\-\)]/,"")):b<0&&!a._.includes(C.before,"-")&&!a._.includes(C.before,"(")&&(C.before="-"+C.before),F=0;F=0;F--)switch(A=C.after[F],A){case"$":O=F===C.after.length-1?O+T.currency.symbol:a._.insert(O,T.currency.symbol,-(C.after.length-(1+F)));break;case" ":O=F===C.after.length-1?O+" ":a._.insert(O," ",-(C.after.length-(1+F)+T.currency.symbol.length-1));break}return O}})}(),function(){a.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(b,$,P){var T,C=typeof b=="number"&&!a._.isNaN(b)?b.toExponential():"0e+0",O=C.split("e");return $=$.replace(/e[\+|\-]{1}0/,""),T=a._.numberToFormat(Number(O[0]),$,P),T+"e"+O[1]},unformat:function(b){var $=a._.includes(b,"e+")?b.split("e+"):b.split("e-"),P=Number($[0]),T=Number($[1]);T=a._.includes(b,"e-")?T*=-1:T;function C(O,A,F,j){var L=a._.correctionFactor(O,A),M=O*L*(A*L)/(L*L);return M}return a._.reduce([P,Math.pow(10,T)],C,1)}})}(),function(){a.register("format","ordinal",{regexps:{format:/(o)/},format:function(b,$,P){var T=a.locales[a.options.currentLocale],C,O=a._.includes($," o")?" ":"";return $=$.replace(/\s?o/,""),O+=T.ordinal(b),C=a._.numberToFormat(b,$,P),C+O}})}(),function(){a.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(b,$,P){var T=a._.includes($," %")?" ":"",C;return a.options.scalePercentBy100&&(b=b*100),$=$.replace(/\s?\%/,""),C=a._.numberToFormat(b,$,P),a._.includes(C,")")?(C=C.split(""),C.splice(-1,0,T+"%"),C=C.join("")):C=C+T+"%",C},unformat:function(b){var $=a._.stringToNumber(b);return a.options.scalePercentBy100?$*.01:$}})}(),function(){a.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(b,$,P){var T=Math.floor(b/60/60),C=Math.floor((b-T*60*60)/60),O=Math.round(b-T*60*60-C*60);return T+":"+(C<10?"0"+C:C)+":"+(O<10?"0"+O:O)},unformat:function(b){var $=b.split(":"),P=0;return $.length===3?(P=P+Number($[0])*60*60,P=P+Number($[1])*60,P=P+Number($[2])):$.length===2&&(P=P+Number($[0])*60,P=P+Number($[1])),Number(P)}})}(),a})})(numeral);var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$f=Object.prototype,hasOwnProperty$d=objectProto$f.hasOwnProperty,nativeObjectToString$1=objectProto$f.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(o){var a=hasOwnProperty$d.call(o,symToStringTag$1),s=o[symToStringTag$1];try{o[symToStringTag$1]=void 0;var c=!0}catch(d){}var f=nativeObjectToString$1.call(o);return c&&(a?o[symToStringTag$1]=s:delete o[symToStringTag$1]),f}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString$1(o){return nativeObjectToString.call(o)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(o){return o==null?o===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(o)?getRawTag(o):objectToString$1(o)}function isObjectLike$1(o){return o!=null&&typeof o=="object"}function arrayMap(o,a){for(var s=-1,c=o==null?0:o.length,f=Array(c);++s0){if(++a>=HOT_COUNT)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}function constant(o){return function(){return o}}var defineProperty=function(){try{var o=getNative(Object,"defineProperty");return o({},"",{}),o}catch(a){}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(o,a){return defineProperty$1(o,"toString",{configurable:!0,enumerable:!1,value:constant(a),writable:!0})}:identity$1;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach(o,a){for(var s=-1,c=o==null?0:o.length;++s-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(o,a){var s=typeof o;return a=a==null?MAX_SAFE_INTEGER$1:a,!!a&&(s=="number"||s!="symbol"&&reIsUint.test(o))&&o>-1&&o%1==0&&o-1&&o%1==0&&o<=MAX_SAFE_INTEGER}function isArrayLike(o){return o!=null&&isLength(o.length)&&!isFunction$2(o)}function isIterateeCall(o,a,s){if(!isObject$3(s))return!1;var c=typeof a;return(c=="number"?isArrayLike(s)&&isIndex(a,s.length):c=="string"&&a in s)?eq(s[a],o):!1}function createAssigner(o){return baseRest(function(a,s){var c=-1,f=s.length,d=f>1?s[f-1]:void 0,y=f>2?s[2]:void 0;for(d=o.length>3&&typeof d=="function"?(f--,d):void 0,y&&isIterateeCall(s[0],s[1],y)&&(d=f<3?void 0:d,f=1),a=Object(a);++c-1}function listCacheSet(o,a){var s=this.__data__,c=assocIndexOf(s,o);return c<0?(++this.size,s.push([o,a])):s[c][1]=a,this}function ListCache(o){var a=-1,s=o==null?0:o.length;for(this.clear();++a0&&s(_)?a>1?baseFlatten(_,a-1,s,c,f):arrayPush(f,_):c||(f[f.length]=_)}return f}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$4=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$4=objectProto$4.hasOwnProperty,objectCtorString$1=funcToString.call(Object);function isPlainObject$4(o){if(!isObjectLike$1(o)||baseGetTag(o)!=objectTag$3)return!1;var a=getPrototype$1(o);if(a===null)return!0;var s=hasOwnProperty$4.call(a,"constructor")&&a.constructor;return typeof s=="function"&&s instanceof s&&funcToString.call(s)==objectCtorString$1}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(o){var a=this.__data__,s=a.delete(o);return this.size=a.size,s}function stackGet(o){return this.__data__.get(o)}function stackHas(o){return this.__data__.has(o)}var LARGE_ARRAY_SIZE$1=200;function stackSet(o,a){var s=this.__data__;if(s instanceof ListCache){var c=s.__data__;if(!Map$2||c.length_))return!1;var b=d.get(o),$=d.get(a);if(b&&$)return b==a&&$==o;var P=-1,T=!0,C=s&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(d.set(o,a),d.set(a,o);++P<_;){var O=o[P],A=a[P];if(c)var F=y?c(A,O,P,a,o,d):c(O,A,P,o,a,d);if(F!==void 0){if(F)continue;T=!1;break}if(C){if(!arraySome(a,function(j,L){if(!cacheHas(C,L)&&(O===j||f(O,j,s,c,d)))return C.push(L)})){T=!1;break}}else if(!(O===A||f(O,A,s,c,d))){T=!1;break}}return d.delete(o),d.delete(a),T}function mapToArray(o){var a=-1,s=Array(o.size);return o.forEach(function(c,f){s[++a]=[f,c]}),s}function setToArray(o){var a=-1,s=Array(o.size);return o.forEach(function(c){s[++a]=c}),s}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(o,a,s,c,f,d,y){switch(s){case dataViewTag:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case arrayBufferTag:return!(o.byteLength!=a.byteLength||!d(new Uint8Array$2(o),new Uint8Array$2(a)));case boolTag:case dateTag:case numberTag:return eq(+o,+a);case errorTag:return o.name==a.name&&o.message==a.message;case regexpTag:case stringTag$1:return o==a+"";case mapTag:var _=mapToArray;case setTag:var S=c&COMPARE_PARTIAL_FLAG$2;if(_||(_=setToArray),o.size!=a.size&&!S)return!1;var b=y.get(o);if(b)return b==a;c|=COMPARE_UNORDERED_FLAG,y.set(o,a);var $=equalArrays(_(o),_(a),c,f,d,y);return y.delete(o),$;case symbolTag:if(symbolValueOf)return symbolValueOf.call(o)==symbolValueOf.call(a)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects(o,a,s,c,f,d){var y=s&COMPARE_PARTIAL_FLAG$1,_=getAllKeys(o),S=_.length,b=getAllKeys(a),$=b.length;if(S!=$&&!y)return!1;for(var P=S;P--;){var T=_[P];if(!(y?T in a:hasOwnProperty$2.call(a,T)))return!1}var C=d.get(o),O=d.get(a);if(C&&O)return C==a&&O==o;var A=!0;d.set(o,a),d.set(a,o);for(var F=y;++P=120&&$.length>=120)?new SetCache(y&&$):void 0}$=o[0];var P=-1,T=_[0];e:for(;++P=LARGE_ARRAY_SIZE){var b=a?null:createSet$1(o);if(b)return setToArray(b);y=!1,f=cacheHas,S=new SetCache}else S=a?[]:_;e:for(;++c{var c,f;const s=(f=(c=o[a])==null?void 0:c.format)!=null?f:null;if(s&&typeof s=="function"&&(o[a]=o[a].format(DATE_TIME_FORMAT)),isString$3(a)){const d=o[a];d&&(o[a]=isString$3(d)?d.trim():JSON.stringify(d))}isObject$3(o[a])&&formatRequestDate(o[a])})}function joinTimestamp(o,a=!1){if(!o)return a?"":{};const s=new Date().getTime();return a?`?_t=${s}`:{_t:s}}function setObjToUrlParams(o,a){const s=Object.keys(a).map(c=>`${c}=${encodeURIComponent(a[c])}`).join("&");return s?`${o}?${s}`:o}function deepMerge(o,a,s="replace"){return a?o?mergeWith$1({},o,a,(c,f)=>{if(isArray$8(f)&&isArray$8(c))switch(s){case"union":return unionWith$1(c,f,isEqual);case"intersection":return intersectionWith$1(c,f,isEqual);case"concat":return c.concat(f);case"replace":return f;default:throw new Error(`Unknown merge array strategy: ${s}`)}if(isObject$3(f)&&isObject$3(c))return deepMerge(c,f,s)}):a:o}const getItem$1=o=>{let a=null;try{const s=window.localStorage.getItem(o);s!==null&&s!=="undefined"&&(a=JSON.parse(s))}catch(s){}return a},setItem=(o,a)=>{localStorage.setItem(o,JSON.stringify(a))},removeItem=o=>{localStorage.removeItem(o)},createStoreImpl=o=>{let a;const s=new Set,c=($,P)=>{const T=typeof $=="function"?$(a):$;if(!Object.is(T,a)){const C=a;a=(P!=null?P:typeof T!="object"||T===null)?T:Object.assign({},a,T),s.forEach(O=>O(a,C))}},f=()=>a,S={setState:c,getState:f,getInitialState:()=>b,subscribe:$=>(s.add($),()=>s.delete($)),destroy:()=>{s.clear()}},b=a=o(c,f,S);return S},createStore$2=o=>o?createStoreImpl(o):createStoreImpl,{useDebugValue}=React$4,{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;const identity=o=>o;function useStore(o,a=identity,s){const c=useSyncExternalStoreWithSelector(o.subscribe,o.getState,o.getServerState||o.getInitialState,a,s);return useDebugValue(c),c}const createImpl=o=>{const a=typeof o=="function"?createStore$2(o):o,s=(c,f)=>useStore(a,c,f);return Object.assign(s,a),s},create=o=>o?createImpl(o):createImpl;var BasicStatus=(o=>(o[o.DISABLE=0]="DISABLE",o[o.ENABLE=1]="ENABLE",o))(BasicStatus||{}),PermissionType=(o=>(o[o.CATALOGUE=0]="CATALOGUE",o[o.MENU=1]="MENU",o[o.BUTTON=2]="BUTTON",o))(PermissionType||{}),StorageEnum$1=(o=>(o.User="user",o.Token="token",o.Settings="settings",o.I18N="i18nextLng",o))(StorageEnum$1||{}),ThemeMode=(o=>(o.Light="light",o.Dark="dark",o))(ThemeMode||{}),ThemeLayout=(o=>(o.Vertical="vertical",o.Horizontal="horizontal",o.Mini="mini",o))(ThemeLayout||{}),ThemeColorPresets=(o=>(o.Default="default",o.Cyan="cyan",o.Purple="purple",o.Blue="blue",o.Orange="orange",o.Red="red",o))(ThemeColorPresets||{});const useSettingStore=create(o=>({settings:getItem$1(StorageEnum$1.Settings)||{themeColorPresets:ThemeColorPresets.Default,themeMode:ThemeMode.Light,themeLayout:ThemeLayout.Vertical,themeStretch:!1,breadCrumb:!0,multiTab:!0,unfold:!0},actions:{setSettings:a=>{o({settings:a}),setItem(StorageEnum$1.Settings,a)},clearSettings:()=>{removeItem(StorageEnum$1.Settings)}}})),useSettings=()=>useSettingStore(o=>o.settings),useSettingActions=()=>useSettingStore(o=>o.actions),useStyles$9=createStyles(({token:o,css:a})=>({"app-logo":{display:"flex",alignItems:"center",height:"48px",paddingLeft:"24px",cursor:"pointer",transition:"all 0.3s ease"},"logo-img":{display:"block",width:"32px",height:"32px"},"logo-name":{display:"block",width:"120px",height:"15px"},hidden:{display:"none"},container:{textAlign:"center"},text:{color:o.colorPrimary,fontSize:"20px",fontWeight:"bold",lineHeight:"32px",animation:"showup 0.6s linear forwards","@keyframes showup":{"0%":{filter:"blur(10px)",letterSpacing:"-1px"},"100%":{filter:"blur(0px)",letterSpacing:"2px"}}}})),AppLogo=()=>{const o=useTheme(),{styles:a}=useStyles$9(),c=useSettings().unfold;return jsxRuntimeExports.jsx("div",{className:classNames("anticon",a["app-logo"]),children:jsxRuntimeExports.jsxs(Space,{children:[jsxRuntimeExports.jsx(SvgIcon,{style:{color:o.colorPrimary},name:"logo",size:30}),jsxRuntimeExports.jsx("div",{className:a.container,children:c?"":jsxRuntimeExports.jsx("span",{className:a.text,children:"Beata Admin"})})]})})};var __assign=function(){return __assign=Object.assign||function(a){for(var s,c=1,f=arguments.length;c0&&d[d.length-1])&&(b[0]===6||b[0]===2)){s=0;continue}if(b[0]===3&&(!d||b[1]>d[0]&&b[1]0)&&!(f=c.next()).done;)d.push(f.value)}catch(_){y={error:_}}finally{try{f&&!f.done&&(s=c.return)&&s.call(c)}finally{if(y)throw y.error}}return d}function __spreadArray(o,a,s){if(s||arguments.length===2)for(var c=0,f=a.length,d;c{for(const s of a){if(s.path===o||s.fullPath===o)return s;if(s.children){const c=searchRoute(o,s.children);if(c)return c}}return null};function useTitle(){const[o,a]=reactExports.useState("react-admin-design"),{pathname:s}=useLocation();reactExports.useEffect(()=>{const c=searchRoute(s,routeList);a(c==null?void 0:c.meta.title)},[s]),useTitle$1(o)}function DocLink(){return jsxRuntimeExports.jsx(Tooltip,{title:t("文档"),placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",size:"small",onClick:()=>openWindow("https://anyone-yuren.github.io/gbeata-admin-docs"),icon:jsxRuntimeExports.jsx(ReadOutlined,{})})})}function FullScreen(){const[o,{toggleFullscreen:a}]=useFullscreen$1(document.body);return jsxRuntimeExports.jsx(Tooltip,{title:t(o?"退出全屏":"进入全屏"),placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",onClick:a,size:"small",icon:o?jsxRuntimeExports.jsx(FullscreenExitOutlined,{}):jsxRuntimeExports.jsx(FullscreenOutlined,{})})})}function GithubLink(){function o(){openWindow("https://github.com/anyone-yuren/gbeata-react-admin")}return jsxRuntimeExports.jsx(Tooltip,{title:"github",placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",onClick:o,size:"small",icon:jsxRuntimeExports.jsx(GithubOutlined,{})})})}function isArray$6(o){return Array.isArray?Array.isArray(o):getTag(o)==="[object Array]"}const INFINITY=1/0;function baseToString(o){if(typeof o=="string")return o;let a=o+"";return a=="0"&&1/o==-INFINITY?"-0":a}function toString$2(o){return o==null?"":baseToString(o)}function isString$2(o){return typeof o=="string"}function isNumber$2(o){return typeof o=="number"}function isBoolean$3(o){return o===!0||o===!1||isObjectLike(o)&&getTag(o)=="[object Boolean]"}function isObject$2(o){return typeof o=="object"}function isObjectLike(o){return isObject$2(o)&&o!==null}function isDefined(o){return o!=null}function isBlank(o){return!o.trim().length}function getTag(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(o)}const EXTENDED_SEARCH_UNAVAILABLE="Extended search is not available",INCORRECT_INDEX_TYPE="Incorrect 'index' type",LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY=o=>`Invalid value for key ${o}`,PATTERN_LENGTH_TOO_LARGE=o=>`Pattern length exceeds max of ${o}.`,MISSING_KEY_PROPERTY=o=>`Missing ${o} property in key`,INVALID_KEY_WEIGHT_VALUE=o=>`Property 'weight' in key '${o}' must be a positive integer`,hasOwn$2=Object.prototype.hasOwnProperty;class KeyStore{constructor(a){this._keys=[],this._keyMap={};let s=0;a.forEach(c=>{let f=createKey(c);this._keys.push(f),this._keyMap[f.id]=f,s+=f.weight}),this._keys.forEach(c=>{c.weight/=s})}get(a){return this._keyMap[a]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function createKey(o){let a=null,s=null,c=null,f=1,d=null;if(isString$2(o)||isArray$6(o))c=o,a=createKeyPath(o),s=createKeyId(o);else{if(!hasOwn$2.call(o,"name"))throw new Error(MISSING_KEY_PROPERTY("name"));const y=o.name;if(c=y,hasOwn$2.call(o,"weight")&&(f=o.weight,f<=0))throw new Error(INVALID_KEY_WEIGHT_VALUE(y));a=createKeyPath(y),s=createKeyId(y),d=o.getFn}return{path:a,id:s,weight:f,src:c,getFn:d}}function createKeyPath(o){return isArray$6(o)?o:o.split(".")}function createKeyId(o){return isArray$6(o)?o.join("."):o}function get(o,a){let s=[],c=!1;const f=(d,y,_)=>{if(isDefined(d))if(!y[_])s.push(d);else{let S=y[_];const b=d[S];if(!isDefined(b))return;if(_===y.length-1&&(isString$2(b)||isNumber$2(b)||isBoolean$3(b)))s.push(toString$2(b));else if(isArray$6(b)){c=!0;for(let $=0,P=b.length;$o.score===a.score?o.idx{this._keysMap[s.id]=c})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,isString$2(this.docs[0])?this.docs.forEach((a,s)=>{this._addString(a,s)}):this.docs.forEach((a,s)=>{this._addObject(a,s)}),this.norm.clear())}add(a){const s=this.size();isString$2(a)?this._addString(a,s):this._addObject(a,s)}removeAt(a){this.records.splice(a,1);for(let s=a,c=this.size();s{let y=f.getFn?f.getFn(a):this.getFn(a,f.path);if(isDefined(y)){if(isArray$6(y)){let _=[];const S=[{nestedArrIndex:-1,value:y}];for(;S.length;){const{nestedArrIndex:b,value:$}=S.pop();if(isDefined($))if(isString$2($)&&!isBlank($)){let P={v:$,i:b,n:this.norm.get($)};_.push(P)}else isArray$6($)&&$.forEach((P,T)=>{S.push({nestedArrIndex:T,value:P})})}c.$[d]=_}else if(isString$2(y)&&!isBlank(y)){let _={v:y,n:this.norm.get(y)};c.$[d]=_}}}),this.records.push(c)}toJSON(){return{keys:this.keys,records:this.records}}}function createIndex(o,a,{getFn:s=Config.getFn,fieldNormWeight:c=Config.fieldNormWeight}={}){const f=new FuseIndex({getFn:s,fieldNormWeight:c});return f.setKeys(o.map(createKey)),f.setSources(a),f.create(),f}function parseIndex(o,{getFn:a=Config.getFn,fieldNormWeight:s=Config.fieldNormWeight}={}){const{keys:c,records:f}=o,d=new FuseIndex({getFn:a,fieldNormWeight:s});return d.setKeys(c),d.setIndexRecords(f),d}function computeScore$1(o,{errors:a=0,currentLocation:s=0,expectedLocation:c=0,distance:f=Config.distance,ignoreLocation:d=Config.ignoreLocation}={}){const y=a/o.length;if(d)return y;const _=Math.abs(c-s);return f?y+_/f:_?1:y}function convertMaskToIndices(o=[],a=Config.minMatchCharLength){let s=[],c=-1,f=-1,d=0;for(let y=o.length;d=a&&s.push([c,f]),c=-1)}return o[d-1]&&d-c>=a&&s.push([c,d-1]),s}const MAX_BITS=32;function search(o,a,s,{location:c=Config.location,distance:f=Config.distance,threshold:d=Config.threshold,findAllMatches:y=Config.findAllMatches,minMatchCharLength:_=Config.minMatchCharLength,includeMatches:S=Config.includeMatches,ignoreLocation:b=Config.ignoreLocation}={}){if(a.length>MAX_BITS)throw new Error(PATTERN_LENGTH_TOO_LARGE(MAX_BITS));const $=a.length,P=o.length,T=Math.max(0,Math.min(c,P));let C=d,O=T;const A=_>1||S,F=A?Array(P):[];let j;for(;(j=o.indexOf(a,O))>-1;){let H=computeScore$1(a,{currentLocation:j,expectedLocation:T,distance:f,ignoreLocation:b});if(C=Math.min(H,C),O=j+$,A){let G=0;for(;G<$;)F[j+G]=1,G+=1}}O=-1;let I=[],M=1,L=$+P;const U=1<<$-1;for(let H=0;H<$;H+=1){let G=0,X=L;for(;G=W;de-=1){let Z=de-1,Q=s[o.charAt(Z)];if(A&&(F[Z]=+!!Q),ie[de]=(ie[de+1]<<1|1)&Q,H&&(ie[de]|=(I[de+1]|I[de])<<1|1|I[de+1]),ie[de]&U&&(M=computeScore$1(a,{errors:H,currentLocation:Z,expectedLocation:T,distance:f,ignoreLocation:b}),M<=C)){if(C=M,O=Z,O<=T)break;W=Math.max(1,2*T-O)}}if(computeScore$1(a,{errors:H+1,currentLocation:T,expectedLocation:T,distance:f,ignoreLocation:b})>C)break;I=ie}const z={isMatch:O>=0,score:Math.max(.001,M)};if(A){const H=convertMaskToIndices(F,_);H.length?S&&(z.indices=H):z.isMatch=!1}return z}function createPatternAlphabet(o){let a={};for(let s=0,c=o.length;s{this.chunks.push({pattern:T,alphabet:createPatternAlphabet(T),startIndex:C})},P=this.pattern.length;if(P>MAX_BITS){let T=0;const C=P%MAX_BITS,O=P-C;for(;T{const{isMatch:j,score:I,indices:M}=search(a,O,A,{location:f+F,distance:d,threshold:y,findAllMatches:_,minMatchCharLength:S,includeMatches:c,ignoreLocation:b});j&&(T=!0),P+=I,j&&M&&($=[...$,...M])});let C={isMatch:T,score:T?P/this.chunks.length:1};return T&&c&&(C.indices=$),C}}class BaseMatch{constructor(a){this.pattern=a}static isMultiMatch(a){return getMatch(a,this.multiRegex)}static isSingleMatch(a){return getMatch(a,this.singleRegex)}search(){}}function getMatch(o,a){const s=o.match(a);return s?s[1]:null}class ExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(a){const s=a===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class InverseExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(a){const c=a.indexOf(this.pattern)===-1;return{isMatch:c,score:c?0:1,indices:[0,a.length-1]}}}class PrefixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(a){const s=a.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class InversePrefixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(a){const s=!a.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,a.length-1]}}}class SuffixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(a){const s=a.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[a.length-this.pattern.length,a.length-1]}}}class InverseSuffixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(a){const s=!a.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,a.length-1]}}}class FuzzyMatch extends BaseMatch{constructor(a,{location:s=Config.location,threshold:c=Config.threshold,distance:f=Config.distance,includeMatches:d=Config.includeMatches,findAllMatches:y=Config.findAllMatches,minMatchCharLength:_=Config.minMatchCharLength,isCaseSensitive:S=Config.isCaseSensitive,ignoreLocation:b=Config.ignoreLocation}={}){super(a),this._bitapSearch=new BitapSearch(a,{location:s,threshold:c,distance:f,includeMatches:d,findAllMatches:y,minMatchCharLength:_,isCaseSensitive:S,ignoreLocation:b})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(a){return this._bitapSearch.searchIn(a)}}class IncludeMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(a){let s=0,c;const f=[],d=this.pattern.length;for(;(c=a.indexOf(this.pattern,s))>-1;)s=c+d,f.push([c,s-1]);const y=!!f.length;return{isMatch:y,score:y?0:1,indices:f}}}const searchers=[ExactMatch,IncludeMatch,PrefixExactMatch,InversePrefixExactMatch,InverseSuffixExactMatch,SuffixExactMatch,InverseExactMatch,FuzzyMatch],searchersLen=searchers.length,SPACE_RE=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,OR_TOKEN="|";function parseQuery(o,a={}){return o.split(OR_TOKEN).map(s=>{let c=s.trim().split(SPACE_RE).filter(d=>d&&!!d.trim()),f=[];for(let d=0,y=c.length;d!!(o[LogicalOperator.AND]||o[LogicalOperator.OR]),isPath=o=>!!o[KeyType.PATH],isLeaf=o=>!isArray$6(o)&&isObject$2(o)&&!isExpression(o),convertToExplicit=o=>({[LogicalOperator.AND]:Object.keys(o).map(a=>({[a]:o[a]}))});function parse$3(o,a,{auto:s=!0}={}){const c=f=>{let d=Object.keys(f);const y=isPath(f);if(!y&&d.length>1&&!isExpression(f))return c(convertToExplicit(f));if(isLeaf(f)){const S=y?f[KeyType.PATH]:d[0],b=y?f[KeyType.PATTERN]:f[S];if(!isString$2(b))throw new Error(LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY(S));const $={keyId:createKeyId(S),pattern:b};return s&&($.searcher=createSearcher(b,a)),$}let _={children:[],operator:d[0]};return d.forEach(S=>{const b=f[S];isArray$6(b)&&b.forEach($=>{_.children.push(c($))})}),_};return isExpression(o)||(o=convertToExplicit(o)),c(o)}function computeScore(o,{ignoreFieldNorm:a=Config.ignoreFieldNorm}){o.forEach(s=>{let c=1;s.matches.forEach(({key:f,norm:d,score:y})=>{const _=f?f.weight:null;c*=Math.pow(y===0&&_?Number.EPSILON:y,(_||1)*(a?1:d))}),s.score=c})}function transformMatches(o,a){const s=o.matches;a.matches=[],isDefined(s)&&s.forEach(c=>{if(!isDefined(c.indices)||!c.indices.length)return;const{indices:f,value:d}=c;let y={indices:f,value:d};c.key&&(y.key=c.key.src),c.idx>-1&&(y.refIndex=c.idx),a.matches.push(y)})}function transformScore(o,a){a.score=o.score}function format(o,a,{includeMatches:s=Config.includeMatches,includeScore:c=Config.includeScore}={}){const f=[];return s&&f.push(transformMatches),c&&f.push(transformScore),o.map(d=>{const{idx:y}=d,_={item:a[y],refIndex:y};return f.length&&f.forEach(S=>{S(d,_)}),_})}class Fuse{constructor(a,s={},c){this.options=se(se({},Config),s),this.options.useExtendedSearch,this._keyStore=new KeyStore(this.options.keys),this.setCollection(a,c)}setCollection(a,s){if(this._docs=a,s&&!(s instanceof FuseIndex))throw new Error(INCORRECT_INDEX_TYPE);this._myIndex=s||createIndex(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(a){isDefined(a)&&(this._docs.push(a),this._myIndex.add(a))}remove(a=()=>!1){const s=[];for(let c=0,f=this._docs.length;c-1&&(S=S.slice(0,s)),format(S,this._docs,{includeMatches:c,includeScore:f})}_searchStringList(a){const s=createSearcher(a,this.options),{records:c}=this._myIndex,f=[];return c.forEach(({v:d,i:y,n:_})=>{if(!isDefined(d))return;const{isMatch:S,score:b,indices:$}=s.searchIn(d);S&&f.push({item:d,idx:y,matches:[{score:b,value:d,norm:_,indices:$}]})}),f}_searchLogical(a){const s=parse$3(a,this.options),c=(_,S,b)=>{if(!_.children){const{keyId:P,searcher:T}=_,C=this._findMatches({key:this._keyStore.get(P),value:this._myIndex.getValueForItemAtKeyId(S,P),searcher:T});return C&&C.length?[{idx:b,item:S,matches:C}]:[]}const $=[];for(let P=0,T=_.children.length;P{if(isDefined(_)){let b=c(s,_,S);b.length&&(d[S]||(d[S]={idx:S,item:_,matches:[]},y.push(d[S])),b.forEach(({matches:$})=>{d[S].matches.push(...$)}))}}),y}_searchObjectList(a){const s=createSearcher(a,this.options),{keys:c,records:f}=this._myIndex,d=[];return f.forEach(({$:y,i:_})=>{if(!isDefined(y))return;let S=[];c.forEach((b,$)=>{S.push(...this._findMatches({key:b,value:y[$],searcher:s}))}),S.length&&d.push({idx:_,item:y,matches:S})}),d}_findMatches({key:a,value:s,searcher:c}){if(!isDefined(s))return[];let f=[];if(isArray$6(s))s.forEach(({v:d,i:y,n:_})=>{if(!isDefined(d))return;const{isMatch:S,score:b,indices:$}=c.searchIn(d);S&&f.push({score:b,key:a,value:d,idx:y,norm:_,indices:$})});else{const{v:d,n:y}=s,{isMatch:_,score:S,indices:b}=c.searchIn(d);_&&f.push({score:S,key:a,value:d,norm:y,indices:b})}return f}}Fuse.version="7.0.0";Fuse.createIndex=createIndex;Fuse.parseIndex=parseIndex;Fuse.config=Config;Fuse.parseQuery=parse$3;register(ExtendedSearch);const DEFAULT_CONFIG={id:"id",children:"children",pid:"pid"},getConfig=o=>se(se({},DEFAULT_CONFIG),o);function treeToList(o,a={}){a=getConfig(a);const{children:s}=a,c=[...o];for(let f=0;ftreeMapEach(s,a))}function treeMapEach(o,{children:a="children",conversion:s}){const c=Array.isArray(o[a])&&o[a].length>0,f=s(o)||{};return c?we(se({},f),{[a]:o[a].map(d=>treeMapEach(d,{children:a,conversion:s}))}):se({},f)}function joinParentPath(o,a=""){var s;for(let c=0;c{f.meta.hideChildrenInMenu&&(f.children=[]),s.push(f)});const c=treeMap(s,{conversion:f=>{const{meta:S={}}=f,b=S,{title:d,hideMenu:y=!1}=b,_=fr(b,["title","hideMenu"]);return we(se({},_||{}),{name:d,hideMenu:y,path:f.path})}});return joinParentPath(c),cloneDeep(c)}function genFullPath(o,a=""){var s;for(let c=0;c((a==null?void 0:a.orderNo)||o.length)-((s==null?void 0:s.orderNo)||o.length)),o.filter(a=>!a.hideMenu)})}const useStyle=createStyles(({token:o})=>({"my-modal-body":{".ant-list-item":{padding:`${o.paddingSM}px !important`,boxSizing:"border-box",borderStyle:"dashed",borderWidth:"1px",borderColor:`transparent transparent ${o.colorBorder}`,"&:hover":{border:`1px dashed ${o.colorPrimary}`,borderRadius:o.borderRadiusLG,backgroundColor:o.colorPrimaryBg}}},"my-modal-mask":{boxShadow:"inset 0 0 15px #fff",backdropFilter:"blur(4px) !important"},"my-modal-header":{borderBottom:`1px dotted ${o.colorPrimary}`},"my-modal-footer":{color:o.colorPrimary,borderTop:`1px dotted ${o.colorPrimary} !important`},"my-modal-content":{border:"1px solid #333"}})),SearchModal=reactExports.forwardRef((o,a)=>{const[s,c]=reactExports.useState(!1),[f,d]=reactExports.useState([]),{styles:y}=useStyle(),_=useTheme(),S={body:y["my-modal-body"],mask:y["my-modal-mask"],header:y["my-modal-header"],footer:y["my-modal-footer"],content:y["my-modal-content"]},b={header:{borderRadius:0,paddingInlineStart:5},body:{borderRadius:5,maxHeight:300,overflow:"auto",paddingInline:10},mask:{backdropFilter:"blur(10px)"},footer:{borderTop:"1px solid #333"},content:{boxShadow:"0 0 30px #99999994"}},$=()=>xt(void 0,null,function*(){try{const F=yield getAsyncMenus();d(F)}catch(F){return[]}});reactExports.useEffect(()=>{$()},[]);const P=reactExports.useCallback(()=>treeToList(f,{children:"children"}),[f]);reactExports.useImperativeHandle(a,()=>({open:()=>c(()=>!0),close:()=>c(()=>!1)}));const T=new Fuse(P(),{keys:["name","path"],threshold:.2}),[C,O]=reactExports.useState(""),A=(F,j)=>{const I=new RegExp(`(${j})`,"gi");return F.replace(I,(M,L)=>`${L}`)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Modal,{title:jsxRuntimeExports.jsx(Input,{size:"large",onChange:F=>O(F.target.value),value:C,placeholder:t("请输入搜索..."),prefix:jsxRuntimeExports.jsx(SearchOutlined,{}),suffix:jsxRuntimeExports.jsx(Badge,{count:"Esc",color:_.colorPrimaryHover})}),closeIcon:null,open:s,onOk:()=>c(()=>!1),onCancel:()=>c(()=>!1),footer:null,classNames:S,styles:b,children:jsxRuntimeExports.jsx(List,{itemLayout:"horizontal",dataSource:C?T.search(C).map(F=>F.item):P(),renderItem:F=>jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Link,{to:F.path,onClick:()=>c(()=>!1),dangerouslySetInnerHTML:{__html:A(F.name,C)}}),description:jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:A(F.path,C)}})})})})})})}),GlobalSearch=()=>{const o=reactExports.useRef(null);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button,{size:"small",shape:"circle",onClick:()=>{var a;return(a=o.current)==null?void 0:a.open()},icon:jsxRuntimeExports.jsx(SearchOutlined,{})}),jsxRuntimeExports.jsx(SearchModal,{ref:o})]})};function LayoutSettings(){const[o,a]=reactExports.useState("1"),s=useTheme(),c=[{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:o==="1"?s.colorPrimary:s.colorText},children:jsxRuntimeExports.jsx(SvgIcon,{name:"fill",size:32})}),value:"1"},{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:o==="2"?s.colorPrimary:s.colorText},children:jsxRuntimeExports.jsx(SvgIcon,{name:"filling",size:32})}),value:"2"},{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:o==="3"?s.colorPrimary:s.colorText},children:jsxRuntimeExports.jsx(SvgIcon,{name:"topFill",size:32})}),value:"3"}];return jsxRuntimeExports.jsx(Segmented,{style:{backgroundColor:s.colorBgContainerDisabled},block:!0,value:o,onChange:f=>a(f),options:c})}var AppModeEnum=(o=>(o.DARK="dark",o.LIGHT="light",o))(AppModeEnum||{}),ThemeEnum=(o=>(o.DARK="dark",o.LIGHT="light",o))(ThemeEnum||{}),PageTransitionEnum=(o=>(o.FADE="fade",o.FADE_SIDE="fade-slide",o.FADE_BOTTOM="fade-bottom",o.FADE_SCALE="fade-scale",o.ZOOM_FADE="zoom-fade",o.ZOOM_OUT="zoom-out",o))(PageTransitionEnum||{}),PermissionModeEnum=(o=>(o.MAPPING="MAPPING",o.BACKEND="BACKEND",o))(PermissionModeEnum||{});AppModeEnum.LIGHT;const APP_THEME_COLOR_LIST=[{name:t("薄暮"),color:"#00A76F"},{name:t("火山"),color:"#ff3030"},{name:t("明青"),color:"#078dee"},{name:t("落霞"),color:"#fda92d"},{name:t("极客"),color:"#2065d1"},{name:t("酱紫"),color:"#7635dc"}],Presets=()=>{const{preset:o,setPreset:a}=useGlobalStore(),s=reactExports.useMemo(()=>APP_THEME_COLOR_LIST.map(c=>jsxRuntimeExports.jsx(Col,{span:8,children:jsxRuntimeExports.jsx(Button,{block:!0,size:"large",onClick:()=>a(c.color),children:jsxRuntimeExports.jsx(Badge,{styles:{root:{},indicator:o===c.color?{width:"16px",height:"16px"}:{width:"12px",height:"12px"}},status:o===c.color?"processing":"default",color:c.color})})},c.color)),[APP_THEME_COLOR_LIST,o]);return jsxRuntimeExports.jsx(Row,{gutter:[16,16],children:s})};function SlideTheme(){const{themeMode:o,setThemeMode:a}=useThemeMode(),s=useTheme(),c=[{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:s.colorPrimary},children:jsxRuntimeExports.jsx(SvgIcon,{style:{color:s.colorPrimary},name:"sun",size:18})}),value:"light"},{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:s.colorPrimary},children:jsxRuntimeExports.jsx(SvgIcon,{name:"moon",size:18})}),value:"dark"}];return jsxRuntimeExports.jsx(Segmented,{style:{backgroundColor:s.colorBgContainerDisabled},block:!0,value:o,onChange:f=>a(f),options:c})}const useStyles$7=createStyles(({token:o,isDarkMode:a})=>({driwer:{backdropFilter:"blur(2px) !important",backgroundColor:a?"rgba(0, 0, 0, 0.9) !important":"rgba(255, 255, 255, 0.9) !important",backgroundSize:"50% 50% !important",backgroundRepeat:"no-repeat !important",backgroundImage:`url(${o.paperCyanImg}), url(${o.paperRedImg}) !important`,backgroundPosition:"right top, left bottom !important"}})),{Text:Text$1}=Typography;function Settings(){const{styles:o}=useStyles$7(),[a,s]=reactExports.useState(!1),{hasTabs:c,setHasTabs:f,hasCrumbs:d,setHasCrumbs:y}=useGlobalStore(),_=()=>{s(!1)};return jsxRuntimeExports.jsxs(ErrorBoundary,{children:[jsxRuntimeExports.jsx(Tooltip,{title:t("设置"),placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",onClick:()=>s(!0),size:"small",icon:jsxRuntimeExports.jsx(SettingOutlined,{})})}),jsxRuntimeExports.jsx(Drawer,{classNames:{content:o.driwer},title:t("设置"),placement:"right",onClose:_,open:a,extra:jsxRuntimeExports.jsx(FullScreen,{}),children:jsxRuntimeExports.jsxs(List,{split:!1,children:[jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("主题")}),description:jsxRuntimeExports.jsx(SlideTheme,{})})}),jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("布局")}),description:jsxRuntimeExports.jsx(LayoutSettings,{})})}),jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("预设")}),description:jsxRuntimeExports.jsx(Presets,{})})}),jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("内容区域")}),description:jsxRuntimeExports.jsxs(List,{children:[jsxRuntimeExports.jsx(List.Item,{actions:[jsxRuntimeExports.jsx(Switch,{checked:c,onChange:S=>{f(S)}})],children:t("页签")}),jsxRuntimeExports.jsx(List.Item,{actions:[jsxRuntimeExports.jsx(Switch,{checked:d,onChange:S=>{y(S)}})],children:t("面包屑导航")}),jsxRuntimeExports.jsx(List.Item,{actions:[jsxRuntimeExports.jsx(Switch,{defaultChecked:!0,onChange:()=>{}})],children:t("系统名称")})]})})})]})})]})}function useMessage(){const[o,a]=Modal.useModal();return{createMessage:message,createConfirm:o.confirm,contextHolder:a}}var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},s=Symbol("test"),c=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var f=42;a[s]=f;for(s in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var d=Object.getOwnPropertySymbols(a);if(d.length!==1||d[0]!==s||!Object.prototype.propertyIsEnumerable.call(a,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(a,s);if(y.value!==f||y.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol!="undefined"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$1=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function(a,s){for(var c=[],f=0;f1&&typeof s!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,a)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var c=stringToPath(a),f=c.length>0?c[0]:"",d=getBaseIntrinsic("%"+f+"%",s),y=d.name,_=d.value,S=!1,b=d.alias;b&&(f=b[0],$spliceApply(c,$concat$1([0,1],b)));for(var $=1,P=!0;$=c.length){var A=$gOPD$1(_,T);P=!!A,P&&"get"in A&&!("originalValue"in A.get)?_=A.get:_=_[T]}else P=hasOwn$1(_,T),_=_[T];P&&!S&&(INTRINSICS[y]=_)}}return _},callBind$1={exports:{}},GetIntrinsic$5=getIntrinsic,$defineProperty$1=GetIntrinsic$5("%Object.defineProperty%",!0),hasPropertyDescriptors$1=function(){if($defineProperty$1)try{return $defineProperty$1({},"a",{value:1}),!0}catch(a){return!1}return!1};hasPropertyDescriptors$1.hasArrayLengthDefineBug=function(){if(!hasPropertyDescriptors$1())return null;try{return $defineProperty$1([],"length",{value:1}).length!==1}catch(a){return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors$1,GetIntrinsic$4=getIntrinsic,$gOPD=GetIntrinsic$4("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch(o){$gOPD=null}var gopd$1=$gOPD,hasPropertyDescriptors=hasPropertyDescriptors_1(),GetIntrinsic$3=getIntrinsic,$defineProperty=hasPropertyDescriptors&&GetIntrinsic$3("%Object.defineProperty%",!0);if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(o){$defineProperty=!1}var $SyntaxError=GetIntrinsic$3("%SyntaxError%"),$TypeError$2=GetIntrinsic$3("%TypeError%"),gopd=gopd$1,defineDataProperty=function(a,s,c){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError$2("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new $TypeError$2("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$2("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,y=arguments.length>5?arguments[5]:null,_=arguments.length>6?arguments[6]:!1,S=!!gopd&&gopd(a,s);if($defineProperty)$defineProperty(a,s,{configurable:y===null&&S?S.configurable:!y,enumerable:f===null&&S?S.enumerable:!f,value:c,writable:d===null&&S?S.writable:!d});else if(_||!f&&!d&&!y)a[s]=c;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},GetIntrinsic$2=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD=gopd$1,$TypeError$1=GetIntrinsic$2("%TypeError%"),$floor$1=GetIntrinsic$2("%Math.floor%"),setFunctionLength=function(a,s){if(typeof a!="function")throw new $TypeError$1("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||$floor$1(s)!==s)throw new $TypeError$1("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],f=!0,d=!0;if("length"in a&&gOPD){var y=gOPD(a,"length");y&&!y.configurable&&(f=!1),y&&!y.writable&&(d=!1)}return(f||d||!c)&&(hasDescriptors?define(a,"length",s,!0,!0):define(a,"length",s)),a};(function(o){var a=functionBind,s=getIntrinsic,c=setFunctionLength,f=s("%TypeError%"),d=s("%Function.prototype.apply%"),y=s("%Function.prototype.call%"),_=s("%Reflect.apply%",!0)||a.call(y,d),S=s("%Object.defineProperty%",!0),b=s("%Math.max%");if(S)try{S({},"a",{value:1})}catch(P){S=null}o.exports=function(T){if(typeof T!="function")throw new f("a function is required");var C=_(a,y,arguments);return c(C,1+b(0,T.length-(arguments.length-1)),!0)};var $=function(){return _(a,d,arguments)};S?S(o.exports,"apply",{value:$}):o.exports.apply=$})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(a,s){var c=GetIntrinsic$1(a,!!s);return typeof c=="function"&&$indexOf(a,".prototype.")>-1?callBind(c):c};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(o){return o.__proto__}:null);function addNumericSeparator(o,a){if(o===1/0||o===-1/0||o!==o||o&&o>-1e3&&o<1e3||$test.call(/e/,a))return a;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof o=="number"){var c=o<0?-$floor(-o):$floor(o);if(c!==o){var f=String(c),d=$slice.call(a,f.length+1);return $replace.call(f,s,"$&_")+"."+$replace.call($replace.call(d,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(a,s,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function o(a,s,c,f){var d=s||{};if(has$4(d,"quoteStyle")&&d.quoteStyle!=="single"&&d.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(d,"maxStringLength")&&(typeof d.maxStringLength=="number"?d.maxStringLength<0&&d.maxStringLength!==1/0:d.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=has$4(d,"customInspect")?d.customInspect:!0;if(typeof y!="boolean"&&y!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(d,"indent")&&d.indent!==null&&d.indent!==" "&&!(parseInt(d.indent,10)===d.indent&&d.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(d,"numericSeparator")&&typeof d.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _=d.numericSeparator;if(typeof a=="undefined")return"undefined";if(a===null)return"null";if(typeof a=="boolean")return a?"true":"false";if(typeof a=="string")return inspectString(a,d);if(typeof a=="number"){if(a===0)return 1/0/a>0?"0":"-0";var S=String(a);return _?addNumericSeparator(a,S):S}if(typeof a=="bigint"){var b=String(a)+"n";return _?addNumericSeparator(a,b):b}var $=typeof d.depth=="undefined"?5:d.depth;if(typeof c=="undefined"&&(c=0),c>=$&&$>0&&typeof a=="object")return isArray$5(a)?"[Array]":"[Object]";var P=getIndent(d,c);if(typeof f=="undefined")f=[];else if(indexOf(f,a)>=0)return"[Circular]";function T(ee,de,Z){if(de&&(f=$arrSlice.call(f),f.push(de)),Z){var Q={depth:d.depth};return has$4(d,"quoteStyle")&&(Q.quoteStyle=d.quoteStyle),o(ee,Q,c+1,f)}return o(ee,d,c+1,f)}if(typeof a=="function"&&!isRegExp$2(a)){var C=nameOf(a),O=arrObjKeys(a,T);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(O.length>0?" { "+$join.call(O,", ")+" }":"")}if(isSymbol(a)){var A=hasShammedSymbols?$replace.call(String(a),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(a);return typeof a=="object"&&!hasShammedSymbols?markBoxed(A):A}if(isElement(a)){for(var F="<"+$toLowerCase.call(String(a.nodeName)),j=a.attributes||[],I=0;I",F}if(isArray$5(a)){if(a.length===0)return"[]";var M=arrObjKeys(a,T);return P&&!singleLineValues(M)?"["+indentedJoin(M,P)+"]":"[ "+$join.call(M,", ")+" ]"}if(isError(a)){var L=arrObjKeys(a,T);return!("cause"in Error.prototype)&&"cause"in a&&!isEnumerable.call(a,"cause")?"{ ["+String(a)+"] "+$join.call($concat.call("[cause]: "+T(a.cause),L),", ")+" }":L.length===0?"["+String(a)+"]":"{ ["+String(a)+"] "+$join.call(L,", ")+" }"}if(typeof a=="object"&&y){if(inspectSymbol&&typeof a[inspectSymbol]=="function"&&utilInspect)return utilInspect(a,{depth:$-c});if(y!=="symbol"&&typeof a.inspect=="function")return a.inspect()}if(isMap$1(a)){var U=[];return mapForEach&&mapForEach.call(a,function(ee,de){U.push(T(de,a,!0)+" => "+T(ee,a))}),collectionOf("Map",mapSize.call(a),U,P)}if(isSet$1(a)){var z=[];return setForEach&&setForEach.call(a,function(ee){z.push(T(ee,a))}),collectionOf("Set",setSize.call(a),z,P)}if(isWeakMap(a))return weakCollectionOf("WeakMap");if(isWeakSet(a))return weakCollectionOf("WeakSet");if(isWeakRef(a))return weakCollectionOf("WeakRef");if(isNumber$1(a))return markBoxed(T(Number(a)));if(isBigInt(a))return markBoxed(T(bigIntValueOf.call(a)));if(isBoolean$2(a))return markBoxed(booleanValueOf.call(a));if(isString$1(a))return markBoxed(T(String(a)));if(typeof window!="undefined"&&a===window)return"{ [object Window] }";if(a===commonjsGlobal)return"{ [object globalThis] }";if(!isDate$2(a)&&!isRegExp$2(a)){var H=arrObjKeys(a,T),G=gPO?gPO(a)===Object.prototype:a instanceof Object||a.constructor===Object,X=a instanceof Object?"":"null prototype",W=!G&&toStringTag&&Object(a)===a&&toStringTag in a?$slice.call(toStr(a),8,-1):X?"Object":"",K=G||typeof a.constructor!="function"?"":a.constructor.name?a.constructor.name+" ":"",ie=K+(W||X?"["+$join.call($concat.call([],W||[],X||[]),": ")+"] ":"");return H.length===0?ie+"{}":P?ie+"{"+indentedJoin(H,P)+"}":ie+"{ "+$join.call(H,", ")+" }"}return String(a)};function wrapQuotes(o,a,s){var c=(s.quoteStyle||a)==="double"?'"':"'";return c+o+c}function quote(o){return $replace.call(String(o),/"/g,""")}function isArray$5(o){return toStr(o)==="[object Array]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isDate$2(o){return toStr(o)==="[object Date]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isRegExp$2(o){return toStr(o)==="[object RegExp]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isError(o){return toStr(o)==="[object Error]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isString$1(o){return toStr(o)==="[object String]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isNumber$1(o){return toStr(o)==="[object Number]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isBoolean$2(o){return toStr(o)==="[object Boolean]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isSymbol(o){if(hasShammedSymbols)return o&&typeof o=="object"&&o instanceof Symbol;if(typeof o=="symbol")return!0;if(!o||typeof o!="object"||!symToString)return!1;try{return symToString.call(o),!0}catch(a){}return!1}function isBigInt(o){if(!o||typeof o!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(o),!0}catch(a){}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(o){return o in this};function has$4(o,a){return hasOwn.call(o,a)}function toStr(o){return objectToString.call(o)}function nameOf(o){if(o.name)return o.name;var a=$match.call(functionToString.call(o),/^function\s*([\w$]+)/);return a?a[1]:null}function indexOf(o,a){if(o.indexOf)return o.indexOf(a);for(var s=0,c=o.length;sa.maxStringLength){var s=o.length-a.maxStringLength,c="... "+s+" more character"+(s>1?"s":"");return inspectString($slice.call(o,0,a.maxStringLength),a)+c}var f=$replace.call($replace.call(o,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(f,"single",a)}function lowbyte(o){var a=o.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[a];return s?"\\"+s:"\\x"+(a<16?"0":"")+$toUpperCase.call(a.toString(16))}function markBoxed(o){return"Object("+o+")"}function weakCollectionOf(o){return o+" { ? }"}function collectionOf(o,a,s,c){var f=c?indentedJoin(s,c):$join.call(s,", ");return o+" ("+a+") {"+f+"}"}function singleLineValues(o){for(var a=0;a{for(const s of a){if(s.path===o||s.fullPath===o)return s;if(s.children){const c=searchRoute(o,s.children);if(c)return c}}return null};function useTitle(){const[o,a]=reactExports.useState("react-admin-design"),{pathname:s}=useLocation();reactExports.useEffect(()=>{const c=searchRoute(s,routeList);a(c==null?void 0:c.meta.title)},[s]),useTitle$1(o)}function DocLink(){return jsxRuntimeExports.jsx(Tooltip,{title:t("文档"),placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",size:"small",onClick:()=>openWindow("https://anyone-yuren.github.io/gbeata-admin-docs"),icon:jsxRuntimeExports.jsx(ReadOutlined,{})})})}function FullScreen(){const[o,{toggleFullscreen:a}]=useFullscreen$1(document.body);return jsxRuntimeExports.jsx(Tooltip,{title:t(o?"退出全屏":"进入全屏"),placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",onClick:a,size:"small",icon:o?jsxRuntimeExports.jsx(FullscreenExitOutlined,{}):jsxRuntimeExports.jsx(FullscreenOutlined,{})})})}function GithubLink(){function o(){openWindow("https://github.com/anyone-yuren/gbeata-react-admin")}return jsxRuntimeExports.jsx(Tooltip,{title:"github",placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",onClick:o,size:"small",icon:jsxRuntimeExports.jsx(GithubOutlined,{})})})}function isArray$6(o){return Array.isArray?Array.isArray(o):getTag(o)==="[object Array]"}const INFINITY=1/0;function baseToString(o){if(typeof o=="string")return o;let a=o+"";return a=="0"&&1/o==-INFINITY?"-0":a}function toString$2(o){return o==null?"":baseToString(o)}function isString$2(o){return typeof o=="string"}function isNumber$2(o){return typeof o=="number"}function isBoolean$3(o){return o===!0||o===!1||isObjectLike(o)&&getTag(o)=="[object Boolean]"}function isObject$2(o){return typeof o=="object"}function isObjectLike(o){return isObject$2(o)&&o!==null}function isDefined(o){return o!=null}function isBlank(o){return!o.trim().length}function getTag(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(o)}const EXTENDED_SEARCH_UNAVAILABLE="Extended search is not available",INCORRECT_INDEX_TYPE="Incorrect 'index' type",LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY=o=>`Invalid value for key ${o}`,PATTERN_LENGTH_TOO_LARGE=o=>`Pattern length exceeds max of ${o}.`,MISSING_KEY_PROPERTY=o=>`Missing ${o} property in key`,INVALID_KEY_WEIGHT_VALUE=o=>`Property 'weight' in key '${o}' must be a positive integer`,hasOwn$2=Object.prototype.hasOwnProperty;class KeyStore{constructor(a){this._keys=[],this._keyMap={};let s=0;a.forEach(c=>{let f=createKey(c);this._keys.push(f),this._keyMap[f.id]=f,s+=f.weight}),this._keys.forEach(c=>{c.weight/=s})}get(a){return this._keyMap[a]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function createKey(o){let a=null,s=null,c=null,f=1,d=null;if(isString$2(o)||isArray$6(o))c=o,a=createKeyPath(o),s=createKeyId(o);else{if(!hasOwn$2.call(o,"name"))throw new Error(MISSING_KEY_PROPERTY("name"));const y=o.name;if(c=y,hasOwn$2.call(o,"weight")&&(f=o.weight,f<=0))throw new Error(INVALID_KEY_WEIGHT_VALUE(y));a=createKeyPath(y),s=createKeyId(y),d=o.getFn}return{path:a,id:s,weight:f,src:c,getFn:d}}function createKeyPath(o){return isArray$6(o)?o:o.split(".")}function createKeyId(o){return isArray$6(o)?o.join("."):o}function get(o,a){let s=[],c=!1;const f=(d,y,_)=>{if(isDefined(d))if(!y[_])s.push(d);else{let S=y[_];const b=d[S];if(!isDefined(b))return;if(_===y.length-1&&(isString$2(b)||isNumber$2(b)||isBoolean$3(b)))s.push(toString$2(b));else if(isArray$6(b)){c=!0;for(let $=0,P=b.length;$o.score===a.score?o.idx{this._keysMap[s.id]=c})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,isString$2(this.docs[0])?this.docs.forEach((a,s)=>{this._addString(a,s)}):this.docs.forEach((a,s)=>{this._addObject(a,s)}),this.norm.clear())}add(a){const s=this.size();isString$2(a)?this._addString(a,s):this._addObject(a,s)}removeAt(a){this.records.splice(a,1);for(let s=a,c=this.size();s{let y=f.getFn?f.getFn(a):this.getFn(a,f.path);if(isDefined(y)){if(isArray$6(y)){let _=[];const S=[{nestedArrIndex:-1,value:y}];for(;S.length;){const{nestedArrIndex:b,value:$}=S.pop();if(isDefined($))if(isString$2($)&&!isBlank($)){let P={v:$,i:b,n:this.norm.get($)};_.push(P)}else isArray$6($)&&$.forEach((P,T)=>{S.push({nestedArrIndex:T,value:P})})}c.$[d]=_}else if(isString$2(y)&&!isBlank(y)){let _={v:y,n:this.norm.get(y)};c.$[d]=_}}}),this.records.push(c)}toJSON(){return{keys:this.keys,records:this.records}}}function createIndex(o,a,{getFn:s=Config.getFn,fieldNormWeight:c=Config.fieldNormWeight}={}){const f=new FuseIndex({getFn:s,fieldNormWeight:c});return f.setKeys(o.map(createKey)),f.setSources(a),f.create(),f}function parseIndex(o,{getFn:a=Config.getFn,fieldNormWeight:s=Config.fieldNormWeight}={}){const{keys:c,records:f}=o,d=new FuseIndex({getFn:a,fieldNormWeight:s});return d.setKeys(c),d.setIndexRecords(f),d}function computeScore$1(o,{errors:a=0,currentLocation:s=0,expectedLocation:c=0,distance:f=Config.distance,ignoreLocation:d=Config.ignoreLocation}={}){const y=a/o.length;if(d)return y;const _=Math.abs(c-s);return f?y+_/f:_?1:y}function convertMaskToIndices(o=[],a=Config.minMatchCharLength){let s=[],c=-1,f=-1,d=0;for(let y=o.length;d=a&&s.push([c,f]),c=-1)}return o[d-1]&&d-c>=a&&s.push([c,d-1]),s}const MAX_BITS=32;function search(o,a,s,{location:c=Config.location,distance:f=Config.distance,threshold:d=Config.threshold,findAllMatches:y=Config.findAllMatches,minMatchCharLength:_=Config.minMatchCharLength,includeMatches:S=Config.includeMatches,ignoreLocation:b=Config.ignoreLocation}={}){if(a.length>MAX_BITS)throw new Error(PATTERN_LENGTH_TOO_LARGE(MAX_BITS));const $=a.length,P=o.length,T=Math.max(0,Math.min(c,P));let C=d,O=T;const A=_>1||S,F=A?Array(P):[];let j;for(;(j=o.indexOf(a,O))>-1;){let H=computeScore$1(a,{currentLocation:j,expectedLocation:T,distance:f,ignoreLocation:b});if(C=Math.min(H,C),O=j+$,A){let G=0;for(;G<$;)F[j+G]=1,G+=1}}O=-1;let L=[],M=1,I=$+P;const U=1<<$-1;for(let H=0;H<$;H+=1){let G=0,X=I;for(;G=W;de-=1){let Z=de-1,Q=s[o.charAt(Z)];if(A&&(F[Z]=+!!Q),ie[de]=(ie[de+1]<<1|1)&Q,H&&(ie[de]|=(L[de+1]|L[de])<<1|1|L[de+1]),ie[de]&U&&(M=computeScore$1(a,{errors:H,currentLocation:Z,expectedLocation:T,distance:f,ignoreLocation:b}),M<=C)){if(C=M,O=Z,O<=T)break;W=Math.max(1,2*T-O)}}if(computeScore$1(a,{errors:H+1,currentLocation:T,expectedLocation:T,distance:f,ignoreLocation:b})>C)break;L=ie}const z={isMatch:O>=0,score:Math.max(.001,M)};if(A){const H=convertMaskToIndices(F,_);H.length?S&&(z.indices=H):z.isMatch=!1}return z}function createPatternAlphabet(o){let a={};for(let s=0,c=o.length;s{this.chunks.push({pattern:T,alphabet:createPatternAlphabet(T),startIndex:C})},P=this.pattern.length;if(P>MAX_BITS){let T=0;const C=P%MAX_BITS,O=P-C;for(;T{const{isMatch:j,score:L,indices:M}=search(a,O,A,{location:f+F,distance:d,threshold:y,findAllMatches:_,minMatchCharLength:S,includeMatches:c,ignoreLocation:b});j&&(T=!0),P+=L,j&&M&&($=[...$,...M])});let C={isMatch:T,score:T?P/this.chunks.length:1};return T&&c&&(C.indices=$),C}}class BaseMatch{constructor(a){this.pattern=a}static isMultiMatch(a){return getMatch(a,this.multiRegex)}static isSingleMatch(a){return getMatch(a,this.singleRegex)}search(){}}function getMatch(o,a){const s=o.match(a);return s?s[1]:null}class ExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(a){const s=a===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class InverseExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(a){const c=a.indexOf(this.pattern)===-1;return{isMatch:c,score:c?0:1,indices:[0,a.length-1]}}}class PrefixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(a){const s=a.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class InversePrefixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(a){const s=!a.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,a.length-1]}}}class SuffixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(a){const s=a.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[a.length-this.pattern.length,a.length-1]}}}class InverseSuffixExactMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(a){const s=!a.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,a.length-1]}}}class FuzzyMatch extends BaseMatch{constructor(a,{location:s=Config.location,threshold:c=Config.threshold,distance:f=Config.distance,includeMatches:d=Config.includeMatches,findAllMatches:y=Config.findAllMatches,minMatchCharLength:_=Config.minMatchCharLength,isCaseSensitive:S=Config.isCaseSensitive,ignoreLocation:b=Config.ignoreLocation}={}){super(a),this._bitapSearch=new BitapSearch(a,{location:s,threshold:c,distance:f,includeMatches:d,findAllMatches:y,minMatchCharLength:_,isCaseSensitive:S,ignoreLocation:b})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(a){return this._bitapSearch.searchIn(a)}}class IncludeMatch extends BaseMatch{constructor(a){super(a)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(a){let s=0,c;const f=[],d=this.pattern.length;for(;(c=a.indexOf(this.pattern,s))>-1;)s=c+d,f.push([c,s-1]);const y=!!f.length;return{isMatch:y,score:y?0:1,indices:f}}}const searchers=[ExactMatch,IncludeMatch,PrefixExactMatch,InversePrefixExactMatch,InverseSuffixExactMatch,SuffixExactMatch,InverseExactMatch,FuzzyMatch],searchersLen=searchers.length,SPACE_RE=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,OR_TOKEN="|";function parseQuery(o,a={}){return o.split(OR_TOKEN).map(s=>{let c=s.trim().split(SPACE_RE).filter(d=>d&&!!d.trim()),f=[];for(let d=0,y=c.length;d!!(o[LogicalOperator.AND]||o[LogicalOperator.OR]),isPath=o=>!!o[KeyType.PATH],isLeaf=o=>!isArray$6(o)&&isObject$2(o)&&!isExpression(o),convertToExplicit=o=>({[LogicalOperator.AND]:Object.keys(o).map(a=>({[a]:o[a]}))});function parse$3(o,a,{auto:s=!0}={}){const c=f=>{let d=Object.keys(f);const y=isPath(f);if(!y&&d.length>1&&!isExpression(f))return c(convertToExplicit(f));if(isLeaf(f)){const S=y?f[KeyType.PATH]:d[0],b=y?f[KeyType.PATTERN]:f[S];if(!isString$2(b))throw new Error(LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY(S));const $={keyId:createKeyId(S),pattern:b};return s&&($.searcher=createSearcher(b,a)),$}let _={children:[],operator:d[0]};return d.forEach(S=>{const b=f[S];isArray$6(b)&&b.forEach($=>{_.children.push(c($))})}),_};return isExpression(o)||(o=convertToExplicit(o)),c(o)}function computeScore(o,{ignoreFieldNorm:a=Config.ignoreFieldNorm}){o.forEach(s=>{let c=1;s.matches.forEach(({key:f,norm:d,score:y})=>{const _=f?f.weight:null;c*=Math.pow(y===0&&_?Number.EPSILON:y,(_||1)*(a?1:d))}),s.score=c})}function transformMatches(o,a){const s=o.matches;a.matches=[],isDefined(s)&&s.forEach(c=>{if(!isDefined(c.indices)||!c.indices.length)return;const{indices:f,value:d}=c;let y={indices:f,value:d};c.key&&(y.key=c.key.src),c.idx>-1&&(y.refIndex=c.idx),a.matches.push(y)})}function transformScore(o,a){a.score=o.score}function format(o,a,{includeMatches:s=Config.includeMatches,includeScore:c=Config.includeScore}={}){const f=[];return s&&f.push(transformMatches),c&&f.push(transformScore),o.map(d=>{const{idx:y}=d,_={item:a[y],refIndex:y};return f.length&&f.forEach(S=>{S(d,_)}),_})}class Fuse{constructor(a,s={},c){this.options=se(se({},Config),s),this.options.useExtendedSearch,this._keyStore=new KeyStore(this.options.keys),this.setCollection(a,c)}setCollection(a,s){if(this._docs=a,s&&!(s instanceof FuseIndex))throw new Error(INCORRECT_INDEX_TYPE);this._myIndex=s||createIndex(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(a){isDefined(a)&&(this._docs.push(a),this._myIndex.add(a))}remove(a=()=>!1){const s=[];for(let c=0,f=this._docs.length;c-1&&(S=S.slice(0,s)),format(S,this._docs,{includeMatches:c,includeScore:f})}_searchStringList(a){const s=createSearcher(a,this.options),{records:c}=this._myIndex,f=[];return c.forEach(({v:d,i:y,n:_})=>{if(!isDefined(d))return;const{isMatch:S,score:b,indices:$}=s.searchIn(d);S&&f.push({item:d,idx:y,matches:[{score:b,value:d,norm:_,indices:$}]})}),f}_searchLogical(a){const s=parse$3(a,this.options),c=(_,S,b)=>{if(!_.children){const{keyId:P,searcher:T}=_,C=this._findMatches({key:this._keyStore.get(P),value:this._myIndex.getValueForItemAtKeyId(S,P),searcher:T});return C&&C.length?[{idx:b,item:S,matches:C}]:[]}const $=[];for(let P=0,T=_.children.length;P{if(isDefined(_)){let b=c(s,_,S);b.length&&(d[S]||(d[S]={idx:S,item:_,matches:[]},y.push(d[S])),b.forEach(({matches:$})=>{d[S].matches.push(...$)}))}}),y}_searchObjectList(a){const s=createSearcher(a,this.options),{keys:c,records:f}=this._myIndex,d=[];return f.forEach(({$:y,i:_})=>{if(!isDefined(y))return;let S=[];c.forEach((b,$)=>{S.push(...this._findMatches({key:b,value:y[$],searcher:s}))}),S.length&&d.push({idx:_,item:y,matches:S})}),d}_findMatches({key:a,value:s,searcher:c}){if(!isDefined(s))return[];let f=[];if(isArray$6(s))s.forEach(({v:d,i:y,n:_})=>{if(!isDefined(d))return;const{isMatch:S,score:b,indices:$}=c.searchIn(d);S&&f.push({score:b,key:a,value:d,idx:y,norm:_,indices:$})});else{const{v:d,n:y}=s,{isMatch:_,score:S,indices:b}=c.searchIn(d);_&&f.push({score:S,key:a,value:d,norm:y,indices:b})}return f}}Fuse.version="7.0.0";Fuse.createIndex=createIndex;Fuse.parseIndex=parseIndex;Fuse.config=Config;Fuse.parseQuery=parse$3;register(ExtendedSearch);const DEFAULT_CONFIG={id:"id",children:"children",pid:"pid"},getConfig=o=>se(se({},DEFAULT_CONFIG),o);function treeToList(o,a={}){a=getConfig(a);const{children:s}=a,c=[...o];for(let f=0;ftreeMapEach(s,a))}function treeMapEach(o,{children:a="children",conversion:s}){const c=Array.isArray(o[a])&&o[a].length>0,f=s(o)||{};return c?$e(se({},f),{[a]:o[a].map(d=>treeMapEach(d,{children:a,conversion:s}))}):se({},f)}function joinParentPath(o,a=""){var s;for(let c=0;c{f.meta.hideChildrenInMenu&&(f.children=[]),s.push(f)});const c=treeMap(s,{conversion:f=>{const{meta:S={}}=f,b=S,{title:d,hideMenu:y=!1}=b,_=er(b,["title","hideMenu"]);return $e(se({},_||{}),{name:d,hideMenu:y,path:f.path})}});return joinParentPath(c),cloneDeep(c)}function genFullPath(o,a=""){var s;for(let c=0;c((a==null?void 0:a.orderNo)||o.length)-((s==null?void 0:s.orderNo)||o.length)),o.filter(a=>!a.hideMenu)})}const useStyle=createStyles(({token:o})=>({"my-modal-body":{".ant-list-item":{padding:`${o.paddingSM}px !important`,boxSizing:"border-box",borderStyle:"dashed",borderWidth:"1px",borderColor:`transparent transparent ${o.colorBorder}`,"&:hover":{border:`1px dashed ${o.colorPrimary}`,borderRadius:o.borderRadiusLG,backgroundColor:o.colorPrimaryBg}}},"my-modal-mask":{boxShadow:"inset 0 0 15px #fff",backdropFilter:"blur(4px) !important"},"my-modal-header":{borderBottom:`1px dotted ${o.colorPrimary}`},"my-modal-footer":{color:o.colorPrimary,borderTop:`1px dotted ${o.colorPrimary} !important`},"my-modal-content":{border:"1px solid #333"}})),SearchModal=reactExports.forwardRef((o,a)=>{const[s,c]=reactExports.useState(!1),[f,d]=reactExports.useState([]),{styles:y}=useStyle(),_=useTheme(),S={body:y["my-modal-body"],mask:y["my-modal-mask"],header:y["my-modal-header"],footer:y["my-modal-footer"],content:y["my-modal-content"]},b={header:{borderRadius:0,paddingInlineStart:5},body:{borderRadius:5,maxHeight:300,overflow:"auto",paddingInline:10},mask:{backdropFilter:"blur(10px)"},footer:{borderTop:"1px solid #333"},content:{boxShadow:"0 0 30px #99999994"}},$=()=>xt(void 0,null,function*(){try{const F=yield getAsyncMenus();d(F)}catch(F){return[]}});reactExports.useEffect(()=>{$()},[]);const P=reactExports.useCallback(()=>treeToList(f,{children:"children"}),[f]);reactExports.useImperativeHandle(a,()=>({open:()=>c(()=>!0),close:()=>c(()=>!1)}));const T=new Fuse(P(),{keys:["name","path"],threshold:.2}),[C,O]=reactExports.useState(""),A=(F,j)=>{const L=new RegExp(`(${j})`,"gi");return F.replace(L,(M,I)=>`${I}`)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Modal,{title:jsxRuntimeExports.jsx(Input,{size:"large",onChange:F=>O(F.target.value),value:C,placeholder:t("请输入搜索..."),prefix:jsxRuntimeExports.jsx(SearchOutlined,{}),suffix:jsxRuntimeExports.jsx(Badge,{count:"Esc",color:_.colorPrimaryHover})}),closeIcon:null,open:s,onOk:()=>c(()=>!1),onCancel:()=>c(()=>!1),footer:null,classNames:S,styles:b,children:jsxRuntimeExports.jsx(List,{itemLayout:"horizontal",dataSource:C?T.search(C).map(F=>F.item):P(),renderItem:F=>jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Link,{to:F.path,onClick:()=>c(()=>!1),dangerouslySetInnerHTML:{__html:A(F.name,C)}}),description:jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:A(F.path,C)}})})})})})})}),GlobalSearch=()=>{const o=reactExports.useRef(null);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button,{size:"small",shape:"circle",onClick:()=>{var a;return(a=o.current)==null?void 0:a.open()},icon:jsxRuntimeExports.jsx(SearchOutlined,{})}),jsxRuntimeExports.jsx(SearchModal,{ref:o})]})};function LayoutSettings(){const[o,a]=reactExports.useState("1"),s=useTheme(),c=[{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:o==="1"?s.colorPrimary:s.colorText},children:jsxRuntimeExports.jsx(SvgIcon,{name:"fill",size:32})}),value:"1"},{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:o==="2"?s.colorPrimary:s.colorText},children:jsxRuntimeExports.jsx(SvgIcon,{name:"filling",size:32})}),value:"2"},{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:o==="3"?s.colorPrimary:s.colorText},children:jsxRuntimeExports.jsx(SvgIcon,{name:"topFill",size:32})}),value:"3"}];return jsxRuntimeExports.jsx(Segmented,{style:{backgroundColor:s.colorBgContainerDisabled},block:!0,value:o,onChange:f=>a(f),options:c})}var AppModeEnum=(o=>(o.DARK="dark",o.LIGHT="light",o))(AppModeEnum||{}),ThemeEnum=(o=>(o.DARK="dark",o.LIGHT="light",o))(ThemeEnum||{}),PageTransitionEnum=(o=>(o.FADE="fade",o.FADE_SIDE="fade-slide",o.FADE_BOTTOM="fade-bottom",o.FADE_SCALE="fade-scale",o.ZOOM_FADE="zoom-fade",o.ZOOM_OUT="zoom-out",o))(PageTransitionEnum||{}),PermissionModeEnum=(o=>(o.MAPPING="MAPPING",o.BACKEND="BACKEND",o))(PermissionModeEnum||{});AppModeEnum.LIGHT;const APP_THEME_COLOR_LIST=[{name:t("薄暮"),color:"#00A76F"},{name:t("火山"),color:"#ff3030"},{name:t("明青"),color:"#078dee"},{name:t("落霞"),color:"#fda92d"},{name:t("极客"),color:"#2065d1"},{name:t("酱紫"),color:"#7635dc"}],Presets=()=>{const{preset:o,setPreset:a}=useGlobalStore(),s=reactExports.useMemo(()=>APP_THEME_COLOR_LIST.map(c=>jsxRuntimeExports.jsx(Col,{span:8,children:jsxRuntimeExports.jsx(Button,{block:!0,size:"large",onClick:()=>a(c.color),children:jsxRuntimeExports.jsx(Badge,{styles:{root:{},indicator:o===c.color?{width:"16px",height:"16px"}:{width:"12px",height:"12px"}},status:o===c.color?"processing":"default",color:c.color})})},c.color)),[APP_THEME_COLOR_LIST,o]);return jsxRuntimeExports.jsx(Row,{gutter:[16,16],children:s})};function SlideTheme(){const{themeMode:o,setThemeMode:a}=useThemeMode(),s=useTheme(),c=[{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:s.colorPrimary},children:jsxRuntimeExports.jsx(SvgIcon,{style:{color:s.colorPrimary},name:"sun",size:18})}),value:"light"},{label:jsxRuntimeExports.jsx("div",{style:{padding:"16px",color:s.colorPrimary},children:jsxRuntimeExports.jsx(SvgIcon,{name:"moon",size:18})}),value:"dark"}];return jsxRuntimeExports.jsx(Segmented,{style:{backgroundColor:s.colorBgContainerDisabled},block:!0,value:o,onChange:f=>a(f),options:c})}const useStyles$8=createStyles(({token:o,isDarkMode:a})=>({driwer:{backdropFilter:"blur(2px) !important",backgroundColor:a?"rgba(0, 0, 0, 0.9) !important":"rgba(255, 255, 255, 0.9) !important",backgroundSize:"50% 50% !important",backgroundRepeat:"no-repeat !important",backgroundImage:`url(${o.paperCyanImg}), url(${o.paperRedImg}) !important`,backgroundPosition:"right top, left bottom !important"}})),{Text:Text$1}=Typography;function Settings(){const{styles:o}=useStyles$8(),[a,s]=reactExports.useState(!1),{hasTabs:c,setHasTabs:f,hasCrumbs:d,setHasCrumbs:y}=useGlobalStore(),_=()=>{s(!1)};return jsxRuntimeExports.jsxs(ErrorBoundary,{children:[jsxRuntimeExports.jsx(Tooltip,{title:t("设置"),placement:"bottom",mouseEnterDelay:.5,children:jsxRuntimeExports.jsx(Button,{shape:"circle",onClick:()=>s(!0),size:"small",icon:jsxRuntimeExports.jsx(SettingOutlined,{})})}),jsxRuntimeExports.jsx(Drawer,{classNames:{content:o.driwer},title:t("设置"),placement:"right",onClose:_,open:a,extra:jsxRuntimeExports.jsx(FullScreen,{}),children:jsxRuntimeExports.jsxs(List,{split:!1,children:[jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("主题")}),description:jsxRuntimeExports.jsx(SlideTheme,{})})}),jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("布局")}),description:jsxRuntimeExports.jsx(LayoutSettings,{})})}),jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("预设")}),description:jsxRuntimeExports.jsx(Presets,{})})}),jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{title:jsxRuntimeExports.jsx(Text$1,{type:"secondary",children:t("内容区域")}),description:jsxRuntimeExports.jsxs(List,{children:[jsxRuntimeExports.jsx(List.Item,{actions:[jsxRuntimeExports.jsx(Switch,{checked:c,onChange:S=>{f(S)}})],children:t("页签")}),jsxRuntimeExports.jsx(List.Item,{actions:[jsxRuntimeExports.jsx(Switch,{checked:d,onChange:S=>{y(S)}})],children:t("面包屑导航")}),jsxRuntimeExports.jsx(List.Item,{actions:[jsxRuntimeExports.jsx(Switch,{defaultChecked:!0,onChange:()=>{}})],children:t("系统名称")})]})})})]})})]})}function useMessage(){const[o,a]=Modal.useModal();return{createMessage:message,createConfirm:o.confirm,contextHolder:a}}var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},s=Symbol("test"),c=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var f=42;a[s]=f;for(s in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var d=Object.getOwnPropertySymbols(a);if(d.length!==1||d[0]!==s||!Object.prototype.propertyIsEnumerable.call(a,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(a,s);if(y.value!==f||y.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol!="undefined"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$1=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function(a,s){for(var c=[],f=0;f1&&typeof s!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,a)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var c=stringToPath(a),f=c.length>0?c[0]:"",d=getBaseIntrinsic("%"+f+"%",s),y=d.name,_=d.value,S=!1,b=d.alias;b&&(f=b[0],$spliceApply(c,$concat$1([0,1],b)));for(var $=1,P=!0;$=c.length){var A=$gOPD$1(_,T);P=!!A,P&&"get"in A&&!("originalValue"in A.get)?_=A.get:_=_[T]}else P=hasOwn$1(_,T),_=_[T];P&&!S&&(INTRINSICS[y]=_)}}return _},callBind$1={exports:{}},GetIntrinsic$5=getIntrinsic,$defineProperty$1=GetIntrinsic$5("%Object.defineProperty%",!0),hasPropertyDescriptors$1=function(){if($defineProperty$1)try{return $defineProperty$1({},"a",{value:1}),!0}catch(a){return!1}return!1};hasPropertyDescriptors$1.hasArrayLengthDefineBug=function(){if(!hasPropertyDescriptors$1())return null;try{return $defineProperty$1([],"length",{value:1}).length!==1}catch(a){return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors$1,GetIntrinsic$4=getIntrinsic,$gOPD=GetIntrinsic$4("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch(o){$gOPD=null}var gopd$1=$gOPD,hasPropertyDescriptors=hasPropertyDescriptors_1(),GetIntrinsic$3=getIntrinsic,$defineProperty=hasPropertyDescriptors&&GetIntrinsic$3("%Object.defineProperty%",!0);if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(o){$defineProperty=!1}var $SyntaxError=GetIntrinsic$3("%SyntaxError%"),$TypeError$2=GetIntrinsic$3("%TypeError%"),gopd=gopd$1,defineDataProperty=function(a,s,c){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError$2("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new $TypeError$2("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$2("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,y=arguments.length>5?arguments[5]:null,_=arguments.length>6?arguments[6]:!1,S=!!gopd&&gopd(a,s);if($defineProperty)$defineProperty(a,s,{configurable:y===null&&S?S.configurable:!y,enumerable:f===null&&S?S.enumerable:!f,value:c,writable:d===null&&S?S.writable:!d});else if(_||!f&&!d&&!y)a[s]=c;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},GetIntrinsic$2=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD=gopd$1,$TypeError$1=GetIntrinsic$2("%TypeError%"),$floor$1=GetIntrinsic$2("%Math.floor%"),setFunctionLength=function(a,s){if(typeof a!="function")throw new $TypeError$1("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||$floor$1(s)!==s)throw new $TypeError$1("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],f=!0,d=!0;if("length"in a&&gOPD){var y=gOPD(a,"length");y&&!y.configurable&&(f=!1),y&&!y.writable&&(d=!1)}return(f||d||!c)&&(hasDescriptors?define(a,"length",s,!0,!0):define(a,"length",s)),a};(function(o){var a=functionBind,s=getIntrinsic,c=setFunctionLength,f=s("%TypeError%"),d=s("%Function.prototype.apply%"),y=s("%Function.prototype.call%"),_=s("%Reflect.apply%",!0)||a.call(y,d),S=s("%Object.defineProperty%",!0),b=s("%Math.max%");if(S)try{S({},"a",{value:1})}catch(P){S=null}o.exports=function(T){if(typeof T!="function")throw new f("a function is required");var C=_(a,y,arguments);return c(C,1+b(0,T.length-(arguments.length-1)),!0)};var $=function(){return _(a,d,arguments)};S?S(o.exports,"apply",{value:$}):o.exports.apply=$})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(a,s){var c=GetIntrinsic$1(a,!!s);return typeof c=="function"&&$indexOf(a,".prototype.")>-1?callBind(c):c};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(o){return o.__proto__}:null);function addNumericSeparator(o,a){if(o===1/0||o===-1/0||o!==o||o&&o>-1e3&&o<1e3||$test.call(/e/,a))return a;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof o=="number"){var c=o<0?-$floor(-o):$floor(o);if(c!==o){var f=String(c),d=$slice.call(a,f.length+1);return $replace.call(f,s,"$&_")+"."+$replace.call($replace.call(d,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(a,s,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function o(a,s,c,f){var d=s||{};if(has$4(d,"quoteStyle")&&d.quoteStyle!=="single"&&d.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(d,"maxStringLength")&&(typeof d.maxStringLength=="number"?d.maxStringLength<0&&d.maxStringLength!==1/0:d.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=has$4(d,"customInspect")?d.customInspect:!0;if(typeof y!="boolean"&&y!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(d,"indent")&&d.indent!==null&&d.indent!==" "&&!(parseInt(d.indent,10)===d.indent&&d.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(d,"numericSeparator")&&typeof d.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _=d.numericSeparator;if(typeof a=="undefined")return"undefined";if(a===null)return"null";if(typeof a=="boolean")return a?"true":"false";if(typeof a=="string")return inspectString(a,d);if(typeof a=="number"){if(a===0)return 1/0/a>0?"0":"-0";var S=String(a);return _?addNumericSeparator(a,S):S}if(typeof a=="bigint"){var b=String(a)+"n";return _?addNumericSeparator(a,b):b}var $=typeof d.depth=="undefined"?5:d.depth;if(typeof c=="undefined"&&(c=0),c>=$&&$>0&&typeof a=="object")return isArray$5(a)?"[Array]":"[Object]";var P=getIndent(d,c);if(typeof f=="undefined")f=[];else if(indexOf(f,a)>=0)return"[Circular]";function T(ee,de,Z){if(de&&(f=$arrSlice.call(f),f.push(de)),Z){var Q={depth:d.depth};return has$4(d,"quoteStyle")&&(Q.quoteStyle=d.quoteStyle),o(ee,Q,c+1,f)}return o(ee,d,c+1,f)}if(typeof a=="function"&&!isRegExp$2(a)){var C=nameOf(a),O=arrObjKeys(a,T);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(O.length>0?" { "+$join.call(O,", ")+" }":"")}if(isSymbol(a)){var A=hasShammedSymbols?$replace.call(String(a),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(a);return typeof a=="object"&&!hasShammedSymbols?markBoxed(A):A}if(isElement(a)){for(var F="<"+$toLowerCase.call(String(a.nodeName)),j=a.attributes||[],L=0;L",F}if(isArray$5(a)){if(a.length===0)return"[]";var M=arrObjKeys(a,T);return P&&!singleLineValues(M)?"["+indentedJoin(M,P)+"]":"[ "+$join.call(M,", ")+" ]"}if(isError(a)){var I=arrObjKeys(a,T);return!("cause"in Error.prototype)&&"cause"in a&&!isEnumerable.call(a,"cause")?"{ ["+String(a)+"] "+$join.call($concat.call("[cause]: "+T(a.cause),I),", ")+" }":I.length===0?"["+String(a)+"]":"{ ["+String(a)+"] "+$join.call(I,", ")+" }"}if(typeof a=="object"&&y){if(inspectSymbol&&typeof a[inspectSymbol]=="function"&&utilInspect)return utilInspect(a,{depth:$-c});if(y!=="symbol"&&typeof a.inspect=="function")return a.inspect()}if(isMap$1(a)){var U=[];return mapForEach&&mapForEach.call(a,function(ee,de){U.push(T(de,a,!0)+" => "+T(ee,a))}),collectionOf("Map",mapSize.call(a),U,P)}if(isSet$1(a)){var z=[];return setForEach&&setForEach.call(a,function(ee){z.push(T(ee,a))}),collectionOf("Set",setSize.call(a),z,P)}if(isWeakMap(a))return weakCollectionOf("WeakMap");if(isWeakSet(a))return weakCollectionOf("WeakSet");if(isWeakRef(a))return weakCollectionOf("WeakRef");if(isNumber$1(a))return markBoxed(T(Number(a)));if(isBigInt(a))return markBoxed(T(bigIntValueOf.call(a)));if(isBoolean$2(a))return markBoxed(booleanValueOf.call(a));if(isString$1(a))return markBoxed(T(String(a)));if(typeof window!="undefined"&&a===window)return"{ [object Window] }";if(a===commonjsGlobal)return"{ [object globalThis] }";if(!isDate$2(a)&&!isRegExp$2(a)){var H=arrObjKeys(a,T),G=gPO?gPO(a)===Object.prototype:a instanceof Object||a.constructor===Object,X=a instanceof Object?"":"null prototype",W=!G&&toStringTag&&Object(a)===a&&toStringTag in a?$slice.call(toStr(a),8,-1):X?"Object":"",K=G||typeof a.constructor!="function"?"":a.constructor.name?a.constructor.name+" ":"",ie=K+(W||X?"["+$join.call($concat.call([],W||[],X||[]),": ")+"] ":"");return H.length===0?ie+"{}":P?ie+"{"+indentedJoin(H,P)+"}":ie+"{ "+$join.call(H,", ")+" }"}return String(a)};function wrapQuotes(o,a,s){var c=(s.quoteStyle||a)==="double"?'"':"'";return c+o+c}function quote(o){return $replace.call(String(o),/"/g,""")}function isArray$5(o){return toStr(o)==="[object Array]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isDate$2(o){return toStr(o)==="[object Date]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isRegExp$2(o){return toStr(o)==="[object RegExp]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isError(o){return toStr(o)==="[object Error]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isString$1(o){return toStr(o)==="[object String]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isNumber$1(o){return toStr(o)==="[object Number]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isBoolean$2(o){return toStr(o)==="[object Boolean]"&&(!toStringTag||!(typeof o=="object"&&toStringTag in o))}function isSymbol(o){if(hasShammedSymbols)return o&&typeof o=="object"&&o instanceof Symbol;if(typeof o=="symbol")return!0;if(!o||typeof o!="object"||!symToString)return!1;try{return symToString.call(o),!0}catch(a){}return!1}function isBigInt(o){if(!o||typeof o!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(o),!0}catch(a){}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(o){return o in this};function has$4(o,a){return hasOwn.call(o,a)}function toStr(o){return objectToString.call(o)}function nameOf(o){if(o.name)return o.name;var a=$match.call(functionToString.call(o),/^function\s*([\w$]+)/);return a?a[1]:null}function indexOf(o,a){if(o.indexOf)return o.indexOf(a);for(var s=0,c=o.length;sa.maxStringLength){var s=o.length-a.maxStringLength,c="... "+s+" more character"+(s>1?"s":"");return inspectString($slice.call(o,0,a.maxStringLength),a)+c}var f=$replace.call($replace.call(o,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(f,"single",a)}function lowbyte(o){var a=o.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[a];return s?"\\"+s:"\\x"+(a<16?"0":"")+$toUpperCase.call(a.toString(16))}function markBoxed(o){return"Object("+o+")"}function weakCollectionOf(o){return o+" { ? }"}function collectionOf(o,a,s,c){var f=c?indentedJoin(s,c):$join.call(s,", ");return o+" ("+a+") {"+f+"}"}function singleLineValues(o){for(var a=0;a=0)return!1;return!0}function getIndent(o,a){var s;if(o.indent===" ")s=" ";else if(typeof o.indent=="number"&&o.indent>0)s=$join.call(Array(o.indent+1)," ");else return null;return{base:s,prev:$join.call(Array(a+1),s)}}function indentedJoin(o,a){if(o.length===0)return"";var s=` `+a.prev+a.base;return s+$join.call(o,","+s)+` -`+a.prev}function arrObjKeys(o,a){var s=isArray$5(o),c=[];if(s){c.length=o.length;for(var f=0;f1;){var s=a.pop(),c=s.obj[s.prop];if(isArray$4(c)){for(var f=[],d=0;d=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||d===formats$2.RFC1738&&(b===40||b===41)){_+=y.charAt(S);continue}if(b<128){_=_+hexTable[b];continue}if(b<2048){_=_+(hexTable[192|b>>6]+hexTable[128|b&63]);continue}if(b<55296||b>=57344){_=_+(hexTable[224|b>>12]+hexTable[128|b>>6&63]+hexTable[128|b&63]);continue}S+=1,b=65536+((b&1023)<<10|y.charCodeAt(S)&1023),_+=hexTable[240|b>>18]+hexTable[128|b>>12&63]+hexTable[128|b>>6&63]+hexTable[128|b&63]}return _},compact=function(a){for(var s=[{obj:{o:a},prop:"o"}],c=[],f=0;f0?j.join(",")||null:void 0}];else if(isArray$3(S))G=S;else{var X=Object.keys(j);G=b?X.sort(b):X}for(var W=f&&isArray$3(j)&&j.length===1?s+"[]":s,K=0;K0?O+C:""},utils$2=utils$4,has$1=Object.prototype.hasOwnProperty,isArray$2=Array.isArray,defaults$2={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$2.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(o){return o.replace(/&#(\d+);/g,function(a,s){return String.fromCharCode(parseInt(s,10))})},parseArrayValue=function(o,a){return o&&typeof o=="string"&&a.comma&&o.indexOf(",")>-1?o.split(","):o},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(a,s){var c={__proto__:null},f=s.ignoreQueryPrefix?a.replace(/^\?/,""):a,d=s.parameterLimit===1/0?void 0:s.parameterLimit,y=f.split(s.delimiter,d),_=-1,S,b=s.charset;if(s.charsetSentinel)for(S=0;S-1&&(O=isArray$2(O)?[O]:O),has$1.call(c,C)?c[C]=utils$2.combine(c[C],O):c[C]=O}return c},parseObject=function(o,a,s,c){for(var f=c?a:parseArrayValue(a,s),d=o.length-1;d>=0;--d){var y,_=o[d];if(_==="[]"&&s.parseArrays)y=[].concat(f);else{y=s.plainObjects?Object.create(null):{};var S=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,b=parseInt(S,10);!s.parseArrays&&S===""?y={0:f}:!isNaN(b)&&_!==S&&String(b)===S&&b>=0&&s.parseArrays&&b<=s.arrayLimit?(y=[],y[b]=f):S!=="__proto__"&&(y[S]=f)}f=y}return f},parseKeys=function(a,s,c,f){if(a){var d=c.allowDots?a.replace(/\.([^.[]+)/g,"[$1]"):a,y=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,S=c.depth>0&&y.exec(d),b=S?d.slice(0,S.index):d,$=[];if(b){if(!c.plainObjects&&has$1.call(Object.prototype,b)&&!c.allowPrototypes)return;$.push(b)}for(var P=0;c.depth>0&&(S=_.exec(d))!==null&&P-1};function normalizeName(o){if(typeof o!="string"&&(o=String(o)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(o)||o==="")throw new TypeError('Invalid character in header field name: "'+o+'"');return o.toLowerCase()}function normalizeValue$1(o){return typeof o!="string"&&(o=String(o)),o}function iteratorFor(o){var a={next:function(){var s=o.shift();return{done:s===void 0,value:s}}};return support.iterable&&(a[Symbol.iterator]=function(){return a}),a}function Headers(o){this.map={},o instanceof Headers?o.forEach(function(a,s){this.append(s,a)},this):Array.isArray(o)?o.forEach(function(a){if(a.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+a.length);this.append(a[0],a[1])},this):o&&Object.getOwnPropertyNames(o).forEach(function(a){this.append(a,o[a])},this)}Headers.prototype.append=function(o,a){o=normalizeName(o),a=normalizeValue$1(a);var s=this.map[o];this.map[o]=s?s+", "+a:a};Headers.prototype.delete=function(o){delete this.map[normalizeName(o)]};Headers.prototype.get=function(o){return o=normalizeName(o),this.has(o)?this.map[o]:null};Headers.prototype.has=function(o){return this.map.hasOwnProperty(normalizeName(o))};Headers.prototype.set=function(o,a){this.map[normalizeName(o)]=normalizeValue$1(a)};Headers.prototype.forEach=function(o,a){for(var s in this.map)this.map.hasOwnProperty(s)&&o.call(a,this.map[s],s,this)};Headers.prototype.keys=function(){var o=[];return this.forEach(function(a,s){o.push(s)}),iteratorFor(o)};Headers.prototype.values=function(){var o=[];return this.forEach(function(a){o.push(a)}),iteratorFor(o)};Headers.prototype.entries=function(){var o=[];return this.forEach(function(a,s){o.push([s,a])}),iteratorFor(o)};support.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);function consumed(o){if(!o._noBody){if(o.bodyUsed)return Promise.reject(new TypeError("Already read"));o.bodyUsed=!0}}function fileReaderReady(o){return new Promise(function(a,s){o.onload=function(){a(o.result)},o.onerror=function(){s(o.error)}})}function readBlobAsArrayBuffer(o){var a=new FileReader,s=fileReaderReady(a);return a.readAsArrayBuffer(o),s}function readBlobAsText(o){var a=new FileReader,s=fileReaderReady(a),c=/charset=([A-Za-z0-9_-]+)/.exec(o.type),f=c?c[1]:"utf-8";return a.readAsText(o,f),s}function readArrayBufferAsText(o){for(var a=new Uint8Array(o),s=new Array(a.length),c=0;c-1?a:o}function Request(o,a){if(!(this instanceof Request))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');a=a||{};var s=a.body;if(o instanceof Request){if(o.bodyUsed)throw new TypeError("Already read");this.url=o.url,this.credentials=o.credentials,a.headers||(this.headers=new Headers(o.headers)),this.method=o.method,this.mode=o.mode,this.signal=o.signal,!s&&o._bodyInit!=null&&(s=o._bodyInit,o.bodyUsed=!0)}else this.url=String(o);if(this.credentials=a.credentials||this.credentials||"same-origin",(a.headers||!this.headers)&&(this.headers=new Headers(a.headers)),this.method=normalizeMethod(a.method||this.method||"GET"),this.mode=a.mode||this.mode||null,this.signal=a.signal||this.signal||function(){if("AbortController"in g){var d=new AbortController;return d.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&s)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),(this.method==="GET"||this.method==="HEAD")&&(a.cache==="no-store"||a.cache==="no-cache")){var c=/([?&])_=[^&]*/;if(c.test(this.url))this.url=this.url.replace(c,"$1_="+new Date().getTime());else{var f=/\?/;this.url+=(f.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(o){var a=new FormData;return o.trim().split("&").forEach(function(s){if(s){var c=s.split("="),f=c.shift().replace(/\+/g," "),d=c.join("=").replace(/\+/g," ");a.append(decodeURIComponent(f),decodeURIComponent(d))}}),a}function parseHeaders$1(o){var a=new Headers,s=o.replace(/\r?\n[\t ]+/g," ");return s.split("\r").map(function(c){return c.indexOf(` +`+a.prev}function arrObjKeys(o,a){var s=isArray$5(o),c=[];if(s){c.length=o.length;for(var f=0;f1;){var s=a.pop(),c=s.obj[s.prop];if(isArray$4(c)){for(var f=[],d=0;d=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||d===formats$2.RFC1738&&(b===40||b===41)){_+=y.charAt(S);continue}if(b<128){_=_+hexTable[b];continue}if(b<2048){_=_+(hexTable[192|b>>6]+hexTable[128|b&63]);continue}if(b<55296||b>=57344){_=_+(hexTable[224|b>>12]+hexTable[128|b>>6&63]+hexTable[128|b&63]);continue}S+=1,b=65536+((b&1023)<<10|y.charCodeAt(S)&1023),_+=hexTable[240|b>>18]+hexTable[128|b>>12&63]+hexTable[128|b>>6&63]+hexTable[128|b&63]}return _},compact=function(a){for(var s=[{obj:{o:a},prop:"o"}],c=[],f=0;f0?j.join(",")||null:void 0}];else if(isArray$3(S))G=S;else{var X=Object.keys(j);G=b?X.sort(b):X}for(var W=f&&isArray$3(j)&&j.length===1?s+"[]":s,K=0;K0?O+C:""},utils$2=utils$4,has$1=Object.prototype.hasOwnProperty,isArray$2=Array.isArray,defaults$2={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$2.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(o){return o.replace(/&#(\d+);/g,function(a,s){return String.fromCharCode(parseInt(s,10))})},parseArrayValue=function(o,a){return o&&typeof o=="string"&&a.comma&&o.indexOf(",")>-1?o.split(","):o},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(a,s){var c={__proto__:null},f=s.ignoreQueryPrefix?a.replace(/^\?/,""):a,d=s.parameterLimit===1/0?void 0:s.parameterLimit,y=f.split(s.delimiter,d),_=-1,S,b=s.charset;if(s.charsetSentinel)for(S=0;S-1&&(O=isArray$2(O)?[O]:O),has$1.call(c,C)?c[C]=utils$2.combine(c[C],O):c[C]=O}return c},parseObject=function(o,a,s,c){for(var f=c?a:parseArrayValue(a,s),d=o.length-1;d>=0;--d){var y,_=o[d];if(_==="[]"&&s.parseArrays)y=[].concat(f);else{y=s.plainObjects?Object.create(null):{};var S=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,b=parseInt(S,10);!s.parseArrays&&S===""?y={0:f}:!isNaN(b)&&_!==S&&String(b)===S&&b>=0&&s.parseArrays&&b<=s.arrayLimit?(y=[],y[b]=f):S!=="__proto__"&&(y[S]=f)}f=y}return f},parseKeys=function(a,s,c,f){if(a){var d=c.allowDots?a.replace(/\.([^.[]+)/g,"[$1]"):a,y=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,S=c.depth>0&&y.exec(d),b=S?d.slice(0,S.index):d,$=[];if(b){if(!c.plainObjects&&has$1.call(Object.prototype,b)&&!c.allowPrototypes)return;$.push(b)}for(var P=0;c.depth>0&&(S=_.exec(d))!==null&&P-1};function normalizeName(o){if(typeof o!="string"&&(o=String(o)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(o)||o==="")throw new TypeError('Invalid character in header field name: "'+o+'"');return o.toLowerCase()}function normalizeValue$1(o){return typeof o!="string"&&(o=String(o)),o}function iteratorFor(o){var a={next:function(){var s=o.shift();return{done:s===void 0,value:s}}};return support.iterable&&(a[Symbol.iterator]=function(){return a}),a}function Headers(o){this.map={},o instanceof Headers?o.forEach(function(a,s){this.append(s,a)},this):Array.isArray(o)?o.forEach(function(a){if(a.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+a.length);this.append(a[0],a[1])},this):o&&Object.getOwnPropertyNames(o).forEach(function(a){this.append(a,o[a])},this)}Headers.prototype.append=function(o,a){o=normalizeName(o),a=normalizeValue$1(a);var s=this.map[o];this.map[o]=s?s+", "+a:a};Headers.prototype.delete=function(o){delete this.map[normalizeName(o)]};Headers.prototype.get=function(o){return o=normalizeName(o),this.has(o)?this.map[o]:null};Headers.prototype.has=function(o){return this.map.hasOwnProperty(normalizeName(o))};Headers.prototype.set=function(o,a){this.map[normalizeName(o)]=normalizeValue$1(a)};Headers.prototype.forEach=function(o,a){for(var s in this.map)this.map.hasOwnProperty(s)&&o.call(a,this.map[s],s,this)};Headers.prototype.keys=function(){var o=[];return this.forEach(function(a,s){o.push(s)}),iteratorFor(o)};Headers.prototype.values=function(){var o=[];return this.forEach(function(a){o.push(a)}),iteratorFor(o)};Headers.prototype.entries=function(){var o=[];return this.forEach(function(a,s){o.push([s,a])}),iteratorFor(o)};support.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);function consumed(o){if(!o._noBody){if(o.bodyUsed)return Promise.reject(new TypeError("Already read"));o.bodyUsed=!0}}function fileReaderReady(o){return new Promise(function(a,s){o.onload=function(){a(o.result)},o.onerror=function(){s(o.error)}})}function readBlobAsArrayBuffer(o){var a=new FileReader,s=fileReaderReady(a);return a.readAsArrayBuffer(o),s}function readBlobAsText(o){var a=new FileReader,s=fileReaderReady(a),c=/charset=([A-Za-z0-9_-]+)/.exec(o.type),f=c?c[1]:"utf-8";return a.readAsText(o,f),s}function readArrayBufferAsText(o){for(var a=new Uint8Array(o),s=new Array(a.length),c=0;c-1?a:o}function Request(o,a){if(!(this instanceof Request))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');a=a||{};var s=a.body;if(o instanceof Request){if(o.bodyUsed)throw new TypeError("Already read");this.url=o.url,this.credentials=o.credentials,a.headers||(this.headers=new Headers(o.headers)),this.method=o.method,this.mode=o.mode,this.signal=o.signal,!s&&o._bodyInit!=null&&(s=o._bodyInit,o.bodyUsed=!0)}else this.url=String(o);if(this.credentials=a.credentials||this.credentials||"same-origin",(a.headers||!this.headers)&&(this.headers=new Headers(a.headers)),this.method=normalizeMethod(a.method||this.method||"GET"),this.mode=a.mode||this.mode||null,this.signal=a.signal||this.signal||function(){if("AbortController"in g){var d=new AbortController;return d.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&s)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),(this.method==="GET"||this.method==="HEAD")&&(a.cache==="no-store"||a.cache==="no-cache")){var c=/([?&])_=[^&]*/;if(c.test(this.url))this.url=this.url.replace(c,"$1_="+new Date().getTime());else{var f=/\?/;this.url+=(f.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(o){var a=new FormData;return o.trim().split("&").forEach(function(s){if(s){var c=s.split("="),f=c.shift().replace(/\+/g," "),d=c.join("=").replace(/\+/g," ");a.append(decodeURIComponent(f),decodeURIComponent(d))}}),a}function parseHeaders$1(o){var a=new Headers,s=o.replace(/\r?\n[\t ]+/g," ");return s.split("\r").map(function(c){return c.indexOf(` `)===0?c.substr(1,c.length):c}).forEach(function(c){var f=c.split(":"),d=f.shift().trim();if(d){var y=f.join(":").trim();try{a.append(d,y)}catch(_){}}}),a}Body.call(Request.prototype);function Response(o,a){if(!(this instanceof Response))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(a||(a={}),this.type="default",this.status=a.status===void 0?200:a.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=a.statusText===void 0?"":""+a.statusText,this.headers=new Headers(a.headers),this.url=a.url||"",this._initBody(o)}Body.call(Response.prototype);Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})};Response.error=function(){var o=new Response(null,{status:200,statusText:""});return o.ok=!1,o.status=0,o.type="error",o};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(o,a){if(redirectStatuses.indexOf(a)===-1)throw new RangeError("Invalid status code");return new Response(null,{status:a,headers:{location:o}})};var DOMException=g.DOMException;try{new DOMException}catch(o){DOMException=function(a,s){this.message=a,this.name=s;var c=Error(a);this.stack=c.stack},DOMException.prototype=Object.create(Error.prototype),DOMException.prototype.constructor=DOMException}function fetch$1(o,a){return new Promise(function(s,c){var f=new Request(o,a);if(f.signal&&f.signal.aborted)return c(new DOMException("Aborted","AbortError"));var d=new XMLHttpRequest;function y(){d.abort()}d.onload=function(){var b={statusText:d.statusText,headers:parseHeaders$1(d.getAllResponseHeaders()||"")};f.url.indexOf("file://")===0&&(d.status<200||d.status>599)?b.status=200:b.status=d.status,b.url="responseURL"in d?d.responseURL:b.headers.get("X-Request-URL");var $="response"in d?d.response:d.responseText;setTimeout(function(){s(new Response($,b))},0)},d.onerror=function(){setTimeout(function(){c(new TypeError("Network request failed"))},0)},d.ontimeout=function(){setTimeout(function(){c(new TypeError("Network request timed out"))},0)},d.onabort=function(){setTimeout(function(){c(new DOMException("Aborted","AbortError"))},0)};function _(b){try{return b===""&&g.location.href?g.location.href:b}catch($){return b}}if(d.open(f.method,_(f.url),!0),f.credentials==="include"?d.withCredentials=!0:f.credentials==="omit"&&(d.withCredentials=!1),"responseType"in d&&(support.blob?d.responseType="blob":support.arrayBuffer&&(d.responseType="arraybuffer")),a&&typeof a.headers=="object"&&!(a.headers instanceof Headers||g.Headers&&a.headers instanceof g.Headers)){var S=[];Object.getOwnPropertyNames(a.headers).forEach(function(b){S.push(normalizeName(b)),d.setRequestHeader(b,normalizeValue$1(a.headers[b]))}),f.headers.forEach(function(b,$){S.indexOf($)===-1&&d.setRequestHeader($,b)})}else f.headers.forEach(function(b,$){d.setRequestHeader($,b)});f.signal&&(f.signal.addEventListener("abort",y),d.onreadystatechange=function(){d.readyState===4&&f.signal.removeEventListener("abort",y)}),d.send(typeof f._bodyInit=="undefined"?null:f._bodyInit)})}fetch$1.polyfill=!0;g.fetch||(g.fetch=fetch$1,g.Headers=Headers,g.Request=Request,g.Response=Response);self.fetch.bind(self);function ownKeys$3(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread2(o){for(var a=1;ao.length)&&(a=o.length);for(var s=0,c=new Array(a);s1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},f=!1,d=!1,y=!1;if(typeof c=="number"?(process&&process.env,f=!0,d=!1):_typeof$2(c)==="object"&&c&&(d=c.global||!1,f=c.core||!1,y=c.defaultInstance||!1),d){o.globalMiddlewares.splice(o.globalMiddlewares.length-o.defaultGlobalMiddlewaresLength,0,s);return}if(f){o.coreMiddlewares.splice(o.coreMiddlewares.length-o.defaultCoreMiddlewaresLength,0,s);return}if(y){this.defaultMiddlewares.push(s);return}this.middlewares.push(s)}},{key:"execute",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=compose$1([].concat(_toConsumableArray$1(this.middlewares),_toConsumableArray$1(this.defaultMiddlewares),_toConsumableArray$1(o.globalMiddlewares),_toConsumableArray$1(o.coreMiddlewares)));return c(s)}}]),o}();Onion.globalMiddlewares=[];Onion.defaultGlobalMiddlewaresLength=0;Onion.coreMiddlewares=[];Onion.defaultCoreMiddlewaresLength=0;var MapCache=function(){function o(a){_classCallCheck(this,o),this.cache=new Map,this.timer={},this.extendOptions(a)}return _createClass(o,[{key:"extendOptions",value:function(s){this.maxCache=s.maxCache||0}},{key:"get",value:function(s){return this.cache.get(JSON.stringify(s))}},{key:"set",value:function(s,c){var f=this,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var y=_toConsumableArray$1(this.cache.keys())[0];this.cache.delete(y),this.timer[y]&&clearTimeout(this.timer[y])}var _=JSON.stringify(s);this.cache.set(_,c),d>0&&(this.timer[_]=setTimeout(function(){f.cache.delete(_),delete f.timer[_]},d))}},{key:"delete",value:function(s){var c=JSON.stringify(s);return delete this.timer[c],this.cache.delete(c)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),o}(),RequestError=function(o){_inherits(s,o);var a=_createSuper(s);function s(c,f){var d,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return _classCallCheck(this,s),d=a.call(this,c),d.name="RequestError",d.request=f,d.type=y,d}return s}(_wrapNativeSuper(Error)),ResponseError=function(o){_inherits(s,o);var a=_createSuper(s);function s(c,f,d,y){var _,S=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return _classCallCheck(this,s),_=a.call(this,f||c.statusText),_.name="ResponseError",_.data=d,_.response=c,_.request=y,_.type=S,_}return s}(_wrapNativeSuper(Error));function readerGBK(o){return new Promise(function(a,s){var c=new FileReader;c.onload=function(){a(c.result)},c.onerror=s,c.readAsText(o,"GBK")})}function safeJsonParse(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(o)}catch(f){if(a)throw new ResponseError(s,"JSON.parse fail",o,c,"ParseError")}return o}function timeout2Throw(o,a,s){return new Promise(function(c,f){setTimeout(function(){f(new RequestError(a||"timeout of ".concat(o,"ms exceeded"),s,"Timeout"))},o)})}function cancel2Throw(o){return new Promise(function(a,s){o.cancelToken&&o.cancelToken.promise.then(function(c){s(c)})})}var toString$1=Object.prototype.toString;function getEnv(){var o;return typeof process!="undefined"&&toString$1.call(process)==="[object process]"&&(o="NODE"),typeof XMLHttpRequest!="undefined"&&(o="BROWSER"),o}function isArray$1(o){return _typeof$2(o)==="object"&&Object.prototype.toString.call(o)==="[object Array]"}function isURLSearchParams$1(o){return typeof URLSearchParams!="undefined"&&o instanceof URLSearchParams}function isDate$1(o){return _typeof$2(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function isObject$1(o){return o!==null&&_typeof$2(o)==="object"}function forEach2ObjArr(o,a){if(o)if(_typeof$2(o)!=="object"&&(o=[o]),isArray$1(o))for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},c=s.prefix,f=s.suffix;return c&&(a="".concat(c).concat(a)),f&&(a="".concat(a).concat(f)),{url:a,options:s}},warnedCoreType=!1;function __defaultValidateCache(o,a){var s=a.method,c=s===void 0?"get":s;return c.toLowerCase()==="get"}function fetchMiddleware(o,a){if(!o)return a();var s=o.req;s=s===void 0?{}:s;var c=s.options,f=c===void 0?{}:c,d=s.url,y=d===void 0?"":d,_=o.cache,S=o.responseInterceptors,b=f.timeout,$=b===void 0?0:b,P=f.timeoutMessage,T=f.__umiRequestCoreType__,C=T===void 0?"normal":T,O=f.useCache,A=O===void 0?!1:O,F=f.method,j=F===void 0?"get":F,I=f.params,M=f.ttl,L=f.validateCache,U=L===void 0?__defaultValidateCache:L;if(C!=="normal")return process&&process.env,a();var z=fetch;if(!z)throw new Error("Global fetch not exist!");var H=getEnv()==="BROWSER",G=U(y,f)&&A&&H;if(G){var X=_.get({url:y,params:I,method:j});if(X)return X=X.clone(),X.useCache=!0,o.res=X,a()}var W;return $>0?W=Promise.race([cancel2Throw(f),z(y,f),timeout2Throw($,P,o.req)]):W=Promise.race([cancel2Throw(f),z(y,f)]),S.forEach(function(K){W=W.then(function(ie){var ee=typeof ie.clone=="function"?ie.clone():ie;return K(ee,f)})}),W.then(function(K){if(G&&K.status===200){var ie=K.clone();ie.useCache=!0,_.set({url:y,params:I,method:j},ie,M)}return o.res=K,a()})}function parseResponseMiddleware(o,a){var s;return a().then(function(){if(o){var c=o.res,f=c===void 0?{}:c,d=o.req,y=d===void 0?{}:d,_=y||{},S=_.options;S=S===void 0?{}:S;var b=S.responseType,$=b===void 0?"json":b,P=S.charset,T=P===void 0?"utf8":P;S.getResponse;var C=S.throwErrIfParseFail,O=C===void 0?!1:C,A=S.parseResponse,F=A===void 0?!0:A;if(F&&!(!f||!f.clone)){if(s=getEnv()==="BROWSER"?f.clone():f,s.useCache=f.useCache||!1,T==="gbk")try{return f.blob().then(readerGBK).then(function(j){return safeJsonParse(j,!1,s,y)})}catch(j){throw new ResponseError(s,j.message,null,y,"ParseError")}else if($==="json")return f.text().then(function(j){return safeJsonParse(j,O,s,y)});try{return f[$]()}catch(j){throw new ResponseError(s,"responseType not support",null,y,"ParseError")}}}}).then(function(c){if(o){o.res;var f=o.req,d=f===void 0?{}:f,y=d||{},_=y.options;_=_===void 0?{}:_;var S=_.getResponse,b=S===void 0?!1:S;if(s){if(s.status>=200&&s.status<300){if(b){o.res={data:c,response:s};return}o.res=c;return}throw new ResponseError(s,"http error",c,d,"HttpError")}}}).catch(function(c){if(c instanceof RequestError||c instanceof ResponseError)throw c;var f=o.req,d=o.res;throw c.request=c.request||f,c.response=c.response||d,c.type=c.type||c.name,c.data=c.data||void 0,c})}function simplePostMiddleware(o,a){if(!o)return a();var s=o.req;s=s===void 0?{}:s;var c=s.options,f=c===void 0?{}:c,d=f.method,y=d===void 0?"get":d;if(["post","put","patch","delete"].indexOf(y.toLowerCase())===-1)return a();var _=f.requestType,S=_===void 0?"json":_,b=f.data;if(b){var $=Object.prototype.toString.call(b);$==="[object Object]"||$==="[object Array]"?S==="json"?(f.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},f.headers),f.body=JSON.stringify(b)):S==="form"&&(f.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},f.headers),f.body=reqStringify(b)):(f.headers=_objectSpread2({Accept:"application/json"},f.headers),f.body=b)}return o.req.options=f,a()}function paramsSerialize(o,a){var s,c;if(o)if(a)s=a(o);else if(isURLSearchParams$1(o))s=o.toString();else if(isArray$1(o))c=[],forEach2ObjArr(o,function(d){d===null||typeof d=="undefined"?c.push(d):c.push(isObject$1(d)?JSON.stringify(d):d)}),s=reqStringify(c);else{c={},forEach2ObjArr(o,function(d,y){var _=d;d===null||typeof d=="undefined"?c[y]=d:isDate$1(d)?_=d.toISOString():isArray$1(d)?_=d:isObject$1(d)&&(_=JSON.stringify(d)),c[y]=_});var f=reqStringify(c);s=f}return s}function simpleGetMiddleware(o,a){if(!o)return a();var s=o.req;s=s===void 0?{}:s;var c=s.options,f=c===void 0?{}:c,d=f.paramsSerializer,y=f.params,_=o.req;_=_===void 0?{}:_;var S=_.url,b=S===void 0?"":S;f.method=f.method?f.method.toUpperCase():"GET",f.credentials=f.credentials||"same-origin";var $=paramsSerialize(y,d);if(o.req.originUrl=b,$){var P=b.indexOf("?")!==-1?"&":"?";o.req.url="".concat(b).concat(P).concat($)}return o.req.options=f,a()}var globalMiddlewares=[simplePostMiddleware,simpleGetMiddleware,parseResponseMiddleware],coreMiddlewares=[fetchMiddleware];Onion.globalMiddlewares=globalMiddlewares;Onion.defaultGlobalMiddlewaresLength=globalMiddlewares.length;Onion.coreMiddlewares=coreMiddlewares;Onion.defaultCoreMiddlewaresLength=coreMiddlewares.length;var Core=function(){function o(a){_classCallCheck(this,o),this.onion=new Onion([]),this.fetchIndex=0,this.mapCache=new MapCache(a),this.initOptions=a,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return _createClass(o,[{key:"use",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(s,c),this}},{key:"extendOptions",value:function(s){this.initOptions=mergeRequestOptions(this.initOptions,s),this.mapCache.extendOptions(s)}},{key:"dealRequestInterceptors",value:function(s){var c=function(y,_){return y.then(function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return s.req.url=S.url||s.req.url,s.req.options=S.options||s.req.options,_(s.req.url,s.req.options)})},f=[].concat(_toConsumableArray$1(o.requestInterceptors),_toConsumableArray$1(this.instanceRequestInterceptors));return f.reduce(c,Promise.resolve()).then(function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return s.req.url=d.url||s.req.url,s.req.options=d.options||s.req.options,Promise.resolve()})}},{key:"request",value:function(s,c){var f=this,d=this.onion,y={req:{url:s,options:_objectSpread2(_objectSpread2({},c),{},{url:s})},res:null,cache:this.mapCache,responseInterceptors:[].concat(_toConsumableArray$1(o.responseInterceptors),_toConsumableArray$1(this.instanceResponseInterceptors))};if(typeof s!="string")throw new Error("url MUST be a string");return new Promise(function(_,S){f.dealRequestInterceptors(y).then(function(){return d.execute(y)}).then(function(){_(y.res)}).catch(function(b){var $=y.req.options.errorHandler;if($)try{var P=$(b);_(P)}catch(T){S(T)}else S(b)})})}}],[{key:"requestUse",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof s!="function")throw new TypeError("Interceptor must be function!");c.global?o.requestInterceptors.push(s):this.instanceRequestInterceptors.push(s)}},{key:"responseUse",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof s!="function")throw new TypeError("Interceptor must be function!");c.global?o.responseInterceptors.push(s):this.instanceResponseInterceptors.push(s)}}]),o}();Core.requestInterceptors=[addfix];Core.responseInterceptors=[];function Cancel(o){this.message=o}Cancel.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"};Cancel.prototype.__CANCEL__=!0;function CancelToken$2(o){if(typeof o!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(f){a=f});var s=this;o(function(f){s.reason||(s.reason=new Cancel(f),a(s.reason))})}CancelToken$2.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};CancelToken$2.source=function(){var a,s=new CancelToken$2(function(f){a=f});return{token:s,cancel:a}};function isCancel$1(o){return!!(o&&o.__CANCEL__)}var request=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=new Core(a),c=function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=mergeRequestOptions(s.initOptions,_);return s.request(y,S)};c.use=s.use.bind(s),c.fetchIndex=s.fetchIndex,c.interceptors={request:{use:Core.requestUse.bind(s)},response:{use:Core.responseUse.bind(s)}};var f=["get","post","delete","put","patch","head","options","rpc"];return f.forEach(function(d){c[d]=function(y,_){return c(y,_objectSpread2(_objectSpread2({},_),{},{method:d}))}}),c.Cancel=Cancel,c.CancelToken=CancelToken$2,c.isCancel=isCancel$1,c.extendOptions=s.extendOptions.bind(s),c.middlewares={instance:s.onion.middlewares,defaultInstance:s.onion.defaultMiddlewares,global:Onion.globalMiddlewares,core:Onion.coreMiddlewares},c},extend$1=function(a){return request(a)};request({parseResponse:!1});request({});var ResultEnum=(o=>(o[o.SUCCESS=0]="SUCCESS",o[o.ERROR=-1]="ERROR",o[o.TIMEOUT=401]="TIMEOUT",o.TYPE="success",o))(ResultEnum||{}),RequestEnum=(o=>(o.GET="GET",o.POST="POST",o.PUT="PUT",o.DELETE="DELETE",o))(RequestEnum||{}),ContentTypeEnum=(o=>(o.JSON="application/json;charset=UTF-8",o.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",o.FORM_DATA="multipart/form-data;charset=UTF-8",o))(ContentTypeEnum||{}),StorageEnum=(o=>(o.Token="token",o))(StorageEnum||{});function bind(o,a){return function(){return o.apply(a,arguments)}}const{toString}=Object.prototype,{getPrototypeOf:getPrototypeOf$1}=Object,kindOf=(o=>a=>{const s=toString.call(a);return o[s]||(o[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=o=>(o=o.toLowerCase(),a=>kindOf(a)===o),typeOfTest=o=>a=>typeof a===o,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(o){return o!==null&&!isUndefined(o)&&o.constructor!==null&&!isUndefined(o.constructor)&&isFunction(o.constructor.isBuffer)&&o.constructor.isBuffer(o)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(o){let a;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?a=ArrayBuffer.isView(o):a=o&&o.buffer&&isArrayBuffer(o.buffer),a}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=o=>o!==null&&typeof o=="object",isBoolean$1=o=>o===!0||o===!1,isPlainObject$3=o=>{if(kindOf(o)!=="object")return!1;const a=getPrototypeOf$1(o);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in o)&&!(Symbol.iterator in o)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=o=>isObject(o)&&isFunction(o.pipe),isFormData=o=>{let a;return o&&(typeof FormData=="function"&&o instanceof FormData||isFunction(o.append)&&((a=kindOf(o))==="formdata"||a==="object"&&isFunction(o.toString)&&o.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=o=>o.trim?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(o,a,{allOwnKeys:s=!1}={}){if(o===null||typeof o=="undefined")return;let c,f;if(typeof o!="object"&&(o=[o]),isArray(o))for(c=0,f=o.length;c0;)if(f=s[c],a===f.toLowerCase())return f;return null}const _global=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),isContextDefined=o=>!isUndefined(o)&&o!==_global;function merge(){const{caseless:o}=isContextDefined(this)&&this||{},a={},s=(c,f)=>{const d=o&&findKey(a,f)||f;isPlainObject$3(a[d])&&isPlainObject$3(c)?a[d]=merge(a[d],c):isPlainObject$3(c)?a[d]=merge({},c):isArray(c)?a[d]=c.slice():a[d]=c};for(let c=0,f=arguments.length;c(forEach(a,(f,d)=>{s&&isFunction(f)?o[d]=bind(f,s):o[d]=f},{allOwnKeys:c}),o),stripBOM=o=>(o.charCodeAt(0)===65279&&(o=o.slice(1)),o),inherits=(o,a,s,c)=>{o.prototype=Object.create(a.prototype,c),o.prototype.constructor=o,Object.defineProperty(o,"super",{value:a.prototype}),s&&Object.assign(o.prototype,s)},toFlatObject=(o,a,s,c)=>{let f,d,y;const _={};if(a=a||{},o==null)return a;do{for(f=Object.getOwnPropertyNames(o),d=f.length;d-- >0;)y=f[d],(!c||c(y,o,a))&&!_[y]&&(a[y]=o[y],_[y]=!0);o=s!==!1&&getPrototypeOf$1(o)}while(o&&(!s||s(o,a))&&o!==Object.prototype);return a},endsWith=(o,a,s)=>{o=String(o),(s===void 0||s>o.length)&&(s=o.length),s-=a.length;const c=o.indexOf(a,s);return c!==-1&&c===s},toArray=o=>{if(!o)return null;if(isArray(o))return o;let a=o.length;if(!isNumber(a))return null;const s=new Array(a);for(;a-- >0;)s[a]=o[a];return s},isTypedArray=(o=>a=>o&&a instanceof o)(typeof Uint8Array!="undefined"&&getPrototypeOf$1(Uint8Array)),forEachEntry=(o,a)=>{const c=(o&&o[Symbol.iterator]).call(o);let f;for(;(f=c.next())&&!f.done;){const d=f.value;a.call(o,d[0],d[1])}},matchAll=(o,a)=>{let s;const c=[];for(;(s=o.exec(a))!==null;)c.push(s);return c},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=o=>o.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,c,f){return c.toUpperCase()+f}),hasOwnProperty=(({hasOwnProperty:o})=>(a,s)=>o.call(a,s))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(o,a)=>{const s=Object.getOwnPropertyDescriptors(o),c={};forEach(s,(f,d)=>{let y;(y=a(f,d,o))!==!1&&(c[d]=y||f)}),Object.defineProperties(o,c)},freezeMethods=o=>{reduceDescriptors(o,(a,s)=>{if(isFunction(o)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const c=o[s];if(isFunction(c)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},toObjectSet=(o,a)=>{const s={},c=f=>{f.forEach(d=>{s[d]=!0})};return isArray(o)?c(o):c(String(o).split(a)),s},noop$2=()=>{},toFiniteNumber=(o,a)=>(o=+o,Number.isFinite(o)?o:a),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(o=16,a=ALPHABET.ALPHA_DIGIT)=>{let s="";const{length:c}=a;for(;o--;)s+=a[Math.random()*c|0];return s};function isSpecCompliantForm(o){return!!(o&&isFunction(o.append)&&o[Symbol.toStringTag]==="FormData"&&o[Symbol.iterator])}const toJSONObject=o=>{const a=new Array(10),s=(c,f)=>{if(isObject(c)){if(a.indexOf(c)>=0)return;if(!("toJSON"in c)){a[f]=c;const d=isArray(c)?[]:{};return forEach(c,(y,_)=>{const S=s(y,f+1);!isUndefined(S)&&(d[_]=S)}),a[f]=void 0,d}}return c};return s(o,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable$1=o=>o&&(isObject(o)||isFunction(o))&&isFunction(o.then)&&isFunction(o.catch),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean:isBoolean$1,isObject,isPlainObject:isPlainObject$3,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$2,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable:isThenable$1};function AxiosError(o,a,s,c,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",a&&(this.code=a),s&&(this.config=s),c&&(this.request=c),f&&(this.response=f)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(o=>{descriptors[o]={value:o}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(o,a,s,c,f,d)=>{const y=Object.create(prototype$1);return utils$1.toFlatObject(o,y,function(S){return S!==Error.prototype},_=>_!=="isAxiosError"),AxiosError.call(y,o.message,a,s,c,f),y.cause=o,y.name=o.name,d&&Object.assign(y,d),y};const httpAdapter=null;function isVisitable(o){return utils$1.isPlainObject(o)||utils$1.isArray(o)}function removeBrackets(o){return utils$1.endsWith(o,"[]")?o.slice(0,-2):o}function renderKey(o,a,s){return o?o.concat(a).map(function(f,d){return f=removeBrackets(f),!s&&d?"["+f+"]":f}).join(s?".":""):a}function isFlatArray(o){return utils$1.isArray(o)&&!o.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(a){return/^is[A-Z]/.test(a)});function toFormData(o,a,s){if(!utils$1.isObject(o))throw new TypeError("target must be an object");a=a||new FormData,s=utils$1.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,F){return!utils$1.isUndefined(F[A])});const c=s.metaTokens,f=s.visitor||$,d=s.dots,y=s.indexes,S=(s.Blob||typeof Blob!="undefined"&&Blob)&&utils$1.isSpecCompliantForm(a);if(!utils$1.isFunction(f))throw new TypeError("visitor must be a function");function b(O){if(O===null)return"";if(utils$1.isDate(O))return O.toISOString();if(!S&&utils$1.isBlob(O))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(O)||utils$1.isTypedArray(O)?S&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function $(O,A,F){let j=O;if(O&&!F&&typeof O=="object"){if(utils$1.endsWith(A,"{}"))A=c?A:A.slice(0,-2),O=JSON.stringify(O);else if(utils$1.isArray(O)&&isFlatArray(O)||(utils$1.isFileList(O)||utils$1.endsWith(A,"[]"))&&(j=utils$1.toArray(O)))return A=removeBrackets(A),j.forEach(function(M,L){!(utils$1.isUndefined(M)||M===null)&&a.append(y===!0?renderKey([A],L,d):y===null?A:A+"[]",b(M))}),!1}return isVisitable(O)?!0:(a.append(renderKey(F,A,d),b(O)),!1)}const P=[],T=Object.assign(predicates,{defaultVisitor:$,convertValue:b,isVisitable});function C(O,A){if(!utils$1.isUndefined(O)){if(P.indexOf(O)!==-1)throw Error("Circular reference detected in "+A.join("."));P.push(O),utils$1.forEach(O,function(j,I){(!(utils$1.isUndefined(j)||j===null)&&f.call(a,j,utils$1.isString(I)?I.trim():I,A,T))===!0&&C(j,A?A.concat(I):[I])}),P.pop()}}if(!utils$1.isObject(o))throw new TypeError("data must be an object");return C(o),a}function encode$1(o){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'()~]|%20|%00/g,function(c){return a[c]})}function AxiosURLSearchParams(o,a){this._pairs=[],o&&toFormData(o,this,a)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(a,s){this._pairs.push([a,s])};prototype.toString=function(a){const s=a?function(c){return a.call(this,c,encode$1)}:encode$1;return this._pairs.map(function(f){return s(f[0])+"="+s(f[1])},"").join("&")};function encode(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(o,a,s){if(!a)return o;const c=s&&s.encode||encode,f=s&&s.serialize;let d;if(f?d=f(a,s):d=utils$1.isURLSearchParams(a)?a.toString():new AxiosURLSearchParams(a,s).toString(c),d){const y=o.indexOf("#");y!==-1&&(o=o.slice(0,y)),o+=(o.indexOf("?")===-1?"?":"&")+d}return o}class InterceptorManager{constructor(){this.handlers=[]}use(a,s,c){return this.handlers.push({fulfilled:a,rejected:s,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){utils$1.forEach(this.handlers,function(c){c!==null&&a(c)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams!="undefined"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData!="undefined"?FormData:null,Blob$1=typeof Blob!="undefined"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window!="undefined"&&typeof document!="undefined",hasStandardBrowserEnv=(o=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(o)<0)(typeof navigator!="undefined"&&navigator.product),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"})),platform=se(se({},utils),platform$1);function toURLEncodedForm(o,a){return toFormData(o,new platform.classes.URLSearchParams,Object.assign({visitor:function(s,c,f,d){return platform.isNode&&utils$1.isBuffer(s)?(this.append(c,s.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},a))}function parsePropPath(o){return utils$1.matchAll(/\w+|\[(\w*)]/g,o).map(a=>a[0]==="[]"?"":a[1]||a[0])}function arrayToObject(o){const a={},s=Object.keys(o);let c;const f=s.length;let d;for(c=0;c=s.length;return y=!y&&utils$1.isArray(f)?f.length:y,S?(utils$1.hasOwnProp(f,y)?f[y]=[f[y],c]:f[y]=c,!_):((!f[y]||!utils$1.isObject(f[y]))&&(f[y]=[]),a(s,c,f[y],d)&&utils$1.isArray(f[y])&&(f[y]=arrayToObject(f[y])),!_)}if(utils$1.isFormData(o)&&utils$1.isFunction(o.entries)){const s={};return utils$1.forEachEntry(o,(c,f)=>{a(parsePropPath(c),f,s,0)}),s}return null}function stringifySafely(o,a,s){if(utils$1.isString(o))try{return(a||JSON.parse)(o),utils$1.trim(o)}catch(c){if(c.name!=="SyntaxError")throw c}return(s||JSON.stringify)(o)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(a,s){const c=s.getContentType()||"",f=c.indexOf("application/json")>-1,d=utils$1.isObject(a);if(d&&utils$1.isHTMLForm(a)&&(a=new FormData(a)),utils$1.isFormData(a))return f&&f?JSON.stringify(formDataToJSON(a)):a;if(utils$1.isArrayBuffer(a)||utils$1.isBuffer(a)||utils$1.isStream(a)||utils$1.isFile(a)||utils$1.isBlob(a))return a;if(utils$1.isArrayBufferView(a))return a.buffer;if(utils$1.isURLSearchParams(a))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let _;if(d){if(c.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(a,this.formSerializer).toString();if((_=utils$1.isFileList(a))||c.indexOf("multipart/form-data")>-1){const S=this.env&&this.env.FormData;return toFormData(_?{"files[]":a}:a,S&&new S,this.formSerializer)}}return d||f?(s.setContentType("application/json",!1),stringifySafely(a)):a}],transformResponse:[function(a){const s=this.transitional||defaults.transitional,c=s&&s.forcedJSONParsing,f=this.responseType==="json";if(a&&utils$1.isString(a)&&(c&&!this.responseType||f)){const y=!(s&&s.silentJSONParsing)&&f;try{return JSON.parse(a)}catch(_){if(y)throw _.name==="SyntaxError"?AxiosError.from(_,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):_}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],o=>{defaults.headers[o]={}});const defaults$1=defaults,ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=o=>{const a={};let s,c,f;return o&&o.split(` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function compose$1(o){if(!Array.isArray(o))throw new TypeError("Middlewares must be an array!");for(var a=o.length,s=0;s1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},f=!1,d=!1,y=!1;if(typeof c=="number"?(process&&process.env,f=!0,d=!1):_typeof$2(c)==="object"&&c&&(d=c.global||!1,f=c.core||!1,y=c.defaultInstance||!1),d){o.globalMiddlewares.splice(o.globalMiddlewares.length-o.defaultGlobalMiddlewaresLength,0,s);return}if(f){o.coreMiddlewares.splice(o.coreMiddlewares.length-o.defaultCoreMiddlewaresLength,0,s);return}if(y){this.defaultMiddlewares.push(s);return}this.middlewares.push(s)}},{key:"execute",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=compose$1([].concat(_toConsumableArray$1(this.middlewares),_toConsumableArray$1(this.defaultMiddlewares),_toConsumableArray$1(o.globalMiddlewares),_toConsumableArray$1(o.coreMiddlewares)));return c(s)}}]),o}();Onion.globalMiddlewares=[];Onion.defaultGlobalMiddlewaresLength=0;Onion.coreMiddlewares=[];Onion.defaultCoreMiddlewaresLength=0;var MapCache=function(){function o(a){_classCallCheck(this,o),this.cache=new Map,this.timer={},this.extendOptions(a)}return _createClass(o,[{key:"extendOptions",value:function(s){this.maxCache=s.maxCache||0}},{key:"get",value:function(s){return this.cache.get(JSON.stringify(s))}},{key:"set",value:function(s,c){var f=this,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var y=_toConsumableArray$1(this.cache.keys())[0];this.cache.delete(y),this.timer[y]&&clearTimeout(this.timer[y])}var _=JSON.stringify(s);this.cache.set(_,c),d>0&&(this.timer[_]=setTimeout(function(){f.cache.delete(_),delete f.timer[_]},d))}},{key:"delete",value:function(s){var c=JSON.stringify(s);return delete this.timer[c],this.cache.delete(c)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),o}(),RequestError=function(o){_inherits(s,o);var a=_createSuper(s);function s(c,f){var d,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return _classCallCheck(this,s),d=a.call(this,c),d.name="RequestError",d.request=f,d.type=y,d}return s}(_wrapNativeSuper(Error)),ResponseError=function(o){_inherits(s,o);var a=_createSuper(s);function s(c,f,d,y){var _,S=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return _classCallCheck(this,s),_=a.call(this,f||c.statusText),_.name="ResponseError",_.data=d,_.response=c,_.request=y,_.type=S,_}return s}(_wrapNativeSuper(Error));function readerGBK(o){return new Promise(function(a,s){var c=new FileReader;c.onload=function(){a(c.result)},c.onerror=s,c.readAsText(o,"GBK")})}function safeJsonParse(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(o)}catch(f){if(a)throw new ResponseError(s,"JSON.parse fail",o,c,"ParseError")}return o}function timeout2Throw(o,a,s){return new Promise(function(c,f){setTimeout(function(){f(new RequestError(a||"timeout of ".concat(o,"ms exceeded"),s,"Timeout"))},o)})}function cancel2Throw(o){return new Promise(function(a,s){o.cancelToken&&o.cancelToken.promise.then(function(c){s(c)})})}var toString$1=Object.prototype.toString;function getEnv(){var o;return typeof process!="undefined"&&toString$1.call(process)==="[object process]"&&(o="NODE"),typeof XMLHttpRequest!="undefined"&&(o="BROWSER"),o}function isArray$1(o){return _typeof$2(o)==="object"&&Object.prototype.toString.call(o)==="[object Array]"}function isURLSearchParams$1(o){return typeof URLSearchParams!="undefined"&&o instanceof URLSearchParams}function isDate$1(o){return _typeof$2(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function isObject$1(o){return o!==null&&_typeof$2(o)==="object"}function forEach2ObjArr(o,a){if(o)if(_typeof$2(o)!=="object"&&(o=[o]),isArray$1(o))for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},c=s.prefix,f=s.suffix;return c&&(a="".concat(c).concat(a)),f&&(a="".concat(a).concat(f)),{url:a,options:s}},warnedCoreType=!1;function __defaultValidateCache(o,a){var s=a.method,c=s===void 0?"get":s;return c.toLowerCase()==="get"}function fetchMiddleware(o,a){if(!o)return a();var s=o.req;s=s===void 0?{}:s;var c=s.options,f=c===void 0?{}:c,d=s.url,y=d===void 0?"":d,_=o.cache,S=o.responseInterceptors,b=f.timeout,$=b===void 0?0:b,P=f.timeoutMessage,T=f.__umiRequestCoreType__,C=T===void 0?"normal":T,O=f.useCache,A=O===void 0?!1:O,F=f.method,j=F===void 0?"get":F,L=f.params,M=f.ttl,I=f.validateCache,U=I===void 0?__defaultValidateCache:I;if(C!=="normal")return process&&process.env,a();var z=fetch;if(!z)throw new Error("Global fetch not exist!");var H=getEnv()==="BROWSER",G=U(y,f)&&A&&H;if(G){var X=_.get({url:y,params:L,method:j});if(X)return X=X.clone(),X.useCache=!0,o.res=X,a()}var W;return $>0?W=Promise.race([cancel2Throw(f),z(y,f),timeout2Throw($,P,o.req)]):W=Promise.race([cancel2Throw(f),z(y,f)]),S.forEach(function(K){W=W.then(function(ie){var ee=typeof ie.clone=="function"?ie.clone():ie;return K(ee,f)})}),W.then(function(K){if(G&&K.status===200){var ie=K.clone();ie.useCache=!0,_.set({url:y,params:L,method:j},ie,M)}return o.res=K,a()})}function parseResponseMiddleware(o,a){var s;return a().then(function(){if(o){var c=o.res,f=c===void 0?{}:c,d=o.req,y=d===void 0?{}:d,_=y||{},S=_.options;S=S===void 0?{}:S;var b=S.responseType,$=b===void 0?"json":b,P=S.charset,T=P===void 0?"utf8":P;S.getResponse;var C=S.throwErrIfParseFail,O=C===void 0?!1:C,A=S.parseResponse,F=A===void 0?!0:A;if(F&&!(!f||!f.clone)){if(s=getEnv()==="BROWSER"?f.clone():f,s.useCache=f.useCache||!1,T==="gbk")try{return f.blob().then(readerGBK).then(function(j){return safeJsonParse(j,!1,s,y)})}catch(j){throw new ResponseError(s,j.message,null,y,"ParseError")}else if($==="json")return f.text().then(function(j){return safeJsonParse(j,O,s,y)});try{return f[$]()}catch(j){throw new ResponseError(s,"responseType not support",null,y,"ParseError")}}}}).then(function(c){if(o){o.res;var f=o.req,d=f===void 0?{}:f,y=d||{},_=y.options;_=_===void 0?{}:_;var S=_.getResponse,b=S===void 0?!1:S;if(s){if(s.status>=200&&s.status<300){if(b){o.res={data:c,response:s};return}o.res=c;return}throw new ResponseError(s,"http error",c,d,"HttpError")}}}).catch(function(c){if(c instanceof RequestError||c instanceof ResponseError)throw c;var f=o.req,d=o.res;throw c.request=c.request||f,c.response=c.response||d,c.type=c.type||c.name,c.data=c.data||void 0,c})}function simplePostMiddleware(o,a){if(!o)return a();var s=o.req;s=s===void 0?{}:s;var c=s.options,f=c===void 0?{}:c,d=f.method,y=d===void 0?"get":d;if(["post","put","patch","delete"].indexOf(y.toLowerCase())===-1)return a();var _=f.requestType,S=_===void 0?"json":_,b=f.data;if(b){var $=Object.prototype.toString.call(b);$==="[object Object]"||$==="[object Array]"?S==="json"?(f.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},f.headers),f.body=JSON.stringify(b)):S==="form"&&(f.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},f.headers),f.body=reqStringify(b)):(f.headers=_objectSpread2({Accept:"application/json"},f.headers),f.body=b)}return o.req.options=f,a()}function paramsSerialize(o,a){var s,c;if(o)if(a)s=a(o);else if(isURLSearchParams$1(o))s=o.toString();else if(isArray$1(o))c=[],forEach2ObjArr(o,function(d){d===null||typeof d=="undefined"?c.push(d):c.push(isObject$1(d)?JSON.stringify(d):d)}),s=reqStringify(c);else{c={},forEach2ObjArr(o,function(d,y){var _=d;d===null||typeof d=="undefined"?c[y]=d:isDate$1(d)?_=d.toISOString():isArray$1(d)?_=d:isObject$1(d)&&(_=JSON.stringify(d)),c[y]=_});var f=reqStringify(c);s=f}return s}function simpleGetMiddleware(o,a){if(!o)return a();var s=o.req;s=s===void 0?{}:s;var c=s.options,f=c===void 0?{}:c,d=f.paramsSerializer,y=f.params,_=o.req;_=_===void 0?{}:_;var S=_.url,b=S===void 0?"":S;f.method=f.method?f.method.toUpperCase():"GET",f.credentials=f.credentials||"same-origin";var $=paramsSerialize(y,d);if(o.req.originUrl=b,$){var P=b.indexOf("?")!==-1?"&":"?";o.req.url="".concat(b).concat(P).concat($)}return o.req.options=f,a()}var globalMiddlewares=[simplePostMiddleware,simpleGetMiddleware,parseResponseMiddleware],coreMiddlewares=[fetchMiddleware];Onion.globalMiddlewares=globalMiddlewares;Onion.defaultGlobalMiddlewaresLength=globalMiddlewares.length;Onion.coreMiddlewares=coreMiddlewares;Onion.defaultCoreMiddlewaresLength=coreMiddlewares.length;var Core=function(){function o(a){_classCallCheck(this,o),this.onion=new Onion([]),this.fetchIndex=0,this.mapCache=new MapCache(a),this.initOptions=a,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return _createClass(o,[{key:"use",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(s,c),this}},{key:"extendOptions",value:function(s){this.initOptions=mergeRequestOptions(this.initOptions,s),this.mapCache.extendOptions(s)}},{key:"dealRequestInterceptors",value:function(s){var c=function(y,_){return y.then(function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return s.req.url=S.url||s.req.url,s.req.options=S.options||s.req.options,_(s.req.url,s.req.options)})},f=[].concat(_toConsumableArray$1(o.requestInterceptors),_toConsumableArray$1(this.instanceRequestInterceptors));return f.reduce(c,Promise.resolve()).then(function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return s.req.url=d.url||s.req.url,s.req.options=d.options||s.req.options,Promise.resolve()})}},{key:"request",value:function(s,c){var f=this,d=this.onion,y={req:{url:s,options:_objectSpread2(_objectSpread2({},c),{},{url:s})},res:null,cache:this.mapCache,responseInterceptors:[].concat(_toConsumableArray$1(o.responseInterceptors),_toConsumableArray$1(this.instanceResponseInterceptors))};if(typeof s!="string")throw new Error("url MUST be a string");return new Promise(function(_,S){f.dealRequestInterceptors(y).then(function(){return d.execute(y)}).then(function(){_(y.res)}).catch(function(b){var $=y.req.options.errorHandler;if($)try{var P=$(b);_(P)}catch(T){S(T)}else S(b)})})}}],[{key:"requestUse",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof s!="function")throw new TypeError("Interceptor must be function!");c.global?o.requestInterceptors.push(s):this.instanceRequestInterceptors.push(s)}},{key:"responseUse",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof s!="function")throw new TypeError("Interceptor must be function!");c.global?o.responseInterceptors.push(s):this.instanceResponseInterceptors.push(s)}}]),o}();Core.requestInterceptors=[addfix];Core.responseInterceptors=[];function Cancel(o){this.message=o}Cancel.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"};Cancel.prototype.__CANCEL__=!0;function CancelToken$2(o){if(typeof o!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(f){a=f});var s=this;o(function(f){s.reason||(s.reason=new Cancel(f),a(s.reason))})}CancelToken$2.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};CancelToken$2.source=function(){var a,s=new CancelToken$2(function(f){a=f});return{token:s,cancel:a}};function isCancel$1(o){return!!(o&&o.__CANCEL__)}var request=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=new Core(a),c=function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=mergeRequestOptions(s.initOptions,_);return s.request(y,S)};c.use=s.use.bind(s),c.fetchIndex=s.fetchIndex,c.interceptors={request:{use:Core.requestUse.bind(s)},response:{use:Core.responseUse.bind(s)}};var f=["get","post","delete","put","patch","head","options","rpc"];return f.forEach(function(d){c[d]=function(y,_){return c(y,_objectSpread2(_objectSpread2({},_),{},{method:d}))}}),c.Cancel=Cancel,c.CancelToken=CancelToken$2,c.isCancel=isCancel$1,c.extendOptions=s.extendOptions.bind(s),c.middlewares={instance:s.onion.middlewares,defaultInstance:s.onion.defaultMiddlewares,global:Onion.globalMiddlewares,core:Onion.coreMiddlewares},c},extend$1=function(a){return request(a)};request({parseResponse:!1});request({});var ResultEnum=(o=>(o[o.SUCCESS=0]="SUCCESS",o[o.ERROR=-1]="ERROR",o[o.TIMEOUT=401]="TIMEOUT",o.TYPE="success",o))(ResultEnum||{}),RequestEnum=(o=>(o.GET="GET",o.POST="POST",o.PUT="PUT",o.DELETE="DELETE",o))(RequestEnum||{}),ContentTypeEnum=(o=>(o.JSON="application/json;charset=UTF-8",o.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",o.FORM_DATA="multipart/form-data;charset=UTF-8",o))(ContentTypeEnum||{}),StorageEnum=(o=>(o.Token="token",o))(StorageEnum||{});function bind(o,a){return function(){return o.apply(a,arguments)}}const{toString}=Object.prototype,{getPrototypeOf:getPrototypeOf$1}=Object,kindOf=(o=>a=>{const s=toString.call(a);return o[s]||(o[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=o=>(o=o.toLowerCase(),a=>kindOf(a)===o),typeOfTest=o=>a=>typeof a===o,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(o){return o!==null&&!isUndefined(o)&&o.constructor!==null&&!isUndefined(o.constructor)&&isFunction(o.constructor.isBuffer)&&o.constructor.isBuffer(o)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(o){let a;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?a=ArrayBuffer.isView(o):a=o&&o.buffer&&isArrayBuffer(o.buffer),a}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=o=>o!==null&&typeof o=="object",isBoolean$1=o=>o===!0||o===!1,isPlainObject$3=o=>{if(kindOf(o)!=="object")return!1;const a=getPrototypeOf$1(o);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in o)&&!(Symbol.iterator in o)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=o=>isObject(o)&&isFunction(o.pipe),isFormData=o=>{let a;return o&&(typeof FormData=="function"&&o instanceof FormData||isFunction(o.append)&&((a=kindOf(o))==="formdata"||a==="object"&&isFunction(o.toString)&&o.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=o=>o.trim?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(o,a,{allOwnKeys:s=!1}={}){if(o===null||typeof o=="undefined")return;let c,f;if(typeof o!="object"&&(o=[o]),isArray(o))for(c=0,f=o.length;c0;)if(f=s[c],a===f.toLowerCase())return f;return null}const _global=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),isContextDefined=o=>!isUndefined(o)&&o!==_global;function merge(){const{caseless:o}=isContextDefined(this)&&this||{},a={},s=(c,f)=>{const d=o&&findKey(a,f)||f;isPlainObject$3(a[d])&&isPlainObject$3(c)?a[d]=merge(a[d],c):isPlainObject$3(c)?a[d]=merge({},c):isArray(c)?a[d]=c.slice():a[d]=c};for(let c=0,f=arguments.length;c(forEach(a,(f,d)=>{s&&isFunction(f)?o[d]=bind(f,s):o[d]=f},{allOwnKeys:c}),o),stripBOM=o=>(o.charCodeAt(0)===65279&&(o=o.slice(1)),o),inherits=(o,a,s,c)=>{o.prototype=Object.create(a.prototype,c),o.prototype.constructor=o,Object.defineProperty(o,"super",{value:a.prototype}),s&&Object.assign(o.prototype,s)},toFlatObject=(o,a,s,c)=>{let f,d,y;const _={};if(a=a||{},o==null)return a;do{for(f=Object.getOwnPropertyNames(o),d=f.length;d-- >0;)y=f[d],(!c||c(y,o,a))&&!_[y]&&(a[y]=o[y],_[y]=!0);o=s!==!1&&getPrototypeOf$1(o)}while(o&&(!s||s(o,a))&&o!==Object.prototype);return a},endsWith=(o,a,s)=>{o=String(o),(s===void 0||s>o.length)&&(s=o.length),s-=a.length;const c=o.indexOf(a,s);return c!==-1&&c===s},toArray=o=>{if(!o)return null;if(isArray(o))return o;let a=o.length;if(!isNumber(a))return null;const s=new Array(a);for(;a-- >0;)s[a]=o[a];return s},isTypedArray=(o=>a=>o&&a instanceof o)(typeof Uint8Array!="undefined"&&getPrototypeOf$1(Uint8Array)),forEachEntry=(o,a)=>{const c=(o&&o[Symbol.iterator]).call(o);let f;for(;(f=c.next())&&!f.done;){const d=f.value;a.call(o,d[0],d[1])}},matchAll=(o,a)=>{let s;const c=[];for(;(s=o.exec(a))!==null;)c.push(s);return c},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=o=>o.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,c,f){return c.toUpperCase()+f}),hasOwnProperty=(({hasOwnProperty:o})=>(a,s)=>o.call(a,s))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(o,a)=>{const s=Object.getOwnPropertyDescriptors(o),c={};forEach(s,(f,d)=>{let y;(y=a(f,d,o))!==!1&&(c[d]=y||f)}),Object.defineProperties(o,c)},freezeMethods=o=>{reduceDescriptors(o,(a,s)=>{if(isFunction(o)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const c=o[s];if(isFunction(c)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},toObjectSet=(o,a)=>{const s={},c=f=>{f.forEach(d=>{s[d]=!0})};return isArray(o)?c(o):c(String(o).split(a)),s},noop$2=()=>{},toFiniteNumber=(o,a)=>(o=+o,Number.isFinite(o)?o:a),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(o=16,a=ALPHABET.ALPHA_DIGIT)=>{let s="";const{length:c}=a;for(;o--;)s+=a[Math.random()*c|0];return s};function isSpecCompliantForm(o){return!!(o&&isFunction(o.append)&&o[Symbol.toStringTag]==="FormData"&&o[Symbol.iterator])}const toJSONObject=o=>{const a=new Array(10),s=(c,f)=>{if(isObject(c)){if(a.indexOf(c)>=0)return;if(!("toJSON"in c)){a[f]=c;const d=isArray(c)?[]:{};return forEach(c,(y,_)=>{const S=s(y,f+1);!isUndefined(S)&&(d[_]=S)}),a[f]=void 0,d}}return c};return s(o,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable$1=o=>o&&(isObject(o)||isFunction(o))&&isFunction(o.then)&&isFunction(o.catch),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean:isBoolean$1,isObject,isPlainObject:isPlainObject$3,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$2,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable:isThenable$1};function AxiosError(o,a,s,c,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",a&&(this.code=a),s&&(this.config=s),c&&(this.request=c),f&&(this.response=f)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(o=>{descriptors[o]={value:o}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(o,a,s,c,f,d)=>{const y=Object.create(prototype$1);return utils$1.toFlatObject(o,y,function(S){return S!==Error.prototype},_=>_!=="isAxiosError"),AxiosError.call(y,o.message,a,s,c,f),y.cause=o,y.name=o.name,d&&Object.assign(y,d),y};const httpAdapter=null;function isVisitable(o){return utils$1.isPlainObject(o)||utils$1.isArray(o)}function removeBrackets(o){return utils$1.endsWith(o,"[]")?o.slice(0,-2):o}function renderKey(o,a,s){return o?o.concat(a).map(function(f,d){return f=removeBrackets(f),!s&&d?"["+f+"]":f}).join(s?".":""):a}function isFlatArray(o){return utils$1.isArray(o)&&!o.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(a){return/^is[A-Z]/.test(a)});function toFormData(o,a,s){if(!utils$1.isObject(o))throw new TypeError("target must be an object");a=a||new FormData,s=utils$1.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,F){return!utils$1.isUndefined(F[A])});const c=s.metaTokens,f=s.visitor||$,d=s.dots,y=s.indexes,S=(s.Blob||typeof Blob!="undefined"&&Blob)&&utils$1.isSpecCompliantForm(a);if(!utils$1.isFunction(f))throw new TypeError("visitor must be a function");function b(O){if(O===null)return"";if(utils$1.isDate(O))return O.toISOString();if(!S&&utils$1.isBlob(O))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(O)||utils$1.isTypedArray(O)?S&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function $(O,A,F){let j=O;if(O&&!F&&typeof O=="object"){if(utils$1.endsWith(A,"{}"))A=c?A:A.slice(0,-2),O=JSON.stringify(O);else if(utils$1.isArray(O)&&isFlatArray(O)||(utils$1.isFileList(O)||utils$1.endsWith(A,"[]"))&&(j=utils$1.toArray(O)))return A=removeBrackets(A),j.forEach(function(M,I){!(utils$1.isUndefined(M)||M===null)&&a.append(y===!0?renderKey([A],I,d):y===null?A:A+"[]",b(M))}),!1}return isVisitable(O)?!0:(a.append(renderKey(F,A,d),b(O)),!1)}const P=[],T=Object.assign(predicates,{defaultVisitor:$,convertValue:b,isVisitable});function C(O,A){if(!utils$1.isUndefined(O)){if(P.indexOf(O)!==-1)throw Error("Circular reference detected in "+A.join("."));P.push(O),utils$1.forEach(O,function(j,L){(!(utils$1.isUndefined(j)||j===null)&&f.call(a,j,utils$1.isString(L)?L.trim():L,A,T))===!0&&C(j,A?A.concat(L):[L])}),P.pop()}}if(!utils$1.isObject(o))throw new TypeError("data must be an object");return C(o),a}function encode$1(o){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'()~]|%20|%00/g,function(c){return a[c]})}function AxiosURLSearchParams(o,a){this._pairs=[],o&&toFormData(o,this,a)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(a,s){this._pairs.push([a,s])};prototype.toString=function(a){const s=a?function(c){return a.call(this,c,encode$1)}:encode$1;return this._pairs.map(function(f){return s(f[0])+"="+s(f[1])},"").join("&")};function encode(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(o,a,s){if(!a)return o;const c=s&&s.encode||encode,f=s&&s.serialize;let d;if(f?d=f(a,s):d=utils$1.isURLSearchParams(a)?a.toString():new AxiosURLSearchParams(a,s).toString(c),d){const y=o.indexOf("#");y!==-1&&(o=o.slice(0,y)),o+=(o.indexOf("?")===-1?"?":"&")+d}return o}class InterceptorManager{constructor(){this.handlers=[]}use(a,s,c){return this.handlers.push({fulfilled:a,rejected:s,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){utils$1.forEach(this.handlers,function(c){c!==null&&a(c)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams!="undefined"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData!="undefined"?FormData:null,Blob$1=typeof Blob!="undefined"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window!="undefined"&&typeof document!="undefined",hasStandardBrowserEnv=(o=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(o)<0)(typeof navigator!="undefined"&&navigator.product),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"})),platform=se(se({},utils),platform$1);function toURLEncodedForm(o,a){return toFormData(o,new platform.classes.URLSearchParams,Object.assign({visitor:function(s,c,f,d){return platform.isNode&&utils$1.isBuffer(s)?(this.append(c,s.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},a))}function parsePropPath(o){return utils$1.matchAll(/\w+|\[(\w*)]/g,o).map(a=>a[0]==="[]"?"":a[1]||a[0])}function arrayToObject(o){const a={},s=Object.keys(o);let c;const f=s.length;let d;for(c=0;c=s.length;return y=!y&&utils$1.isArray(f)?f.length:y,S?(utils$1.hasOwnProp(f,y)?f[y]=[f[y],c]:f[y]=c,!_):((!f[y]||!utils$1.isObject(f[y]))&&(f[y]=[]),a(s,c,f[y],d)&&utils$1.isArray(f[y])&&(f[y]=arrayToObject(f[y])),!_)}if(utils$1.isFormData(o)&&utils$1.isFunction(o.entries)){const s={};return utils$1.forEachEntry(o,(c,f)=>{a(parsePropPath(c),f,s,0)}),s}return null}function stringifySafely(o,a,s){if(utils$1.isString(o))try{return(a||JSON.parse)(o),utils$1.trim(o)}catch(c){if(c.name!=="SyntaxError")throw c}return(s||JSON.stringify)(o)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(a,s){const c=s.getContentType()||"",f=c.indexOf("application/json")>-1,d=utils$1.isObject(a);if(d&&utils$1.isHTMLForm(a)&&(a=new FormData(a)),utils$1.isFormData(a))return f&&f?JSON.stringify(formDataToJSON(a)):a;if(utils$1.isArrayBuffer(a)||utils$1.isBuffer(a)||utils$1.isStream(a)||utils$1.isFile(a)||utils$1.isBlob(a))return a;if(utils$1.isArrayBufferView(a))return a.buffer;if(utils$1.isURLSearchParams(a))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let _;if(d){if(c.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(a,this.formSerializer).toString();if((_=utils$1.isFileList(a))||c.indexOf("multipart/form-data")>-1){const S=this.env&&this.env.FormData;return toFormData(_?{"files[]":a}:a,S&&new S,this.formSerializer)}}return d||f?(s.setContentType("application/json",!1),stringifySafely(a)):a}],transformResponse:[function(a){const s=this.transitional||defaults.transitional,c=s&&s.forcedJSONParsing,f=this.responseType==="json";if(a&&utils$1.isString(a)&&(c&&!this.responseType||f)){const y=!(s&&s.silentJSONParsing)&&f;try{return JSON.parse(a)}catch(_){if(y)throw _.name==="SyntaxError"?AxiosError.from(_,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):_}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],o=>{defaults.headers[o]={}});const defaults$1=defaults,ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=o=>{const a={};let s,c,f;return o&&o.split(` `).forEach(function(y){f=y.indexOf(":"),s=y.substring(0,f).trim().toLowerCase(),c=y.substring(f+1).trim(),!(!s||a[s]&&ignoreDuplicateOf[s])&&(s==="set-cookie"?a[s]?a[s].push(c):a[s]=[c]:a[s]=a[s]?a[s]+", "+c:c)}),a},$internals=Symbol("internals");function normalizeHeader(o){return o&&String(o).trim().toLowerCase()}function normalizeValue(o){return o===!1||o==null?o:utils$1.isArray(o)?o.map(normalizeValue):String(o)}function parseTokens(o){const a=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=s.exec(o);)a[c[1]]=c[2];return a}const isValidHeaderName=o=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function matchHeaderValue(o,a,s,c,f){if(utils$1.isFunction(c))return c.call(this,a,s);if(f&&(a=s),!!utils$1.isString(a)){if(utils$1.isString(c))return a.indexOf(c)!==-1;if(utils$1.isRegExp(c))return c.test(a)}}function formatHeader(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,s,c)=>s.toUpperCase()+c)}function buildAccessors(o,a){const s=utils$1.toCamelCase(" "+a);["get","set","has"].forEach(c=>{Object.defineProperty(o,c+s,{value:function(f,d,y){return this[c].call(this,a,f,d,y)},configurable:!0})})}class AxiosHeaders{constructor(a){a&&this.set(a)}set(a,s,c){const f=this;function d(_,S,b){const $=normalizeHeader(S);if(!$)throw new Error("header name must be a non-empty string");const P=utils$1.findKey(f,$);(!P||f[P]===void 0||b===!0||b===void 0&&f[P]!==!1)&&(f[P||S]=normalizeValue(_))}const y=(_,S)=>utils$1.forEach(_,(b,$)=>d(b,$,S));return utils$1.isPlainObject(a)||a instanceof this.constructor?y(a,s):utils$1.isString(a)&&(a=a.trim())&&!isValidHeaderName(a)?y(parseHeaders(a),s):a!=null&&d(s,a,c),this}get(a,s){if(a=normalizeHeader(a),a){const c=utils$1.findKey(this,a);if(c){const f=this[c];if(!s)return f;if(s===!0)return parseTokens(f);if(utils$1.isFunction(s))return s.call(this,f,c);if(utils$1.isRegExp(s))return s.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,s){if(a=normalizeHeader(a),a){const c=utils$1.findKey(this,a);return!!(c&&this[c]!==void 0&&(!s||matchHeaderValue(this,this[c],c,s)))}return!1}delete(a,s){const c=this;let f=!1;function d(y){if(y=normalizeHeader(y),y){const _=utils$1.findKey(c,y);_&&(!s||matchHeaderValue(c,c[_],_,s))&&(delete c[_],f=!0)}}return utils$1.isArray(a)?a.forEach(d):d(a),f}clear(a){const s=Object.keys(this);let c=s.length,f=!1;for(;c--;){const d=s[c];(!a||matchHeaderValue(this,this[d],d,a,!0))&&(delete this[d],f=!0)}return f}normalize(a){const s=this,c={};return utils$1.forEach(this,(f,d)=>{const y=utils$1.findKey(c,d);if(y){s[y]=normalizeValue(f),delete s[d];return}const _=a?formatHeader(d):String(d).trim();_!==d&&delete s[d],s[_]=normalizeValue(f),c[_]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const s=Object.create(null);return utils$1.forEach(this,(c,f)=>{c!=null&&c!==!1&&(s[f]=a&&utils$1.isArray(c)?c.join(", "):c)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,s])=>a+": "+s).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...s){const c=new this(a);return s.forEach(f=>c.set(f)),c}static accessor(a){const c=(this[$internals]=this[$internals]={accessors:{}}).accessors,f=this.prototype;function d(y){const _=normalizeHeader(y);c[_]||(buildAccessors(f,y),c[_]=!0)}return utils$1.isArray(a)?a.forEach(d):d(a),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:o},a)=>{let s=a[0].toUpperCase()+a.slice(1);return{get:()=>o,set(c){this[s]=c}}});utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(o,a){const s=this||defaults$1,c=a||s,f=AxiosHeaders$1.from(c.headers);let d=c.data;return utils$1.forEach(o,function(_){d=_.call(s,d,f.normalize(),a?a.status:void 0)}),f.normalize(),d}function isCancel(o){return!!(o&&o.__CANCEL__)}function CanceledError(o,a,s){AxiosError.call(this,o==null?"canceled":o,AxiosError.ERR_CANCELED,a,s),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(o,a,s){const c=s.config.validateStatus;!s.status||!c||c(s.status)?o(s):a(new AxiosError("Request failed with status code "+s.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}const cookies=platform.hasStandardBrowserEnv?{write(o,a,s,c,f,d){const y=[o+"="+encodeURIComponent(a)];utils$1.isNumber(s)&&y.push("expires="+new Date(s).toGMTString()),utils$1.isString(c)&&y.push("path="+c),utils$1.isString(f)&&y.push("domain="+f),d===!0&&y.push("secure"),document.cookie=y.join("; ")},read(o){const a=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function combineURLs(o,a){return a?o.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):o}function buildFullPath(o,a){return o&&!isAbsoluteURL(a)?combineURLs(o,a):a}const isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let c;function f(d){let y=d;return a&&(s.setAttribute("href",y),y=s.href),s.setAttribute("href",y),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return c=f(window.location.href),function(y){const _=utils$1.isString(y)?f(y):y;return _.protocol===c.protocol&&_.host===c.host}}():function(){return function(){return!0}}();function parseProtocol(o){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return a&&a[1]||""}function speedometer(o,a){o=o||10;const s=new Array(o),c=new Array(o);let f=0,d=0,y;return a=a!==void 0?a:1e3,function(S){const b=Date.now(),$=c[d];y||(y=b),s[f]=S,c[f]=b;let P=d,T=0;for(;P!==f;)T+=s[P++],P=P%o;if(f=(f+1)%o,f===d&&(d=(d+1)%o),b-y{const d=f.loaded,y=f.lengthComputable?f.total:void 0,_=d-s,S=c(_),b=d<=y;s=d;const $={loaded:d,total:y,progress:y?d/y:void 0,bytes:_,rate:S||void 0,estimated:S&&y&&b?(y-d)/S:void 0,event:f};$[a?"download":"upload"]=!0,o($)}}const isXHRAdapterSupported=typeof XMLHttpRequest!="undefined",xhrAdapter=isXHRAdapterSupported&&function(o){return new Promise(function(s,c){let f=o.data;const d=AxiosHeaders$1.from(o.headers).normalize();let{responseType:y,withXSRFToken:_}=o,S;function b(){o.cancelToken&&o.cancelToken.unsubscribe(S),o.signal&&o.signal.removeEventListener("abort",S)}let $;if(utils$1.isFormData(f)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)d.setContentType(!1);else if(($=d.getContentType())!==!1){const[A,...F]=$?$.split(";").map(j=>j.trim()).filter(Boolean):[];d.setContentType([A||"multipart/form-data",...F].join("; "))}}let P=new XMLHttpRequest;if(o.auth){const A=o.auth.username||"",F=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";d.set("Authorization","Basic "+btoa(A+":"+F))}const T=buildFullPath(o.baseURL,o.url);P.open(o.method.toUpperCase(),buildURL(T,o.params,o.paramsSerializer),!0),P.timeout=o.timeout;function C(){if(!P)return;const A=AxiosHeaders$1.from("getAllResponseHeaders"in P&&P.getAllResponseHeaders()),j={data:!y||y==="text"||y==="json"?P.responseText:P.response,status:P.status,statusText:P.statusText,headers:A,config:o,request:P};settle(function(M){s(M),b()},function(M){c(M),b()},j),P=null}if("onloadend"in P?P.onloadend=C:P.onreadystatechange=function(){!P||P.readyState!==4||P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0)||setTimeout(C)},P.onabort=function(){P&&(c(new AxiosError("Request aborted",AxiosError.ECONNABORTED,o,P)),P=null)},P.onerror=function(){c(new AxiosError("Network Error",AxiosError.ERR_NETWORK,o,P)),P=null},P.ontimeout=function(){let F=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||transitionalDefaults;o.timeoutErrorMessage&&(F=o.timeoutErrorMessage),c(new AxiosError(F,j.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,o,P)),P=null},platform.hasStandardBrowserEnv&&(_&&utils$1.isFunction(_)&&(_=_(o)),_||_!==!1&&isURLSameOrigin(T))){const A=o.xsrfHeaderName&&o.xsrfCookieName&&cookies.read(o.xsrfCookieName);A&&d.set(o.xsrfHeaderName,A)}f===void 0&&d.setContentType(null),"setRequestHeader"in P&&utils$1.forEach(d.toJSON(),function(F,j){P.setRequestHeader(j,F)}),utils$1.isUndefined(o.withCredentials)||(P.withCredentials=!!o.withCredentials),y&&y!=="json"&&(P.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&P.addEventListener("progress",progressEventReducer(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&P.upload&&P.upload.addEventListener("progress",progressEventReducer(o.onUploadProgress)),(o.cancelToken||o.signal)&&(S=A=>{P&&(c(!A||A.type?new CanceledError(null,o,P):A),P.abort(),P=null)},o.cancelToken&&o.cancelToken.subscribe(S),o.signal&&(o.signal.aborted?S():o.signal.addEventListener("abort",S)));const O=parseProtocol(T);if(O&&platform.protocols.indexOf(O)===-1){c(new AxiosError("Unsupported protocol "+O+":",AxiosError.ERR_BAD_REQUEST,o));return}P.send(f||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,(o,a)=>{if(o){try{Object.defineProperty(o,"name",{value:a})}catch(s){}Object.defineProperty(o,"adapterName",{value:a})}});const renderReason=o=>`- ${o}`,isResolvedHandle=o=>utils$1.isFunction(o)||o===null||o===!1,adapters={getAdapter:o=>{o=utils$1.isArray(o)?o:[o];const{length:a}=o;let s,c;const f={};for(let d=0;d`adapter ${_} `+(S===!1?"is not supported by the environment":"is not available in the build"));let y=a?d.length>1?`since : `+d.map(renderReason).join(` -`):" "+renderReason(d[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return c},adapters:knownAdapters};function throwIfCancellationRequested(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new CanceledError(null,o)}function dispatchRequest(o){return throwIfCancellationRequested(o),o.headers=AxiosHeaders$1.from(o.headers),o.data=transformData.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(o.adapter||defaults$1.adapter)(o).then(function(c){return throwIfCancellationRequested(o),c.data=transformData.call(o,o.transformResponse,c),c.headers=AxiosHeaders$1.from(c.headers),c},function(c){return isCancel(c)||(throwIfCancellationRequested(o),c&&c.response&&(c.response.data=transformData.call(o,o.transformResponse,c.response),c.response.headers=AxiosHeaders$1.from(c.response.headers))),Promise.reject(c)})}const headersToObject=o=>o instanceof AxiosHeaders$1?o.toJSON():o;function mergeConfig(o,a){a=a||{};const s={};function c(b,$,P){return utils$1.isPlainObject(b)&&utils$1.isPlainObject($)?utils$1.merge.call({caseless:P},b,$):utils$1.isPlainObject($)?utils$1.merge({},$):utils$1.isArray($)?$.slice():$}function f(b,$,P){if(utils$1.isUndefined($)){if(!utils$1.isUndefined(b))return c(void 0,b,P)}else return c(b,$,P)}function d(b,$){if(!utils$1.isUndefined($))return c(void 0,$)}function y(b,$){if(utils$1.isUndefined($)){if(!utils$1.isUndefined(b))return c(void 0,b)}else return c(void 0,$)}function _(b,$,P){if(P in a)return c(b,$);if(P in o)return c(void 0,b)}const S={url:d,method:d,data:d,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:_,headers:(b,$)=>f(headersToObject(b),headersToObject($),!0)};return utils$1.forEach(Object.keys(Object.assign({},o,a)),function($){const P=S[$]||f,T=P(o[$],a[$],$);utils$1.isUndefined(T)&&P!==_||(s[$]=T)}),s}const VERSION="1.6.5",validators$1={};["object","boolean","number","function","string","symbol"].forEach((o,a)=>{validators$1[o]=function(c){return typeof c===o||"a"+(a<1?"n ":" ")+o}});const deprecatedWarnings={};validators$1.transitional=function(a,s,c){function f(d,y){return"[Axios v"+VERSION+"] Transitional option '"+d+"'"+y+(c?". "+c:"")}return(d,y,_)=>{if(a===!1)throw new AxiosError(f(y," has been removed"+(s?" in "+s:"")),AxiosError.ERR_DEPRECATED);return s&&!deprecatedWarnings[y]&&(deprecatedWarnings[y]=!0),a?a(d,y,_):!0}};function assertOptions(o,a,s){if(typeof o!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const c=Object.keys(o);let f=c.length;for(;f-- >0;){const d=c[f],y=a[d];if(y){const _=o[d],S=_===void 0||y(_,d,o);if(S!==!0)throw new AxiosError("option "+d+" must be "+S,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new AxiosError("Unknown option "+d,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(a){this.defaults=a,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(a,s){typeof a=="string"?(s=s||{},s.url=a):s=a||{},s=mergeConfig(this.defaults,s);const{transitional:c,paramsSerializer:f,headers:d}=s;c!==void 0&&validator.assertOptions(c,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),f!=null&&(utils$1.isFunction(f)?s.paramsSerializer={serialize:f}:validator.assertOptions(f,{encode:validators.function,serialize:validators.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let y=d&&utils$1.merge(d.common,d[s.method]);d&&utils$1.forEach(["delete","get","head","post","put","patch","common"],O=>{delete d[O]}),s.headers=AxiosHeaders$1.concat(y,d);const _=[];let S=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(s)===!1||(S=S&&A.synchronous,_.unshift(A.fulfilled,A.rejected))});const b=[];this.interceptors.response.forEach(function(A){b.push(A.fulfilled,A.rejected)});let $,P=0,T;if(!S){const O=[dispatchRequest.bind(this),void 0];for(O.unshift.apply(O,_),O.push.apply(O,b),T=O.length,$=Promise.resolve(s);P{if(!c._listeners)return;let d=c._listeners.length;for(;d-- >0;)c._listeners[d](f);c._listeners=null}),this.promise.then=f=>{let d;const y=new Promise(_=>{c.subscribe(_),d=_}).then(f);return y.cancel=function(){c.unsubscribe(d)},y},a(function(d,y,_){c.reason||(c.reason=new CanceledError(d,y,_),s(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}static source(){let a;return{token:new CancelToken(function(f){a=f}),cancel:a}}}const CancelToken$1=CancelToken;function spread(o){return function(s){return o.apply(null,s)}}function isAxiosError(o){return utils$1.isObject(o)&&o.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([o,a])=>{HttpStatusCode[a]=o});const HttpStatusCode$1=HttpStatusCode;function createInstance(o){const a=new Axios$1(o),s=bind(Axios$1.prototype.request,a);return utils$1.extend(s,Axios$1.prototype,a,{allOwnKeys:!0}),utils$1.extend(s,a,null,{allOwnKeys:!0}),s.create=function(f){return createInstance(mergeConfig(o,f))},s}const axios=createInstance(defaults$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(a){return Promise.all(a)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=o=>formDataToJSON(utils$1.isHTMLForm(o)?new FormData(o):o);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios,pendingMap=new Map;class AxiosCanceler{addPending(a){this.removePending(a);const s=getPendingUrl(a),c=new AbortController;a.signal=a.signal||c.signal,pendingMap.has(s)||pendingMap.set(s,c)}removePending(a){const s=getPendingUrl(a);if(pendingMap.has(s)){const c=pendingMap.get(s);c&&c.abort(s),pendingMap.delete(s)}}reset(){pendingMap.clear()}removeAllPending(){pendingMap.forEach(a=>{a&&a.abort()}),this.reset()}}function getPendingUrl(o){return[o.method,o.url].join("&")}class GAxios{constructor(a){er(this,"axiosInstance");er(this,"options");this.options=a,this.axiosInstance=axios$1.create(a),this.setupInterceptors()}createAxios(a){this.axiosInstance=axios$1.create(a)}getTransform(){const{transform:a}=this.options;return a}getAxios(){return this.axiosInstance}configAxios(a){this.axiosInstance&&this.createAxios(a)}setHeader(a){this.axiosInstance&&Object.assign(this.axiosInstance.defaults.headers,a)}setupInterceptors(){const{axiosInstance:a,options:{transform:s}}=this;if(!s)return;const{requestInterceptors:c,requestInterceptorsCatch:f,responseInterceptors:d,responseInterceptorsCatch:y}=s,_=new AxiosCanceler;this.axiosInstance.interceptors.request.use(S=>{var P,T;const b=(P=S.requestOptions)!=null?P:this.options.requestOptions;return!((T=b==null?void 0:b.ignoreCancelToken)!=null?T:!0)&&_.addPending(S),c&&isFunction$2(c)&&(S=c(S,this.options)),S},void 0),f&&isFunction$2(f)&&this.axiosInstance.interceptors.request.use(void 0,f),this.axiosInstance.interceptors.response.use(S=>(S&&_.removePending(S.config),d&&isFunction$2(d)&&(S=d(S)),S),void 0),y&&isFunction$2(y)&&this.axiosInstance.interceptors.response.use(void 0,S=>y(a,S))}uploadFile(a,s){const c=new window.FormData,f=s.name||"file";return s.filename?c.append(f,s.file,s.filename):c.append(f,s.file),s.data&&Object.keys(s.data).forEach(d=>{const y=s.data[d];if(Array.isArray(y)){y.forEach(_=>{c.append(`${d}[]`,_)});return}c.append(d,s.data[d])}),this.axiosInstance.request(we(se({},a),{method:"POST",data:c,headers:{"Content-type":ContentTypeEnum.FORM_DATA,ignoreCancelToken:!0}}))}supportFormData(a){var f;const s=a.headers||this.options.headers;return((s==null?void 0:s["Content-Type"])||(s==null?void 0:s["content-type"]))!==ContentTypeEnum.FORM_URLENCODED||!Reflect.has(a,"data")||((f=a.method)==null?void 0:f.toUpperCase())===RequestEnum.GET?a:we(se({},a),{data:qs.stringify(a.data,{arrayFormat:"brackets"})})}get(a,s){return this.request(we(se({},a),{method:"GET"}),s)}post(a,s){return this.request(we(se({},a),{method:"POST"}),s)}put(a,s){return this.request(we(se({},a),{method:"PUT"}),s)}delete(a,s){return this.request(we(se({},a),{method:"DELETE"}),s)}request(a,s){let c=cloneDeep(a);a.cancelToken&&(c.cancelToken=a.cancelToken),a.signal&&(c.signal=a.signal);const f=this.getTransform(),{requestOptions:d}=this.options,y=Object.assign({},d,s),{beforeRequestHook:_,requestCatchHook:S,transformResponseHook:b}=f||{};return _&&isFunction$2(_)&&(c=_(c,y)),c.requestOptions=y,c=this.supportFormData(c),new Promise(($,P)=>{this.axiosInstance.request(c).then(T=>{if(b&&isFunction$2(b)){try{const C=b(T,y);$(C)}catch(C){P(C||new Error("request error!"))}return}$(T)}).catch(T=>{if(S&&isFunction$2(S)){P(S(T,y));return}axios$1.isAxiosError(T),P(T)})})}}const transform={transformResponseHook:(o,a)=>{const{isReturnNativeResponse:s,isTransformResponse:c}=a;if(s)return o;if(!c)return o.data.data;const{data:f}=o;if(!o.data)throw new Error("请求接口错误");const{code:d,message:y}=f;if(f&&Reflect.has(f,"code")&&d===ResultEnum.SUCCESS)return f.data;let S="";switch(d){case ResultEnum.TIMEOUT:S="登录超时,请重新登录";break;default:y&&(S=y)}throw new Error(S)},responseInterceptorsCatch:(o,a)=>{var S,b;const{response:s,code:c,message:f,config:d}=a||{},y=(b=(S=a==null?void 0:a.toString)==null?void 0:S.call(a))!=null?b:"";let _="";if(axios$1.isCancel(a))return Promise.reject(a);try{c==="ECONNABORTED"&&f.indexOf("timeout")!==-1&&(_="接口请求超时,请刷新页面重试!"),y!=null&&y.includes("Network Error")&&(_="网络异常,请检查您的网络连接是否正常")}catch($){throw new Error($)}switch(s==null?void 0:s.status){case 401:_="登录失效";break;case 403:_="拒绝访问";break;case 404:_="请求地址不存在";break;case 500:_="服务器内部错误";break;case 501:_="服务未实现";break;case 502:_="网关错误";break;case 503:_="服务不可用";break}return Promise.reject(a)},beforeRequestHook:(o,a)=>{var $;const{apiUrl:s,joinPrefix:c,joinParamsToUrl:f,formatDate:d,joinTime:y=!0,urlPrefix:_}=a;c&&(o.url=`${_}${o.url}`);const S=o.params||{},b=o.data||!1;return d&&b&&!isString$3(b)&&formatRequestDate(b),(($=o.method)==null?void 0:$.toUpperCase())===RequestEnum.GET?isString$3(S)?(o.url=o.url+S+`${joinTimestamp(y,!0)}`,o.params=void 0):o.params=Object.assign(S||{},joinTimestamp(y,!1)):isString$3(S)?(o.url=o.url+S,o.params=void 0):(d&&formatRequestDate(S),Reflect.has(o,"data")&&o.data&&(Object.keys(o.data).length>0||o.data instanceof FormData)?(o.data=b,o.params=S):(o.data=S,o.params=void 0),f&&(o.url=setObjToUrlParams(o.url,Object.assign({},o.params,o.data)))),o},requestInterceptors:(o,a)=>{var c;const s=getItem$1(StorageEnum.Token);return s&&((c=o.requestOptions)==null?void 0:c.withToken)!==!1&&(o.headers.Authorization=a.authenticationScheme?`${a.authenticationScheme} ${s}`:s),o}};function createAxios(o){return new GAxios(deepMerge({authenticationScheme:"Bearer",timeout:10*1e3,header:{"Content-Type":ContentTypeEnum.JSON},transform:clone(transform),requestOptions:{joinPrefix:!0,isReturnNativeResponse:!1,joinParamsToUrl:!1,joinTime:!0,ignoreCancelToken:!0,withToken:!0,retryRequest:{isOpenRetry:!0,count:5,waitTime:100},apiUrl:"",urlPrefix:"/api",formatDate:!0}},o||{}))}const defHttp=createAxios(),PREFIX="",GRequest=extend$1({timeout:6e4,prefix:PREFIX});let isRefreshingToken=!1;const requestQueue=[];GRequest.interceptors.request.use((o,a)=>{const{headers:s}=a;return{url:o,options:we(se({},a),{headers:s})}});GRequest.interceptors.response.use((o,a)=>xt(void 0,null,function*(){const{status:s}=o;if(s===200){const c=yield o.clone().json();return c.code!==0?(notification.error({message:"请求错误",description:c.msg}),Promise.reject(c.msg)):c}if(s===401){if(!isRefreshingToken){const c=JSON.parse(localStorage.getItem("userInfo")||"{}");isRefreshingToken=!0;const f=yield GRequest("/User/ReLogin",{method:"POST",data:c});localStorage.setItem("userInfo",JSON.stringify(f.data)),isRefreshingToken=!1;const d=GRequest(a.url,a);return requestQueue.forEach(y=>y.resolve(GRequest(y.url,y.options))),d}return new Promise((c,f)=>{requestQueue.push({url:a.url,options:a,resolve:c,reject:f})})}return notification.error({message:"请求错误",description:o.statusText}),Promise.reject(o.statusText)}));const loginApi=o=>defHttp.post({url:"/login",data:o});function logoutApi(){return defHttp.get({url:"/logout"})}function getJueJinList(o){return defHttp.post({url:"/article/queryList",data:o})}function getUsersList(){return defHttp.get({url:"/user/getUserList"})}const headerImg="/react-antd-admin-pnpm/assets/avatar-9ee092e3.jpeg",useUserStore=create(o=>({userInfo:getItem$1(StorageEnum$1.User)||{},userToken:getItem$1(StorageEnum$1.Token)||{},actions:{setUserInfo:a=>{o({userInfo:a}),setItem(StorageEnum$1.User,a)},setUserToken:a=>{o({userToken:a}),setItem(StorageEnum$1.Token,a)},clearUserInfoAndToken:()=>{o({userInfo:{},userToken:{}}),removeItem(StorageEnum$1.User),removeItem(StorageEnum$1.Token)}}})),useUserToken=()=>useUserStore(o=>o.userToken),useUserActions=()=>useUserStore(o=>o.actions),useSignIn=()=>{const{t:o}=useTranslation(),{notification:a,message:s}=App$1.useApp(),{setUserToken:c,setUserInfo:f}=useUserActions(),d=useMutation({mutationFn:loginApi}),y=_=>xt(void 0,null,function*(){try{const b=yield d.mutateAsync(_),S=b,{token:$}=S,P=fr(S,["token"]);return c({token:$}),f(P),a.success({message:o("登录成功"),description:`欢迎回来: ${_.username}`,duration:3}),yield Promise.resolve(b)}catch(b){return s.error({content:b.message,duration:3}),Promise.reject(b)}});return reactExports.useCallback(y,[])};function UserDropdown(){const{createConfirm:o,contextHolder:a,createMessage:s}=useMessage(),{clearUserInfoAndToken:c}=useUserActions(),{t:f}=useTranslation(),{token:d}=useUserToken(),y=[{key:"lock",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(LockOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:f("锁定屏幕")})]})},{key:"logout",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(PoweroffOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:f("退出登录")})]})}],_=({key:P})=>{switch(P){case"lock":break;case"logout":b();break}},S=useNavigate(),b=()=>{o({title:jsxRuntimeExports.jsx("span",{children:f("温馨提醒")}),content:jsxRuntimeExports.jsx("span",{children:f("是否确认退出系统?")}),onOk:()=>xt(this,null,function*(){yield $(!0)})})},$=(P=!1)=>xt(this,null,function*(){if(d)try{yield logoutApi()}catch(T){s.error(f("注销失败!"))}c(),P&&S("/login")});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a,jsxRuntimeExports.jsx(Dropdown,{menu:{items:y,onClick:_},placement:"bottomRight",arrow:!0,children:jsxRuntimeExports.jsx("span",{className:"flex-center",style:{cursor:"pointer"},children:jsxRuntimeExports.jsx("img",{src:headerImg,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""})})})]})}const matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(o,a,s,c="")=>{const f=o.split(":");if(o.slice(0,1)==="@"){if(f.length<2||f.length>3)return null;c=f.shift().slice(1)}if(f.length>3||!f.length)return null;if(f.length>1){const _=f.pop(),S=f.pop(),b={provider:f.length>0?f[0]:c,prefix:S,name:_};return a&&!validateIconName(b)?null:b}const d=f[0],y=d.split("-");if(y.length>1){const _={provider:c,prefix:y.shift(),name:y.join("-")};return a&&!validateIconName(_)?null:_}if(s&&c===""){const _={provider:c,prefix:"",name:d};return a&&!validateIconName(_,s)?null:_}return null},validateIconName=(o,a)=>o?!!((o.provider===""||o.provider.match(matchIconName))&&(a&&o.prefix===""||o.prefix.match(matchIconName))&&o.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze(se(se({},defaultIconDimensions),defaultIconTransformations)),defaultExtendedIconProps=Object.freeze(we(se({},defaultIconProps),{body:"",hidden:!1}));function mergeIconTransformations(o,a){const s={};!o.hFlip!=!a.hFlip&&(s.hFlip=!0),!o.vFlip!=!a.vFlip&&(s.vFlip=!0);const c=((o.rotate||0)+(a.rotate||0))%4;return c&&(s.rotate=c),s}function mergeIconData(o,a){const s=mergeIconTransformations(o,a);for(const c in defaultExtendedIconProps)c in defaultIconTransformations?c in o&&!(c in s)&&(s[c]=defaultIconTransformations[c]):c in a?s[c]=a[c]:c in o&&(s[c]=o[c]);return s}function getIconsTree(o,a){const s=o.icons,c=o.aliases||Object.create(null),f=Object.create(null);function d(y){if(s[y])return f[y]=[];if(!(y in f)){f[y]=null;const _=c[y]&&c[y].parent,S=_&&d(_);S&&(f[y]=[_].concat(S))}return f[y]}return(a||Object.keys(s).concat(Object.keys(c))).forEach(d),f}function internalGetIconData(o,a,s){const c=o.icons,f=o.aliases||Object.create(null);let d={};function y(_){d=mergeIconData(c[_]||f[_],d)}return y(a),s.forEach(y),mergeIconData(o,d)}function parseIconSet(o,a){const s=[];if(typeof o!="object"||typeof o.icons!="object")return s;o.not_found instanceof Array&&o.not_found.forEach(f=>{a(f,null),s.push(f)});const c=getIconsTree(o);for(const f in c){const d=c[f];d&&(a(f,internalGetIconData(o,f,d)),s.push(f))}return s}const optionalPropertyDefaults=se({provider:"",aliases:{},not_found:{}},defaultIconDimensions);function checkOptionalProps(o,a){for(const s in a)if(s in o&&typeof o[s]!=typeof a[s])return!1;return!0}function quicklyValidateIconSet(o){if(typeof o!="object"||o===null)return null;const a=o;if(typeof a.prefix!="string"||!o.icons||typeof o.icons!="object"||!checkOptionalProps(o,optionalPropertyDefaults))return null;const s=a.icons;for(const f in s){const d=s[f];if(!f.match(matchIconName)||typeof d.body!="string"||!checkOptionalProps(d,defaultExtendedIconProps))return null}const c=a.aliases||Object.create(null);for(const f in c){const d=c[f],y=d.parent;if(!f.match(matchIconName)||typeof y!="string"||!s[y]&&!c[y]||!checkOptionalProps(d,defaultExtendedIconProps))return null}return a}const dataStorage=Object.create(null);function newStorage(o,a){return{provider:o,prefix:a,icons:Object.create(null),missing:new Set}}function getStorage$2(o,a){const s=dataStorage[o]||(dataStorage[o]=Object.create(null));return s[a]||(s[a]=newStorage(o,a))}function addIconSet(o,a){return quicklyValidateIconSet(a)?parseIconSet(a,(s,c)=>{c?o.icons[s]=c:o.missing.add(s)}):[]}function addIconToStorage(o,a,s){try{if(typeof s.body=="string")return o.icons[a]=se({},s),!0}catch(c){}return!1}let simpleNames=!1;function allowSimpleNames(o){return typeof o=="boolean"&&(simpleNames=o),simpleNames}function getIconData(o){const a=typeof o=="string"?stringToIcon(o,!0,simpleNames):o;if(a){const s=getStorage$2(a.provider,a.prefix),c=a.name;return s.icons[c]||(s.missing.has(c)?null:void 0)}}function addIcon(o,a){const s=stringToIcon(o,!0,simpleNames);if(!s)return!1;const c=getStorage$2(s.provider,s.prefix);return addIconToStorage(c,s.name,a)}function addCollection(o,a){if(typeof o!="object")return!1;if(typeof a!="string"&&(a=o.provider||""),simpleNames&&!a&&!o.prefix){let f=!1;return quicklyValidateIconSet(o)&&(o.prefix="",parseIconSet(o,(d,y)=>{y&&addIcon(d,y)&&(f=!0)})),f}const s=o.prefix;if(!validateIconName({provider:a,prefix:s,name:"a"}))return!1;const c=getStorage$2(a,s);return!!addIconSet(c,o)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze(se(se({},defaultIconSizeCustomisations),defaultIconTransformations)),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(o,a,s){if(a===1)return o;if(s=s||100,typeof o=="number")return Math.ceil(o*a*s)/s;if(typeof o!="string")return o;const c=o.split(unitsSplit);if(c===null||!c.length)return o;const f=[];let d=c.shift(),y=unitsTest.test(d);for(;;){if(y){const _=parseFloat(d);isNaN(_)?f.push(d):f.push(Math.ceil(_*a*s)/s)}else f.push(d);if(d=c.shift(),d===void 0)return f.join("");y=!y}}const isUnsetKeyword=o=>o==="unset"||o==="undefined"||o==="none";function iconToSVG(o,a){const s=se(se({},defaultIconProps),o),c=se(se({},defaultIconCustomisations),a),f={left:s.left,top:s.top,width:s.width,height:s.height};let d=s.body;[s,c].forEach(O=>{const A=[],F=O.hFlip,j=O.vFlip;let I=O.rotate;F?j?I+=2:(A.push("translate("+(f.width+f.left).toString()+" "+(0-f.top).toString()+")"),A.push("scale(-1 1)"),f.top=f.left=0):j&&(A.push("translate("+(0-f.left).toString()+" "+(f.height+f.top).toString()+")"),A.push("scale(1 -1)"),f.top=f.left=0);let M;switch(I<0&&(I-=Math.floor(I/4)*4),I=I%4,I){case 1:M=f.height/2+f.top,A.unshift("rotate(90 "+M.toString()+" "+M.toString()+")");break;case 2:A.unshift("rotate(180 "+(f.width/2+f.left).toString()+" "+(f.height/2+f.top).toString()+")");break;case 3:M=f.width/2+f.left,A.unshift("rotate(-90 "+M.toString()+" "+M.toString()+")");break}I%2===1&&(f.left!==f.top&&(M=f.left,f.left=f.top,f.top=M),f.width!==f.height&&(M=f.width,f.width=f.height,f.height=M)),A.length&&(d=''+d+"")});const y=c.width,_=c.height,S=f.width,b=f.height;let $,P;y===null?(P=_===null?"1em":_==="auto"?b:_,$=calculateSize(P,S/b)):($=y==="auto"?S:y,P=_===null?calculateSize($,b/S):_==="auto"?b:_);const T={},C=(O,A)=>{isUnsetKeyword(A)||(T[O]=A.toString())};return C("width",$),C("height",P),T.viewBox=f.left.toString()+" "+f.top.toString()+" "+S.toString()+" "+b.toString(),{attributes:T,body:d}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(o,a=randomPrefix){const s=[];let c;for(;c=regex.exec(o);)s.push(c[1]);if(!s.length)return o;const f="suffix"+(Math.random()*16777216|Date.now()).toString(16);return s.forEach(d=>{const y=typeof a=="function"?a(d):a+(counter++).toString(),_=d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");o=o.replace(new RegExp('([#;"])('+_+')([")]|\\.[a-z])',"g"),"$1"+y+f+"$3")}),o=o.replace(new RegExp(f,"g"),""),o}const storage=Object.create(null);function setAPIModule(o,a){storage[o]=a}function getAPIModule(o){return storage[o]||storage[""]}function createAPIConfig(o){let a;if(typeof o.resources=="string")a=[o.resources];else if(a=o.resources,!(a instanceof Array)||!a.length)return null;return{resources:a,path:o.path||"/",maxURL:o.maxURL||500,rotate:o.rotate||750,timeout:o.timeout||5e3,random:o.random===!0,index:o.index||0,dataAfterTimeout:o.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(o,a){const s=createAPIConfig(a);return s===null?!1:(configStorage[o]=s,!0)}function getAPIConfig(o){return configStorage[o]}const detectFetch=()=>{let o;try{if(o=fetch,typeof o=="function")return o}catch(a){}};let fetchModule=detectFetch();function calculateMaxLength(o,a){const s=getAPIConfig(o);if(!s)return 0;let c;if(!s.maxURL)c=0;else{let f=0;s.resources.forEach(y=>{f=Math.max(f,y.length)});const d=a+".json?icons=";c=s.maxURL-f-s.path.length-d.length}return c}function shouldAbort(o){return o===404}const prepare=(o,a,s)=>{const c=[],f=calculateMaxLength(o,a),d="icons";let y={type:d,provider:o,prefix:a,icons:[]},_=0;return s.forEach((S,b)=>{_+=S.length+1,_>=f&&b>0&&(c.push(y),y={type:d,provider:o,prefix:a,icons:[]},_=S.length),y.icons.push(S)}),c.push(y),c};function getPath(o){if(typeof o=="string"){const a=getAPIConfig(o);if(a)return a.path}return"/"}const send=(o,a,s)=>{if(!fetchModule){s("abort",424);return}let c=getPath(a.provider);switch(a.type){case"icons":{const d=a.prefix,_=a.icons.join(","),S=new URLSearchParams({icons:_});c+=d+".json?"+S.toString();break}case"custom":{const d=a.uri;c+=d.slice(0,1)==="/"?d.slice(1):d;break}default:s("abort",400);return}let f=503;fetchModule(o+c).then(d=>{const y=d.status;if(y!==200){setTimeout(()=>{s(shouldAbort(y)?"abort":"next",y)});return}return f=501,d.json()}).then(d=>{if(typeof d!="object"||d===null){setTimeout(()=>{d===404?s("abort",d):s("next",f)});return}setTimeout(()=>{s("success",d)})}).catch(()=>{s("next",f)})},fetchAPIModule={prepare,send};function sortIcons(o){const a={loaded:[],missing:[],pending:[]},s=Object.create(null);o.sort((f,d)=>f.provider!==d.provider?f.provider.localeCompare(d.provider):f.prefix!==d.prefix?f.prefix.localeCompare(d.prefix):f.name.localeCompare(d.name));let c={provider:"",prefix:"",name:""};return o.forEach(f=>{if(c.name===f.name&&c.prefix===f.prefix&&c.provider===f.provider)return;c=f;const d=f.provider,y=f.prefix,_=f.name,S=s[d]||(s[d]=Object.create(null)),b=S[y]||(S[y]=getStorage$2(d,y));let $;_ in b.icons?$=a.loaded:y===""||b.missing.has(_)?$=a.missing:$=a.pending;const P={provider:d,prefix:y,name:_};$.push(P)}),a}function removeCallback(o,a){o.forEach(s=>{const c=s.loaderCallbacks;c&&(s.loaderCallbacks=c.filter(f=>f.id!==a))})}function updateCallbacks(o){o.pendingCallbacksFlag||(o.pendingCallbacksFlag=!0,setTimeout(()=>{o.pendingCallbacksFlag=!1;const a=o.loaderCallbacks?o.loaderCallbacks.slice(0):[];if(!a.length)return;let s=!1;const c=o.provider,f=o.prefix;a.forEach(d=>{const y=d.icons,_=y.pending.length;y.pending=y.pending.filter(S=>{if(S.prefix!==f)return!0;const b=S.name;if(o.icons[b])y.loaded.push({provider:c,prefix:f,name:b});else if(o.missing.has(b))y.missing.push({provider:c,prefix:f,name:b});else return s=!0,!0;return!1}),y.pending.length!==_&&(s||removeCallback([o],d.id),d.callback(y.loaded.slice(0),y.missing.slice(0),y.pending.slice(0),d.abort))})}))}let idCounter=0;function storeCallback(o,a,s){const c=idCounter++,f=removeCallback.bind(null,s,c);if(!a.pending.length)return f;const d={id:c,icons:a,callback:o,abort:f};return s.forEach(y=>{(y.loaderCallbacks||(y.loaderCallbacks=[])).push(d)}),f}function listToIcons(o,a=!0,s=!1){const c=[];return o.forEach(f=>{const d=typeof f=="string"?stringToIcon(f,a,s):f;d&&c.push(d)}),c}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(o,a,s,c){const f=o.resources.length,d=o.random?Math.floor(Math.random()*f):o.index;let y;if(o.random){let z=o.resources.slice(0);for(y=[];z.length>1;){const H=Math.floor(Math.random()*z.length);y.push(z[H]),z=z.slice(0,H).concat(z.slice(H+1))}y=y.concat(z)}else y=o.resources.slice(d).concat(o.resources.slice(0,d));const _=Date.now();let S="pending",b=0,$,P=null,T=[],C=[];typeof c=="function"&&C.push(c);function O(){P&&(clearTimeout(P),P=null)}function A(){S==="pending"&&(S="aborted"),O(),T.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),T=[]}function F(z,H){H&&(C=[]),typeof z=="function"&&C.push(z)}function j(){return{startTime:_,payload:a,status:S,queriesSent:b,queriesPending:T.length,subscribe:F,abort:A}}function I(){S="failed",C.forEach(z=>{z(void 0,$)})}function M(){T.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),T=[]}function L(z,H,G){const X=H!=="success";switch(T=T.filter(W=>W!==z),S){case"pending":break;case"failed":if(X||!o.dataAfterTimeout)return;break;default:return}if(H==="abort"){$=G,I();return}if(X){$=G,T.length||(y.length?U():I());return}if(O(),M(),!o.random){const W=o.resources.indexOf(z.resource);W!==-1&&W!==o.index&&(o.index=W)}S="completed",C.forEach(W=>{W(G)})}function U(){if(S!=="pending")return;O();const z=y.shift();if(z===void 0){if(T.length){P=setTimeout(()=>{O(),S==="pending"&&(M(),I())},o.timeout);return}I();return}const H={status:"pending",resource:z,callback:(G,X)=>{L(H,G,X)}};T.push(H),b++,P=setTimeout(U,o.rotate),s(z,a,H.callback)}return setTimeout(U),j}function initRedundancy(o){const a=se(se({},defaultConfig),o);let s=[];function c(){s=s.filter(_=>_().status==="pending")}function f(_,S,b){const $=sendQuery(a,_,S,(P,T)=>{c(),b&&b(P,T)});return s.push($),$}function d(_){return s.find(S=>_(S))||null}return{query:f,find:d,setIndex:_=>{a.index=_},getIndex:()=>a.index,cleanup:c}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(o){if(!redundancyCache[o]){const a=getAPIConfig(o);if(!a)return;const s=initRedundancy(a),c={config:a,redundancy:s};redundancyCache[o]=c}return redundancyCache[o]}function sendAPIQuery(o,a,s){let c,f;if(typeof o=="string"){const d=getAPIModule(o);if(!d)return s(void 0,424),emptyCallback$1;f=d.send;const y=getRedundancyCache(o);y&&(c=y.redundancy)}else{const d=createAPIConfig(o);if(d){c=initRedundancy(d);const y=o.resources?o.resources[0]:"",_=getAPIModule(y);_&&(f=_.send)}}return!c||!f?(s(void 0,424),emptyCallback$1):c.query(a,f,s)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(o,a){try{return o.getItem(a)}catch(s){}}function setStoredItem(o,a,s){try{return o.setItem(a,s),!0}catch(c){}}function removeStoredItem(o,a){try{o.removeItem(a)}catch(s){}}function setBrowserStorageItemsCount(o,a){return setStoredItem(o,browserCacheCountKey,a.toString())}function getBrowserStorageItemsCount(o){return parseInt(getStoredItem(o,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(o){browserStorageStatus=o}let _window=typeof window=="undefined"?{}:window;function getBrowserStorage(o){const a=o+"Storage";try{if(_window&&_window[a]&&typeof _window[a].length=="number")return _window[a]}catch(s){}browserStorageConfig[o]=!1}function iterateBrowserStorage(o,a){const s=getBrowserStorage(o);if(!s)return;const c=getStoredItem(s,browserCacheVersionKey);if(c!==browserCacheVersion){if(c){const _=getBrowserStorageItemsCount(s);for(let S=0;S<_;S++)removeStoredItem(s,browserCachePrefix+S.toString())}setStoredItem(s,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(s,0);return}const f=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,d=_=>{const S=browserCachePrefix+_.toString(),b=getStoredItem(s,S);if(typeof b=="string"){try{const $=JSON.parse(b);if(typeof $=="object"&&typeof $.cached=="number"&&$.cached>f&&typeof $.provider=="string"&&typeof $.data=="object"&&typeof $.data.prefix=="string"&&a($,_))return!0}catch($){}removeStoredItem(s,S)}};let y=getBrowserStorageItemsCount(s);for(let _=y-1;_>=0;_--)d(_)||(_===y-1?(y--,setBrowserStorageItemsCount(s,y)):browserStorageEmptyItems[o].add(_))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const o in browserStorageConfig)iterateBrowserStorage(o,a=>{const s=a.data,c=a.provider,f=s.prefix,d=getStorage$2(c,f);if(!addIconSet(d,s).length)return!1;const y=s.lastModified||-1;return d.lastModifiedCached=d.lastModifiedCached?Math.min(d.lastModifiedCached,y):y,!0})}}function updateLastModified(o,a){const s=o.lastModifiedCached;if(s&&s>=a)return s===a;if(o.lastModifiedCached=a,s)for(const c in browserStorageConfig)iterateBrowserStorage(c,f=>{const d=f.data;return f.provider!==o.provider||d.prefix!==o.prefix||d.lastModified===a});return!0}function storeInBrowserStorage(o,a){browserStorageStatus||initBrowserStorage();function s(c){let f;if(!browserStorageConfig[c]||!(f=getBrowserStorage(c)))return;const d=browserStorageEmptyItems[c];let y;if(d.size)d.delete(y=Array.from(d).shift());else if(y=getBrowserStorageItemsCount(f),!setBrowserStorageItemsCount(f,y+1))return;const _={cached:Math.floor(Date.now()/browserStorageHour),provider:o.provider,data:a};return setStoredItem(f,browserCachePrefix+y.toString(),JSON.stringify(_))}a.lastModified&&!updateLastModified(o,a.lastModified)||Object.keys(a.icons).length&&(a.not_found&&(a=Object.assign({},a),delete a.not_found),s("local")||s("session"))}function emptyCallback(){}function loadedNewIcons(o){o.iconsLoaderFlag||(o.iconsLoaderFlag=!0,setTimeout(()=>{o.iconsLoaderFlag=!1,updateCallbacks(o)}))}function loadNewIcons(o,a){o.iconsToLoad?o.iconsToLoad=o.iconsToLoad.concat(a).sort():o.iconsToLoad=a,o.iconsQueueFlag||(o.iconsQueueFlag=!0,setTimeout(()=>{o.iconsQueueFlag=!1;const{provider:s,prefix:c}=o,f=o.iconsToLoad;delete o.iconsToLoad;let d;if(!f||!(d=getAPIModule(s)))return;d.prepare(s,c,f).forEach(_=>{sendAPIQuery(s,_,S=>{if(typeof S!="object")_.icons.forEach(b=>{o.missing.add(b)});else try{const b=addIconSet(o,S);if(!b.length)return;const $=o.pendingIcons;$&&b.forEach(P=>{$.delete(P)}),storeInBrowserStorage(o,S)}catch(b){}loadedNewIcons(o)})})}))}const loadIcons=(o,a)=>{const s=listToIcons(o,!0,allowSimpleNames()),c=sortIcons(s);if(!c.pending.length){let S=!0;return a&&setTimeout(()=>{S&&a(c.loaded,c.missing,c.pending,emptyCallback)}),()=>{S=!1}}const f=Object.create(null),d=[];let y,_;return c.pending.forEach(S=>{const{provider:b,prefix:$}=S;if($===_&&b===y)return;y=b,_=$,d.push(getStorage$2(b,$));const P=f[b]||(f[b]=Object.create(null));P[$]||(P[$]=[])}),c.pending.forEach(S=>{const{provider:b,prefix:$,name:P}=S,T=getStorage$2(b,$),C=T.pendingIcons||(T.pendingIcons=new Set);C.has(P)||(C.add(P),f[b][$].push(P))}),d.forEach(S=>{const{provider:b,prefix:$}=S;f[b][$].length&&loadNewIcons(S,f[b][$])}),a?storeCallback(a,c,d):emptyCallback};function mergeCustomisations(o,a){const s=se({},o);for(const c in a){const f=a[c],d=typeof f;c in defaultIconSizeCustomisations?(f===null||f&&(d==="string"||d==="number"))&&(s[c]=f):d===typeof s[c]&&(s[c]=c==="rotate"?f%4:f)}return s}const separator=/[\s,]+/;function flipFromString(o,a){a.split(separator).forEach(s=>{switch(s.trim()){case"horizontal":o.hFlip=!0;break;case"vertical":o.vFlip=!0;break}})}function rotateFromString(o,a=0){const s=o.replace(/^-?[0-9.]*/,"");function c(f){for(;f<0;)f+=4;return f%4}if(s===""){const f=parseInt(o);return isNaN(f)?0:c(f)}else if(s!==o){let f=0;switch(s){case"%":f=25;break;case"deg":f=90}if(f){let d=parseFloat(o.slice(0,o.length-s.length));return isNaN(d)?0:(d=d/f,d%1===0?c(d):0)}}return a}function iconToHTML(o,a){let s=o.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const c in a)s+=" "+c+'="'+a[c]+'"';return'"+o+""}function encodeSVGforURL(o){return o.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData(o){return"data:image/svg+xml,"+encodeSVGforURL(o)}function svgToURL(o){return'url("'+svgToData(o)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:o=>o})}catch(o){policy=null}}function cleanUpInnerHTML(o){return policy===void 0&&createPolicy(),policy?policy.createHTML(o):o}const defaultExtendedIconCustomisations=we(se({},defaultIconCustomisations),{inline:!1}),svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const o in propsToAddTo){const a=propsToAddTo[o];for(const s in propsToAdd)a[o+s]=propsToAdd[s]}const inlineDefaults=we(se({},defaultExtendedIconCustomisations),{inline:!0});function fixSize(o){return o+(o.match(/^[-0-9.]+$/)?"px":"")}const render=(o,a,s,c)=>{const f=s?inlineDefaults:defaultExtendedIconCustomisations,d=mergeCustomisations(f,a),y=a.mode||"svg",_={},S=a.style||{},b=we(se({},y==="svg"?svgDefaults:{}),{ref:c});for(let j in a){const I=a[j];if(I!==void 0)switch(j){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":d[j]=I===!0||I==="true"||I===1;break;case"flip":typeof I=="string"&&flipFromString(d,I);break;case"color":_.color=I;break;case"rotate":typeof I=="string"?d[j]=rotateFromString(I):typeof I=="number"&&(d[j]=I);break;case"ariaHidden":case"aria-hidden":I!==!0&&I!=="true"&&delete b["aria-hidden"];break;default:f[j]===void 0&&(b[j]=I)}}const $=iconToSVG(o,d),P=$.attributes;if(d.inline&&(_.verticalAlign="-0.125em"),y==="svg"){b.style=se(se({},_),S),Object.assign(b,P);let j=0,I=a.id;return typeof I=="string"&&(I=I.replace(/-/g,"_")),b.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs($.body,I?()=>I+"ID"+j++:"iconifyReact"))},React$4.createElement("svg",b)}const{body:T,width:C,height:O}=o,A=y==="mask"||(y==="bg"?!1:T.indexOf("currentColor")!==-1),F=iconToHTML(T,we(se({},P),{width:C+"",height:O+""}));return b.style=se(se(se(we(se({},_),{"--svg":svgToURL(F),width:fixSize(P.width),height:fixSize(P.height)}),commonProps),A?monotoneProps:coloredProps),S),React$4.createElement("span",b)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document!="undefined"&&typeof window!="undefined"){initBrowserStorage();const o=window;if(o.IconifyPreload!==void 0){const a=o.IconifyPreload,s="Invalid IconifyPreload syntax.";typeof a=="object"&&a!==null&&(a instanceof Array?a:[a]).forEach(c=>{try{typeof c!="object"||c===null||c instanceof Array||typeof c.icons!="object"||typeof c.prefix!="string"||addCollection(c)}catch(f){}})}if(o.IconifyProviders!==void 0){const a=o.IconifyProviders;if(typeof a=="object"&&a!==null)for(let s in a){const c="IconifyProviders["+s+"] is invalid.";try{const f=a[s];if(typeof f!="object"||!f||f.resources===void 0)continue;addAPIProvider(s,f)}catch(f){}}}}class IconComponent extends React$4.Component{constructor(a){super(a),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(a){this.state.icon!==a&&this.setState({icon:a})}_checkIcon(a){const s=this.state,c=this.props.icon;if(typeof c=="object"&&c!==null&&typeof c.body=="string"){this._icon="",this._abortLoading(),(a||s.icon===null)&&this._setData({data:c});return}let f;if(typeof c!="string"||(f=stringToIcon(c,!1,!0))===null){this._abortLoading(),this._setData(null);return}const d=getIconData(f);if(!d){(!this._loading||this._loading.name!==c)&&(this._abortLoading(),this._icon="",this._setData(null),d!==null&&(this._loading={name:c,abort:loadIcons([f],this._checkIcon.bind(this,!1))}));return}if(this._icon!==c||s.icon===null){this._abortLoading(),this._icon=c;const y=["iconify"];f.prefix!==""&&y.push("iconify--"+f.prefix),f.provider!==""&&y.push("iconify--"+f.provider),this._setData({data:d,classes:y}),this.props.onLoad&&this.props.onLoad(c)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(a){a.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const a=this.props,s=this.state.icon;if(s===null)return a.children?a.children:React$4.createElement("span",{});let c=a;return s.classes&&(c=we(se({},a),{className:(typeof a.className=="string"?a.className+" ":"")+s.classes.join(" ")})),render(se(se({},defaultIconProps),s.data),c,a._inline,a._ref)}}const Icon=React$4.forwardRef(function(a,s){const c=we(se({},a),{_ref:s,_inline:!1});return React$4.createElement(IconComponent,c)});React$4.forwardRef(function(a,s){const c=we(se({},a),{_ref:s,_inline:!0});return React$4.createElement(IconComponent,c)});const Selectlangulage=()=>{const{i18n:o}=useTranslation(),a=[{key:"zh",label:"中文"},{key:"en",label:"English"}];return jsxRuntimeExports.jsx(Dropdown,{menu:{items:a,onClick:({key:s})=>o.changeLanguage(s)},trigger:["click"],children:jsxRuntimeExports.jsx(Button,{shape:"circle",size:"small",icon:jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(Icon,{icon:"ant-design:global-outlined"})})})})};function LayoutFeature(){return jsxRuntimeExports.jsxs(Space,{size:"middle",children:[jsxRuntimeExports.jsx(GlobalSearch,{}),jsxRuntimeExports.jsx(Selectlangulage,{}),jsxRuntimeExports.jsx(DocLink,{}),jsxRuntimeExports.jsx(GithubLink,{}),jsxRuntimeExports.jsx(Settings,{}),jsxRuntimeExports.jsx(UserDropdown,{})]})}function formatProdErrorMessage$2(o){return`Minified Redux error #${o}; visit https://redux.js.org/Errors?code=${o} for the full message or use the non-minified dev environment for full errors. `}var $$observable$1=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),symbol_observable_default=$$observable$1,randomString$1=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes$1={INIT:`@@redux/INIT${randomString$1()}`,REPLACE:`@@redux/REPLACE${randomString$1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString$1()}`},actionTypes_default=ActionTypes$1;function isPlainObject$2(o){if(typeof o!="object"||o===null)return!1;let a=o;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(o)===a||Object.getPrototypeOf(o)===null}function createStore$1(o,a,s){if(typeof o!="function")throw new Error(formatProdErrorMessage$2(2));if(typeof a=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$2(0));if(typeof a=="function"&&typeof s=="undefined"&&(s=a,a=void 0),typeof s!="undefined"){if(typeof s!="function")throw new Error(formatProdErrorMessage$2(1));return s(createStore$1)(o,a)}let c=o,f=a,d=new Map,y=d,_=0,S=!1;function b(){y===d&&(y=new Map,d.forEach((F,j)=>{y.set(j,F)}))}function $(){if(S)throw new Error(formatProdErrorMessage$2(3));return f}function P(F){if(typeof F!="function")throw new Error(formatProdErrorMessage$2(4));if(S)throw new Error(formatProdErrorMessage$2(5));let j=!0;b();const I=_++;return y.set(I,F),function(){if(j){if(S)throw new Error(formatProdErrorMessage$2(6));j=!1,b(),y.delete(I),d=null}}}function T(F){if(!isPlainObject$2(F))throw new Error(formatProdErrorMessage$2(7));if(typeof F.type=="undefined")throw new Error(formatProdErrorMessage$2(8));if(typeof F.type!="string")throw new Error(formatProdErrorMessage$2(17));if(S)throw new Error(formatProdErrorMessage$2(9));try{S=!0,f=c(f,F)}finally{S=!1}return(d=y).forEach(I=>{I()}),F}function C(F){if(typeof F!="function")throw new Error(formatProdErrorMessage$2(10));c=F,T({type:actionTypes_default.REPLACE})}function O(){const F=P;return{subscribe(j){if(typeof j!="object"||j===null)throw new Error(formatProdErrorMessage$2(11));function I(){const L=j;L.next&&L.next($())}return I(),{unsubscribe:F(I)}},[symbol_observable_default](){return this}}}return T({type:actionTypes_default.INIT}),{dispatch:T,subscribe:P,getState:$,replaceReducer:C,[symbol_observable_default]:O}}function assertReducerShape(o){Object.keys(o).forEach(a=>{const s=o[a];if(typeof s(void 0,{type:actionTypes_default.INIT})=="undefined")throw new Error(formatProdErrorMessage$2(12));if(typeof s(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(formatProdErrorMessage$2(13))})}function combineReducers(o){const a=Object.keys(o),s={};for(let d=0;da:o.length===1?o[0]:o.reduce((a,s)=>(...c)=>a(s(...c)))}function applyMiddleware(...o){return a=>(s,c)=>{const f=a(s,c);let d=()=>{throw new Error(formatProdErrorMessage$2(15))};const y={getState:f.getState,dispatch:(S,...b)=>d(S,...b)},_=o.map(S=>S(y));return d=compose(..._)(f.dispatch),we(se({},f),{dispatch:d})}}function isAction(o){return isPlainObject$2(o)&&"type"in o&&typeof o.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(o,...a){throw new Error(`[Immer] minified error nr: ${o}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft(o){return!!o&&!!o[DRAFT_STATE]}function isDraftable(o){var a;return o?isPlainObject$1(o)||Array.isArray(o)||!!o[DRAFTABLE]||!!((a=o.constructor)!=null&&a[DRAFTABLE])||isMap(o)||isSet(o):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject$1(o){if(!o||typeof o!="object")return!1;const a=getPrototypeOf(o);if(a===null)return!0;const s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object?!0:typeof s=="function"&&Function.toString.call(s)===objectCtorString}function each(o,a){getArchtype(o)===0?Object.entries(o).forEach(([s,c])=>{a(s,c,o)}):o.forEach((s,c)=>a(c,s,o))}function getArchtype(o){const a=o[DRAFT_STATE];return a?a.type_:Array.isArray(o)?1:isMap(o)?2:isSet(o)?3:0}function has(o,a){return getArchtype(o)===2?o.has(a):Object.prototype.hasOwnProperty.call(o,a)}function set(o,a,s){const c=getArchtype(o);c===2?o.set(a,s):c===3?o.add(s):o[a]=s}function is(o,a){return o===a?o!==0||1/o===1/a:o!==o&&a!==a}function isMap(o){return o instanceof Map}function isSet(o){return o instanceof Set}function latest(o){return o.copy_||o.base_}function shallowCopy(o,a){if(isMap(o))return new Map(o);if(isSet(o))return new Set(o);if(Array.isArray(o))return Array.prototype.slice.call(o);if(!a&&isPlainObject$1(o))return getPrototypeOf(o)?se({},o):Object.assign(Object.create(null),o);const s=Object.getOwnPropertyDescriptors(o);delete s[DRAFT_STATE];let c=Reflect.ownKeys(s);for(let f=0;f1&&(o.set=o.add=o.clear=o.delete=dontMutateFrozenCollections),Object.freeze(o),a&&each(o,(s,c)=>freeze(c,!0))),o}function dontMutateFrozenCollections(){die(2)}function isFrozen(o){return Object.isFrozen(o)}var plugins={};function getPlugin(o){const a=plugins[o];return a||die(0,o),a}var currentScope;function getCurrentScope(){return currentScope}function createScope(o,a){return{drafts_:[],parent_:o,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(o,a){a&&(getPlugin("Patches"),o.patches_=[],o.inversePatches_=[],o.patchListener_=a)}function revokeScope(o){leaveScope(o),o.drafts_.forEach(revokeDraft),o.drafts_=null}function leaveScope(o){o===currentScope&&(currentScope=o.parent_)}function enterScope(o){return currentScope=createScope(currentScope,o)}function revokeDraft(o){const a=o[DRAFT_STATE];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function processResult(o,a){a.unfinalizedDrafts_=a.drafts_.length;const s=a.drafts_[0];return o!==void 0&&o!==s?(s[DRAFT_STATE].modified_&&(revokeScope(a),die(4)),isDraftable(o)&&(o=finalize(a,o),a.parent_||maybeFreeze(a,o)),a.patches_&&getPlugin("Patches").generateReplacementPatches_(s[DRAFT_STATE].base_,o,a.patches_,a.inversePatches_)):o=finalize(a,s,[]),revokeScope(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),o!==NOTHING?o:void 0}function finalize(o,a,s){if(isFrozen(a))return a;const c=a[DRAFT_STATE];if(!c)return each(a,(f,d)=>finalizeProperty(o,c,a,f,d,s)),a;if(c.scope_!==o)return a;if(!c.modified_)return maybeFreeze(o,c.base_,!0),c.base_;if(!c.finalized_){c.finalized_=!0,c.scope_.unfinalizedDrafts_--;const f=c.copy_;let d=f,y=!1;c.type_===3&&(d=new Set(f),f.clear(),y=!0),each(d,(_,S)=>finalizeProperty(o,c,f,_,S,s,y)),maybeFreeze(o,f,!1),s&&o.patches_&&getPlugin("Patches").generatePatches_(c,s,o.patches_,o.inversePatches_)}return c.copy_}function finalizeProperty(o,a,s,c,f,d,y){if(isDraft(f)){const _=d&&a&&a.type_!==3&&!has(a.assigned_,c)?d.concat(c):void 0,S=finalize(o,f,_);if(set(s,c,S),isDraft(S))o.canAutoFreeze_=!1;else return}else y&&s.add(f);if(isDraftable(f)&&!isFrozen(f)){if(!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1)return;finalize(o,f),(!a||!a.scope_.parent_)&&maybeFreeze(o,f)}}function maybeFreeze(o,a,s=!1){!o.parent_&&o.immer_.autoFreeze_&&o.canAutoFreeze_&&freeze(a,s)}function createProxyProxy(o,a){const s=Array.isArray(o),c={type_:s?1:0,scope_:a?a.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:o,draft_:null,copy_:null,revoke_:null,isManual_:!1};let f=c,d=objectTraps;s&&(f=[c],d=arrayTraps);const{revoke:y,proxy:_}=Proxy.revocable(f,d);return c.draft_=_,c.revoke_=y,_}var objectTraps={get(o,a){if(a===DRAFT_STATE)return o;const s=latest(o);if(!has(s,a))return readPropFromProto(o,s,a);const c=s[a];return o.finalized_||!isDraftable(c)?c:c===peek(o.base_,a)?(prepareCopy(o),o.copy_[a]=createProxy(c,o)):c},has(o,a){return a in latest(o)},ownKeys(o){return Reflect.ownKeys(latest(o))},set(o,a,s){const c=getDescriptorFromProto(latest(o),a);if(c!=null&&c.set)return c.set.call(o.draft_,s),!0;if(!o.modified_){const f=peek(latest(o),a),d=f==null?void 0:f[DRAFT_STATE];if(d&&d.base_===s)return o.copy_[a]=s,o.assigned_[a]=!1,!0;if(is(s,f)&&(s!==void 0||has(o.base_,a)))return!0;prepareCopy(o),markChanged(o)}return o.copy_[a]===s&&(s!==void 0||a in o.copy_)||Number.isNaN(s)&&Number.isNaN(o.copy_[a])||(o.copy_[a]=s,o.assigned_[a]=!0),!0},deleteProperty(o,a){return peek(o.base_,a)!==void 0||a in o.base_?(o.assigned_[a]=!1,prepareCopy(o),markChanged(o)):delete o.assigned_[a],o.copy_&&delete o.copy_[a],!0},getOwnPropertyDescriptor(o,a){const s=latest(o),c=Reflect.getOwnPropertyDescriptor(s,a);return c&&{writable:!0,configurable:o.type_!==1||a!=="length",enumerable:c.enumerable,value:s[a]}},defineProperty(){die(11)},getPrototypeOf(o){return getPrototypeOf(o.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each(objectTraps,(o,a)=>{arrayTraps[o]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});arrayTraps.deleteProperty=function(o,a){return arrayTraps.set.call(this,o,a,void 0)};arrayTraps.set=function(o,a,s){return objectTraps.set.call(this,o[0],a,s,o[0])};function peek(o,a){const s=o[DRAFT_STATE];return(s?latest(s):o)[a]}function readPropFromProto(o,a,s){var f;const c=getDescriptorFromProto(a,s);return c?"value"in c?c.value:(f=c.get)==null?void 0:f.call(o.draft_):void 0}function getDescriptorFromProto(o,a){if(!(a in o))return;let s=getPrototypeOf(o);for(;s;){const c=Object.getOwnPropertyDescriptor(s,a);if(c)return c;s=getPrototypeOf(s)}}function markChanged(o){o.modified_||(o.modified_=!0,o.parent_&&markChanged(o.parent_))}function prepareCopy(o){o.copy_||(o.copy_=shallowCopy(o.base_,o.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(o){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(a,s,c)=>{if(typeof a=="function"&&typeof s!="function"){const d=s;s=a;const y=this;return function(S=d,...b){return y.produce(S,$=>s.call(this,$,...b))}}typeof s!="function"&&die(6),c!==void 0&&typeof c!="function"&&die(7);let f;if(isDraftable(a)){const d=enterScope(this),y=createProxy(a,void 0);let _=!0;try{f=s(y),_=!1}finally{_?revokeScope(d):leaveScope(d)}return usePatchesInScope(d,c),processResult(f,d)}else if(!a||typeof a!="object"){if(f=s(a),f===void 0&&(f=a),f===NOTHING&&(f=void 0),this.autoFreeze_&&freeze(f,!0),c){const d=[],y=[];getPlugin("Patches").generateReplacementPatches_(a,f,d,y),c(d,y)}return f}else die(1,a)},this.produceWithPatches=(a,s)=>{if(typeof a=="function")return(y,..._)=>this.produceWithPatches(y,S=>a(S,..._));let c,f;return[this.produce(a,s,(y,_)=>{c=y,f=_}),c,f]},typeof(o==null?void 0:o.autoFreeze)=="boolean"&&this.setAutoFreeze(o.autoFreeze),typeof(o==null?void 0:o.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(o.useStrictShallowCopy)}createDraft(o){isDraftable(o)||die(8),isDraft(o)&&(o=current(o));const a=enterScope(this),s=createProxy(o,void 0);return s[DRAFT_STATE].isManual_=!0,leaveScope(a),s}finishDraft(o,a){const s=o&&o[DRAFT_STATE];(!s||!s.isManual_)&&die(9);const{scope_:c}=s;return usePatchesInScope(c,a),processResult(void 0,c)}setAutoFreeze(o){this.autoFreeze_=o}setUseStrictShallowCopy(o){this.useStrictShallowCopy_=o}applyPatches(o,a){let s;for(s=a.length-1;s>=0;s--){const f=a[s];if(f.path.length===0&&f.op==="replace"){o=f.value;break}}s>-1&&(a=a.slice(s+1));const c=getPlugin("Patches").applyPatches_;return isDraft(o)?c(o,a):this.produce(o,f=>c(f,a))}};function createProxy(o,a){const s=isMap(o)?getPlugin("MapSet").proxyMap_(o,a):isSet(o)?getPlugin("MapSet").proxySet_(o,a):createProxyProxy(o,a);return(a?a.scope_:getCurrentScope()).drafts_.push(s),s}function current(o){return isDraft(o)||die(10,o),currentImpl(o)}function currentImpl(o){if(!isDraftable(o)||isFrozen(o))return o;const a=o[DRAFT_STATE];let s;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,s=shallowCopy(o,a.scope_.immer_.useStrictShallowCopy_)}else s=shallowCopy(o,!0);return each(s,(c,f)=>{set(s,c,currentImpl(f))}),a&&(a.finalized_=!1),s}var immer=new Immer2,produce=immer.produce;immer.produceWithPatches.bind(immer);immer.setAutoFreeze.bind(immer);immer.setUseStrictShallowCopy.bind(immer);immer.applyPatches.bind(immer);immer.createDraft.bind(immer);immer.finishDraft.bind(immer);function assertIsFunction(o,a=`expected a function, instead received ${typeof o}`){if(typeof o!="function")throw new TypeError(a)}function assertIsObject(o,a=`expected an object, instead received ${typeof o}`){if(typeof o!="object")throw new TypeError(a)}function assertIsArrayOfFunctions(o,a="expected all items to be functions, instead received the following types: "){if(!o.every(s=>typeof s=="function")){const s=o.map(c=>typeof c=="function"?`function ${c.name||"unnamed"}()`:typeof c).join(", ");throw new TypeError(`${a}[${s}]`)}}var ensureIsArray=o=>Array.isArray(o)?o:[o];function getDependencies(o){const a=Array.isArray(o[0])?o[0]:o;return assertIsArrayOfFunctions(a,"createSelector expects all input-selectors to be functions, but received the following types: "),a}function collectInputSelectorResults(o,a){const s=[],{length:c}=o;for(let f=0;f{s=createCacheNode(),y.resetResultsCount()},y.resultsCount=()=>d,y.resetResultsCount=()=>{d=0},y}function createSelectorCreator(o,...a){const s=typeof o=="function"?{memoize:o,memoizeOptions:a}:o,c=(...f)=>{let d=0,y=0,_,S={},b=f.pop();typeof b=="object"&&(S=b,b=f.pop()),assertIsFunction(b,`createSelector expects an output function after the inputs, but received: [${typeof b}]`);const $=se(se({},s),S),{memoize:P,memoizeOptions:T=[],argsMemoize:C=weakMapMemoize,argsMemoizeOptions:O=[],devModeChecks:A={}}=$,F=ensureIsArray(T),j=ensureIsArray(O),I=getDependencies(f),M=P(function(){return d++,b.apply(null,arguments)},...F),L=C(function(){y++;const z=collectInputSelectorResults(I,arguments);return _=M.apply(null,z),_},...j);return Object.assign(L,{resultFunc:b,memoizedResultFunc:M,dependencies:I,dependencyRecomputations:()=>y,resetDependencyRecomputations:()=>{y=0},lastResult:()=>_,recomputations:()=>d,resetRecomputations:()=>{d=0},memoize:P,argsMemoize:C})};return Object.assign(c,{withTypes:()=>c}),c}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign((o,a=createSelector)=>{assertIsObject(o,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof o}`);const s=Object.keys(o),c=s.map(d=>o[d]);return a(c,(...d)=>d.reduce((y,_,S)=>(y[s[S]]=_,y),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(o){return({dispatch:s,getState:c})=>f=>d=>typeof d=="function"?d(s,c,o):f(d)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,createDraftSafeSelectorCreator=(...o)=>{const a=createSelectorCreator(...o);return(...s)=>{const c=a(...s),f=(d,...y)=>c(isDraft(d)?current(d):d,...y);return Object.assign(f,c),f}};createDraftSafeSelectorCreator(weakMapMemoize);var composeWithDevTools=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose:compose.apply(null,arguments)},hasMatchFunction=o=>o&&typeof o.match=="function";function createAction(o,a){function s(...c){if(a){let f=a(...c);if(!f)throw new Error(formatProdErrorMessage$1(0));return se(se({type:o,payload:f.payload},"meta"in f&&{meta:f.meta}),"error"in f&&{error:f.error})}return{type:o,payload:c[0]}}return s.toString=()=>`${o}`,s.type=o,s.match=c=>isAction(c)&&c.type===o,s}var Tuple=class ba extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,ba.prototype)}static get[Symbol.species](){return ba}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new ba(...a[0].concat(this)):new ba(...a.concat(this))}};function freezeDraftable(o){return isDraftable(o)?produce(o,()=>{}):o}function emplace(o,a,s){if(o.has(a)){let f=o.get(a);return s.update&&(f=s.update(f,a,o),o.set(a,f)),f}if(!s.insert)throw new Error(formatProdErrorMessage$1(10));const c=s.insert(a,o);return o.set(a,c),c}function isBoolean(o){return typeof o=="boolean"}var buildGetDefaultMiddleware=()=>function(a){const{thunk:s=!0,immutableCheck:c=!0,serializableCheck:f=!0,actionCreatorCheck:d=!0}=a!=null?a:{};let y=new Tuple;return s&&(isBoolean(s)?y.push(thunk):y.push(withExtraArgument(s.extraArgument))),y},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=o=>a=>{setTimeout(a,o)},rAF=typeof window!="undefined"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10),autoBatchEnhancer=(o={type:"raf"})=>a=>(...s)=>{const c=a(...s);let f=!0,d=!1,y=!1;const _=new Set,S=o.type==="tick"?queueMicrotask:o.type==="raf"?rAF:o.type==="callback"?o.queueNotification:createQueueWithTimer(o.timeout),b=()=>{y=!1,d&&(d=!1,_.forEach($=>$()))};return Object.assign({},c,{subscribe($){const P=()=>f&&$(),T=c.subscribe(P);return _.add($),()=>{T(),_.delete($)}},dispatch($){var P;try{return f=!((P=$==null?void 0:$.meta)!=null&&P[SHOULD_AUTOBATCH]),d=!f,d&&(y||(y=!0,S(b))),c.dispatch($)}finally{f=!0}}})},buildGetDefaultEnhancers=o=>function(s){const{autoBatch:c=!0}=s!=null?s:{};let f=new Tuple(o);return c&&f.push(autoBatchEnhancer(typeof c=="object"?c:void 0)),f},IS_PRODUCTION=!0;function configureStore(o){const a=buildGetDefaultMiddleware(),{reducer:s=void 0,middleware:c,devTools:f=!0,preloadedState:d=void 0,enhancers:y=void 0}=o||{};let _;if(typeof s=="function")_=s;else if(isPlainObject$2(s))_=combineReducers(s);else throw new Error(formatProdErrorMessage$1(1));let S;typeof c=="function"?S=c(a):S=a();let b=compose;f&&(b=composeWithDevTools(se({trace:!IS_PRODUCTION},typeof f=="object"&&f)));const $=applyMiddleware(...S),P=buildGetDefaultEnhancers($);let T=typeof y=="function"?y(P):P();const C=b(...T);return createStore$1(_,d,C)}function executeReducerBuilderCallback(o){const a={},s=[];let c;const f={addCase(d,y){const _=typeof d=="string"?d:d.type;if(!_)throw new Error(formatProdErrorMessage$1(28));if(_ in a)throw new Error(formatProdErrorMessage$1(29));return a[_]=y,f},addMatcher(d,y){return s.push({matcher:d,reducer:y}),f},addDefaultCase(d){return c=d,f}};return o(f),[a,s,c]}function isStateFunction(o){return typeof o=="function"}function createReducer(o,a){let[s,c,f]=executeReducerBuilderCallback(a),d;if(isStateFunction(o))d=()=>freezeDraftable(o());else{const _=freezeDraftable(o);d=()=>_}function y(_=d(),S){let b=[s[S.type],...c.filter(({matcher:$})=>$(S)).map(({reducer:$})=>$)];return b.filter($=>!!$).length===0&&(b=[f]),b.reduce(($,P)=>{if(P)if(isDraft($)){const C=P($,S);return C===void 0?$:C}else{if(isDraftable($))return produce($,T=>P(T,S));{const T=P($,S);if(T===void 0){if($===null)return $;throw new Error(formatProdErrorMessage$1(9))}return T}}return $},_)}return y.getInitialState=d,y}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=(o=21)=>{let a="",s=o;for(;s--;)a+=urlAlphabet[Math.random()*64|0];return a},matches=(o,a)=>hasMatchFunction(o)?o.match(a):o(a);function isAnyOf(...o){return a=>o.some(s=>matches(s,a))}var commonProperties=["name","message","stack","code"],RejectWithValue=class{constructor(o,a){er(this,"_type");this.payload=o,this.meta=a}},FulfillWithMeta=class{constructor(o,a){er(this,"_type");this.payload=o,this.meta=a}},miniSerializeError=o=>{if(typeof o=="object"&&o!==null){const a={};for(const s of commonProperties)typeof o[s]=="string"&&(a[s]=o[s]);return a}return{message:String(o)}},createAsyncThunk=(()=>{function o(a,s,c){const f=createAction(a+"/fulfilled",(S,b,$,P)=>({payload:S,meta:we(se({},P||{}),{arg:$,requestId:b,requestStatus:"fulfilled"})})),d=createAction(a+"/pending",(S,b,$)=>({payload:void 0,meta:we(se({},$||{}),{arg:b,requestId:S,requestStatus:"pending"})})),y=createAction(a+"/rejected",(S,b,$,P,T)=>({payload:P,error:(c&&c.serializeError||miniSerializeError)(S||"Rejected"),meta:we(se({},T||{}),{arg:$,requestId:b,rejectedWithValue:!!P,requestStatus:"rejected",aborted:(S==null?void 0:S.name)==="AbortError",condition:(S==null?void 0:S.name)==="ConditionError"})}));function _(S){return(b,$,P)=>{const T=c!=null&&c.idGenerator?c.idGenerator(S):nanoid(),C=new AbortController;let O;function A(j){O=j,C.abort()}const F=function(){return xt(this,null,function*(){var M,L;let j;try{let U=(M=c==null?void 0:c.condition)==null?void 0:M.call(c,S,{getState:$,extra:P});if(isThenable(U)&&(U=yield U),U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const z=new Promise((H,G)=>C.signal.addEventListener("abort",()=>G({name:"AbortError",message:O||"Aborted"})));b(d(T,S,(L=c==null?void 0:c.getPendingMeta)==null?void 0:L.call(c,{requestId:T,arg:S},{getState:$,extra:P}))),j=yield Promise.race([z,Promise.resolve(s(S,{dispatch:b,getState:$,extra:P,requestId:T,signal:C.signal,abort:A,rejectWithValue:(H,G)=>new RejectWithValue(H,G),fulfillWithValue:(H,G)=>new FulfillWithMeta(H,G)})).then(H=>{if(H instanceof RejectWithValue)throw H;return H instanceof FulfillWithMeta?f(H.payload,T,S,H.meta):f(H,T,S)})])}catch(U){j=U instanceof RejectWithValue?y(null,T,S,U.payload,U.meta):y(U,T,S)}return c&&!c.dispatchConditionRejection&&y.match(j)&&j.meta.condition||b(j),j})}();return Object.assign(F,{abort:A,requestId:T,arg:S,unwrap(){return F.then(unwrapResult)}})}}return Object.assign(_,{pending:d,rejected:y,fulfilled:f,settled:isAnyOf(y,f),typePrefix:a})}return o.withTypes=()=>o,o})();function unwrapResult(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function isThenable(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(o,a){return`${o}/${a}`}function buildCreateSlice({creators:o}={}){var s;const a=(s=o==null?void 0:o.asyncThunk)==null?void 0:s[asyncThunkSymbol];return function(f){const{name:d,reducerPath:y=d}=f;if(!d)throw new Error(formatProdErrorMessage$1(11));const _=(typeof f.reducers=="function"?f.reducers(buildReducerCreators()):f.reducers)||{},S=Object.keys(_),b={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},$={addCase(F,j){const I=typeof F=="string"?F:F.type;if(!I)throw new Error(formatProdErrorMessage$1(12));if(I in b.sliceCaseReducersByType)throw new Error(formatProdErrorMessage$1(13));return b.sliceCaseReducersByType[I]=j,$},addMatcher(F,j){return b.sliceMatchers.push({matcher:F,reducer:j}),$},exposeAction(F,j){return b.actionCreators[F]=j,$},exposeCaseReducer(F,j){return b.sliceCaseReducersByName[F]=j,$}};S.forEach(F=>{const j=_[F],I={reducerName:F,type:getType(d,F),createNotation:typeof f.reducers=="function"};isAsyncThunkSliceReducerDefinition(j)?handleThunkCaseReducerDefinition(I,j,$,a):handleNormalReducerDefinition(I,j,$)});function P(){const[F={},j=[],I=void 0]=typeof f.extraReducers=="function"?executeReducerBuilderCallback(f.extraReducers):[f.extraReducers],M=se(se({},F),b.sliceCaseReducersByType);return createReducer(f.initialState,L=>{for(let U in M)L.addCase(U,M[U]);for(let U of b.sliceMatchers)L.addMatcher(U.matcher,U.reducer);for(let U of j)L.addMatcher(U.matcher,U.reducer);I&&L.addDefaultCase(I)})}const T=F=>F,C=new WeakMap;let O;const A={name:d,reducerPath:y,reducer(F,j){return O||(O=P()),O(F,j)},actions:b.actionCreators,caseReducers:b.sliceCaseReducersByName,getInitialState(){return O||(O=P()),O.getInitialState()},getSelectors(F=T){const j=emplace(C,this,{insert:()=>new WeakMap});return emplace(j,F,{insert:()=>{var M;const I={};for(const[L,U]of Object.entries((M=f.selectors)!=null?M:{}))I[L]=wrapSelector(this,U,F,this!==A);return I}})},selectSlice(F){let j=F[this.reducerPath];return typeof j=="undefined"&&this!==A&&(j=this.getInitialState()),j},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(F,M={}){var L=M,{reducerPath:j}=L,I=fr(L,["reducerPath"]);const U=j!=null?j:this.reducerPath;return F.inject({reducerPath:U,reducer:this.reducer},I),we(se({},this),{reducerPath:U})}};return A}}function wrapSelector(o,a,s,c){function f(d,...y){let _=s.call(o,d);return typeof _=="undefined"&&c&&(_=o.getInitialState()),a(_,...y)}return f.unwrapped=a,f}var createSlice=buildCreateSlice();function buildReducerCreators(){function o(a,s){return se({_reducerDefinitionType:"asyncThunk",payloadCreator:a},s)}return o.withTypes=()=>o,{reducer(a){return Object.assign({[a.name](...s){return a(...s)}}[a.name],{_reducerDefinitionType:"reducer"})},preparedReducer(a,s){return{_reducerDefinitionType:"reducerWithPrepare",prepare:a,reducer:s}},asyncThunk:o}}function handleNormalReducerDefinition({type:o,reducerName:a,createNotation:s},c,f){let d,y;if("reducer"in c){if(s&&!isCaseReducerWithPrepareDefinition(c))throw new Error(formatProdErrorMessage$1(17));d=c.reducer,y=c.prepare}else d=c;f.addCase(o,d).exposeCaseReducer(a,d).exposeAction(a,y?createAction(o,y):createAction(o))}function isAsyncThunkSliceReducerDefinition(o){return o._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(o){return o._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:o,reducerName:a},s,c,f){if(!f)throw new Error(formatProdErrorMessage$1(18));const{payloadCreator:d,fulfilled:y,pending:_,rejected:S,settled:b,options:$}=s,P=f(o,d,$);c.exposeAction(a,P),y&&c.addCase(P.fulfilled,y),_&&c.addCase(P.pending,_),S&&c.addCase(P.rejected,S),b&&c.addMatcher(P.settled,b),c.exposeCaseReducer(a,{fulfilled:y||noop$1,pending:_||noop$1,rejected:S||noop$1,settled:b||noop$1})}function noop$1(){}var alm="listenerMiddleware";createAction(`${alm}/add`);createAction(`${alm}/removeAll`);createAction(`${alm}/remove`);function formatProdErrorMessage$1(o){return`Minified Redux Toolkit error #${o}; visit https://redux-toolkit.js.org/Errors?code=${o} for the full message or use the non-minified dev environment for full errors. `}var KEY_PREFIX="persist:",FLUSH="persist/FLUSH",REHYDRATE="persist/REHYDRATE",PAUSE="persist/PAUSE",PERSIST="persist/PERSIST",PURGE="persist/PURGE",REGISTER="persist/REGISTER",DEFAULT_VERSION=-1;function _typeof$1(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(s){return typeof s}:_typeof$1=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$1(o)}function ownKeys$2(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$2(o){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}var DEFAULT_TIMEOUT=5e3;function persistReducer(o,a){var s=o.version!==void 0?o.version:DEFAULT_VERSION;o.debug;var c=o.stateReconciler===void 0?autoMergeLevel1:o.stateReconciler,f=o.getStoredState||getStoredState,d=o.timeout!==void 0?o.timeout:DEFAULT_TIMEOUT,y=null,_=!1,S=!0,b=function(P){return P._persist.rehydrated&&y&&!S&&y.update(P),P};return function($,P){var T=$||{},C=T._persist,O=_objectWithoutProperties(T,["_persist"]),A=O;if(P.type===PERSIST){var F=!1,j=function(G,X){F||(P.rehydrate(o.key,G,X),F=!0)};if(d&&setTimeout(function(){!F&&j(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(o.key,'"')))},d),S=!1,y||(y=createPersistoid(o)),C)return _objectSpread$1({},a(A,P),{_persist:C});if(typeof P.rehydrate!="function"||typeof P.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return P.register(o.key),f(o).then(function(H){var G=o.migrate||function(X,W){return Promise.resolve(X)};G(H,s).then(function(X){j(X)},function(X){j(void 0,X)})},function(H){j(void 0,H)}),_objectSpread$1({},a(A,P),{_persist:{version:s,rehydrated:!1}})}else{if(P.type===PURGE)return _=!0,P.result(purgeStoredState(o)),_objectSpread$1({},a(A,P),{_persist:C});if(P.type===FLUSH)return P.result(y&&y.flush()),_objectSpread$1({},a(A,P),{_persist:C});if(P.type===PAUSE)S=!0;else if(P.type===REHYDRATE){if(_)return _objectSpread$1({},A,{_persist:_objectSpread$1({},C,{rehydrated:!0})});if(P.key===o.key){var I=a(A,P),M=P.payload,L=c!==!1&&M!==void 0?c(M,$,I,o):I,U=_objectSpread$1({},L,{_persist:_objectSpread$1({},C,{rehydrated:!0})});return b(U)}}}if(!C)return a($,P);var z=a(A,P);return z===A?$:b(_objectSpread$1({},z,{_persist:C}))}}function formatProdErrorMessage(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var $$observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(o){if(typeof o!="object"||o===null)return!1;for(var a=o;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(o)===a}function createStore(o,a,s){var c;if(typeof a=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage(0));if(typeof a=="function"&&typeof s=="undefined"&&(s=a,a=void 0),typeof s!="undefined"){if(typeof s!="function")throw new Error(formatProdErrorMessage(1));return s(createStore)(o,a)}if(typeof o!="function")throw new Error(formatProdErrorMessage(2));var f=o,d=a,y=[],_=y,S=!1;function b(){_===y&&(_=y.slice())}function $(){if(S)throw new Error(formatProdErrorMessage(3));return d}function P(A){if(typeof A!="function")throw new Error(formatProdErrorMessage(4));if(S)throw new Error(formatProdErrorMessage(5));var F=!0;return b(),_.push(A),function(){if(F){if(S)throw new Error(formatProdErrorMessage(6));F=!1,b();var I=_.indexOf(A);_.splice(I,1),y=null}}}function T(A){if(!isPlainObject(A))throw new Error(formatProdErrorMessage(7));if(typeof A.type=="undefined")throw new Error(formatProdErrorMessage(8));if(S)throw new Error(formatProdErrorMessage(9));try{S=!0,d=f(d,A)}finally{S=!1}for(var F=y=_,j=0;j0&&arguments[0]!==void 0?arguments[0]:initialState$2,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case REGISTER:return _objectSpread({},a,{registry:[].concat(_toConsumableArray(a.registry),[s.key])});case REHYDRATE:var c=a.registry.indexOf(s.key),f=_toConsumableArray(a.registry);return f.splice(c,1),_objectSpread({},a,{registry:f,bootstrapped:f.length===0});default:return a}};function persistStore(o,a,s){var c=s||!1,f=createStore(persistorReducer,initialState$2,a&&a.enhancer?a.enhancer:void 0),d=function(b){f.dispatch({type:REGISTER,key:b})},y=function(b,$,P){var T={type:REHYDRATE,payload:$,err:P,key:b};o.dispatch(T),f.dispatch(T),c&&_.getState().bootstrapped&&(c(),c=!1)},_=_objectSpread({},f,{purge:function(){var b=[];return o.dispatch({type:PURGE,result:function(P){b.push(P)}}),Promise.all(b)},flush:function(){var b=[];return o.dispatch({type:FLUSH,result:function(P){b.push(P)}}),Promise.all(b)},pause:function(){o.dispatch({type:PAUSE})},persist:function(){o.dispatch({type:PERSIST,register:d,rehydrate:y})}});return a&&a.manualPersist||_.persist(),_}var createWebStorage$1={},getStorage$1={};getStorage$1.__esModule=!0;getStorage$1.default=getStorage;function _typeof(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(s){return typeof s}:_typeof=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof(o)}function noop(){}var noopStorage={getItem:noop,setItem:noop,removeItem:noop};function hasStorage(o){if((typeof self=="undefined"?"undefined":_typeof(self))!=="object"||!(o in self))return!1;try{var a=self[o],s="redux-persist ".concat(o," test");a.setItem(s,"test"),a.getItem(s),a.removeItem(s)}catch(c){return!1}return!0}function getStorage(o){var a="".concat(o,"Storage");return hasStorage(a)?self[a]:noopStorage}createWebStorage$1.__esModule=!0;createWebStorage$1.default=createWebStorage;var _getStorage=_interopRequireDefault$1(getStorage$1);function _interopRequireDefault$1(o){return o&&o.__esModule?o:{default:o}}function createWebStorage(o){var a=(0,_getStorage.default)(o);return{getItem:function(c){return new Promise(function(f,d){f(a.getItem(c))})},setItem:function(c,f){return new Promise(function(d,y){d(a.setItem(c,f))})},removeItem:function(c){return new Promise(function(f,d){f(a.removeItem(c))})}}}var default_1=void 0,_createWebStorage=_interopRequireDefault(createWebStorage$1);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}var _default=(0,_createWebStorage.default)("local");default_1=_default;const initialState$1={menuList:[],isCollapse:!1},menu=createSlice({name:"menu",initialState:initialState$1,reducers:{setMenuList:(o,a)=>{o.menuList=a.payload},updateCollapse:(o,a)=>{o.isCollapse=a.payload}}}),{setMenuList,updateCollapse}=menu.actions,menuSlice=menu.reducer,initialState={visitedTags:[],cachedTags:[]},createAppAsyncThunk=createAsyncThunk.withTypes(),tags=createSlice({name:"tags",initialState,reducers:{addVisitedTags:(o,a)=>{const s=o.visitedTags.findIndex(c=>c.path===a.payload.path);s<0?o.visitedTags.push(a.payload):o.visitedTags[s]=se(se({},o.visitedTags[s]),a.payload)},updateVisitedTags:(o,a)=>{o.visitedTags=a.payload},closeTagsByType:(o,a)=>{let s=[];const{type:c,path:f}=a.payload,{visitedTags:d}=o,y=d.findIndex(S=>S.fullPath===f),_=d.filter(S=>{var b;return(b=S==null?void 0:S.meta)==null?void 0:b.affix});switch(c){case"left":s=d.slice(y);break;case"right":s=d.slice(0,y+1);break;case"other":s=d.filter(S=>S.fullPath===f);break}o.visitedTags=_.concat(s.filter(S=>{var b;return!((b=S.meta)!=null&&b.affix)}))}}}),closeTagByKey=createAppAsyncThunk("tags/closeTagByKey",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,f=c.findIndex(y=>y.fullPath===o),d=c.filter(y=>y.fullPath!==o);return s(updateVisitedTags(d)),Promise.resolve({tagIndex:f,tagsList:d})}),closeAllTags=createAppAsyncThunk("tags/closeAllTags",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,f=c.filter(d=>{var y;return(y=d==null?void 0:d.meta)==null?void 0:y.affix});return s(updateVisitedTags(f)),Promise.resolve(f)}),{addVisitedTags,updateVisitedTags,closeTagsByType}=tags.actions,tagsSlice=tags.reducer,persistConfig={key:"redux-persist",storage:default_1},store=configureStore({reducer:{menu:persistReducer(persistConfig,menuSlice),tags:persistReducer(persistConfig,tagsSlice)},middleware:o=>o({serializableCheck:!1}),devTools:!0}),persistor=persistStore(store),useAppDispatch=useDispatch,useAppSelector=useSelector,useStyles$6=createStyles(({token:o},a)=>{const{active:s}=a;return{"compo_tag-item":{display:"inline-block",verticalAlign:"top",height:"24px",margin:"0 2px",padding:"0 8px",borderRadius:"3px",lineHeight:"24px",color:s?"#fff":"#555",background:s?o.colorPrimary:"#fff",overflow:"hidden",cursor:"pointer","&__dot":{display:"inline-block",verticalAlign:"baseline",width:"8px",height:"8px",marginRight:"6px",borderRadius:"50%",background:s?"#fff":"#dcdee0"},"&__name":{fontSize:"12px"}},verticalAlign:"baseline",svg:{width:"8px",height:"8px"},active:{border:"none",color:"#fff",background:o.colorPrimary,".anticon-close":{color:"#fff"}}}}),TagItem=({name:o,fixed:a,active:s=!1,closeTag:c,onClick:f})=>{const{styles:d}=useStyles$6({active:s});return jsxRuntimeExports.jsxs(Tag$1,{className:classNames(d["compo_tag-item"],{[d.active]:s}),closable:!a,onClose:c,onClick:f,children:[jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__dot`}),jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__name`,children:o})]})},useStyles$5=createStyles(()=>({layout_tags:{zIndex:"299",display:"flex",justifyContent:"space-between",height:"32px",padding:"4px 12px",lineHeight:"32px","&__main":{position:"relative",width:"calc(100% - 116px)",height:"24px",overflow:"hidden","&-body":{position:"absolute",height:"100%",padding:"0 2px",overflow:"visible",whiteSpace:"nowrap",transition:"left .5s ease"}},"&__btn-space":{marginLeft:"4px"}}})),LayoutTags=()=>{const{t:o}=useTranslation(),{styles:a}=useStyles$5(),s=[{key:"left",label:o("关闭左侧")},{key:"right",label:o("关闭右侧")},{key:"other",label:o("关闭其它")},{key:"all",label:o("关闭所有")}],c=({key:z})=>{z==="all"?P(closeAllTags()).then(({payload:H})=>{const G=H.slice(-1)[0];T!==(G==null?void 0:G.fullPath)&&b(G==null?void 0:G.fullPath)}):P(closeTagsByType({type:z,path:T}))},f=reactExports.useRef(null),d=reactExports.useRef(null),[y,_]=reactExports.useState(0),{pathname:S}=useLocation(),b=useNavigate(),$=useAppSelector(z=>z.tags.visitedTags),P=useAppDispatch(),[T,C]=reactExports.useState(S);reactExports.useEffect(()=>{O(routeList).forEach(H=>{P(addVisitedTags(H))})},[]),reactExports.useEffect(()=>{const z=searchRoute(S,routeList);z&&P(addVisitedTags(z)),C(S)},[S]),reactExports.useEffect(()=>{var G;const z=(G=d.current)==null?void 0:G.childNodes,H=Array.from(z).find(X=>X.dataset.path===T);A(H)},[T]);const O=(z,H="/")=>{const G=[],X=W=>{var K;if((K=W.meta)!=null&&K.affix){const ie=W.path.startsWith("/")?W.path:H+W.path;G.push(we(se({},W),{path:ie}))}W.children&&W.children.length&&W.children.forEach(ie=>X(ie))};return z.forEach(W=>X(W)),G},A=z=>{var K,ie,ee,de,Z,Q,J,ne,fe,le,ae;let H=0;const G=4,X=(K=f.current)==null?void 0:K.offsetWidth;((ie=d.current)==null?void 0:ie.offsetWidth)-y&&((Q=z==null?void 0:z.offsetLeft)!=null?Q:0)+((J=z==null?void 0:z.offsetWidth)!=null?J:0)<-y+X?H=Math.min(0,X-((ne=z==null?void 0:z.offsetWidth)!=null?ne:0)-((fe=z==null?void 0:z.offsetLeft)!=null?fe:0)-G):H=-(((le=z==null?void 0:z.offsetLeft)!=null?le:0)-(X-G-((ae=z==null?void 0:z.offsetWidth)!=null?ae:0))),_(H)},F=z=>{var W,K;let H=0;const G=(W=f.current)==null?void 0:W.offsetWidth,X=(K=d.current)==null?void 0:K.offsetWidth;z>0?H=Math.min(0,y+z):G=-(X-G)&&(H=Math.max(y+z,G-X)):H=0,_(H)},j=z=>{const{type:H}=z;let G=0;H==="wheel"&&(G=z.deltaY?z.deltaY*2:-(z.detail||0)*2),F(G)},I=z=>{P(closeTagByKey(z)).then(({payload:H})=>{let G={};const{tagIndex:X,tagsList:W}=H,K=W.length;z===T&&(X<=K-1?G=W[X]:G=W[K-1],b(G==null?void 0:G.fullPath))})},M=z=>{C(z),b(z)};function L(){return new Date().getTime().toString()}const U=()=>{$.findIndex(H=>H.fullPath===T)>=0&&b(T,{replace:!0,state:{key:L()}})};return jsxRuntimeExports.jsxs("div",{className:a.layout_tags,children:[jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(LeftOutlined,{}),size:"small",onClick:()=>F(200)}),jsxRuntimeExports.jsx("div",{ref:f,className:`${a.layout_tags}__main`,onWheel:j,children:jsxRuntimeExports.jsx("div",{ref:d,className:`${a.layout_tags}__main-body`,style:{left:`${y}px`},children:$.map(z=>{var H,G;return jsxRuntimeExports.jsx("span",{"data-path":z.fullPath,children:jsxRuntimeExports.jsx(TagItem,{name:o((H=z.meta)==null?void 0:H.title),active:T===z.fullPath,fixed:(G=z.meta)==null?void 0:G.affix,onClick:()=>M(z.fullPath),closeTag:()=>I(z.fullPath)},z.key)},z.fullPath)})})}),jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(RightOutlined,{}),size:"small",onClick:()=>F(-200)}),jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(RedoOutlined,{}),size:"small",onClick:()=>U()}),jsxRuntimeExports.jsx(Dropdown,{menu:{items:s,onClick:c},placement:"bottomLeft",children:jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(CloseOutlined,{}),size:"small"})})]})};function LayoutBreadcrumb(o){const{t:a,i18n:s}=useTranslation(),[c,f]=reactExports.useState([]),{pathname:d}=useLocation(),y=useAppSelector(_=>_.menu.menuList);return reactExports.useEffect(()=>{const S=(matchRoutes(y,d)||[]).map(b=>{const{name:$,icon:P=""}=b==null?void 0:b.route;return{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[P&&jsxRuntimeExports.jsx(SvgIcon,{name:P,style:{marginRight:8}}),jsxRuntimeExports.jsx("span",{children:a($)})]})}});f(S)},[d,s.language]),jsxRuntimeExports.jsx("div",{className:"flex-center-v",style:{padding:"0 16px"},children:jsxRuntimeExports.jsx(Breadcrumb,{items:c})})}const useStyles$4=createStyles(()=>({"compo_fold-trigger":{display:"flex",alignItems:"center",cursor:"pointer"},unfold:{svg:{transform:"scaleX(-1)",transition:"transform 0.2s"}}}));function FoldTrigger(){const{styles:o,cx:a}=useStyles$4(),s=useSettings(),{setSettings:c}=useSettingActions();function f(){c(we(se({},s),{unfold:!s.unfold}))}return jsxRuntimeExports.jsx("span",{className:a(o["compo_fold-trigger"],{[o.unfold]:!s.unfold}),onClick:f,children:jsxRuntimeExports.jsx(SvgIcon,{name:"unfold",size:20})})}const useStyles$3=createStyles(({token:o})=>({"layout-header":{flexDirection:"column",height:"auto",background:o.colorBgBase,padding:0,boxShadow:o.boxShadowTertiary}})),LayoutHeader=o=>{const{Header:a}=Layout,{styles:s}=useStyles$3(),{hasCrumbs:c,hasTabs:f}=useGlobalStore();return jsxRuntimeExports.jsxs(a,{className:classNames("flex-between-h",s["layout-header"]),children:[jsxRuntimeExports.jsxs("div",{className:"flex-between-h",style:{padding:"0 12px"},children:[jsxRuntimeExports.jsxs("div",{className:"flex-center-v",children:[jsxRuntimeExports.jsx(FoldTrigger,{}),c&&jsxRuntimeExports.jsx(LayoutBreadcrumb,{})]}),jsxRuntimeExports.jsx(LayoutFeature,{})]}),f?jsxRuntimeExports.jsx(LayoutTags,{}):null]})},useStyles$2=createStyles(({token:o})=>({layout_wrapper:{display:"flex",width:"100%",height:"100vh",overflowX:"hidden",background:o.colorBgContainer,".ant-layout-content":{height:"calc(100vh - 48px)",boxSizing:"border-box",flex:"1",padding:o.paddingMD,overflowX:"hidden"},".ant-layout-sider":{height:"calc(100vh)",borderInlineEnd:"1px solid rgba(5, 5, 5, 0.06)",marginInlineEnd:"-1px"},".ant-layout":{background:o.colorBgContainer}}})),getOpenKeys=o=>{let a="";const s=[];return o.split("/").forEach(c=>{c&&(a+=`/${c}`,s.push(a))}),s.slice(0,-1)},getItem=(o,a,s,c,f)=>({label:o,key:a,icon:s,children:c,type:f}),LayoutMenu=o=>{const{pathname:a}=useLocation(),{setMenuList:s}=o,[c,f]=reactExports.useState(!1),[d,y]=reactExports.useState([]),[_,S]=reactExports.useState([]),[b,$]=reactExports.useState([a]),{t:P,i18n:T}=useTranslation();reactExports.useEffect(()=>{$([a]),S(getOpenKeys(a))},[a]);const C=(M,L)=>M?jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(SvgIcon,{name:M,size:L||16})}):null,O=(M,L=[])=>(M.forEach(U=>{var z;if(!((z=U==null?void 0:U.children)!=null&&z.length))return L.push(getItem(P(U.name),U.path,C(U.icon,U.iconSize)));L.push(getItem(P(U.name),U.path,C(U.icon,U.iconSize),O(U.children)))}),L),A=()=>xt(void 0,null,function*(){f(!0);try{const M=yield getAsyncMenus();y(O(M)),s(M)}finally{f(!1)}});reactExports.useEffect(()=>{A()},[T.language]);const F=M=>{if(M.length===0||M.length===1)return S(M);const L=M[M.length-1];if(L.includes(M[0]))return S(M);S([L])},j=useNavigate(),I=({key:M})=>{j(M)};return jsxRuntimeExports.jsx("div",{className:"layout_menu",children:jsxRuntimeExports.jsx(Spin,{spinning:c,tip:"Loading...",children:jsxRuntimeExports.jsx(Menu,{style:{border:"none"},mode:"inline",triggerSubMenuAction:"click",inlineIndent:20,subMenuOpenDelay:.2,openKeys:_,selectedKeys:b,items:d,onClick:I,onOpenChange:F})})})},mapStateToProps=o=>o.menu,mapDispatchToProps={setMenuList},LayoutMenu$1=connect(mapStateToProps,mapDispatchToProps)(LayoutMenu),BasicLayout=o=>{const{state:a}=useLocation(),{unfold:s}=useSettings(),{key:c="key"}=a||{};useTitle();const{Sider:f,Content:d}=Layout,{styles:y}=useStyles$2();return jsxRuntimeExports.jsxs(Layout,{className:y.layout_wrapper,children:[jsxRuntimeExports.jsxs(f,{width:240,trigger:null,theme:"light",collapsed:s,className:"ant-layout-sider",children:[jsxRuntimeExports.jsx(AppLogo,{}),jsxRuntimeExports.jsx(LayoutMenu$1,{})]}),jsxRuntimeExports.jsxs(Layout,{children:[jsxRuntimeExports.jsx(LayoutHeader,{}),jsxRuntimeExports.jsx(d,{children:jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsx(Outlet,{},c)})})]})]})},GuardRoute=({children:o})=>{const a=["/","/home","/login"],{pathname:s}=useLocation(),{token:c}=useUserToken();return c?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o}):a.includes(s)?jsxRuntimeExports.jsx(Navigate,{to:"/login",replace:!0}):jsxRuntimeExports.jsx(Navigate,{to:`/login?redirect=${s}`,replace:!0})},LayoutGuard=()=>jsxRuntimeExports.jsx(GuardRoute,{children:jsxRuntimeExports.jsx(BasicLayout,{})}),CompoRoute={path:"/compo",name:"Compo",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"组件",icon:"compo",orderNo:6},children:[{path:"image-upload",name:"ImageUpload",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../image-upload-69f235a3.js"),["assets/image-upload-69f235a3.js","assets/antd-d487744a.js","assets/react-f288da4a.js","assets/websiteSetting-607ea25c.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"图片上传",key:"imageUpload"}},{path:"drag",name:"Drag",meta:{title:"拖拽"},children:[{path:"drag-list",name:"DragList",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-list-b838ab0d.js"),["assets/drag-list-b838ab0d.js","assets/antd-d487744a.js","assets/react-f288da4a.js","assets/websiteSetting-607ea25c.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"列表拖拽",key:"dragList"}},{path:"drag-resize",name:"DragResize",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-resize-ceab54c2.js"),["assets/drag-resize-ceab54c2.js","assets/antd-d487744a.js","assets/react-f288da4a.js","assets/websiteSetting-607ea25c.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"组件拖拽",key:"dragResize"}}]},{path:"transfer",name:"Transfer",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-c3d48558.js"),["assets/index-c3d48558.js","assets/antd-d487744a.js","assets/react-f288da4a.js","assets/websiteSetting-607ea25c.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"穿梭框"}},{path:"count-up",name:"CountUp",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../count-up-0f941de9.js"),["assets/count-up-0f941de9.js","assets/antd-d487744a.js","assets/react-f288da4a.js","assets/index-646dffa4.js","assets/websiteSetting-607ea25c.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"数字滚动",key:"countUp"}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:CompoRoute},Symbol.toStringTag,{value:"Module"}));var ExceptionEnum=(o=>(o[o.PAGE_NOT_ACCESS=403]="PAGE_NOT_ACCESS",o[o.PAGE_NOT_FOUND=404]="PAGE_NOT_FOUND",o[o.SERVER_ERROR=500]="SERVER_ERROR",o))(ExceptionEnum||{});const ExceptionRoute={path:"/exception",name:"ExceptionPage",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"异常页面",icon:"bug",orderNo:11},children:[{path:"page-403",name:"Page403",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"403页面",key:"page403"},loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!0})},{path:"page-404",name:"Page404",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"404页面",key:"page404"},loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!0})},{path:"page-500",name:"Page500",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"500页面",key:"page500"},loader:()=>({status:ExceptionEnum.SERVER_ERROR,withCard:!0})}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:ExceptionRoute},Symbol.toStringTag,{value:"Module"})),FormRoute={path:"/form",name:"Form",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"表单",icon:"form",orderNo:3},children:[{path:"basic-form",name:"BasicForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-6605a823.js"),["assets/index-6605a823.js","assets/antd-d487744a.js","assets/react-f288da4a.js","assets/websiteSetting-607ea25c.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"基础表单",key:"basicForm"}},{path:"search-form",name:"SearchForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-c43e105c.js"),["assets/index-c43e105c.js","assets/antd-d487744a.js","assets/react-f288da4a.js","assets/index-b0f98d83.js","assets/websiteSetting-607ea25c.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"查询表单",key:"searchForm"}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormRoute},Symbol.toStringTag,{value:"Module"})),HomePage=lazy$2(()=>__vitePreload(()=>import("../index-02ea5973.js"),["assets/index-02ea5973.js","assets/antd-d487744a.js","assets/react-f288da4a.js","assets/index-b9ecdfd2.js","assets/Translatex-d163f7af.js","assets/index-646dffa4.js","assets/index-b0f98d83.js"])),HomeRoute={path:"/home",element:jsxRuntimeExports.jsx(LayoutGuard,{}),loader:()=>null,meta:{title:"首页",icon:"home",affix:!0,orderNo:1,hideChildrenInMenu:!0},children:[{path:"",element:LazyLoad(HomePage),meta:{title:"首页",key:"home",icon:"home",orderNo:1,hideMenu:!0}}]},__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:HomeRoute},Symbol.toStringTag,{value:"Module"})),UserRoute={path:"/user",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"用户管理",icon:"ic_user",orderNo:2,iconSize:20},children:[{path:"profile",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-4740b027.js"),["assets/index-4740b027.js","assets/antd-d487744a.js","assets/react-f288da4a.js","assets/Translatex-d163f7af.js","assets/index-b9ecdfd2.js"]))),meta:{title:"个人中心",key:"profile"}},{path:"user-list",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-221b918b.js"),["assets/index-221b918b.js","assets/antd-d487744a.js","assets/react-f288da4a.js","assets/index-b9ecdfd2.js","assets/Translatex-d163f7af.js"]))),meta:{title:"用户列表",key:"userList"}},{path:"add-user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-df1c219f.js"),["assets/index-df1c219f.js","assets/antd-d487744a.js","assets/react-f288da4a.js","assets/Translatex-d163f7af.js"]))),meta:{title:"添加用户",key:"addUser"}}]},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute},Symbol.toStringTag,{value:"Module"})),TOKEN_KEY="TOKEN_KEY",APP_LOCAL_CACHE_KEY="APP_LOCAL_CACHE_KEY",APP_SESSION_CACHE_KEY="APP_SESSION_CACHE_KEY";var CacheTypeEnum=(o=>(o[o.SESSION=0]="SESSION",o[o.LOCAL=1]="LOCAL",o))(CacheTypeEnum||{}),MenuTypeEnum=(o=>(o.SIDER_MENU="sider-menu",o.HEADER_MENU="header-menu",o.HYBRID_MENU="hybrid-menu",o))(MenuTypeEnum||{}),MenuModeEnum=(o=>(o.VERTICAL="vertical",o.HORIZONTAL="horizontal",o.INLINE="inline",o))(MenuModeEnum||{}),MenuFoldBtnEnum=(o=>(o.NONE="none",o.HEADER="header",o.SIDER="sider",o))(MenuFoldBtnEnum||{});const appSetting={themeColor:"#1890ff",permissionCacheType:CacheTypeEnum.LOCAL,headerSetting:{showBreadCrumb:!0,showTags:!0,showSearch:!0,showFullScreen:!0,showLocale:!1,showDoc:!1,showGithub:!0},menuSetting:{menuType:MenuTypeEnum.SIDER_MENU,menuMode:MenuModeEnum.INLINE,menuTheme:ThemeEnum.DARK,menuSplit:!1,menuCanDrag:!1,menuFold:!1,menuFoldBtn:MenuFoldBtnEnum.HEADER,menuFoldShowTitle:!1,menuWidth:210,menuFixed:!1,menuHidden:!1},transitionSetting:{openNProgress:!1,openPageLoading:!1,openTransition:!0,basicTransition:PageTransitionEnum.FADE},permissionMode:PermissionModeEnum.MAPPING,tagsCached:!1,openKeepAlive:!0,lockScreenTime:0,showFooter:!1,colorWeak:!1,grayMode:!1};function isDevMode(){return!1}const DEFAULT_CACHE_TIME=60*60*24*7,cacheCipher={key:"_11111000001111@",iv:"@11111000001111_"},enableStorageEncryption=!isDevMode();var aes={exports:{}},core={exports:{}},hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(o,a){(function(s,c){o.exports=c()})(commonjsGlobal,function(){var s=s||function(c,f){var d;if(typeof window!="undefined"&&window.crypto&&(d=window.crypto),typeof self!="undefined"&&self.crypto&&(d=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(d=globalThis.crypto),!d&&typeof window!="undefined"&&window.msCrypto&&(d=window.msCrypto),!d&&typeof commonjsGlobal!="undefined"&&commonjsGlobal.crypto&&(d=commonjsGlobal.crypto),!d&&typeof commonjsRequire=="function")try{d=require$$0}catch(I){}var y=function(){if(d){if(typeof d.getRandomValues=="function")try{return d.getRandomValues(new Uint32Array(1))[0]}catch(I){}if(typeof d.randomBytes=="function")try{return d.randomBytes(4).readInt32LE()}catch(I){}}throw new Error("Native crypto module could not be used to get secure random number.")},_=Object.create||function(){function I(){}return function(M){var L;return I.prototype=M,L=new I,I.prototype=null,L}}(),S={},b=S.lib={},$=b.Base=function(){return{extend:function(I){var M=_(this);return I&&M.mixIn(I),(!M.hasOwnProperty("init")||this.init===M.init)&&(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var I=this.extend();return I.init.apply(I,arguments),I},init:function(){},mixIn:function(I){for(var M in I)I.hasOwnProperty(M)&&(this[M]=I[M]);I.hasOwnProperty("toString")&&(this.toString=I.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),P=b.WordArray=$.extend({init:function(I,M){I=this.words=I||[],M!=f?this.sigBytes=M:this.sigBytes=I.length*4},toString:function(I){return(I||C).stringify(this)},concat:function(I){var M=this.words,L=I.words,U=this.sigBytes,z=I.sigBytes;if(this.clamp(),U%4)for(var H=0;H>>2]>>>24-H%4*8&255;M[U+H>>>2]|=G<<24-(U+H)%4*8}else for(var X=0;X>>2]=L[X>>>2];return this.sigBytes+=z,this},clamp:function(){var I=this.words,M=this.sigBytes;I[M>>>2]&=4294967295<<32-M%4*8,I.length=c.ceil(M/4)},clone:function(){var I=$.clone.call(this);return I.words=this.words.slice(0),I},random:function(I){for(var M=[],L=0;L>>2]>>>24-z%4*8&255;U.push((H>>>4).toString(16)),U.push((H&15).toString(16))}return U.join("")},parse:function(I){for(var M=I.length,L=[],U=0;U>>3]|=parseInt(I.substr(U,2),16)<<24-U%8*4;return new P.init(L,M/2)}},O=T.Latin1={stringify:function(I){for(var M=I.words,L=I.sigBytes,U=[],z=0;z>>2]>>>24-z%4*8&255;U.push(String.fromCharCode(H))}return U.join("")},parse:function(I){for(var M=I.length,L=[],U=0;U>>2]|=(I.charCodeAt(U)&255)<<24-U%4*8;return new P.init(L,M)}},A=T.Utf8={stringify:function(I){try{return decodeURIComponent(escape(O.stringify(I)))}catch(M){throw new Error("Malformed UTF-8 data")}},parse:function(I){return O.parse(unescape(encodeURIComponent(I)))}},F=b.BufferedBlockAlgorithm=$.extend({reset:function(){this._data=new P.init,this._nDataBytes=0},_append:function(I){typeof I=="string"&&(I=A.parse(I)),this._data.concat(I),this._nDataBytes+=I.sigBytes},_process:function(I){var M,L=this._data,U=L.words,z=L.sigBytes,H=this.blockSize,G=H*4,X=z/G;I?X=c.ceil(X):X=c.max((X|0)-this._minBufferSize,0);var W=X*H,K=c.min(W*4,z);if(W){for(var ie=0;ie>>2]>>>24-C%4*8&255,A=b[C+1>>>2]>>>24-(C+1)%4*8&255,F=b[C+2>>>2]>>>24-(C+2)%4*8&255,j=O<<16|A<<8|F,I=0;I<4&&C+I*.75<$;I++)T.push(P.charAt(j>>>6*(3-I)&63));var M=P.charAt(64);if(M)for(;T.length%4;)T.push(M);return T.join("")},parse:function(S){var b=S.length,$=this._map,P=this._reverseMap;if(!P){P=this._reverseMap=[];for(var T=0;T<$.length;T++)P[$.charCodeAt(T)]=T}var C=$.charAt(64);if(C){var O=S.indexOf(C);O!==-1&&(b=O)}return _(S,b,P)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function _(S,b,$){for(var P=[],T=0,C=0;C>>6-C%4*2,F=O|A;P[T>>>2]|=F<<24-T%4*8,T++}return d.create(P,T)}}(),s.enc.Base64})}(encBase64)),encBase64.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return function(c){var f=s,d=f.lib,y=d.WordArray,_=d.Hasher,S=f.algo,b=[];(function(){for(var A=0;A<64;A++)b[A]=c.abs(c.sin(A+1))*4294967296|0})();var $=S.MD5=_.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(A,F){for(var j=0;j<16;j++){var I=F+j,M=A[I];A[I]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var L=this._hash.words,U=A[F+0],z=A[F+1],H=A[F+2],G=A[F+3],X=A[F+4],W=A[F+5],K=A[F+6],ie=A[F+7],ee=A[F+8],de=A[F+9],Z=A[F+10],Q=A[F+11],J=A[F+12],ne=A[F+13],fe=A[F+14],le=A[F+15],ae=L[0],ce=L[1],ge=L[2],pe=L[3];ae=P(ae,ce,ge,pe,U,7,b[0]),pe=P(pe,ae,ce,ge,z,12,b[1]),ge=P(ge,pe,ae,ce,H,17,b[2]),ce=P(ce,ge,pe,ae,G,22,b[3]),ae=P(ae,ce,ge,pe,X,7,b[4]),pe=P(pe,ae,ce,ge,W,12,b[5]),ge=P(ge,pe,ae,ce,K,17,b[6]),ce=P(ce,ge,pe,ae,ie,22,b[7]),ae=P(ae,ce,ge,pe,ee,7,b[8]),pe=P(pe,ae,ce,ge,de,12,b[9]),ge=P(ge,pe,ae,ce,Z,17,b[10]),ce=P(ce,ge,pe,ae,Q,22,b[11]),ae=P(ae,ce,ge,pe,J,7,b[12]),pe=P(pe,ae,ce,ge,ne,12,b[13]),ge=P(ge,pe,ae,ce,fe,17,b[14]),ce=P(ce,ge,pe,ae,le,22,b[15]),ae=T(ae,ce,ge,pe,z,5,b[16]),pe=T(pe,ae,ce,ge,K,9,b[17]),ge=T(ge,pe,ae,ce,Q,14,b[18]),ce=T(ce,ge,pe,ae,U,20,b[19]),ae=T(ae,ce,ge,pe,W,5,b[20]),pe=T(pe,ae,ce,ge,Z,9,b[21]),ge=T(ge,pe,ae,ce,le,14,b[22]),ce=T(ce,ge,pe,ae,X,20,b[23]),ae=T(ae,ce,ge,pe,de,5,b[24]),pe=T(pe,ae,ce,ge,fe,9,b[25]),ge=T(ge,pe,ae,ce,G,14,b[26]),ce=T(ce,ge,pe,ae,ee,20,b[27]),ae=T(ae,ce,ge,pe,ne,5,b[28]),pe=T(pe,ae,ce,ge,H,9,b[29]),ge=T(ge,pe,ae,ce,ie,14,b[30]),ce=T(ce,ge,pe,ae,J,20,b[31]),ae=C(ae,ce,ge,pe,W,4,b[32]),pe=C(pe,ae,ce,ge,ee,11,b[33]),ge=C(ge,pe,ae,ce,Q,16,b[34]),ce=C(ce,ge,pe,ae,fe,23,b[35]),ae=C(ae,ce,ge,pe,z,4,b[36]),pe=C(pe,ae,ce,ge,X,11,b[37]),ge=C(ge,pe,ae,ce,ie,16,b[38]),ce=C(ce,ge,pe,ae,Z,23,b[39]),ae=C(ae,ce,ge,pe,ne,4,b[40]),pe=C(pe,ae,ce,ge,U,11,b[41]),ge=C(ge,pe,ae,ce,G,16,b[42]),ce=C(ce,ge,pe,ae,K,23,b[43]),ae=C(ae,ce,ge,pe,de,4,b[44]),pe=C(pe,ae,ce,ge,J,11,b[45]),ge=C(ge,pe,ae,ce,le,16,b[46]),ce=C(ce,ge,pe,ae,H,23,b[47]),ae=O(ae,ce,ge,pe,U,6,b[48]),pe=O(pe,ae,ce,ge,ie,10,b[49]),ge=O(ge,pe,ae,ce,fe,15,b[50]),ce=O(ce,ge,pe,ae,W,21,b[51]),ae=O(ae,ce,ge,pe,J,6,b[52]),pe=O(pe,ae,ce,ge,G,10,b[53]),ge=O(ge,pe,ae,ce,Z,15,b[54]),ce=O(ce,ge,pe,ae,z,21,b[55]),ae=O(ae,ce,ge,pe,ee,6,b[56]),pe=O(pe,ae,ce,ge,le,10,b[57]),ge=O(ge,pe,ae,ce,K,15,b[58]),ce=O(ce,ge,pe,ae,ne,21,b[59]),ae=O(ae,ce,ge,pe,X,6,b[60]),pe=O(pe,ae,ce,ge,Q,10,b[61]),ge=O(ge,pe,ae,ce,H,15,b[62]),ce=O(ce,ge,pe,ae,de,21,b[63]),L[0]=L[0]+ae|0,L[1]=L[1]+ce|0,L[2]=L[2]+ge|0,L[3]=L[3]+pe|0},_doFinalize:function(){var A=this._data,F=A.words,j=this._nDataBytes*8,I=A.sigBytes*8;F[I>>>5]|=128<<24-I%32;var M=c.floor(j/4294967296),L=j;F[(I+64>>>9<<4)+15]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,F[(I+64>>>9<<4)+14]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,A.sigBytes=(F.length+1)*4,this._process();for(var U=this._hash,z=U.words,H=0;H<4;H++){var G=z[H];z[H]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}return U},clone:function(){var A=_.clone.call(this);return A._hash=this._hash.clone(),A}});function P(A,F,j,I,M,L,U){var z=A+(F&j|~F&I)+M+U;return(z<>>32-L)+F}function T(A,F,j,I,M,L,U){var z=A+(F&I|j&~I)+M+U;return(z<>>32-L)+F}function C(A,F,j,I,M,L,U){var z=A+(F^j^I)+M+U;return(z<>>32-L)+F}function O(A,F,j,I,M,L,U){var z=A+(j^(F|~I))+M+U;return(z<>>32-L)+F}f.MD5=_._createHelper($),f.HmacMD5=_._createHmacHelper($)}(Math),s.MD5})}(md5)),md5.exports}var evpkdf={exports:{}},sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return function(){var c=s,f=c.lib,d=f.WordArray,y=f.Hasher,_=c.algo,S=[],b=_.SHA1=y.extend({_doReset:function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function($,P){for(var T=this._hash.words,C=T[0],O=T[1],A=T[2],F=T[3],j=T[4],I=0;I<80;I++){if(I<16)S[I]=$[P+I]|0;else{var M=S[I-3]^S[I-8]^S[I-14]^S[I-16];S[I]=M<<1|M>>>31}var L=(C<<5|C>>>27)+j+S[I];I<20?L+=(O&A|~O&F)+1518500249:I<40?L+=(O^A^F)+1859775393:I<60?L+=(O&A|O&F|A&F)-1894007588:L+=(O^A^F)-899497514,j=F,F=A,A=O<<30|O>>>2,O=C,C=L}T[0]=T[0]+C|0,T[1]=T[1]+O|0,T[2]=T[2]+A|0,T[3]=T[3]+F|0,T[4]=T[4]+j|0},_doFinalize:function(){var $=this._data,P=$.words,T=this._nDataBytes*8,C=$.sigBytes*8;return P[C>>>5]|=128<<24-C%32,P[(C+64>>>9<<4)+14]=Math.floor(T/4294967296),P[(C+64>>>9<<4)+15]=T,$.sigBytes=P.length*4,this._process(),this._hash},clone:function(){var $=y.clone.call(this);return $._hash=this._hash.clone(),$}});c.SHA1=y._createHelper(b),c.HmacSHA1=y._createHmacHelper(b)}(),s.SHA1})}(sha1)),sha1.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){(function(){var c=s,f=c.lib,d=f.Base,y=c.enc,_=y.Utf8,S=c.algo;S.HMAC=d.extend({init:function(b,$){b=this._hasher=new b.init,typeof $=="string"&&($=_.parse($));var P=b.blockSize,T=P*4;$.sigBytes>T&&($=b.finalize($)),$.clamp();for(var C=this._oKey=$.clone(),O=this._iKey=$.clone(),A=C.words,F=O.words,j=0;j>>2]&255;W.sigBytes-=K}};d.BlockCipher=C.extend({cfg:C.cfg.extend({mode:F,padding:I}),reset:function(){var W;C.reset.call(this);var K=this.cfg,ie=K.iv,ee=K.mode;this._xformMode==this._ENC_XFORM_MODE?W=ee.createEncryptor:(W=ee.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==W?this._mode.init(this,ie&&ie.words):(this._mode=W.call(ee,this,ie&&ie.words),this._mode.__creator=W)},_doProcessBlock:function(W,K){this._mode.processBlock(W,K)},_doFinalize:function(){var W,K=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(K.pad(this._data,this.blockSize),W=this._process(!0)):(W=this._process(!0),K.unpad(W)),W},blockSize:128/32});var M=d.CipherParams=y.extend({init:function(W){this.mixIn(W)},toString:function(W){return(W||this.formatter).stringify(this)}}),L=f.format={},U=L.OpenSSL={stringify:function(W){var K,ie=W.ciphertext,ee=W.salt;return ee?K=_.create([1398893684,1701076831]).concat(ee).concat(ie):K=ie,K.toString($)},parse:function(W){var K,ie=$.parse(W),ee=ie.words;return ee[0]==1398893684&&ee[1]==1701076831&&(K=_.create(ee.slice(2,4)),ee.splice(0,4),ie.sigBytes-=16),M.create({ciphertext:ie,salt:K})}},z=d.SerializableCipher=y.extend({cfg:y.extend({format:U}),encrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee);var de=W.createEncryptor(ie,ee),Z=de.finalize(K),Q=de.cfg;return M.create({ciphertext:Z,key:ie,iv:Q.iv,algorithm:W,mode:Q.mode,padding:Q.padding,blockSize:W.blockSize,formatter:ee.format})},decrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee),K=this._parse(K,ee.format);var de=W.createDecryptor(ie,ee).finalize(K.ciphertext);return de},_parse:function(W,K){return typeof W=="string"?K.parse(W,this):W}}),H=f.kdf={},G=H.OpenSSL={execute:function(W,K,ie,ee,de){if(ee||(ee=_.random(64/8)),de)var Z=T.create({keySize:K+ie,hasher:de}).compute(W,ee);else var Z=T.create({keySize:K+ie}).compute(W,ee);var Q=_.create(Z.words.slice(K),ie*4);return Z.sigBytes=K*4,M.create({key:Z,iv:Q,salt:ee})}},X=d.PasswordBasedCipher=z.extend({cfg:z.cfg.extend({kdf:G}),encrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee);var de=ee.kdf.execute(ie,W.keySize,W.ivSize,ee.salt,ee.hasher);ee.iv=de.iv;var Z=z.encrypt.call(this,W,K,de.key,ee);return Z.mixIn(de),Z},decrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee),K=this._parse(K,ee.format);var de=ee.kdf.execute(ie,W.keySize,W.ivSize,K.salt,ee.hasher);ee.iv=de.iv;var Z=z.decrypt.call(this,W,K,de.key,ee);return Z}})}()})}(cipherCore)),cipherCore.exports}(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var c=s,f=c.lib,d=f.BlockCipher,y=c.algo,_=[],S=[],b=[],$=[],P=[],T=[],C=[],O=[],A=[],F=[];(function(){for(var M=[],L=0;L<256;L++)L<128?M[L]=L<<1:M[L]=L<<1^283;for(var U=0,z=0,L=0;L<256;L++){var H=z^z<<1^z<<2^z<<3^z<<4;H=H>>>8^H&255^99,_[U]=H,S[H]=U;var G=M[U],X=M[G],W=M[X],K=M[H]*257^H*16843008;b[U]=K<<24|K>>>8,$[U]=K<<16|K>>>16,P[U]=K<<8|K>>>24,T[U]=K;var K=W*16843009^X*65537^G*257^U*16843008;C[H]=K<<24|K>>>8,O[H]=K<<16|K>>>16,A[H]=K<<8|K>>>24,F[H]=K,U?(U=G^M[M[M[W^G]]],z^=M[M[z]]):U=z=1}})();var j=[0,1,2,4,8,16,32,64,128,27,54],I=y.AES=d.extend({_doReset:function(){var M;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var L=this._keyPriorReset=this._key,U=L.words,z=L.sigBytes/4,H=this._nRounds=z+6,G=(H+1)*4,X=this._keySchedule=[],W=0;W6&&W%z==4&&(M=_[M>>>24]<<24|_[M>>>16&255]<<16|_[M>>>8&255]<<8|_[M&255]):(M=M<<8|M>>>24,M=_[M>>>24]<<24|_[M>>>16&255]<<16|_[M>>>8&255]<<8|_[M&255],M^=j[W/z|0]<<24),X[W]=X[W-z]^M);for(var K=this._invKeySchedule=[],ie=0;ie>>24]]^O[_[M>>>16&255]]^A[_[M>>>8&255]]^F[_[M&255]]}}},encryptBlock:function(M,L){this._doCryptBlock(M,L,this._keySchedule,b,$,P,T,_)},decryptBlock:function(M,L){var U=M[L+1];M[L+1]=M[L+3],M[L+3]=U,this._doCryptBlock(M,L,this._invKeySchedule,C,O,A,F,S);var U=M[L+1];M[L+1]=M[L+3],M[L+3]=U},_doCryptBlock:function(M,L,U,z,H,G,X,W){for(var K=this._nRounds,ie=M[L]^U[0],ee=M[L+1]^U[1],de=M[L+2]^U[2],Z=M[L+3]^U[3],Q=4,J=1;J>>24]^H[ee>>>16&255]^G[de>>>8&255]^X[Z&255]^U[Q++],fe=z[ee>>>24]^H[de>>>16&255]^G[Z>>>8&255]^X[ie&255]^U[Q++],le=z[de>>>24]^H[Z>>>16&255]^G[ie>>>8&255]^X[ee&255]^U[Q++],ae=z[Z>>>24]^H[ie>>>16&255]^G[ee>>>8&255]^X[de&255]^U[Q++];ie=ne,ee=fe,de=le,Z=ae}var ne=(W[ie>>>24]<<24|W[ee>>>16&255]<<16|W[de>>>8&255]<<8|W[Z&255])^U[Q++],fe=(W[ee>>>24]<<24|W[de>>>16&255]<<16|W[Z>>>8&255]<<8|W[ie&255])^U[Q++],le=(W[de>>>24]<<24|W[Z>>>16&255]<<16|W[ie>>>8&255]<<8|W[ee&255])^U[Q++],ae=(W[Z>>>24]<<24|W[ie>>>16&255]<<16|W[ee>>>8&255]<<8|W[de&255])^U[Q++];M[L]=ne,M[L+1]=fe,M[L+2]=le,M[L+3]=ae},keySize:256/32});c.AES=d._createHelper(I)}(),s.AES})})(aes);var aesExports=aes.exports,encUtf8={exports:{}};(function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return s.enc.Utf8})})(encUtf8);var encUtf8Exports=encUtf8.exports;const UTF8=getDefaultExportFromCjs(encUtf8Exports);var modeEcb={exports:{}};(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.mode.ECB=function(){var c=s.lib.BlockCipherMode.extend();return c.Encryptor=c.extend({processBlock:function(f,d){this._cipher.encryptBlock(f,d)}}),c.Decryptor=c.extend({processBlock:function(f,d){this._cipher.decryptBlock(f,d)}}),c}(),s.mode.ECB})})(modeEcb);var modeEcbExports=modeEcb.exports;const ECB=getDefaultExportFromCjs(modeEcbExports);var padPkcs7={exports:{}};(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.pad.Pkcs7})})(padPkcs7);var padPkcs7Exports=padPkcs7.exports;const PKCS7=getDefaultExportFromCjs(padPkcs7Exports);class AesEncrypt{constructor(a={}){er(this,"key");er(this,"iv");const{key:s,iv:c}=a;s&&(this.key=encUtf8Exports.parse(s)),c&&(this.iv=encUtf8Exports.parse(c))}get getOptions(){return{mode:ECB,padding:PKCS7,iv:this.iv}}encryptByAES(a){return aesExports.encrypt(a,this.key,this.getOptions).toString()}decryptByAES(a){return aesExports.decrypt(a,this.key,this.getOptions).toString(UTF8)}}const createStorage$1=({prefixKey:o="",storage:a=sessionStorage,hasEncrypt:s=!0,key:c=cacheCipher.key,iv:f=cacheCipher.iv,timeout:d=null}={})=>{if(s&&[c.length,f.length].some(S=>S!==16))throw new Error("When hasEncrypt is true, the key or iv must be 16 bits!");const y=new AesEncrypt({key:c,iv:f}),_=class{constructor(){er(this,"storage");er(this,"prefixKey");er(this,"encrypt");er(this,"hasEncrypt");this.storage=a,this.prefixKey=o,this.encrypt=y,this.hasEncrypt=s}getKey(b){return`${this.prefixKey}${b}`.toUpperCase()}set(b,$,P=d){const T=JSON.stringify({value:$,time:Date.now(),expire:isNullOrUnDef(P)?null:new Date().getTime()+P*1e3}),C=this.hasEncrypt?this.encrypt.encryptByAES(T):T;this.storage.setItem(this.getKey(b),C)}get(b,$=null){const P=this.storage.getItem(this.getKey(b));if(!P)return $;try{const T=this.hasEncrypt?this.encrypt.decryptByAES(P):P,C=JSON.parse(T),{value:O,expire:A}=C;if(isNullOrUnDef(A)||A>=new Date().getTime())return O;this.remove(b)}catch(T){return $}}remove(b){this.storage.removeItem(this.getKey(b))}clear(){this.storage.clear()}};return new _},createOptions=(o,a={})=>se({hasEncrypt:enableStorageEncryption,storage:o,prefixKey:"react-admin-design__"},a);createStorage$1(createOptions(sessionStorage));const createStorage=(o=sessionStorage,a={})=>createStorage$1(createOptions(o,a)),createSessionStorage=(o={})=>createStorage(sessionStorage,we(se({},o),{timeout:DEFAULT_CACHE_TIME})),createLocalStorage=(o={})=>createStorage(localStorage,we(se({},o),{timeout:DEFAULT_CACHE_TIME}));class Memory{constructor(a=0){er(this,"cache",{});er(this,"alive");this.alive=a*1e3}get getCache(){return this.cache}get(a){return this.cache[a]}set(a,s,c){let f=this.get(a);if((!c||c<=0)&&(c=this.alive),f?(f.timeoutId&&(clearTimeout(f.timeoutId),f.timeoutId=void 0),f.value=s):(f={value:s,alive:c},this.cache[a]=f),!c)return s;const d=new Date().getTime();return f.time=d+this.alive,f.timeoutId=setTimeout(()=>{this.remove(a)},c>d?c-d:c),s}remove(a){const s=this.get(a);if(Reflect.deleteProperty(this.cache,a),s)return clearTimeout(s.timeoutId),s.value}resetCache(a){Object.keys(a).forEach(s=>{const c=s,f=a[c];if(f&&f.time){const d=new Date().getTime(),y=f.time;y>d&&this.set(c,f.value,y)}})}clear(){Object.keys(this.cache).forEach(a=>{const s=this.cache[a];s.timeoutId&&clearTimeout(s.timeoutId)}),this.cache={}}}const ls=createLocalStorage(),ss=createSessionStorage(),localMemory=new Memory(DEFAULT_CACHE_TIME),sessionMemory=new Memory(DEFAULT_CACHE_TIME);function initPersistentMemory(){const o=ls.get(APP_LOCAL_CACHE_KEY),a=ss.get(APP_SESSION_CACHE_KEY);o&&localMemory.resetCache(o),a&&sessionMemory.resetCache(a)}class Persistent{static getLocal(a){var s;return(s=localMemory.get(a))==null?void 0:s.value}static setLocal(a,s,c=!1){localMemory.set(a,s),c&&ls.set(APP_LOCAL_CACHE_KEY,localMemory.getCache)}static removeLocal(a,s=!1){localMemory.remove(a),s&&ls.set(APP_LOCAL_CACHE_KEY,localMemory.getCache)}static clearLocal(a=!1){localMemory.clear(),a&&ls.clear()}static getSession(a){var s;return(s=sessionMemory.get(a))==null?void 0:s.value}static setSession(a,s,c=!1){sessionMemory.set(a,s),c&&ss.set(APP_SESSION_CACHE_KEY,sessionMemory.getCache)}static removeSession(a,s=!1){sessionMemory.remove(a),s&&ss.set(APP_SESSION_CACHE_KEY,sessionMemory.getCache)}static clearSession(a=!1){sessionMemory.clear(),a&&ss.clear()}static clearAll(a=!1){sessionMemory.clear(),localMemory.clear(),a&&(ls.clear(),ss.clear())}}function storageChange(o){const{key:a,newValue:s,oldValue:c}=o;if(!a){Persistent.clearAll();return}s&&c&&(APP_LOCAL_CACHE_KEY===a&&Persistent.clearLocal(),APP_SESSION_CACHE_KEY===a&&Persistent.clearSession())}window.addEventListener("storage",storageChange);initPersistentMemory();const{permissionCacheType}=appSetting,isLocal=permissionCacheType===CacheTypeEnum.LOCAL;function getAuthCache(o){return(isLocal?Persistent.getLocal:Persistent.getSession)(o)}const subTitleMap=new Map([[403,t("对不起,您没有权限访问此页面。")],[404,t("对不起,您访问的页面不存在。")],[500,t("对不起,服务器发生错误。")]]),PageException=()=>{const o=useNavigate(),{status:a,withCard:s}=useLoaderData(),c=()=>{o("/home")},f=({children:d})=>s?jsxRuntimeExports.jsx(Card,{bordered:!1,children:d}):jsxRuntimeExports.jsx("div",{className:"flex-center",style:{height:"100vh"},children:d});return jsxRuntimeExports.jsx(f,{children:jsxRuntimeExports.jsx(Result,{title:a,icon:jsxRuntimeExports.jsx(SvgIcon,{size:380,name:a}),subTitle:subTitleMap.get(a),extra:jsxRuntimeExports.jsx(Button,{type:"primary",onClick:c,children:t("返回首页")})})})},index=Object.freeze(Object.defineProperty({__proto__:null,default:PageException},Symbol.toStringTag,{value:"Module"})),illustrationDashboard="/react-antd-admin-pnpm/assets/illustration_dashboard-e36a7900.png",overlay="/react-antd-admin-pnpm/assets/overlay_2-613a921a.jpg",useStyles$1=createStyles(({token:o})=>({"login-container":{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center",height:"100vh"},"login-img":{maxWidth:"560px",height:"auto"},"login-form":{padding:`${o.paddingLG*7}px ${o.paddingLG*5}px`,".title":{margin:0},".login-info":{margin:`${o.marginLG}px 0`},".login-btn":{backgroundColor:o.colorDefault}},"login-left":{gap:"80px",flexGrow:1,height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",background:`linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)) center center / cover no-repeat, url(${overlay})`,".logo":{width:"100%",padding:o.paddingSM,position:"absolute",top:0,left:0,svg:{color:o.colorPrimary}}}})),{Title,Text}=Typography,LoginPage=()=>{const[o]=Form.useForm(),a=reactExports.useRef(null),[s,c]=reactExports.useState(!1),f=useSignIn(),d=useNavigate(),[y]=useSearchParams(),{styles:_}=useStyles$1(),S=b=>xt(void 0,null,function*(){c(!0);try{(yield f({username:b.username,password:b.password}))&&d(y.get("redirect")||"/")}catch($){message.error($.message)}finally{c(!1)}});return jsxRuntimeExports.jsxs("div",{className:_["login-container"],children:[jsxRuntimeExports.jsxs("div",{className:_["login-left"],children:[jsxRuntimeExports.jsx(Title,{className:"logo",level:3,children:jsxRuntimeExports.jsx(SvgIcon,{name:"logo",size:30})}),jsxRuntimeExports.jsx(Title,{level:2,children:t("Hi, 欢迎回来!")}),jsxRuntimeExports.jsx("img",{src:illustrationDashboard,alt:"",className:_["login-img"]})]}),jsxRuntimeExports.jsxs("div",{className:_["login-form"],children:[jsxRuntimeExports.jsxs("div",{className:"login-info",children:[jsxRuntimeExports.jsx(Title,{className:"title",level:3,children:t("登录 Gbeata Admin")}),jsxRuntimeExports.jsxs(Text,{type:"secondary",children:[" ",t("新用户?"),jsxRuntimeExports.jsx(Button,{type:"link",style:{padding:0},color:"primary",children:t("立即注册")})]}),jsxRuntimeExports.jsx(Alert,{message:t("登录信息: 用户名:admin 密码:123456"),type:"info",showIcon:!0})]}),jsxRuntimeExports.jsxs(Form,{ref:a,form:o,initialValues:{username:"admin",password:"123456",remember:!0},className:"login-box-form",onFinish:S,children:[jsxRuntimeExports.jsx(Form.Item,{name:"username",rules:[{required:!0,message:t("请输入账号")}],children:jsxRuntimeExports.jsx(Input,{placeholder:t("请输入账号"),size:"large",prefix:jsxRuntimeExports.jsx(UserOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsx(Form.Item,{name:"password",rules:[{required:!0,message:t("请输入密码")}],children:jsxRuntimeExports.jsx(Input,{type:"password",placeholder:t("请输入密码"),size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsxs(Form.Item,{children:[jsxRuntimeExports.jsx(Form.Item,{name:"remember",className:classNames("fl","no-margin"),valuePropName:"checked",children:jsxRuntimeExports.jsx(Checkbox,{children:t("记住我")})}),jsxRuntimeExports.jsx(Form.Item,{className:classNames("fr","no-margin"),children:jsxRuntimeExports.jsx("a",{href:"",children:t("忘记密码?")})})]}),jsxRuntimeExports.jsx(Form.Item,{children:jsxRuntimeExports.jsx(Button,{type:"primary",block:!0,htmlType:"submit",size:"large",className:"login-btn",loading:s,children:t("登 录")})})]})]})]})},metaRoutes=Object.assign({"./routes/compo.tsx":__vite_glob_0_0$1,"./routes/exception.tsx":__vite_glob_0_1$1,"./routes/form.tsx":__vite_glob_0_2$1,"./routes/home.tsx":__vite_glob_0_3,"./routes/user.tsx":__vite_glob_0_4}),routeList=[];Object.keys(metaRoutes).forEach(o=>{const a=metaRoutes[o].default||{},s=Array.isArray(a)?[...a]:[a];genFullPath(s),routeList.push(...s)});const rootRoutes=[{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/home"})},{path:"/login",element:jsxRuntimeExports.jsx(LoginPage,{}),meta:{title:t("登录页"),key:"login"},loader:()=>getAuthCache(TOKEN_KEY)?redirect("/"):null},...routeList,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/404"})},{path:"/403",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!1})},{path:"/404",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!1})}],router=createHashRouter(rootRoutes),CustomGlobal=createGlobalStyle` +`):" "+renderReason(d[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return c},adapters:knownAdapters};function throwIfCancellationRequested(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new CanceledError(null,o)}function dispatchRequest(o){return throwIfCancellationRequested(o),o.headers=AxiosHeaders$1.from(o.headers),o.data=transformData.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(o.adapter||defaults$1.adapter)(o).then(function(c){return throwIfCancellationRequested(o),c.data=transformData.call(o,o.transformResponse,c),c.headers=AxiosHeaders$1.from(c.headers),c},function(c){return isCancel(c)||(throwIfCancellationRequested(o),c&&c.response&&(c.response.data=transformData.call(o,o.transformResponse,c.response),c.response.headers=AxiosHeaders$1.from(c.response.headers))),Promise.reject(c)})}const headersToObject=o=>o instanceof AxiosHeaders$1?o.toJSON():o;function mergeConfig(o,a){a=a||{};const s={};function c(b,$,P){return utils$1.isPlainObject(b)&&utils$1.isPlainObject($)?utils$1.merge.call({caseless:P},b,$):utils$1.isPlainObject($)?utils$1.merge({},$):utils$1.isArray($)?$.slice():$}function f(b,$,P){if(utils$1.isUndefined($)){if(!utils$1.isUndefined(b))return c(void 0,b,P)}else return c(b,$,P)}function d(b,$){if(!utils$1.isUndefined($))return c(void 0,$)}function y(b,$){if(utils$1.isUndefined($)){if(!utils$1.isUndefined(b))return c(void 0,b)}else return c(void 0,$)}function _(b,$,P){if(P in a)return c(b,$);if(P in o)return c(void 0,b)}const S={url:d,method:d,data:d,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:_,headers:(b,$)=>f(headersToObject(b),headersToObject($),!0)};return utils$1.forEach(Object.keys(Object.assign({},o,a)),function($){const P=S[$]||f,T=P(o[$],a[$],$);utils$1.isUndefined(T)&&P!==_||(s[$]=T)}),s}const VERSION="1.6.5",validators$1={};["object","boolean","number","function","string","symbol"].forEach((o,a)=>{validators$1[o]=function(c){return typeof c===o||"a"+(a<1?"n ":" ")+o}});const deprecatedWarnings={};validators$1.transitional=function(a,s,c){function f(d,y){return"[Axios v"+VERSION+"] Transitional option '"+d+"'"+y+(c?". "+c:"")}return(d,y,_)=>{if(a===!1)throw new AxiosError(f(y," has been removed"+(s?" in "+s:"")),AxiosError.ERR_DEPRECATED);return s&&!deprecatedWarnings[y]&&(deprecatedWarnings[y]=!0),a?a(d,y,_):!0}};function assertOptions(o,a,s){if(typeof o!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const c=Object.keys(o);let f=c.length;for(;f-- >0;){const d=c[f],y=a[d];if(y){const _=o[d],S=_===void 0||y(_,d,o);if(S!==!0)throw new AxiosError("option "+d+" must be "+S,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new AxiosError("Unknown option "+d,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(a){this.defaults=a,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(a,s){typeof a=="string"?(s=s||{},s.url=a):s=a||{},s=mergeConfig(this.defaults,s);const{transitional:c,paramsSerializer:f,headers:d}=s;c!==void 0&&validator.assertOptions(c,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),f!=null&&(utils$1.isFunction(f)?s.paramsSerializer={serialize:f}:validator.assertOptions(f,{encode:validators.function,serialize:validators.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let y=d&&utils$1.merge(d.common,d[s.method]);d&&utils$1.forEach(["delete","get","head","post","put","patch","common"],O=>{delete d[O]}),s.headers=AxiosHeaders$1.concat(y,d);const _=[];let S=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(s)===!1||(S=S&&A.synchronous,_.unshift(A.fulfilled,A.rejected))});const b=[];this.interceptors.response.forEach(function(A){b.push(A.fulfilled,A.rejected)});let $,P=0,T;if(!S){const O=[dispatchRequest.bind(this),void 0];for(O.unshift.apply(O,_),O.push.apply(O,b),T=O.length,$=Promise.resolve(s);P{if(!c._listeners)return;let d=c._listeners.length;for(;d-- >0;)c._listeners[d](f);c._listeners=null}),this.promise.then=f=>{let d;const y=new Promise(_=>{c.subscribe(_),d=_}).then(f);return y.cancel=function(){c.unsubscribe(d)},y},a(function(d,y,_){c.reason||(c.reason=new CanceledError(d,y,_),s(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}static source(){let a;return{token:new CancelToken(function(f){a=f}),cancel:a}}}const CancelToken$1=CancelToken;function spread(o){return function(s){return o.apply(null,s)}}function isAxiosError(o){return utils$1.isObject(o)&&o.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([o,a])=>{HttpStatusCode[a]=o});const HttpStatusCode$1=HttpStatusCode;function createInstance(o){const a=new Axios$1(o),s=bind(Axios$1.prototype.request,a);return utils$1.extend(s,Axios$1.prototype,a,{allOwnKeys:!0}),utils$1.extend(s,a,null,{allOwnKeys:!0}),s.create=function(f){return createInstance(mergeConfig(o,f))},s}const axios=createInstance(defaults$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(a){return Promise.all(a)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=o=>formDataToJSON(utils$1.isHTMLForm(o)?new FormData(o):o);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios,pendingMap=new Map;class AxiosCanceler{addPending(a){this.removePending(a);const s=getPendingUrl(a),c=new AbortController;a.signal=a.signal||c.signal,pendingMap.has(s)||pendingMap.set(s,c)}removePending(a){const s=getPendingUrl(a);if(pendingMap.has(s)){const c=pendingMap.get(s);c&&c.abort(s),pendingMap.delete(s)}}reset(){pendingMap.clear()}removeAllPending(){pendingMap.forEach(a=>{a&&a.abort()}),this.reset()}}function getPendingUrl(o){return[o.method,o.url].join("&")}class GAxios{constructor(a){tr(this,"axiosInstance");tr(this,"options");this.options=a,this.axiosInstance=axios$1.create(a),this.setupInterceptors()}createAxios(a){this.axiosInstance=axios$1.create(a)}getTransform(){const{transform:a}=this.options;return a}getAxios(){return this.axiosInstance}configAxios(a){this.axiosInstance&&this.createAxios(a)}setHeader(a){this.axiosInstance&&Object.assign(this.axiosInstance.defaults.headers,a)}setupInterceptors(){const{axiosInstance:a,options:{transform:s}}=this;if(!s)return;const{requestInterceptors:c,requestInterceptorsCatch:f,responseInterceptors:d,responseInterceptorsCatch:y}=s,_=new AxiosCanceler;this.axiosInstance.interceptors.request.use(S=>{var P,T;const b=(P=S.requestOptions)!=null?P:this.options.requestOptions;return!((T=b==null?void 0:b.ignoreCancelToken)!=null?T:!0)&&_.addPending(S),c&&isFunction$2(c)&&(S=c(S,this.options)),S},void 0),f&&isFunction$2(f)&&this.axiosInstance.interceptors.request.use(void 0,f),this.axiosInstance.interceptors.response.use(S=>(S&&_.removePending(S.config),d&&isFunction$2(d)&&(S=d(S)),S),void 0),y&&isFunction$2(y)&&this.axiosInstance.interceptors.response.use(void 0,S=>y(a,S))}uploadFile(a,s){const c=new window.FormData,f=s.name||"file";return s.filename?c.append(f,s.file,s.filename):c.append(f,s.file),s.data&&Object.keys(s.data).forEach(d=>{const y=s.data[d];if(Array.isArray(y)){y.forEach(_=>{c.append(`${d}[]`,_)});return}c.append(d,s.data[d])}),this.axiosInstance.request($e(se({},a),{method:"POST",data:c,headers:{"Content-type":ContentTypeEnum.FORM_DATA,ignoreCancelToken:!0}}))}supportFormData(a){var f;const s=a.headers||this.options.headers;return((s==null?void 0:s["Content-Type"])||(s==null?void 0:s["content-type"]))!==ContentTypeEnum.FORM_URLENCODED||!Reflect.has(a,"data")||((f=a.method)==null?void 0:f.toUpperCase())===RequestEnum.GET?a:$e(se({},a),{data:qs.stringify(a.data,{arrayFormat:"brackets"})})}get(a,s){return this.request($e(se({},a),{method:"GET"}),s)}post(a,s){return this.request($e(se({},a),{method:"POST"}),s)}put(a,s){return this.request($e(se({},a),{method:"PUT"}),s)}delete(a,s){return this.request($e(se({},a),{method:"DELETE"}),s)}request(a,s){let c=cloneDeep(a);a.cancelToken&&(c.cancelToken=a.cancelToken),a.signal&&(c.signal=a.signal);const f=this.getTransform(),{requestOptions:d}=this.options,y=Object.assign({},d,s),{beforeRequestHook:_,requestCatchHook:S,transformResponseHook:b}=f||{};return _&&isFunction$2(_)&&(c=_(c,y)),c.requestOptions=y,c=this.supportFormData(c),new Promise(($,P)=>{this.axiosInstance.request(c).then(T=>{if(b&&isFunction$2(b)){try{const C=b(T,y);$(C)}catch(C){P(C||new Error("request error!"))}return}$(T)}).catch(T=>{if(S&&isFunction$2(S)){P(S(T,y));return}axios$1.isAxiosError(T),P(T)})})}}const transform={transformResponseHook:(o,a)=>{const{isReturnNativeResponse:s,isTransformResponse:c}=a;if(s)return o;if(!c)return o.data.data;const{data:f}=o;if(!o.data)throw new Error("请求接口错误");const{code:d,message:y}=f;if(f&&Reflect.has(f,"code")&&d===ResultEnum.SUCCESS)return f.data;let S="";switch(d){case ResultEnum.TIMEOUT:S="登录超时,请重新登录";break;default:y&&(S=y)}throw new Error(S)},responseInterceptorsCatch:(o,a)=>{var S,b;const{response:s,code:c,message:f,config:d}=a||{},y=(b=(S=a==null?void 0:a.toString)==null?void 0:S.call(a))!=null?b:"";let _="";if(axios$1.isCancel(a))return Promise.reject(a);try{c==="ECONNABORTED"&&f.indexOf("timeout")!==-1&&(_="接口请求超时,请刷新页面重试!"),y!=null&&y.includes("Network Error")&&(_="网络异常,请检查您的网络连接是否正常")}catch($){throw new Error($)}switch(s==null?void 0:s.status){case 401:_="登录失效";break;case 403:_="拒绝访问";break;case 404:_="请求地址不存在";break;case 500:_="服务器内部错误";break;case 501:_="服务未实现";break;case 502:_="网关错误";break;case 503:_="服务不可用";break}return Promise.reject(a)},beforeRequestHook:(o,a)=>{var $;const{apiUrl:s,joinPrefix:c,joinParamsToUrl:f,formatDate:d,joinTime:y=!0,urlPrefix:_}=a;c&&(o.url=`${_}${o.url}`);const S=o.params||{},b=o.data||!1;return d&&b&&!isString$3(b)&&formatRequestDate(b),(($=o.method)==null?void 0:$.toUpperCase())===RequestEnum.GET?isString$3(S)?(o.url=o.url+S+`${joinTimestamp(y,!0)}`,o.params=void 0):o.params=Object.assign(S||{},joinTimestamp(y,!1)):isString$3(S)?(o.url=o.url+S,o.params=void 0):(d&&formatRequestDate(S),Reflect.has(o,"data")&&o.data&&(Object.keys(o.data).length>0||o.data instanceof FormData)?(o.data=b,o.params=S):(o.data=S,o.params=void 0),f&&(o.url=setObjToUrlParams(o.url,Object.assign({},o.params,o.data)))),o},requestInterceptors:(o,a)=>{var c;const s=getItem$1(StorageEnum.Token);return s&&((c=o.requestOptions)==null?void 0:c.withToken)!==!1&&(o.headers.Authorization=a.authenticationScheme?`${a.authenticationScheme} ${s}`:s),o}};function createAxios(o){return new GAxios(deepMerge({authenticationScheme:"Bearer",timeout:10*1e3,header:{"Content-Type":ContentTypeEnum.JSON},transform:clone(transform),requestOptions:{joinPrefix:!0,isReturnNativeResponse:!1,joinParamsToUrl:!1,joinTime:!0,ignoreCancelToken:!0,withToken:!0,retryRequest:{isOpenRetry:!0,count:5,waitTime:100},apiUrl:"",urlPrefix:"/api",formatDate:!0}},o||{}))}const defHttp=createAxios(),PREFIX="",GRequest=extend$1({timeout:6e4,prefix:PREFIX});let isRefreshingToken=!1;const requestQueue=[];GRequest.interceptors.request.use((o,a)=>{const{headers:s}=a;return{url:o,options:$e(se({},a),{headers:s})}});GRequest.interceptors.response.use((o,a)=>xt(void 0,null,function*(){const{status:s}=o;if(s===200){const c=yield o.clone().json();return c.code!==0?(notification.error({message:"请求错误",description:c.msg}),Promise.reject(c.msg)):c}if(s===401){if(!isRefreshingToken){const c=JSON.parse(localStorage.getItem("userInfo")||"{}");isRefreshingToken=!0;const f=yield GRequest("/User/ReLogin",{method:"POST",data:c});localStorage.setItem("userInfo",JSON.stringify(f.data)),isRefreshingToken=!1;const d=GRequest(a.url,a);return requestQueue.forEach(y=>y.resolve(GRequest(y.url,y.options))),d}return new Promise((c,f)=>{requestQueue.push({url:a.url,options:a,resolve:c,reject:f})})}return notification.error({message:"请求错误",description:o.statusText}),Promise.reject(o.statusText)}));const loginApi=o=>defHttp.post({url:"/login",data:o});function logoutApi(){return defHttp.get({url:"/logout"})}function getJueJinList(o){return defHttp.post({url:"/article/queryList",data:o})}function getUsersList(){return defHttp.get({url:"/user/getUserList"})}const headerImg="/react-antd-admin-pnpm/assets/avatar-9ee092e3.jpeg",useUserStore=create(o=>({userInfo:getItem$1(StorageEnum$1.User)||{},userToken:getItem$1(StorageEnum$1.Token)||{},actions:{setUserInfo:a=>{o({userInfo:a}),setItem(StorageEnum$1.User,a)},setUserToken:a=>{o({userToken:a}),setItem(StorageEnum$1.Token,a)},clearUserInfoAndToken:()=>{o({userInfo:{},userToken:{}}),removeItem(StorageEnum$1.User),removeItem(StorageEnum$1.Token)}}})),useUserToken=()=>useUserStore(o=>o.userToken),useUserActions=()=>useUserStore(o=>o.actions),useSignIn=()=>{const{t:o}=useTranslation(),{notification:a,message:s}=App$1.useApp(),{setUserToken:c,setUserInfo:f}=useUserActions(),d=useMutation({mutationFn:loginApi}),y=_=>xt(void 0,null,function*(){try{const b=yield d.mutateAsync(_),S=b,{token:$}=S,P=er(S,["token"]);return c({token:$}),f(P),a.success({message:o("登录成功"),description:`欢迎回来: ${_.username}`,duration:3}),yield Promise.resolve(b)}catch(b){return s.error({content:b.message,duration:3}),Promise.reject(b)}});return reactExports.useCallback(y,[])};function UserDropdown(){const{createConfirm:o,contextHolder:a,createMessage:s}=useMessage(),{clearUserInfoAndToken:c}=useUserActions(),{t:f}=useTranslation(),{token:d}=useUserToken(),y=[{key:"lock",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(LockOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:f("锁定屏幕")})]})},{key:"logout",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(PoweroffOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:f("退出登录")})]})}],_=({key:P})=>{switch(P){case"lock":break;case"logout":b();break}},S=useNavigate(),b=()=>{o({title:jsxRuntimeExports.jsx("span",{children:f("温馨提醒")}),content:jsxRuntimeExports.jsx("span",{children:f("是否确认退出系统?")}),onOk:()=>xt(this,null,function*(){yield $(!0)})})},$=(P=!1)=>xt(this,null,function*(){if(d)try{yield logoutApi()}catch(T){s.error(f("注销失败!"))}c(),P&&S("/login")});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a,jsxRuntimeExports.jsx(Dropdown,{menu:{items:y,onClick:_},placement:"bottomRight",arrow:!0,children:jsxRuntimeExports.jsx("span",{className:"flex-center",style:{cursor:"pointer"},children:jsxRuntimeExports.jsx("img",{src:headerImg,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""})})})]})}const matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(o,a,s,c="")=>{const f=o.split(":");if(o.slice(0,1)==="@"){if(f.length<2||f.length>3)return null;c=f.shift().slice(1)}if(f.length>3||!f.length)return null;if(f.length>1){const _=f.pop(),S=f.pop(),b={provider:f.length>0?f[0]:c,prefix:S,name:_};return a&&!validateIconName(b)?null:b}const d=f[0],y=d.split("-");if(y.length>1){const _={provider:c,prefix:y.shift(),name:y.join("-")};return a&&!validateIconName(_)?null:_}if(s&&c===""){const _={provider:c,prefix:"",name:d};return a&&!validateIconName(_,s)?null:_}return null},validateIconName=(o,a)=>o?!!((o.provider===""||o.provider.match(matchIconName))&&(a&&o.prefix===""||o.prefix.match(matchIconName))&&o.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze(se(se({},defaultIconDimensions),defaultIconTransformations)),defaultExtendedIconProps=Object.freeze($e(se({},defaultIconProps),{body:"",hidden:!1}));function mergeIconTransformations(o,a){const s={};!o.hFlip!=!a.hFlip&&(s.hFlip=!0),!o.vFlip!=!a.vFlip&&(s.vFlip=!0);const c=((o.rotate||0)+(a.rotate||0))%4;return c&&(s.rotate=c),s}function mergeIconData(o,a){const s=mergeIconTransformations(o,a);for(const c in defaultExtendedIconProps)c in defaultIconTransformations?c in o&&!(c in s)&&(s[c]=defaultIconTransformations[c]):c in a?s[c]=a[c]:c in o&&(s[c]=o[c]);return s}function getIconsTree(o,a){const s=o.icons,c=o.aliases||Object.create(null),f=Object.create(null);function d(y){if(s[y])return f[y]=[];if(!(y in f)){f[y]=null;const _=c[y]&&c[y].parent,S=_&&d(_);S&&(f[y]=[_].concat(S))}return f[y]}return(a||Object.keys(s).concat(Object.keys(c))).forEach(d),f}function internalGetIconData(o,a,s){const c=o.icons,f=o.aliases||Object.create(null);let d={};function y(_){d=mergeIconData(c[_]||f[_],d)}return y(a),s.forEach(y),mergeIconData(o,d)}function parseIconSet(o,a){const s=[];if(typeof o!="object"||typeof o.icons!="object")return s;o.not_found instanceof Array&&o.not_found.forEach(f=>{a(f,null),s.push(f)});const c=getIconsTree(o);for(const f in c){const d=c[f];d&&(a(f,internalGetIconData(o,f,d)),s.push(f))}return s}const optionalPropertyDefaults=se({provider:"",aliases:{},not_found:{}},defaultIconDimensions);function checkOptionalProps(o,a){for(const s in a)if(s in o&&typeof o[s]!=typeof a[s])return!1;return!0}function quicklyValidateIconSet(o){if(typeof o!="object"||o===null)return null;const a=o;if(typeof a.prefix!="string"||!o.icons||typeof o.icons!="object"||!checkOptionalProps(o,optionalPropertyDefaults))return null;const s=a.icons;for(const f in s){const d=s[f];if(!f.match(matchIconName)||typeof d.body!="string"||!checkOptionalProps(d,defaultExtendedIconProps))return null}const c=a.aliases||Object.create(null);for(const f in c){const d=c[f],y=d.parent;if(!f.match(matchIconName)||typeof y!="string"||!s[y]&&!c[y]||!checkOptionalProps(d,defaultExtendedIconProps))return null}return a}const dataStorage=Object.create(null);function newStorage(o,a){return{provider:o,prefix:a,icons:Object.create(null),missing:new Set}}function getStorage$2(o,a){const s=dataStorage[o]||(dataStorage[o]=Object.create(null));return s[a]||(s[a]=newStorage(o,a))}function addIconSet(o,a){return quicklyValidateIconSet(a)?parseIconSet(a,(s,c)=>{c?o.icons[s]=c:o.missing.add(s)}):[]}function addIconToStorage(o,a,s){try{if(typeof s.body=="string")return o.icons[a]=se({},s),!0}catch(c){}return!1}let simpleNames=!1;function allowSimpleNames(o){return typeof o=="boolean"&&(simpleNames=o),simpleNames}function getIconData(o){const a=typeof o=="string"?stringToIcon(o,!0,simpleNames):o;if(a){const s=getStorage$2(a.provider,a.prefix),c=a.name;return s.icons[c]||(s.missing.has(c)?null:void 0)}}function addIcon(o,a){const s=stringToIcon(o,!0,simpleNames);if(!s)return!1;const c=getStorage$2(s.provider,s.prefix);return addIconToStorage(c,s.name,a)}function addCollection(o,a){if(typeof o!="object")return!1;if(typeof a!="string"&&(a=o.provider||""),simpleNames&&!a&&!o.prefix){let f=!1;return quicklyValidateIconSet(o)&&(o.prefix="",parseIconSet(o,(d,y)=>{y&&addIcon(d,y)&&(f=!0)})),f}const s=o.prefix;if(!validateIconName({provider:a,prefix:s,name:"a"}))return!1;const c=getStorage$2(a,s);return!!addIconSet(c,o)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze(se(se({},defaultIconSizeCustomisations),defaultIconTransformations)),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(o,a,s){if(a===1)return o;if(s=s||100,typeof o=="number")return Math.ceil(o*a*s)/s;if(typeof o!="string")return o;const c=o.split(unitsSplit);if(c===null||!c.length)return o;const f=[];let d=c.shift(),y=unitsTest.test(d);for(;;){if(y){const _=parseFloat(d);isNaN(_)?f.push(d):f.push(Math.ceil(_*a*s)/s)}else f.push(d);if(d=c.shift(),d===void 0)return f.join("");y=!y}}const isUnsetKeyword=o=>o==="unset"||o==="undefined"||o==="none";function iconToSVG(o,a){const s=se(se({},defaultIconProps),o),c=se(se({},defaultIconCustomisations),a),f={left:s.left,top:s.top,width:s.width,height:s.height};let d=s.body;[s,c].forEach(O=>{const A=[],F=O.hFlip,j=O.vFlip;let L=O.rotate;F?j?L+=2:(A.push("translate("+(f.width+f.left).toString()+" "+(0-f.top).toString()+")"),A.push("scale(-1 1)"),f.top=f.left=0):j&&(A.push("translate("+(0-f.left).toString()+" "+(f.height+f.top).toString()+")"),A.push("scale(1 -1)"),f.top=f.left=0);let M;switch(L<0&&(L-=Math.floor(L/4)*4),L=L%4,L){case 1:M=f.height/2+f.top,A.unshift("rotate(90 "+M.toString()+" "+M.toString()+")");break;case 2:A.unshift("rotate(180 "+(f.width/2+f.left).toString()+" "+(f.height/2+f.top).toString()+")");break;case 3:M=f.width/2+f.left,A.unshift("rotate(-90 "+M.toString()+" "+M.toString()+")");break}L%2===1&&(f.left!==f.top&&(M=f.left,f.left=f.top,f.top=M),f.width!==f.height&&(M=f.width,f.width=f.height,f.height=M)),A.length&&(d=''+d+"")});const y=c.width,_=c.height,S=f.width,b=f.height;let $,P;y===null?(P=_===null?"1em":_==="auto"?b:_,$=calculateSize(P,S/b)):($=y==="auto"?S:y,P=_===null?calculateSize($,b/S):_==="auto"?b:_);const T={},C=(O,A)=>{isUnsetKeyword(A)||(T[O]=A.toString())};return C("width",$),C("height",P),T.viewBox=f.left.toString()+" "+f.top.toString()+" "+S.toString()+" "+b.toString(),{attributes:T,body:d}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(o,a=randomPrefix){const s=[];let c;for(;c=regex.exec(o);)s.push(c[1]);if(!s.length)return o;const f="suffix"+(Math.random()*16777216|Date.now()).toString(16);return s.forEach(d=>{const y=typeof a=="function"?a(d):a+(counter++).toString(),_=d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");o=o.replace(new RegExp('([#;"])('+_+')([")]|\\.[a-z])',"g"),"$1"+y+f+"$3")}),o=o.replace(new RegExp(f,"g"),""),o}const storage=Object.create(null);function setAPIModule(o,a){storage[o]=a}function getAPIModule(o){return storage[o]||storage[""]}function createAPIConfig(o){let a;if(typeof o.resources=="string")a=[o.resources];else if(a=o.resources,!(a instanceof Array)||!a.length)return null;return{resources:a,path:o.path||"/",maxURL:o.maxURL||500,rotate:o.rotate||750,timeout:o.timeout||5e3,random:o.random===!0,index:o.index||0,dataAfterTimeout:o.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(o,a){const s=createAPIConfig(a);return s===null?!1:(configStorage[o]=s,!0)}function getAPIConfig(o){return configStorage[o]}const detectFetch=()=>{let o;try{if(o=fetch,typeof o=="function")return o}catch(a){}};let fetchModule=detectFetch();function calculateMaxLength(o,a){const s=getAPIConfig(o);if(!s)return 0;let c;if(!s.maxURL)c=0;else{let f=0;s.resources.forEach(y=>{f=Math.max(f,y.length)});const d=a+".json?icons=";c=s.maxURL-f-s.path.length-d.length}return c}function shouldAbort(o){return o===404}const prepare=(o,a,s)=>{const c=[],f=calculateMaxLength(o,a),d="icons";let y={type:d,provider:o,prefix:a,icons:[]},_=0;return s.forEach((S,b)=>{_+=S.length+1,_>=f&&b>0&&(c.push(y),y={type:d,provider:o,prefix:a,icons:[]},_=S.length),y.icons.push(S)}),c.push(y),c};function getPath(o){if(typeof o=="string"){const a=getAPIConfig(o);if(a)return a.path}return"/"}const send=(o,a,s)=>{if(!fetchModule){s("abort",424);return}let c=getPath(a.provider);switch(a.type){case"icons":{const d=a.prefix,_=a.icons.join(","),S=new URLSearchParams({icons:_});c+=d+".json?"+S.toString();break}case"custom":{const d=a.uri;c+=d.slice(0,1)==="/"?d.slice(1):d;break}default:s("abort",400);return}let f=503;fetchModule(o+c).then(d=>{const y=d.status;if(y!==200){setTimeout(()=>{s(shouldAbort(y)?"abort":"next",y)});return}return f=501,d.json()}).then(d=>{if(typeof d!="object"||d===null){setTimeout(()=>{d===404?s("abort",d):s("next",f)});return}setTimeout(()=>{s("success",d)})}).catch(()=>{s("next",f)})},fetchAPIModule={prepare,send};function sortIcons(o){const a={loaded:[],missing:[],pending:[]},s=Object.create(null);o.sort((f,d)=>f.provider!==d.provider?f.provider.localeCompare(d.provider):f.prefix!==d.prefix?f.prefix.localeCompare(d.prefix):f.name.localeCompare(d.name));let c={provider:"",prefix:"",name:""};return o.forEach(f=>{if(c.name===f.name&&c.prefix===f.prefix&&c.provider===f.provider)return;c=f;const d=f.provider,y=f.prefix,_=f.name,S=s[d]||(s[d]=Object.create(null)),b=S[y]||(S[y]=getStorage$2(d,y));let $;_ in b.icons?$=a.loaded:y===""||b.missing.has(_)?$=a.missing:$=a.pending;const P={provider:d,prefix:y,name:_};$.push(P)}),a}function removeCallback(o,a){o.forEach(s=>{const c=s.loaderCallbacks;c&&(s.loaderCallbacks=c.filter(f=>f.id!==a))})}function updateCallbacks(o){o.pendingCallbacksFlag||(o.pendingCallbacksFlag=!0,setTimeout(()=>{o.pendingCallbacksFlag=!1;const a=o.loaderCallbacks?o.loaderCallbacks.slice(0):[];if(!a.length)return;let s=!1;const c=o.provider,f=o.prefix;a.forEach(d=>{const y=d.icons,_=y.pending.length;y.pending=y.pending.filter(S=>{if(S.prefix!==f)return!0;const b=S.name;if(o.icons[b])y.loaded.push({provider:c,prefix:f,name:b});else if(o.missing.has(b))y.missing.push({provider:c,prefix:f,name:b});else return s=!0,!0;return!1}),y.pending.length!==_&&(s||removeCallback([o],d.id),d.callback(y.loaded.slice(0),y.missing.slice(0),y.pending.slice(0),d.abort))})}))}let idCounter=0;function storeCallback(o,a,s){const c=idCounter++,f=removeCallback.bind(null,s,c);if(!a.pending.length)return f;const d={id:c,icons:a,callback:o,abort:f};return s.forEach(y=>{(y.loaderCallbacks||(y.loaderCallbacks=[])).push(d)}),f}function listToIcons(o,a=!0,s=!1){const c=[];return o.forEach(f=>{const d=typeof f=="string"?stringToIcon(f,a,s):f;d&&c.push(d)}),c}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(o,a,s,c){const f=o.resources.length,d=o.random?Math.floor(Math.random()*f):o.index;let y;if(o.random){let z=o.resources.slice(0);for(y=[];z.length>1;){const H=Math.floor(Math.random()*z.length);y.push(z[H]),z=z.slice(0,H).concat(z.slice(H+1))}y=y.concat(z)}else y=o.resources.slice(d).concat(o.resources.slice(0,d));const _=Date.now();let S="pending",b=0,$,P=null,T=[],C=[];typeof c=="function"&&C.push(c);function O(){P&&(clearTimeout(P),P=null)}function A(){S==="pending"&&(S="aborted"),O(),T.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),T=[]}function F(z,H){H&&(C=[]),typeof z=="function"&&C.push(z)}function j(){return{startTime:_,payload:a,status:S,queriesSent:b,queriesPending:T.length,subscribe:F,abort:A}}function L(){S="failed",C.forEach(z=>{z(void 0,$)})}function M(){T.forEach(z=>{z.status==="pending"&&(z.status="aborted")}),T=[]}function I(z,H,G){const X=H!=="success";switch(T=T.filter(W=>W!==z),S){case"pending":break;case"failed":if(X||!o.dataAfterTimeout)return;break;default:return}if(H==="abort"){$=G,L();return}if(X){$=G,T.length||(y.length?U():L());return}if(O(),M(),!o.random){const W=o.resources.indexOf(z.resource);W!==-1&&W!==o.index&&(o.index=W)}S="completed",C.forEach(W=>{W(G)})}function U(){if(S!=="pending")return;O();const z=y.shift();if(z===void 0){if(T.length){P=setTimeout(()=>{O(),S==="pending"&&(M(),L())},o.timeout);return}L();return}const H={status:"pending",resource:z,callback:(G,X)=>{I(H,G,X)}};T.push(H),b++,P=setTimeout(U,o.rotate),s(z,a,H.callback)}return setTimeout(U),j}function initRedundancy(o){const a=se(se({},defaultConfig),o);let s=[];function c(){s=s.filter(_=>_().status==="pending")}function f(_,S,b){const $=sendQuery(a,_,S,(P,T)=>{c(),b&&b(P,T)});return s.push($),$}function d(_){return s.find(S=>_(S))||null}return{query:f,find:d,setIndex:_=>{a.index=_},getIndex:()=>a.index,cleanup:c}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(o){if(!redundancyCache[o]){const a=getAPIConfig(o);if(!a)return;const s=initRedundancy(a),c={config:a,redundancy:s};redundancyCache[o]=c}return redundancyCache[o]}function sendAPIQuery(o,a,s){let c,f;if(typeof o=="string"){const d=getAPIModule(o);if(!d)return s(void 0,424),emptyCallback$1;f=d.send;const y=getRedundancyCache(o);y&&(c=y.redundancy)}else{const d=createAPIConfig(o);if(d){c=initRedundancy(d);const y=o.resources?o.resources[0]:"",_=getAPIModule(y);_&&(f=_.send)}}return!c||!f?(s(void 0,424),emptyCallback$1):c.query(a,f,s)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(o,a){try{return o.getItem(a)}catch(s){}}function setStoredItem(o,a,s){try{return o.setItem(a,s),!0}catch(c){}}function removeStoredItem(o,a){try{o.removeItem(a)}catch(s){}}function setBrowserStorageItemsCount(o,a){return setStoredItem(o,browserCacheCountKey,a.toString())}function getBrowserStorageItemsCount(o){return parseInt(getStoredItem(o,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(o){browserStorageStatus=o}let _window=typeof window=="undefined"?{}:window;function getBrowserStorage(o){const a=o+"Storage";try{if(_window&&_window[a]&&typeof _window[a].length=="number")return _window[a]}catch(s){}browserStorageConfig[o]=!1}function iterateBrowserStorage(o,a){const s=getBrowserStorage(o);if(!s)return;const c=getStoredItem(s,browserCacheVersionKey);if(c!==browserCacheVersion){if(c){const _=getBrowserStorageItemsCount(s);for(let S=0;S<_;S++)removeStoredItem(s,browserCachePrefix+S.toString())}setStoredItem(s,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(s,0);return}const f=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,d=_=>{const S=browserCachePrefix+_.toString(),b=getStoredItem(s,S);if(typeof b=="string"){try{const $=JSON.parse(b);if(typeof $=="object"&&typeof $.cached=="number"&&$.cached>f&&typeof $.provider=="string"&&typeof $.data=="object"&&typeof $.data.prefix=="string"&&a($,_))return!0}catch($){}removeStoredItem(s,S)}};let y=getBrowserStorageItemsCount(s);for(let _=y-1;_>=0;_--)d(_)||(_===y-1?(y--,setBrowserStorageItemsCount(s,y)):browserStorageEmptyItems[o].add(_))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const o in browserStorageConfig)iterateBrowserStorage(o,a=>{const s=a.data,c=a.provider,f=s.prefix,d=getStorage$2(c,f);if(!addIconSet(d,s).length)return!1;const y=s.lastModified||-1;return d.lastModifiedCached=d.lastModifiedCached?Math.min(d.lastModifiedCached,y):y,!0})}}function updateLastModified(o,a){const s=o.lastModifiedCached;if(s&&s>=a)return s===a;if(o.lastModifiedCached=a,s)for(const c in browserStorageConfig)iterateBrowserStorage(c,f=>{const d=f.data;return f.provider!==o.provider||d.prefix!==o.prefix||d.lastModified===a});return!0}function storeInBrowserStorage(o,a){browserStorageStatus||initBrowserStorage();function s(c){let f;if(!browserStorageConfig[c]||!(f=getBrowserStorage(c)))return;const d=browserStorageEmptyItems[c];let y;if(d.size)d.delete(y=Array.from(d).shift());else if(y=getBrowserStorageItemsCount(f),!setBrowserStorageItemsCount(f,y+1))return;const _={cached:Math.floor(Date.now()/browserStorageHour),provider:o.provider,data:a};return setStoredItem(f,browserCachePrefix+y.toString(),JSON.stringify(_))}a.lastModified&&!updateLastModified(o,a.lastModified)||Object.keys(a.icons).length&&(a.not_found&&(a=Object.assign({},a),delete a.not_found),s("local")||s("session"))}function emptyCallback(){}function loadedNewIcons(o){o.iconsLoaderFlag||(o.iconsLoaderFlag=!0,setTimeout(()=>{o.iconsLoaderFlag=!1,updateCallbacks(o)}))}function loadNewIcons(o,a){o.iconsToLoad?o.iconsToLoad=o.iconsToLoad.concat(a).sort():o.iconsToLoad=a,o.iconsQueueFlag||(o.iconsQueueFlag=!0,setTimeout(()=>{o.iconsQueueFlag=!1;const{provider:s,prefix:c}=o,f=o.iconsToLoad;delete o.iconsToLoad;let d;if(!f||!(d=getAPIModule(s)))return;d.prepare(s,c,f).forEach(_=>{sendAPIQuery(s,_,S=>{if(typeof S!="object")_.icons.forEach(b=>{o.missing.add(b)});else try{const b=addIconSet(o,S);if(!b.length)return;const $=o.pendingIcons;$&&b.forEach(P=>{$.delete(P)}),storeInBrowserStorage(o,S)}catch(b){}loadedNewIcons(o)})})}))}const loadIcons=(o,a)=>{const s=listToIcons(o,!0,allowSimpleNames()),c=sortIcons(s);if(!c.pending.length){let S=!0;return a&&setTimeout(()=>{S&&a(c.loaded,c.missing,c.pending,emptyCallback)}),()=>{S=!1}}const f=Object.create(null),d=[];let y,_;return c.pending.forEach(S=>{const{provider:b,prefix:$}=S;if($===_&&b===y)return;y=b,_=$,d.push(getStorage$2(b,$));const P=f[b]||(f[b]=Object.create(null));P[$]||(P[$]=[])}),c.pending.forEach(S=>{const{provider:b,prefix:$,name:P}=S,T=getStorage$2(b,$),C=T.pendingIcons||(T.pendingIcons=new Set);C.has(P)||(C.add(P),f[b][$].push(P))}),d.forEach(S=>{const{provider:b,prefix:$}=S;f[b][$].length&&loadNewIcons(S,f[b][$])}),a?storeCallback(a,c,d):emptyCallback};function mergeCustomisations(o,a){const s=se({},o);for(const c in a){const f=a[c],d=typeof f;c in defaultIconSizeCustomisations?(f===null||f&&(d==="string"||d==="number"))&&(s[c]=f):d===typeof s[c]&&(s[c]=c==="rotate"?f%4:f)}return s}const separator=/[\s,]+/;function flipFromString(o,a){a.split(separator).forEach(s=>{switch(s.trim()){case"horizontal":o.hFlip=!0;break;case"vertical":o.vFlip=!0;break}})}function rotateFromString(o,a=0){const s=o.replace(/^-?[0-9.]*/,"");function c(f){for(;f<0;)f+=4;return f%4}if(s===""){const f=parseInt(o);return isNaN(f)?0:c(f)}else if(s!==o){let f=0;switch(s){case"%":f=25;break;case"deg":f=90}if(f){let d=parseFloat(o.slice(0,o.length-s.length));return isNaN(d)?0:(d=d/f,d%1===0?c(d):0)}}return a}function iconToHTML(o,a){let s=o.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const c in a)s+=" "+c+'="'+a[c]+'"';return'"+o+""}function encodeSVGforURL(o){return o.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData(o){return"data:image/svg+xml,"+encodeSVGforURL(o)}function svgToURL(o){return'url("'+svgToData(o)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:o=>o})}catch(o){policy=null}}function cleanUpInnerHTML(o){return policy===void 0&&createPolicy(),policy?policy.createHTML(o):o}const defaultExtendedIconCustomisations=$e(se({},defaultIconCustomisations),{inline:!1}),svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const o in propsToAddTo){const a=propsToAddTo[o];for(const s in propsToAdd)a[o+s]=propsToAdd[s]}const inlineDefaults=$e(se({},defaultExtendedIconCustomisations),{inline:!0});function fixSize(o){return o+(o.match(/^[-0-9.]+$/)?"px":"")}const render=(o,a,s,c)=>{const f=s?inlineDefaults:defaultExtendedIconCustomisations,d=mergeCustomisations(f,a),y=a.mode||"svg",_={},S=a.style||{},b=$e(se({},y==="svg"?svgDefaults:{}),{ref:c});for(let j in a){const L=a[j];if(L!==void 0)switch(j){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":d[j]=L===!0||L==="true"||L===1;break;case"flip":typeof L=="string"&&flipFromString(d,L);break;case"color":_.color=L;break;case"rotate":typeof L=="string"?d[j]=rotateFromString(L):typeof L=="number"&&(d[j]=L);break;case"ariaHidden":case"aria-hidden":L!==!0&&L!=="true"&&delete b["aria-hidden"];break;default:f[j]===void 0&&(b[j]=L)}}const $=iconToSVG(o,d),P=$.attributes;if(d.inline&&(_.verticalAlign="-0.125em"),y==="svg"){b.style=se(se({},_),S),Object.assign(b,P);let j=0,L=a.id;return typeof L=="string"&&(L=L.replace(/-/g,"_")),b.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs($.body,L?()=>L+"ID"+j++:"iconifyReact"))},React$4.createElement("svg",b)}const{body:T,width:C,height:O}=o,A=y==="mask"||(y==="bg"?!1:T.indexOf("currentColor")!==-1),F=iconToHTML(T,$e(se({},P),{width:C+"",height:O+""}));return b.style=se(se(se($e(se({},_),{"--svg":svgToURL(F),width:fixSize(P.width),height:fixSize(P.height)}),commonProps),A?monotoneProps:coloredProps),S),React$4.createElement("span",b)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document!="undefined"&&typeof window!="undefined"){initBrowserStorage();const o=window;if(o.IconifyPreload!==void 0){const a=o.IconifyPreload,s="Invalid IconifyPreload syntax.";typeof a=="object"&&a!==null&&(a instanceof Array?a:[a]).forEach(c=>{try{typeof c!="object"||c===null||c instanceof Array||typeof c.icons!="object"||typeof c.prefix!="string"||addCollection(c)}catch(f){}})}if(o.IconifyProviders!==void 0){const a=o.IconifyProviders;if(typeof a=="object"&&a!==null)for(let s in a){const c="IconifyProviders["+s+"] is invalid.";try{const f=a[s];if(typeof f!="object"||!f||f.resources===void 0)continue;addAPIProvider(s,f)}catch(f){}}}}class IconComponent extends React$4.Component{constructor(a){super(a),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(a){this.state.icon!==a&&this.setState({icon:a})}_checkIcon(a){const s=this.state,c=this.props.icon;if(typeof c=="object"&&c!==null&&typeof c.body=="string"){this._icon="",this._abortLoading(),(a||s.icon===null)&&this._setData({data:c});return}let f;if(typeof c!="string"||(f=stringToIcon(c,!1,!0))===null){this._abortLoading(),this._setData(null);return}const d=getIconData(f);if(!d){(!this._loading||this._loading.name!==c)&&(this._abortLoading(),this._icon="",this._setData(null),d!==null&&(this._loading={name:c,abort:loadIcons([f],this._checkIcon.bind(this,!1))}));return}if(this._icon!==c||s.icon===null){this._abortLoading(),this._icon=c;const y=["iconify"];f.prefix!==""&&y.push("iconify--"+f.prefix),f.provider!==""&&y.push("iconify--"+f.provider),this._setData({data:d,classes:y}),this.props.onLoad&&this.props.onLoad(c)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(a){a.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const a=this.props,s=this.state.icon;if(s===null)return a.children?a.children:React$4.createElement("span",{});let c=a;return s.classes&&(c=$e(se({},a),{className:(typeof a.className=="string"?a.className+" ":"")+s.classes.join(" ")})),render(se(se({},defaultIconProps),s.data),c,a._inline,a._ref)}}const Icon=React$4.forwardRef(function(a,s){const c=$e(se({},a),{_ref:s,_inline:!1});return React$4.createElement(IconComponent,c)});React$4.forwardRef(function(a,s){const c=$e(se({},a),{_ref:s,_inline:!0});return React$4.createElement(IconComponent,c)});const Selectlangulage=()=>{const{i18n:o}=useTranslation(),a=[{key:"zh",label:"中文"},{key:"en",label:"English"}];return jsxRuntimeExports.jsx(Dropdown,{menu:{items:a,onClick:({key:s})=>o.changeLanguage(s)},trigger:["click"],children:jsxRuntimeExports.jsx(Button,{shape:"circle",size:"small",icon:jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(Icon,{icon:"ant-design:global-outlined"})})})})};function LayoutFeature(){return jsxRuntimeExports.jsxs(Space,{size:"middle",children:[jsxRuntimeExports.jsx(GlobalSearch,{}),jsxRuntimeExports.jsx(Selectlangulage,{}),jsxRuntimeExports.jsx(DocLink,{}),jsxRuntimeExports.jsx(GithubLink,{}),jsxRuntimeExports.jsx(Settings,{}),jsxRuntimeExports.jsx(UserDropdown,{})]})}function formatProdErrorMessage$2(o){return`Minified Redux error #${o}; visit https://redux.js.org/Errors?code=${o} for the full message or use the non-minified dev environment for full errors. `}var $$observable$1=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),symbol_observable_default=$$observable$1,randomString$1=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes$1={INIT:`@@redux/INIT${randomString$1()}`,REPLACE:`@@redux/REPLACE${randomString$1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString$1()}`},actionTypes_default=ActionTypes$1;function isPlainObject$2(o){if(typeof o!="object"||o===null)return!1;let a=o;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(o)===a||Object.getPrototypeOf(o)===null}function createStore$1(o,a,s){if(typeof o!="function")throw new Error(formatProdErrorMessage$2(2));if(typeof a=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$2(0));if(typeof a=="function"&&typeof s=="undefined"&&(s=a,a=void 0),typeof s!="undefined"){if(typeof s!="function")throw new Error(formatProdErrorMessage$2(1));return s(createStore$1)(o,a)}let c=o,f=a,d=new Map,y=d,_=0,S=!1;function b(){y===d&&(y=new Map,d.forEach((F,j)=>{y.set(j,F)}))}function $(){if(S)throw new Error(formatProdErrorMessage$2(3));return f}function P(F){if(typeof F!="function")throw new Error(formatProdErrorMessage$2(4));if(S)throw new Error(formatProdErrorMessage$2(5));let j=!0;b();const L=_++;return y.set(L,F),function(){if(j){if(S)throw new Error(formatProdErrorMessage$2(6));j=!1,b(),y.delete(L),d=null}}}function T(F){if(!isPlainObject$2(F))throw new Error(formatProdErrorMessage$2(7));if(typeof F.type=="undefined")throw new Error(formatProdErrorMessage$2(8));if(typeof F.type!="string")throw new Error(formatProdErrorMessage$2(17));if(S)throw new Error(formatProdErrorMessage$2(9));try{S=!0,f=c(f,F)}finally{S=!1}return(d=y).forEach(L=>{L()}),F}function C(F){if(typeof F!="function")throw new Error(formatProdErrorMessage$2(10));c=F,T({type:actionTypes_default.REPLACE})}function O(){const F=P;return{subscribe(j){if(typeof j!="object"||j===null)throw new Error(formatProdErrorMessage$2(11));function L(){const I=j;I.next&&I.next($())}return L(),{unsubscribe:F(L)}},[symbol_observable_default](){return this}}}return T({type:actionTypes_default.INIT}),{dispatch:T,subscribe:P,getState:$,replaceReducer:C,[symbol_observable_default]:O}}function assertReducerShape(o){Object.keys(o).forEach(a=>{const s=o[a];if(typeof s(void 0,{type:actionTypes_default.INIT})=="undefined")throw new Error(formatProdErrorMessage$2(12));if(typeof s(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(formatProdErrorMessage$2(13))})}function combineReducers(o){const a=Object.keys(o),s={};for(let d=0;da:o.length===1?o[0]:o.reduce((a,s)=>(...c)=>a(s(...c)))}function applyMiddleware(...o){return a=>(s,c)=>{const f=a(s,c);let d=()=>{throw new Error(formatProdErrorMessage$2(15))};const y={getState:f.getState,dispatch:(S,...b)=>d(S,...b)},_=o.map(S=>S(y));return d=compose(..._)(f.dispatch),$e(se({},f),{dispatch:d})}}function isAction(o){return isPlainObject$2(o)&&"type"in o&&typeof o.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(o,...a){throw new Error(`[Immer] minified error nr: ${o}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft(o){return!!o&&!!o[DRAFT_STATE]}function isDraftable(o){var a;return o?isPlainObject$1(o)||Array.isArray(o)||!!o[DRAFTABLE]||!!((a=o.constructor)!=null&&a[DRAFTABLE])||isMap(o)||isSet(o):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject$1(o){if(!o||typeof o!="object")return!1;const a=getPrototypeOf(o);if(a===null)return!0;const s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object?!0:typeof s=="function"&&Function.toString.call(s)===objectCtorString}function each(o,a){getArchtype(o)===0?Object.entries(o).forEach(([s,c])=>{a(s,c,o)}):o.forEach((s,c)=>a(c,s,o))}function getArchtype(o){const a=o[DRAFT_STATE];return a?a.type_:Array.isArray(o)?1:isMap(o)?2:isSet(o)?3:0}function has(o,a){return getArchtype(o)===2?o.has(a):Object.prototype.hasOwnProperty.call(o,a)}function set(o,a,s){const c=getArchtype(o);c===2?o.set(a,s):c===3?o.add(s):o[a]=s}function is(o,a){return o===a?o!==0||1/o===1/a:o!==o&&a!==a}function isMap(o){return o instanceof Map}function isSet(o){return o instanceof Set}function latest(o){return o.copy_||o.base_}function shallowCopy(o,a){if(isMap(o))return new Map(o);if(isSet(o))return new Set(o);if(Array.isArray(o))return Array.prototype.slice.call(o);if(!a&&isPlainObject$1(o))return getPrototypeOf(o)?se({},o):Object.assign(Object.create(null),o);const s=Object.getOwnPropertyDescriptors(o);delete s[DRAFT_STATE];let c=Reflect.ownKeys(s);for(let f=0;f1&&(o.set=o.add=o.clear=o.delete=dontMutateFrozenCollections),Object.freeze(o),a&&each(o,(s,c)=>freeze(c,!0))),o}function dontMutateFrozenCollections(){die(2)}function isFrozen(o){return Object.isFrozen(o)}var plugins={};function getPlugin(o){const a=plugins[o];return a||die(0,o),a}var currentScope;function getCurrentScope(){return currentScope}function createScope(o,a){return{drafts_:[],parent_:o,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(o,a){a&&(getPlugin("Patches"),o.patches_=[],o.inversePatches_=[],o.patchListener_=a)}function revokeScope(o){leaveScope(o),o.drafts_.forEach(revokeDraft),o.drafts_=null}function leaveScope(o){o===currentScope&&(currentScope=o.parent_)}function enterScope(o){return currentScope=createScope(currentScope,o)}function revokeDraft(o){const a=o[DRAFT_STATE];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function processResult(o,a){a.unfinalizedDrafts_=a.drafts_.length;const s=a.drafts_[0];return o!==void 0&&o!==s?(s[DRAFT_STATE].modified_&&(revokeScope(a),die(4)),isDraftable(o)&&(o=finalize(a,o),a.parent_||maybeFreeze(a,o)),a.patches_&&getPlugin("Patches").generateReplacementPatches_(s[DRAFT_STATE].base_,o,a.patches_,a.inversePatches_)):o=finalize(a,s,[]),revokeScope(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),o!==NOTHING?o:void 0}function finalize(o,a,s){if(isFrozen(a))return a;const c=a[DRAFT_STATE];if(!c)return each(a,(f,d)=>finalizeProperty(o,c,a,f,d,s)),a;if(c.scope_!==o)return a;if(!c.modified_)return maybeFreeze(o,c.base_,!0),c.base_;if(!c.finalized_){c.finalized_=!0,c.scope_.unfinalizedDrafts_--;const f=c.copy_;let d=f,y=!1;c.type_===3&&(d=new Set(f),f.clear(),y=!0),each(d,(_,S)=>finalizeProperty(o,c,f,_,S,s,y)),maybeFreeze(o,f,!1),s&&o.patches_&&getPlugin("Patches").generatePatches_(c,s,o.patches_,o.inversePatches_)}return c.copy_}function finalizeProperty(o,a,s,c,f,d,y){if(isDraft(f)){const _=d&&a&&a.type_!==3&&!has(a.assigned_,c)?d.concat(c):void 0,S=finalize(o,f,_);if(set(s,c,S),isDraft(S))o.canAutoFreeze_=!1;else return}else y&&s.add(f);if(isDraftable(f)&&!isFrozen(f)){if(!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1)return;finalize(o,f),(!a||!a.scope_.parent_)&&maybeFreeze(o,f)}}function maybeFreeze(o,a,s=!1){!o.parent_&&o.immer_.autoFreeze_&&o.canAutoFreeze_&&freeze(a,s)}function createProxyProxy(o,a){const s=Array.isArray(o),c={type_:s?1:0,scope_:a?a.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:o,draft_:null,copy_:null,revoke_:null,isManual_:!1};let f=c,d=objectTraps;s&&(f=[c],d=arrayTraps);const{revoke:y,proxy:_}=Proxy.revocable(f,d);return c.draft_=_,c.revoke_=y,_}var objectTraps={get(o,a){if(a===DRAFT_STATE)return o;const s=latest(o);if(!has(s,a))return readPropFromProto(o,s,a);const c=s[a];return o.finalized_||!isDraftable(c)?c:c===peek(o.base_,a)?(prepareCopy(o),o.copy_[a]=createProxy(c,o)):c},has(o,a){return a in latest(o)},ownKeys(o){return Reflect.ownKeys(latest(o))},set(o,a,s){const c=getDescriptorFromProto(latest(o),a);if(c!=null&&c.set)return c.set.call(o.draft_,s),!0;if(!o.modified_){const f=peek(latest(o),a),d=f==null?void 0:f[DRAFT_STATE];if(d&&d.base_===s)return o.copy_[a]=s,o.assigned_[a]=!1,!0;if(is(s,f)&&(s!==void 0||has(o.base_,a)))return!0;prepareCopy(o),markChanged(o)}return o.copy_[a]===s&&(s!==void 0||a in o.copy_)||Number.isNaN(s)&&Number.isNaN(o.copy_[a])||(o.copy_[a]=s,o.assigned_[a]=!0),!0},deleteProperty(o,a){return peek(o.base_,a)!==void 0||a in o.base_?(o.assigned_[a]=!1,prepareCopy(o),markChanged(o)):delete o.assigned_[a],o.copy_&&delete o.copy_[a],!0},getOwnPropertyDescriptor(o,a){const s=latest(o),c=Reflect.getOwnPropertyDescriptor(s,a);return c&&{writable:!0,configurable:o.type_!==1||a!=="length",enumerable:c.enumerable,value:s[a]}},defineProperty(){die(11)},getPrototypeOf(o){return getPrototypeOf(o.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each(objectTraps,(o,a)=>{arrayTraps[o]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});arrayTraps.deleteProperty=function(o,a){return arrayTraps.set.call(this,o,a,void 0)};arrayTraps.set=function(o,a,s){return objectTraps.set.call(this,o[0],a,s,o[0])};function peek(o,a){const s=o[DRAFT_STATE];return(s?latest(s):o)[a]}function readPropFromProto(o,a,s){var f;const c=getDescriptorFromProto(a,s);return c?"value"in c?c.value:(f=c.get)==null?void 0:f.call(o.draft_):void 0}function getDescriptorFromProto(o,a){if(!(a in o))return;let s=getPrototypeOf(o);for(;s;){const c=Object.getOwnPropertyDescriptor(s,a);if(c)return c;s=getPrototypeOf(s)}}function markChanged(o){o.modified_||(o.modified_=!0,o.parent_&&markChanged(o.parent_))}function prepareCopy(o){o.copy_||(o.copy_=shallowCopy(o.base_,o.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(o){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(a,s,c)=>{if(typeof a=="function"&&typeof s!="function"){const d=s;s=a;const y=this;return function(S=d,...b){return y.produce(S,$=>s.call(this,$,...b))}}typeof s!="function"&&die(6),c!==void 0&&typeof c!="function"&&die(7);let f;if(isDraftable(a)){const d=enterScope(this),y=createProxy(a,void 0);let _=!0;try{f=s(y),_=!1}finally{_?revokeScope(d):leaveScope(d)}return usePatchesInScope(d,c),processResult(f,d)}else if(!a||typeof a!="object"){if(f=s(a),f===void 0&&(f=a),f===NOTHING&&(f=void 0),this.autoFreeze_&&freeze(f,!0),c){const d=[],y=[];getPlugin("Patches").generateReplacementPatches_(a,f,d,y),c(d,y)}return f}else die(1,a)},this.produceWithPatches=(a,s)=>{if(typeof a=="function")return(y,..._)=>this.produceWithPatches(y,S=>a(S,..._));let c,f;return[this.produce(a,s,(y,_)=>{c=y,f=_}),c,f]},typeof(o==null?void 0:o.autoFreeze)=="boolean"&&this.setAutoFreeze(o.autoFreeze),typeof(o==null?void 0:o.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(o.useStrictShallowCopy)}createDraft(o){isDraftable(o)||die(8),isDraft(o)&&(o=current(o));const a=enterScope(this),s=createProxy(o,void 0);return s[DRAFT_STATE].isManual_=!0,leaveScope(a),s}finishDraft(o,a){const s=o&&o[DRAFT_STATE];(!s||!s.isManual_)&&die(9);const{scope_:c}=s;return usePatchesInScope(c,a),processResult(void 0,c)}setAutoFreeze(o){this.autoFreeze_=o}setUseStrictShallowCopy(o){this.useStrictShallowCopy_=o}applyPatches(o,a){let s;for(s=a.length-1;s>=0;s--){const f=a[s];if(f.path.length===0&&f.op==="replace"){o=f.value;break}}s>-1&&(a=a.slice(s+1));const c=getPlugin("Patches").applyPatches_;return isDraft(o)?c(o,a):this.produce(o,f=>c(f,a))}};function createProxy(o,a){const s=isMap(o)?getPlugin("MapSet").proxyMap_(o,a):isSet(o)?getPlugin("MapSet").proxySet_(o,a):createProxyProxy(o,a);return(a?a.scope_:getCurrentScope()).drafts_.push(s),s}function current(o){return isDraft(o)||die(10,o),currentImpl(o)}function currentImpl(o){if(!isDraftable(o)||isFrozen(o))return o;const a=o[DRAFT_STATE];let s;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,s=shallowCopy(o,a.scope_.immer_.useStrictShallowCopy_)}else s=shallowCopy(o,!0);return each(s,(c,f)=>{set(s,c,currentImpl(f))}),a&&(a.finalized_=!1),s}var immer=new Immer2,produce=immer.produce;immer.produceWithPatches.bind(immer);immer.setAutoFreeze.bind(immer);immer.setUseStrictShallowCopy.bind(immer);immer.applyPatches.bind(immer);immer.createDraft.bind(immer);immer.finishDraft.bind(immer);function assertIsFunction(o,a=`expected a function, instead received ${typeof o}`){if(typeof o!="function")throw new TypeError(a)}function assertIsObject(o,a=`expected an object, instead received ${typeof o}`){if(typeof o!="object")throw new TypeError(a)}function assertIsArrayOfFunctions(o,a="expected all items to be functions, instead received the following types: "){if(!o.every(s=>typeof s=="function")){const s=o.map(c=>typeof c=="function"?`function ${c.name||"unnamed"}()`:typeof c).join(", ");throw new TypeError(`${a}[${s}]`)}}var ensureIsArray=o=>Array.isArray(o)?o:[o];function getDependencies(o){const a=Array.isArray(o[0])?o[0]:o;return assertIsArrayOfFunctions(a,"createSelector expects all input-selectors to be functions, but received the following types: "),a}function collectInputSelectorResults(o,a){const s=[],{length:c}=o;for(let f=0;f{s=createCacheNode(),y.resetResultsCount()},y.resultsCount=()=>d,y.resetResultsCount=()=>{d=0},y}function createSelectorCreator(o,...a){const s=typeof o=="function"?{memoize:o,memoizeOptions:a}:o,c=(...f)=>{let d=0,y=0,_,S={},b=f.pop();typeof b=="object"&&(S=b,b=f.pop()),assertIsFunction(b,`createSelector expects an output function after the inputs, but received: [${typeof b}]`);const $=se(se({},s),S),{memoize:P,memoizeOptions:T=[],argsMemoize:C=weakMapMemoize,argsMemoizeOptions:O=[],devModeChecks:A={}}=$,F=ensureIsArray(T),j=ensureIsArray(O),L=getDependencies(f),M=P(function(){return d++,b.apply(null,arguments)},...F),I=C(function(){y++;const z=collectInputSelectorResults(L,arguments);return _=M.apply(null,z),_},...j);return Object.assign(I,{resultFunc:b,memoizedResultFunc:M,dependencies:L,dependencyRecomputations:()=>y,resetDependencyRecomputations:()=>{y=0},lastResult:()=>_,recomputations:()=>d,resetRecomputations:()=>{d=0},memoize:P,argsMemoize:C})};return Object.assign(c,{withTypes:()=>c}),c}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign((o,a=createSelector)=>{assertIsObject(o,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof o}`);const s=Object.keys(o),c=s.map(d=>o[d]);return a(c,(...d)=>d.reduce((y,_,S)=>(y[s[S]]=_,y),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware(o){return({dispatch:s,getState:c})=>f=>d=>typeof d=="function"?d(s,c,o):f(d)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,createDraftSafeSelectorCreator=(...o)=>{const a=createSelectorCreator(...o);return(...s)=>{const c=a(...s),f=(d,...y)=>c(isDraft(d)?current(d):d,...y);return Object.assign(f,c),f}};createDraftSafeSelectorCreator(weakMapMemoize);var composeWithDevTools=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose:compose.apply(null,arguments)},hasMatchFunction=o=>o&&typeof o.match=="function";function createAction(o,a){function s(...c){if(a){let f=a(...c);if(!f)throw new Error(formatProdErrorMessage$1(0));return se(se({type:o,payload:f.payload},"meta"in f&&{meta:f.meta}),"error"in f&&{error:f.error})}return{type:o,payload:c[0]}}return s.toString=()=>`${o}`,s.type=o,s.match=c=>isAction(c)&&c.type===o,s}var Tuple=class ba extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,ba.prototype)}static get[Symbol.species](){return ba}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new ba(...a[0].concat(this)):new ba(...a.concat(this))}};function freezeDraftable(o){return isDraftable(o)?produce(o,()=>{}):o}function emplace(o,a,s){if(o.has(a)){let f=o.get(a);return s.update&&(f=s.update(f,a,o),o.set(a,f)),f}if(!s.insert)throw new Error(formatProdErrorMessage$1(10));const c=s.insert(a,o);return o.set(a,c),c}function isBoolean(o){return typeof o=="boolean"}var buildGetDefaultMiddleware=()=>function(a){const{thunk:s=!0,immutableCheck:c=!0,serializableCheck:f=!0,actionCreatorCheck:d=!0}=a!=null?a:{};let y=new Tuple;return s&&(isBoolean(s)?y.push(thunk):y.push(withExtraArgument(s.extraArgument))),y},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=o=>a=>{setTimeout(a,o)},rAF=typeof window!="undefined"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10),autoBatchEnhancer=(o={type:"raf"})=>a=>(...s)=>{const c=a(...s);let f=!0,d=!1,y=!1;const _=new Set,S=o.type==="tick"?queueMicrotask:o.type==="raf"?rAF:o.type==="callback"?o.queueNotification:createQueueWithTimer(o.timeout),b=()=>{y=!1,d&&(d=!1,_.forEach($=>$()))};return Object.assign({},c,{subscribe($){const P=()=>f&&$(),T=c.subscribe(P);return _.add($),()=>{T(),_.delete($)}},dispatch($){var P;try{return f=!((P=$==null?void 0:$.meta)!=null&&P[SHOULD_AUTOBATCH]),d=!f,d&&(y||(y=!0,S(b))),c.dispatch($)}finally{f=!0}}})},buildGetDefaultEnhancers=o=>function(s){const{autoBatch:c=!0}=s!=null?s:{};let f=new Tuple(o);return c&&f.push(autoBatchEnhancer(typeof c=="object"?c:void 0)),f},IS_PRODUCTION=!0;function configureStore(o){const a=buildGetDefaultMiddleware(),{reducer:s=void 0,middleware:c,devTools:f=!0,preloadedState:d=void 0,enhancers:y=void 0}=o||{};let _;if(typeof s=="function")_=s;else if(isPlainObject$2(s))_=combineReducers(s);else throw new Error(formatProdErrorMessage$1(1));let S;typeof c=="function"?S=c(a):S=a();let b=compose;f&&(b=composeWithDevTools(se({trace:!IS_PRODUCTION},typeof f=="object"&&f)));const $=applyMiddleware(...S),P=buildGetDefaultEnhancers($);let T=typeof y=="function"?y(P):P();const C=b(...T);return createStore$1(_,d,C)}function executeReducerBuilderCallback(o){const a={},s=[];let c;const f={addCase(d,y){const _=typeof d=="string"?d:d.type;if(!_)throw new Error(formatProdErrorMessage$1(28));if(_ in a)throw new Error(formatProdErrorMessage$1(29));return a[_]=y,f},addMatcher(d,y){return s.push({matcher:d,reducer:y}),f},addDefaultCase(d){return c=d,f}};return o(f),[a,s,c]}function isStateFunction(o){return typeof o=="function"}function createReducer(o,a){let[s,c,f]=executeReducerBuilderCallback(a),d;if(isStateFunction(o))d=()=>freezeDraftable(o());else{const _=freezeDraftable(o);d=()=>_}function y(_=d(),S){let b=[s[S.type],...c.filter(({matcher:$})=>$(S)).map(({reducer:$})=>$)];return b.filter($=>!!$).length===0&&(b=[f]),b.reduce(($,P)=>{if(P)if(isDraft($)){const C=P($,S);return C===void 0?$:C}else{if(isDraftable($))return produce($,T=>P(T,S));{const T=P($,S);if(T===void 0){if($===null)return $;throw new Error(formatProdErrorMessage$1(9))}return T}}return $},_)}return y.getInitialState=d,y}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=(o=21)=>{let a="",s=o;for(;s--;)a+=urlAlphabet[Math.random()*64|0];return a},matches=(o,a)=>hasMatchFunction(o)?o.match(a):o(a);function isAnyOf(...o){return a=>o.some(s=>matches(s,a))}var commonProperties=["name","message","stack","code"],RejectWithValue=class{constructor(o,a){tr(this,"_type");this.payload=o,this.meta=a}},FulfillWithMeta=class{constructor(o,a){tr(this,"_type");this.payload=o,this.meta=a}},miniSerializeError=o=>{if(typeof o=="object"&&o!==null){const a={};for(const s of commonProperties)typeof o[s]=="string"&&(a[s]=o[s]);return a}return{message:String(o)}},createAsyncThunk=(()=>{function o(a,s,c){const f=createAction(a+"/fulfilled",(S,b,$,P)=>({payload:S,meta:$e(se({},P||{}),{arg:$,requestId:b,requestStatus:"fulfilled"})})),d=createAction(a+"/pending",(S,b,$)=>({payload:void 0,meta:$e(se({},$||{}),{arg:b,requestId:S,requestStatus:"pending"})})),y=createAction(a+"/rejected",(S,b,$,P,T)=>({payload:P,error:(c&&c.serializeError||miniSerializeError)(S||"Rejected"),meta:$e(se({},T||{}),{arg:$,requestId:b,rejectedWithValue:!!P,requestStatus:"rejected",aborted:(S==null?void 0:S.name)==="AbortError",condition:(S==null?void 0:S.name)==="ConditionError"})}));function _(S){return(b,$,P)=>{const T=c!=null&&c.idGenerator?c.idGenerator(S):nanoid(),C=new AbortController;let O;function A(j){O=j,C.abort()}const F=function(){return xt(this,null,function*(){var M,I;let j;try{let U=(M=c==null?void 0:c.condition)==null?void 0:M.call(c,S,{getState:$,extra:P});if(isThenable(U)&&(U=yield U),U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const z=new Promise((H,G)=>C.signal.addEventListener("abort",()=>G({name:"AbortError",message:O||"Aborted"})));b(d(T,S,(I=c==null?void 0:c.getPendingMeta)==null?void 0:I.call(c,{requestId:T,arg:S},{getState:$,extra:P}))),j=yield Promise.race([z,Promise.resolve(s(S,{dispatch:b,getState:$,extra:P,requestId:T,signal:C.signal,abort:A,rejectWithValue:(H,G)=>new RejectWithValue(H,G),fulfillWithValue:(H,G)=>new FulfillWithMeta(H,G)})).then(H=>{if(H instanceof RejectWithValue)throw H;return H instanceof FulfillWithMeta?f(H.payload,T,S,H.meta):f(H,T,S)})])}catch(U){j=U instanceof RejectWithValue?y(null,T,S,U.payload,U.meta):y(U,T,S)}return c&&!c.dispatchConditionRejection&&y.match(j)&&j.meta.condition||b(j),j})}();return Object.assign(F,{abort:A,requestId:T,arg:S,unwrap(){return F.then(unwrapResult)}})}}return Object.assign(_,{pending:d,rejected:y,fulfilled:f,settled:isAnyOf(y,f),typePrefix:a})}return o.withTypes=()=>o,o})();function unwrapResult(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function isThenable(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(o,a){return`${o}/${a}`}function buildCreateSlice({creators:o}={}){var s;const a=(s=o==null?void 0:o.asyncThunk)==null?void 0:s[asyncThunkSymbol];return function(f){const{name:d,reducerPath:y=d}=f;if(!d)throw new Error(formatProdErrorMessage$1(11));const _=(typeof f.reducers=="function"?f.reducers(buildReducerCreators()):f.reducers)||{},S=Object.keys(_),b={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},$={addCase(F,j){const L=typeof F=="string"?F:F.type;if(!L)throw new Error(formatProdErrorMessage$1(12));if(L in b.sliceCaseReducersByType)throw new Error(formatProdErrorMessage$1(13));return b.sliceCaseReducersByType[L]=j,$},addMatcher(F,j){return b.sliceMatchers.push({matcher:F,reducer:j}),$},exposeAction(F,j){return b.actionCreators[F]=j,$},exposeCaseReducer(F,j){return b.sliceCaseReducersByName[F]=j,$}};S.forEach(F=>{const j=_[F],L={reducerName:F,type:getType(d,F),createNotation:typeof f.reducers=="function"};isAsyncThunkSliceReducerDefinition(j)?handleThunkCaseReducerDefinition(L,j,$,a):handleNormalReducerDefinition(L,j,$)});function P(){const[F={},j=[],L=void 0]=typeof f.extraReducers=="function"?executeReducerBuilderCallback(f.extraReducers):[f.extraReducers],M=se(se({},F),b.sliceCaseReducersByType);return createReducer(f.initialState,I=>{for(let U in M)I.addCase(U,M[U]);for(let U of b.sliceMatchers)I.addMatcher(U.matcher,U.reducer);for(let U of j)I.addMatcher(U.matcher,U.reducer);L&&I.addDefaultCase(L)})}const T=F=>F,C=new WeakMap;let O;const A={name:d,reducerPath:y,reducer(F,j){return O||(O=P()),O(F,j)},actions:b.actionCreators,caseReducers:b.sliceCaseReducersByName,getInitialState(){return O||(O=P()),O.getInitialState()},getSelectors(F=T){const j=emplace(C,this,{insert:()=>new WeakMap});return emplace(j,F,{insert:()=>{var M;const L={};for(const[I,U]of Object.entries((M=f.selectors)!=null?M:{}))L[I]=wrapSelector(this,U,F,this!==A);return L}})},selectSlice(F){let j=F[this.reducerPath];return typeof j=="undefined"&&this!==A&&(j=this.getInitialState()),j},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(F,M={}){var I=M,{reducerPath:j}=I,L=er(I,["reducerPath"]);const U=j!=null?j:this.reducerPath;return F.inject({reducerPath:U,reducer:this.reducer},L),$e(se({},this),{reducerPath:U})}};return A}}function wrapSelector(o,a,s,c){function f(d,...y){let _=s.call(o,d);return typeof _=="undefined"&&c&&(_=o.getInitialState()),a(_,...y)}return f.unwrapped=a,f}var createSlice=buildCreateSlice();function buildReducerCreators(){function o(a,s){return se({_reducerDefinitionType:"asyncThunk",payloadCreator:a},s)}return o.withTypes=()=>o,{reducer(a){return Object.assign({[a.name](...s){return a(...s)}}[a.name],{_reducerDefinitionType:"reducer"})},preparedReducer(a,s){return{_reducerDefinitionType:"reducerWithPrepare",prepare:a,reducer:s}},asyncThunk:o}}function handleNormalReducerDefinition({type:o,reducerName:a,createNotation:s},c,f){let d,y;if("reducer"in c){if(s&&!isCaseReducerWithPrepareDefinition(c))throw new Error(formatProdErrorMessage$1(17));d=c.reducer,y=c.prepare}else d=c;f.addCase(o,d).exposeCaseReducer(a,d).exposeAction(a,y?createAction(o,y):createAction(o))}function isAsyncThunkSliceReducerDefinition(o){return o._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(o){return o._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:o,reducerName:a},s,c,f){if(!f)throw new Error(formatProdErrorMessage$1(18));const{payloadCreator:d,fulfilled:y,pending:_,rejected:S,settled:b,options:$}=s,P=f(o,d,$);c.exposeAction(a,P),y&&c.addCase(P.fulfilled,y),_&&c.addCase(P.pending,_),S&&c.addCase(P.rejected,S),b&&c.addMatcher(P.settled,b),c.exposeCaseReducer(a,{fulfilled:y||noop$1,pending:_||noop$1,rejected:S||noop$1,settled:b||noop$1})}function noop$1(){}var alm="listenerMiddleware";createAction(`${alm}/add`);createAction(`${alm}/removeAll`);createAction(`${alm}/remove`);function formatProdErrorMessage$1(o){return`Minified Redux Toolkit error #${o}; visit https://redux-toolkit.js.org/Errors?code=${o} for the full message or use the non-minified dev environment for full errors. `}var KEY_PREFIX="persist:",FLUSH="persist/FLUSH",REHYDRATE="persist/REHYDRATE",PAUSE="persist/PAUSE",PERSIST="persist/PERSIST",PURGE="persist/PURGE",REGISTER="persist/REGISTER",DEFAULT_VERSION=-1;function _typeof$1(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(s){return typeof s}:_typeof$1=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$1(o)}function ownKeys$2(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),s.push.apply(s,c)}return s}function _objectSpread$2(o){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}function _objectWithoutPropertiesLoose(o,a){if(o==null)return{};var s={},c=Object.keys(o),f,d;for(d=0;d=0)&&(s[f]=o[f]);return s}var DEFAULT_TIMEOUT=5e3;function persistReducer(o,a){var s=o.version!==void 0?o.version:DEFAULT_VERSION;o.debug;var c=o.stateReconciler===void 0?autoMergeLevel1:o.stateReconciler,f=o.getStoredState||getStoredState,d=o.timeout!==void 0?o.timeout:DEFAULT_TIMEOUT,y=null,_=!1,S=!0,b=function(P){return P._persist.rehydrated&&y&&!S&&y.update(P),P};return function($,P){var T=$||{},C=T._persist,O=_objectWithoutProperties(T,["_persist"]),A=O;if(P.type===PERSIST){var F=!1,j=function(G,X){F||(P.rehydrate(o.key,G,X),F=!0)};if(d&&setTimeout(function(){!F&&j(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(o.key,'"')))},d),S=!1,y||(y=createPersistoid(o)),C)return _objectSpread$1({},a(A,P),{_persist:C});if(typeof P.rehydrate!="function"||typeof P.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return P.register(o.key),f(o).then(function(H){var G=o.migrate||function(X,W){return Promise.resolve(X)};G(H,s).then(function(X){j(X)},function(X){j(void 0,X)})},function(H){j(void 0,H)}),_objectSpread$1({},a(A,P),{_persist:{version:s,rehydrated:!1}})}else{if(P.type===PURGE)return _=!0,P.result(purgeStoredState(o)),_objectSpread$1({},a(A,P),{_persist:C});if(P.type===FLUSH)return P.result(y&&y.flush()),_objectSpread$1({},a(A,P),{_persist:C});if(P.type===PAUSE)S=!0;else if(P.type===REHYDRATE){if(_)return _objectSpread$1({},A,{_persist:_objectSpread$1({},C,{rehydrated:!0})});if(P.key===o.key){var L=a(A,P),M=P.payload,I=c!==!1&&M!==void 0?c(M,$,L,o):L,U=_objectSpread$1({},I,{_persist:_objectSpread$1({},C,{rehydrated:!0})});return b(U)}}}if(!C)return a($,P);var z=a(A,P);return z===A?$:b(_objectSpread$1({},z,{_persist:C}))}}function formatProdErrorMessage(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var $$observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(o){if(typeof o!="object"||o===null)return!1;for(var a=o;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(o)===a}function createStore(o,a,s){var c;if(typeof a=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage(0));if(typeof a=="function"&&typeof s=="undefined"&&(s=a,a=void 0),typeof s!="undefined"){if(typeof s!="function")throw new Error(formatProdErrorMessage(1));return s(createStore)(o,a)}if(typeof o!="function")throw new Error(formatProdErrorMessage(2));var f=o,d=a,y=[],_=y,S=!1;function b(){_===y&&(_=y.slice())}function $(){if(S)throw new Error(formatProdErrorMessage(3));return d}function P(A){if(typeof A!="function")throw new Error(formatProdErrorMessage(4));if(S)throw new Error(formatProdErrorMessage(5));var F=!0;return b(),_.push(A),function(){if(F){if(S)throw new Error(formatProdErrorMessage(6));F=!1,b();var L=_.indexOf(A);_.splice(L,1),y=null}}}function T(A){if(!isPlainObject(A))throw new Error(formatProdErrorMessage(7));if(typeof A.type=="undefined")throw new Error(formatProdErrorMessage(8));if(S)throw new Error(formatProdErrorMessage(9));try{S=!0,d=f(d,A)}finally{S=!1}for(var F=y=_,j=0;j0&&arguments[0]!==void 0?arguments[0]:initialState$2,s=arguments.length>1?arguments[1]:void 0;switch(s.type){case REGISTER:return _objectSpread({},a,{registry:[].concat(_toConsumableArray(a.registry),[s.key])});case REHYDRATE:var c=a.registry.indexOf(s.key),f=_toConsumableArray(a.registry);return f.splice(c,1),_objectSpread({},a,{registry:f,bootstrapped:f.length===0});default:return a}};function persistStore(o,a,s){var c=s||!1,f=createStore(persistorReducer,initialState$2,a&&a.enhancer?a.enhancer:void 0),d=function(b){f.dispatch({type:REGISTER,key:b})},y=function(b,$,P){var T={type:REHYDRATE,payload:$,err:P,key:b};o.dispatch(T),f.dispatch(T),c&&_.getState().bootstrapped&&(c(),c=!1)},_=_objectSpread({},f,{purge:function(){var b=[];return o.dispatch({type:PURGE,result:function(P){b.push(P)}}),Promise.all(b)},flush:function(){var b=[];return o.dispatch({type:FLUSH,result:function(P){b.push(P)}}),Promise.all(b)},pause:function(){o.dispatch({type:PAUSE})},persist:function(){o.dispatch({type:PERSIST,register:d,rehydrate:y})}});return a&&a.manualPersist||_.persist(),_}var createWebStorage$1={},getStorage$1={};getStorage$1.__esModule=!0;getStorage$1.default=getStorage;function _typeof(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(s){return typeof s}:_typeof=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof(o)}function noop(){}var noopStorage={getItem:noop,setItem:noop,removeItem:noop};function hasStorage(o){if((typeof self=="undefined"?"undefined":_typeof(self))!=="object"||!(o in self))return!1;try{var a=self[o],s="redux-persist ".concat(o," test");a.setItem(s,"test"),a.getItem(s),a.removeItem(s)}catch(c){return!1}return!0}function getStorage(o){var a="".concat(o,"Storage");return hasStorage(a)?self[a]:noopStorage}createWebStorage$1.__esModule=!0;createWebStorage$1.default=createWebStorage;var _getStorage=_interopRequireDefault$1(getStorage$1);function _interopRequireDefault$1(o){return o&&o.__esModule?o:{default:o}}function createWebStorage(o){var a=(0,_getStorage.default)(o);return{getItem:function(c){return new Promise(function(f,d){f(a.getItem(c))})},setItem:function(c,f){return new Promise(function(d,y){d(a.setItem(c,f))})},removeItem:function(c){return new Promise(function(f,d){f(a.removeItem(c))})}}}var default_1=void 0,_createWebStorage=_interopRequireDefault(createWebStorage$1);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}var _default=(0,_createWebStorage.default)("local");default_1=_default;const initialState$1={menuList:[],isCollapse:!1},menu=createSlice({name:"menu",initialState:initialState$1,reducers:{setMenuList:(o,a)=>{o.menuList=a.payload},updateCollapse:(o,a)=>{o.isCollapse=a.payload}}}),{setMenuList,updateCollapse}=menu.actions,menuSlice=menu.reducer,initialState={visitedTags:[],cachedTags:[]},createAppAsyncThunk=createAsyncThunk.withTypes(),tags=createSlice({name:"tags",initialState,reducers:{addVisitedTags:(o,a)=>{const s=o.visitedTags.findIndex(c=>c.path===a.payload.path);s<0?o.visitedTags.push(a.payload):o.visitedTags[s]=se(se({},o.visitedTags[s]),a.payload)},updateVisitedTags:(o,a)=>{o.visitedTags=a.payload},closeTagsByType:(o,a)=>{let s=[];const{type:c,path:f}=a.payload,{visitedTags:d}=o,y=d.findIndex(S=>S.fullPath===f),_=d.filter(S=>{var b;return(b=S==null?void 0:S.meta)==null?void 0:b.affix});switch(c){case"left":s=d.slice(y);break;case"right":s=d.slice(0,y+1);break;case"other":s=d.filter(S=>S.fullPath===f);break}o.visitedTags=_.concat(s.filter(S=>{var b;return!((b=S.meta)!=null&&b.affix)}))}}}),closeTagByKey=createAppAsyncThunk("tags/closeTagByKey",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,f=c.findIndex(y=>y.fullPath===o),d=c.filter(y=>y.fullPath!==o);return s(updateVisitedTags(d)),Promise.resolve({tagIndex:f,tagsList:d})}),closeAllTags=createAppAsyncThunk("tags/closeAllTags",(o,{getState:a,dispatch:s})=>{const{visitedTags:c}=a().tags,f=c.filter(d=>{var y;return(y=d==null?void 0:d.meta)==null?void 0:y.affix});return s(updateVisitedTags(f)),Promise.resolve(f)}),{addVisitedTags,updateVisitedTags,closeTagsByType}=tags.actions,tagsSlice=tags.reducer,persistConfig={key:"redux-persist",storage:default_1},store=configureStore({reducer:{menu:persistReducer(persistConfig,menuSlice),tags:persistReducer(persistConfig,tagsSlice)},middleware:o=>o({serializableCheck:!1}),devTools:!0}),persistor=persistStore(store),useAppDispatch=useDispatch,useAppSelector=useSelector,useStyles$7=createStyles(({token:o},a)=>{const{active:s}=a;return{"compo_tag-item":{display:"inline-block",verticalAlign:"top",height:"24px",margin:"0 2px",padding:"0 8px",borderRadius:"3px",lineHeight:"24px",color:s?"#fff":"#555",background:s?o.colorPrimary:"#fff",overflow:"hidden",cursor:"pointer","&__dot":{display:"inline-block",verticalAlign:"baseline",width:"8px",height:"8px",marginRight:"6px",borderRadius:"50%",background:s?"#fff":"#dcdee0"},"&__name":{fontSize:"12px"}},verticalAlign:"baseline",svg:{width:"8px",height:"8px"},active:{border:"none",color:"#fff",background:o.colorPrimary,".anticon-close":{color:"#fff"}}}}),TagItem=({name:o,fixed:a,active:s=!1,closeTag:c,onClick:f})=>{const{styles:d}=useStyles$7({active:s});return jsxRuntimeExports.jsxs(Tag$1,{className:classNames(d["compo_tag-item"],{[d.active]:s}),closable:!a,onClose:c,onClick:f,children:[jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__dot`}),jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__name`,children:o})]})},useStyles$6=createStyles(()=>({layout_tags:{zIndex:"299",display:"flex",justifyContent:"space-between",height:"32px",padding:"4px 12px",lineHeight:"32px","&__main":{position:"relative",width:"calc(100% - 116px)",height:"24px",overflow:"hidden","&-body":{position:"absolute",height:"100%",padding:"0 2px",overflow:"visible",whiteSpace:"nowrap",transition:"left .5s ease"}},"&__btn-space":{marginLeft:"4px"}}})),LayoutTags=()=>{const{t:o}=useTranslation(),{styles:a}=useStyles$6(),s=[{key:"left",label:o("关闭左侧")},{key:"right",label:o("关闭右侧")},{key:"other",label:o("关闭其它")},{key:"all",label:o("关闭所有")}],c=({key:z})=>{z==="all"?P(closeAllTags()).then(({payload:H})=>{const G=H.slice(-1)[0];T!==(G==null?void 0:G.fullPath)&&b(G==null?void 0:G.fullPath)}):P(closeTagsByType({type:z,path:T}))},f=reactExports.useRef(null),d=reactExports.useRef(null),[y,_]=reactExports.useState(0),{pathname:S}=useLocation(),b=useNavigate(),$=useAppSelector(z=>z.tags.visitedTags),P=useAppDispatch(),[T,C]=reactExports.useState(S);reactExports.useEffect(()=>{O(routeList).forEach(H=>{P(addVisitedTags(H))})},[]),reactExports.useEffect(()=>{const z=searchRoute(S,routeList);z&&P(addVisitedTags(z)),C(S)},[S]),reactExports.useEffect(()=>{var G;const z=(G=d.current)==null?void 0:G.childNodes,H=Array.from(z).find(X=>X.dataset.path===T);A(H)},[T]);const O=(z,H="/")=>{const G=[],X=W=>{var K;if((K=W.meta)!=null&&K.affix){const ie=W.path.startsWith("/")?W.path:H+W.path;G.push($e(se({},W),{path:ie}))}W.children&&W.children.length&&W.children.forEach(ie=>X(ie))};return z.forEach(W=>X(W)),G},A=z=>{var K,ie,ee,de,Z,Q,J,ne,fe,le,ae;let H=0;const G=4,X=(K=f.current)==null?void 0:K.offsetWidth;((ie=d.current)==null?void 0:ie.offsetWidth)-y&&((Q=z==null?void 0:z.offsetLeft)!=null?Q:0)+((J=z==null?void 0:z.offsetWidth)!=null?J:0)<-y+X?H=Math.min(0,X-((ne=z==null?void 0:z.offsetWidth)!=null?ne:0)-((fe=z==null?void 0:z.offsetLeft)!=null?fe:0)-G):H=-(((le=z==null?void 0:z.offsetLeft)!=null?le:0)-(X-G-((ae=z==null?void 0:z.offsetWidth)!=null?ae:0))),_(H)},F=z=>{var W,K;let H=0;const G=(W=f.current)==null?void 0:W.offsetWidth,X=(K=d.current)==null?void 0:K.offsetWidth;z>0?H=Math.min(0,y+z):G=-(X-G)&&(H=Math.max(y+z,G-X)):H=0,_(H)},j=z=>{const{type:H}=z;let G=0;H==="wheel"&&(G=z.deltaY?z.deltaY*2:-(z.detail||0)*2),F(G)},L=z=>{P(closeTagByKey(z)).then(({payload:H})=>{let G={};const{tagIndex:X,tagsList:W}=H,K=W.length;z===T&&(X<=K-1?G=W[X]:G=W[K-1],b(G==null?void 0:G.fullPath))})},M=z=>{C(z),b(z)};function I(){return new Date().getTime().toString()}const U=()=>{$.findIndex(H=>H.fullPath===T)>=0&&b(T,{replace:!0,state:{key:I()}})};return jsxRuntimeExports.jsxs("div",{className:a.layout_tags,children:[jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(LeftOutlined,{}),size:"small",onClick:()=>F(200)}),jsxRuntimeExports.jsx("div",{ref:f,className:`${a.layout_tags}__main`,onWheel:j,children:jsxRuntimeExports.jsx("div",{ref:d,className:`${a.layout_tags}__main-body`,style:{left:`${y}px`},children:$.map(z=>{var H,G;return jsxRuntimeExports.jsx("span",{"data-path":z.fullPath,children:jsxRuntimeExports.jsx(TagItem,{name:o((H=z.meta)==null?void 0:H.title),active:T===z.fullPath,fixed:(G=z.meta)==null?void 0:G.affix,onClick:()=>M(z.fullPath),closeTag:()=>L(z.fullPath)},z.key)},z.fullPath)})})}),jsxRuntimeExports.jsx(Button,{className:`${a.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(RightOutlined,{}),size:"small",onClick:()=>F(-200)}),jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(RedoOutlined,{}),size:"small",onClick:()=>U()}),jsxRuntimeExports.jsx(Dropdown,{menu:{items:s,onClick:c},placement:"bottomLeft",children:jsxRuntimeExports.jsx(Button,{className:classNames(`${a.layout_tags}__btn`,`${a.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(CloseOutlined,{}),size:"small"})})]})};function LayoutBreadcrumb(o){const{t:a,i18n:s}=useTranslation(),[c,f]=reactExports.useState([]),{pathname:d}=useLocation(),y=useAppSelector(_=>_.menu.menuList);return reactExports.useEffect(()=>{const S=(matchRoutes(y,d)||[]).map(b=>{const{name:$,icon:P=""}=b==null?void 0:b.route;return{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[P&&jsxRuntimeExports.jsx(SvgIcon,{name:P,style:{marginRight:8}}),jsxRuntimeExports.jsx("span",{children:a($)})]})}});f(S)},[d,s.language]),jsxRuntimeExports.jsx("div",{className:"flex-center-v",style:{padding:"0 16px"},children:jsxRuntimeExports.jsx(Breadcrumb,{items:c})})}const useStyles$5=createStyles(()=>({"compo_fold-trigger":{display:"flex",alignItems:"center",cursor:"pointer"},unfold:{svg:{transform:"scaleX(-1)",transition:"transform 0.2s"}}}));function FoldTrigger(){const{styles:o,cx:a}=useStyles$5(),s=useSettings(),{setSettings:c}=useSettingActions();function f(){c($e(se({},s),{unfold:!s.unfold}))}return jsxRuntimeExports.jsx("span",{className:a(o["compo_fold-trigger"],{[o.unfold]:!s.unfold}),onClick:f,children:jsxRuntimeExports.jsx(SvgIcon,{name:"unfold",size:20})})}const useStyles$4=createStyles(({token:o})=>({"layout-header":{flexDirection:"column",height:"auto",background:o.colorBgBase,padding:0,boxShadow:o.boxShadowTertiary}})),LayoutHeader=o=>{const{Header:a}=Layout,{styles:s}=useStyles$4(),{hasCrumbs:c,hasTabs:f}=useGlobalStore();return jsxRuntimeExports.jsxs(a,{className:classNames("flex-between-h",s["layout-header"]),children:[jsxRuntimeExports.jsxs("div",{className:"flex-between-h",style:{padding:"0 12px"},children:[jsxRuntimeExports.jsxs("div",{className:"flex-center-v",children:[jsxRuntimeExports.jsx(FoldTrigger,{}),c&&jsxRuntimeExports.jsx(LayoutBreadcrumb,{})]}),jsxRuntimeExports.jsx(LayoutFeature,{})]}),f?jsxRuntimeExports.jsx(LayoutTags,{}):null]})},useStyles$3=createStyles(({token:o})=>({layout_wrapper:{display:"flex",width:"100%",height:"100vh",overflowX:"hidden",background:o.colorBgContainer,".ant-layout-content":{height:"calc(100vh - 48px)",boxSizing:"border-box",flex:"1",padding:o.paddingMD,overflowX:"hidden"},".ant-layout-sider":{height:"calc(100vh)",borderInlineEnd:"1px solid rgba(5, 5, 5, 0.06)",marginInlineEnd:"-1px"},".ant-layout":{background:o.colorBgContainer}}})),useStyles$2=createStyles(()=>({anticon:{display:"inline-flex",alignItems:"center",verticalAlign:"middle",cursor:"pointer",svg:{display:"inline-block"}}}));function IconifyIcon(c){var f=c,{icon:o,size:a}=f,s=er(f,["icon","size"]);const{styles:d}=useStyles$2();return jsxRuntimeExports.jsx(Icon,$e(se({icon:o},s),{className:d.anticon,width:a}))}const getOpenKeys=o=>{let a="";const s=[];return o.split("/").forEach(c=>{c&&(a+=`/${c}`,s.push(a))}),s.slice(0,-1)},getItem=(o,a,s,c,f)=>({label:o,key:a,icon:s,children:c,type:f}),LayoutMenu=o=>{const{pathname:a}=useLocation(),{setMenuList:s}=o,[c,f]=reactExports.useState(!1),[d,y]=reactExports.useState([]),[_,S]=reactExports.useState([]),[b,$]=reactExports.useState([a]),{t:P,i18n:T}=useTranslation();reactExports.useEffect(()=>{$([a]),S(getOpenKeys(a))},[a]);const C=(M,I)=>M?M.startsWith("gbeata-")?jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(IconifyIcon,{icon:M.replace("gbeata-",""),size:I||16})}):jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(SvgIcon,{name:M,size:I||16})}):null,O=(M,I=[])=>(M.forEach(U=>{var z;if(!((z=U==null?void 0:U.children)!=null&&z.length))return I.push(getItem(P(U.name),U.path,C(U.icon,U.iconSize)));I.push(getItem(P(U.name),U.path,C(U.icon,U.iconSize),O(U.children)))}),I),A=()=>xt(void 0,null,function*(){f(!0);try{const M=yield getAsyncMenus();y(O(M)),s(M)}finally{f(!1)}});reactExports.useEffect(()=>{A()},[T.language]);const F=M=>{if(M.length===0||M.length===1)return S(M);const I=M[M.length-1];if(I.includes(M[0]))return S(M);S([I])},j=useNavigate(),L=({key:M})=>{j(M)};return jsxRuntimeExports.jsx("div",{className:"layout_menu",children:jsxRuntimeExports.jsx(Spin,{spinning:c,tip:"Loading...",children:jsxRuntimeExports.jsx(Menu,{style:{border:"none"},mode:"inline",triggerSubMenuAction:"click",inlineIndent:20,subMenuOpenDelay:.2,openKeys:_,selectedKeys:b,items:d,onClick:L,onOpenChange:F})})})},mapStateToProps=o=>o.menu,mapDispatchToProps={setMenuList},LayoutMenu$1=connect(mapStateToProps,mapDispatchToProps)(LayoutMenu),BasicLayout=o=>{const{state:a}=useLocation(),{unfold:s}=useSettings(),{key:c="key"}=a||{};useTitle();const{Sider:f,Content:d}=Layout,{styles:y}=useStyles$3();return jsxRuntimeExports.jsxs(Layout,{className:y.layout_wrapper,children:[jsxRuntimeExports.jsxs(f,{width:240,trigger:null,theme:"light",collapsed:s,className:"ant-layout-sider",children:[jsxRuntimeExports.jsx(AppLogo,{}),jsxRuntimeExports.jsx(LayoutMenu$1,{})]}),jsxRuntimeExports.jsxs(Layout,{children:[jsxRuntimeExports.jsx(LayoutHeader,{}),jsxRuntimeExports.jsx(d,{children:jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsx(Outlet,{},c)})})]})]})},GuardRoute=({children:o})=>{const a=["/","/home","/login"],{pathname:s}=useLocation(),{token:c}=useUserToken();return c?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o}):a.includes(s)?jsxRuntimeExports.jsx(Navigate,{to:"/login",replace:!0}):jsxRuntimeExports.jsx(Navigate,{to:`/login?redirect=${s}`,replace:!0})},LayoutGuard=()=>jsxRuntimeExports.jsx(GuardRoute,{children:jsxRuntimeExports.jsx(BasicLayout,{})}),CompoRoute={path:"/compo",name:"Compo",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"组件",icon:"compo",orderNo:6},children:[{path:"image-upload",name:"ImageUpload",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../image-upload-acb1eff1.js"),["assets/image-upload-acb1eff1.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"图片上传",key:"imageUpload"}},{path:"drag",name:"Drag",meta:{title:"拖拽"},children:[{path:"drag-list",name:"DragList",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-list-930fb960.js"),["assets/drag-list-930fb960.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"列表拖拽",key:"dragList"}},{path:"drag-resize",name:"DragResize",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-resize-ce500749.js"),["assets/drag-resize-ce500749.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"组件拖拽",key:"dragResize"}}]},{path:"transfer",name:"Transfer",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-dcf004a0.js"),["assets/index-dcf004a0.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"穿梭框"}},{path:"count-up",name:"CountUp",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../count-up-94605701.js"),["assets/count-up-94605701.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-646dffa4.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"数字滚动",key:"countUp"}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:CompoRoute},Symbol.toStringTag,{value:"Module"}));var ExceptionEnum=(o=>(o[o.PAGE_NOT_ACCESS=403]="PAGE_NOT_ACCESS",o[o.PAGE_NOT_FOUND=404]="PAGE_NOT_FOUND",o[o.SERVER_ERROR=500]="SERVER_ERROR",o))(ExceptionEnum||{});const ExceptionRoute={path:"/exception",name:"ExceptionPage",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"异常页面",icon:"bug",orderNo:11},children:[{path:"page-403",name:"Page403",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"403页面",key:"page403"},loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!0})},{path:"page-404",name:"Page404",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"404页面",key:"page404"},loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!0})},{path:"page-500",name:"Page500",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"500页面",key:"page500"},loader:()=>({status:ExceptionEnum.SERVER_ERROR,withCard:!0})}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:ExceptionRoute},Symbol.toStringTag,{value:"Module"})),FormRoute={path:"/form",name:"Form",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"表单",icon:"form",orderNo:3},children:[{path:"basic-form",name:"BasicForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-67537c9a.js"),["assets/index-67537c9a.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"基础表单",key:"basicForm"}},{path:"search-form",name:"SearchForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-8e157b2c.js"),["assets/index-8e157b2c.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-c5e45b02.js","assets/websiteSetting-168278cd.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"查询表单",key:"searchForm"}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormRoute},Symbol.toStringTag,{value:"Module"})),HomePage=lazy$2(()=>__vitePreload(()=>import("../index-fe7bf50c.js"),["assets/index-fe7bf50c.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-6d20d62b.js","assets/Translatex-83019934.js","assets/index-646dffa4.js","assets/index-e22d6806.js","assets/index-c5e45b02.js"])),HomeRoute={path:"/home",element:jsxRuntimeExports.jsx(LayoutGuard,{}),loader:()=>null,meta:{title:"首页",icon:"home",affix:!0,orderNo:1,hideChildrenInMenu:!0},children:[{path:"",element:LazyLoad(HomePage),meta:{title:"首页",key:"home",icon:"home",orderNo:1,hideMenu:!0}}]},__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:HomeRoute},Symbol.toStringTag,{value:"Module"})),UserRoute$1={path:"/system",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:t("系统设置"),icon:"gbeata-ant-design:setting-outlined",orderNo:13,iconSize:20},children:[{path:"role",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-a2f2c8dc.js"),["assets/index-a2f2c8dc.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/api-3af9db57.js","assets/index-e22d6806.js","assets/index-c5e45b02.js"]))),meta:{title:t("角色管理"),key:"role"}},{path:"user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-bf85aa66.js"),["assets/index-bf85aa66.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/api-3af9db57.js","assets/index-e22d6806.js","assets/index-c5e45b02.js"]))),meta:{title:t("用户管理"),key:"user"}}]},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute$1},Symbol.toStringTag,{value:"Module"})),UserRoute={path:"/user",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"用户管理",icon:"ic_user",orderNo:2,iconSize:20},children:[{path:"profile",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-6578acfa.js"),["assets/index-6578acfa.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/Translatex-83019934.js","assets/index-6d20d62b.js"]))),meta:{title:"个人中心",key:"profile"}},{path:"user-list",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-e62f32ec.js"),["assets/index-e62f32ec.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/index-6d20d62b.js","assets/Translatex-83019934.js"]))),meta:{title:"用户列表",key:"userList"}},{path:"add-user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-8c013014.js"),["assets/index-8c013014.js","assets/antd-66264537.js","assets/react-f288da4a.js","assets/Translatex-83019934.js"]))),meta:{title:"添加用户",key:"addUser"}}]},__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute},Symbol.toStringTag,{value:"Module"})),TOKEN_KEY="TOKEN_KEY",APP_LOCAL_CACHE_KEY="APP_LOCAL_CACHE_KEY",APP_SESSION_CACHE_KEY="APP_SESSION_CACHE_KEY";var CacheTypeEnum=(o=>(o[o.SESSION=0]="SESSION",o[o.LOCAL=1]="LOCAL",o))(CacheTypeEnum||{}),MenuTypeEnum=(o=>(o.SIDER_MENU="sider-menu",o.HEADER_MENU="header-menu",o.HYBRID_MENU="hybrid-menu",o))(MenuTypeEnum||{}),MenuModeEnum=(o=>(o.VERTICAL="vertical",o.HORIZONTAL="horizontal",o.INLINE="inline",o))(MenuModeEnum||{}),MenuFoldBtnEnum=(o=>(o.NONE="none",o.HEADER="header",o.SIDER="sider",o))(MenuFoldBtnEnum||{});const appSetting={themeColor:"#1890ff",permissionCacheType:CacheTypeEnum.LOCAL,headerSetting:{showBreadCrumb:!0,showTags:!0,showSearch:!0,showFullScreen:!0,showLocale:!1,showDoc:!1,showGithub:!0},menuSetting:{menuType:MenuTypeEnum.SIDER_MENU,menuMode:MenuModeEnum.INLINE,menuTheme:ThemeEnum.DARK,menuSplit:!1,menuCanDrag:!1,menuFold:!1,menuFoldBtn:MenuFoldBtnEnum.HEADER,menuFoldShowTitle:!1,menuWidth:210,menuFixed:!1,menuHidden:!1},transitionSetting:{openNProgress:!1,openPageLoading:!1,openTransition:!0,basicTransition:PageTransitionEnum.FADE},permissionMode:PermissionModeEnum.MAPPING,tagsCached:!1,openKeepAlive:!0,lockScreenTime:0,showFooter:!1,colorWeak:!1,grayMode:!1};function isDevMode(){return!1}const DEFAULT_CACHE_TIME=60*60*24*7,cacheCipher={key:"_11111000001111@",iv:"@11111000001111_"},enableStorageEncryption=!isDevMode();var aes={exports:{}},core={exports:{}},hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(o,a){(function(s,c){o.exports=c()})(commonjsGlobal,function(){var s=s||function(c,f){var d;if(typeof window!="undefined"&&window.crypto&&(d=window.crypto),typeof self!="undefined"&&self.crypto&&(d=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(d=globalThis.crypto),!d&&typeof window!="undefined"&&window.msCrypto&&(d=window.msCrypto),!d&&typeof commonjsGlobal!="undefined"&&commonjsGlobal.crypto&&(d=commonjsGlobal.crypto),!d&&typeof commonjsRequire=="function")try{d=require$$0}catch(L){}var y=function(){if(d){if(typeof d.getRandomValues=="function")try{return d.getRandomValues(new Uint32Array(1))[0]}catch(L){}if(typeof d.randomBytes=="function")try{return d.randomBytes(4).readInt32LE()}catch(L){}}throw new Error("Native crypto module could not be used to get secure random number.")},_=Object.create||function(){function L(){}return function(M){var I;return L.prototype=M,I=new L,L.prototype=null,I}}(),S={},b=S.lib={},$=b.Base=function(){return{extend:function(L){var M=_(this);return L&&M.mixIn(L),(!M.hasOwnProperty("init")||this.init===M.init)&&(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var L=this.extend();return L.init.apply(L,arguments),L},init:function(){},mixIn:function(L){for(var M in L)L.hasOwnProperty(M)&&(this[M]=L[M]);L.hasOwnProperty("toString")&&(this.toString=L.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),P=b.WordArray=$.extend({init:function(L,M){L=this.words=L||[],M!=f?this.sigBytes=M:this.sigBytes=L.length*4},toString:function(L){return(L||C).stringify(this)},concat:function(L){var M=this.words,I=L.words,U=this.sigBytes,z=L.sigBytes;if(this.clamp(),U%4)for(var H=0;H>>2]>>>24-H%4*8&255;M[U+H>>>2]|=G<<24-(U+H)%4*8}else for(var X=0;X>>2]=I[X>>>2];return this.sigBytes+=z,this},clamp:function(){var L=this.words,M=this.sigBytes;L[M>>>2]&=4294967295<<32-M%4*8,L.length=c.ceil(M/4)},clone:function(){var L=$.clone.call(this);return L.words=this.words.slice(0),L},random:function(L){for(var M=[],I=0;I>>2]>>>24-z%4*8&255;U.push((H>>>4).toString(16)),U.push((H&15).toString(16))}return U.join("")},parse:function(L){for(var M=L.length,I=[],U=0;U>>3]|=parseInt(L.substr(U,2),16)<<24-U%8*4;return new P.init(I,M/2)}},O=T.Latin1={stringify:function(L){for(var M=L.words,I=L.sigBytes,U=[],z=0;z>>2]>>>24-z%4*8&255;U.push(String.fromCharCode(H))}return U.join("")},parse:function(L){for(var M=L.length,I=[],U=0;U>>2]|=(L.charCodeAt(U)&255)<<24-U%4*8;return new P.init(I,M)}},A=T.Utf8={stringify:function(L){try{return decodeURIComponent(escape(O.stringify(L)))}catch(M){throw new Error("Malformed UTF-8 data")}},parse:function(L){return O.parse(unescape(encodeURIComponent(L)))}},F=b.BufferedBlockAlgorithm=$.extend({reset:function(){this._data=new P.init,this._nDataBytes=0},_append:function(L){typeof L=="string"&&(L=A.parse(L)),this._data.concat(L),this._nDataBytes+=L.sigBytes},_process:function(L){var M,I=this._data,U=I.words,z=I.sigBytes,H=this.blockSize,G=H*4,X=z/G;L?X=c.ceil(X):X=c.max((X|0)-this._minBufferSize,0);var W=X*H,K=c.min(W*4,z);if(W){for(var ie=0;ie>>2]>>>24-C%4*8&255,A=b[C+1>>>2]>>>24-(C+1)%4*8&255,F=b[C+2>>>2]>>>24-(C+2)%4*8&255,j=O<<16|A<<8|F,L=0;L<4&&C+L*.75<$;L++)T.push(P.charAt(j>>>6*(3-L)&63));var M=P.charAt(64);if(M)for(;T.length%4;)T.push(M);return T.join("")},parse:function(S){var b=S.length,$=this._map,P=this._reverseMap;if(!P){P=this._reverseMap=[];for(var T=0;T<$.length;T++)P[$.charCodeAt(T)]=T}var C=$.charAt(64);if(C){var O=S.indexOf(C);O!==-1&&(b=O)}return _(S,b,P)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function _(S,b,$){for(var P=[],T=0,C=0;C>>6-C%4*2,F=O|A;P[T>>>2]|=F<<24-T%4*8,T++}return d.create(P,T)}}(),s.enc.Base64})}(encBase64)),encBase64.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return function(c){var f=s,d=f.lib,y=d.WordArray,_=d.Hasher,S=f.algo,b=[];(function(){for(var A=0;A<64;A++)b[A]=c.abs(c.sin(A+1))*4294967296|0})();var $=S.MD5=_.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(A,F){for(var j=0;j<16;j++){var L=F+j,M=A[L];A[L]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var I=this._hash.words,U=A[F+0],z=A[F+1],H=A[F+2],G=A[F+3],X=A[F+4],W=A[F+5],K=A[F+6],ie=A[F+7],ee=A[F+8],de=A[F+9],Z=A[F+10],Q=A[F+11],J=A[F+12],ne=A[F+13],fe=A[F+14],le=A[F+15],ae=I[0],ce=I[1],ge=I[2],pe=I[3];ae=P(ae,ce,ge,pe,U,7,b[0]),pe=P(pe,ae,ce,ge,z,12,b[1]),ge=P(ge,pe,ae,ce,H,17,b[2]),ce=P(ce,ge,pe,ae,G,22,b[3]),ae=P(ae,ce,ge,pe,X,7,b[4]),pe=P(pe,ae,ce,ge,W,12,b[5]),ge=P(ge,pe,ae,ce,K,17,b[6]),ce=P(ce,ge,pe,ae,ie,22,b[7]),ae=P(ae,ce,ge,pe,ee,7,b[8]),pe=P(pe,ae,ce,ge,de,12,b[9]),ge=P(ge,pe,ae,ce,Z,17,b[10]),ce=P(ce,ge,pe,ae,Q,22,b[11]),ae=P(ae,ce,ge,pe,J,7,b[12]),pe=P(pe,ae,ce,ge,ne,12,b[13]),ge=P(ge,pe,ae,ce,fe,17,b[14]),ce=P(ce,ge,pe,ae,le,22,b[15]),ae=T(ae,ce,ge,pe,z,5,b[16]),pe=T(pe,ae,ce,ge,K,9,b[17]),ge=T(ge,pe,ae,ce,Q,14,b[18]),ce=T(ce,ge,pe,ae,U,20,b[19]),ae=T(ae,ce,ge,pe,W,5,b[20]),pe=T(pe,ae,ce,ge,Z,9,b[21]),ge=T(ge,pe,ae,ce,le,14,b[22]),ce=T(ce,ge,pe,ae,X,20,b[23]),ae=T(ae,ce,ge,pe,de,5,b[24]),pe=T(pe,ae,ce,ge,fe,9,b[25]),ge=T(ge,pe,ae,ce,G,14,b[26]),ce=T(ce,ge,pe,ae,ee,20,b[27]),ae=T(ae,ce,ge,pe,ne,5,b[28]),pe=T(pe,ae,ce,ge,H,9,b[29]),ge=T(ge,pe,ae,ce,ie,14,b[30]),ce=T(ce,ge,pe,ae,J,20,b[31]),ae=C(ae,ce,ge,pe,W,4,b[32]),pe=C(pe,ae,ce,ge,ee,11,b[33]),ge=C(ge,pe,ae,ce,Q,16,b[34]),ce=C(ce,ge,pe,ae,fe,23,b[35]),ae=C(ae,ce,ge,pe,z,4,b[36]),pe=C(pe,ae,ce,ge,X,11,b[37]),ge=C(ge,pe,ae,ce,ie,16,b[38]),ce=C(ce,ge,pe,ae,Z,23,b[39]),ae=C(ae,ce,ge,pe,ne,4,b[40]),pe=C(pe,ae,ce,ge,U,11,b[41]),ge=C(ge,pe,ae,ce,G,16,b[42]),ce=C(ce,ge,pe,ae,K,23,b[43]),ae=C(ae,ce,ge,pe,de,4,b[44]),pe=C(pe,ae,ce,ge,J,11,b[45]),ge=C(ge,pe,ae,ce,le,16,b[46]),ce=C(ce,ge,pe,ae,H,23,b[47]),ae=O(ae,ce,ge,pe,U,6,b[48]),pe=O(pe,ae,ce,ge,ie,10,b[49]),ge=O(ge,pe,ae,ce,fe,15,b[50]),ce=O(ce,ge,pe,ae,W,21,b[51]),ae=O(ae,ce,ge,pe,J,6,b[52]),pe=O(pe,ae,ce,ge,G,10,b[53]),ge=O(ge,pe,ae,ce,Z,15,b[54]),ce=O(ce,ge,pe,ae,z,21,b[55]),ae=O(ae,ce,ge,pe,ee,6,b[56]),pe=O(pe,ae,ce,ge,le,10,b[57]),ge=O(ge,pe,ae,ce,K,15,b[58]),ce=O(ce,ge,pe,ae,ne,21,b[59]),ae=O(ae,ce,ge,pe,X,6,b[60]),pe=O(pe,ae,ce,ge,Q,10,b[61]),ge=O(ge,pe,ae,ce,H,15,b[62]),ce=O(ce,ge,pe,ae,de,21,b[63]),I[0]=I[0]+ae|0,I[1]=I[1]+ce|0,I[2]=I[2]+ge|0,I[3]=I[3]+pe|0},_doFinalize:function(){var A=this._data,F=A.words,j=this._nDataBytes*8,L=A.sigBytes*8;F[L>>>5]|=128<<24-L%32;var M=c.floor(j/4294967296),I=j;F[(L+64>>>9<<4)+15]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,F[(L+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,A.sigBytes=(F.length+1)*4,this._process();for(var U=this._hash,z=U.words,H=0;H<4;H++){var G=z[H];z[H]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}return U},clone:function(){var A=_.clone.call(this);return A._hash=this._hash.clone(),A}});function P(A,F,j,L,M,I,U){var z=A+(F&j|~F&L)+M+U;return(z<>>32-I)+F}function T(A,F,j,L,M,I,U){var z=A+(F&L|j&~L)+M+U;return(z<>>32-I)+F}function C(A,F,j,L,M,I,U){var z=A+(F^j^L)+M+U;return(z<>>32-I)+F}function O(A,F,j,L,M,I,U){var z=A+(j^(F|~L))+M+U;return(z<>>32-I)+F}f.MD5=_._createHelper($),f.HmacMD5=_._createHmacHelper($)}(Math),s.MD5})}(md5)),md5.exports}var evpkdf={exports:{}},sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return function(){var c=s,f=c.lib,d=f.WordArray,y=f.Hasher,_=c.algo,S=[],b=_.SHA1=y.extend({_doReset:function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function($,P){for(var T=this._hash.words,C=T[0],O=T[1],A=T[2],F=T[3],j=T[4],L=0;L<80;L++){if(L<16)S[L]=$[P+L]|0;else{var M=S[L-3]^S[L-8]^S[L-14]^S[L-16];S[L]=M<<1|M>>>31}var I=(C<<5|C>>>27)+j+S[L];L<20?I+=(O&A|~O&F)+1518500249:L<40?I+=(O^A^F)+1859775393:L<60?I+=(O&A|O&F|A&F)-1894007588:I+=(O^A^F)-899497514,j=F,F=A,A=O<<30|O>>>2,O=C,C=I}T[0]=T[0]+C|0,T[1]=T[1]+O|0,T[2]=T[2]+A|0,T[3]=T[3]+F|0,T[4]=T[4]+j|0},_doFinalize:function(){var $=this._data,P=$.words,T=this._nDataBytes*8,C=$.sigBytes*8;return P[C>>>5]|=128<<24-C%32,P[(C+64>>>9<<4)+14]=Math.floor(T/4294967296),P[(C+64>>>9<<4)+15]=T,$.sigBytes=P.length*4,this._process(),this._hash},clone:function(){var $=y.clone.call(this);return $._hash=this._hash.clone(),$}});c.SHA1=y._createHelper(b),c.HmacSHA1=y._createHmacHelper(b)}(),s.SHA1})}(sha1)),sha1.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){(function(){var c=s,f=c.lib,d=f.Base,y=c.enc,_=y.Utf8,S=c.algo;S.HMAC=d.extend({init:function(b,$){b=this._hasher=new b.init,typeof $=="string"&&($=_.parse($));var P=b.blockSize,T=P*4;$.sigBytes>T&&($=b.finalize($)),$.clamp();for(var C=this._oKey=$.clone(),O=this._iKey=$.clone(),A=C.words,F=O.words,j=0;j>>2]&255;W.sigBytes-=K}};d.BlockCipher=C.extend({cfg:C.cfg.extend({mode:F,padding:L}),reset:function(){var W;C.reset.call(this);var K=this.cfg,ie=K.iv,ee=K.mode;this._xformMode==this._ENC_XFORM_MODE?W=ee.createEncryptor:(W=ee.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==W?this._mode.init(this,ie&&ie.words):(this._mode=W.call(ee,this,ie&&ie.words),this._mode.__creator=W)},_doProcessBlock:function(W,K){this._mode.processBlock(W,K)},_doFinalize:function(){var W,K=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(K.pad(this._data,this.blockSize),W=this._process(!0)):(W=this._process(!0),K.unpad(W)),W},blockSize:128/32});var M=d.CipherParams=y.extend({init:function(W){this.mixIn(W)},toString:function(W){return(W||this.formatter).stringify(this)}}),I=f.format={},U=I.OpenSSL={stringify:function(W){var K,ie=W.ciphertext,ee=W.salt;return ee?K=_.create([1398893684,1701076831]).concat(ee).concat(ie):K=ie,K.toString($)},parse:function(W){var K,ie=$.parse(W),ee=ie.words;return ee[0]==1398893684&&ee[1]==1701076831&&(K=_.create(ee.slice(2,4)),ee.splice(0,4),ie.sigBytes-=16),M.create({ciphertext:ie,salt:K})}},z=d.SerializableCipher=y.extend({cfg:y.extend({format:U}),encrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee);var de=W.createEncryptor(ie,ee),Z=de.finalize(K),Q=de.cfg;return M.create({ciphertext:Z,key:ie,iv:Q.iv,algorithm:W,mode:Q.mode,padding:Q.padding,blockSize:W.blockSize,formatter:ee.format})},decrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee),K=this._parse(K,ee.format);var de=W.createDecryptor(ie,ee).finalize(K.ciphertext);return de},_parse:function(W,K){return typeof W=="string"?K.parse(W,this):W}}),H=f.kdf={},G=H.OpenSSL={execute:function(W,K,ie,ee,de){if(ee||(ee=_.random(64/8)),de)var Z=T.create({keySize:K+ie,hasher:de}).compute(W,ee);else var Z=T.create({keySize:K+ie}).compute(W,ee);var Q=_.create(Z.words.slice(K),ie*4);return Z.sigBytes=K*4,M.create({key:Z,iv:Q,salt:ee})}},X=d.PasswordBasedCipher=z.extend({cfg:z.cfg.extend({kdf:G}),encrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee);var de=ee.kdf.execute(ie,W.keySize,W.ivSize,ee.salt,ee.hasher);ee.iv=de.iv;var Z=z.encrypt.call(this,W,K,de.key,ee);return Z.mixIn(de),Z},decrypt:function(W,K,ie,ee){ee=this.cfg.extend(ee),K=this._parse(K,ee.format);var de=ee.kdf.execute(ie,W.keySize,W.ivSize,K.salt,ee.hasher);ee.iv=de.iv;var Z=z.decrypt.call(this,W,K,de.key,ee);return Z}})}()})}(cipherCore)),cipherCore.exports}(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var c=s,f=c.lib,d=f.BlockCipher,y=c.algo,_=[],S=[],b=[],$=[],P=[],T=[],C=[],O=[],A=[],F=[];(function(){for(var M=[],I=0;I<256;I++)I<128?M[I]=I<<1:M[I]=I<<1^283;for(var U=0,z=0,I=0;I<256;I++){var H=z^z<<1^z<<2^z<<3^z<<4;H=H>>>8^H&255^99,_[U]=H,S[H]=U;var G=M[U],X=M[G],W=M[X],K=M[H]*257^H*16843008;b[U]=K<<24|K>>>8,$[U]=K<<16|K>>>16,P[U]=K<<8|K>>>24,T[U]=K;var K=W*16843009^X*65537^G*257^U*16843008;C[H]=K<<24|K>>>8,O[H]=K<<16|K>>>16,A[H]=K<<8|K>>>24,F[H]=K,U?(U=G^M[M[M[W^G]]],z^=M[M[z]]):U=z=1}})();var j=[0,1,2,4,8,16,32,64,128,27,54],L=y.AES=d.extend({_doReset:function(){var M;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var I=this._keyPriorReset=this._key,U=I.words,z=I.sigBytes/4,H=this._nRounds=z+6,G=(H+1)*4,X=this._keySchedule=[],W=0;W6&&W%z==4&&(M=_[M>>>24]<<24|_[M>>>16&255]<<16|_[M>>>8&255]<<8|_[M&255]):(M=M<<8|M>>>24,M=_[M>>>24]<<24|_[M>>>16&255]<<16|_[M>>>8&255]<<8|_[M&255],M^=j[W/z|0]<<24),X[W]=X[W-z]^M);for(var K=this._invKeySchedule=[],ie=0;ie>>24]]^O[_[M>>>16&255]]^A[_[M>>>8&255]]^F[_[M&255]]}}},encryptBlock:function(M,I){this._doCryptBlock(M,I,this._keySchedule,b,$,P,T,_)},decryptBlock:function(M,I){var U=M[I+1];M[I+1]=M[I+3],M[I+3]=U,this._doCryptBlock(M,I,this._invKeySchedule,C,O,A,F,S);var U=M[I+1];M[I+1]=M[I+3],M[I+3]=U},_doCryptBlock:function(M,I,U,z,H,G,X,W){for(var K=this._nRounds,ie=M[I]^U[0],ee=M[I+1]^U[1],de=M[I+2]^U[2],Z=M[I+3]^U[3],Q=4,J=1;J>>24]^H[ee>>>16&255]^G[de>>>8&255]^X[Z&255]^U[Q++],fe=z[ee>>>24]^H[de>>>16&255]^G[Z>>>8&255]^X[ie&255]^U[Q++],le=z[de>>>24]^H[Z>>>16&255]^G[ie>>>8&255]^X[ee&255]^U[Q++],ae=z[Z>>>24]^H[ie>>>16&255]^G[ee>>>8&255]^X[de&255]^U[Q++];ie=ne,ee=fe,de=le,Z=ae}var ne=(W[ie>>>24]<<24|W[ee>>>16&255]<<16|W[de>>>8&255]<<8|W[Z&255])^U[Q++],fe=(W[ee>>>24]<<24|W[de>>>16&255]<<16|W[Z>>>8&255]<<8|W[ie&255])^U[Q++],le=(W[de>>>24]<<24|W[Z>>>16&255]<<16|W[ie>>>8&255]<<8|W[ee&255])^U[Q++],ae=(W[Z>>>24]<<24|W[ie>>>16&255]<<16|W[ee>>>8&255]<<8|W[de&255])^U[Q++];M[I]=ne,M[I+1]=fe,M[I+2]=le,M[I+3]=ae},keySize:256/32});c.AES=d._createHelper(L)}(),s.AES})})(aes);var aesExports=aes.exports,encUtf8={exports:{}};(function(o,a){(function(s,c){o.exports=c(requireCore())})(commonjsGlobal,function(s){return s.enc.Utf8})})(encUtf8);var encUtf8Exports=encUtf8.exports;const UTF8=getDefaultExportFromCjs(encUtf8Exports);var modeEcb={exports:{}};(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.mode.ECB=function(){var c=s.lib.BlockCipherMode.extend();return c.Encryptor=c.extend({processBlock:function(f,d){this._cipher.encryptBlock(f,d)}}),c.Decryptor=c.extend({processBlock:function(f,d){this._cipher.decryptBlock(f,d)}}),c}(),s.mode.ECB})})(modeEcb);var modeEcbExports=modeEcb.exports;const ECB=getDefaultExportFromCjs(modeEcbExports);var padPkcs7={exports:{}};(function(o,a){(function(s,c,f){o.exports=c(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.pad.Pkcs7})})(padPkcs7);var padPkcs7Exports=padPkcs7.exports;const PKCS7=getDefaultExportFromCjs(padPkcs7Exports);class AesEncrypt{constructor(a={}){tr(this,"key");tr(this,"iv");const{key:s,iv:c}=a;s&&(this.key=encUtf8Exports.parse(s)),c&&(this.iv=encUtf8Exports.parse(c))}get getOptions(){return{mode:ECB,padding:PKCS7,iv:this.iv}}encryptByAES(a){return aesExports.encrypt(a,this.key,this.getOptions).toString()}decryptByAES(a){return aesExports.decrypt(a,this.key,this.getOptions).toString(UTF8)}}const createStorage$1=({prefixKey:o="",storage:a=sessionStorage,hasEncrypt:s=!0,key:c=cacheCipher.key,iv:f=cacheCipher.iv,timeout:d=null}={})=>{if(s&&[c.length,f.length].some(S=>S!==16))throw new Error("When hasEncrypt is true, the key or iv must be 16 bits!");const y=new AesEncrypt({key:c,iv:f}),_=class{constructor(){tr(this,"storage");tr(this,"prefixKey");tr(this,"encrypt");tr(this,"hasEncrypt");this.storage=a,this.prefixKey=o,this.encrypt=y,this.hasEncrypt=s}getKey(b){return`${this.prefixKey}${b}`.toUpperCase()}set(b,$,P=d){const T=JSON.stringify({value:$,time:Date.now(),expire:isNullOrUnDef(P)?null:new Date().getTime()+P*1e3}),C=this.hasEncrypt?this.encrypt.encryptByAES(T):T;this.storage.setItem(this.getKey(b),C)}get(b,$=null){const P=this.storage.getItem(this.getKey(b));if(!P)return $;try{const T=this.hasEncrypt?this.encrypt.decryptByAES(P):P,C=JSON.parse(T),{value:O,expire:A}=C;if(isNullOrUnDef(A)||A>=new Date().getTime())return O;this.remove(b)}catch(T){return $}}remove(b){this.storage.removeItem(this.getKey(b))}clear(){this.storage.clear()}};return new _},createOptions=(o,a={})=>se({hasEncrypt:enableStorageEncryption,storage:o,prefixKey:"react-admin-design__"},a);createStorage$1(createOptions(sessionStorage));const createStorage=(o=sessionStorage,a={})=>createStorage$1(createOptions(o,a)),createSessionStorage=(o={})=>createStorage(sessionStorage,$e(se({},o),{timeout:DEFAULT_CACHE_TIME})),createLocalStorage=(o={})=>createStorage(localStorage,$e(se({},o),{timeout:DEFAULT_CACHE_TIME}));class Memory{constructor(a=0){tr(this,"cache",{});tr(this,"alive");this.alive=a*1e3}get getCache(){return this.cache}get(a){return this.cache[a]}set(a,s,c){let f=this.get(a);if((!c||c<=0)&&(c=this.alive),f?(f.timeoutId&&(clearTimeout(f.timeoutId),f.timeoutId=void 0),f.value=s):(f={value:s,alive:c},this.cache[a]=f),!c)return s;const d=new Date().getTime();return f.time=d+this.alive,f.timeoutId=setTimeout(()=>{this.remove(a)},c>d?c-d:c),s}remove(a){const s=this.get(a);if(Reflect.deleteProperty(this.cache,a),s)return clearTimeout(s.timeoutId),s.value}resetCache(a){Object.keys(a).forEach(s=>{const c=s,f=a[c];if(f&&f.time){const d=new Date().getTime(),y=f.time;y>d&&this.set(c,f.value,y)}})}clear(){Object.keys(this.cache).forEach(a=>{const s=this.cache[a];s.timeoutId&&clearTimeout(s.timeoutId)}),this.cache={}}}const ls=createLocalStorage(),ss=createSessionStorage(),localMemory=new Memory(DEFAULT_CACHE_TIME),sessionMemory=new Memory(DEFAULT_CACHE_TIME);function initPersistentMemory(){const o=ls.get(APP_LOCAL_CACHE_KEY),a=ss.get(APP_SESSION_CACHE_KEY);o&&localMemory.resetCache(o),a&&sessionMemory.resetCache(a)}class Persistent{static getLocal(a){var s;return(s=localMemory.get(a))==null?void 0:s.value}static setLocal(a,s,c=!1){localMemory.set(a,s),c&&ls.set(APP_LOCAL_CACHE_KEY,localMemory.getCache)}static removeLocal(a,s=!1){localMemory.remove(a),s&&ls.set(APP_LOCAL_CACHE_KEY,localMemory.getCache)}static clearLocal(a=!1){localMemory.clear(),a&&ls.clear()}static getSession(a){var s;return(s=sessionMemory.get(a))==null?void 0:s.value}static setSession(a,s,c=!1){sessionMemory.set(a,s),c&&ss.set(APP_SESSION_CACHE_KEY,sessionMemory.getCache)}static removeSession(a,s=!1){sessionMemory.remove(a),s&&ss.set(APP_SESSION_CACHE_KEY,sessionMemory.getCache)}static clearSession(a=!1){sessionMemory.clear(),a&&ss.clear()}static clearAll(a=!1){sessionMemory.clear(),localMemory.clear(),a&&(ls.clear(),ss.clear())}}function storageChange(o){const{key:a,newValue:s,oldValue:c}=o;if(!a){Persistent.clearAll();return}s&&c&&(APP_LOCAL_CACHE_KEY===a&&Persistent.clearLocal(),APP_SESSION_CACHE_KEY===a&&Persistent.clearSession())}window.addEventListener("storage",storageChange);initPersistentMemory();const{permissionCacheType}=appSetting,isLocal=permissionCacheType===CacheTypeEnum.LOCAL;function getAuthCache(o){return(isLocal?Persistent.getLocal:Persistent.getSession)(o)}const subTitleMap=new Map([[403,t("对不起,您没有权限访问此页面。")],[404,t("对不起,您访问的页面不存在。")],[500,t("对不起,服务器发生错误。")]]),PageException=()=>{const o=useNavigate(),{status:a,withCard:s}=useLoaderData(),c=()=>{o("/home")},f=({children:d})=>s?jsxRuntimeExports.jsx(Card,{bordered:!1,children:d}):jsxRuntimeExports.jsx("div",{className:"flex-center",style:{height:"100vh"},children:d});return jsxRuntimeExports.jsx(f,{children:jsxRuntimeExports.jsx(Result,{title:a,icon:jsxRuntimeExports.jsx(SvgIcon,{size:380,name:a}),subTitle:subTitleMap.get(a),extra:jsxRuntimeExports.jsx(Button,{type:"primary",onClick:c,children:t("返回首页")})})})},index=Object.freeze(Object.defineProperty({__proto__:null,default:PageException},Symbol.toStringTag,{value:"Module"})),illustrationDashboard="/react-antd-admin-pnpm/assets/illustration_dashboard-e36a7900.png",overlay="/react-antd-admin-pnpm/assets/overlay_2-613a921a.jpg",useStyles$1=createStyles(({token:o})=>({"login-container":{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center",height:"100vh"},"login-img":{maxWidth:"560px",height:"auto"},"login-form":{padding:`${o.paddingLG*7}px ${o.paddingLG*5}px`,".title":{margin:0},".login-info":{margin:`${o.marginLG}px 0`},".login-btn":{backgroundColor:o.colorDefault}},"login-left":{gap:"80px",flexGrow:1,height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",background:`linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)) center center / cover no-repeat, url(${overlay})`,".logo":{width:"100%",padding:o.paddingSM,position:"absolute",top:0,left:0,svg:{color:o.colorPrimary}}}})),{Title,Text}=Typography,LoginPage=()=>{const[o]=Form.useForm(),a=reactExports.useRef(null),[s,c]=reactExports.useState(!1),f=useSignIn(),d=useNavigate(),[y]=useSearchParams(),{styles:_}=useStyles$1(),S=b=>xt(void 0,null,function*(){c(!0);try{(yield f({username:b.username,password:b.password}))&&d(y.get("redirect")||"/")}catch($){message.error($.message)}finally{c(!1)}});return jsxRuntimeExports.jsxs("div",{className:_["login-container"],children:[jsxRuntimeExports.jsxs("div",{className:_["login-left"],children:[jsxRuntimeExports.jsx(Title,{className:"logo",level:3,children:jsxRuntimeExports.jsx(SvgIcon,{name:"logo",size:30})}),jsxRuntimeExports.jsx(Title,{level:2,children:t("Hi, 欢迎回来!")}),jsxRuntimeExports.jsx("img",{src:illustrationDashboard,alt:"",className:_["login-img"]})]}),jsxRuntimeExports.jsxs("div",{className:_["login-form"],children:[jsxRuntimeExports.jsxs("div",{className:"login-info",children:[jsxRuntimeExports.jsx(Title,{className:"title",level:3,children:t("登录 Gbeata Admin")}),jsxRuntimeExports.jsxs(Text,{type:"secondary",children:[" ",t("新用户?"),jsxRuntimeExports.jsx(Button,{type:"link",style:{padding:0},color:"primary",children:t("立即注册")})]}),jsxRuntimeExports.jsx(Alert,{message:t("登录信息: 用户名:admin 密码:123456"),type:"info",showIcon:!0})]}),jsxRuntimeExports.jsxs(Form,{ref:a,form:o,initialValues:{username:"admin",password:"123456",remember:!0},className:"login-box-form",onFinish:S,children:[jsxRuntimeExports.jsx(Form.Item,{name:"username",rules:[{required:!0,message:t("请输入账号")}],children:jsxRuntimeExports.jsx(Input,{placeholder:t("请输入账号"),size:"large",prefix:jsxRuntimeExports.jsx(UserOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsx(Form.Item,{name:"password",rules:[{required:!0,message:t("请输入密码")}],children:jsxRuntimeExports.jsx(Input,{type:"password",placeholder:t("请输入密码"),size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsxs(Form.Item,{children:[jsxRuntimeExports.jsx(Form.Item,{name:"remember",className:classNames("fl","no-margin"),valuePropName:"checked",children:jsxRuntimeExports.jsx(Checkbox,{children:t("记住我")})}),jsxRuntimeExports.jsx(Form.Item,{className:classNames("fr","no-margin"),children:jsxRuntimeExports.jsx("a",{href:"",children:t("忘记密码?")})})]}),jsxRuntimeExports.jsx(Form.Item,{children:jsxRuntimeExports.jsx(Button,{type:"primary",block:!0,htmlType:"submit",size:"large",className:"login-btn",loading:s,children:t("登 录")})})]})]})]})},metaRoutes=Object.assign({"./routes/compo.tsx":__vite_glob_0_0$1,"./routes/exception.tsx":__vite_glob_0_1$1,"./routes/form.tsx":__vite_glob_0_2$1,"./routes/home.tsx":__vite_glob_0_3,"./routes/management.tsx":__vite_glob_0_4,"./routes/user.tsx":__vite_glob_0_5}),routeList=[];Object.keys(metaRoutes).forEach(o=>{const a=metaRoutes[o].default||{},s=Array.isArray(a)?[...a]:[a];genFullPath(s),routeList.push(...s)});const rootRoutes=[{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/home"})},{path:"/login",element:jsxRuntimeExports.jsx(LoginPage,{}),meta:{title:t("登录页"),key:"login"},loader:()=>getAuthCache(TOKEN_KEY)?redirect("/"):null},...routeList,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/404"})},{path:"/403",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!1})},{path:"/404",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!1})}],router=createHashRouter(rootRoutes),CustomGlobal=createGlobalStyle` .g-paper { border-radius: ${o=>o.theme.borderRadius*2}px; } @@ -338,8 +338,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Mock - 模拟请求 & 模拟数据 https://github.com/nuysoft/Mock 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com -*/var $={Handler:c,Random:d,Util:f,XHR:b,RE:y,toJSONSchema:_,valid:S,heredoc:f.heredoc,setup:function(P){return b.setup(P)},_mocked:{}};$.version="1.0.1-beta3",b&&(b.Mock=$),$.mock=function(P,T,C){return arguments.length===1?c.gen(P):(arguments.length===2&&(C=T,T=void 0),b&&(window.XMLHttpRequest=b),$._mocked[P+(T||"")]={rurl:P,rtype:T,template:C},$)},o.exports=$},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(o,a,s){a=a==null?"":a+"",s=s||{},s={path:s.path||[Constant.GUID],templatePath:s.templatePath||[Constant.GUID++],currentContext:s.currentContext,templateCurrentContext:s.templateCurrentContext||o,root:s.root||s.currentContext,templateRoot:s.templateRoot||s.templateCurrentContext||o};var c=Parser.parse(a),f=Util.type(o),d;return Handler[f]?(d=Handler[f]({type:f,template:o,name:a,parsedName:a&&a.replace(Constant.RE_KEY,"$1"),rule:c,context:s}),s.root||(s.root=d),d):o},Handler.extend({array:function(o){var a=[],s,c;if(o.template.length===0)return a;if(o.rule.parameters)if(o.rule.min===1&&o.rule.max===void 0)o.context.path.push(o.name),o.context.templatePath.push(o.name),a=Random.pick(Handler.gen(o.template,void 0,{path:o.context.path,templatePath:o.context.templatePath,currentContext:a,templateCurrentContext:o.template,root:o.context.root||a,templateRoot:o.context.templateRoot||o.template})),o.context.path.pop(),o.context.templatePath.pop();else if(o.rule.parameters[2])o.template.__order_index=o.template.__order_index||0,o.context.path.push(o.name),o.context.templatePath.push(o.name),a=Handler.gen(o.template,void 0,{path:o.context.path,templatePath:o.context.templatePath,currentContext:a,templateCurrentContext:o.template,root:o.context.root||a,templateRoot:o.context.templateRoot||o.template})[o.template.__order_index%o.template.length],o.template.__order_index+=+o.rule.parameters[2],o.context.path.pop(),o.context.templatePath.pop();else for(s=0;s1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(f=a.context.path.slice(0),f.pop(),f=this.normalizePath(f.concat(c)));try{o=c[c.length-1];for(var d=a.context.root,y=a.context.templateRoot,_=1;_1/(s+c)*s?!f:f):Math.random()>=.5},bool:function(s,c,f){return this.boolean(s,c,f)},natural:function(s,c){return s=typeof s!="undefined"?parseInt(s,10):0,c=typeof c!="undefined"?parseInt(c,10):9007199254740992,Math.round(Math.random()*(c-s))+s},integer:function(s,c){return s=typeof s!="undefined"?parseInt(s,10):-9007199254740992,c=typeof c!="undefined"?parseInt(c,10):9007199254740992,Math.round(Math.random()*(c-s))+s},int:function(s,c){return this.integer(s,c)},float:function(s,c,f,d){f=f===void 0?0:f,f=Math.max(Math.min(f,17),0),d=d===void 0?17:d,d=Math.max(Math.min(d,17),0);for(var y=this.integer(s,c)+".",_=0,S=this.natural(f,d);_1&&b--,6*b<1?P=_+(S-_)*6*b:2*b<1?P=S:3*b<2?P=_+(S-_)*(2/3-b)*6:P=_,$[T]=P*255;return $},hsl2hsv:function(c){var f=c[0],d=c[1]/100,y=c[2]/100,_,S;return y*=2,d*=y<=1?y:2-y,S=(y+d)/2,_=2*d/(y+d),[f,_*100,S*100]},hsv2rgb:function(c){var f=c[0]/60,d=c[1]/100,y=c[2]/100,_=Math.floor(f)%6,S=f-Math.floor(f),b=255*y*(1-d),$=255*y*(1-d*S),P=255*y*(1-d*(1-S));switch(y=255*y,_){case 0:return[y,P,b];case 1:return[$,y,b];case 2:return[b,y,P];case 3:return[b,$,y];case 4:return[P,b,y];case 5:return[y,b,$]}},hsv2hsl:function(c){var f=c[0],d=c[1]/100,y=c[2]/100,_,S;return S=(2-d)*y,_=d*y,_/=S<=1?S:2-S,S/=2,[f,_*100,S*100]},rgb2hex:function(s,c,f){return"#"+((256+s<<8|c)<<8|f).toString(16).slice(1)},hex2rgb:function(s){return s="0x"+s.slice(1).replace(s.length>4?s:/./g,"$&$&")|0,[s>>16,s>>8&255,s&255]}}},function(o,a){o.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(o,a,s){var c=s(6),f=s(14);function d(y,_,S,b){return S===void 0?c.natural(y,_):b===void 0?S:c.natural(parseInt(S,10),parseInt(b,10))}o.exports={paragraph:function(y,_){for(var S=d(3,7,y,_),b=[],$=0;$1&&(d=[].slice.call(arguments,0));var y=f.options,_=y.context.templatePath.join("."),S=f.cache[_]=f.cache[_]||{index:0,array:d};return S.array[S.index++%S.array.length]}}},function(o,a){o.exports={first:function(){var s=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(s)},last:function(){var s=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(s)},name:function(s){return this.first()+" "+(s?this.first()+" ":"")+this.last()},cfirst:function(){var s="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(s)},clast:function(){var s="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(s)},cname:function(){return this.cfirst()+this.clast()}}},function(o,a){o.exports={url:function(s,c){return(s||this.protocol())+"://"+(c||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(s){return this.word()+"."+(s||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(s){return this.character("lower")+"."+this.word()+"@"+(s||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(o,a,s){var c=s(18),f=["东北","华北","华东","华中","华南","西南","西北"];o.exports={region:function(){return this.pick(f)},province:function(){return this.pick(c).name},city:function(d){var y=this.pick(c),_=this.pick(y.children);return d?[y.name,_.name].join(" "):_.name},county:function(d){var y=this.pick(c),_=this.pick(y.children),S=this.pick(_.children)||{name:"-"};return d?[y.name,_.name,S.name].join(" "):S.name},zip:function(d){for(var y="",_=0;_<(d||6);_++)y+=this.natural(0,9);return y}}},function(o,a){var s={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function c(d){for(var y={},_=0,S;_jt;jt++)nn=H.charAt(jt),nn===` -`?(Se.seenCR||Se.line++,Se.column=1,Se.seenCR=!1):nn==="\r"||nn==="\u2028"||nn==="\u2029"?(Se.line++,Se.column=1,Se.seenCR=!0):(Se.column++,Se.seenCR=!1)}return Br!==B&&(Br>B&&(Br=0,rn={line:1,column:1,seenCR:!1}),Y(rn,Br,B),Br=B),rn}function K(B){In>oe||(oe>In&&(In=oe,Ln=[]),Ln.push(B))}function ie(B){var Y=0;for(B.sort();Yoe?(Se=H.charAt(oe),oe++):(Se=null,$e===0&&K(Mn)),Se!==null?(Le=B,Y=en(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)):(oe=B,B=Fe),B}function pt(){var B,Y,Se;return B=oe,H.charCodeAt(oe)===92?(Y=fi,oe++):(Y=null,$e===0&&K(di)),Y!==null?(Va.test(H.charAt(oe))?(Se=H.charAt(oe),oe++):(Se=null,$e===0&&K(ia)),Se!==null?(Le=B,Y=aa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)):(oe=B,B=Fe),B}function ir(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===yr?(Y=yr,oe+=2):(Y=null,$e===0&&K(kt)),Y!==null){if(Se=[],Tr.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,$e===0&&K(hi)),Re!==null)for(;Re!==null;)Se.push(Re),Tr.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,$e===0&&K(hi));else Se=Fe;Se!==null?(Le=B,Y=Wa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)}else oe=B,B=Fe;return B}function $n(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===Jt?(Y=Jt,oe+=2):(Y=null,$e===0&&K(Or)),Y!==null){if(Se=[],tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,$e===0&&K(Fn)),Re!==null)for(;Re!==null;)Se.push(Re),tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,$e===0&&K(Fn));else Se=Fe;Se!==null?(Le=B,Y=vr(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)}else oe=B,B=Fe;return B}function wa(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===_r?(Y=_r,oe+=2):(Y=null,$e===0&&K(pi)),Y!==null){if(Se=[],tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,$e===0&&K(Fn)),Re!==null)for(;Re!==null;)Se.push(Re),tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,$e===0&&K(Fn));else Se=Fe;Se!==null?(Le=B,Y=qa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)}else oe=B,B=Fe;return B}function Pa(){var B,Y;return B=oe,H.substr(oe,2)===yr?(Y=yr,oe+=2):(Y=null,$e===0&&K(kt)),Y!==null&&(Le=B,Y=gi()),Y===null&&(oe=B),B=Y,B}function Ta(){var B,Y,Se;return B=oe,H.charCodeAt(oe)===92?(Y=fi,oe++):(Y=null,$e===0&&K(di)),Y!==null?(H.length>oe?(Se=H.charAt(oe),oe++):(Se=null,$e===0&&K(Mn)),Se!==null?(Le=B,Y=Ki(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)):(oe=B,B=Fe),B}var Yn,wn=arguments.length>1?arguments[1]:{},Oa={regexp:ee},Xn=ee,Fe=null,Dr="",Oo="|",Co='"|"',Ro=function(B,Y){return Y?new c(B,Y[1]):B},Ca=function(B,Y,Se){return new f([B].concat(Y).concat([Se]))},Qn="^",Ra='"^"',Ao=function(){return new s("start")},Jn="$",Mo='"$"',Fo=function(){return new s("end")},Io=function(B,Y){return new _(B,Y)},Lo="Quantifier",No=function(B,Y){return Y&&(B.greedy=!1),B},ki="{",ji='"{"',ko=",",jo='","',Aa="}",Ma='"}"',Do=function(B,Y){return new S(B,Y)},Fa=",}",Uo='",}"',Di=function(B){return new S(B,1/0)},Pn=function(B){return new S(B,B)},Ui="+",zi='"+"',zo=function(){return new S(1,1/0)},Bi="*",Xr='"*"',Er=function(){return new S(0,1/0)},rt="?",tt='"?"',$r=function(){return new S(0,1)},gt=/^[0-9]/,wt="[0-9]",Ur=function(B){return+B.join("")},Qr="(",Ot='"("',Zn=")",Ia='")"',La=function(B){return B},ei=function(B){return new y(B)},Hi="?:",Yt='"?:"',Bo=function(B){return new d("non-capture-group",B)},Na="?=",Ho='"?="',ti=function(B){return new d("positive-lookahead",B)},Tn="?!",On='"?!"',ri=function(B){return new d("negative-lookahead",B)},Go="CharacterSet",Vo="[",Gi='"["',ka="]",Vi='"]"',Cn=function(B,Y){return new b(!!B,Y)},Wo="CharacterRange",Wi="-",Qe='"-"',ja=function(B,Y){return new $(B,Y)},qi="Character",Da=/^[^\\\]]/,qo="[^\\\\\\]]",Ki=function(B){return new P(B)},dt=".",Yi='"."',Ko=function(){return new s("any-character")},Xi="Literal",Yo=/^[^|\\\/.[()?+*$\^]/,ni="[^|\\\\\\/.[()?+*$\\^]",Lt="\\b",Ua='"\\\\b"',Xo=function(){return new s("backspace")},Xt=function(){return new s("word-boundary")},ar="\\B",ii='"\\\\B"',Qi=function(){return new s("non-word-boundary")},Ji="\\d",Qo='"\\\\d"',or=function(){return new s("digit")},zr="\\D",Jr='"\\\\D"',ai=function(){return new s("non-digit")},Rn="\\f",zt='"\\\\f"',Bt=function(){return new s("form-feed")},wr="\\n",gr='"\\\\n"',mr=function(){return new s("line-feed")},Pr="\\r",za='"\\\\r"',Zi=function(){return new s("carriage-return")},oi="\\s",Nt='"\\\\s"',Ht=function(){return new s("white-space")},nt="\\S",An='"\\\\S"',Qt=function(){return new s("non-white-space")},ea="\\t",Ba='"\\\\t"',ta=function(){return new s("tab")},si="\\v",Ha='"\\\\v"',li=function(){return new s("vertical-tab")},ra="\\w",Zr='"\\\\w"',na=function(){return new s("word")},Ga="\\W",ui='"\\\\W"',Jo=function(){return new s("non-word")},Gt="\\c",ci='"\\\\c"',Mn="any character",en=function(B){return new F(B)},fi="\\",di='"\\\\"',Va=/^[1-9]/,ia="[1-9]",aa=function(B){return new A(B)},yr="\\0",kt='"\\\\0"',Tr=/^[0-7]/,hi="[0-7]",Wa=function(B){return new O(B.join(""))},Jt="\\x",Or='"\\\\x"',tn=/^[0-9a-fA-F]/,Fn="[0-9a-fA-F]",vr=function(B){return new C(B.join(""))},_r="\\u",pi='"\\\\u"',qa=function(B){return new T(B.join(""))},gi=function(){return new s("null-character")},oe=0,Le=0,Br=0,rn={line:1,column:1,seenCR:!1},In=0,Ln=[],$e=0;if("startRule"in wn){if(!(wn.startRule in Oa))throw new Error(`Can't start parsing from rule "`+wn.startRule+'".');Xn=Oa[wn.startRule]}if(s.offset=X,s.text=G,Yn=Xn(),Yn!==null&&oe===H.length)return Yn;throw ie(Ln),Le=Math.max(oe,In),new U(Ln,LeT)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is greater than",message:O};return A.message=S.message(A),C.push(A),!1},lessThan:function(b,$,P,T,C,O){if(P=T)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is greater than or equal to",message:O};return A.message=S.message(A),C.push(A),!1},lessThanOrEqualTo:function(b,$,P,T,C,O){if(P<=T)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is less than or equal to",message:O};return A.message=S.message(A),C.push(A),!1}};y.Diff=_,y.Assert=S,o.exports=y},function(o,a,s){o.exports=s(28)},function(o,a,s){var c=s(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch(C){window.Event=function(O,A,F,j){var I=document.createEvent("CustomEvent");return I.initCustomEvent(O,A,F,j),I}}var f={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d="readystatechange loadstart progress abort error load timeout loadend".split(" "),y="timeout withCredentials".split(" "),_="readyState responseURL status statusText responseType response responseText responseXML".split(" "),S={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function b(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}b._settings={timeout:"10-100"},b.setup=function(C){return c.extend(b._settings,C),b._settings},c.extend(b,f),c.extend(b.prototype,f),b.prototype.mock=!0,b.prototype.match=!1,c.extend(b.prototype,{open:function(C,O,A,F,j){var I=this;c.extend(this.custom,{method:C,url:O,async:typeof A=="boolean"?A:!0,username:F,password:j,options:{url:O,type:C}}),this.custom.timeout=function(G){if(typeof G=="number")return G;if(typeof G=="string"&&!~G.indexOf("-"))return parseInt(G,10);if(typeof G=="string"&&~G.indexOf("-")){var X=G.split("-"),W=parseInt(X[0],10),K=parseInt(X[1],10);return Math.round(Math.random()*(K-W))+W}}(b._settings.timeout);var M=P(this.custom.options);function L(G){for(var X=0;X<_.length;X++)try{I[_[X]]=U[_[X]]}catch(W){}I.dispatchEvent(new Event(G.type))}if(!M){var U=$();this.custom.xhr=U;for(var z=0;z=s.length?s.slice(c,s.length):s.slice(c,c+Number(a))}function resultPageSuccess(o,a,s,{message:c="ok"}={}){const f=pagination(o,a,s);return we(se({},resultSuccess({list:f,total:s.length})),{message:c})}const getPhone=()=>{const o=[135,136,137,138,139,155,158,183,185,189],a=Math.floor(Math.random()*10),s=o[a]+Math.random().toString().slice(-8);return Number(s)},getEducation=()=>{const o=["小学","初中","高中","专科","本科","研究生"],a=Math.floor(Math.random()*o.length);return o[a]},getMarried=()=>Math.floor(Math.random()*4),getHobby=()=>{const o=[],a=["羽毛球","乒乓球","篮球","排球","网球","游泳","滑雪","跳高","滑翔","潜水"],s=[3,4][Number(mockExports.Random.boolean())];for(let c=0;c{const o=[];for(let a=0;a<100;a++){const s=a<10?"0"+a:a;o.push({id:+`10${s}`+1,name:mockExports.Random.cname(),sex:["男","女"][Number(mockExports.Random.boolean())],phone:getPhone(),education:getEducation(),married:getMarried(),forbid:mockExports.Random.boolean(),hobby:getHobby()})}return o},articleListData=[{article_id:"7303048156967026714",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640407484334e3,6809640419505209e3,6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/84274f1176744240b47471a79d920a2f~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1276&h=638&s=1250001&e=gif&f=46&b=d3d9dc",is_gfw:0,title:"3D数字孪生 - 智能仓储管理平台-开源啦💐",brief_content:" 截止目前,相信你在社区上很难找到开源且真正对前期的你学习有帮助的案例和文章,之所以做这类分享,纯粹的是用爱发电,新的领域学习,让我痛苦的度过了好多个夜晚,值得庆幸自己的思路和计划都能按照设想的方案实",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1700465692",mtime:"1700532628",rtime:"-62135596800",draft_id:"7302787905043693577",view_count:397,collect_count:5,digg_count:7,comment_count:0,hot_index:26,is_hot:0,rank_index:12e-8,status:1,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:4,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1012,read_time:"3分钟"},{article_id:"7299709109879324691",user_id:"2682464101469480",category_id:"6809637776263217160",tag_ids:[6809640407484334e3,6809640402103042e3,6809640419505209e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/941af6d2401c4600b2867fc314dbbeaf~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1886&h=1186&s=505219&e=png&b=260947",is_gfw:0,title:"仿mac系统交互设计的车载Pad操作系统",brief_content:"时隔100天,我又来水文了!3D数字孪生的系列好多小伙伴都感兴趣,项目在10月就已经完结了,后续我会将继续补充如何完整的做完一个3D数字孪生项目",is_english:0,is_original:1,user_index:11.437480020762536,original_type:0,original_author:"",content:"",ctime:"1699636366",mtime:"1699778058",rtime:"1699778058",draft_id:"7299506825875226661",view_count:2077,collect_count:10,digg_count:15,comment_count:2,hot_index:120,is_hot:0,rank_index:.01209184,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1841,read_time:"6分钟"},{article_id:"7256964915133694008",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640407484334e3,6809640404791591e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/b5542f51a3274f8791ce1d8257dc4039~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"制造业领域,我是如何被逼到做顶级架构设计的",brief_content:"什么是顶级?还是澄清下吧; 这里的顶级并非说“最牛&”、最高档次,而指的是在开发一个复杂系统或软件时的最高层次设计的过程。 接下来,我要介绍的是,我是如何被逼到从单业务系统到系统与系统层面的顶级设计。",is_english:0,is_original:1,user_index:10.070339420019154,original_type:0,original_author:"",content:"",ctime:"1689652100",mtime:"1689668573",rtime:"1689668573",draft_id:"7255491496831631416",view_count:1404,collect_count:21,digg_count:19,comment_count:6,hot_index:95,is_hot:0,rank_index:.00212567,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:2360,read_time:"8分钟"},{article_id:"7250318500882432057",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640525595935e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/3727534baa6a478e9bbcb30d7472d40f~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之相机控制器(五)",brief_content:"机器学习 oz@0xozram 9号在twitter上发了这样的一个短视频: 当然,这属于机器学习领域的内容,也就是大名鼎鼎的 google 在2015开源的 tensorflow,TensorFlo",is_english:0,is_original:1,user_index:9.463944942479607,original_type:0,original_author:"",content:"",ctime:"1688108878",mtime:"1688831884",rtime:"1688831884",draft_id:"7249765949742530597",view_count:2280,collect_count:24,digg_count:16,comment_count:5,hot_index:135,is_hot:0,rank_index:.0027185,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:1,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1808,read_time:"6分钟"},{article_id:"7248545082130169893",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640497393435e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/05bba1c501124628a6bd11dc7f93a96a~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之相机(四)",brief_content:"承上 在第一篇# 3D数字孪生 - Three.js 项目介绍与基础环境搭建(一)有介绍,在使用 three/filber 的Canvas组件时,默认情况下,会自动添加初始化一个透视相机(Perspe",is_english:0,is_original:1,user_index:9.01959424539129,original_type:0,original_author:"",content:"",ctime:"1687694967",mtime:"1687748103",rtime:"1687748103",draft_id:"7248466120364343333",view_count:1752,collect_count:32,digg_count:22,comment_count:1,hot_index:110,is_hot:0,rank_index:.0020533,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:1,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1576,read_time:"5分钟"},{article_id:"7246657502842945597",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1465296be96f41f58e9a2c9a35551736~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之场景材质(三)",brief_content:"接上文# 3D数字孪生 - Three.js 场景光源(二)最后的问题: “为何已关闭场景中所有光源,仍然有些面是亮的呢?” 我们不妨近距离的观察一下,打开场景中的方向光 DirectionalLig",is_english:0,is_original:1,user_index:8.52173105363898,original_type:0,original_author:"",content:"",ctime:"1687251948",mtime:"1687335742",rtime:"1687335742",draft_id:"7246564869222580282",view_count:1869,collect_count:24,digg_count:13,comment_count:0,hot_index:106,is_hot:0,rank_index:.00191366,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:4,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1284,read_time:"4分钟"},{article_id:"7246316652048269373",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/638de6b1ba4b48bab0229b70095e718e~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之场景光源(二)",brief_content:'前言 接下来的项目实战讲解过程中,有必要多花几个篇幅介绍一下项目中用到的两个库。 "@react-three/drei": "^9.70.3", "@react-three/fiber": "^8.1',is_english:0,is_original:1,user_index:9.158795645897236,original_type:0,original_author:"",content:"",ctime:"1687179552",mtime:"1687331693",rtime:"1687239614",draft_id:"7246311040267370556",view_count:1414,collect_count:19,digg_count:10,comment_count:2,hot_index:82,is_hot:0,rank_index:.00151119,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1143,read_time:"4分钟"},{article_id:"7244894506305536057",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640357354013e3,6809640407484334e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/6dac5e4b92d048409629828852b2d79d~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1919&h=959&s=1380008&e=png&b=e0dede",is_gfw:0,title:"3D数字孪生 - Three.js 项目介绍与基础环境搭建(一)",brief_content:"3D数字孪生,生成3D可视化仓库地图,实时监控仓库库位坐标、调度任务状态、车辆位置等信息。 根据调度信息,动态展现小车任务状态",is_english:0,is_original:1,user_index:8.905619350311529,original_type:0,original_author:"",content:"",ctime:"1686886155",mtime:"1702997867",rtime:"1686908640",draft_id:"7244785030567886907",view_count:9415,collect_count:186,digg_count:86,comment_count:33,hot_index:589,is_hot:0,rank_index:.00966501,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:10,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1859,read_time:"6分钟"},{article_id:"7235027795393462333",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640497393435e3],visible_level:0,link_url:"",cover_image:"",is_gfw:0,title:"konva绘制图像标定",brief_content:"视频流标定工具,矩形与多边形绘制。仓库地图动态标注摄像机位置。konva.js konva-react实战",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1684553355",mtime:"1684571408",rtime:"1684571408",draft_id:"7234887157000454202",view_count:1418,collect_count:9,digg_count:2,comment_count:2,hot_index:74,is_hot:0,rank_index:.00101618,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:3,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1222,read_time:"4分钟"},{article_id:"7235027795393462333",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640497393435e3],visible_level:0,link_url:"",cover_image:"",is_gfw:0,title:"konva绘制图像标定",brief_content:"视频流标定工具,矩形与多边形绘制。仓库地图动态标注摄像机位置。konva.js konva-react实战",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1684553355",mtime:"1684571408",rtime:"1684571408",draft_id:"7234887157000454202",view_count:1418,collect_count:9,digg_count:2,comment_count:2,hot_index:74,is_hot:0,rank_index:.00101618,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:3,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1222,read_time:"4分钟"}],table=[{url:"/api/table/getTableList",timeout:200,method:"get",response:({query:o})=>{const{current:a=1,pageSize:s=10}=o;return resultPageSuccess(a,s,genList$1())}},{url:"/api/article/queryList",timeout:200,method:"post",response:({body:o,headers:a,query:s})=>{const{current:c=1,pageSize:f=10}=o;return resultPageSuccess(c,f,articleListData)}}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:table},Symbol.toStringTag,{value:"Module"}));mockExports.Random.cparagraph(),mockExports.Random.cparagraph(),mockExports.Random.cparagraph();const DASHBOARD_PERMISSION={id:"9100714781927703",parentId:"",label:"sys.menu.dashboard",name:"Dashboard",icon:"ic-analysis",type:PermissionType.CATALOGUE,route:"dashboard",order:1,children:[{id:"8426999229400979",parentId:"9100714781927703",label:"sys.menu.workbench",name:"Workbench",type:PermissionType.MENU,route:"workbench",component:"/dashboard/workbench/index.tsx"},{id:"9710971640510357",parentId:"9100714781927703",label:"sys.menu.analysis",name:"Analysis",type:PermissionType.MENU,route:"analysis",component:"/dashboard/analysis/index.tsx"}]},MANAGEMENT_PERMISSION={id:"0901673425580518",parentId:"",label:"sys.menu.management",name:"Management",icon:"ic-management",type:PermissionType.CATALOGUE,route:"management",order:2,children:[{id:"2781684678535711",parentId:"0901673425580518",label:"sys.menu.user.index",name:"User",type:PermissionType.CATALOGUE,route:"user",children:[{id:"4754063958766648",parentId:"2781684678535711",label:"sys.menu.user.profile",name:"Profile",type:PermissionType.MENU,route:"profile",component:"/management/user/profile/index.tsx"},{id:"2516598794787938",parentId:"2781684678535711",label:"sys.menu.user.account",name:"Account",type:PermissionType.MENU,route:"account",component:"/management/user/account/index.tsx"}]},{id:"0249937641030250",parentId:"0901673425580518",label:"sys.menu.system.index",name:"System",type:PermissionType.CATALOGUE,route:"system",children:[{id:"1985890042972842",parentId:"0249937641030250",label:"sys.menu.system.organization",name:"Organization",type:PermissionType.MENU,route:"organization",component:"/management/system/organization/index.tsx"},{id:"4359580910369984",parentId:"0249937641030250",label:"sys.menu.system.permission",name:"Permission",type:PermissionType.MENU,route:"permission",component:"/management/system/permission/index.tsx"},{id:"1689241785490759",parentId:"0249937641030250",label:"sys.menu.system.role",name:"Role",type:PermissionType.MENU,route:"role",component:"/management/system/role/index.tsx"},{id:"0157880245365433",parentId:"0249937641030250",label:"sys.menu.system.user",name:"User",type:PermissionType.MENU,route:"user",component:"/management/system/user/index.tsx"}]}]},COMPONENTS_PERMISSION={id:"2271615060673773",parentId:"",label:"sys.menu.components",name:"Components",icon:"solar:widget-5-bold-duotone",type:PermissionType.CATALOGUE,route:"components",order:3,children:[{id:"2478488238255411",parentId:"2271615060673773",label:"sys.menu.icon",name:"Icon",type:PermissionType.MENU,route:"icon",component:"/components/icon/index.tsx"},{id:"6755238352318767",parentId:"2271615060673773",label:"sys.menu.animate",name:"Animate",type:PermissionType.MENU,route:"animate",component:"/components/animate/index.tsx"},{id:"9992476513546805",parentId:"2271615060673773",label:"sys.menu.scroll",name:"Scroll",type:PermissionType.MENU,route:"scroll",component:"/components/scroll/index.tsx"},{id:"1755562695856395",parentId:"2271615060673773",label:"sys.menu.markdown",name:"Markdown",type:PermissionType.MENU,route:"markdown",component:"/components/markdown/index.tsx"},{id:"2122547769468069",parentId:"2271615060673773",label:"sys.menu.editor",name:"Editor",type:PermissionType.MENU,route:"editor",component:"/components/editor/index.tsx"},{id:"2501920741714350",parentId:"2271615060673773",label:"sys.menu.i18n",name:"Multi Language",type:PermissionType.MENU,route:"i18n",component:"/components/multi-language/index.tsx"},{id:"2013577074467956",parentId:"2271615060673773",label:"sys.menu.upload",name:"upload",type:PermissionType.MENU,route:"Upload",component:"/components/upload/index.tsx"},{id:"7749726274771764",parentId:"2271615060673773",label:"sys.menu.chart",name:"Chart",type:PermissionType.MENU,route:"chart",component:"/components/chart/index.tsx"}]},FUNCTIONS_PERMISSION={id:"8132044808088488",parentId:"",label:"sys.menu.functions",name:"functions",icon:"solar:plain-2-bold-duotone",type:PermissionType.CATALOGUE,route:"functions",order:4,children:[{id:"3667930780705750",parentId:"8132044808088488",label:"sys.menu.clipboard",name:"Clipboard",type:PermissionType.MENU,route:"clipboard",component:"/functions/clipboard/index.tsx"}]},MENU_LEVEL_PERMISSION={id:"0194818428516575",parentId:"",label:"sys.menu.menulevel.index",name:"Menu Level",icon:"ic-menulevel",type:PermissionType.CATALOGUE,route:"menu-level",order:5,children:[{id:"0144431332471389",parentId:"0194818428516575",label:"sys.menu.menulevel.1a",name:"Menu Level 1a",type:PermissionType.MENU,route:"menu-level-1a",component:"/menu-level/menu-level-1a/index.tsx"},{id:"7572529636800586",parentId:"0194818428516575",label:"sys.menu.menulevel.1b.index",name:"Menu Level 1b",type:PermissionType.CATALOGUE,route:"menu-level-1b",children:[{id:"3653745576583237",parentId:"7572529636800586",label:"sys.menu.menulevel.1b.2a",name:"Menu Level 2a",type:PermissionType.MENU,route:"menu-level-2a",component:"/menu-level/menu-level-1b/menu-level-2a/index.tsx"},{id:"4873136353891364",parentId:"7572529636800586",label:"sys.menu.menulevel.1b.2b.index",name:"Menu Level 2b",type:PermissionType.CATALOGUE,route:"menu-level-2b",children:[{id:"4233029726998055",parentId:"4873136353891364",label:"sys.menu.menulevel.1b.2b.3a",name:"Menu Level 3a",type:PermissionType.MENU,route:"menu-level-3a",component:"/menu-level/menu-level-1b/menu-level-2b/menu-level-3a/index.tsx"},{id:"3298034742548454",parentId:"4873136353891364",label:"sys.menu.menulevel.1b.2b.3b",name:"Menu Level 3b",type:PermissionType.MENU,route:"menu-level-3b",component:"/menu-level/menu-level-1b/menu-level-2b/menu-level-3b/index.tsx"}]}]}]},ERRORS_PERMISSION={id:"9406067785553476",parentId:"",label:"sys.menu.error.index",name:"Error",icon:"bxs:error-alt",type:PermissionType.CATALOGUE,route:"error",order:6,children:[{id:"8557056851997154",parentId:"9406067785553476",label:"sys.menu.error.403",name:"403",type:PermissionType.MENU,route:"403",component:"/sys/error/Page403.tsx"},{id:"5095669208159005",parentId:"9406067785553476",label:"sys.menu.error.404",name:"404",type:PermissionType.MENU,route:"404",component:"/sys/error/Page404.tsx"},{id:"0225992135973772",parentId:"9406067785553476",label:"sys.menu.error.500",name:"500",type:PermissionType.MENU,route:"500",component:"/sys/error/Page500.tsx"}]},OTHERS_PERMISSION=[{id:"3981225257359246",parentId:"",label:"sys.menu.calendar",name:"Calendar",icon:"solar:calendar-bold-duotone",type:PermissionType.MENU,route:"calendar",component:"/sys/others/calendar/index.tsx"},{id:"3513985683886393",parentId:"",label:"sys.menu.kanban",name:"kanban",icon:"solar:clipboard-bold-duotone",type:PermissionType.MENU,route:"kanban",component:"/sys/others/kanban/index.tsx"},{id:"5455837930804461",parentId:"",label:"sys.menu.disabled",name:"Disabled",icon:"ic_disabled",type:PermissionType.MENU,route:"disabled",status:BasicStatus.DISABLE,component:"/sys/others/calendar/index.tsx"},{id:"7728048658221587",parentId:"",label:"sys.menu.label",name:"Label",icon:"ic_label",type:PermissionType.MENU,route:"label",newFeature:!0,component:"/sys/others/blank.tsx"},{id:"5733704222120995",parentId:"",label:"sys.menu.frame",name:"Frame",icon:"ic_external",type:PermissionType.CATALOGUE,route:"frame",children:[{id:"9884486809510480",parentId:"5733704222120995",label:"sys.menu.external_link",name:"External Link",type:PermissionType.MENU,route:"external_link",component:"/sys/others/iframe/external-link.tsx",frameSrc:"https://ant.design/"},{id:"9299640886731819",parentId:"5733704222120995",label:"sys.menu.iframe",name:"Iframe",type:PermissionType.MENU,route:"frame",component:"/sys/others/iframe/index.tsx",frameSrc:"https://ant.design/"}]},{id:"0941594969900756",parentId:"",label:"sys.menu.blank",name:"Disabled",icon:"ic_blank",type:PermissionType.MENU,route:"blank",component:"/sys/others/blank.tsx"}],PERMISSION_LIST=[DASHBOARD_PERMISSION,MANAGEMENT_PERMISSION,COMPONENTS_PERMISSION,FUNCTIONS_PERMISSION,MENU_LEVEL_PERMISSION,ERRORS_PERMISSION,...OTHERS_PERMISSION],ADMIN_ROLE={id:"4281707933534332",name:"Admin",label:"admin",status:BasicStatus.ENABLE,order:1,desc:"Super Admin",permission:PERMISSION_LIST},TEST_ROLE={id:"9931665660771476",name:"Test",label:"test",status:BasicStatus.ENABLE,order:2,desc:"test",permission:[DASHBOARD_PERMISSION,COMPONENTS_PERMISSION,FUNCTIONS_PERMISSION]},DEFAULT_USER={id:mockExports.Random.guid(),username:"admin",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",email:mockExports.Random.email(),createdAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),updatedAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),password:"123456",role:ADMIN_ROLE,token:"gbeataToken",permissions:ADMIN_ROLE.permission,homePath:"/home"},TEST_USER={id:mockExports.Random.guid(),username:"test",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",password:"123456",email:mockExports.Random.email(),token:"gbeataToken",createdAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),updatedAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),role:TEST_ROLE,permissions:TEST_ROLE.permission,homePath:"/home"},USER_LIST=[DEFAULT_USER,TEST_USER];function createFakeUserList(){return[{userId:"10000",username:"admin",realName:"react admin design",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",desc:"super admin",password:"123456",token:"gbeataToken",homePath:"/home"}]}const user=[{url:"/api/login",timeout:500,method:"post",response:({body:o})=>{const{username:a,password:s}=o,c=USER_LIST.find(f=>f.username===a);return c?resultSuccess(se({},c)):resultError("Incorrect account or password!")}},{url:"/api/getUserInfo",method:"get",response:o=>{const a=getRequestToken(o);if(!a)return resultError("Invalid token!");const s=createFakeUserList().find(c=>c.token===a);return s?resultSuccess(s):resultError("The corresponding user information was not obtained!")}},{url:"/api/logout",timeout:200,method:"get",response:o=>resultSuccess(void 0,{message:"Token has been destroyed!"})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,createFakeUserList,default:user},Symbol.toStringTag,{value:"Module"})),geFollwer=()=>Math.floor(Math.random()*4),getPosition=()=>{const o=["HR Manager","Data Observer","Frontend Engineer","Backend Engineer","Project Manager","QA Engineer","Fullstack Engineer","Registered Nurse","Business Analyst","Creative Director","Software Developer","Research Scientist"],a=Math.floor(Math.random()*o.length);return o[a]},genList=()=>{const o=[];for(let a=0;a<100;a+=1){const s=a<10?`0${a}`:a;o.push({id:+`10${s}`+1,name:mockExports.Random.name(),position:getPosition(),sex:["男","女"][Number(mockExports.Random.boolean())],follwer:geFollwer(),mits:Math.floor(Math.random()*10),forbid:mockExports.Random.boolean()})}return o},userList=[{url:"/api/user/getUserList",timeout:200,method:"get",response:({query:o})=>{const{current:a=1,pageSize:s=10}=o;return resultPageSuccess(a,s,genList())}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:userList},Symbol.toStringTag,{value:"Module"}));function lexer(o){for(var a=[],s=0;s=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||y===95){f+=o[d++];continue}break}if(!f)throw new TypeError("Missing parameter name at ".concat(s));a.push({type:"NAME",index:s,value:f}),s=d;continue}if(c==="("){var _=1,S="",d=s+1;if(o[d]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(d));for(;d)?(?!\?)/g,c=0,f=s.exec(o.source);f;)a.push({name:f[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),f=s.exec(o.source);return o}function arrayToRegexp(o,a,s){var c=o.map(function(f){return pathToRegexp(f,a,s).source});return new RegExp("(?:".concat(c.join("|"),")"),flags(s))}function stringToRegexp(o,a,s){return tokensToRegexp(parse(o,s),a,s)}function tokensToRegexp(o,a,s){s===void 0&&(s={});for(var c=s.strict,f=c===void 0?!1:c,d=s.start,y=d===void 0?!0:d,_=s.end,S=_===void 0?!0:_,b=s.encode,$=b===void 0?function(W){return W}:b,P=s.delimiter,T=P===void 0?"/#?":P,C=s.endsWith,O=C===void 0?"":C,A="[".concat(escapeString(O),"]|$"),F="[".concat(escapeString(T),"]"),j=y?"^":"",I=0,M=o;I-1:G===void 0;f||(j+="(?:".concat(F,"(?=").concat(A,"))?")),X||(j+="(?=".concat(F,"|").concat(A,")"))}return new RegExp(j,flags(s))}function pathToRegexp(o,a,s){return o instanceof RegExp?regexpToRegexp(o,a):Array.isArray(o)?arrayToRegexp(o,a,s):stringToRegexp(o,a,s)}const Mock=mockJs;function createProdMockServer(o){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const a={};for(let s in this.custom.requestHeaders)a[s.toString().toLowerCase()]=this.custom.requestHeaders[s];this.custom.options=Object.assign({},this.custom.options,{headers:a})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let a=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&a&&(this.custom.xhr.responseType=a)};for(const{url:a,method:s,response:c,timeout:f}of o)__setupMock__(f),Mock.mock(pathToRegexp(a,void 0,{end:!1}),s||"get",__XHR2ExpressReqWrapper__(c))}function __param2Obj__(o){const a=o.split("?")[1];return a?JSON.parse('{"'+decodeURIComponent(a).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__(o){return function(a){let s=null;if(typeof o=="function"){const{body:c,type:f,url:d,headers:y}=a;let _=c;try{_=JSON.parse(c)}catch(S){}s=o({method:f,body:_,query:__param2Obj__(d),headers:y})}else s=o;return Mock.mock(s)}}function __setupMock__(o=0){o&&Mock.setup({timeout:o})}const modules=Object.assign({"../mock/data/table.ts":__vite_glob_0_0,"../mock/data/user.ts":__vite_glob_0_1,"../mock/data/userList.ts":__vite_glob_0_2}),mockModules=[];Object.keys(modules).forEach(o=>{if(o.includes("/_"))return;const a=modules[o].default||{},s=Array.isArray(a)?[...a]:[a];mockModules.push(...s)});function setupProdMockServer(){createProdMockServer(mockModules)}const queryClient=new QueryClient({defaultOptions:{queries:{refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:3,staleTime:5*60*1e3,gcTime:5*60*1e3}}});client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React$4.StrictMode,{children:jsxRuntimeExports.jsx(Provider,{store,children:jsxRuntimeExports.jsx(PersistGate,{persistor,children:jsxRuntimeExports.jsxs(QueryClientProvider,{client:queryClient,children:[jsxRuntimeExports.jsx(ReactQueryDevtools2,{initialIsOpen:!1}),jsxRuntimeExports.jsx(App,{})]})})})}));setupProdMockServer();export{useUnmount$1 as A,useContextBridge as B,createRoot as C,getJueJinList as D,useTranslation as E,FiberProvider as F,GDialog as G,useStyles$a as H,FORM_TYPE_DATE as I,FORM_TYPE_DATE_RANGE as J,SvgIcon$1 as K,__assign as L,isBrowser$1 as M,throttle$3 as N,__awaiter as O,__generator as P,__rest as Q,useMemoizedFn as R,SvgIcon as S,getUsersList as T,__spreadArray as _,animated as a,Slider as b,cloneDeep as c,convertChildrenToField as d,GForm as e,omitObj as f,GButton as g,getKey as h,GAction as i,getDefaultValue as j,GSearchTableContext as k,locale as l,GTable as m,isObj as n,openWindow as o,propTypesExports as p,optionObj as q,require$$3 as r,getActionProps as s,t,useSpring as u,isDev$1 as v,isFunction$1 as w,useLatest as x,debounce$3 as y,__read as z}; +*/var $={Handler:c,Random:d,Util:f,XHR:b,RE:y,toJSONSchema:_,valid:S,heredoc:f.heredoc,setup:function(P){return b.setup(P)},_mocked:{}};$.version="1.0.1-beta3",b&&(b.Mock=$),$.mock=function(P,T,C){return arguments.length===1?c.gen(P):(arguments.length===2&&(C=T,T=void 0),b&&(window.XMLHttpRequest=b),$._mocked[P+(T||"")]={rurl:P,rtype:T,template:C},$)},o.exports=$},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(o,a,s){a=a==null?"":a+"",s=s||{},s={path:s.path||[Constant.GUID],templatePath:s.templatePath||[Constant.GUID++],currentContext:s.currentContext,templateCurrentContext:s.templateCurrentContext||o,root:s.root||s.currentContext,templateRoot:s.templateRoot||s.templateCurrentContext||o};var c=Parser.parse(a),f=Util.type(o),d;return Handler[f]?(d=Handler[f]({type:f,template:o,name:a,parsedName:a&&a.replace(Constant.RE_KEY,"$1"),rule:c,context:s}),s.root||(s.root=d),d):o},Handler.extend({array:function(o){var a=[],s,c;if(o.template.length===0)return a;if(o.rule.parameters)if(o.rule.min===1&&o.rule.max===void 0)o.context.path.push(o.name),o.context.templatePath.push(o.name),a=Random.pick(Handler.gen(o.template,void 0,{path:o.context.path,templatePath:o.context.templatePath,currentContext:a,templateCurrentContext:o.template,root:o.context.root||a,templateRoot:o.context.templateRoot||o.template})),o.context.path.pop(),o.context.templatePath.pop();else if(o.rule.parameters[2])o.template.__order_index=o.template.__order_index||0,o.context.path.push(o.name),o.context.templatePath.push(o.name),a=Handler.gen(o.template,void 0,{path:o.context.path,templatePath:o.context.templatePath,currentContext:a,templateCurrentContext:o.template,root:o.context.root||a,templateRoot:o.context.templateRoot||o.template})[o.template.__order_index%o.template.length],o.template.__order_index+=+o.rule.parameters[2],o.context.path.pop(),o.context.templatePath.pop();else for(s=0;s1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(f=a.context.path.slice(0),f.pop(),f=this.normalizePath(f.concat(c)));try{o=c[c.length-1];for(var d=a.context.root,y=a.context.templateRoot,_=1;_1/(s+c)*s?!f:f):Math.random()>=.5},bool:function(s,c,f){return this.boolean(s,c,f)},natural:function(s,c){return s=typeof s!="undefined"?parseInt(s,10):0,c=typeof c!="undefined"?parseInt(c,10):9007199254740992,Math.round(Math.random()*(c-s))+s},integer:function(s,c){return s=typeof s!="undefined"?parseInt(s,10):-9007199254740992,c=typeof c!="undefined"?parseInt(c,10):9007199254740992,Math.round(Math.random()*(c-s))+s},int:function(s,c){return this.integer(s,c)},float:function(s,c,f,d){f=f===void 0?0:f,f=Math.max(Math.min(f,17),0),d=d===void 0?17:d,d=Math.max(Math.min(d,17),0);for(var y=this.integer(s,c)+".",_=0,S=this.natural(f,d);_1&&b--,6*b<1?P=_+(S-_)*6*b:2*b<1?P=S:3*b<2?P=_+(S-_)*(2/3-b)*6:P=_,$[T]=P*255;return $},hsl2hsv:function(c){var f=c[0],d=c[1]/100,y=c[2]/100,_,S;return y*=2,d*=y<=1?y:2-y,S=(y+d)/2,_=2*d/(y+d),[f,_*100,S*100]},hsv2rgb:function(c){var f=c[0]/60,d=c[1]/100,y=c[2]/100,_=Math.floor(f)%6,S=f-Math.floor(f),b=255*y*(1-d),$=255*y*(1-d*S),P=255*y*(1-d*(1-S));switch(y=255*y,_){case 0:return[y,P,b];case 1:return[$,y,b];case 2:return[b,y,P];case 3:return[b,$,y];case 4:return[P,b,y];case 5:return[y,b,$]}},hsv2hsl:function(c){var f=c[0],d=c[1]/100,y=c[2]/100,_,S;return S=(2-d)*y,_=d*y,_/=S<=1?S:2-S,S/=2,[f,_*100,S*100]},rgb2hex:function(s,c,f){return"#"+((256+s<<8|c)<<8|f).toString(16).slice(1)},hex2rgb:function(s){return s="0x"+s.slice(1).replace(s.length>4?s:/./g,"$&$&")|0,[s>>16,s>>8&255,s&255]}}},function(o,a){o.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(o,a,s){var c=s(6),f=s(14);function d(y,_,S,b){return S===void 0?c.natural(y,_):b===void 0?S:c.natural(parseInt(S,10),parseInt(b,10))}o.exports={paragraph:function(y,_){for(var S=d(3,7,y,_),b=[],$=0;$1&&(d=[].slice.call(arguments,0));var y=f.options,_=y.context.templatePath.join("."),S=f.cache[_]=f.cache[_]||{index:0,array:d};return S.array[S.index++%S.array.length]}}},function(o,a){o.exports={first:function(){var s=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(s)},last:function(){var s=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(s)},name:function(s){return this.first()+" "+(s?this.first()+" ":"")+this.last()},cfirst:function(){var s="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(s)},clast:function(){var s="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(s)},cname:function(){return this.cfirst()+this.clast()}}},function(o,a){o.exports={url:function(s,c){return(s||this.protocol())+"://"+(c||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(s){return this.word()+"."+(s||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(s){return this.character("lower")+"."+this.word()+"@"+(s||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(o,a,s){var c=s(18),f=["东北","华北","华东","华中","华南","西南","西北"];o.exports={region:function(){return this.pick(f)},province:function(){return this.pick(c).name},city:function(d){var y=this.pick(c),_=this.pick(y.children);return d?[y.name,_.name].join(" "):_.name},county:function(d){var y=this.pick(c),_=this.pick(y.children),S=this.pick(_.children)||{name:"-"};return d?[y.name,_.name,S.name].join(" "):S.name},zip:function(d){for(var y="",_=0;_<(d||6);_++)y+=this.natural(0,9);return y}}},function(o,a){var s={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function c(d){for(var y={},_=0,S;_jt;jt++)nn=H.charAt(jt),nn===` +`?(Se.seenCR||Se.line++,Se.column=1,Se.seenCR=!1):nn==="\r"||nn==="\u2028"||nn==="\u2029"?(Se.line++,Se.column=1,Se.seenCR=!0):(Se.column++,Se.seenCR=!1)}return Br!==B&&(Br>B&&(Br=0,rn={line:1,column:1,seenCR:!1}),Y(rn,Br,B),Br=B),rn}function K(B){In>oe||(oe>In&&(In=oe,Ln=[]),Ln.push(B))}function ie(B){var Y=0;for(B.sort();Yoe?(Se=H.charAt(oe),oe++):(Se=null,we===0&&K(Mn)),Se!==null?(Le=B,Y=en(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)):(oe=B,B=Fe),B}function pt(){var B,Y,Se;return B=oe,H.charCodeAt(oe)===92?(Y=fi,oe++):(Y=null,we===0&&K(di)),Y!==null?(Va.test(H.charAt(oe))?(Se=H.charAt(oe),oe++):(Se=null,we===0&&K(ia)),Se!==null?(Le=B,Y=aa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)):(oe=B,B=Fe),B}function ar(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===yr?(Y=yr,oe+=2):(Y=null,we===0&&K(kt)),Y!==null){if(Se=[],Tr.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(hi)),Re!==null)for(;Re!==null;)Se.push(Re),Tr.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(hi));else Se=Fe;Se!==null?(Le=B,Y=Wa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)}else oe=B,B=Fe;return B}function $n(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===Jt?(Y=Jt,oe+=2):(Y=null,we===0&&K(Or)),Y!==null){if(Se=[],tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Fn)),Re!==null)for(;Re!==null;)Se.push(Re),tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Fn));else Se=Fe;Se!==null?(Le=B,Y=vr(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)}else oe=B,B=Fe;return B}function wa(){var B,Y,Se,Re;if(B=oe,H.substr(oe,2)===_r?(Y=_r,oe+=2):(Y=null,we===0&&K(pi)),Y!==null){if(Se=[],tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Fn)),Re!==null)for(;Re!==null;)Se.push(Re),tn.test(H.charAt(oe))?(Re=H.charAt(oe),oe++):(Re=null,we===0&&K(Fn));else Se=Fe;Se!==null?(Le=B,Y=qa(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)}else oe=B,B=Fe;return B}function Pa(){var B,Y;return B=oe,H.substr(oe,2)===yr?(Y=yr,oe+=2):(Y=null,we===0&&K(kt)),Y!==null&&(Le=B,Y=gi()),Y===null&&(oe=B),B=Y,B}function Ta(){var B,Y,Se;return B=oe,H.charCodeAt(oe)===92?(Y=fi,oe++):(Y=null,we===0&&K(di)),Y!==null?(H.length>oe?(Se=H.charAt(oe),oe++):(Se=null,we===0&&K(Mn)),Se!==null?(Le=B,Y=Ki(Se),Y===null&&(oe=B),B=Y):(oe=B,B=Fe)):(oe=B,B=Fe),B}var Yn,wn=arguments.length>1?arguments[1]:{},Oa={regexp:ee},Xn=ee,Fe=null,Dr="",Oo="|",Co='"|"',Ro=function(B,Y){return Y?new c(B,Y[1]):B},Ca=function(B,Y,Se){return new f([B].concat(Y).concat([Se]))},Qn="^",Ra='"^"',Ao=function(){return new s("start")},Jn="$",Mo='"$"',Fo=function(){return new s("end")},Io=function(B,Y){return new _(B,Y)},Lo="Quantifier",No=function(B,Y){return Y&&(B.greedy=!1),B},ki="{",ji='"{"',ko=",",jo='","',Aa="}",Ma='"}"',Do=function(B,Y){return new S(B,Y)},Fa=",}",Uo='",}"',Di=function(B){return new S(B,1/0)},Pn=function(B){return new S(B,B)},Ui="+",zi='"+"',zo=function(){return new S(1,1/0)},Bi="*",Xr='"*"',Er=function(){return new S(0,1/0)},rt="?",tt='"?"',$r=function(){return new S(0,1)},gt=/^[0-9]/,wt="[0-9]",Ur=function(B){return+B.join("")},Qr="(",Ot='"("',Zn=")",Ia='")"',La=function(B){return B},ei=function(B){return new y(B)},Hi="?:",Yt='"?:"',Bo=function(B){return new d("non-capture-group",B)},Na="?=",Ho='"?="',ti=function(B){return new d("positive-lookahead",B)},Tn="?!",On='"?!"',ri=function(B){return new d("negative-lookahead",B)},Go="CharacterSet",Vo="[",Gi='"["',ka="]",Vi='"]"',Cn=function(B,Y){return new b(!!B,Y)},Wo="CharacterRange",Wi="-",Qe='"-"',ja=function(B,Y){return new $(B,Y)},qi="Character",Da=/^[^\\\]]/,qo="[^\\\\\\]]",Ki=function(B){return new P(B)},dt=".",Yi='"."',Ko=function(){return new s("any-character")},Xi="Literal",Yo=/^[^|\\\/.[()?+*$\^]/,ni="[^|\\\\\\/.[()?+*$\\^]",Lt="\\b",Ua='"\\\\b"',Xo=function(){return new s("backspace")},Xt=function(){return new s("word-boundary")},or="\\B",ii='"\\\\B"',Qi=function(){return new s("non-word-boundary")},Ji="\\d",Qo='"\\\\d"',sr=function(){return new s("digit")},zr="\\D",Jr='"\\\\D"',ai=function(){return new s("non-digit")},Rn="\\f",zt='"\\\\f"',Bt=function(){return new s("form-feed")},wr="\\n",gr='"\\\\n"',mr=function(){return new s("line-feed")},Pr="\\r",za='"\\\\r"',Zi=function(){return new s("carriage-return")},oi="\\s",Nt='"\\\\s"',Ht=function(){return new s("white-space")},nt="\\S",An='"\\\\S"',Qt=function(){return new s("non-white-space")},ea="\\t",Ba='"\\\\t"',ta=function(){return new s("tab")},si="\\v",Ha='"\\\\v"',li=function(){return new s("vertical-tab")},ra="\\w",Zr='"\\\\w"',na=function(){return new s("word")},Ga="\\W",ui='"\\\\W"',Jo=function(){return new s("non-word")},Gt="\\c",ci='"\\\\c"',Mn="any character",en=function(B){return new F(B)},fi="\\",di='"\\\\"',Va=/^[1-9]/,ia="[1-9]",aa=function(B){return new A(B)},yr="\\0",kt='"\\\\0"',Tr=/^[0-7]/,hi="[0-7]",Wa=function(B){return new O(B.join(""))},Jt="\\x",Or='"\\\\x"',tn=/^[0-9a-fA-F]/,Fn="[0-9a-fA-F]",vr=function(B){return new C(B.join(""))},_r="\\u",pi='"\\\\u"',qa=function(B){return new T(B.join(""))},gi=function(){return new s("null-character")},oe=0,Le=0,Br=0,rn={line:1,column:1,seenCR:!1},In=0,Ln=[],we=0;if("startRule"in wn){if(!(wn.startRule in Oa))throw new Error(`Can't start parsing from rule "`+wn.startRule+'".');Xn=Oa[wn.startRule]}if(s.offset=X,s.text=G,Yn=Xn(),Yn!==null&&oe===H.length)return Yn;throw ie(Ln),Le=Math.max(oe,In),new U(Ln,LeT)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is greater than",message:O};return A.message=S.message(A),C.push(A),!1},lessThan:function(b,$,P,T,C,O){if(P=T)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is greater than or equal to",message:O};return A.message=S.message(A),C.push(A),!1},lessThanOrEqualTo:function(b,$,P,T,C,O){if(P<=T)return!0;var A={path:$,type:b,actual:P,expected:T,action:"is less than or equal to",message:O};return A.message=S.message(A),C.push(A),!1}};y.Diff=_,y.Assert=S,o.exports=y},function(o,a,s){o.exports=s(28)},function(o,a,s){var c=s(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch(C){window.Event=function(O,A,F,j){var L=document.createEvent("CustomEvent");return L.initCustomEvent(O,A,F,j),L}}var f={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d="readystatechange loadstart progress abort error load timeout loadend".split(" "),y="timeout withCredentials".split(" "),_="readyState responseURL status statusText responseType response responseText responseXML".split(" "),S={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function b(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}b._settings={timeout:"10-100"},b.setup=function(C){return c.extend(b._settings,C),b._settings},c.extend(b,f),c.extend(b.prototype,f),b.prototype.mock=!0,b.prototype.match=!1,c.extend(b.prototype,{open:function(C,O,A,F,j){var L=this;c.extend(this.custom,{method:C,url:O,async:typeof A=="boolean"?A:!0,username:F,password:j,options:{url:O,type:C}}),this.custom.timeout=function(G){if(typeof G=="number")return G;if(typeof G=="string"&&!~G.indexOf("-"))return parseInt(G,10);if(typeof G=="string"&&~G.indexOf("-")){var X=G.split("-"),W=parseInt(X[0],10),K=parseInt(X[1],10);return Math.round(Math.random()*(K-W))+W}}(b._settings.timeout);var M=P(this.custom.options);function I(G){for(var X=0;X<_.length;X++)try{L[_[X]]=U[_[X]]}catch(W){}L.dispatchEvent(new Event(G.type))}if(!M){var U=$();this.custom.xhr=U;for(var z=0;z=s.length?s.slice(c,s.length):s.slice(c,c+Number(a))}function resultPageSuccess(o,a,s,{message:c="ok"}={}){const f=pagination(o,a,s);return $e(se({},resultSuccess({list:f,total:s.length})),{message:c})}const getPhone=()=>{const o=[135,136,137,138,139,155,158,183,185,189],a=Math.floor(Math.random()*10),s=o[a]+Math.random().toString().slice(-8);return Number(s)},getEducation=()=>{const o=["小学","初中","高中","专科","本科","研究生"],a=Math.floor(Math.random()*o.length);return o[a]},getMarried=()=>Math.floor(Math.random()*4),getHobby=()=>{const o=[],a=["羽毛球","乒乓球","篮球","排球","网球","游泳","滑雪","跳高","滑翔","潜水"],s=[3,4][Number(mockExports.Random.boolean())];for(let c=0;c{const o=[];for(let a=0;a<100;a++){const s=a<10?"0"+a:a;o.push({id:+`10${s}`+1,name:mockExports.Random.cname(),sex:["男","女"][Number(mockExports.Random.boolean())],phone:getPhone(),education:getEducation(),married:getMarried(),forbid:mockExports.Random.boolean(),hobby:getHobby()})}return o},articleListData=[{article_id:"7303048156967026714",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640407484334e3,6809640419505209e3,6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/84274f1176744240b47471a79d920a2f~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1276&h=638&s=1250001&e=gif&f=46&b=d3d9dc",is_gfw:0,title:"3D数字孪生 - 智能仓储管理平台-开源啦💐",brief_content:" 截止目前,相信你在社区上很难找到开源且真正对前期的你学习有帮助的案例和文章,之所以做这类分享,纯粹的是用爱发电,新的领域学习,让我痛苦的度过了好多个夜晚,值得庆幸自己的思路和计划都能按照设想的方案实",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1700465692",mtime:"1700532628",rtime:"-62135596800",draft_id:"7302787905043693577",view_count:397,collect_count:5,digg_count:7,comment_count:0,hot_index:26,is_hot:0,rank_index:12e-8,status:1,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:4,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1012,read_time:"3分钟"},{article_id:"7299709109879324691",user_id:"2682464101469480",category_id:"6809637776263217160",tag_ids:[6809640407484334e3,6809640402103042e3,6809640419505209e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/941af6d2401c4600b2867fc314dbbeaf~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1886&h=1186&s=505219&e=png&b=260947",is_gfw:0,title:"仿mac系统交互设计的车载Pad操作系统",brief_content:"时隔100天,我又来水文了!3D数字孪生的系列好多小伙伴都感兴趣,项目在10月就已经完结了,后续我会将继续补充如何完整的做完一个3D数字孪生项目",is_english:0,is_original:1,user_index:11.437480020762536,original_type:0,original_author:"",content:"",ctime:"1699636366",mtime:"1699778058",rtime:"1699778058",draft_id:"7299506825875226661",view_count:2077,collect_count:10,digg_count:15,comment_count:2,hot_index:120,is_hot:0,rank_index:.01209184,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1841,read_time:"6分钟"},{article_id:"7256964915133694008",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640407484334e3,6809640404791591e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/b5542f51a3274f8791ce1d8257dc4039~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"制造业领域,我是如何被逼到做顶级架构设计的",brief_content:"什么是顶级?还是澄清下吧; 这里的顶级并非说“最牛&”、最高档次,而指的是在开发一个复杂系统或软件时的最高层次设计的过程。 接下来,我要介绍的是,我是如何被逼到从单业务系统到系统与系统层面的顶级设计。",is_english:0,is_original:1,user_index:10.070339420019154,original_type:0,original_author:"",content:"",ctime:"1689652100",mtime:"1689668573",rtime:"1689668573",draft_id:"7255491496831631416",view_count:1404,collect_count:21,digg_count:19,comment_count:6,hot_index:95,is_hot:0,rank_index:.00212567,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:2360,read_time:"8分钟"},{article_id:"7250318500882432057",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640525595935e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/3727534baa6a478e9bbcb30d7472d40f~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之相机控制器(五)",brief_content:"机器学习 oz@0xozram 9号在twitter上发了这样的一个短视频: 当然,这属于机器学习领域的内容,也就是大名鼎鼎的 google 在2015开源的 tensorflow,TensorFlo",is_english:0,is_original:1,user_index:9.463944942479607,original_type:0,original_author:"",content:"",ctime:"1688108878",mtime:"1688831884",rtime:"1688831884",draft_id:"7249765949742530597",view_count:2280,collect_count:24,digg_count:16,comment_count:5,hot_index:135,is_hot:0,rank_index:.0027185,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:1,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1808,read_time:"6分钟"},{article_id:"7248545082130169893",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640497393435e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/05bba1c501124628a6bd11dc7f93a96a~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之相机(四)",brief_content:"承上 在第一篇# 3D数字孪生 - Three.js 项目介绍与基础环境搭建(一)有介绍,在使用 three/filber 的Canvas组件时,默认情况下,会自动添加初始化一个透视相机(Perspe",is_english:0,is_original:1,user_index:9.01959424539129,original_type:0,original_author:"",content:"",ctime:"1687694967",mtime:"1687748103",rtime:"1687748103",draft_id:"7248466120364343333",view_count:1752,collect_count:32,digg_count:22,comment_count:1,hot_index:110,is_hot:0,rank_index:.0020533,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:1,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1576,read_time:"5分钟"},{article_id:"7246657502842945597",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1465296be96f41f58e9a2c9a35551736~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之场景材质(三)",brief_content:"接上文# 3D数字孪生 - Three.js 场景光源(二)最后的问题: “为何已关闭场景中所有光源,仍然有些面是亮的呢?” 我们不妨近距离的观察一下,打开场景中的方向光 DirectionalLig",is_english:0,is_original:1,user_index:8.52173105363898,original_type:0,original_author:"",content:"",ctime:"1687251948",mtime:"1687335742",rtime:"1687335742",draft_id:"7246564869222580282",view_count:1869,collect_count:24,digg_count:13,comment_count:0,hot_index:106,is_hot:0,rank_index:.00191366,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:4,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1284,read_time:"4分钟"},{article_id:"7246316652048269373",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3],visible_level:0,link_url:"",cover_image:"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/638de6b1ba4b48bab0229b70095e718e~tplv-k3u1fbpfcp-watermark.image?",is_gfw:0,title:"3D数字孪生 - Three.js 项目实战之场景光源(二)",brief_content:'前言 接下来的项目实战讲解过程中,有必要多花几个篇幅介绍一下项目中用到的两个库。 "@react-three/drei": "^9.70.3", "@react-three/fiber": "^8.1',is_english:0,is_original:1,user_index:9.158795645897236,original_type:0,original_author:"",content:"",ctime:"1687179552",mtime:"1687331693",rtime:"1687239614",draft_id:"7246311040267370556",view_count:1414,collect_count:19,digg_count:10,comment_count:2,hot_index:82,is_hot:0,rank_index:.00151119,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:2,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1143,read_time:"4分钟"},{article_id:"7244894506305536057",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640793381274e3,6809640357354013e3,6809640407484334e3],visible_level:0,link_url:"",cover_image:"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/6dac5e4b92d048409629828852b2d79d~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1919&h=959&s=1380008&e=png&b=e0dede",is_gfw:0,title:"3D数字孪生 - Three.js 项目介绍与基础环境搭建(一)",brief_content:"3D数字孪生,生成3D可视化仓库地图,实时监控仓库库位坐标、调度任务状态、车辆位置等信息。 根据调度信息,动态展现小车任务状态",is_english:0,is_original:1,user_index:8.905619350311529,original_type:0,original_author:"",content:"",ctime:"1686886155",mtime:"1702997867",rtime:"1686908640",draft_id:"7244785030567886907",view_count:9415,collect_count:186,digg_count:86,comment_count:33,hot_index:589,is_hot:0,rank_index:.00966501,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:10,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1859,read_time:"6分钟"},{article_id:"7235027795393462333",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640497393435e3],visible_level:0,link_url:"",cover_image:"",is_gfw:0,title:"konva绘制图像标定",brief_content:"视频流标定工具,矩形与多边形绘制。仓库地图动态标注摄像机位置。konva.js konva-react实战",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1684553355",mtime:"1684571408",rtime:"1684571408",draft_id:"7234887157000454202",view_count:1418,collect_count:9,digg_count:2,comment_count:2,hot_index:74,is_hot:0,rank_index:.00101618,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:3,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1222,read_time:"4分钟"},{article_id:"7235027795393462333",user_id:"2682464101469480",category_id:"6809637767543259144",tag_ids:[6809640497393435e3],visible_level:0,link_url:"",cover_image:"",is_gfw:0,title:"konva绘制图像标定",brief_content:"视频流标定工具,矩形与多边形绘制。仓库地图动态标注摄像机位置。konva.js konva-react实战",is_english:0,is_original:1,user_index:0,original_type:0,original_author:"",content:"",ctime:"1684553355",mtime:"1684571408",rtime:"1684571408",draft_id:"7234887157000454202",view_count:1418,collect_count:9,digg_count:2,comment_count:2,hot_index:74,is_hot:0,rank_index:.00101618,status:2,verify_status:1,audit_status:2,mark_content:"",display_count:0,is_markdown:1,app_html_content:"",version:3,web_html_content:null,meta_info:null,catalog:null,homepage_top_time:-62135596800,homepage_top_status:0,content_count:1222,read_time:"4分钟"}],table=[{url:"/api/table/getTableList",timeout:200,method:"get",response:({query:o})=>{const{current:a=1,pageSize:s=10}=o;return resultPageSuccess(a,s,genList$1())}},{url:"/api/article/queryList",timeout:200,method:"post",response:({body:o,headers:a,query:s})=>{const{current:c=1,pageSize:f=10}=o;return resultPageSuccess(c,f,articleListData)}}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:table},Symbol.toStringTag,{value:"Module"}));mockExports.Random.cparagraph(),mockExports.Random.cparagraph(),mockExports.Random.cparagraph();const DASHBOARD_PERMISSION={id:"9100714781927703",parentId:"",label:"sys.menu.dashboard",name:"Dashboard",icon:"ic-analysis",type:PermissionType.CATALOGUE,route:"dashboard",order:1,children:[{id:"8426999229400979",parentId:"9100714781927703",label:"sys.menu.workbench",name:"Workbench",type:PermissionType.MENU,route:"workbench",component:"/dashboard/workbench/index.tsx"},{id:"9710971640510357",parentId:"9100714781927703",label:"sys.menu.analysis",name:"Analysis",type:PermissionType.MENU,route:"analysis",component:"/dashboard/analysis/index.tsx"}]},MANAGEMENT_PERMISSION={id:"0901673425580518",parentId:"",label:"sys.menu.management",name:"Management",icon:"ic-management",type:PermissionType.CATALOGUE,route:"management",order:2,children:[{id:"2781684678535711",parentId:"0901673425580518",label:"sys.menu.user.index",name:"User",type:PermissionType.CATALOGUE,route:"user",children:[{id:"4754063958766648",parentId:"2781684678535711",label:"sys.menu.user.profile",name:"Profile",type:PermissionType.MENU,route:"profile",component:"/management/user/profile/index.tsx"},{id:"2516598794787938",parentId:"2781684678535711",label:"sys.menu.user.account",name:"Account",type:PermissionType.MENU,route:"account",component:"/management/user/account/index.tsx"}]},{id:"0249937641030250",parentId:"0901673425580518",label:"sys.menu.system.index",name:"System",type:PermissionType.CATALOGUE,route:"system",children:[{id:"1985890042972842",parentId:"0249937641030250",label:"sys.menu.system.organization",name:"Organization",type:PermissionType.MENU,route:"organization",component:"/management/system/organization/index.tsx"},{id:"4359580910369984",parentId:"0249937641030250",label:"sys.menu.system.permission",name:"Permission",type:PermissionType.MENU,route:"permission",component:"/management/system/permission/index.tsx"},{id:"1689241785490759",parentId:"0249937641030250",label:"sys.menu.system.role",name:"Role",type:PermissionType.MENU,route:"role",component:"/management/system/role/index.tsx"},{id:"0157880245365433",parentId:"0249937641030250",label:"sys.menu.system.user",name:"User",type:PermissionType.MENU,route:"user",component:"/management/system/user/index.tsx"}]}]},COMPONENTS_PERMISSION={id:"2271615060673773",parentId:"",label:"sys.menu.components",name:"Components",icon:"solar:widget-5-bold-duotone",type:PermissionType.CATALOGUE,route:"components",order:3,children:[{id:"2478488238255411",parentId:"2271615060673773",label:"sys.menu.icon",name:"Icon",type:PermissionType.MENU,route:"icon",component:"/components/icon/index.tsx"},{id:"6755238352318767",parentId:"2271615060673773",label:"sys.menu.animate",name:"Animate",type:PermissionType.MENU,route:"animate",component:"/components/animate/index.tsx"},{id:"9992476513546805",parentId:"2271615060673773",label:"sys.menu.scroll",name:"Scroll",type:PermissionType.MENU,route:"scroll",component:"/components/scroll/index.tsx"},{id:"1755562695856395",parentId:"2271615060673773",label:"sys.menu.markdown",name:"Markdown",type:PermissionType.MENU,route:"markdown",component:"/components/markdown/index.tsx"},{id:"2122547769468069",parentId:"2271615060673773",label:"sys.menu.editor",name:"Editor",type:PermissionType.MENU,route:"editor",component:"/components/editor/index.tsx"},{id:"2501920741714350",parentId:"2271615060673773",label:"sys.menu.i18n",name:"Multi Language",type:PermissionType.MENU,route:"i18n",component:"/components/multi-language/index.tsx"},{id:"2013577074467956",parentId:"2271615060673773",label:"sys.menu.upload",name:"upload",type:PermissionType.MENU,route:"Upload",component:"/components/upload/index.tsx"},{id:"7749726274771764",parentId:"2271615060673773",label:"sys.menu.chart",name:"Chart",type:PermissionType.MENU,route:"chart",component:"/components/chart/index.tsx"}]},FUNCTIONS_PERMISSION={id:"8132044808088488",parentId:"",label:"sys.menu.functions",name:"functions",icon:"solar:plain-2-bold-duotone",type:PermissionType.CATALOGUE,route:"functions",order:4,children:[{id:"3667930780705750",parentId:"8132044808088488",label:"sys.menu.clipboard",name:"Clipboard",type:PermissionType.MENU,route:"clipboard",component:"/functions/clipboard/index.tsx"}]},MENU_LEVEL_PERMISSION={id:"0194818428516575",parentId:"",label:"sys.menu.menulevel.index",name:"Menu Level",icon:"ic-menulevel",type:PermissionType.CATALOGUE,route:"menu-level",order:5,children:[{id:"0144431332471389",parentId:"0194818428516575",label:"sys.menu.menulevel.1a",name:"Menu Level 1a",type:PermissionType.MENU,route:"menu-level-1a",component:"/menu-level/menu-level-1a/index.tsx"},{id:"7572529636800586",parentId:"0194818428516575",label:"sys.menu.menulevel.1b.index",name:"Menu Level 1b",type:PermissionType.CATALOGUE,route:"menu-level-1b",children:[{id:"3653745576583237",parentId:"7572529636800586",label:"sys.menu.menulevel.1b.2a",name:"Menu Level 2a",type:PermissionType.MENU,route:"menu-level-2a",component:"/menu-level/menu-level-1b/menu-level-2a/index.tsx"},{id:"4873136353891364",parentId:"7572529636800586",label:"sys.menu.menulevel.1b.2b.index",name:"Menu Level 2b",type:PermissionType.CATALOGUE,route:"menu-level-2b",children:[{id:"4233029726998055",parentId:"4873136353891364",label:"sys.menu.menulevel.1b.2b.3a",name:"Menu Level 3a",type:PermissionType.MENU,route:"menu-level-3a",component:"/menu-level/menu-level-1b/menu-level-2b/menu-level-3a/index.tsx"},{id:"3298034742548454",parentId:"4873136353891364",label:"sys.menu.menulevel.1b.2b.3b",name:"Menu Level 3b",type:PermissionType.MENU,route:"menu-level-3b",component:"/menu-level/menu-level-1b/menu-level-2b/menu-level-3b/index.tsx"}]}]}]},ERRORS_PERMISSION={id:"9406067785553476",parentId:"",label:"sys.menu.error.index",name:"Error",icon:"bxs:error-alt",type:PermissionType.CATALOGUE,route:"error",order:6,children:[{id:"8557056851997154",parentId:"9406067785553476",label:"sys.menu.error.403",name:"403",type:PermissionType.MENU,route:"403",component:"/sys/error/Page403.tsx"},{id:"5095669208159005",parentId:"9406067785553476",label:"sys.menu.error.404",name:"404",type:PermissionType.MENU,route:"404",component:"/sys/error/Page404.tsx"},{id:"0225992135973772",parentId:"9406067785553476",label:"sys.menu.error.500",name:"500",type:PermissionType.MENU,route:"500",component:"/sys/error/Page500.tsx"}]},OTHERS_PERMISSION=[{id:"3981225257359246",parentId:"",label:"sys.menu.calendar",name:"Calendar",icon:"solar:calendar-bold-duotone",type:PermissionType.MENU,route:"calendar",component:"/sys/others/calendar/index.tsx"},{id:"3513985683886393",parentId:"",label:"sys.menu.kanban",name:"kanban",icon:"solar:clipboard-bold-duotone",type:PermissionType.MENU,route:"kanban",component:"/sys/others/kanban/index.tsx"},{id:"5455837930804461",parentId:"",label:"sys.menu.disabled",name:"Disabled",icon:"ic_disabled",type:PermissionType.MENU,route:"disabled",status:BasicStatus.DISABLE,component:"/sys/others/calendar/index.tsx"},{id:"7728048658221587",parentId:"",label:"sys.menu.label",name:"Label",icon:"ic_label",type:PermissionType.MENU,route:"label",newFeature:!0,component:"/sys/others/blank.tsx"},{id:"5733704222120995",parentId:"",label:"sys.menu.frame",name:"Frame",icon:"ic_external",type:PermissionType.CATALOGUE,route:"frame",children:[{id:"9884486809510480",parentId:"5733704222120995",label:"sys.menu.external_link",name:"External Link",type:PermissionType.MENU,route:"external_link",component:"/sys/others/iframe/external-link.tsx",frameSrc:"https://ant.design/"},{id:"9299640886731819",parentId:"5733704222120995",label:"sys.menu.iframe",name:"Iframe",type:PermissionType.MENU,route:"frame",component:"/sys/others/iframe/index.tsx",frameSrc:"https://ant.design/"}]},{id:"0941594969900756",parentId:"",label:"sys.menu.blank",name:"Disabled",icon:"ic_blank",type:PermissionType.MENU,route:"blank",component:"/sys/others/blank.tsx"}],PERMISSION_LIST=[DASHBOARD_PERMISSION,MANAGEMENT_PERMISSION,COMPONENTS_PERMISSION,FUNCTIONS_PERMISSION,MENU_LEVEL_PERMISSION,ERRORS_PERMISSION,...OTHERS_PERMISSION],ADMIN_ROLE={id:"4281707933534332",name:"Admin",label:"admin",status:BasicStatus.ENABLE,order:1,desc:"Super Admin",permission:PERMISSION_LIST},TEST_ROLE={id:"9931665660771476",name:"Test",label:"test",status:BasicStatus.ENABLE,order:2,desc:"test",permission:[DASHBOARD_PERMISSION,COMPONENTS_PERMISSION,FUNCTIONS_PERMISSION]},DEFAULT_USER={id:mockExports.Random.guid(),username:"admin",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",email:mockExports.Random.email(),createdAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),updatedAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),password:"123456",role:ADMIN_ROLE,token:"gbeataToken",permissions:ADMIN_ROLE.permission,homePath:"/home"},TEST_USER={id:mockExports.Random.guid(),username:"test",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",password:"123456",email:mockExports.Random.email(),token:"gbeataToken",createdAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),updatedAt:mockExports.Random.datetime("y-MM-dd HH:mm:ss"),role:TEST_ROLE,permissions:TEST_ROLE.permission,homePath:"/home"},USER_LIST=[DEFAULT_USER,TEST_USER];function createFakeUserList(){return[{userId:"10000",username:"admin",realName:"react admin design",avatar:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/avatar.png",desc:"super admin",password:"123456",token:"gbeataToken",homePath:"/home"}]}const user=[{url:"/api/login",timeout:500,method:"post",response:({body:o})=>{const{username:a,password:s}=o,c=USER_LIST.find(f=>f.username===a);return c?resultSuccess(se({},c)):resultError("Incorrect account or password!")}},{url:"/api/getUserInfo",method:"get",response:o=>{const a=getRequestToken(o);if(!a)return resultError("Invalid token!");const s=createFakeUserList().find(c=>c.token===a);return s?resultSuccess(s):resultError("The corresponding user information was not obtained!")}},{url:"/api/logout",timeout:200,method:"get",response:o=>resultSuccess(void 0,{message:"Token has been destroyed!"})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,createFakeUserList,default:user},Symbol.toStringTag,{value:"Module"})),geFollwer=()=>Math.floor(Math.random()*4),getPosition=()=>{const o=["HR Manager","Data Observer","Frontend Engineer","Backend Engineer","Project Manager","QA Engineer","Fullstack Engineer","Registered Nurse","Business Analyst","Creative Director","Software Developer","Research Scientist"],a=Math.floor(Math.random()*o.length);return o[a]},genList=()=>{const o=[];for(let a=0;a<100;a+=1){const s=a<10?`0${a}`:a;o.push({id:+`10${s}`+1,name:mockExports.Random.name(),position:getPosition(),sex:["男","女"][Number(mockExports.Random.boolean())],follwer:geFollwer(),mits:Math.floor(Math.random()*10),forbid:mockExports.Random.boolean()})}return o},userList=[{url:"/api/user/getUserList",timeout:200,method:"get",response:({query:o})=>{const{current:a=1,pageSize:s=10}=o;return resultPageSuccess(a,s,genList())}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:userList},Symbol.toStringTag,{value:"Module"}));function lexer(o){for(var a=[],s=0;s=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||y===95){f+=o[d++];continue}break}if(!f)throw new TypeError("Missing parameter name at ".concat(s));a.push({type:"NAME",index:s,value:f}),s=d;continue}if(c==="("){var _=1,S="",d=s+1;if(o[d]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(d));for(;d)?(?!\?)/g,c=0,f=s.exec(o.source);f;)a.push({name:f[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),f=s.exec(o.source);return o}function arrayToRegexp(o,a,s){var c=o.map(function(f){return pathToRegexp(f,a,s).source});return new RegExp("(?:".concat(c.join("|"),")"),flags(s))}function stringToRegexp(o,a,s){return tokensToRegexp(parse(o,s),a,s)}function tokensToRegexp(o,a,s){s===void 0&&(s={});for(var c=s.strict,f=c===void 0?!1:c,d=s.start,y=d===void 0?!0:d,_=s.end,S=_===void 0?!0:_,b=s.encode,$=b===void 0?function(W){return W}:b,P=s.delimiter,T=P===void 0?"/#?":P,C=s.endsWith,O=C===void 0?"":C,A="[".concat(escapeString(O),"]|$"),F="[".concat(escapeString(T),"]"),j=y?"^":"",L=0,M=o;L-1:G===void 0;f||(j+="(?:".concat(F,"(?=").concat(A,"))?")),X||(j+="(?=".concat(F,"|").concat(A,")"))}return new RegExp(j,flags(s))}function pathToRegexp(o,a,s){return o instanceof RegExp?regexpToRegexp(o,a):Array.isArray(o)?arrayToRegexp(o,a,s):stringToRegexp(o,a,s)}const Mock=mockJs;function createProdMockServer(o){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const a={};for(let s in this.custom.requestHeaders)a[s.toString().toLowerCase()]=this.custom.requestHeaders[s];this.custom.options=Object.assign({},this.custom.options,{headers:a})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let a=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&a&&(this.custom.xhr.responseType=a)};for(const{url:a,method:s,response:c,timeout:f}of o)__setupMock__(f),Mock.mock(pathToRegexp(a,void 0,{end:!1}),s||"get",__XHR2ExpressReqWrapper__(c))}function __param2Obj__(o){const a=o.split("?")[1];return a?JSON.parse('{"'+decodeURIComponent(a).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__(o){return function(a){let s=null;if(typeof o=="function"){const{body:c,type:f,url:d,headers:y}=a;let _=c;try{_=JSON.parse(c)}catch(S){}s=o({method:f,body:_,query:__param2Obj__(d),headers:y})}else s=o;return Mock.mock(s)}}function __setupMock__(o=0){o&&Mock.setup({timeout:o})}const modules=Object.assign({"../mock/data/table.ts":__vite_glob_0_0,"../mock/data/user.ts":__vite_glob_0_1,"../mock/data/userList.ts":__vite_glob_0_2}),mockModules=[];Object.keys(modules).forEach(o=>{if(o.includes("/_"))return;const a=modules[o].default||{},s=Array.isArray(a)?[...a]:[a];mockModules.push(...s)});function setupProdMockServer(){createProdMockServer(mockModules)}const queryClient=new QueryClient({defaultOptions:{queries:{refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:3,staleTime:5*60*1e3,gcTime:5*60*1e3}}});client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React$4.StrictMode,{children:jsxRuntimeExports.jsx(Provider,{store,children:jsxRuntimeExports.jsx(PersistGate,{persistor,children:jsxRuntimeExports.jsxs(QueryClientProvider,{client:queryClient,children:[jsxRuntimeExports.jsx(ReactQueryDevtools2,{initialIsOpen:!1}),jsxRuntimeExports.jsx(App,{})]})})})}));setupProdMockServer();export{omitObj as A,getKey as B,CTRL_DEFAULT_MORE_TEXT as C,getDefaultValue as D,GSearchTableContext as E,FiberProvider as F,GAction as G,GTable as H,isObj as I,optionObj as J,getActionProps as K,useStyles$b as L,FORM_TYPE_DATE as M,FORM_TYPE_DATE_RANGE as N,SvgIcon$1 as O,__assign as P,isBrowser$1 as Q,throttle$3 as R,SvgIcon as S,__awaiter as T,__generator as U,__rest as V,useMemoizedFn as W,getUsersList as X,__spreadArray as _,animated as a,Slider as b,cloneDeep as c,isFunction$1 as d,useLatest as e,debounce$3 as f,__read as g,useUnmount$1 as h,isDev$1 as i,useContextBridge as j,createRoot as k,getJueJinList as l,useTranslation as m,locale as n,openWindow as o,propTypesExports as p,hasPermission as q,require$$3 as r,GButton as s,t,useSpring as u,CTRL_DEFAULT_MAX as v,treeToList as w,convertChildrenToField as x,GDialog as y,GForm as z}; diff --git a/assets/image-upload-69f235a3.js b/assets/image-upload-acb1eff1.js similarity index 91% rename from assets/image-upload-69f235a3.js rename to assets/image-upload-acb1eff1.js index 2cd2311..15fec5a 100644 --- a/assets/image-upload-69f235a3.js +++ b/assets/image-upload-acb1eff1.js @@ -1 +1 @@ -var b=(c,g,a)=>new Promise((m,l)=>{var u=t=>{try{n(a.next(t))}catch(r){l(r)}},p=t=>{try{n(a.throw(t))}catch(r){l(r)}},n=t=>t.done?m(t.value):Promise.resolve(t.value).then(u,p);n((a=a.apply(c,g)).next())});import{j as e,J as L,K as h,n as j,ap as v,aq as x,i as O,P as S,M as k}from"./antd-d487744a.js";import{t as i}from"./entry/index-a6cf600d.1715609901087.js";import{r as o}from"./react-f288da4a.js";import{P as N,U as T}from"./websiteSetting-607ea25c.js";const A=()=>{const{Dragger:c}=x,[g,a]=o.useState(!1),[m,l]=o.useState(""),[u,p]=o.useState(""),n=[{uid:"-1",name:"beautiful-girl.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg"}],[t,r]=o.useState([{uid:"-1",name:"beautiful-girl.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg"}]),w=s=>b(void 0,null,function*(){!s.url&&!s.preview&&(s.preview=yield f(s.originFileObj)),l(s.url||s.preview),a(!0),p(s.name||s.url.substring(s.url.lastIndexOf("/")+1))}),f=s=>new Promise((C,U)=>{const d=new FileReader;d.readAsDataURL(s),d.onload=()=>C(d.result),d.onerror=I=>U(I)}),y=({fileList:s})=>r(s),P=()=>{a(!1),p("")};return e.jsx(N,{plugin:T,children:e.jsxs(L,{gutter:12,children:[e.jsx(h,{span:8,children:e.jsx(j,{title:i("拖拽上传"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(c,{defaultFileList:n,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,children:[e.jsx("p",{className:"ant-upload-drag-icon",style:{marginBottom:0},children:e.jsx(v,{rev:void 0})}),e.jsxs("p",{children:[i("将图片拖到此处, 或"),e.jsx("span",{style:{color:"#1890ff"},children:i("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:i("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsx(h,{span:8,children:e.jsx(j,{title:i("列表样式"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(x,{defaultFileList:[...t],action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture",className:"list-upload",children:[e.jsxs(O,{type:"primary",children:[e.jsx(v,{rev:void 0}),e.jsx("span",{children:i("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:i("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsxs(h,{span:8,children:[e.jsx(j,{title:i("照片墙"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(x,{fileList:t,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture-card",className:"list-upload",onPreview:w,onChange:y,children:e.jsxs("div",{children:[e.jsx(S,{rev:void 0}),e.jsx("div",{style:{marginTop:"8px"},children:i("点击上传")})]})})}),e.jsx(k,{open:g,title:u,footer:null,onCancel:P,children:e.jsx("img",{src:m,style:{width:"100%"}})})]})]})})};export{A as default}; +var b=(c,g,a)=>new Promise((m,l)=>{var u=t=>{try{n(a.next(t))}catch(r){l(r)}},p=t=>{try{n(a.throw(t))}catch(r){l(r)}},n=t=>t.done?m(t.value):Promise.resolve(t.value).then(u,p);n((a=a.apply(c,g)).next())});import{j as e,J as L,K as h,n as j,ap as v,aq as x,i as O,P as S,M as k}from"./antd-66264537.js";import{t as i}from"./entry/index-49ff40a5.1715612414483.js";import{r as o}from"./react-f288da4a.js";import{P as N,U as T}from"./websiteSetting-168278cd.js";const A=()=>{const{Dragger:c}=x,[g,a]=o.useState(!1),[m,l]=o.useState(""),[u,p]=o.useState(""),n=[{uid:"-1",name:"beautiful-girl.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg"}],[t,r]=o.useState([{uid:"-1",name:"beautiful-girl.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg"}]),w=s=>b(void 0,null,function*(){!s.url&&!s.preview&&(s.preview=yield f(s.originFileObj)),l(s.url||s.preview),a(!0),p(s.name||s.url.substring(s.url.lastIndexOf("/")+1))}),f=s=>new Promise((C,U)=>{const d=new FileReader;d.readAsDataURL(s),d.onload=()=>C(d.result),d.onerror=I=>U(I)}),y=({fileList:s})=>r(s),P=()=>{a(!1),p("")};return e.jsx(N,{plugin:T,children:e.jsxs(L,{gutter:12,children:[e.jsx(h,{span:8,children:e.jsx(j,{title:i("拖拽上传"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(c,{defaultFileList:n,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,children:[e.jsx("p",{className:"ant-upload-drag-icon",style:{marginBottom:0},children:e.jsx(v,{rev:void 0})}),e.jsxs("p",{children:[i("将图片拖到此处, 或"),e.jsx("span",{style:{color:"#1890ff"},children:i("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:i("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsx(h,{span:8,children:e.jsx(j,{title:i("列表样式"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(x,{defaultFileList:[...t],action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture",className:"list-upload",children:[e.jsxs(O,{type:"primary",children:[e.jsx(v,{rev:void 0}),e.jsx("span",{children:i("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:i("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsxs(h,{span:8,children:[e.jsx(j,{title:i("照片墙"),bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(x,{fileList:t,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture-card",className:"list-upload",onPreview:w,onChange:y,children:e.jsxs("div",{children:[e.jsx(S,{rev:void 0}),e.jsx("div",{style:{marginTop:"8px"},children:i("点击上传")})]})})}),e.jsx(k,{open:g,title:u,footer:null,onCancel:P,children:e.jsx("img",{src:m,style:{width:"100%"}})})]})]})})};export{A as default}; diff --git a/assets/index-4740b027.js b/assets/index-6578acfa.js similarity index 91% rename from assets/index-4740b027.js rename to assets/index-6578acfa.js index 55fd778..164f0cc 100644 --- a/assets/index-4740b027.js +++ b/assets/index-6578acfa.js @@ -1 +1 @@ -import{j as e,J as g,K as p,n as d,v as S,s as F,u as N,c as y,S as w,D as L,aC as D,ab as I,i as c,aD as T,aE as n,aF as x,L as v,I as R,aA as _,a3 as o,aG as $,V as M,aH as O,aI as A,aJ as P,a1 as E,aK as H,aL as J,aM as K,a4 as B}from"./antd-d487744a.js";import{t as a,K as l}from"./entry/index-a6cf600d.1715609901087.js";import{a as f}from"./react-f288da4a.js";import{T as m}from"./Translatex-d163f7af.js";import{a as z,c as U,b as V}from"./index-b9ecdfd2.js";const W=()=>e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx(F,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(N,{defaultChecked:!0})]})}),e.jsx(p,{span:12})]})}),u="/react-antd-admin-pnpm/assets/travel_3-0a78a2d4.jpg",C=y(({token:s})=>({"custom-image":{borderRadius:s.borderRadiusLG},"card-action":{position:"absolute",right:s.paddingSM,top:s.paddingSM}})),{Title:Y,Text:Z}=v,q=()=>{const{styles:s,cx:r}=C(),j=[{key:"1",label:e.jsxs(w,{size:8,children:[e.jsx(L,{rev:void 0}),e.jsx("span",{children:a("删除")})]})},{key:"2",label:e.jsxs(w,{size:8,children:[e.jsx(D,{rev:void 0}),e.jsx("span",{children:a("修改")})]})}],h=({key:i})=>{},t=[{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")}];return e.jsx(e.Fragment,{children:e.jsx(g,{gutter:[16,16],children:t.map((i,b)=>e.jsx(p,{span:8,children:e.jsxs(d,{children:[e.jsx(I,{menu:{items:j,onClick:h},placement:"bottomRight",arrow:!0,children:e.jsx(c,{className:r(s["card-action"]),shape:"circle",type:"text",icon:e.jsx(T,{})})}),e.jsxs(n,{gap:8,vertical:!0,align:"center",children:[e.jsx(x,{size:64,src:i.avatar}),e.jsx(Y,{style:{margin:0},level:5,children:i.name}),e.jsx(Z,{type:"secondary",children:i.title}),e.jsxs(n,{style:{marginTop:8},gap:8,children:[e.jsx(c,{shape:"circle",icon:e.jsx(l,{style:{color:"#1890ff"},name:"github"})}),e.jsx(c,{shape:"circle",icon:e.jsx(l,{name:"message"})}),e.jsx(c,{shape:"circle",icon:e.jsx(l,{name:"like"})})]})]})]})},b))})})},Q=()=>e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx(F,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(N,{defaultChecked:!0})]})}),e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"})]})})]})}),X="/react-antd-admin-pnpm/assets/avatar_1-329667d0.jpg",ee="/react-antd-admin-pnpm/assets/avatar_4-2497c77c.jpg",G="/react-antd-admin-pnpm/assets/avatar_6-1e41071d.jpg",se="/react-antd-admin-pnpm/assets/avatar_8-1956d908.jpg",ae=y(({token:s})=>({"message-list":{".message_content":{flex:1,padding:s.paddingSM,backgroundColor:s.colorBgLayout,borderRadius:s.borderRadiusLG}}})),{Title:te,Text:ie}=v,ne=({avatar:s,time:r,content:j,user:h})=>{const{styles:t}=ae();return e.jsxs(n,{gap:8,className:t["message-list"],children:[e.jsx("div",{children:s}),e.jsxs("div",{className:"message_content",children:[e.jsxs(n,{justify:"space-between",align:"center",children:[e.jsx(te,{level:5,children:h}),e.jsx("div",{children:r})]}),e.jsx(ie,{type:"secondary",children:j})]})]})},le=y(({token:s})=>({"send-box":{".send-content":{flex:1,borderRadius:s.borderRadiusLG}}})),re=({avatar:s=G,time:r,content:j,user:h})=>{const{styles:t}=le();return e.jsxs(n,{gap:8,align:"center",className:t["send-box"],children:[e.jsx(x,{src:s}),e.jsx("div",{className:"send-content",children:e.jsx(R,{placeholder:a("请在这里输入您的留言"),suffix:e.jsxs(n,{children:[e.jsx(c,{type:"text",shape:"circle",icon:e.jsx(l,{name:"picture"})}),e.jsx(c,{type:"text",shape:"circle",icon:e.jsx(l,{name:"express"})})]})})})]})},{Text:k}=v,ce=()=>{const{styles:s}=C(),r=[{title:a("深圳市"),icon:e.jsx(l,{name:"point",size:24})},{title:"shoplazza.nyg@gmail.com",icon:e.jsx(l,{name:"email",size:24})},{title:a("前端开发"),icon:e.jsx(l,{name:"work",size:24})}],j=[{title:"https://github.com/anyone-yuren",icon:e.jsx(E,{style:{fontSize:24}})},{title:"nhf066901@sina.com",icon:e.jsx(H,{style:{fontSize:24}})},{title:"leio-forver",icon:e.jsx(J,{style:{fontSize:24}})},{title:"https://juejin.cn/user/2682464101469480/posts",icon:e.jsx(K,{style:{fontSize:24}})}],h=[{avatar:e.jsx(x,{src:ee}),time:a("2小时前"),content:a("做普通人,干正经事,可以爱小钱,但必有大胸怀。"),user:"anyone"},{avatar:e.jsx(x,{src:X}),time:"27 Dec 2023",content:a("多年后,一个埋我的人被指定,这些年,我偶尔想一想死亡的事情,把活着,当成了一种习惯"),user:a("倾盆大雨")}];return e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:8,children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(d,{children:e.jsxs(n,{align:"middle",justify:"space-evenly",children:[e.jsx(z,{name:"Follower",count:12}),e.jsx(_,{style:{height:"auto"},type:"vertical"}),e.jsx(z,{name:"Following",count:112})]})}),e.jsxs(d,{title:a("关于我"),children:[e.jsx(k,{type:"secondary",children:a("如果给你寄一本书, 我不会寄给你诗歌, 我要给你一本关于植物,关于庄稼的, 告诉你稻子和稗子的区别, 告诉你一棵稗子提心吊胆的春天。")}),e.jsx(o,{itemLayout:"horizontal",dataSource:r,renderItem:(t,i)=>e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:t.icon,description:t.title})},i)})]}),e.jsx(d,{title:a("社交"),children:e.jsx(o,{itemLayout:"horizontal",dataSource:j,renderItem:(t,i)=>e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:t.icon,description:t.title})},i)})})]})}),e.jsx(p,{span:16,children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(d,{children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx($,{rows:4,placeholder:a("分享你想对我说的话"),maxLength:6}),e.jsx(n,{justify:"end",children:e.jsx(c,{type:"primary",children:a("发布")})})]})}),e.jsx(d,{title:e.jsxs(n,{justify:"space-between",align:"center",gap:16,children:[e.jsx(o,{children:e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:e.jsx(x,{src:se,size:48}),title:"Gbeata",description:"25 Dec 2023"})},"1")}),e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(T,{})})]}),children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(k,{children:a("我填平了山海,却发现你在云端。")}),e.jsx(M,{className:s["custom-image"],width:"100%",height:400,src:u}),e.jsxs(n,{justify:"space-between",align:"content-center",children:[e.jsxs(n,{align:"center",children:[e.jsx(c,{id:"like",size:"small",type:"text",icon:e.jsx(l,{name:"love"}),children:"3"}),e.jsxs(x.Group,{maxCount:2,maxStyle:{color:"#f56a00",backgroundColor:"#fde3cf"},children:[e.jsx(x,{src:"https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"}),e.jsx(x,{src:G,style:{backgroundColor:"#f56a00"},children:"K"}),e.jsx(x,{style:{backgroundColor:"#1677ff"},icon:e.jsx(O,{})})]})]}),e.jsxs("div",{children:[e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(A,{})}),e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(P,{})})]})]}),h.map(t=>e.jsx(ne,{avatar:t.avatar,time:t.time,content:t.content,user:t.user})),e.jsx(re,{})]})})]})})]})})},de=y(({token:s})=>({"user-card":{width:"100%",position:"relative",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-segmented-item-label":{lineHeight:"48px !important",minHeight:"48px !important",padding:"0 16px !important"},".profile":{verticalAlign:"-0.35em"},".ant-card-body":{padding:0,textAlign:"right"},".ant-card-cover":{minHeight:"200px",position:"relative",background:`url(${U})`,filter:"blur(0)",backgroundRepeat:"no-repeat",backgroundSize:"cover","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"absolute",display:"flex",flexDirection:"row",zIndex:2,bottom:"-24px",left:"24px",gap:"16px",".info":{display:"flex",flexDirection:"column",justifyContent:"center",color:"white"},".avatar":{width:"128px",height:"128px",borderRadius:"50%",overflow:"hidden"}}},translatex:{margin:`${s.marginSM}px 0`},content:{position:"relative"}})),{Text:oe,Title:xe}=v,je=s=>{const[r,j]=f.useState("Profile"),[h,t]=f.useState(!0),{styles:i}=de();return f.useEffect(()=>{setTimeout(()=>{t(!1)},1500)},[]),e.jsxs("div",{className:i.content,children:[e.jsx(d,{hoverable:!0,className:i["user-card"],cover:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"user_info",children:[e.jsx("div",{className:"avatar",children:e.jsx("img",{src:V})}),e.jsxs("div",{className:"info",children:[e.jsx(xe,{style:{margin:0,color:"inherit"},level:3,children:"Gbeata"}),e.jsx(oe,{style:{color:"inherit",opacity:.7},children:a("来历不明")})]})]})}),children:e.jsx(B,{size:"large",onChange:b=>{j(b)},value:r,options:[{label:"Profile",value:"Profile",icon:e.jsx(l,{className:"profile",name:"profile",size:24})},{label:"Followers",value:"Followers",icon:e.jsx(l,{className:"profile",name:"followers",size:24})},{label:"Friends",value:"Friends",icon:e.jsx(l,{className:"profile",name:"friends",size:24})},{label:"Gallery",value:"Gallery",icon:e.jsx(l,{className:"profile",name:"gallery",size:24})}]})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Profile",delay:100,children:e.jsx(ce,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Gallery",delay:100,children:e.jsx(Q,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Followers",delay:100,children:e.jsx(W,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Friends",delay:100,children:e.jsx(q,{})})]})},ye=()=>e.jsx(je,{});export{ye as default}; +import{j as e,J as g,K as p,n as d,v as S,s as F,u as N,c as y,S as w,D as L,aD as D,ab as I,i as c,aE as T,aF as n,aG as x,L as v,I as R,aw as _,a3 as o,aH as $,V as M,aI as O,aJ as A,aK as P,a1 as E,aL as H,aM as J,aN as B,a4 as K}from"./antd-66264537.js";import{t as a,O as l}from"./entry/index-49ff40a5.1715612414483.js";import{a as f}from"./react-f288da4a.js";import{T as m}from"./Translatex-83019934.js";import{a as z,c as U,b as V}from"./index-6d20d62b.js";const W=()=>e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx(F,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(N,{defaultChecked:!0})]})}),e.jsx(p,{span:12})]})}),u="/react-antd-admin-pnpm/assets/travel_3-0a78a2d4.jpg",G=y(({token:s})=>({"custom-image":{borderRadius:s.borderRadiusLG},"card-action":{position:"absolute",right:s.paddingSM,top:s.paddingSM}})),{Title:Y,Text:Z}=v,q=()=>{const{styles:s,cx:r}=G(),j=[{key:"1",label:e.jsxs(w,{size:8,children:[e.jsx(L,{rev:void 0}),e.jsx("span",{children:a("删除")})]})},{key:"2",label:e.jsxs(w,{size:8,children:[e.jsx(D,{rev:void 0}),e.jsx("span",{children:a("修改")})]})}],h=({key:i})=>{},t=[{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")},{avatar:u,name:"Gbeata",title:a("来历不明")}];return e.jsx(e.Fragment,{children:e.jsx(g,{gutter:[16,16],children:t.map((i,b)=>e.jsx(p,{span:8,children:e.jsxs(d,{children:[e.jsx(I,{menu:{items:j,onClick:h},placement:"bottomRight",arrow:!0,children:e.jsx(c,{className:r(s["card-action"]),shape:"circle",type:"text",icon:e.jsx(T,{})})}),e.jsxs(n,{gap:8,vertical:!0,align:"center",children:[e.jsx(x,{size:64,src:i.avatar}),e.jsx(Y,{style:{margin:0},level:5,children:i.name}),e.jsx(Z,{type:"secondary",children:i.title}),e.jsxs(n,{style:{marginTop:8},gap:8,children:[e.jsx(c,{shape:"circle",icon:e.jsx(l,{style:{color:"#1890ff"},name:"github"})}),e.jsx(c,{shape:"circle",icon:e.jsx(l,{name:"message"})}),e.jsx(c,{shape:"circle",icon:e.jsx(l,{name:"like"})})]})]})]})},b))})})},Q=()=>e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx(F,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(N,{defaultChecked:!0})]})}),e.jsx(p,{span:12,children:e.jsxs(d,{children:[e.jsx(S,{children:"Checkbox"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"})]})})]})}),X="/react-antd-admin-pnpm/assets/avatar_1-329667d0.jpg",ee="/react-antd-admin-pnpm/assets/avatar_4-2497c77c.jpg",C="/react-antd-admin-pnpm/assets/avatar_6-1e41071d.jpg",se="/react-antd-admin-pnpm/assets/avatar_8-1956d908.jpg",ae=y(({token:s})=>({"message-list":{".message_content":{flex:1,padding:s.paddingSM,backgroundColor:s.colorBgLayout,borderRadius:s.borderRadiusLG}}})),{Title:te,Text:ie}=v,ne=({avatar:s,time:r,content:j,user:h})=>{const{styles:t}=ae();return e.jsxs(n,{gap:8,className:t["message-list"],children:[e.jsx("div",{children:s}),e.jsxs("div",{className:"message_content",children:[e.jsxs(n,{justify:"space-between",align:"center",children:[e.jsx(te,{level:5,children:h}),e.jsx("div",{children:r})]}),e.jsx(ie,{type:"secondary",children:j})]})]})},le=y(({token:s})=>({"send-box":{".send-content":{flex:1,borderRadius:s.borderRadiusLG}}})),re=({avatar:s=C,time:r,content:j,user:h})=>{const{styles:t}=le();return e.jsxs(n,{gap:8,align:"center",className:t["send-box"],children:[e.jsx(x,{src:s}),e.jsx("div",{className:"send-content",children:e.jsx(R,{placeholder:a("请在这里输入您的留言"),suffix:e.jsxs(n,{children:[e.jsx(c,{type:"text",shape:"circle",icon:e.jsx(l,{name:"picture"})}),e.jsx(c,{type:"text",shape:"circle",icon:e.jsx(l,{name:"express"})})]})})})]})},{Text:k}=v,ce=()=>{const{styles:s}=G(),r=[{title:a("深圳市"),icon:e.jsx(l,{name:"point",size:24})},{title:"shoplazza.nyg@gmail.com",icon:e.jsx(l,{name:"email",size:24})},{title:a("前端开发"),icon:e.jsx(l,{name:"work",size:24})}],j=[{title:"https://github.com/anyone-yuren",icon:e.jsx(E,{style:{fontSize:24}})},{title:"nhf066901@sina.com",icon:e.jsx(H,{style:{fontSize:24}})},{title:"leio-forver",icon:e.jsx(J,{style:{fontSize:24}})},{title:"https://juejin.cn/user/2682464101469480/posts",icon:e.jsx(B,{style:{fontSize:24}})}],h=[{avatar:e.jsx(x,{src:ee}),time:a("2小时前"),content:a("做普通人,干正经事,可以爱小钱,但必有大胸怀。"),user:"anyone"},{avatar:e.jsx(x,{src:X}),time:"27 Dec 2023",content:a("多年后,一个埋我的人被指定,这些年,我偶尔想一想死亡的事情,把活着,当成了一种习惯"),user:a("倾盆大雨")}];return e.jsx(e.Fragment,{children:e.jsxs(g,{gutter:[16,16],children:[e.jsx(p,{span:8,children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(d,{children:e.jsxs(n,{align:"middle",justify:"space-evenly",children:[e.jsx(z,{name:"Follower",count:12}),e.jsx(_,{style:{height:"auto"},type:"vertical"}),e.jsx(z,{name:"Following",count:112})]})}),e.jsxs(d,{title:a("关于我"),children:[e.jsx(k,{type:"secondary",children:a("如果给你寄一本书, 我不会寄给你诗歌, 我要给你一本关于植物,关于庄稼的, 告诉你稻子和稗子的区别, 告诉你一棵稗子提心吊胆的春天。")}),e.jsx(o,{itemLayout:"horizontal",dataSource:r,renderItem:(t,i)=>e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:t.icon,description:t.title})},i)})]}),e.jsx(d,{title:a("社交"),children:e.jsx(o,{itemLayout:"horizontal",dataSource:j,renderItem:(t,i)=>e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:t.icon,description:t.title})},i)})})]})}),e.jsx(p,{span:16,children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(d,{children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx($,{rows:4,placeholder:a("分享你想对我说的话"),maxLength:6}),e.jsx(n,{justify:"end",children:e.jsx(c,{type:"primary",children:a("发布")})})]})}),e.jsx(d,{title:e.jsxs(n,{justify:"space-between",align:"center",gap:16,children:[e.jsx(o,{children:e.jsx(o.Item,{children:e.jsx(o.Item.Meta,{avatar:e.jsx(x,{src:se,size:48}),title:"Gbeata",description:"25 Dec 2023"})},"1")}),e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(T,{})})]}),children:e.jsxs(n,{gap:16,vertical:!0,children:[e.jsx(k,{children:a("我填平了山海,却发现你在云端。")}),e.jsx(M,{className:s["custom-image"],width:"100%",height:400,src:u}),e.jsxs(n,{justify:"space-between",align:"content-center",children:[e.jsxs(n,{align:"center",children:[e.jsx(c,{id:"like",size:"small",type:"text",icon:e.jsx(l,{name:"love"}),children:"3"}),e.jsxs(x.Group,{maxCount:2,maxStyle:{color:"#f56a00",backgroundColor:"#fde3cf"},children:[e.jsx(x,{src:"https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"}),e.jsx(x,{src:C,style:{backgroundColor:"#f56a00"},children:"K"}),e.jsx(x,{style:{backgroundColor:"#1677ff"},icon:e.jsx(O,{})})]})]}),e.jsxs("div",{children:[e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(A,{})}),e.jsx(c,{shape:"circle",type:"text",icon:e.jsx(P,{})})]})]}),h.map(t=>e.jsx(ne,{avatar:t.avatar,time:t.time,content:t.content,user:t.user})),e.jsx(re,{})]})})]})})]})})},de=y(({token:s})=>({"user-card":{width:"100%",position:"relative",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-segmented-item-label":{lineHeight:"48px !important",minHeight:"48px !important",padding:"0 16px !important"},".profile":{verticalAlign:"-0.35em"},".ant-card-body":{padding:0,textAlign:"right"},".ant-card-cover":{minHeight:"200px",position:"relative",background:`url(${U})`,filter:"blur(0)",backgroundRepeat:"no-repeat",backgroundSize:"cover","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"absolute",display:"flex",flexDirection:"row",zIndex:2,bottom:"-24px",left:"24px",gap:"16px",".info":{display:"flex",flexDirection:"column",justifyContent:"center",color:"white"},".avatar":{width:"128px",height:"128px",borderRadius:"50%",overflow:"hidden"}}},translatex:{margin:`${s.marginSM}px 0`},content:{position:"relative"}})),{Text:oe,Title:xe}=v,je=s=>{const[r,j]=f.useState("Profile"),[h,t]=f.useState(!0),{styles:i}=de();return f.useEffect(()=>{setTimeout(()=>{t(!1)},1500)},[]),e.jsxs("div",{className:i.content,children:[e.jsx(d,{hoverable:!0,className:i["user-card"],cover:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"user_info",children:[e.jsx("div",{className:"avatar",children:e.jsx("img",{src:V})}),e.jsxs("div",{className:"info",children:[e.jsx(xe,{style:{margin:0,color:"inherit"},level:3,children:"Gbeata"}),e.jsx(oe,{style:{color:"inherit",opacity:.7},children:a("来历不明")})]})]})}),children:e.jsx(K,{size:"large",onChange:b=>{j(b)},value:r,options:[{label:"Profile",value:"Profile",icon:e.jsx(l,{className:"profile",name:"profile",size:24})},{label:"Followers",value:"Followers",icon:e.jsx(l,{className:"profile",name:"followers",size:24})},{label:"Friends",value:"Friends",icon:e.jsx(l,{className:"profile",name:"friends",size:24})},{label:"Gallery",value:"Gallery",icon:e.jsx(l,{className:"profile",name:"gallery",size:24})}]})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Profile",delay:100,children:e.jsx(ce,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Gallery",delay:100,children:e.jsx(Q,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Followers",delay:100,children:e.jsx(W,{})}),e.jsx(m,{className:i.translatex,direction:"left",run:r==="Friends",delay:100,children:e.jsx(q,{})})]})},ye=()=>e.jsx(je,{});export{ye as default}; diff --git a/assets/index-6605a823.js b/assets/index-67537c9a.js similarity index 97% rename from assets/index-6605a823.js rename to assets/index-67537c9a.js index f689c2e..22955ee 100644 --- a/assets/index-6605a823.js +++ b/assets/index-67537c9a.js @@ -1 +1 @@ -var R=Object.defineProperty;var f=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var C=(i,s,r)=>s in i?R(i,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[s]=r,y=(i,s)=>{for(var r in s||(s={}))B.call(s,r)&&C(i,r,s[r]);if(f)for(var r of f(s))M.call(s,r)&&C(i,r,s[r]);return i};import{G as l,j as a,n as A,I as m,t as E,J as h,K as n,s as w,x as O,at as W,u as Z,z as q,au as I,av as v,w as G,v as J,i as N}from"./antd-d487744a.js";import{t as e}from"./entry/index-a6cf600d.1715609901087.js";import{r as p}from"./react-f288da4a.js";import{P as _,F as H}from"./websiteSetting-607ea25c.js";const k=["guangdong","Zhejiang","Jiangsu"],x={guangdong:["guangzhou","shenzhen","foshan","dongguan","zhuhai"],Zhejiang:["Hangzhou","Ningbo","Wenzhou"],Jiangsu:["Nanjing","Suzhou","Zhenjiang","wuxi"]},K=[{value:"zhinan",label:e("指南"),children:[{value:"shejiyuanze",label:e("设计原则"),children:[{value:"yizhi",label:e("一致")},{value:"fankui",label:e("反馈")},{value:"xiaolv",label:e("效率")},{value:"kekong",label:e("可控")}]},{value:"daohang",label:e("导航"),children:[{value:"cexiangdaohang",label:e("侧向导航")},{value:"dingbudaohang",label:e("顶部导航")}]}]},{value:"zujian",label:e("组件"),children:[{value:"basic",label:"Basic",children:[{value:"layout",label:e("layout 布局")},{value:"color",label:e("Color 色彩")},{value:"typography",label:e("Typography 字体")},{value:"icon",label:e("Icon 图标")},{value:"button",label:e("Button 按钮")}]},{value:"form",label:"Form",children:[{value:"radio",label:e("Radio 单选框")},{value:"checkbox",label:e("Checkbox 多选框")},{value:"input",label:e("Input 输入框")},{value:"input-number",label:e("InputNumber 计数器")},{value:"select",label:e("Select 选择器")},{value:"cascader",label:e("Cascader 级联选择器")},{value:"switch",label:e("Switch 开关")},{value:"slider",label:e("Slider 滑块")},{value:"time-picker",label:e("TimePicker 时间选择器")},{value:"date-picker",label:e("DatePicker 日期选择器")},{value:"datetime-picker",label:e("DateTimePicker 日期时间选择器")},{value:"upload",label:e("Upload 上传")},{value:"rate",label:e("Rate 评分")},{value:"form",label:e("Form 表单")}]},{value:"data",label:"Data",children:[{value:"table",label:e("Table 表格")},{value:"tag",label:e("Tag 标签")},{value:"progress",label:e("Progress 进度条")},{value:"tree",label:e("Tree 树形控件")},{value:"pagination",label:e("Pagination 分页")},{value:"badge",label:e("Badge 标记")}]},{value:"notice",label:"Notice",children:[{value:"alert",label:e("Alert 警告")},{value:"loading",label:e("Loading 加载")},{value:"message",label:e("Message 消息提示")},{value:"message-box",label:e("MessageBox 弹框")},{value:"notification",label:e("Notification 通知")}]},{value:"navigation",label:"Navigation",children:[{value:"menu",label:e("NavMenu 导航菜单")},{value:"tabs",label:e("Tabs 标签页")},{value:"breadcrumb",label:e("Breadcrumb 面包屑")},{value:"dropdown",label:e("Dropdown 下拉菜单")},{value:"steps",label:e("Steps 步骤条")}]},{value:"others",label:"Others",children:[{value:"dialog",label:e("Dialog 对话框")},{value:"tooltip",label:e("Tooltip 文字提示")},{value:"popover",label:e("Popover 弹出框")},{value:"card",label:e("Card 卡片")},{value:"carousel",label:e("Carousel 走马灯")},{value:"collapse",label:e("Collapse 折叠面板")}]}]},{value:"ziyuan",label:e("资源"),children:[{value:"axure",label:"Axure Components"},{value:"sketch",label:"Sketch Templates"},{value:"jiaohu",label:e("组件交互文档")}]}],U=[{title:"Node1",value:"0-0",children:[{title:"Child Node1",value:"0-0-0",children:[{title:"Child Node6",value:"0-0-1"}]}]},{title:"Node2",value:"0-1",children:[{title:"Child Node3",value:"0-1-0",disabled:!0},{title:"Child Node4",value:"0-1-1"},{title:"Child Node5",value:"0-1-2"}]}],$=[{label:e("免费"),value:"free"},{label:e("收费"),value:"fee"},{label:e("赞助"),value:"sponsor"},{label:e("线上"),value:"online",disabled:!0},{label:e("线下"),value:"offline",disabled:!0}],Q=[{label:e("游泳"),value:"swim"},{label:e("跑步"),value:"run"},{label:e("健身"),value:"fit"},{label:e("阅读"),value:"read",disabled:!0},{label:e("音乐"),value:"music",disabled:!0},{label:e("电影"),value:"movie"}],se=()=>{const[i]=l.useForm(),s=k[0],[r,X]=p.useState({inputLimit:"",inputNum:"",password:"",selectProvince:s,selectCity:x[s][0],dateVal:"",timeVal:"",switchVal:!0,sliderVal:32,cascaderVal:[],cascaderLazy:[],treeVal:["0-0-1"],treeLazy:"1",radioVal:"offline",checkboxVal:["read"],textareaVal:""}),b={inputLimit:[{required:!0,message:e("内容不能为空")}],inputNum:[{required:!0,message:e("内容不能为空")},{type:"number",message:e("内容必须为数字值")}],password:[{required:!0,message:e("内容不能为空")},{min:6,max:16,message:e("密码长度在 6 到 16 个字符")},{pattern:/^[a-zA-Z0-9_-]{6,16}$/,message:e("密码只支持字母、数字和下划线")}]},V=l.useWatch("switchVal",i),[g,z]=p.useState([{value:1,label:e("选项1"),isLeaf:!1}]),[c,T]=p.useState([{id:1,pId:0,value:"1",title:"Expand to load"},{id:2,pId:0,value:"2",title:"Expand to load"},{id:3,pId:0,value:"3",title:"Tree Node",isLeaf:!0}]),S=t=>{i.setFieldsValue({selectCity:x[t][0]})},L=t=>{const o=t[t.length-1];o.loading=!0,setTimeout(()=>{o.loading=!1;let u=t.length;const d=t.length;o.children=Array.from({length:d+1}).map(()=>({value:++u,label:e("选项{{id}}",{id:u}),isLeaf:d>=2})),z([...g])},1e3)},P=({id:t})=>{const o=(u,d=!1)=>{const j=Math.random().toString(36).substring(2,6);return{id:j,pId:u,value:j,title:d?"Tree Node":"Expand to load",isLeaf:d}};return new Promise(u=>{setTimeout(()=>{T(c==null?void 0:c.concat([o(t,!1),o(t,!0),o(t,!0)])),u(void 0)},500)})},D=t=>{},F=()=>{i.resetFields()};return a.jsx(_,{plugin:H,children:a.jsx(A,{bordered:!1,children:a.jsxs(l,{form:i,labelCol:{span:6},wrapperCol:{span:18},initialValues:y({},r),style:{width:"40%",margin:"0 auto"},onFinish:D,children:[a.jsx(l.Item,{label:e("输入框(长度限制):"),name:"inputLimit",rules:b.inputLimit,children:a.jsx(m,{showCount:!0,maxLength:20,placeholder:e("请输入内容")})}),a.jsx(l.Item,{label:e("输入框(纯数字):"),name:"inputNum",rules:b.inputNum,children:a.jsx(E,{style:{width:"100%"},placeholder:e("请输入数字")})}),a.jsx(l.Item,{label:e("输入框(密码隐藏):"),name:"password",rules:b.password,children:a.jsx(m.Password,{maxLength:16,autoComplete:"off",placeholder:e("请输入密码")})}),a.jsx(l.Item,{label:e("select选择器(联动):"),children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"selectProvince",children:a.jsx(w,{options:k.map(t=>({value:t})),onChange:S})})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"selectCity",children:a.jsx(w,{options:x[r.selectProvince].map(t=>({value:t}))})})})]})}),a.jsx(l.Item,{label:e("日期和时间选择器:"),name:"dateVal",children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(O,{placeholder:e("选择日期"),style:{width:"100%"}})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"timeVal",children:a.jsx(W,{placeholder:e("选择时间"),style:{width:"100%"}})})})]})}),a.jsx(l.Item,{label:e("switch开关(显示隐藏):"),name:"switchVal",valuePropName:"checked",children:a.jsx(Z,{})}),V?a.jsxs(a.Fragment,{children:[a.jsx(l.Item,{label:e("滑块条(初始值):"),name:"sliderVal",children:a.jsx(q,{})}),a.jsx(l.Item,{label:e("级联选择器:"),children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"cascaderVal",children:a.jsx(I,{options:K,placeholder:e("请选择")})})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"cascaderLazy",children:a.jsx(I,{options:g,loadData:L,changeOnSelect:!0,placeholder:e("请输入")})})})]})}),a.jsx(l.Item,{label:e("树选择器(可勾选):"),name:"treeVal",children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(v,{treeData:U,treeCheckable:!0,allowClear:!0,showCheckedStrategy:v.SHOW_PARENT,placeholder:e("请选择")})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"treeLazy",children:a.jsx(v,{treeDataSimpleMode:!0,treeData:c,loadData:P,placeholder:e("请选择")})})})]})}),a.jsx(l.Item,{label:e("单选框(带禁止):"),name:"radioVal",children:a.jsx(G.Group,{options:$})}),a.jsx(l.Item,{label:e("多选框(带禁止):"),name:"checkboxVal",children:a.jsx(J.Group,{options:Q})}),a.jsx(l.Item,{label:e("文本域(长度限制):"),name:"textareaVal",children:a.jsx(m.TextArea,{maxLength:50,rows:3,placeholder:e("请输入内容")})})]}):null,a.jsxs(l.Item,{wrapperCol:{span:12,offset:12},children:[a.jsx(N,{type:"primary",htmlType:"submit",children:e("提交")}),a.jsx(N,{style:{marginLeft:"12px"},onClick:F,children:e("重置")})]})]})})})};export{se as default}; +var R=Object.defineProperty;var f=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var C=(i,s,r)=>s in i?R(i,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[s]=r,y=(i,s)=>{for(var r in s||(s={}))B.call(s,r)&&C(i,r,s[r]);if(f)for(var r of f(s))M.call(s,r)&&C(i,r,s[r]);return i};import{G as l,j as a,n as A,I as m,t as E,J as h,K as n,s as w,x as O,at as W,u as Z,z as q,au as I,av as v,w as G,v as J,i as N}from"./antd-66264537.js";import{t as e}from"./entry/index-49ff40a5.1715612414483.js";import{r as p}from"./react-f288da4a.js";import{P as _,F as H}from"./websiteSetting-168278cd.js";const k=["guangdong","Zhejiang","Jiangsu"],x={guangdong:["guangzhou","shenzhen","foshan","dongguan","zhuhai"],Zhejiang:["Hangzhou","Ningbo","Wenzhou"],Jiangsu:["Nanjing","Suzhou","Zhenjiang","wuxi"]},K=[{value:"zhinan",label:e("指南"),children:[{value:"shejiyuanze",label:e("设计原则"),children:[{value:"yizhi",label:e("一致")},{value:"fankui",label:e("反馈")},{value:"xiaolv",label:e("效率")},{value:"kekong",label:e("可控")}]},{value:"daohang",label:e("导航"),children:[{value:"cexiangdaohang",label:e("侧向导航")},{value:"dingbudaohang",label:e("顶部导航")}]}]},{value:"zujian",label:e("组件"),children:[{value:"basic",label:"Basic",children:[{value:"layout",label:e("layout 布局")},{value:"color",label:e("Color 色彩")},{value:"typography",label:e("Typography 字体")},{value:"icon",label:e("Icon 图标")},{value:"button",label:e("Button 按钮")}]},{value:"form",label:"Form",children:[{value:"radio",label:e("Radio 单选框")},{value:"checkbox",label:e("Checkbox 多选框")},{value:"input",label:e("Input 输入框")},{value:"input-number",label:e("InputNumber 计数器")},{value:"select",label:e("Select 选择器")},{value:"cascader",label:e("Cascader 级联选择器")},{value:"switch",label:e("Switch 开关")},{value:"slider",label:e("Slider 滑块")},{value:"time-picker",label:e("TimePicker 时间选择器")},{value:"date-picker",label:e("DatePicker 日期选择器")},{value:"datetime-picker",label:e("DateTimePicker 日期时间选择器")},{value:"upload",label:e("Upload 上传")},{value:"rate",label:e("Rate 评分")},{value:"form",label:e("Form 表单")}]},{value:"data",label:"Data",children:[{value:"table",label:e("Table 表格")},{value:"tag",label:e("Tag 标签")},{value:"progress",label:e("Progress 进度条")},{value:"tree",label:e("Tree 树形控件")},{value:"pagination",label:e("Pagination 分页")},{value:"badge",label:e("Badge 标记")}]},{value:"notice",label:"Notice",children:[{value:"alert",label:e("Alert 警告")},{value:"loading",label:e("Loading 加载")},{value:"message",label:e("Message 消息提示")},{value:"message-box",label:e("MessageBox 弹框")},{value:"notification",label:e("Notification 通知")}]},{value:"navigation",label:"Navigation",children:[{value:"menu",label:e("NavMenu 导航菜单")},{value:"tabs",label:e("Tabs 标签页")},{value:"breadcrumb",label:e("Breadcrumb 面包屑")},{value:"dropdown",label:e("Dropdown 下拉菜单")},{value:"steps",label:e("Steps 步骤条")}]},{value:"others",label:"Others",children:[{value:"dialog",label:e("Dialog 对话框")},{value:"tooltip",label:e("Tooltip 文字提示")},{value:"popover",label:e("Popover 弹出框")},{value:"card",label:e("Card 卡片")},{value:"carousel",label:e("Carousel 走马灯")},{value:"collapse",label:e("Collapse 折叠面板")}]}]},{value:"ziyuan",label:e("资源"),children:[{value:"axure",label:"Axure Components"},{value:"sketch",label:"Sketch Templates"},{value:"jiaohu",label:e("组件交互文档")}]}],U=[{title:"Node1",value:"0-0",children:[{title:"Child Node1",value:"0-0-0",children:[{title:"Child Node6",value:"0-0-1"}]}]},{title:"Node2",value:"0-1",children:[{title:"Child Node3",value:"0-1-0",disabled:!0},{title:"Child Node4",value:"0-1-1"},{title:"Child Node5",value:"0-1-2"}]}],$=[{label:e("免费"),value:"free"},{label:e("收费"),value:"fee"},{label:e("赞助"),value:"sponsor"},{label:e("线上"),value:"online",disabled:!0},{label:e("线下"),value:"offline",disabled:!0}],Q=[{label:e("游泳"),value:"swim"},{label:e("跑步"),value:"run"},{label:e("健身"),value:"fit"},{label:e("阅读"),value:"read",disabled:!0},{label:e("音乐"),value:"music",disabled:!0},{label:e("电影"),value:"movie"}],se=()=>{const[i]=l.useForm(),s=k[0],[r,X]=p.useState({inputLimit:"",inputNum:"",password:"",selectProvince:s,selectCity:x[s][0],dateVal:"",timeVal:"",switchVal:!0,sliderVal:32,cascaderVal:[],cascaderLazy:[],treeVal:["0-0-1"],treeLazy:"1",radioVal:"offline",checkboxVal:["read"],textareaVal:""}),b={inputLimit:[{required:!0,message:e("内容不能为空")}],inputNum:[{required:!0,message:e("内容不能为空")},{type:"number",message:e("内容必须为数字值")}],password:[{required:!0,message:e("内容不能为空")},{min:6,max:16,message:e("密码长度在 6 到 16 个字符")},{pattern:/^[a-zA-Z0-9_-]{6,16}$/,message:e("密码只支持字母、数字和下划线")}]},V=l.useWatch("switchVal",i),[g,z]=p.useState([{value:1,label:e("选项1"),isLeaf:!1}]),[c,T]=p.useState([{id:1,pId:0,value:"1",title:"Expand to load"},{id:2,pId:0,value:"2",title:"Expand to load"},{id:3,pId:0,value:"3",title:"Tree Node",isLeaf:!0}]),S=t=>{i.setFieldsValue({selectCity:x[t][0]})},L=t=>{const o=t[t.length-1];o.loading=!0,setTimeout(()=>{o.loading=!1;let u=t.length;const d=t.length;o.children=Array.from({length:d+1}).map(()=>({value:++u,label:e("选项{{id}}",{id:u}),isLeaf:d>=2})),z([...g])},1e3)},P=({id:t})=>{const o=(u,d=!1)=>{const j=Math.random().toString(36).substring(2,6);return{id:j,pId:u,value:j,title:d?"Tree Node":"Expand to load",isLeaf:d}};return new Promise(u=>{setTimeout(()=>{T(c==null?void 0:c.concat([o(t,!1),o(t,!0),o(t,!0)])),u(void 0)},500)})},D=t=>{},F=()=>{i.resetFields()};return a.jsx(_,{plugin:H,children:a.jsx(A,{bordered:!1,children:a.jsxs(l,{form:i,labelCol:{span:6},wrapperCol:{span:18},initialValues:y({},r),style:{width:"40%",margin:"0 auto"},onFinish:D,children:[a.jsx(l.Item,{label:e("输入框(长度限制):"),name:"inputLimit",rules:b.inputLimit,children:a.jsx(m,{showCount:!0,maxLength:20,placeholder:e("请输入内容")})}),a.jsx(l.Item,{label:e("输入框(纯数字):"),name:"inputNum",rules:b.inputNum,children:a.jsx(E,{style:{width:"100%"},placeholder:e("请输入数字")})}),a.jsx(l.Item,{label:e("输入框(密码隐藏):"),name:"password",rules:b.password,children:a.jsx(m.Password,{maxLength:16,autoComplete:"off",placeholder:e("请输入密码")})}),a.jsx(l.Item,{label:e("select选择器(联动):"),children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"selectProvince",children:a.jsx(w,{options:k.map(t=>({value:t})),onChange:S})})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"selectCity",children:a.jsx(w,{options:x[r.selectProvince].map(t=>({value:t}))})})})]})}),a.jsx(l.Item,{label:e("日期和时间选择器:"),name:"dateVal",children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(O,{placeholder:e("选择日期"),style:{width:"100%"}})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"timeVal",children:a.jsx(W,{placeholder:e("选择时间"),style:{width:"100%"}})})})]})}),a.jsx(l.Item,{label:e("switch开关(显示隐藏):"),name:"switchVal",valuePropName:"checked",children:a.jsx(Z,{})}),V?a.jsxs(a.Fragment,{children:[a.jsx(l.Item,{label:e("滑块条(初始值):"),name:"sliderVal",children:a.jsx(q,{})}),a.jsx(l.Item,{label:e("级联选择器:"),children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"cascaderVal",children:a.jsx(I,{options:K,placeholder:e("请选择")})})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"cascaderLazy",children:a.jsx(I,{options:g,loadData:L,changeOnSelect:!0,placeholder:e("请输入")})})})]})}),a.jsx(l.Item,{label:e("树选择器(可勾选):"),name:"treeVal",children:a.jsxs(h,{gutter:12,children:[a.jsx(n,{span:12,children:a.jsx(v,{treeData:U,treeCheckable:!0,allowClear:!0,showCheckedStrategy:v.SHOW_PARENT,placeholder:e("请选择")})}),a.jsx(n,{span:12,children:a.jsx(l.Item,{name:"treeLazy",children:a.jsx(v,{treeDataSimpleMode:!0,treeData:c,loadData:P,placeholder:e("请选择")})})})]})}),a.jsx(l.Item,{label:e("单选框(带禁止):"),name:"radioVal",children:a.jsx(G.Group,{options:$})}),a.jsx(l.Item,{label:e("多选框(带禁止):"),name:"checkboxVal",children:a.jsx(J.Group,{options:Q})}),a.jsx(l.Item,{label:e("文本域(长度限制):"),name:"textareaVal",children:a.jsx(m.TextArea,{maxLength:50,rows:3,placeholder:e("请输入内容")})})]}):null,a.jsxs(l.Item,{wrapperCol:{span:12,offset:12},children:[a.jsx(N,{type:"primary",htmlType:"submit",children:e("提交")}),a.jsx(N,{style:{marginLeft:"12px"},onClick:F,children:e("重置")})]})]})})})};export{se as default}; diff --git a/assets/index-6d20d62b.js b/assets/index-6d20d62b.js new file mode 100644 index 0000000..2baa6af --- /dev/null +++ b/assets/index-6d20d62b.js @@ -0,0 +1 @@ +var p=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var x=(s,t)=>{var o={};for(var a in s)g.call(s,a)&&t.indexOf(a)<0&&(o[a]=s[a]);if(s!=null&&p)for(var a of p(s))t.indexOf(a)<0&&b.call(s,a)&&(o[a]=s[a]);return o};import{c as y,j as e,n as u,aO as r,aF as w,i,L as T}from"./antd-66264537.js";import{a as h}from"./react-f288da4a.js";import{S as n}from"./entry/index-49ff40a5.1715612414483.js";import{T as N}from"./Translatex-83019934.js";const F="/react-antd-admin-pnpm/assets/avatar_2-ce7fcb30.jpg",R="/react-antd-admin-pnpm/assets/cover_5-5698cb6c.jpg",S=y(({token:s})=>({"user-card":{width:"100%",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-card-cover":{maxHeight:"200px",overflow:"hidden"},".cover":{position:"relative",filter:"blur(0)","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"relative",".info":{paddingTop:s.margin*2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},".avatar-svg":{color:s.colorBgContainer,width:"144px !important",height:"62px !important",top:"-56px",position:"absolute",transform:"translateX(-50%)",left:"50%"},".avatar":{width:"64px",height:"64px",borderRadius:"50%",overflow:"hidden",position:"absolute",top:"-50px",transform:"translateX(-50%)",left:"50%"}}}})),{Text:j,Title:v}=T,c=({name:s,count:t})=>e.jsxs("div",{className:"footer",children:[e.jsx(j,{type:"secondary",children:s}),e.jsxs(v,{style:{margin:0},level:5,children:[t,"K"]})]}),G=a=>{var l=a,{data:s={id:1,name:"Gbeata",position:"Front-end",sex:"male",follwer:1341,mits:231,forbid:!1},index:t=1}=l,o=x(l,["data","index"]);const[d,f]=h.useState(!0),{styles:m}=S();return h.useEffect(()=>{setTimeout(()=>{f(!1)},500)},[]),e.jsxs(e.Fragment,{children:[d&&e.jsx(u,{className:m["user-card"],actions:[e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"})],cover:e.jsx(r.Image,{active:!0}),children:e.jsx(r,{loading:!0,avatar:!0,active:!0})}),e.jsx(N,{direction:"up",run:!d,delay:t*100,children:e.jsx(u,{className:m["user-card"],cover:e.jsx("span",{className:"cover",children:e.jsx("img",{alt:"example",src:R})}),actions:[e.jsx(c,{name:"Foloower",count:s.follwer}),e.jsx(c,{name:"Folowing",count:s.mits}),e.jsx(c,{name:"Total Post",count:s.total})],children:e.jsxs("div",{className:"user_info",children:[e.jsx(n,{className:"avatar-svg",name:"wave"}),e.jsx("div",{className:"avatar",children:e.jsx("img",{src:F})}),e.jsxs("div",{className:"info",children:[e.jsx(v,{style:{margin:0},level:5,children:s.name}),e.jsx(j,{type:"secondary",children:s.position}),e.jsxs(w,{style:{marginTop:8},gap:8,children:[e.jsx(i,{shape:"circle",icon:e.jsx(n,{style:{color:"#1890ff"},name:"github"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"message"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"like"})})]})]})]})})})]})};export{G as U,c as a,F as b,R as c}; diff --git a/assets/index-8c013014.js b/assets/index-8c013014.js new file mode 100644 index 0000000..161bb37 --- /dev/null +++ b/assets/index-8c013014.js @@ -0,0 +1 @@ +import{c,j as e,T as p,J as u,K as t,n as d,aF as o,aq as h}from"./antd-66264537.js";import{t as a,O as x,z as m,s as g}from"./entry/index-49ff40a5.1715612414483.js";import{h as b}from"./react-f288da4a.js";import{T as j}from"./Translatex-83019934.js";const f=c(({token:r})=>({"custom-upload-drag":{".ant-upload-drag":{background:"#fff",border:"none","&:hover":{".add-phone-box":{border:`1px dashed ${r.colorPrimary}`,".add-phone":{background:r.colorBgTextActive}}},".add-phone-box":{width:"144px",height:"144px",borderRadius:"50%",overflow:"hidden",cursor:"pointer",margin:"0 auto",padding:r.paddingSM,border:`1px dashed ${r.colorBorderSecondary}`,transition:"border-color .3s ease","&:hover":{border:`1px dashed ${r.colorPrimary}`},".add-phone":{width:"100%",height:"100%",background:r.colorBgContainerDisabled,borderRadius:"50%",color:r.colorTextDisabled,transition:"all .3s ease","&:hover":{background:r.colorBgTextActive}}}}},"add-user-form":{".ant-input":{borderRadius:r.borderRadiusLG}},"btn-submit":{width:"100%"}})),R=()=>{const r=b(),{Dragger:l}=h,{styles:s}=f(),i=[{title:a("全名"),key:"input",required:!0,defaultValue:"Gbeata"},{title:a("密码"),type:"password",key:"password",defaultValue:"gbeata"},{title:a("城市"),type:"select",key:"select",defaultValue:1,options:[{label:e.jsx(p,{children:a("选项A")}),value:1},{label:a("选项2"),value:2}]},{title:a("电话号码"),key:"number",required:!0,defaultValue:15305999999},{title:a("地址"),type:"textarea",key:"textarea",defaultValue:a("广东省深圳市南山区科技园"),span:24}],n=y=>{r("/user/user-list")};return e.jsx(j,{direction:"left",run:!0,delay:100,children:e.jsxs(u,{gutter:[16,16],children:[e.jsx(t,{span:8,children:e.jsx(d,{children:e.jsxs(l,{action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,className:s["custom-upload-drag"],children:[e.jsx("div",{className:"add-phone-box",children:e.jsxs(o,{align:"center",vertical:!0,justify:"center",className:"add-phone",children:[e.jsx(x,{name:"camera",size:24}),e.jsx("span",{children:"upload phone"})]})}),e.jsxs("p",{children:[a("将图片拖到此处, 或"),e.jsx("span",{style:{color:"#1890ff"},children:a("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:a("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsx(t,{span:16,children:e.jsx(d,{children:e.jsx(m,{fields:i,span:12,onConfirm:n,children:e.jsx(o,{justify:"end",className:s["btn-submit"],children:e.jsx(g,{type:"primary",htmlType:"submit",children:a("创建用户")})})})})})]})})};export{R as default}; diff --git a/assets/index-c43e105c.js b/assets/index-8e157b2c.js similarity index 89% rename from assets/index-c43e105c.js rename to assets/index-8e157b2c.js index 0e2e6cb..90f8175 100644 --- a/assets/index-c43e105c.js +++ b/assets/index-8e157b2c.js @@ -1 +1 @@ -import{j as e,J as x,K as n,n as a,al as r,z as d}from"./antd-d487744a.js";import{t}from"./entry/index-a6cf600d.1715609901087.js";import{r as h}from"./react-f288da4a.js";import{G as o}from"./index-b0f98d83.js";import{P as j,a as c}from"./websiteSetting-607ea25c.js";const g=()=>{const[s,i]=h.useState(100),l=[{title:t("第一个"),key:"1",type:"date"},{title:t("第二个"),key:"2"},{title:t("第三个"),key:"3"},{title:t("第四个"),key:"4"},{title:t("第五个"),key:"5"},{title:t("第六个"),key:"6"},{title:t("第七个"),key:"7"},{title:t("第八个"),key:"8"},{title:t("第九个"),key:"9"},{title:t("第十个"),key:"10"}];return e.jsx(j,{plugin:c,children:e.jsxs(x,{gutter:[12,12],children:[e.jsx(n,{span:24,children:e.jsxs(a,{title:t("基础用法"),children:[e.jsx(r,{message:t("拖拽我,看看我的变化:"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("超过一行就折叠"),children:[e.jsx(r,{message:t("设置openRow,控制超过几行就折叠:"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,openRow:1})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("默认展开全部"),children:[e.jsx(r,{message:t("设置defaultOpen"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,defaultOpen:!0})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("平铺展示"),children:[e.jsx(r,{message:t("inline 状态下,所有的查询项的 title 不再有效,且会变成 placeholder,不断地平铺下去。"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,defaultOpen:!0,inline:!0,toggleVisible:!1})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("跨格"),children:[e.jsx(r,{message:t("GSearch 的 span 值是无效的,请使用 grid 来指定占格"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l.concat([{title:t("第一个"),key:"1",grid:{large:12,middle:16,small:24,mini:24}}]),defaultOpen:!0})})]})})]})})};export{g as default}; +import{j as e,J as x,K as n,n as a,al as r,z as d}from"./antd-66264537.js";import{t}from"./entry/index-49ff40a5.1715612414483.js";import{r as h}from"./react-f288da4a.js";import{G as o}from"./index-c5e45b02.js";import{P as j,a as c}from"./websiteSetting-168278cd.js";const g=()=>{const[s,i]=h.useState(100),l=[{title:t("第一个"),key:"1",type:"date"},{title:t("第二个"),key:"2"},{title:t("第三个"),key:"3"},{title:t("第四个"),key:"4"},{title:t("第五个"),key:"5"},{title:t("第六个"),key:"6"},{title:t("第七个"),key:"7"},{title:t("第八个"),key:"8"},{title:t("第九个"),key:"9"},{title:t("第十个"),key:"10"}];return e.jsx(j,{plugin:c,children:e.jsxs(x,{gutter:[12,12],children:[e.jsx(n,{span:24,children:e.jsxs(a,{title:t("基础用法"),children:[e.jsx(r,{message:t("拖拽我,看看我的变化:"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("超过一行就折叠"),children:[e.jsx(r,{message:t("设置openRow,控制超过几行就折叠:"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,openRow:1})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("默认展开全部"),children:[e.jsx(r,{message:t("设置defaultOpen"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,defaultOpen:!0})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("平铺展示"),children:[e.jsx(r,{message:t("inline 状态下,所有的查询项的 title 不再有效,且会变成 placeholder,不断地平铺下去。"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l,defaultOpen:!0,inline:!0,toggleVisible:!1})})]})}),e.jsx(n,{span:24,children:e.jsxs(a,{title:t("跨格"),children:[e.jsx(r,{message:t("GSearch 的 span 值是无效的,请使用 grid 来指定占格"),type:"info",showIcon:!0}),e.jsx(d,{defaultValue:s,min:30,max:100,onChange:i}),e.jsx("div",{style:{width:`${s}%`},children:e.jsx(o,{fields:l.concat([{title:t("第一个"),key:"1",grid:{large:12,middle:16,small:24,mini:24}}]),defaultOpen:!0})})]})})]})})};export{g as default}; diff --git a/assets/index-a2f2c8dc.js b/assets/index-a2f2c8dc.js new file mode 100644 index 0000000..3a8ba31 --- /dev/null +++ b/assets/index-a2f2c8dc.js @@ -0,0 +1 @@ +import{j as e}from"./antd-66264537.js";import{G as r}from"./entry/index-49ff40a5.1715612414483.js";import"./react-f288da4a.js";import{l as o,G as a,A as l}from"./api-3af9db57.js";import{G as s}from"./index-e22d6806.js";import"./index-c5e45b02.js";const i=[{title:"角色名称",key:"cn1",search:!0,dialog:{required:!0}},{title:"状态",key:"index",sort:!0,type:"radio-group",defaultValue:1,options:[{label:"启用",value:1},{label:"禁用",value:2}],dialog:{required:!0}}],d={width:200,render:(n,t)=>e.jsxs(a,{children:[e.jsx(l,{record:t,children:"授权"}),e.jsx(r,{record:t,action:"update",children:"编辑"}),e.jsx(r,{record:t,danger:!0,action:"delete",children:"删除"})]})};function f(){return e.jsx(s,{api:o,ctrl:d,fields:i,rowKey:"sort_id",dialogFormExtend:{fields:i},children:e.jsx(r,{action:"add",children:"新增"})})}export{f as default}; diff --git a/assets/index-b9ecdfd2.js b/assets/index-b9ecdfd2.js deleted file mode 100644 index 2f5d72b..0000000 --- a/assets/index-b9ecdfd2.js +++ /dev/null @@ -1 +0,0 @@ -var p=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var x=(s,t)=>{var o={};for(var a in s)g.call(s,a)&&t.indexOf(a)<0&&(o[a]=s[a]);if(s!=null&&p)for(var a of p(s))t.indexOf(a)<0&&b.call(s,a)&&(o[a]=s[a]);return o};import{c as y,j as e,n as u,aN as r,aE as w,i,L as N}from"./antd-d487744a.js";import{a as h}from"./react-f288da4a.js";import{S as n}from"./entry/index-a6cf600d.1715609901087.js";import{T}from"./Translatex-d163f7af.js";const F="/react-antd-admin-pnpm/assets/avatar_2-ce7fcb30.jpg",R="/react-antd-admin-pnpm/assets/cover_5-5698cb6c.jpg",S=y(({token:s})=>({"user-card":{width:"100%",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-card-cover":{maxHeight:"200px",overflow:"hidden"},".cover":{position:"relative",filter:"blur(0)","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"relative",".info":{paddingTop:s.margin*2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},".avatar-svg":{color:s.colorBgContainer,width:"144px !important",height:"62px !important",top:"-56px",position:"absolute",transform:"translateX(-50%)",left:"50%"},".avatar":{width:"64px",height:"64px",borderRadius:"50%",overflow:"hidden",position:"absolute",top:"-50px",transform:"translateX(-50%)",left:"50%"}}}})),{Text:j,Title:v}=N,c=({name:s,count:t})=>e.jsxs("div",{className:"footer",children:[e.jsx(j,{type:"secondary",children:s}),e.jsxs(v,{style:{margin:0},level:5,children:[t,"K"]})]}),E=a=>{var l=a,{data:s={id:1,name:"Gbeata",position:"Front-end",sex:"male",follwer:1341,mits:231,forbid:!1},index:t=1}=l,o=x(l,["data","index"]);const[d,f]=h.useState(!0),{styles:m}=S();return h.useEffect(()=>{setTimeout(()=>{f(!1)},500)},[]),e.jsxs(e.Fragment,{children:[d&&e.jsx(u,{className:m["user-card"],actions:[e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"})],cover:e.jsx(r.Image,{active:!0}),children:e.jsx(r,{loading:!0,avatar:!0,active:!0})}),e.jsx(T,{direction:"up",run:!d,delay:t*100,children:e.jsx(u,{className:m["user-card"],cover:e.jsx("span",{className:"cover",children:e.jsx("img",{alt:"example",src:R})}),actions:[e.jsx(c,{name:"Foloower",count:s.follwer}),e.jsx(c,{name:"Folowing",count:s.mits}),e.jsx(c,{name:"Total Post",count:s.total})],children:e.jsxs("div",{className:"user_info",children:[e.jsx(n,{className:"avatar-svg",name:"wave"}),e.jsx("div",{className:"avatar",children:e.jsx("img",{src:F})}),e.jsxs("div",{className:"info",children:[e.jsx(v,{style:{margin:0},level:5,children:s.name}),e.jsx(j,{type:"secondary",children:s.position}),e.jsxs(w,{style:{marginTop:8},gap:8,children:[e.jsx(i,{shape:"circle",icon:e.jsx(n,{style:{color:"#1890ff"},name:"github"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"message"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"like"})})]})]})]})})})]})};export{E as U,c as a,F as b,R as c}; diff --git a/assets/index-bf85aa66.js b/assets/index-bf85aa66.js new file mode 100644 index 0000000..11e67c9 --- /dev/null +++ b/assets/index-bf85aa66.js @@ -0,0 +1 @@ +import{j as r}from"./antd-66264537.js";import{G as e}from"./entry/index-49ff40a5.1715612414483.js";import"./react-f288da4a.js";import{l as o,G as s,A as a}from"./api-3af9db57.js";import{G as d}from"./index-e22d6806.js";import"./index-c5e45b02.js";const i=[{title:"用户名称",key:"cn1",search:!0,dialog:{required:!0}},{title:"所属组织",key:"index",sort:!0,search:!0,dialog:{required:!0}},{title:"状态",key:"index",sort:!0,dialog:{required:!0}}],n={width:200,render:(l,t)=>r.jsxs(s,{children:[r.jsx(e,{record:t,action:"view",children:"详情"}),r.jsx(e,{record:t,action:"update",children:"编辑"}),r.jsx(a,{record:t,children:"授权"})]})};function j(){return r.jsx(d,{api:o,ctrl:n,fields:i,rowKey:"sort_id",dialogFormExtend:{fields:i},children:r.jsx(e,{action:"add",children:"新增"})})}export{j as default}; diff --git a/assets/index-b0f98d83.js b/assets/index-c5e45b02.js similarity index 65% rename from assets/index-b0f98d83.js rename to assets/index-c5e45b02.js index 43e5406..2bb200b 100644 --- a/assets/index-b0f98d83.js +++ b/assets/index-c5e45b02.js @@ -1,2 +1,2 @@ -import{n as ie,g as ae,K as oe,G as le,S as ue,a2 as se,aw as ce,o as fe,aB as me}from"./antd-d487744a.js";import{r as m,a as c}from"./react-f288da4a.js";import{H as de,e as pe,g as A,l as _,I as ye,J as ve}from"./entry/index-a6cf600d.1715609901087.js";var ge=["fields","onConfirm","onReset","formExtend","defaultOpen","toggleVisible","openRow","actionVisible","inline"];function E(t){"@babel/helpers - typeof";return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(t)}function x(){return x=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ee(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,s;for(s=0;s=0)&&(r[a]=t[a]);return r}function K(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function F(t){for(var e=1;e24?(p+=24-f,f=24-b):f+=b,f===24&&(f=0),p+=b,r&&p>s*24-a&&g!==0&&(u.hidden=!0),u.span=b,u}),{searchFields:y,span:p}},xe=function(e){return e?_.search.collapsed:_.search.expand},Me=["getFieldValue","getFieldsValue","getFieldError","getFieldsError","isFieldTouched","isFieldsTouched","isFieldValidating","resetFields","scrollToField","setFields","setFieldsValue","submit","validateFields"],De=m.forwardRef(function(e,r){var n=e.fields,a=e.onConfirm,s=e.onReset,v=e.formExtend,p=e.defaultOpen,f=e.toggleVisible,y=e.openRow,o=y===void 0?Pe:y,g=e.actionVisible,u=e.inline,b=we(e,ge),$=de(),M=$.styles,P=m.useRef(),C=m.useRef(0),k=m.useState(!p),V=N(k,2),h=V[0],U=V[1],Y=m.useState("large"),I=N(Y,2),T=I[0],J=I[1],S=m.useMemo(function(){return _e[T]},[T]),D=Ae(n,h,T,S,o,u||!1),R=D.searchFields,O=D.span,G=m.useMemo(function(){if(!u){if(O<=18)return 6;var i=0,l=0,d=0;R.forEach(function(re,ne){var w=re.span||S;w+l>24?(i+=24-l,l=24-w):l+=w,l===24&&(l=0),i+w+S>o*24&&!d&&ne!==0&&(d=i),i+=w}),d===0&&(d=i);var z=24-(h?d:i)%24;return z}},[R,S,h,O,u]),L=m.useMemo(function(){return O>=24-S},[O]),q=m.useMemo(function(){var i={};return L?i.textAlign="right":i.paddingLeft=50,u&&(i={}),i},[L,u]),j=m.useRef(),B={resize:function(){return W()}};Me.forEach(function(i){B[i]=function(){var l;return(l=j.current)[i].apply(l,arguments)}}),m.useImperativeHandle(r,function(){return B});var Q=function(){U(!h)},X=function(){try{var l=P.current.offsetWidth,d="large";l>1300?d="large":l>900?d="middle":l>700?d="small":d="mini",J(d)}catch(z){}},W=function(){var l=Date.now();l-C.current>100&&(X(),C.current=l)};m.useLayoutEffect(function(){var i=new window.ResizeObserver(function(){W()});return i.observe(P.current),function(){i.disconnect()}},[]);var Z=function(){j.current.resetFields(),j.current.submit(),s&&s()},ee=function(l){a&&a(l)},te=function(){return c.createElement(A,{type:"link",onClick:Q},xe(h),h?c.createElement(fe,null):c.createElement(me,null))};return c.createElement(ie,{className:ae(M.gSearch,u?"":"full-width",u?M.inline:"")},c.createElement("div",{className:"g-search-content",ref:P},c.createElement(pe,x({layout:{labelCol:{flex:"100px"}},ref:j,fields:R,span:S,gutter:u?0:16,formLayout:u?"inline":"horizontal",onConfirm:ee},b,v),g!==!1&&c.createElement(oe,{span:G,style:q},c.createElement(le.Item,null,c.createElement(ue,null,c.createElement(A,{htmlType:"submit",type:"primary",icon:c.createElement(se,null)},_.search.search),c.createElement(A,{icon:c.createElement(ce,null),onClick:Z},_.search.reset),f!==!1&&!u?O>o*24-(G||0)&&R.length>1&&c.createElement(te,null):null))))))});export{De as G}; +import{n as ie,g as ae,K as oe,G as le,S as ue,a2 as se,ay as ce,o as fe,aC as me}from"./antd-66264537.js";import{r as m,a as c}from"./react-f288da4a.js";import{L as de,z as pe,s as A,n as _,M as ye,N as ve}from"./entry/index-49ff40a5.1715612414483.js";var ge=["fields","onConfirm","onReset","formExtend","defaultOpen","toggleVisible","openRow","actionVisible","inline"];function E(t){"@babel/helpers - typeof";return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(t)}function M(){return M=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ee(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,s;for(s=0;s=0)&&(r[a]=t[a]);return r}function $(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function F(t){for(var e=1;e24?(p+=24-f,f=24-b):f+=b,f===24&&(f=0),p+=b,r&&p>s*24-a&&g!==0&&(u.hidden=!0),u.span=b,u}),{searchFields:y,span:p}},Me=function(e){return e?_.search.collapsed:_.search.expand},xe=["getFieldValue","getFieldsValue","getFieldError","getFieldsError","isFieldTouched","isFieldsTouched","isFieldValidating","resetFields","scrollToField","setFields","setFieldsValue","submit","validateFields"],De=m.forwardRef(function(e,r){var n=e.fields,a=e.onConfirm,s=e.onReset,v=e.formExtend,p=e.defaultOpen,f=e.toggleVisible,y=e.openRow,o=y===void 0?Pe:y,g=e.actionVisible,u=e.inline,b=we(e,ge),k=de(),x=k.styles,P=m.useRef(),C=m.useRef(0),H=m.useState(!p),V=B(H,2),h=V[0],U=V[1],Y=m.useState("large"),I=B(Y,2),T=I[0],q=I[1],S=m.useMemo(function(){return _e[T]},[T]),D=Ae(n,h,T,S,o,u||!1),R=D.searchFields,O=D.span,L=m.useMemo(function(){if(!u){if(O<=18)return 6;var i=0,l=0,d=0;R.forEach(function(re,ne){var w=re.span||S;w+l>24?(i+=24-l,l=24-w):l+=w,l===24&&(l=0),i+w+S>o*24&&!d&&ne!==0&&(d=i),i+=w}),d===0&&(d=i);var W=24-(h?d:i)%24;return W}},[R,S,h,O,u]),G=m.useMemo(function(){return O>=24-S},[O]),J=m.useMemo(function(){var i={};return G?i.textAlign="right":i.paddingLeft=50,u&&(i={}),i},[G,u]),j=m.useRef(),z={resize:function(){return N()}};xe.forEach(function(i){z[i]=function(){var l;return(l=j.current)[i].apply(l,arguments)}}),m.useImperativeHandle(r,function(){return z});var Q=function(){U(!h)},X=function(){try{var l=P.current.offsetWidth,d="large";l>1300?d="large":l>900?d="middle":l>700?d="small":d="mini",q(d)}catch(W){}},N=function(){var l=Date.now();l-C.current>100&&(X(),C.current=l)};m.useLayoutEffect(function(){var i=new window.ResizeObserver(function(){N()});return i.observe(P.current),function(){i.disconnect()}},[]);var Z=function(){j.current.resetFields(),j.current.submit(),s&&s()},ee=function(l){a&&a(l)},te=function(){return c.createElement(A,{type:"link",onClick:Q},Me(h),h?c.createElement(fe,null):c.createElement(me,null))};return c.createElement(ie,{className:ae(x.gSearch,u?"":"full-width",u?x.inline:"")},c.createElement("div",{className:"g-search-content",ref:P},c.createElement(pe,M({layout:{labelCol:{flex:"100px"}},ref:j,fields:R,span:S,gutter:u?0:16,formLayout:u?"inline":"horizontal",onConfirm:ee},b,v),g!==!1&&c.createElement(oe,{span:L,style:J},c.createElement(le.Item,null,c.createElement(ue,null,c.createElement(A,{htmlType:"submit",type:"primary",icon:c.createElement(se,null)},_.search.search),c.createElement(A,{icon:c.createElement(ce,null),onClick:Z},_.search.reset),f!==!1&&!u?O>o*24-(L||0)&&R.length>1&&c.createElement(te,null):null))))))});export{De as G}; diff --git a/assets/index-c3d48558.js b/assets/index-dcf004a0.js similarity index 94% rename from assets/index-c3d48558.js rename to assets/index-dcf004a0.js index 1916a08..933b488 100644 --- a/assets/index-c3d48558.js +++ b/assets/index-dcf004a0.js @@ -1 +1 @@ -var U=Object.defineProperty,W=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var C=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))T.call(t,r)&&C(e,r,t[r]);if(y)for(var r of y(t))w.call(t,r)&&C(e,r,t[r]);return e},E=(e,t)=>W(e,z(t));var N=(e,t)=>{var r={};for(var c in e)T.call(e,c)&&t.indexOf(c)<0&&(r[c]=e[c]);if(e!=null&&y)for(var c of y(e))t.indexOf(c)<0&&w.call(e,c)&&(r[c]=e[c]);return r};import{j as n,J as F,K as u,n as S,ar as f,as as M,W as q}from"./antd-d487744a.js";import{t as l}from"./entry/index-a6cf600d.1715609901087.js";import{r as k}from"./react-f288da4a.js";import{P as v,T as B}from"./websiteSetting-607ea25c.js";const j=[];for(let e=1;e<10;e++)j.push({key:e.toString(),title:l("备选项{{i}}",{i:e})});const A=[{key:"1",title:l("备选项 1")},{key:"2",title:l("备选项 2"),children:[{key:"2-1",title:l("备选项 2-1")},{key:"2-2",title:l("备选项 2-2")},{key:"2-3",title:l("备选项 2-3")}]},{key:"3",title:l("备选项 3-1")},{key:"4",title:l("备选项 4"),children:[{key:"4-1",title:l("备选项 4-1")},{key:"4-2",title:l("备选项 4-2"),children:[{key:"4-2-1",title:l("备选项 4-2-1")}]},{key:"4-3",title:l("备选项 4-3")}]}],x=[];function O(e=[]){e.forEach(t=>{x==null||x.push(t),O(t.children)})}O(JSON.parse(JSON.stringify(A)));const X=()=>{const[e,t]=k.useState(["1","5"]),[r,c]=k.useState(["2","6"]),[p,P]=k.useState([]),m=s=>{t(s)},J=(s,i)=>{c([...s,...i])},K=(s,i)=>s.includes(i),b=(s=[],i=[])=>s.map(d=>{var o=d,{children:h}=o,a=N(o,["children"]);return E(R({},a),{disabled:i.includes(a.key),children:b(h,i)})}),_=s=>{P(s)},D=({selectedKeys:s,onItemSelectAll:i,onItemSelect:h})=>({onSelectAll(a,d){const o=d.filter(g=>!g.disabled).map(({key:g})=>g);i(o,a)},onSelect({key:a},d){h(a,d)},selectedRowKeys:s});return n.jsx(v,{plugin:B,children:n.jsxs(F,{gutter:12,children:[n.jsx(u,{span:8,children:n.jsx(S,{title:l("基础用法"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:e,selectedKeys:r,dataSource:j,render:s=>s.title,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:l("项")},onChange:m,onSelectChange:J})})}),n.jsx(u,{span:8,children:n.jsx(S,{title:l("树穿梭框"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:p,dataSource:x,render:s=>s.title,showSelectAll:!1,listStyle:{width:"230px",height:"360px"},onChange:_,children:({direction:s,selectedKeys:i,onItemSelect:h})=>{if(s==="left"){const a=[...i,...p];return n.jsx(M,{blockNode:!0,checkable:!0,checkStrictly:!0,defaultExpandAll:!0,checkedKeys:a,treeData:b(A,p),onCheck:(d,{node:{key:o}})=>{h(o,!K(a,o))},onSelect:(d,{node:{key:o}})=>{h(o,!K(a,o))}})}}})})}),n.jsx(u,{span:8,children:n.jsx(S,{title:l("表格穿梭框"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:e,dataSource:j,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:l("项")},onChange:m,children:({filteredItems:s,selectedKeys:i,onItemSelectAll:h,onItemSelect:a})=>n.jsx(q,{rowSelection:D({selectedKeys:i,onItemSelectAll:h,onItemSelect:a}),columns:[{dataIndex:"title",title:"Name"}],dataSource:s,size:"small",pagination:!1,onRow:({key:d})=>({onClick:()=>{a(d,!i.includes(d))}})})})})})]})})};export{X as default}; +var U=Object.defineProperty,W=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var C=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))T.call(t,r)&&C(e,r,t[r]);if(y)for(var r of y(t))w.call(t,r)&&C(e,r,t[r]);return e},E=(e,t)=>W(e,z(t));var N=(e,t)=>{var r={};for(var c in e)T.call(e,c)&&t.indexOf(c)<0&&(r[c]=e[c]);if(e!=null&&y)for(var c of y(e))t.indexOf(c)<0&&w.call(e,c)&&(r[c]=e[c]);return r};import{j as n,J as F,K as u,n as S,ar as f,as as M,W as q}from"./antd-66264537.js";import{t as l}from"./entry/index-49ff40a5.1715612414483.js";import{r as k}from"./react-f288da4a.js";import{P as v,T as B}from"./websiteSetting-168278cd.js";const j=[];for(let e=1;e<10;e++)j.push({key:e.toString(),title:l("备选项{{i}}",{i:e})});const A=[{key:"1",title:l("备选项 1")},{key:"2",title:l("备选项 2"),children:[{key:"2-1",title:l("备选项 2-1")},{key:"2-2",title:l("备选项 2-2")},{key:"2-3",title:l("备选项 2-3")}]},{key:"3",title:l("备选项 3-1")},{key:"4",title:l("备选项 4"),children:[{key:"4-1",title:l("备选项 4-1")},{key:"4-2",title:l("备选项 4-2"),children:[{key:"4-2-1",title:l("备选项 4-2-1")}]},{key:"4-3",title:l("备选项 4-3")}]}],x=[];function O(e=[]){e.forEach(t=>{x==null||x.push(t),O(t.children)})}O(JSON.parse(JSON.stringify(A)));const X=()=>{const[e,t]=k.useState(["1","5"]),[r,c]=k.useState(["2","6"]),[p,P]=k.useState([]),m=s=>{t(s)},J=(s,i)=>{c([...s,...i])},K=(s,i)=>s.includes(i),b=(s=[],i=[])=>s.map(d=>{var o=d,{children:h}=o,a=N(o,["children"]);return E(R({},a),{disabled:i.includes(a.key),children:b(h,i)})}),_=s=>{P(s)},D=({selectedKeys:s,onItemSelectAll:i,onItemSelect:h})=>({onSelectAll(a,d){const o=d.filter(g=>!g.disabled).map(({key:g})=>g);i(o,a)},onSelect({key:a},d){h(a,d)},selectedRowKeys:s});return n.jsx(v,{plugin:B,children:n.jsxs(F,{gutter:12,children:[n.jsx(u,{span:8,children:n.jsx(S,{title:l("基础用法"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:e,selectedKeys:r,dataSource:j,render:s=>s.title,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:l("项")},onChange:m,onSelectChange:J})})}),n.jsx(u,{span:8,children:n.jsx(S,{title:l("树穿梭框"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:p,dataSource:x,render:s=>s.title,showSelectAll:!1,listStyle:{width:"230px",height:"360px"},onChange:_,children:({direction:s,selectedKeys:i,onItemSelect:h})=>{if(s==="left"){const a=[...i,...p];return n.jsx(M,{blockNode:!0,checkable:!0,checkStrictly:!0,defaultExpandAll:!0,checkedKeys:a,treeData:b(A,p),onCheck:(d,{node:{key:o}})=>{h(o,!K(a,o))},onSelect:(d,{node:{key:o}})=>{h(o,!K(a,o))}})}}})})}),n.jsx(u,{span:8,children:n.jsx(S,{title:l("表格穿梭框"),bordered:!1,bodyStyle:{height:"420px"},children:n.jsx(f,{targetKeys:e,dataSource:j,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:l("项")},onChange:m,children:({filteredItems:s,selectedKeys:i,onItemSelectAll:h,onItemSelect:a})=>n.jsx(q,{rowSelection:D({selectedKeys:i,onItemSelectAll:h,onItemSelect:a}),columns:[{dataIndex:"title",title:"Name"}],dataSource:s,size:"small",pagination:!1,onRow:({key:d})=>({onClick:()=>{a(d,!i.includes(d))}})})})})})]})})};export{X as default}; diff --git a/assets/index-df1c219f.js b/assets/index-df1c219f.js deleted file mode 100644 index f12440a..0000000 --- a/assets/index-df1c219f.js +++ /dev/null @@ -1 +0,0 @@ -import{c,j as e,T as p,J as u,K as t,n as d,aE as o,aq as h}from"./antd-d487744a.js";import{t as a,K as x,e as m,g}from"./entry/index-a6cf600d.1715609901087.js";import{h as b}from"./react-f288da4a.js";import{T as j}from"./Translatex-d163f7af.js";const f=c(({token:r})=>({"custom-upload-drag":{".ant-upload-drag":{background:"#fff",border:"none","&:hover":{".add-phone-box":{border:`1px dashed ${r.colorPrimary}`,".add-phone":{background:r.colorBgTextActive}}},".add-phone-box":{width:"144px",height:"144px",borderRadius:"50%",overflow:"hidden",cursor:"pointer",margin:"0 auto",padding:r.paddingSM,border:`1px dashed ${r.colorBorderSecondary}`,transition:"border-color .3s ease","&:hover":{border:`1px dashed ${r.colorPrimary}`},".add-phone":{width:"100%",height:"100%",background:r.colorBgContainerDisabled,borderRadius:"50%",color:r.colorTextDisabled,transition:"all .3s ease","&:hover":{background:r.colorBgTextActive}}}}},"add-user-form":{".ant-input":{borderRadius:r.borderRadiusLG}},"btn-submit":{width:"100%"}})),R=()=>{const r=b(),{Dragger:l}=h,{styles:s}=f(),i=[{title:a("全名"),key:"input",required:!0,defaultValue:"Gbeata"},{title:a("密码"),type:"password",key:"password",defaultValue:"gbeata"},{title:a("城市"),type:"select",key:"select",defaultValue:1,options:[{label:e.jsx(p,{children:a("选项A")}),value:1},{label:a("选项2"),value:2}]},{title:a("电话号码"),key:"number",required:!0,defaultValue:15305999999},{title:a("地址"),type:"textarea",key:"textarea",defaultValue:a("广东省深圳市南山区科技园"),span:24}],n=y=>{r("/user/user-list")};return e.jsx(j,{direction:"left",run:!0,delay:100,children:e.jsxs(u,{gutter:[16,16],children:[e.jsx(t,{span:8,children:e.jsx(d,{children:e.jsxs(l,{action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,className:s["custom-upload-drag"],children:[e.jsx("div",{className:"add-phone-box",children:e.jsxs(o,{align:"center",vertical:!0,justify:"center",className:"add-phone",children:[e.jsx(x,{name:"camera",size:24}),e.jsx("span",{children:"upload phone"})]})}),e.jsxs("p",{children:[a("将图片拖到此处, 或"),e.jsx("span",{style:{color:"#1890ff"},children:a("点击上传")})]}),e.jsx("p",{className:"ant-upload-hint",children:a("只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb")})]})})}),e.jsx(t,{span:16,children:e.jsx(d,{children:e.jsx(m,{fields:i,span:12,onConfirm:n,children:e.jsx(o,{justify:"end",className:s["btn-submit"],children:e.jsx(g,{type:"primary",htmlType:"submit",children:a("创建用户")})})})})})]})})};export{R as default}; diff --git a/assets/index-e22d6806.js b/assets/index-e22d6806.js new file mode 100644 index 0000000..5d05703 --- /dev/null +++ b/assets/index-e22d6806.js @@ -0,0 +1,9 @@ +import{ai as _t,S as st,k as se,ay as wt,ab as At,aj as ze,az as Ot,$ as Ft,a0 as xt,v as Tt,I as Pt,aA as Ct,aB as jt,a7 as Dt,T as Rt,N as Vt,al as $t,g as It}from"./antd-66264537.js";import{r as d,a as i}from"./react-f288da4a.js";import{x as ft,y as dt,z as mt,A as yt,n as A,s as Je,B as Z,G as kt,D as Kt,E as Mt,H as Nt,I as zt,J as Bt,K as Ht}from"./entry/index-49ff40a5.1715612414483.js";import{G as Gt}from"./index-c5e45b02.js";function je(t){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(t)}function Ue(){return Ue=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0&&(h.splice(I,1),p.splice(I,1))}),g(h),C(p)},z=i.createElement("div",{className:"g-search-poper"},x.map(function(O,f){return i.createElement(Rt,{key:Z(O,e),closable:!0,className:"mb",onClose:function(){return y(f)}},O[a||"name"])})),$=i.createElement("div",null,i.createElement("span",null,A.table.selectedBefore,i.createElement(Vt,{title:A.table.selectedTitle,content:z},i.createElement("a",null,x.length))," ",A.table.selectedAfter),i.createElement(kt,{className:"ml",type:"link",size:"small",onClick:G},A.table.selectedClear)),Q=m.length?i.createElement($t,{className:"g-search-table-alert",message:$,showIcon:!0}):"";return d.useEffect(function(){n&&n(x,m)},[n,x]),{header:Q,message:$,tableRowSelection:D,selection:x,clearSelection:G,removeSelection:y,setSelection:q,addSelection:N}}function Re(t){"@babel/helpers - typeof";return Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(t)}function Ce(){return Ce=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0&&(n=!0,o.index=a.sortOrder),r.push(o)}}),n&&(r.sort(function(a,o){return(a.index||9999)-(o.index||9999)}),r=r.map(function(a){return{key:a.key,order:a.order}})),r},ct=function(e){if(!e||!e.props)return!1;var r=Ht(e.props,{});return r.tableFooterExtraOnly===!0},Rr=function(e){var r=[],n=[];return Array.isArray(e)?e.forEach(function(a){ct(a)?r.push(a):a&&n.push(a)}):ct(e)?r.push(e):e&&n.push(e),{rightActions:n,footerActions:r}},Kr=d.forwardRef(function(e,r){e.className,e.rowClassName;var n=e.fields,a=e.api,o=e.deleteApi,b=e.children,s=e.data,m=e.title,g=e.ctrl,_=e.selectionType,M=e.onSelectionChange,x=e.rowKey,C=e.dialogFormExtend,D=e.scrollX,G=e.height,q=e.filterData,N=e.beforeSearch,u=e.selectShowKey,c=e.onExpand,l=e.center,y=e.onLoad,T=e.searchVisible,z=e.tableExtend,$=e.pagination,Q=e.btnBefore,O=e.extendSearchParams,f=e.before,h=e.defaultExtra,p=e.after,B=e.editMode,I=e.autoload,Se=e.rowSelection,Ve=e.searchExtend,R=e.onParamsChange,ie=e.tableHeader,qe=e.compact,$e=e.useOriginPagination,fe=d.useMemo(function(){var v=ft(b);return[].concat(ce(n||[]),ce(v))},[n,b]),oe=d.useRef(),j=d.useRef(),X=d.useRef(),Y=d.useRef(),pe=Cr(fe),Ee=pe.searchFields,te=pe.moreSearchFields,V=d.useState(ut(fe)),_e=ot(V,2),de=_e[0],we=_e[1],k=pr({rowKey:x,selectionType:_,onSelectionChange:M,selectShowKey:u,rowSelection:Se}),le=k.header,L=k.message,Xe=k.tableRowSelection,me=k.selection,Ie=k.clearSelection,Ae=k.setSelection,ke=k.addSelection,Ke=k.removeSelection,H=Rr(b),Me=H.footerActions,ye=H.rightActions,be=d.useState([]),Oe=ot(be,2),Ne=Oe[0],U=Oe[1],he=sr(j,X,de,we,e),S=he.extraBtns,E=he.size,w=he.isEnter,W=he.setDefaultField,P=function(){we(ut(fe)),X.current&&typeof X.current.rezise=="function"&&X.current.rezise()};d.useEffect(function(){P()},[fe,w]);var re=function(){var F,ue,pt=((F=Y.current)===null||F===void 0?void 0:F.getFieldsValue())||{},Et=((ue=X.current)===null||ue===void 0?void 0:ue.getFieldsValue())||{};return ge(ge({},pt),Et)},J=function(){j.current.reset(re())};d.useImperativeHandle(r,function(){return{refresh:function(){j.current.refresh()},reset:function(){J()},clearSelection:function(){Ie()},getSearchRef:function(){return X.current},getMoreSearchRef:function(){return Y.current},getSelection:function(){return me},setSelection:Ae,addSelection:ke,doLayout:P,getTableData:function(){return j.current.getTableData()},setTableData:function(F){return j.current.setTableData(F)},clearFilters:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j.current.clearFilters(F)},setFiltersValue:function(F){return j.current.setFiltersValue(F)},setSortsValue:function(F){return j.current.setSortsValue(F)},clearSorts:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j.current.clearSorts(F)},getApiParams:function(){return j.current.getApiParams()},deleteRowByKey:function(F){j.current.deleteRowByKey(F)},getFromRef:function(){return oe.current},addRow:function(F){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"after";j.current.addRow(F,ue)},getEditTableRowForm:function(){return Ne},setPaginitionValue:function(F){j.current.setPaginitionValue(F)}}});var K={ref:j,rowSelection:Xe,api:a,size:E,data:s,title:m,ctrl:g,rowKey:x,scrollX:D,height:G,filterData:q,beforeSearch:N,onExpand:c,onLoad:y,tableExtend:z,pagination:$,defaultFiltersValue:jr(de),defaultSortsValue:Dr(de),defaultSearchValue:Kt([].concat(ce(Ee),ce(te))),btnBefore:Q,editMode:B,extendSearchParams:O,autoload:I,onParamsChange:R,tableHeader:ie,getSearchParams:re,useOriginPagination:$e},St=d.useMemo(function(){var v=[];return te&&te.length&&v.push(i.createElement(mt,{className:"g-search-table-more",key:"g-search-table-more",ref:Y,fields:te,onConfirm:J},i.createElement(Je,{className:"g-search-table-more-submit",htmlType:"submit"}))),ye&&ye.length&&v.push(ye),S&&v.push(S),v.length===1?v[0]:v.length?v:null},[Y,te,J,ye,S]);return d.useEffect(function(){h&&W(h)},[]),i.createElement("div",{className:It("g-search-table",w&&"full",qe&&"compact")},i.createElement(Mt.Provider,{value:{formRef:oe,tableRef:j,selection:me,deleteApi:o,rowKey:x,setSelection:Ae,clearSelection:Ie,addSelection:ke,removeSelection:Ke,searchTableRef:r,editTableRow:Ne,setEditTableRow:function(F){U(function(ue){return[].concat(ce(ue),ce(F))})}}},f,T!==!1&&Ee.length>0?i.createElement(Gt,Ce({ref:X,fields:Ee,onConfirm:J},Ve)):null,l,C?i.createElement(tr,Ce({ref:oe,dialogOnly:!0},C),b):null,i.createElement(Nt,Ce({},K,{fields:de,header:le}),St),me.length&&Me.length?i.createElement("div",{className:"g-search-table-footer-actions"},L,i.createElement(st,null,Me)):null,p))});export{Kr as G}; diff --git a/assets/index-221b918b.js b/assets/index-e62f32ec.js similarity index 72% rename from assets/index-221b918b.js rename to assets/index-e62f32ec.js index 5237b50..863a116 100644 --- a/assets/index-221b918b.js +++ b/assets/index-e62f32ec.js @@ -1 +1 @@ -import{c as q,j as w,aE as U,i as X,P as Y,J as Z,K as k}from"./antd-d487744a.js";import{_ as p,z as b,L as y,A as B,y as I,M as F,N as ee,v as G,w as J,O as ne,P as re,Q as K,x as te,R as T,t as ie,T as ue}from"./entry/index-a6cf600d.1715609901087.js";import{r as h,h as ae}from"./react-f288da4a.js";import{U as oe}from"./index-b9ecdfd2.js";import"./Translatex-d163f7af.js";var se=function(e){return function(r,n){var t=h.useRef(!1);e(function(){return function(){t.current=!1}},[]),e(function(){if(!t.current)t.current=!0;else return r()},n)}};const W=se(h.useEffect);var Q=function(e,r){var n=r.manual,t=r.ready,u=t===void 0?!0:t,o=r.defaultParams,a=o===void 0?[]:o,c=r.refreshDeps,s=c===void 0?[]:c,i=r.refreshDepsAction,v=h.useRef(!1);return v.current=!1,W(function(){!n&&u&&(v.current=!0,e.run.apply(e,p([],b(a),!1)))},[u]),W(function(){v.current||n||(v.current=!0,i?i():e.refresh())},p([],b(s),!1)),{onBefore:function(){if(!u)return{stopNow:!0}}}};Q.onInit=function(e){var r=e.ready,n=r===void 0?!0:r,t=e.manual;return{loading:!t&&n}};const ce=Q;function fe(e,r){if(e===r)return!0;for(var n=0;n-1&&(u=setTimeout(function(){O.delete(e)},r)),O.set(e,y(y({},n),{timer:u}))},de=function(e){return O.get(e)},D=new Map,ve=function(e){return D.get(e)},he=function(e,r){D.set(e,r),r.then(function(n){return D.delete(e),n}).catch(function(){D.delete(e)})},C={},me=function(e,r){C[e]&&C[e].forEach(function(n){return n(r)})},$=function(e,r){return C[e]||(C[e]=[]),C[e].push(r),function(){var t=C[e].indexOf(r);C[e].splice(t,1)}},ge=function(e,r){var n=r.cacheKey,t=r.cacheTime,u=t===void 0?5*60*1e3:t,o=r.staleTime,a=o===void 0?0:o,c=r.setCache,s=r.getCache,i=h.useRef(),v=h.useRef(),d=function(f,l){c?c(l):le(f,u,l),me(f,l.data)},m=function(f,l){return l===void 0&&(l=[]),s?s(l):de(f)};return V(function(){if(n){var f=m(n);f&&Object.hasOwnProperty.call(f,"data")&&(e.state.data=f.data,e.state.params=f.params,(a===-1||new Date().getTime()-f.time<=a)&&(e.state.loading=!1)),i.current=$(n,function(l){e.setState({data:l})})}},[]),B(function(){var f;(f=i.current)===null||f===void 0||f.call(i)}),n?{onBefore:function(f){var l=m(n,f);return!l||!Object.hasOwnProperty.call(l,"data")?{}:a===-1||new Date().getTime()-l.time<=a?{loading:!1,data:l==null?void 0:l.data,error:void 0,returnNow:!0}:{data:l==null?void 0:l.data,error:void 0}},onRequest:function(f,l){var g=ve(n);return g&&g!==v.current?{servicePromise:g}:(g=f.apply(void 0,p([],b(l),!1)),v.current=g,he(n,g),{servicePromise:g})},onSuccess:function(f,l){var g;n&&((g=i.current)===null||g===void 0||g.call(i),d(n,{data:f,params:l,time:new Date().getTime()}),i.current=$(n,function(E){e.setState({data:E})}))},onMutate:function(f){var l;n&&((l=i.current)===null||l===void 0||l.call(i),d(n,{data:f,params:e.state.params,time:new Date().getTime()}),i.current=$(n,function(g){e.setState({data:g})}))}}:{}};const pe=ge;var be=function(e,r){var n=r.debounceWait,t=r.debounceLeading,u=r.debounceTrailing,o=r.debounceMaxWait,a=h.useRef(),c=h.useMemo(function(){var s={};return t!==void 0&&(s.leading=t),u!==void 0&&(s.trailing=u),o!==void 0&&(s.maxWait=o),s},[t,u,o]);return h.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=I(function(i){i()},n,c),e.runAsync=function(){for(var i=[],v=0;v-1&&A.splice(n,1)}}if(F){var z=function(){if(!(!H()||!Ae()))for(var e=0;e({"add-button":{background:e.colorDefault}})),Xe=()=>{const{styles:e,theme:r,cx:n}=Ge(),t=ae(),[u,o]=h.useState([]),{data:a,loading:c}=ze(ue);return h.useEffect(()=>{o((a==null?void 0:a.list)||[])},[a]),w.jsxs(U,{gap:16,vertical:!0,children:[w.jsx(U,{justify:"end",children:w.jsx(X,{className:n(e["add-button"]),type:"primary",icon:w.jsx(Y,{}),onClick:()=>t("/user/add-user"),children:ie("新建")})}),w.jsx(Z,{gutter:[16,16],children:u==null?void 0:u.map((s,i)=>w.jsx(k,{span:8,children:w.jsx(oe,{data:s,index:i,loading:c})},s.id))})]})};export{Xe as default}; +import{c as X,j as w,aF as _,i as q,P as Y,J as Z,K as k}from"./antd-66264537.js";import{_ as p,g as b,P as y,h as B,f as I,Q as D,R as ee,i as V,d as G,T as ne,U as re,V as J,e as te,W as T,t as ie,X as ue}from"./entry/index-49ff40a5.1715612414483.js";import{r as h,h as ae}from"./react-f288da4a.js";import{U as oe}from"./index-6d20d62b.js";import"./Translatex-83019934.js";var se=function(e){return function(r,n){var t=h.useRef(!1);e(function(){return function(){t.current=!1}},[]),e(function(){if(!t.current)t.current=!0;else return r()},n)}};const W=se(h.useEffect);var K=function(e,r){var n=r.manual,t=r.ready,u=t===void 0?!0:t,o=r.defaultParams,a=o===void 0?[]:o,c=r.refreshDeps,s=c===void 0?[]:c,i=r.refreshDepsAction,v=h.useRef(!1);return v.current=!1,W(function(){!n&&u&&(v.current=!0,e.run.apply(e,p([],b(a),!1)))},[u]),W(function(){v.current||n||(v.current=!0,i?i():e.refresh())},p([],b(s),!1)),{onBefore:function(){if(!u)return{stopNow:!0}}}};K.onInit=function(e){var r=e.ready,n=r===void 0?!0:r,t=e.manual;return{loading:!t&&n}};const ce=K;function fe(e,r){if(e===r)return!0;for(var n=0;n-1&&(u=setTimeout(function(){O.delete(e)},r)),O.set(e,y(y({},n),{timer:u}))},de=function(e){return O.get(e)},F=new Map,ve=function(e){return F.get(e)},he=function(e,r){F.set(e,r),r.then(function(n){return F.delete(e),n}).catch(function(){F.delete(e)})},C={},me=function(e,r){C[e]&&C[e].forEach(function(n){return n(r)})},M=function(e,r){return C[e]||(C[e]=[]),C[e].push(r),function(){var t=C[e].indexOf(r);C[e].splice(t,1)}},ge=function(e,r){var n=r.cacheKey,t=r.cacheTime,u=t===void 0?5*60*1e3:t,o=r.staleTime,a=o===void 0?0:o,c=r.setCache,s=r.getCache,i=h.useRef(),v=h.useRef(),d=function(f,l){c?c(l):le(f,u,l),me(f,l.data)},m=function(f,l){return l===void 0&&(l=[]),s?s(l):de(f)};return Q(function(){if(n){var f=m(n);f&&Object.hasOwnProperty.call(f,"data")&&(e.state.data=f.data,e.state.params=f.params,(a===-1||new Date().getTime()-f.time<=a)&&(e.state.loading=!1)),i.current=M(n,function(l){e.setState({data:l})})}},[]),B(function(){var f;(f=i.current)===null||f===void 0||f.call(i)}),n?{onBefore:function(f){var l=m(n,f);return!l||!Object.hasOwnProperty.call(l,"data")?{}:a===-1||new Date().getTime()-l.time<=a?{loading:!1,data:l==null?void 0:l.data,error:void 0,returnNow:!0}:{data:l==null?void 0:l.data,error:void 0}},onRequest:function(f,l){var g=ve(n);return g&&g!==v.current?{servicePromise:g}:(g=f.apply(void 0,p([],b(l),!1)),v.current=g,he(n,g),{servicePromise:g})},onSuccess:function(f,l){var g;n&&((g=i.current)===null||g===void 0||g.call(i),d(n,{data:f,params:l,time:new Date().getTime()}),i.current=M(n,function(A){e.setState({data:A})}))},onMutate:function(f){var l;n&&((l=i.current)===null||l===void 0||l.call(i),d(n,{data:f,params:e.state.params,time:new Date().getTime()}),i.current=M(n,function(g){e.setState({data:g})}))}}:{}};const pe=ge;var be=function(e,r){var n=r.debounceWait,t=r.debounceLeading,u=r.debounceTrailing,o=r.debounceMaxWait,a=h.useRef(),c=h.useMemo(function(){var s={};return t!==void 0&&(s.leading=t),u!==void 0&&(s.trailing=u),o!==void 0&&(s.maxWait=o),s},[t,u,o]);return h.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=I(function(i){i()},n,c),e.runAsync=function(){for(var i=[],v=0;v-1&&j.splice(n,1)}}if(D){var z=function(){if(!(!H()||!je()))for(var e=0;e({"add-button":{background:e.colorDefault}})),qe=()=>{const{styles:e,theme:r,cx:n}=Ve(),t=ae(),[u,o]=h.useState([]),{data:a,loading:c}=ze(ue);return h.useEffect(()=>{o((a==null?void 0:a.list)||[])},[a]),w.jsxs(_,{gap:16,vertical:!0,children:[w.jsx(_,{justify:"end",children:w.jsx(q,{className:n(e["add-button"]),type:"primary",icon:w.jsx(Y,{}),onClick:()=>t("/user/add-user"),children:ie("新建")})}),w.jsx(Z,{gutter:[16,16],children:u==null?void 0:u.map((s,i)=>w.jsx(k,{span:8,children:w.jsx(oe,{data:s,index:i,loading:c})},s.id))})]})};export{qe as default}; diff --git a/assets/index-02ea5973.js b/assets/index-fe7bf50c.js similarity index 51% rename from assets/index-02ea5973.js rename to assets/index-fe7bf50c.js index 2467f61..b1fdbb4 100644 --- a/assets/index-02ea5973.js +++ b/assets/index-fe7bf50c.js @@ -1,20 +1,12 @@ -var S8=Object.defineProperty,A8=Object.defineProperties;var M8=Object.getOwnPropertyDescriptors;var Sm=Object.getOwnPropertySymbols;var TP=Object.prototype.hasOwnProperty,CP=Object.prototype.propertyIsEnumerable;var M1=Math.pow,bP=(n,e,t)=>e in n?S8(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Tt=(n,e)=>{for(var t in e||(e={}))TP.call(e,t)&&bP(n,t,e[t]);if(Sm)for(var t of Sm(e))CP.call(e,t)&&bP(n,t,e[t]);return n},_r=(n,e)=>A8(n,M8(e));var vi=(n,e)=>{var t={};for(var r in n)TP.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Sm)for(var r of Sm(n))e.indexOf(r)<0&&CP.call(n,r)&&(t[r]=n[r]);return t};var mh=(n,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(u){i(u)}},o=l=>{try{s(t.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);s((t=t.apply(n,e)).next())});import{j as ee,n as A3,ai as w8,S as M3,k as fc,aw as b8,ab as T8,aj as Am,ax as C8,$ as E8,a0 as R8,v as P8,I as D8,ay as I8,az as L8,a7 as B8,T as O8,N as F8,al as N8,g as _0,a as td,c as w3,Y as b3,K as Fo,L as UT,J as EP,aA as k8,i as U8}from"./antd-d487744a.js";import{r as Y,a as At,g as T3}from"./react-f288da4a.js";import{u as G8,a as z8,b as H8,d as C3,G as E3,e as R3,f as P3,l as or,g as vw,h as vs,i as V8,j as W8,k as X8,m as Y8,n as j8,q as J8,s as Z8,v as K8,w as q8,x as $8,y as Q8,_ as e9,z as t9,A as n9,F as r9,B as i9,C as a9,t as jn,S as x0,D as o9,E as s9}from"./entry/index-a6cf600d.1715609901087.js";import{c as l9,U as u9}from"./index-b9ecdfd2.js";import{_ as w1}from"./index-646dffa4.js";import{T as ti}from"./Translatex-d163f7af.js";import{G as c9}from"./index-b0f98d83.js";function h9(n){const e=Y.useRef(null),t=Tt({mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},n.panelConfig),[{xys:r},i]=G8(()=>({xys:[0,0,1],config:t}),[t]),a=()=>i.start({xys:[0,0,1]}),o=s=>{var u;const l=(u=e.current)==null?void 0:u.getBoundingClientRect();i.start({xys:f9(s.clientX,s.clientY,l)})};return ee.jsx("div",{ref:e,children:ee.jsxs(z8.div,{className:"border border-solid ",style:{transform:r.to(d9)},onMouseLeave:a,onMouseMove:o,children:[ee.jsxs("p",{className:"text-sm flex justify-between border-solid",children:[n.title," ",n.right]}),n.children]})})}const f9=(n,e,t)=>[-(e-t.top-t.height/2)/150,(n-t.left-t.width/2)/150,1],d9=(n,e,t)=>`perspective(600px) rotateX(${n}deg) rotateY(${e}deg) scale(${t})`,b1=n=>{const i=n,{loading:e=!0,delay:t=200}=i,r=vi(i,["loading","delay"]);return ee.jsx(ti,{direction:"top",delay:t,run:!0,children:ee.jsx(A3,_r(Tt({hoverable:!0,loading:e},r),{children:n.children}))})};function p9(n){const i=n,{sliderConfig:e,children:t}=i,r=vi(i,["sliderConfig","children"]);return ee.jsx(H8,_r(Tt(Tt({},r),e),{children:t}))}function lv(n){"@babel/helpers - typeof";return lv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lv(n)}function q0(){return q0=Object.assign?Object.assign.bind():function(n){for(var e=1;en.length)&&(e=n.length);for(var t=0,r=new Array(e);tn.length)&&(e=n.length);for(var t=0,r=new Array(e);tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0&&(B.splice(z,1),k.splice(z,1))}),u(B),d(k)},C=At.createElement("div",{className:"g-search-poper"},f.map(function(R,D){return At.createElement(O8,{key:vs(R,e),closable:!0,className:"mb",onClose:function(){return b(D)}},R[i||"name"])})),P=At.createElement("div",null,At.createElement("span",null,or.table.selectedBefore,At.createElement(F8,{title:or.table.selectedTitle,content:C},At.createElement("a",null,f.length))," ",or.table.selectedAfter),At.createElement(V8,{className:"ml",type:"link",size:"small",onClick:y},or.table.selectedClear)),E=l.length?At.createElement(N8,{className:"g-search-table-alert",message:P,showIcon:!0}):"";return Y.useEffect(function(){r&&r(f,l)},[r,f]),{header:E,message:P,tableRowSelection:p,selection:f,clearSelection:y,removeSelection:b,setSelection:g,addSelection:v}}function cv(n){"@babel/helpers - typeof";return cv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cv(n)}function zp(){return zp=Object.assign?Object.assign.bind():function(n){for(var e=1;en.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0&&(r=!0,a.index=i.sortOrder),t.push(a)}}),r&&(t.sort(function(i,a){return(i.index||9999)-(a.index||9999)}),t=t.map(function(i){return{key:i.key,order:i.order}})),t},NP=function(e){if(!e||!e.props)return!1;var t=Z8(e.props,{});return t.tableFooterExtraOnly===!0},r6=function(e){var t=[],r=[];return Array.isArray(e)?e.forEach(function(i){NP(i)?t.push(i):i&&r.push(i)}):NP(e)?t.push(e):e&&r.push(e),{rightActions:r,footerActions:t}},i6=Y.forwardRef(function(e,t){e.className,e.rowClassName;var r=e.fields,i=e.api,a=e.deleteApi,o=e.children,s=e.data,l=e.title,u=e.ctrl,c=e.selectionType,h=e.onSelectionChange,f=e.rowKey,d=e.dialogFormExtend,p=e.scrollX,y=e.height,g=e.filterData,v=e.beforeSearch,x=e.selectShowKey,S=e.onExpand,A=e.center,b=e.onLoad,w=e.searchVisible,C=e.tableExtend,P=e.pagination,E=e.btnBefore,R=e.extendSearchParams,D=e.before,B=e.defaultExtra,k=e.after,N=e.editMode,z=e.autoload,X=e.rowSelection,ne=e.searchExtend,H=e.onParamsChange,K=e.tableHeader,Q=e.compact,le=e.useOriginPagination,he=Y.useMemo(function(){var ue=C3(o);return[].concat(Qu(r||[]),Qu(ue))},[r,o]),re=Y.useRef(),ce=Y.useRef(),_e=Y.useRef(),ge=Y.useRef(),Be=e6(he),Ye=Be.searchFields,Ke=Be.moreSearchFields,Ne=Y.useState(FP(he)),Ie=BP(Ne,2),Z=Ie[0],Se=Ie[1],ve=W9({rowKey:f,selectionType:c,onSelectionChange:h,selectShowKey:x,rowSelection:X}),Pe=ve.header,me=ve.message,et=ve.tableRowSelection,Xe=ve.selection,V=ve.clearSelection,G=ve.setSelection,de=ve.addSelection,Fe=ve.removeSelection,Re=r6(o),Le=Re.footerActions,st=Re.rightActions,Je=Y.useState([]),rt=BP(Je,2),_t=rt[0],ht=rt[1],ke=B9(ce,_e,Z,Se,e),vt=ke.extraBtns,ft=ke.size,it=ke.isEnter,qe=ke.setDefaultField,je=function(){Se(FP(he)),_e.current&&typeof _e.current.rezise=="function"&&_e.current.rezise()};Y.useEffect(function(){je()},[he,it]);var oe=function(){var ie,We,tt=((ie=ge.current)===null||ie===void 0?void 0:ie.getFieldsValue())||{},Et=((We=_e.current)===null||We===void 0?void 0:We.getFieldsValue())||{};return If(If({},tt),Et)},we=function(){ce.current.reset(oe())};Y.useImperativeHandle(t,function(){return{refresh:function(){ce.current.refresh()},reset:function(){we()},clearSelection:function(){V()},getSearchRef:function(){return _e.current},getMoreSearchRef:function(){return ge.current},getSelection:function(){return Xe},setSelection:G,addSelection:de,doLayout:je,getTableData:function(){return ce.current.getTableData()},setTableData:function(ie){return ce.current.setTableData(ie)},clearFilters:function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ce.current.clearFilters(ie)},setFiltersValue:function(ie){return ce.current.setFiltersValue(ie)},setSortsValue:function(ie){return ce.current.setSortsValue(ie)},clearSorts:function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ce.current.clearSorts(ie)},getApiParams:function(){return ce.current.getApiParams()},deleteRowByKey:function(ie){ce.current.deleteRowByKey(ie)},getFromRef:function(){return re.current},addRow:function(ie){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"after";ce.current.addRow(ie,We)},getEditTableRowForm:function(){return _t},setPaginitionValue:function(ie){ce.current.setPaginitionValue(ie)}}});var Ue={ref:ce,rowSelection:et,api:i,size:ft,data:s,title:l,ctrl:u,rowKey:f,scrollX:p,height:y,filterData:g,beforeSearch:v,onExpand:S,onLoad:b,tableExtend:C,pagination:P,defaultFiltersValue:t6(Z),defaultSortsValue:n6(Z),defaultSearchValue:W8([].concat(Qu(Ye),Qu(Ke))),btnBefore:E,editMode:N,extendSearchParams:R,autoload:z,onParamsChange:H,tableHeader:K,getSearchParams:oe,useOriginPagination:le},ot=Y.useMemo(function(){var ue=[];return Ke&&Ke.length&&ue.push(At.createElement(R3,{className:"g-search-table-more",key:"g-search-table-more",ref:ge,fields:Ke,onConfirm:we},At.createElement(vw,{className:"g-search-table-more-submit",htmlType:"submit"}))),st&&st.length&&ue.push(st),vt&&ue.push(vt),ue.length===1?ue[0]:ue.length?ue:null},[ge,Ke,we,st,vt]);return Y.useEffect(function(){B&&qe(B)},[]),At.createElement("div",{className:_0("g-search-table",it&&"full",Q&&"compact")},At.createElement(X8.Provider,{value:{formRef:re,tableRef:ce,selection:Xe,deleteApi:a,rowKey:f,setSelection:G,clearSelection:V,addSelection:de,removeSelection:Fe,searchTableRef:t,editTableRow:_t,setEditTableRow:function(ie){ht(function(We){return[].concat(Qu(We),Qu(ie))})}}},D,w!==!1&&Ye.length>0?At.createElement(c9,zp({ref:_e,fields:Ye,onConfirm:we},ne)):null,A,d?At.createElement(b9,zp({ref:re,dialogOnly:!0},d),o):null,At.createElement(Y8,zp({},Ue,{fields:Z,header:Pe}),ot),Xe.length&&Le.length?At.createElement("div",{className:"g-search-table-footer-actions"},me,At.createElement(M3,null,Le)):null,k))});function a6(n,e){var t;K8&&q8(n);var r=$8(n),i=(t=e==null?void 0:e.wait)!==null&&t!==void 0?t:1e3,a=Y.useMemo(function(){return Q8(function(){for(var o=[],s=0;se in n?EW(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,At=(n,e)=>{for(var t in e||(e={}))q2.call(e,t)&&K2(n,t,e[t]);if(im)for(var t of im(e))Q2.call(e,t)&&K2(n,t,e[t]);return n},mr=(n,e)=>RW(n,PW(e));var di=(n,e)=>{var t={};for(var r in n)q2.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&im)for(var r of im(n))e.indexOf(r)<0&&Q2.call(n,r)&&(t[r]=n[r]);return t};var ch=(n,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(u){i(u)}},o=l=>{try{s(t.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);s((t=t.apply(n,e)).next())});import{j as ee,n as kF,a as Yf,c as UF,Y as GF,K as Oo,g as $S,L as cT,J as $2,aw as DW,i as IW}from"./antd-66264537.js";import{r as q,g as zF,a as na}from"./react-f288da4a.js";import{u as LW,a as BW,b as OW,i as NW,d as FW,e as kW,f as UW,_ as GW,g as zW,h as HW,F as VW,j as WW,k as XW,t as Yn,S as $0,l as YW,m as JW}from"./entry/index-49ff40a5.1715612414483.js";import{c as ZW,U as jW}from"./index-6d20d62b.js";import{_ as e1}from"./index-646dffa4.js";import{T as $r}from"./Translatex-83019934.js";import{G as KW}from"./index-e22d6806.js";import"./index-c5e45b02.js";function qW(n){const e=q.useRef(null),t=At({mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},n.panelConfig),[{xys:r},i]=LW(()=>({xys:[0,0,1],config:t}),[t]),a=()=>i.start({xys:[0,0,1]}),o=s=>{var u;const l=(u=e.current)==null?void 0:u.getBoundingClientRect();i.start({xys:QW(s.clientX,s.clientY,l)})};return ee.jsx("div",{ref:e,children:ee.jsxs(BW.div,{className:"border border-solid ",style:{transform:r.to($W)},onMouseLeave:a,onMouseMove:o,children:[ee.jsxs("p",{className:"text-sm flex justify-between border-solid",children:[n.title," ",n.right]}),n.children]})})}const QW=(n,e,t)=>[-(e-t.top-t.height/2)/150,(n-t.left-t.width/2)/150,1],$W=(n,e,t)=>`perspective(600px) rotateX(${n}deg) rotateY(${e}deg) scale(${t})`,t1=n=>{const i=n,{loading:e=!0,delay:t=200}=i,r=di(i,["loading","delay"]);return ee.jsx($r,{direction:"top",delay:t,run:!0,children:ee.jsx(kF,mr(At({hoverable:!0,loading:e},r),{children:n.children}))})};function e8(n){const i=n,{sliderConfig:e,children:t}=i,r=di(i,["sliderConfig","children"]);return ee.jsx(OW,mr(At(At({},r),e),{children:t}))}function t8(n,e){var t;NW&&FW(n);var r=kW(n),i=(t=e==null?void 0:e.wait)!==null&&t!==void 0?t:1e3,a=q.useMemo(function(){return UW(function(){for(var o=[],s=0;s>8&255]+Kr[n>>16&255]+Kr[n>>24&255]+"-"+Kr[e&255]+Kr[e>>8&255]+"-"+Kr[e>>16&15|64]+Kr[e>>24&255]+"-"+Kr[t&63|128]+Kr[t>>8&255]+"-"+Kr[t>>16&255]+Kr[t>>24&255]+Kr[r&255]+Kr[r>>8&255]+Kr[r>>16&255]+Kr[r>>24&255]).toLowerCase()}function lr(n,e,t){return Math.max(e,Math.min(t,n))}function QT(n,e){return(n%e+e)%e}function O6(n,e,t,r,i){return r+(n-e)*(i-r)/(t-e)}function F6(n,e,t){return n!==e?(t-n)/(e-n):0}function Vp(n,e,t){return(1-t)*n+t*e}function N6(n,e,t,r){return Vp(n,e,1-Math.exp(-t*r))}function k6(n,e=1){return e-Math.abs(QT(n,e*2)-e)}function U6(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function G6(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function z6(n,e){return n+Math.floor(Math.random()*(e-n+1))}function H6(n,e){return n+Math.random()*(e-n)}function V6(n){return n*(.5-Math.random())}function W6(n){n!==void 0&&(kP=n);let e=kP+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function X6(n){return n*Ec}function Y6(n){return n*Nf}function eb(n){return(n&n-1)===0&&n!==0}function j6(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function r_(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function J6(n,e,t,r,i){const a=Math.cos,o=Math.sin,s=a(t/2),l=o(t/2),u=a((e+r)/2),c=o((e+r)/2),h=a((e-r)/2),f=o((e-r)/2),d=a((r-e)/2),p=o((r-e)/2);switch(i){case"XYX":n.set(s*c,l*h,l*f,s*u);break;case"YZY":n.set(l*f,s*c,l*h,s*u);break;case"ZXZ":n.set(l*h,l*f,s*c,s*u);break;case"XZX":n.set(s*c,l*p,l*d,s*u);break;case"YXY":n.set(l*d,s*c,l*p,s*u);break;case"ZYZ":n.set(l*p,l*d,s*c,s*u);break;default:}}function Hi(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function $t(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const df={DEG2RAD:Ec,RAD2DEG:Nf,generateUUID:ia,clamp:lr,euclideanModulo:QT,mapLinear:O6,inverseLerp:F6,lerp:Vp,damp:N6,pingpong:k6,smoothstep:U6,smootherstep:G6,randInt:z6,randFloat:H6,randFloatSpread:V6,seededRandom:W6,degToRad:X6,radToDeg:Y6,isPowerOfTwo:eb,ceilPowerOfTwo:j6,floorPowerOfTwo:r_,setQuaternionFromProperEuler:J6,normalize:$t,denormalize:Hi};class De{constructor(e=0,t=0){De.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,r=this.y,i=e.elements;return this.x=i[0]*t+i[3]*r+i[6],this.y=i[1]*t+i[4]*r+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(lr(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y;return t*t+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const r=Math.cos(t),i=Math.sin(t),a=this.x-e.x,o=this.y-e.y;return this.x=a*r-o*i+e.x,this.y=a*i+o*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class tn{constructor(e,t,r,i,a,o,s,l,u){tn.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,r,i,a,o,s,l,u)}set(e,t,r,i,a,o,s,l,u){const c=this.elements;return c[0]=e,c[1]=i,c[2]=s,c[3]=t,c[4]=a,c[5]=l,c[6]=r,c[7]=o,c[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],this}extractBasis(e,t,r){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),r.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,i=t.elements,a=this.elements,o=r[0],s=r[3],l=r[6],u=r[1],c=r[4],h=r[7],f=r[2],d=r[5],p=r[8],y=i[0],g=i[3],v=i[6],x=i[1],S=i[4],A=i[7],b=i[2],w=i[5],C=i[8];return a[0]=o*y+s*x+l*b,a[3]=o*g+s*S+l*w,a[6]=o*v+s*A+l*C,a[1]=u*y+c*x+h*b,a[4]=u*g+c*S+h*w,a[7]=u*v+c*A+h*C,a[2]=f*y+d*x+p*b,a[5]=f*g+d*S+p*w,a[8]=f*v+d*A+p*C,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t*o*c-t*s*u-r*a*c+r*s*l+i*a*u-i*o*l}invert(){const e=this.elements,t=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=c*o-s*u,f=s*l-c*a,d=u*a-o*l,p=t*h+r*f+i*d;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);const y=1/p;return e[0]=h*y,e[1]=(i*u-c*r)*y,e[2]=(s*r-i*o)*y,e[3]=f*y,e[4]=(c*t-i*l)*y,e[5]=(i*a-s*t)*y,e[6]=d*y,e[7]=(r*l-u*t)*y,e[8]=(o*t-r*a)*y,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,r,i,a,o,s){const l=Math.cos(a),u=Math.sin(a);return this.set(r*l,r*u,-r*(l*o+u*s)+o+e,-i*u,i*l,-i*(-u*o+l*s)+s+t,0,0,1),this}scale(e,t){return this.premultiply(T1.makeScale(e,t)),this}rotate(e){return this.premultiply(T1.makeRotation(-e)),this}translate(e,t){return this.premultiply(T1.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,r,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,r=e.elements;for(let i=0;i<9;i++)if(t[i]!==r[i])return!1;return!0}fromArray(e,t=0){for(let r=0;r<9;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const T1=new tn;function Fk(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}const Z6={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function pf(n,e){return new Z6[n](e)}function _v(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function Nk(){const n=_v("canvas");return n.style.display="block",n}const UP={};function Wp(n){n in UP||(UP[n]=!0)}const GP=new tn().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),zP=new tn().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),bm={[Qo]:{transfer:vv,primaries:gv,toReference:n=>n,fromReference:n=>n},[Tr]:{transfer:kn,primaries:gv,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[tg]:{transfer:vv,primaries:mv,toReference:n=>n.applyMatrix3(zP),fromReference:n=>n.applyMatrix3(GP)},[q_]:{transfer:kn,primaries:mv,toReference:n=>n.convertSRGBToLinear().applyMatrix3(zP),fromReference:n=>n.applyMatrix3(GP).convertLinearToSRGB()}},K6=new Set([Qo,tg]),Dn={enabled:!0,_workingColorSpace:Qo,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!K6.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const r=bm[e].toReference,i=bm[t].fromReference;return i(r(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return bm[n].primaries},getTransfer:function(n){return n===ta?vv:bm[n].transfer}};function Mf(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function C1(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let _h;class eC{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement=="undefined")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{_h===void 0&&(_h=_v("canvas")),_h.width=e.width,_h.height=e.height;const r=_h.getContext("2d");e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0,e.width,e.height),t=_h}return t.width>2048||t.height>2048?t.toDataURL("image/jpeg",.6):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement!="undefined"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement!="undefined"&&e instanceof HTMLCanvasElement||typeof ImageBitmap!="undefined"&&e instanceof ImageBitmap){const t=_v("canvas");t.width=e.width,t.height=e.height;const r=t.getContext("2d");r.drawImage(e,0,0,e.width,e.height);const i=r.getImageData(0,0,e.width,e.height),a=i.data;for(let o=0;o0&&(r.userData=this.userData),t||(e.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==j_)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Yl:e.x=e.x-Math.floor(e.x);break;case zr:e.x=e.x<0?0:1;break;case Bf:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Yl:e.y=e.y-Math.floor(e.y);break;case zr:e.y=e.y<0?0:1;break;case Bf:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return Wp("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===Tr?Ul:qT}set encoding(e){Wp("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===Ul?Tr:ta}}Wn.DEFAULT_IMAGE=null;Wn.DEFAULT_MAPPING=j_;Wn.DEFAULT_ANISOTROPY=1;class In{constructor(e=0,t=0,r=0,i=1){In.prototype.isVector4=!0,this.x=e,this.y=t,this.z=r,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,r,i){return this.x=e,this.y=t,this.z=r,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,r=this.y,i=this.z,a=this.w,o=e.elements;return this.x=o[0]*t+o[4]*r+o[8]*i+o[12]*a,this.y=o[1]*t+o[5]*r+o[9]*i+o[13]*a,this.z=o[2]*t+o[6]*r+o[10]*i+o[14]*a,this.w=o[3]*t+o[7]*r+o[11]*i+o[15]*a,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,r,i,a;const l=e.elements,u=l[0],c=l[4],h=l[8],f=l[1],d=l[5],p=l[9],y=l[2],g=l[6],v=l[10];if(Math.abs(c-f)<.01&&Math.abs(h-y)<.01&&Math.abs(p-g)<.01){if(Math.abs(c+f)<.1&&Math.abs(h+y)<.1&&Math.abs(p+g)<.1&&Math.abs(u+d+v-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const S=(u+1)/2,A=(d+1)/2,b=(v+1)/2,w=(c+f)/4,C=(h+y)/4,P=(p+g)/4;return S>A&&S>b?S<.01?(r=0,i=.707106781,a=.707106781):(r=Math.sqrt(S),i=w/r,a=C/r):A>b?A<.01?(r=.707106781,i=0,a=.707106781):(i=Math.sqrt(A),r=w/i,a=P/i):b<.01?(r=.707106781,i=.707106781,a=0):(a=Math.sqrt(b),r=C/a,i=P/a),this.set(r,i,a,t),this}let x=Math.sqrt((g-p)*(g-p)+(h-y)*(h-y)+(f-c)*(f-c));return Math.abs(x)<.001&&(x=1),this.x=(g-p)/x,this.y=(h-y)/x,this.z=(f-c)/x,this.w=Math.acos((u+d+v-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this.w=e.w+(t.w-e.w)*r,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class kk extends is{constructor(e=1,t=1,r={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new In(0,0,e,t),this.scissorTest=!1,this.viewport=new In(0,0,e,t);const i={width:e,height:t,depth:1};r.encoding!==void 0&&(Wp("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),r.colorSpace=r.encoding===Ul?Tr:ta),r=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:On,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},r),this.texture=new Wn(i,r.mapping,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=r.generateMipmaps,this.texture.internalFormat=r.internalFormat,this.depthBuffer=r.depthBuffer,this.stencilBuffer=r.stencilBuffer,this.depthTexture=r.depthTexture,this.samples=r.samples}setSize(e,t,r=1){(this.width!==e||this.height!==t||this.depth!==r)&&(this.width=e,this.height=t,this.depth=r,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=r,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new vc(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class oa extends kk{constructor(e=1,t=1,r={}){super(e,t,r),this.isWebGLRenderTarget=!0}}class $_ extends Wn{constructor(e=null,t=1,r=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:r,depth:i},this.magFilter=sr,this.minFilter=sr,this.wrapR=zr,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Q6 extends oa{constructor(e=1,t=1,r=1,i={}){super(e,t,i),this.isWebGLArrayRenderTarget=!0,this.depth=r,this.texture=new $_(null,e,t,r),this.texture.isRenderTargetTexture=!0}}class tC extends Wn{constructor(e=null,t=1,r=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:r,depth:i},this.magFilter=sr,this.minFilter=sr,this.wrapR=zr,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class eX extends oa{constructor(e=1,t=1,r=1,i={}){super(e,t,i),this.isWebGL3DRenderTarget=!0,this.depth=r,this.texture=new tC(null,e,t,r),this.texture.isRenderTargetTexture=!0}}class tX extends oa{constructor(e=1,t=1,r=1,i={}){super(e,t,i),this.isWebGLMultipleRenderTargets=!0;const a=this.texture;this.texture=[];for(let o=0;o=0?1:-1,S=1-v*v;if(S>Number.EPSILON){const b=Math.sqrt(S),w=Math.atan2(b,v*x);g=Math.sin(g*w)/b,s=Math.sin(s*w)/b}const A=s*x;if(l=l*g+f*A,u=u*g+d*A,c=c*g+p*A,h=h*g+y*A,g===1-s){const b=1/Math.sqrt(l*l+u*u+c*c+h*h);l*=b,u*=b,c*=b,h*=b}}e[t]=l,e[t+1]=u,e[t+2]=c,e[t+3]=h}static multiplyQuaternionsFlat(e,t,r,i,a,o){const s=r[i],l=r[i+1],u=r[i+2],c=r[i+3],h=a[o],f=a[o+1],d=a[o+2],p=a[o+3];return e[t]=s*p+c*h+l*d-u*f,e[t+1]=l*p+c*f+u*h-s*d,e[t+2]=u*p+c*d+s*f-l*h,e[t+3]=c*p-s*h-l*f-u*d,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,r,i){return this._x=e,this._y=t,this._z=r,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const r=e._x,i=e._y,a=e._z,o=e._order,s=Math.cos,l=Math.sin,u=s(r/2),c=s(i/2),h=s(a/2),f=l(r/2),d=l(i/2),p=l(a/2);switch(o){case"XYZ":this._x=f*c*h+u*d*p,this._y=u*d*h-f*c*p,this._z=u*c*p+f*d*h,this._w=u*c*h-f*d*p;break;case"YXZ":this._x=f*c*h+u*d*p,this._y=u*d*h-f*c*p,this._z=u*c*p-f*d*h,this._w=u*c*h+f*d*p;break;case"ZXY":this._x=f*c*h-u*d*p,this._y=u*d*h+f*c*p,this._z=u*c*p+f*d*h,this._w=u*c*h-f*d*p;break;case"ZYX":this._x=f*c*h-u*d*p,this._y=u*d*h+f*c*p,this._z=u*c*p-f*d*h,this._w=u*c*h+f*d*p;break;case"YZX":this._x=f*c*h+u*d*p,this._y=u*d*h+f*c*p,this._z=u*c*p-f*d*h,this._w=u*c*h-f*d*p;break;case"XZY":this._x=f*c*h-u*d*p,this._y=u*d*h-f*c*p,this._z=u*c*p+f*d*h,this._w=u*c*h+f*d*p;break;default:}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const r=t/2,i=Math.sin(r);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(r),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,r=t[0],i=t[4],a=t[8],o=t[1],s=t[5],l=t[9],u=t[2],c=t[6],h=t[10],f=r+s+h;if(f>0){const d=.5/Math.sqrt(f+1);this._w=.25/d,this._x=(c-l)*d,this._y=(a-u)*d,this._z=(o-i)*d}else if(r>s&&r>h){const d=2*Math.sqrt(1+r-s-h);this._w=(c-l)/d,this._x=.25*d,this._y=(i+o)/d,this._z=(a+u)/d}else if(s>h){const d=2*Math.sqrt(1+s-r-h);this._w=(a-u)/d,this._x=(i+o)/d,this._y=.25*d,this._z=(l+c)/d}else{const d=2*Math.sqrt(1+h-r-s);this._w=(o-i)/d,this._x=(a+u)/d,this._y=(l+c)/d,this._z=.25*d}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let r=e.dot(t)+1;return rMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=r):(this._x=0,this._y=-e.z,this._z=e.y,this._w=r)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(lr(this.dot(e),-1,1)))}rotateTowards(e,t){const r=this.angleTo(e);if(r===0)return this;const i=Math.min(1,t/r);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const r=e._x,i=e._y,a=e._z,o=e._w,s=t._x,l=t._y,u=t._z,c=t._w;return this._x=r*c+o*s+i*u-a*l,this._y=i*c+o*l+a*s-r*u,this._z=a*c+o*u+r*l-i*s,this._w=o*c-r*s-i*l-a*u,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const r=this._x,i=this._y,a=this._z,o=this._w;let s=o*e._w+r*e._x+i*e._y+a*e._z;if(s<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,s=-s):this.copy(e),s>=1)return this._w=o,this._x=r,this._y=i,this._z=a,this;const l=1-s*s;if(l<=Number.EPSILON){const d=1-t;return this._w=d*o+t*this._w,this._x=d*r+t*this._x,this._y=d*i+t*this._y,this._z=d*a+t*this._z,this.normalize(),this}const u=Math.sqrt(l),c=Math.atan2(u,s),h=Math.sin((1-t)*c)/u,f=Math.sin(t*c)/u;return this._w=o*h+this._w*f,this._x=r*h+this._x*f,this._y=i*h+this._y*f,this._z=a*h+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,t,r){return this.copy(e).slerp(t,r)}random(){const e=Math.random(),t=Math.sqrt(1-e),r=Math.sqrt(e),i=2*Math.PI*Math.random(),a=2*Math.PI*Math.random();return this.set(t*Math.cos(i),r*Math.sin(a),r*Math.cos(a),t*Math.sin(i))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class J{constructor(e=0,t=0,r=0){J.prototype.isVector3=!0,this.x=e,this.y=t,this.z=r}set(e,t,r){return r===void 0&&(r=this.z),this.x=e,this.y=t,this.z=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(HP.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(HP.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,r=this.y,i=this.z,a=e.elements;return this.x=a[0]*t+a[3]*r+a[6]*i,this.y=a[1]*t+a[4]*r+a[7]*i,this.z=a[2]*t+a[5]*r+a[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,r=this.y,i=this.z,a=e.elements,o=1/(a[3]*t+a[7]*r+a[11]*i+a[15]);return this.x=(a[0]*t+a[4]*r+a[8]*i+a[12])*o,this.y=(a[1]*t+a[5]*r+a[9]*i+a[13])*o,this.z=(a[2]*t+a[6]*r+a[10]*i+a[14])*o,this}applyQuaternion(e){const t=this.x,r=this.y,i=this.z,a=e.x,o=e.y,s=e.z,l=e.w,u=2*(o*i-s*r),c=2*(s*t-a*i),h=2*(a*r-o*t);return this.x=t+l*u+o*h-s*c,this.y=r+l*c+s*u-a*h,this.z=i+l*h+a*c-o*u,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,r=this.y,i=this.z,a=e.elements;return this.x=a[0]*t+a[4]*r+a[8]*i,this.y=a[1]*t+a[5]*r+a[9]*i,this.z=a[2]*t+a[6]*r+a[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const r=e.x,i=e.y,a=e.z,o=t.x,s=t.y,l=t.z;return this.x=i*l-a*s,this.y=a*o-r*l,this.z=r*s-i*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const r=e.dot(this)/t;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return R1.copy(this).projectOnVector(e),this.sub(R1)}reflect(e){return this.sub(R1.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(lr(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y,i=this.z-e.z;return t*t+r*r+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,r){const i=Math.sin(t)*e;return this.x=i*Math.sin(r),this.y=Math.cos(t)*e,this.z=i*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,r){return this.x=e*Math.sin(t),this.y=r,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),r=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=r,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,r=Math.sqrt(1-M1(e,2));return this.x=r*Math.cos(t),this.y=r*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const R1=new J,HP=new Or;class oi{constructor(e=new J(1/0,1/0,1/0),t=new J(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,r=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Ja),Ja.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,r;return e.normal.x>0?(t=e.normal.x*this.min.x,r=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,r=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,r+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,r+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,r+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,r+=e.normal.z*this.min.z),t<=-e.constant&&r>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Gd),Cm.subVectors(this.max,Gd),xh.subVectors(e.a,Gd),Sh.subVectors(e.b,Gd),Ah.subVectors(e.c,Gd),ol.subVectors(Sh,xh),sl.subVectors(Ah,Sh),_u.subVectors(xh,Ah);let t=[0,-ol.z,ol.y,0,-sl.z,sl.y,0,-_u.z,_u.y,ol.z,0,-ol.x,sl.z,0,-sl.x,_u.z,0,-_u.x,-ol.y,ol.x,0,-sl.y,sl.x,0,-_u.y,_u.x,0];return!P1(t,xh,Sh,Ah,Cm)||(t=[1,0,0,0,1,0,0,0,1],!P1(t,xh,Sh,Ah,Cm))?!1:(Em.crossVectors(ol,sl),t=[Em.x,Em.y,Em.z],P1(t,xh,Sh,Ah,Cm))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ja).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Ja).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(ms[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),ms[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),ms[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),ms[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),ms[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),ms[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),ms[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),ms[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(ms),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const ms=[new J,new J,new J,new J,new J,new J,new J,new J],Ja=new J,Tm=new oi,xh=new J,Sh=new J,Ah=new J,ol=new J,sl=new J,_u=new J,Gd=new J,Cm=new J,Em=new J,xu=new J;function P1(n,e,t,r,i){for(let a=0,o=n.length-3;a<=o;a+=3){xu.fromArray(n,a);const s=i.x*Math.abs(xu.x)+i.y*Math.abs(xu.y)+i.z*Math.abs(xu.z),l=e.dot(xu),u=t.dot(xu),c=r.dot(xu);if(Math.max(-Math.max(l,u,c),Math.min(l,u,c))>s)return!1}return!0}const nX=new oi,zd=new J,D1=new J;class Vr{constructor(e=new J,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const r=this.center;t!==void 0?r.copy(t):nX.setFromPoints(e).getCenter(r);let i=0;for(let a=0,o=e.length;athis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;zd.subVectors(e,this.center);const t=zd.lengthSq();if(t>this.radius*this.radius){const r=Math.sqrt(t),i=(r-this.radius)*.5;this.center.addScaledVector(zd,i/r),this.radius+=i}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(D1.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(zd.copy(e.center).add(D1)),this.expandByPoint(zd.copy(e.center).sub(D1))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const ys=new J,I1=new J,Rm=new J,ll=new J,L1=new J,Pm=new J,B1=new J;class Zc{constructor(e=new J,t=new J(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ys)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const r=t.dot(this.direction);return r<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,r)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=ys.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ys.copy(this.origin).addScaledVector(this.direction,t),ys.distanceToSquared(e))}distanceSqToSegment(e,t,r,i){I1.copy(e).add(t).multiplyScalar(.5),Rm.copy(t).sub(e).normalize(),ll.copy(this.origin).sub(I1);const a=e.distanceTo(t)*.5,o=-this.direction.dot(Rm),s=ll.dot(this.direction),l=-ll.dot(Rm),u=ll.lengthSq(),c=Math.abs(1-o*o);let h,f,d,p;if(c>0)if(h=o*l-s,f=o*s-l,p=a*c,h>=0)if(f>=-p)if(f<=p){const y=1/c;h*=y,f*=y,d=h*(h+o*f+2*s)+f*(o*h+f+2*l)+u}else f=a,h=Math.max(0,-(o*f+s)),d=-h*h+f*(f+2*l)+u;else f=-a,h=Math.max(0,-(o*f+s)),d=-h*h+f*(f+2*l)+u;else f<=-p?(h=Math.max(0,-(-o*a+s)),f=h>0?-a:Math.min(Math.max(-a,-l),a),d=-h*h+f*(f+2*l)+u):f<=p?(h=0,f=Math.min(Math.max(-a,-l),a),d=f*(f+2*l)+u):(h=Math.max(0,-(o*a+s)),f=h>0?a:Math.min(Math.max(-a,-l),a),d=-h*h+f*(f+2*l)+u);else f=o>0?-a:a,h=Math.max(0,-(o*f+s)),d=-h*h+f*(f+2*l)+u;return r&&r.copy(this.origin).addScaledVector(this.direction,h),i&&i.copy(I1).addScaledVector(Rm,f),d}intersectSphere(e,t){ys.subVectors(e.center,this.origin);const r=ys.dot(this.direction),i=ys.dot(ys)-r*r,a=e.radius*e.radius;if(i>a)return null;const o=Math.sqrt(a-i),s=r-o,l=r+o;return l<0?null:s<0?this.at(l,t):this.at(s,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(e.normal)+e.constant)/t;return r>=0?r:null}intersectPlane(e,t){const r=this.distanceToPlane(e);return r===null?null:this.at(r,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let r,i,a,o,s,l;const u=1/this.direction.x,c=1/this.direction.y,h=1/this.direction.z,f=this.origin;return u>=0?(r=(e.min.x-f.x)*u,i=(e.max.x-f.x)*u):(r=(e.max.x-f.x)*u,i=(e.min.x-f.x)*u),c>=0?(a=(e.min.y-f.y)*c,o=(e.max.y-f.y)*c):(a=(e.max.y-f.y)*c,o=(e.min.y-f.y)*c),r>o||a>i||((a>r||isNaN(r))&&(r=a),(o=0?(s=(e.min.z-f.z)*h,l=(e.max.z-f.z)*h):(s=(e.max.z-f.z)*h,l=(e.min.z-f.z)*h),r>l||s>i)||((s>r||r!==r)&&(r=s),(l=0?r:i,t)}intersectsBox(e){return this.intersectBox(e,ys)!==null}intersectTriangle(e,t,r,i,a){L1.subVectors(t,e),Pm.subVectors(r,e),B1.crossVectors(L1,Pm);let o=this.direction.dot(B1),s;if(o>0){if(i)return null;s=1}else if(o<0)s=-1,o=-o;else return null;ll.subVectors(this.origin,e);const l=s*this.direction.dot(Pm.crossVectors(ll,Pm));if(l<0)return null;const u=s*this.direction.dot(L1.cross(ll));if(u<0||l+u>o)return null;const c=-s*ll.dot(B1);return c<0?null:this.at(c/o,a)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Bt{constructor(e,t,r,i,a,o,s,l,u,c,h,f,d,p,y,g){Bt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,r,i,a,o,s,l,u,c,h,f,d,p,y,g)}set(e,t,r,i,a,o,s,l,u,c,h,f,d,p,y,g){const v=this.elements;return v[0]=e,v[4]=t,v[8]=r,v[12]=i,v[1]=a,v[5]=o,v[9]=s,v[13]=l,v[2]=u,v[6]=c,v[10]=h,v[14]=f,v[3]=d,v[7]=p,v[11]=y,v[15]=g,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Bt().fromArray(this.elements)}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],t[9]=r[9],t[10]=r[10],t[11]=r[11],t[12]=r[12],t[13]=r[13],t[14]=r[14],t[15]=r[15],this}copyPosition(e){const t=this.elements,r=e.elements;return t[12]=r[12],t[13]=r[13],t[14]=r[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,r){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,t,r){return this.set(e.x,t.x,r.x,0,e.y,t.y,r.y,0,e.z,t.z,r.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,r=e.elements,i=1/Mh.setFromMatrixColumn(e,0).length(),a=1/Mh.setFromMatrixColumn(e,1).length(),o=1/Mh.setFromMatrixColumn(e,2).length();return t[0]=r[0]*i,t[1]=r[1]*i,t[2]=r[2]*i,t[3]=0,t[4]=r[4]*a,t[5]=r[5]*a,t[6]=r[6]*a,t[7]=0,t[8]=r[8]*o,t[9]=r[9]*o,t[10]=r[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,r=e.x,i=e.y,a=e.z,o=Math.cos(r),s=Math.sin(r),l=Math.cos(i),u=Math.sin(i),c=Math.cos(a),h=Math.sin(a);if(e.order==="XYZ"){const f=o*c,d=o*h,p=s*c,y=s*h;t[0]=l*c,t[4]=-l*h,t[8]=u,t[1]=d+p*u,t[5]=f-y*u,t[9]=-s*l,t[2]=y-f*u,t[6]=p+d*u,t[10]=o*l}else if(e.order==="YXZ"){const f=l*c,d=l*h,p=u*c,y=u*h;t[0]=f+y*s,t[4]=p*s-d,t[8]=o*u,t[1]=o*h,t[5]=o*c,t[9]=-s,t[2]=d*s-p,t[6]=y+f*s,t[10]=o*l}else if(e.order==="ZXY"){const f=l*c,d=l*h,p=u*c,y=u*h;t[0]=f-y*s,t[4]=-o*h,t[8]=p+d*s,t[1]=d+p*s,t[5]=o*c,t[9]=y-f*s,t[2]=-o*u,t[6]=s,t[10]=o*l}else if(e.order==="ZYX"){const f=o*c,d=o*h,p=s*c,y=s*h;t[0]=l*c,t[4]=p*u-d,t[8]=f*u+y,t[1]=l*h,t[5]=y*u+f,t[9]=d*u-p,t[2]=-u,t[6]=s*l,t[10]=o*l}else if(e.order==="YZX"){const f=o*l,d=o*u,p=s*l,y=s*u;t[0]=l*c,t[4]=y-f*h,t[8]=p*h+d,t[1]=h,t[5]=o*c,t[9]=-s*c,t[2]=-u*c,t[6]=d*h+p,t[10]=f-y*h}else if(e.order==="XZY"){const f=o*l,d=o*u,p=s*l,y=s*u;t[0]=l*c,t[4]=-h,t[8]=u*c,t[1]=f*h+y,t[5]=o*c,t[9]=d*h-p,t[2]=p*h-d,t[6]=s*c,t[10]=y*h+f}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(rX,e,iX)}lookAt(e,t,r){const i=this.elements;return qi.subVectors(e,t),qi.lengthSq()===0&&(qi.z=1),qi.normalize(),ul.crossVectors(r,qi),ul.lengthSq()===0&&(Math.abs(r.z)===1?qi.x+=1e-4:qi.z+=1e-4,qi.normalize(),ul.crossVectors(r,qi)),ul.normalize(),Dm.crossVectors(qi,ul),i[0]=ul.x,i[4]=Dm.x,i[8]=qi.x,i[1]=ul.y,i[5]=Dm.y,i[9]=qi.y,i[2]=ul.z,i[6]=Dm.z,i[10]=qi.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,i=t.elements,a=this.elements,o=r[0],s=r[4],l=r[8],u=r[12],c=r[1],h=r[5],f=r[9],d=r[13],p=r[2],y=r[6],g=r[10],v=r[14],x=r[3],S=r[7],A=r[11],b=r[15],w=i[0],C=i[4],P=i[8],E=i[12],R=i[1],D=i[5],B=i[9],k=i[13],N=i[2],z=i[6],X=i[10],ne=i[14],H=i[3],K=i[7],Q=i[11],le=i[15];return a[0]=o*w+s*R+l*N+u*H,a[4]=o*C+s*D+l*z+u*K,a[8]=o*P+s*B+l*X+u*Q,a[12]=o*E+s*k+l*ne+u*le,a[1]=c*w+h*R+f*N+d*H,a[5]=c*C+h*D+f*z+d*K,a[9]=c*P+h*B+f*X+d*Q,a[13]=c*E+h*k+f*ne+d*le,a[2]=p*w+y*R+g*N+v*H,a[6]=p*C+y*D+g*z+v*K,a[10]=p*P+y*B+g*X+v*Q,a[14]=p*E+y*k+g*ne+v*le,a[3]=x*w+S*R+A*N+b*H,a[7]=x*C+S*D+A*z+b*K,a[11]=x*P+S*B+A*X+b*Q,a[15]=x*E+S*k+A*ne+b*le,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[4],i=e[8],a=e[12],o=e[1],s=e[5],l=e[9],u=e[13],c=e[2],h=e[6],f=e[10],d=e[14],p=e[3],y=e[7],g=e[11],v=e[15];return p*(+a*l*h-i*u*h-a*s*f+r*u*f+i*s*d-r*l*d)+y*(+t*l*d-t*u*f+a*o*f-i*o*d+i*u*c-a*l*c)+g*(+t*u*h-t*s*d-a*o*h+r*o*d+a*s*c-r*u*c)+v*(-i*s*c-t*l*h+t*s*f+i*o*h-r*o*f+r*l*c)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,r){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=r),this}invert(){const e=this.elements,t=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],y=e[13],g=e[14],v=e[15],x=h*g*u-y*f*u+y*l*d-s*g*d-h*l*v+s*f*v,S=p*f*u-c*g*u-p*l*d+o*g*d+c*l*v-o*f*v,A=c*y*u-p*h*u+p*s*d-o*y*d-c*s*v+o*h*v,b=p*h*l-c*y*l-p*s*f+o*y*f+c*s*g-o*h*g,w=t*x+r*S+i*A+a*b;if(w===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const C=1/w;return e[0]=x*C,e[1]=(y*f*a-h*g*a-y*i*d+r*g*d+h*i*v-r*f*v)*C,e[2]=(s*g*a-y*l*a+y*i*u-r*g*u-s*i*v+r*l*v)*C,e[3]=(h*l*a-s*f*a-h*i*u+r*f*u+s*i*d-r*l*d)*C,e[4]=S*C,e[5]=(c*g*a-p*f*a+p*i*d-t*g*d-c*i*v+t*f*v)*C,e[6]=(p*l*a-o*g*a-p*i*u+t*g*u+o*i*v-t*l*v)*C,e[7]=(o*f*a-c*l*a+c*i*u-t*f*u-o*i*d+t*l*d)*C,e[8]=A*C,e[9]=(p*h*a-c*y*a-p*r*d+t*y*d+c*r*v-t*h*v)*C,e[10]=(o*y*a-p*s*a+p*r*u-t*y*u-o*r*v+t*s*v)*C,e[11]=(c*s*a-o*h*a-c*r*u+t*h*u+o*r*d-t*s*d)*C,e[12]=b*C,e[13]=(c*y*i-p*h*i+p*r*f-t*y*f-c*r*g+t*h*g)*C,e[14]=(p*s*i-o*y*i-p*r*l+t*y*l+o*r*g-t*s*g)*C,e[15]=(o*h*i-c*s*i+c*r*l-t*h*l-o*r*f+t*s*f)*C,this}scale(e){const t=this.elements,r=e.x,i=e.y,a=e.z;return t[0]*=r,t[4]*=i,t[8]*=a,t[1]*=r,t[5]*=i,t[9]*=a,t[2]*=r,t[6]*=i,t[10]*=a,t[3]*=r,t[7]*=i,t[11]*=a,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,r,i))}makeTranslation(e,t,r){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,r,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,t,-r,0,0,r,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,0,r,0,0,1,0,0,-r,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,0,r,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const r=Math.cos(t),i=Math.sin(t),a=1-r,o=e.x,s=e.y,l=e.z,u=a*o,c=a*s;return this.set(u*o+r,u*s-i*l,u*l+i*s,0,u*s+i*l,c*s+r,c*l-i*o,0,u*l-i*s,c*l+i*o,a*l*l+r,0,0,0,0,1),this}makeScale(e,t,r){return this.set(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,t,r,i,a,o){return this.set(1,r,a,0,e,1,o,0,t,i,1,0,0,0,0,1),this}compose(e,t,r){const i=this.elements,a=t._x,o=t._y,s=t._z,l=t._w,u=a+a,c=o+o,h=s+s,f=a*u,d=a*c,p=a*h,y=o*c,g=o*h,v=s*h,x=l*u,S=l*c,A=l*h,b=r.x,w=r.y,C=r.z;return i[0]=(1-(y+v))*b,i[1]=(d+A)*b,i[2]=(p-S)*b,i[3]=0,i[4]=(d-A)*w,i[5]=(1-(f+v))*w,i[6]=(g+x)*w,i[7]=0,i[8]=(p+S)*C,i[9]=(g-x)*C,i[10]=(1-(f+y))*C,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,r){const i=this.elements;let a=Mh.set(i[0],i[1],i[2]).length();const o=Mh.set(i[4],i[5],i[6]).length(),s=Mh.set(i[8],i[9],i[10]).length();this.determinant()<0&&(a=-a),e.x=i[12],e.y=i[13],e.z=i[14],Za.copy(this);const u=1/a,c=1/o,h=1/s;return Za.elements[0]*=u,Za.elements[1]*=u,Za.elements[2]*=u,Za.elements[4]*=c,Za.elements[5]*=c,Za.elements[6]*=c,Za.elements[8]*=h,Za.elements[9]*=h,Za.elements[10]*=h,t.setFromRotationMatrix(Za),r.x=a,r.y=o,r.z=s,this}makePerspective(e,t,r,i,a,o,s=oo){const l=this.elements,u=2*a/(t-e),c=2*a/(r-i),h=(t+e)/(t-e),f=(r+i)/(r-i);let d,p;if(s===oo)d=-(o+a)/(o-a),p=-2*o*a/(o-a);else if(s===Ff)d=-o/(o-a),p=-o*a/(o-a);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+s);return l[0]=u,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=c,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=d,l[14]=p,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,r,i,a,o,s=oo){const l=this.elements,u=1/(t-e),c=1/(r-i),h=1/(o-a),f=(t+e)*u,d=(r+i)*c;let p,y;if(s===oo)p=(o+a)*h,y=-2*h;else if(s===Ff)p=a*h,y=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+s);return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*c,l[9]=0,l[13]=-d,l[2]=0,l[6]=0,l[10]=y,l[14]=-p,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,r=e.elements;for(let i=0;i<16;i++)if(t[i]!==r[i])return!1;return!0}fromArray(e,t=0){for(let r=0;r<16;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e[t+9]=r[9],e[t+10]=r[10],e[t+11]=r[11],e[t+12]=r[12],e[t+13]=r[13],e[t+14]=r[14],e[t+15]=r[15],e}}const Mh=new J,Za=new Bt,rX=new J(0,0,0),iX=new J(1,1,1),ul=new J,Dm=new J,qi=new J,VP=new Bt,WP=new Or;class ng{constructor(e=0,t=0,r=0,i=ng.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,r,i=this._order){return this._x=e,this._y=t,this._z=r,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,r=!0){const i=e.elements,a=i[0],o=i[4],s=i[8],l=i[1],u=i[5],c=i[9],h=i[2],f=i[6],d=i[10];switch(t){case"XYZ":this._y=Math.asin(lr(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,d),this._z=Math.atan2(-o,a)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-lr(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(s,d),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,a),this._z=0);break;case"ZXY":this._x=Math.asin(lr(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-h,d),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(l,a));break;case"ZYX":this._y=Math.asin(-lr(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(f,d),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-o,u));break;case"YZX":this._z=Math.asin(lr(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-c,u),this._y=Math.atan2(-h,a)):(this._x=0,this._y=Math.atan2(s,d));break;case"XZY":this._z=Math.asin(-lr(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(s,a)):(this._x=Math.atan2(-c,d),this._y=0);break;default:}return this._order=t,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,r){return VP.makeRotationFromQuaternion(e),this.setFromRotationMatrix(VP,t,r)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return WP.setFromEuler(this),this.setFromQuaternion(WP,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}ng.DEFAULT_ORDER="XYZ";class Rc{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let r=0;r0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(s=>({boxInitialized:s.boxInitialized,boxMin:s.box.min.toArray(),boxMax:s.box.max.toArray(),sphereInitialized:s.sphereInitialized,sphereRadius:s.sphere.radius,sphereCenter:s.sphere.center.toArray()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function a(s,l){return s[l.uuid]===void 0&&(s[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=a(e.geometries,this.geometry);const s=this.geometry.parameters;if(s!==void 0&&s.shapes!==void 0){const l=s.shapes;if(Array.isArray(l))for(let u=0,c=l.length;u0){i.children=[];for(let s=0;s0){i.animations=[];for(let s=0;s0&&(r.geometries=s),l.length>0&&(r.materials=l),u.length>0&&(r.textures=u),c.length>0&&(r.images=c),h.length>0&&(r.shapes=h),f.length>0&&(r.skeletons=f),d.length>0&&(r.animations=d),p.length>0&&(r.nodes=p)}return r.object=i,r;function o(s){const l=[];for(const u in s){const c=s[u];delete c.metadata,l.push(c)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let r=0;r0?i.multiplyScalar(1/Math.sqrt(a)):i.set(0,0,0)}static getBarycoord(e,t,r,i,a){Ka.subVectors(i,t),xs.subVectors(r,t),O1.subVectors(e,t);const o=Ka.dot(Ka),s=Ka.dot(xs),l=Ka.dot(O1),u=xs.dot(xs),c=xs.dot(O1),h=o*u-s*s;if(h===0)return a.set(0,0,0),null;const f=1/h,d=(u*l-s*c)*f,p=(o*c-s*l)*f;return a.set(1-d-p,p,d)}static containsPoint(e,t,r,i){return this.getBarycoord(e,t,r,i,Ss)===null?!1:Ss.x>=0&&Ss.y>=0&&Ss.x+Ss.y<=1}static getUV(e,t,r,i,a,o,s,l){return Lm===!1&&(Lm=!0),this.getInterpolation(e,t,r,i,a,o,s,l)}static getInterpolation(e,t,r,i,a,o,s,l){return this.getBarycoord(e,t,r,i,Ss)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(a,Ss.x),l.addScaledVector(o,Ss.y),l.addScaledVector(s,Ss.z),l)}static isFrontFacing(e,t,r,i){return Ka.subVectors(r,t),xs.subVectors(e,t),Ka.cross(xs).dot(i)<0}set(e,t,r){return this.a.copy(e),this.b.copy(t),this.c.copy(r),this}setFromPointsAndIndices(e,t,r,i){return this.a.copy(e[t]),this.b.copy(e[r]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,r,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,r),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Ka.subVectors(this.c,this.b),xs.subVectors(this.a,this.b),Ka.cross(xs).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return rc.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return rc.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,r,i,a){return Lm===!1&&(Lm=!0),rc.getInterpolation(e,this.a,this.b,this.c,t,r,i,a)}getInterpolation(e,t,r,i,a){return rc.getInterpolation(e,this.a,this.b,this.c,t,r,i,a)}containsPoint(e){return rc.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return rc.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const r=this.a,i=this.b,a=this.c;let o,s;bh.subVectors(i,r),Th.subVectors(a,r),F1.subVectors(e,r);const l=bh.dot(F1),u=Th.dot(F1);if(l<=0&&u<=0)return t.copy(r);N1.subVectors(e,i);const c=bh.dot(N1),h=Th.dot(N1);if(c>=0&&h<=c)return t.copy(i);const f=l*h-c*u;if(f<=0&&l>=0&&c<=0)return o=l/(l-c),t.copy(r).addScaledVector(bh,o);k1.subVectors(e,a);const d=bh.dot(k1),p=Th.dot(k1);if(p>=0&&d<=p)return t.copy(a);const y=d*u-l*p;if(y<=0&&u>=0&&p<=0)return s=u/(u-p),t.copy(r).addScaledVector(Th,s);const g=c*p-d*h;if(g<=0&&h-c>=0&&d-p>=0)return ZP.subVectors(a,i),s=(h-c)/(h-c+(d-p)),t.copy(i).addScaledVector(ZP,s);const v=1/(g+y+f);return o=y*v,s=f*v,t.copy(r).addScaledVector(bh,o).addScaledVector(Th,s)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}};const Uk={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},cl={h:0,s:0,l:0},Bm={h:0,s:0,l:0};function U1(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class at{constructor(e,t,r){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,r)}set(e,t,r){if(t===void 0&&r===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,t,r);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Tr){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Dn.toWorkingColorSpace(this,t),this}setRGB(e,t,r,i=Dn.workingColorSpace){return this.r=e,this.g=t,this.b=r,Dn.toWorkingColorSpace(this,i),this}setHSL(e,t,r,i=Dn.workingColorSpace){if(e=QT(e,1),t=lr(t,0,1),r=lr(r,0,1),t===0)this.r=this.g=this.b=r;else{const a=r<=.5?r*(1+t):r+t-r*t,o=2*r-a;this.r=U1(o,a,e+1/3),this.g=U1(o,a,e),this.b=U1(o,a,e-1/3)}return Dn.toWorkingColorSpace(this,i),this}setStyle(e,t=Tr){function r(a){a!==void 0&&parseFloat(a)<1}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let a;const o=i[1],s=i[2];switch(o){case"rgb":case"rgba":if(a=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return r(a[4]),this.setRGB(Math.min(255,parseInt(a[1],10))/255,Math.min(255,parseInt(a[2],10))/255,Math.min(255,parseInt(a[3],10))/255,t);if(a=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return r(a[4]),this.setRGB(Math.min(100,parseInt(a[1],10))/100,Math.min(100,parseInt(a[2],10))/100,Math.min(100,parseInt(a[3],10))/100,t);break;case"hsl":case"hsla":if(a=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return r(a[4]),this.setHSL(parseFloat(a[1])/360,parseFloat(a[2])/100,parseFloat(a[3])/100,t);break;default:}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const a=i[1],o=a.length;if(o===3)return this.setRGB(parseInt(a.charAt(0),16)/15,parseInt(a.charAt(1),16)/15,parseInt(a.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(a,16),t)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Tr){const r=Uk[e.toLowerCase()];return r!==void 0&&this.setHex(r,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Mf(e.r),this.g=Mf(e.g),this.b=Mf(e.b),this}copyLinearToSRGB(e){return this.r=C1(e.r),this.g=C1(e.g),this.b=C1(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Tr){return Dn.fromWorkingColorSpace(qr.copy(this),e),Math.round(lr(qr.r*255,0,255))*65536+Math.round(lr(qr.g*255,0,255))*256+Math.round(lr(qr.b*255,0,255))}getHexString(e=Tr){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Dn.workingColorSpace){Dn.fromWorkingColorSpace(qr.copy(this),t);const r=qr.r,i=qr.g,a=qr.b,o=Math.max(r,i,a),s=Math.min(r,i,a);let l,u;const c=(s+o)/2;if(s===o)l=0,u=0;else{const h=o-s;switch(u=c<=.5?h/(o+s):h/(2-o-s),o){case r:l=(i-a)/h+(i0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const r=e[t];if(r===void 0)continue;const i=this[t];i!==void 0&&(i&&i.isColor?i.set(r):i&&i.isVector3&&r&&r.isVector3?i.copy(r):this[t]=r)}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const r={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.color&&this.color.isColor&&(r.color=this.color.getHex()),this.roughness!==void 0&&(r.roughness=this.roughness),this.metalness!==void 0&&(r.metalness=this.metalness),this.sheen!==void 0&&(r.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(r.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(r.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(r.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(r.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(r.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(r.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(r.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(r.shininess=this.shininess),this.clearcoat!==void 0&&(r.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(r.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(r.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(r.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(r.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,r.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(r.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(r.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(r.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(r.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(r.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(r.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(r.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(r.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(r.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(r.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(r.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(r.lightMap=this.lightMap.toJSON(e).uuid,r.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(r.aoMap=this.aoMap.toJSON(e).uuid,r.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(r.bumpMap=this.bumpMap.toJSON(e).uuid,r.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(r.normalMap=this.normalMap.toJSON(e).uuid,r.normalMapType=this.normalMapType,r.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(r.displacementMap=this.displacementMap.toJSON(e).uuid,r.displacementScale=this.displacementScale,r.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(r.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(r.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(r.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(r.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(r.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(r.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(r.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(r.combine=this.combine)),this.envMapIntensity!==void 0&&(r.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(r.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(r.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(r.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(r.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(r.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(r.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(r.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(r.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(r.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(r.size=this.size),this.shadowSide!==null&&(r.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(r.sizeAttenuation=this.sizeAttenuation),this.blending!==Cc&&(r.blending=this.blending),this.side!==Ko&&(r.side=this.side),this.vertexColors===!0&&(r.vertexColors=!0),this.opacity<1&&(r.opacity=this.opacity),this.transparent===!0&&(r.transparent=!0),this.blendSrc!==Q0&&(r.blendSrc=this.blendSrc),this.blendDst!==e_&&(r.blendDst=this.blendDst),this.blendEquation!==Cl&&(r.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(r.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(r.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(r.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(r.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(r.blendAlpha=this.blendAlpha),this.depthFunc!==hv&&(r.depthFunc=this.depthFunc),this.depthTest===!1&&(r.depthTest=this.depthTest),this.depthWrite===!1&&(r.depthWrite=this.depthWrite),this.colorWrite===!1&&(r.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(r.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==$w&&(r.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(r.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(r.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==nc&&(r.stencilFail=this.stencilFail),this.stencilZFail!==nc&&(r.stencilZFail=this.stencilZFail),this.stencilZPass!==nc&&(r.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(r.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(r.rotation=this.rotation),this.polygonOffset===!0&&(r.polygonOffset=!0),this.polygonOffsetFactor!==0&&(r.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(r.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(r.linewidth=this.linewidth),this.dashSize!==void 0&&(r.dashSize=this.dashSize),this.gapSize!==void 0&&(r.gapSize=this.gapSize),this.scale!==void 0&&(r.scale=this.scale),this.dithering===!0&&(r.dithering=!0),this.alphaTest>0&&(r.alphaTest=this.alphaTest),this.alphaHash===!0&&(r.alphaHash=!0),this.alphaToCoverage===!0&&(r.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(r.premultipliedAlpha=!0),this.forceSinglePass===!0&&(r.forceSinglePass=!0),this.wireframe===!0&&(r.wireframe=!0),this.wireframeLinewidth>1&&(r.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(r.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(r.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(r.flatShading=!0),this.visible===!1&&(r.visible=!1),this.toneMapped===!1&&(r.toneMapped=!1),this.fog===!1&&(r.fog=!1),Object.keys(this.userData).length>0&&(r.userData=this.userData);function i(a){const o=[];for(const s in a){const l=a[s];delete l.metadata,o.push(l)}return o}if(t){const a=i(e.textures),o=i(e.images);a.length>0&&(r.textures=a),o.length>0&&(r.images=o)}return r}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let r=null;if(t!==null){const i=t.length;r=new Array(i);for(let a=0;a!==i;++a)r[a]=t[a].clone()}return this.clippingPlanes=r,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class na extends Ar{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new at(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=eg,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const Rs=hX();function hX(){const n=new ArrayBuffer(4),e=new Float32Array(n),t=new Uint32Array(n),r=new Uint32Array(512),i=new Uint32Array(512);for(let l=0;l<256;++l){const u=l-127;u<-27?(r[l]=0,r[l|256]=32768,i[l]=24,i[l|256]=24):u<-14?(r[l]=1024>>-u-14,r[l|256]=1024>>-u-14|32768,i[l]=-u-1,i[l|256]=-u-1):u<=15?(r[l]=u+15<<10,r[l|256]=u+15<<10|32768,i[l]=13,i[l|256]=13):u<128?(r[l]=31744,r[l|256]=64512,i[l]=24,i[l|256]=24):(r[l]=31744,r[l|256]=64512,i[l]=13,i[l|256]=13)}const a=new Uint32Array(2048),o=new Uint32Array(64),s=new Uint32Array(64);for(let l=1;l<1024;++l){let u=l<<13,c=0;for(;!(u&8388608);)u<<=1,c-=8388608;u&=-8388609,c+=947912704,a[l]=u|c}for(let l=1024;l<2048;++l)a[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)o[l]=l<<23;o[31]=1199570944,o[32]=2147483648;for(let l=33;l<63;++l)o[l]=2147483648+(l-32<<23);o[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(s[l]=1024);return{floatView:e,uint32View:t,baseTable:r,shiftTable:i,mantissaTable:a,exponentTable:o,offsetTable:s}}function Gi(n){Math.abs(n)>65504,n=lr(n,-65504,65504),Rs.floatView[0]=n;const e=Rs.uint32View[0],t=e>>23&511;return Rs.baseTable[t]+((e&8388607)>>Rs.shiftTable[t])}function Pp(n){const e=n>>10;return Rs.uint32View[0]=Rs.mantissaTable[Rs.offsetTable[e]+(n&1023)]+Rs.exponentTable[e],Rs.floatView[0]}const mc={toHalfFloat:Gi,fromHalfFloat:Pp},xr=new J,Om=new De;class _n{constructor(e,t,r=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=r,this.usage=yv,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Hr,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,r){e*=this.itemSize,r*=t.itemSize;for(let i=0,a=this.itemSize;i0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const u in l)l[u]!==void 0&&(e[u]=l[u]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const r=this.attributes;for(const l in r){const u=r[l];e.data.attributes[l]=u.toJSON(e.data)}const i={};let a=!1;for(const l in this.morphAttributes){const u=this.morphAttributes[l],c=[];for(let h=0,f=u.length;h0&&(i[l]=c,a=!0)}a&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const s=this.boundingSphere;return s!==null&&(e.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const r=e.index;r!==null&&this.setIndex(r.clone(t));const i=e.attributes;for(const u in i){const c=i[u];this.setAttribute(u,c.clone(t))}const a=e.morphAttributes;for(const u in a){const c=[],h=a[u];for(let f=0,d=h.length;f0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,o=i.length;aM1(e.far-e.near,2)))&&(KP.copy(a).invert(),Su.copy(e.ray).applyMatrix4(KP),!(r.boundingBox!==null&&Su.intersectsBox(r.boundingBox)===!1)&&this._computeIntersections(e,t,Su)))}_computeIntersections(e,t,r){let i;const a=this.geometry,o=this.material,s=a.index,l=a.attributes.position,u=a.attributes.uv,c=a.attributes.uv1,h=a.attributes.normal,f=a.groups,d=a.drawRange;if(s!==null)if(Array.isArray(o))for(let p=0,y=f.length;pt.far?null:{distance:u,point:Hm.clone(),object:n}}function Vm(n,e,t,r,i,a,o,s,l,u){n.getVertexPosition(s,Eh),n.getVertexPosition(l,Rh),n.getVertexPosition(u,Ph);const c=xX(n,e,t,r,Eh,Rh,Ph,zm);if(c){i&&(km.fromBufferAttribute(i,s),Um.fromBufferAttribute(i,l),Gm.fromBufferAttribute(i,u),c.uv=gc.getInterpolation(zm,Eh,Rh,Ph,km,Um,Gm,new De)),a&&(km.fromBufferAttribute(a,s),Um.fromBufferAttribute(a,l),Gm.fromBufferAttribute(a,u),c.uv1=gc.getInterpolation(zm,Eh,Rh,Ph,km,Um,Gm,new De),c.uv2=c.uv1),o&&($P.fromBufferAttribute(o,s),QP.fromBufferAttribute(o,l),eD.fromBufferAttribute(o,u),c.normal=gc.getInterpolation(zm,Eh,Rh,Ph,$P,QP,eD,new J),c.normal.dot(r.direction)>0&&c.normal.multiplyScalar(-1));const h={a:s,b:l,c:u,normal:new J,materialIndex:0};gc.getNormal(Eh,Rh,Ph,h.normal),c.face=h}return c}class Kc extends Jt{constructor(e=1,t=1,r=1,i=1,a=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:r,widthSegments:i,heightSegments:a,depthSegments:o};const s=this;i=Math.floor(i),a=Math.floor(a),o=Math.floor(o);const l=[],u=[],c=[],h=[];let f=0,d=0;p("z","y","x",-1,-1,r,t,e,o,a,0),p("z","y","x",1,-1,r,t,-e,o,a,1),p("x","z","y",1,1,e,r,t,i,o,2),p("x","z","y",1,-1,e,r,-t,i,o,3),p("x","y","z",1,-1,e,t,r,i,a,4),p("x","y","z",-1,-1,e,t,-r,i,a,5),this.setIndex(l),this.setAttribute("position",new wt(u,3)),this.setAttribute("normal",new wt(c,3)),this.setAttribute("uv",new wt(h,2));function p(y,g,v,x,S,A,b,w,C,P,E){const R=A/C,D=b/P,B=A/2,k=b/2,N=w/2,z=C+1,X=P+1;let ne=0,H=0;const K=new J;for(let Q=0;Q0?1:-1,c.push(K.x,K.y,K.z),h.push(he/C),h.push(1-Q/P),ne+=1}}for(let Q=0;Q>8&255]+Zr[n>>16&255]+Zr[n>>24&255]+"-"+Zr[e&255]+Zr[e>>8&255]+"-"+Zr[e>>16&15|64]+Zr[e>>24&255]+"-"+Zr[t&63|128]+Zr[t>>8&255]+"-"+Zr[t>>16&255]+Zr[t>>24&255]+Zr[r&255]+Zr[r>>8&255]+Zr[r>>16&255]+Zr[r>>24&255]).toLowerCase()}function or(n,e,t){return Math.max(e,Math.min(t,n))}function wT(n,e){return(n%e+e)%e}function D8(n,e,t,r,i){return r+(n-e)*(i-r)/(t-e)}function I8(n,e,t){return n!==e?(t-n)/(e-n):0}function Rp(n,e,t){return(1-t)*n+t*e}function L8(n,e,t,r){return Rp(n,e,1-Math.exp(-t*r))}function B8(n,e=1){return e-Math.abs(wT(n,e*2)-e)}function O8(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function N8(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function F8(n,e){return n+Math.floor(Math.random()*(e-n+1))}function k8(n,e){return n+Math.random()*(e-n)}function U8(n){return n*(.5-Math.random())}function G8(n){n!==void 0&&(eP=n);let e=eP+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function z8(n){return n*Sc}function H8(n){return n*Ef}function bw(n){return(n&n-1)===0&&n!==0}function V8(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function Iy(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function W8(n,e,t,r,i){const a=Math.cos,o=Math.sin,s=a(t/2),l=o(t/2),u=a((e+r)/2),c=o((e+r)/2),h=a((e-r)/2),f=o((e-r)/2),d=a((r-e)/2),p=o((r-e)/2);switch(i){case"XYX":n.set(s*c,l*h,l*f,s*u);break;case"YZY":n.set(l*f,s*c,l*h,s*u);break;case"ZXZ":n.set(l*h,l*f,s*c,s*u);break;case"XZX":n.set(s*c,l*p,l*d,s*u);break;case"YXY":n.set(l*d,s*c,l*p,s*u);break;case"ZYZ":n.set(l*p,l*d,s*c,s*u);break;default:}}function Gi(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function Kt(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const af={DEG2RAD:Sc,RAD2DEG:Ef,generateUUID:ra,clamp:or,euclideanModulo:wT,mapLinear:D8,inverseLerp:I8,lerp:Rp,damp:L8,pingpong:B8,smoothstep:O8,smootherstep:N8,randInt:F8,randFloat:k8,randFloatSpread:U8,seededRandom:G8,degToRad:z8,radToDeg:H8,isPowerOfTwo:bw,ceilPowerOfTwo:V8,floorPowerOfTwo:Iy,setQuaternionFromProperEuler:W8,normalize:Kt,denormalize:Gi};class Re{constructor(e=0,t=0){Re.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,r=this.y,i=e.elements;return this.x=i[0]*t+i[3]*r+i[6],this.y=i[1]*t+i[4]*r+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(or(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y;return t*t+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const r=Math.cos(t),i=Math.sin(t),a=this.x-e.x,o=this.y-e.y;return this.x=a*r-o*i+e.x,this.y=a*i+o*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class $t{constructor(e,t,r,i,a,o,s,l,u){$t.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,r,i,a,o,s,l,u)}set(e,t,r,i,a,o,s,l,u){const c=this.elements;return c[0]=e,c[1]=i,c[2]=s,c[3]=t,c[4]=a,c[5]=l,c[6]=r,c[7]=o,c[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],this}extractBasis(e,t,r){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),r.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,i=t.elements,a=this.elements,o=r[0],s=r[3],l=r[6],u=r[1],c=r[4],h=r[7],f=r[2],d=r[5],p=r[8],y=i[0],g=i[3],v=i[6],x=i[1],S=i[4],A=i[7],T=i[2],w=i[5],C=i[8];return a[0]=o*y+s*x+l*T,a[3]=o*g+s*S+l*w,a[6]=o*v+s*A+l*C,a[1]=u*y+c*x+h*T,a[4]=u*g+c*S+h*w,a[7]=u*v+c*A+h*C,a[2]=f*y+d*x+p*T,a[5]=f*g+d*S+p*w,a[8]=f*v+d*A+p*C,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t*o*c-t*s*u-r*a*c+r*s*l+i*a*u-i*o*l}invert(){const e=this.elements,t=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=c*o-s*u,f=s*l-c*a,d=u*a-o*l,p=t*h+r*f+i*d;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);const y=1/p;return e[0]=h*y,e[1]=(i*u-c*r)*y,e[2]=(s*r-i*o)*y,e[3]=f*y,e[4]=(c*t-i*l)*y,e[5]=(i*a-s*t)*y,e[6]=d*y,e[7]=(r*l-u*t)*y,e[8]=(o*t-r*a)*y,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,r,i,a,o,s){const l=Math.cos(a),u=Math.sin(a);return this.set(r*l,r*u,-r*(l*o+u*s)+o+e,-i*u,i*l,-i*(-u*o+l*s)+s+t,0,0,1),this}scale(e,t){return this.premultiply(n1.makeScale(e,t)),this}rotate(e){return this.premultiply(n1.makeRotation(-e)),this}translate(e,t){return this.premultiply(n1.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,r,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,r=e.elements;for(let i=0;i<9;i++)if(t[i]!==r[i])return!1;return!0}fromArray(e,t=0){for(let r=0;r<9;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const n1=new $t;function V3(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}const X8={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function of(n,e){return new X8[n](e)}function nv(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function W3(){const n=nv("canvas");return n.style.display="block",n}const tP={};function Pp(n){n in tP||(tP[n]=!0)}const nP=new $t().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),rP=new $t().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),am={[Qo]:{transfer:Qp,primaries:$p,toReference:n=>n,fromReference:n=>n},[wr]:{transfer:Fn,primaries:$p,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[kv]:{transfer:Qp,primaries:ev,toReference:n=>n.applyMatrix3(rP),fromReference:n=>n.applyMatrix3(nP)},[T_]:{transfer:Fn,primaries:ev,toReference:n=>n.convertSRGBToLinear().applyMatrix3(rP),fromReference:n=>n.applyMatrix3(nP).convertLinearToSRGB()}},Y8=new Set([Qo,kv]),Pn={enabled:!0,_workingColorSpace:Qo,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!Y8.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const r=am[e].toReference,i=am[t].fromReference;return i(r(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return am[n].primaries},getTransfer:function(n){return n===$i?Qp:am[n].transfer}};function vf(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function r1(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let hh;class bT{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement=="undefined")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{hh===void 0&&(hh=nv("canvas")),hh.width=e.width,hh.height=e.height;const r=hh.getContext("2d");e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0,e.width,e.height),t=hh}return t.width>2048||t.height>2048?t.toDataURL("image/jpeg",.6):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement!="undefined"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement!="undefined"&&e instanceof HTMLCanvasElement||typeof ImageBitmap!="undefined"&&e instanceof ImageBitmap){const t=nv("canvas");t.width=e.width,t.height=e.height;const r=t.getContext("2d");r.drawImage(e,0,0,e.width,e.height);const i=r.getImageData(0,0,e.width,e.height),a=i.data;for(let o=0;o0&&(r.userData=this.userData),t||(e.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==A_)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case zl:e.x=e.x-Math.floor(e.x);break;case Ur:e.x=e.x<0?0:1;break;case bf:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case zl:e.y=e.y-Math.floor(e.y);break;case Ur:e.y=e.y<0?0:1;break;case bf:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return Pp("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===wr?Bl:AT}set encoding(e){Pp("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===Bl?wr:$i}}Vn.DEFAULT_IMAGE=null;Vn.DEFAULT_MAPPING=A_;Vn.DEFAULT_ANISOTROPY=1;class Dn{constructor(e=0,t=0,r=0,i=1){Dn.prototype.isVector4=!0,this.x=e,this.y=t,this.z=r,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,r,i){return this.x=e,this.y=t,this.z=r,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,r=this.y,i=this.z,a=this.w,o=e.elements;return this.x=o[0]*t+o[4]*r+o[8]*i+o[12]*a,this.y=o[1]*t+o[5]*r+o[9]*i+o[13]*a,this.z=o[2]*t+o[6]*r+o[10]*i+o[14]*a,this.w=o[3]*t+o[7]*r+o[11]*i+o[15]*a,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,r,i,a;const l=e.elements,u=l[0],c=l[4],h=l[8],f=l[1],d=l[5],p=l[9],y=l[2],g=l[6],v=l[10];if(Math.abs(c-f)<.01&&Math.abs(h-y)<.01&&Math.abs(p-g)<.01){if(Math.abs(c+f)<.1&&Math.abs(h+y)<.1&&Math.abs(p+g)<.1&&Math.abs(u+d+v-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const S=(u+1)/2,A=(d+1)/2,T=(v+1)/2,w=(c+f)/4,C=(h+y)/4,P=(p+g)/4;return S>A&&S>T?S<.01?(r=0,i=.707106781,a=.707106781):(r=Math.sqrt(S),i=w/r,a=C/r):A>T?A<.01?(r=.707106781,i=0,a=.707106781):(i=Math.sqrt(A),r=w/i,a=P/i):T<.01?(r=.707106781,i=.707106781,a=0):(a=Math.sqrt(T),r=C/a,i=P/a),this.set(r,i,a,t),this}let x=Math.sqrt((g-p)*(g-p)+(h-y)*(h-y)+(f-c)*(f-c));return Math.abs(x)<.001&&(x=1),this.x=(g-p)/x,this.y=(h-y)/x,this.z=(f-c)/x,this.w=Math.acos((u+d+v-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this.w=e.w+(t.w-e.w)*r,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class X3 extends rs{constructor(e=1,t=1,r={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new Dn(0,0,e,t),this.scissorTest=!1,this.viewport=new Dn(0,0,e,t);const i={width:e,height:t,depth:1};r.encoding!==void 0&&(Pp("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),r.colorSpace=r.encoding===Bl?wr:$i),r=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Bn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},r),this.texture=new Vn(i,r.mapping,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=r.generateMipmaps,this.texture.internalFormat=r.internalFormat,this.depthBuffer=r.depthBuffer,this.stencilBuffer=r.stencilBuffer,this.depthTexture=r.depthTexture,this.samples=r.samples}setSize(e,t,r=1){(this.width!==e||this.height!==t||this.depth!==r)&&(this.width=e,this.height=t,this.depth=r,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=r,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new lc(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class aa extends X3{constructor(e=1,t=1,r={}){super(e,t,r),this.isWebGLRenderTarget=!0}}class C_ extends Vn{constructor(e=null,t=1,r=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:r,depth:i},this.magFilter=ar,this.minFilter=ar,this.wrapR=Ur,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class j8 extends aa{constructor(e=1,t=1,r=1,i={}){super(e,t,i),this.isWebGLArrayRenderTarget=!0,this.depth=r,this.texture=new C_(null,e,t,r),this.texture.isRenderTargetTexture=!0}}class TT extends Vn{constructor(e=null,t=1,r=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:r,depth:i},this.magFilter=ar,this.minFilter=ar,this.wrapR=Ur,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class K8 extends aa{constructor(e=1,t=1,r=1,i={}){super(e,t,i),this.isWebGL3DRenderTarget=!0,this.depth=r,this.texture=new TT(null,e,t,r),this.texture.isRenderTargetTexture=!0}}class q8 extends aa{constructor(e=1,t=1,r=1,i={}){super(e,t,i),this.isWebGLMultipleRenderTargets=!0;const a=this.texture;this.texture=[];for(let o=0;o=0?1:-1,S=1-v*v;if(S>Number.EPSILON){const T=Math.sqrt(S),w=Math.atan2(T,v*x);g=Math.sin(g*w)/T,s=Math.sin(s*w)/T}const A=s*x;if(l=l*g+f*A,u=u*g+d*A,c=c*g+p*A,h=h*g+y*A,g===1-s){const T=1/Math.sqrt(l*l+u*u+c*c+h*h);l*=T,u*=T,c*=T,h*=T}}e[t]=l,e[t+1]=u,e[t+2]=c,e[t+3]=h}static multiplyQuaternionsFlat(e,t,r,i,a,o){const s=r[i],l=r[i+1],u=r[i+2],c=r[i+3],h=a[o],f=a[o+1],d=a[o+2],p=a[o+3];return e[t]=s*p+c*h+l*d-u*f,e[t+1]=l*p+c*f+u*h-s*d,e[t+2]=u*p+c*d+s*f-l*h,e[t+3]=c*p-s*h-l*f-u*d,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,r,i){return this._x=e,this._y=t,this._z=r,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const r=e._x,i=e._y,a=e._z,o=e._order,s=Math.cos,l=Math.sin,u=s(r/2),c=s(i/2),h=s(a/2),f=l(r/2),d=l(i/2),p=l(a/2);switch(o){case"XYZ":this._x=f*c*h+u*d*p,this._y=u*d*h-f*c*p,this._z=u*c*p+f*d*h,this._w=u*c*h-f*d*p;break;case"YXZ":this._x=f*c*h+u*d*p,this._y=u*d*h-f*c*p,this._z=u*c*p-f*d*h,this._w=u*c*h+f*d*p;break;case"ZXY":this._x=f*c*h-u*d*p,this._y=u*d*h+f*c*p,this._z=u*c*p+f*d*h,this._w=u*c*h-f*d*p;break;case"ZYX":this._x=f*c*h-u*d*p,this._y=u*d*h+f*c*p,this._z=u*c*p-f*d*h,this._w=u*c*h+f*d*p;break;case"YZX":this._x=f*c*h+u*d*p,this._y=u*d*h+f*c*p,this._z=u*c*p-f*d*h,this._w=u*c*h-f*d*p;break;case"XZY":this._x=f*c*h-u*d*p,this._y=u*d*h-f*c*p,this._z=u*c*p+f*d*h,this._w=u*c*h+f*d*p;break;default:}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const r=t/2,i=Math.sin(r);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(r),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,r=t[0],i=t[4],a=t[8],o=t[1],s=t[5],l=t[9],u=t[2],c=t[6],h=t[10],f=r+s+h;if(f>0){const d=.5/Math.sqrt(f+1);this._w=.25/d,this._x=(c-l)*d,this._y=(a-u)*d,this._z=(o-i)*d}else if(r>s&&r>h){const d=2*Math.sqrt(1+r-s-h);this._w=(c-l)/d,this._x=.25*d,this._y=(i+o)/d,this._z=(a+u)/d}else if(s>h){const d=2*Math.sqrt(1+s-r-h);this._w=(a-u)/d,this._x=(i+o)/d,this._y=.25*d,this._z=(l+c)/d}else{const d=2*Math.sqrt(1+h-r-s);this._w=(o-i)/d,this._x=(a+u)/d,this._y=(l+c)/d,this._z=.25*d}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let r=e.dot(t)+1;return rMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=r):(this._x=0,this._y=-e.z,this._z=e.y,this._w=r)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(or(this.dot(e),-1,1)))}rotateTowards(e,t){const r=this.angleTo(e);if(r===0)return this;const i=Math.min(1,t/r);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const r=e._x,i=e._y,a=e._z,o=e._w,s=t._x,l=t._y,u=t._z,c=t._w;return this._x=r*c+o*s+i*u-a*l,this._y=i*c+o*l+a*s-r*u,this._z=a*c+o*u+r*l-i*s,this._w=o*c-r*s-i*l-a*u,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const r=this._x,i=this._y,a=this._z,o=this._w;let s=o*e._w+r*e._x+i*e._y+a*e._z;if(s<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,s=-s):this.copy(e),s>=1)return this._w=o,this._x=r,this._y=i,this._z=a,this;const l=1-s*s;if(l<=Number.EPSILON){const d=1-t;return this._w=d*o+t*this._w,this._x=d*r+t*this._x,this._y=d*i+t*this._y,this._z=d*a+t*this._z,this.normalize(),this}const u=Math.sqrt(l),c=Math.atan2(u,s),h=Math.sin((1-t)*c)/u,f=Math.sin(t*c)/u;return this._w=o*h+this._w*f,this._x=r*h+this._x*f,this._y=i*h+this._y*f,this._z=a*h+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,t,r){return this.copy(e).slerp(t,r)}random(){const e=Math.random(),t=Math.sqrt(1-e),r=Math.sqrt(e),i=2*Math.PI*Math.random(),a=2*Math.PI*Math.random();return this.set(t*Math.cos(i),r*Math.sin(a),r*Math.cos(a),t*Math.sin(i))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class J{constructor(e=0,t=0,r=0){J.prototype.isVector3=!0,this.x=e,this.y=t,this.z=r}set(e,t,r){return r===void 0&&(r=this.z),this.x=e,this.y=t,this.z=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(iP.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(iP.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,r=this.y,i=this.z,a=e.elements;return this.x=a[0]*t+a[3]*r+a[6]*i,this.y=a[1]*t+a[4]*r+a[7]*i,this.z=a[2]*t+a[5]*r+a[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,r=this.y,i=this.z,a=e.elements,o=1/(a[3]*t+a[7]*r+a[11]*i+a[15]);return this.x=(a[0]*t+a[4]*r+a[8]*i+a[12])*o,this.y=(a[1]*t+a[5]*r+a[9]*i+a[13])*o,this.z=(a[2]*t+a[6]*r+a[10]*i+a[14])*o,this}applyQuaternion(e){const t=this.x,r=this.y,i=this.z,a=e.x,o=e.y,s=e.z,l=e.w,u=2*(o*i-s*r),c=2*(s*t-a*i),h=2*(a*r-o*t);return this.x=t+l*u+o*h-s*c,this.y=r+l*c+s*u-a*h,this.z=i+l*h+a*c-o*u,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,r=this.y,i=this.z,a=e.elements;return this.x=a[0]*t+a[4]*r+a[8]*i,this.y=a[1]*t+a[5]*r+a[9]*i,this.z=a[2]*t+a[6]*r+a[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Math.max(e,Math.min(t,r)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const r=e.x,i=e.y,a=e.z,o=t.x,s=t.y,l=t.z;return this.x=i*l-a*s,this.y=a*o-r*l,this.z=r*s-i*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const r=e.dot(this)/t;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return a1.copy(this).projectOnVector(e),this.sub(a1)}reflect(e){return this.sub(a1.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(or(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y,i=this.z-e.z;return t*t+r*r+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,r){const i=Math.sin(t)*e;return this.x=i*Math.sin(r),this.y=Math.cos(t)*e,this.z=i*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,r){return this.x=e*Math.sin(t),this.y=r,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),r=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=r,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,r=Math.sqrt(1-QS(e,2));return this.x=r*Math.cos(t),this.y=r*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const a1=new J,iP=new Lr;class ii{constructor(e=new J(1/0,1/0,1/0),t=new J(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,r=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Ja),Ja.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,r;return e.normal.x>0?(t=e.normal.x*this.min.x,r=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,r=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,r+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,r+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,r+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,r+=e.normal.z*this.min.z),t<=-e.constant&&r>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Pd),sm.subVectors(this.max,Pd),fh.subVectors(e.a,Pd),dh.subVectors(e.b,Pd),ph.subVectors(e.c,Pd),nl.subVectors(dh,fh),rl.subVectors(ph,dh),pu.subVectors(fh,ph);let t=[0,-nl.z,nl.y,0,-rl.z,rl.y,0,-pu.z,pu.y,nl.z,0,-nl.x,rl.z,0,-rl.x,pu.z,0,-pu.x,-nl.y,nl.x,0,-rl.y,rl.x,0,-pu.y,pu.x,0];return!o1(t,fh,dh,ph,sm)||(t=[1,0,0,0,1,0,0,0,1],!o1(t,fh,dh,ph,sm))?!1:(lm.crossVectors(nl,rl),t=[lm.x,lm.y,lm.z],o1(t,fh,dh,ph,sm))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ja).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Ja).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(ps[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),ps[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),ps[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),ps[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),ps[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),ps[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),ps[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),ps[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(ps),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const ps=[new J,new J,new J,new J,new J,new J,new J,new J],Ja=new J,om=new ii,fh=new J,dh=new J,ph=new J,nl=new J,rl=new J,pu=new J,Pd=new J,sm=new J,lm=new J,vu=new J;function o1(n,e,t,r,i){for(let a=0,o=n.length-3;a<=o;a+=3){vu.fromArray(n,a);const s=i.x*Math.abs(vu.x)+i.y*Math.abs(vu.y)+i.z*Math.abs(vu.z),l=e.dot(vu),u=t.dot(vu),c=r.dot(vu);if(Math.max(-Math.max(l,u,c),Math.min(l,u,c))>s)return!1}return!0}const Q8=new ii,Dd=new J,s1=new J;class zr{constructor(e=new J,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const r=this.center;t!==void 0?r.copy(t):Q8.setFromPoints(e).getCenter(r);let i=0;for(let a=0,o=e.length;athis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Dd.subVectors(e,this.center);const t=Dd.lengthSq();if(t>this.radius*this.radius){const r=Math.sqrt(t),i=(r-this.radius)*.5;this.center.addScaledVector(Dd,i/r),this.radius+=i}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(s1.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Dd.copy(e.center).add(s1)),this.expandByPoint(Dd.copy(e.center).sub(s1))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const vs=new J,l1=new J,um=new J,il=new J,u1=new J,cm=new J,c1=new J;class Hc{constructor(e=new J,t=new J(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,vs)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const r=t.dot(this.direction);return r<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,r)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=vs.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(vs.copy(this.origin).addScaledVector(this.direction,t),vs.distanceToSquared(e))}distanceSqToSegment(e,t,r,i){l1.copy(e).add(t).multiplyScalar(.5),um.copy(t).sub(e).normalize(),il.copy(this.origin).sub(l1);const a=e.distanceTo(t)*.5,o=-this.direction.dot(um),s=il.dot(this.direction),l=-il.dot(um),u=il.lengthSq(),c=Math.abs(1-o*o);let h,f,d,p;if(c>0)if(h=o*l-s,f=o*s-l,p=a*c,h>=0)if(f>=-p)if(f<=p){const y=1/c;h*=y,f*=y,d=h*(h+o*f+2*s)+f*(o*h+f+2*l)+u}else f=a,h=Math.max(0,-(o*f+s)),d=-h*h+f*(f+2*l)+u;else f=-a,h=Math.max(0,-(o*f+s)),d=-h*h+f*(f+2*l)+u;else f<=-p?(h=Math.max(0,-(-o*a+s)),f=h>0?-a:Math.min(Math.max(-a,-l),a),d=-h*h+f*(f+2*l)+u):f<=p?(h=0,f=Math.min(Math.max(-a,-l),a),d=f*(f+2*l)+u):(h=Math.max(0,-(o*a+s)),f=h>0?a:Math.min(Math.max(-a,-l),a),d=-h*h+f*(f+2*l)+u);else f=o>0?-a:a,h=Math.max(0,-(o*f+s)),d=-h*h+f*(f+2*l)+u;return r&&r.copy(this.origin).addScaledVector(this.direction,h),i&&i.copy(l1).addScaledVector(um,f),d}intersectSphere(e,t){vs.subVectors(e.center,this.origin);const r=vs.dot(this.direction),i=vs.dot(vs)-r*r,a=e.radius*e.radius;if(i>a)return null;const o=Math.sqrt(a-i),s=r-o,l=r+o;return l<0?null:s<0?this.at(l,t):this.at(s,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(e.normal)+e.constant)/t;return r>=0?r:null}intersectPlane(e,t){const r=this.distanceToPlane(e);return r===null?null:this.at(r,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let r,i,a,o,s,l;const u=1/this.direction.x,c=1/this.direction.y,h=1/this.direction.z,f=this.origin;return u>=0?(r=(e.min.x-f.x)*u,i=(e.max.x-f.x)*u):(r=(e.max.x-f.x)*u,i=(e.min.x-f.x)*u),c>=0?(a=(e.min.y-f.y)*c,o=(e.max.y-f.y)*c):(a=(e.max.y-f.y)*c,o=(e.min.y-f.y)*c),r>o||a>i||((a>r||isNaN(r))&&(r=a),(o=0?(s=(e.min.z-f.z)*h,l=(e.max.z-f.z)*h):(s=(e.max.z-f.z)*h,l=(e.min.z-f.z)*h),r>l||s>i)||((s>r||r!==r)&&(r=s),(l=0?r:i,t)}intersectsBox(e){return this.intersectBox(e,vs)!==null}intersectTriangle(e,t,r,i,a){u1.subVectors(t,e),cm.subVectors(r,e),c1.crossVectors(u1,cm);let o=this.direction.dot(c1),s;if(o>0){if(i)return null;s=1}else if(o<0)s=-1,o=-o;else return null;il.subVectors(this.origin,e);const l=s*this.direction.dot(cm.crossVectors(il,cm));if(l<0)return null;const u=s*this.direction.dot(u1.cross(il));if(u<0||l+u>o)return null;const c=-s*il.dot(c1);return c<0?null:this.at(c/o,a)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Dt{constructor(e,t,r,i,a,o,s,l,u,c,h,f,d,p,y,g){Dt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,r,i,a,o,s,l,u,c,h,f,d,p,y,g)}set(e,t,r,i,a,o,s,l,u,c,h,f,d,p,y,g){const v=this.elements;return v[0]=e,v[4]=t,v[8]=r,v[12]=i,v[1]=a,v[5]=o,v[9]=s,v[13]=l,v[2]=u,v[6]=c,v[10]=h,v[14]=f,v[3]=d,v[7]=p,v[11]=y,v[15]=g,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Dt().fromArray(this.elements)}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],t[9]=r[9],t[10]=r[10],t[11]=r[11],t[12]=r[12],t[13]=r[13],t[14]=r[14],t[15]=r[15],this}copyPosition(e){const t=this.elements,r=e.elements;return t[12]=r[12],t[13]=r[13],t[14]=r[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,r){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,t,r){return this.set(e.x,t.x,r.x,0,e.y,t.y,r.y,0,e.z,t.z,r.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,r=e.elements,i=1/vh.setFromMatrixColumn(e,0).length(),a=1/vh.setFromMatrixColumn(e,1).length(),o=1/vh.setFromMatrixColumn(e,2).length();return t[0]=r[0]*i,t[1]=r[1]*i,t[2]=r[2]*i,t[3]=0,t[4]=r[4]*a,t[5]=r[5]*a,t[6]=r[6]*a,t[7]=0,t[8]=r[8]*o,t[9]=r[9]*o,t[10]=r[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,r=e.x,i=e.y,a=e.z,o=Math.cos(r),s=Math.sin(r),l=Math.cos(i),u=Math.sin(i),c=Math.cos(a),h=Math.sin(a);if(e.order==="XYZ"){const f=o*c,d=o*h,p=s*c,y=s*h;t[0]=l*c,t[4]=-l*h,t[8]=u,t[1]=d+p*u,t[5]=f-y*u,t[9]=-s*l,t[2]=y-f*u,t[6]=p+d*u,t[10]=o*l}else if(e.order==="YXZ"){const f=l*c,d=l*h,p=u*c,y=u*h;t[0]=f+y*s,t[4]=p*s-d,t[8]=o*u,t[1]=o*h,t[5]=o*c,t[9]=-s,t[2]=d*s-p,t[6]=y+f*s,t[10]=o*l}else if(e.order==="ZXY"){const f=l*c,d=l*h,p=u*c,y=u*h;t[0]=f-y*s,t[4]=-o*h,t[8]=p+d*s,t[1]=d+p*s,t[5]=o*c,t[9]=y-f*s,t[2]=-o*u,t[6]=s,t[10]=o*l}else if(e.order==="ZYX"){const f=o*c,d=o*h,p=s*c,y=s*h;t[0]=l*c,t[4]=p*u-d,t[8]=f*u+y,t[1]=l*h,t[5]=y*u+f,t[9]=d*u-p,t[2]=-u,t[6]=s*l,t[10]=o*l}else if(e.order==="YZX"){const f=o*l,d=o*u,p=s*l,y=s*u;t[0]=l*c,t[4]=y-f*h,t[8]=p*h+d,t[1]=h,t[5]=o*c,t[9]=-s*c,t[2]=-u*c,t[6]=d*h+p,t[10]=f-y*h}else if(e.order==="XZY"){const f=o*l,d=o*u,p=s*l,y=s*u;t[0]=l*c,t[4]=-h,t[8]=u*c,t[1]=f*h+y,t[5]=o*c,t[9]=d*h-p,t[2]=p*h-d,t[6]=s*c,t[10]=y*h+f}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose($8,e,e9)}lookAt(e,t,r){const i=this.elements;return ji.subVectors(e,t),ji.lengthSq()===0&&(ji.z=1),ji.normalize(),al.crossVectors(r,ji),al.lengthSq()===0&&(Math.abs(r.z)===1?ji.x+=1e-4:ji.z+=1e-4,ji.normalize(),al.crossVectors(r,ji)),al.normalize(),hm.crossVectors(ji,al),i[0]=al.x,i[4]=hm.x,i[8]=ji.x,i[1]=al.y,i[5]=hm.y,i[9]=ji.y,i[2]=al.z,i[6]=hm.z,i[10]=ji.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,i=t.elements,a=this.elements,o=r[0],s=r[4],l=r[8],u=r[12],c=r[1],h=r[5],f=r[9],d=r[13],p=r[2],y=r[6],g=r[10],v=r[14],x=r[3],S=r[7],A=r[11],T=r[15],w=i[0],C=i[4],P=i[8],E=i[12],R=i[1],I=i[5],O=i[9],U=i[13],F=i[2],z=i[6],X=i[10],ne=i[14],H=i[3],j=i[7],$=i[11],le=i[15];return a[0]=o*w+s*R+l*F+u*H,a[4]=o*C+s*I+l*z+u*j,a[8]=o*P+s*O+l*X+u*$,a[12]=o*E+s*U+l*ne+u*le,a[1]=c*w+h*R+f*F+d*H,a[5]=c*C+h*I+f*z+d*j,a[9]=c*P+h*O+f*X+d*$,a[13]=c*E+h*U+f*ne+d*le,a[2]=p*w+y*R+g*F+v*H,a[6]=p*C+y*I+g*z+v*j,a[10]=p*P+y*O+g*X+v*$,a[14]=p*E+y*U+g*ne+v*le,a[3]=x*w+S*R+A*F+T*H,a[7]=x*C+S*I+A*z+T*j,a[11]=x*P+S*O+A*X+T*$,a[15]=x*E+S*U+A*ne+T*le,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[4],i=e[8],a=e[12],o=e[1],s=e[5],l=e[9],u=e[13],c=e[2],h=e[6],f=e[10],d=e[14],p=e[3],y=e[7],g=e[11],v=e[15];return p*(+a*l*h-i*u*h-a*s*f+r*u*f+i*s*d-r*l*d)+y*(+t*l*d-t*u*f+a*o*f-i*o*d+i*u*c-a*l*c)+g*(+t*u*h-t*s*d-a*o*h+r*o*d+a*s*c-r*u*c)+v*(-i*s*c-t*l*h+t*s*f+i*o*h-r*o*f+r*l*c)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,r){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=r),this}invert(){const e=this.elements,t=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],y=e[13],g=e[14],v=e[15],x=h*g*u-y*f*u+y*l*d-s*g*d-h*l*v+s*f*v,S=p*f*u-c*g*u-p*l*d+o*g*d+c*l*v-o*f*v,A=c*y*u-p*h*u+p*s*d-o*y*d-c*s*v+o*h*v,T=p*h*l-c*y*l-p*s*f+o*y*f+c*s*g-o*h*g,w=t*x+r*S+i*A+a*T;if(w===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const C=1/w;return e[0]=x*C,e[1]=(y*f*a-h*g*a-y*i*d+r*g*d+h*i*v-r*f*v)*C,e[2]=(s*g*a-y*l*a+y*i*u-r*g*u-s*i*v+r*l*v)*C,e[3]=(h*l*a-s*f*a-h*i*u+r*f*u+s*i*d-r*l*d)*C,e[4]=S*C,e[5]=(c*g*a-p*f*a+p*i*d-t*g*d-c*i*v+t*f*v)*C,e[6]=(p*l*a-o*g*a-p*i*u+t*g*u+o*i*v-t*l*v)*C,e[7]=(o*f*a-c*l*a+c*i*u-t*f*u-o*i*d+t*l*d)*C,e[8]=A*C,e[9]=(p*h*a-c*y*a-p*r*d+t*y*d+c*r*v-t*h*v)*C,e[10]=(o*y*a-p*s*a+p*r*u-t*y*u-o*r*v+t*s*v)*C,e[11]=(c*s*a-o*h*a-c*r*u+t*h*u+o*r*d-t*s*d)*C,e[12]=T*C,e[13]=(c*y*i-p*h*i+p*r*f-t*y*f-c*r*g+t*h*g)*C,e[14]=(p*s*i-o*y*i-p*r*l+t*y*l+o*r*g-t*s*g)*C,e[15]=(o*h*i-c*s*i+c*r*l-t*h*l-o*r*f+t*s*f)*C,this}scale(e){const t=this.elements,r=e.x,i=e.y,a=e.z;return t[0]*=r,t[4]*=i,t[8]*=a,t[1]*=r,t[5]*=i,t[9]*=a,t[2]*=r,t[6]*=i,t[10]*=a,t[3]*=r,t[7]*=i,t[11]*=a,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,r,i))}makeTranslation(e,t,r){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,r,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,t,-r,0,0,r,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,0,r,0,0,1,0,0,-r,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,0,r,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const r=Math.cos(t),i=Math.sin(t),a=1-r,o=e.x,s=e.y,l=e.z,u=a*o,c=a*s;return this.set(u*o+r,u*s-i*l,u*l+i*s,0,u*s+i*l,c*s+r,c*l-i*o,0,u*l-i*s,c*l+i*o,a*l*l+r,0,0,0,0,1),this}makeScale(e,t,r){return this.set(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,t,r,i,a,o){return this.set(1,r,a,0,e,1,o,0,t,i,1,0,0,0,0,1),this}compose(e,t,r){const i=this.elements,a=t._x,o=t._y,s=t._z,l=t._w,u=a+a,c=o+o,h=s+s,f=a*u,d=a*c,p=a*h,y=o*c,g=o*h,v=s*h,x=l*u,S=l*c,A=l*h,T=r.x,w=r.y,C=r.z;return i[0]=(1-(y+v))*T,i[1]=(d+A)*T,i[2]=(p-S)*T,i[3]=0,i[4]=(d-A)*w,i[5]=(1-(f+v))*w,i[6]=(g+x)*w,i[7]=0,i[8]=(p+S)*C,i[9]=(g-x)*C,i[10]=(1-(f+y))*C,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,r){const i=this.elements;let a=vh.set(i[0],i[1],i[2]).length();const o=vh.set(i[4],i[5],i[6]).length(),s=vh.set(i[8],i[9],i[10]).length();this.determinant()<0&&(a=-a),e.x=i[12],e.y=i[13],e.z=i[14],Za.copy(this);const u=1/a,c=1/o,h=1/s;return Za.elements[0]*=u,Za.elements[1]*=u,Za.elements[2]*=u,Za.elements[4]*=c,Za.elements[5]*=c,Za.elements[6]*=c,Za.elements[8]*=h,Za.elements[9]*=h,Za.elements[10]*=h,t.setFromRotationMatrix(Za),r.x=a,r.y=o,r.z=s,this}makePerspective(e,t,r,i,a,o,s=ao){const l=this.elements,u=2*a/(t-e),c=2*a/(r-i),h=(t+e)/(t-e),f=(r+i)/(r-i);let d,p;if(s===ao)d=-(o+a)/(o-a),p=-2*o*a/(o-a);else if(s===Cf)d=-o/(o-a),p=-o*a/(o-a);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+s);return l[0]=u,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=c,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=d,l[14]=p,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,r,i,a,o,s=ao){const l=this.elements,u=1/(t-e),c=1/(r-i),h=1/(o-a),f=(t+e)*u,d=(r+i)*c;let p,y;if(s===ao)p=(o+a)*h,y=-2*h;else if(s===Cf)p=a*h,y=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+s);return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*c,l[9]=0,l[13]=-d,l[2]=0,l[6]=0,l[10]=y,l[14]=-p,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,r=e.elements;for(let i=0;i<16;i++)if(t[i]!==r[i])return!1;return!0}fromArray(e,t=0){for(let r=0;r<16;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e[t+9]=r[9],e[t+10]=r[10],e[t+11]=r[11],e[t+12]=r[12],e[t+13]=r[13],e[t+14]=r[14],e[t+15]=r[15],e}}const vh=new J,Za=new Dt,$8=new J(0,0,0),e9=new J(1,1,1),al=new J,hm=new J,ji=new J,aP=new Dt,oP=new Lr;class Uv{constructor(e=0,t=0,r=0,i=Uv.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,r,i=this._order){return this._x=e,this._y=t,this._z=r,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,r=!0){const i=e.elements,a=i[0],o=i[4],s=i[8],l=i[1],u=i[5],c=i[9],h=i[2],f=i[6],d=i[10];switch(t){case"XYZ":this._y=Math.asin(or(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,d),this._z=Math.atan2(-o,a)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-or(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(s,d),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,a),this._z=0);break;case"ZXY":this._x=Math.asin(or(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-h,d),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(l,a));break;case"ZYX":this._y=Math.asin(-or(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(f,d),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-o,u));break;case"YZX":this._z=Math.asin(or(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-c,u),this._y=Math.atan2(-h,a)):(this._x=0,this._y=Math.atan2(s,d));break;case"XZY":this._z=Math.asin(-or(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(s,a)):(this._x=Math.atan2(-c,d),this._y=0);break;default:}return this._order=t,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,r){return aP.makeRotationFromQuaternion(e),this.setFromRotationMatrix(aP,t,r)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return oP.setFromEuler(this),this.setFromQuaternion(oP,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Uv.DEFAULT_ORDER="XYZ";class Ac{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let r=0;r0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(s=>({boxInitialized:s.boxInitialized,boxMin:s.box.min.toArray(),boxMax:s.box.max.toArray(),sphereInitialized:s.sphereInitialized,sphereRadius:s.sphere.radius,sphereCenter:s.sphere.center.toArray()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function a(s,l){return s[l.uuid]===void 0&&(s[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=a(e.geometries,this.geometry);const s=this.geometry.parameters;if(s!==void 0&&s.shapes!==void 0){const l=s.shapes;if(Array.isArray(l))for(let u=0,c=l.length;u0){i.children=[];for(let s=0;s0){i.animations=[];for(let s=0;s0&&(r.geometries=s),l.length>0&&(r.materials=l),u.length>0&&(r.textures=u),c.length>0&&(r.images=c),h.length>0&&(r.shapes=h),f.length>0&&(r.skeletons=f),d.length>0&&(r.animations=d),p.length>0&&(r.nodes=p)}return r.object=i,r;function o(s){const l=[];for(const u in s){const c=s[u];delete c.metadata,l.push(c)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let r=0;r0?i.multiplyScalar(1/Math.sqrt(a)):i.set(0,0,0)}static getBarycoord(e,t,r,i,a){ja.subVectors(i,t),ms.subVectors(r,t),h1.subVectors(e,t);const o=ja.dot(ja),s=ja.dot(ms),l=ja.dot(h1),u=ms.dot(ms),c=ms.dot(h1),h=o*u-s*s;if(h===0)return a.set(0,0,0),null;const f=1/h,d=(u*l-s*c)*f,p=(o*c-s*l)*f;return a.set(1-d-p,p,d)}static containsPoint(e,t,r,i){return this.getBarycoord(e,t,r,i,ys)===null?!1:ys.x>=0&&ys.y>=0&&ys.x+ys.y<=1}static getUV(e,t,r,i,a,o,s,l){return dm===!1&&(dm=!0),this.getInterpolation(e,t,r,i,a,o,s,l)}static getInterpolation(e,t,r,i,a,o,s,l){return this.getBarycoord(e,t,r,i,ys)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(a,ys.x),l.addScaledVector(o,ys.y),l.addScaledVector(s,ys.z),l)}static isFrontFacing(e,t,r,i){return ja.subVectors(r,t),ms.subVectors(e,t),ja.cross(ms).dot(i)<0}set(e,t,r){return this.a.copy(e),this.b.copy(t),this.c.copy(r),this}setFromPointsAndIndices(e,t,r,i){return this.a.copy(e[t]),this.b.copy(e[r]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,r,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,r),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return ja.subVectors(this.c,this.b),ms.subVectors(this.a,this.b),ja.cross(ms).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return qu.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return qu.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,r,i,a){return dm===!1&&(dm=!0),qu.getInterpolation(e,this.a,this.b,this.c,t,r,i,a)}getInterpolation(e,t,r,i,a){return qu.getInterpolation(e,this.a,this.b,this.c,t,r,i,a)}containsPoint(e){return qu.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return qu.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const r=this.a,i=this.b,a=this.c;let o,s;mh.subVectors(i,r),yh.subVectors(a,r),f1.subVectors(e,r);const l=mh.dot(f1),u=yh.dot(f1);if(l<=0&&u<=0)return t.copy(r);d1.subVectors(e,i);const c=mh.dot(d1),h=yh.dot(d1);if(c>=0&&h<=c)return t.copy(i);const f=l*h-c*u;if(f<=0&&l>=0&&c<=0)return o=l/(l-c),t.copy(r).addScaledVector(mh,o);p1.subVectors(e,a);const d=mh.dot(p1),p=yh.dot(p1);if(p>=0&&d<=p)return t.copy(a);const y=d*u-l*p;if(y<=0&&u>=0&&p<=0)return s=u/(u-p),t.copy(r).addScaledVector(yh,s);const g=c*p-d*h;if(g<=0&&h-c>=0&&d-p>=0)return hP.subVectors(a,i),s=(h-c)/(h-c+(d-p)),t.copy(i).addScaledVector(hP,s);const v=1/(g+y+f);return o=y*v,s=f*v,t.copy(r).addScaledVector(mh,o).addScaledVector(yh,s)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}};const Y3={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},ol={h:0,s:0,l:0},pm={h:0,s:0,l:0};function v1(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class $e{constructor(e,t,r){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,r)}set(e,t,r){if(t===void 0&&r===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,t,r);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=wr){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Pn.toWorkingColorSpace(this,t),this}setRGB(e,t,r,i=Pn.workingColorSpace){return this.r=e,this.g=t,this.b=r,Pn.toWorkingColorSpace(this,i),this}setHSL(e,t,r,i=Pn.workingColorSpace){if(e=wT(e,1),t=or(t,0,1),r=or(r,0,1),t===0)this.r=this.g=this.b=r;else{const a=r<=.5?r*(1+t):r+t-r*t,o=2*r-a;this.r=v1(o,a,e+1/3),this.g=v1(o,a,e),this.b=v1(o,a,e-1/3)}return Pn.toWorkingColorSpace(this,i),this}setStyle(e,t=wr){function r(a){a!==void 0&&parseFloat(a)<1}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let a;const o=i[1],s=i[2];switch(o){case"rgb":case"rgba":if(a=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return r(a[4]),this.setRGB(Math.min(255,parseInt(a[1],10))/255,Math.min(255,parseInt(a[2],10))/255,Math.min(255,parseInt(a[3],10))/255,t);if(a=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return r(a[4]),this.setRGB(Math.min(100,parseInt(a[1],10))/100,Math.min(100,parseInt(a[2],10))/100,Math.min(100,parseInt(a[3],10))/100,t);break;case"hsl":case"hsla":if(a=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return r(a[4]),this.setHSL(parseFloat(a[1])/360,parseFloat(a[2])/100,parseFloat(a[3])/100,t);break;default:}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const a=i[1],o=a.length;if(o===3)return this.setRGB(parseInt(a.charAt(0),16)/15,parseInt(a.charAt(1),16)/15,parseInt(a.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(a,16),t)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=wr){const r=Y3[e.toLowerCase()];return r!==void 0&&this.setHex(r,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=vf(e.r),this.g=vf(e.g),this.b=vf(e.b),this}copyLinearToSRGB(e){return this.r=r1(e.r),this.g=r1(e.g),this.b=r1(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=wr){return Pn.fromWorkingColorSpace(jr.copy(this),e),Math.round(or(jr.r*255,0,255))*65536+Math.round(or(jr.g*255,0,255))*256+Math.round(or(jr.b*255,0,255))}getHexString(e=wr){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Pn.workingColorSpace){Pn.fromWorkingColorSpace(jr.copy(this),t);const r=jr.r,i=jr.g,a=jr.b,o=Math.max(r,i,a),s=Math.min(r,i,a);let l,u;const c=(s+o)/2;if(s===o)l=0,u=0;else{const h=o-s;switch(u=c<=.5?h/(o+s):h/(2-o-s),o){case r:l=(i-a)/h+(i0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const r=e[t];if(r===void 0)continue;const i=this[t];i!==void 0&&(i&&i.isColor?i.set(r):i&&i.isVector3&&r&&r.isVector3?i.copy(r):this[t]=r)}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const r={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.color&&this.color.isColor&&(r.color=this.color.getHex()),this.roughness!==void 0&&(r.roughness=this.roughness),this.metalness!==void 0&&(r.metalness=this.metalness),this.sheen!==void 0&&(r.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(r.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(r.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(r.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(r.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(r.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(r.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(r.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(r.shininess=this.shininess),this.clearcoat!==void 0&&(r.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(r.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(r.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(r.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(r.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,r.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(r.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(r.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(r.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(r.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(r.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(r.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(r.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(r.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(r.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(r.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(r.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(r.lightMap=this.lightMap.toJSON(e).uuid,r.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(r.aoMap=this.aoMap.toJSON(e).uuid,r.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(r.bumpMap=this.bumpMap.toJSON(e).uuid,r.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(r.normalMap=this.normalMap.toJSON(e).uuid,r.normalMapType=this.normalMapType,r.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(r.displacementMap=this.displacementMap.toJSON(e).uuid,r.displacementScale=this.displacementScale,r.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(r.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(r.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(r.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(r.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(r.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(r.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(r.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(r.combine=this.combine)),this.envMapIntensity!==void 0&&(r.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(r.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(r.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(r.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(r.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(r.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(r.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(r.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(r.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(r.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(r.size=this.size),this.shadowSide!==null&&(r.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(r.sizeAttenuation=this.sizeAttenuation),this.blending!==xc&&(r.blending=this.blending),this.side!==jo&&(r.side=this.side),this.vertexColors===!0&&(r.vertexColors=!0),this.opacity<1&&(r.opacity=this.opacity),this.transparent===!0&&(r.transparent=!0),this.blendSrc!==Ey&&(r.blendSrc=this.blendSrc),this.blendDst!==Ry&&(r.blendDst=this.blendDst),this.blendEquation!==Ml&&(r.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(r.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(r.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(r.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(r.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(r.blendAlpha=this.blendAlpha),this.depthFunc!==Zp&&(r.depthFunc=this.depthFunc),this.depthTest===!1&&(r.depthTest=this.depthTest),this.depthWrite===!1&&(r.depthWrite=this.depthWrite),this.colorWrite===!1&&(r.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(r.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==Mw&&(r.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(r.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(r.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Ku&&(r.stencilFail=this.stencilFail),this.stencilZFail!==Ku&&(r.stencilZFail=this.stencilZFail),this.stencilZPass!==Ku&&(r.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(r.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(r.rotation=this.rotation),this.polygonOffset===!0&&(r.polygonOffset=!0),this.polygonOffsetFactor!==0&&(r.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(r.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(r.linewidth=this.linewidth),this.dashSize!==void 0&&(r.dashSize=this.dashSize),this.gapSize!==void 0&&(r.gapSize=this.gapSize),this.scale!==void 0&&(r.scale=this.scale),this.dithering===!0&&(r.dithering=!0),this.alphaTest>0&&(r.alphaTest=this.alphaTest),this.alphaHash===!0&&(r.alphaHash=!0),this.alphaToCoverage===!0&&(r.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(r.premultipliedAlpha=!0),this.forceSinglePass===!0&&(r.forceSinglePass=!0),this.wireframe===!0&&(r.wireframe=!0),this.wireframeLinewidth>1&&(r.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(r.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(r.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(r.flatShading=!0),this.visible===!1&&(r.visible=!1),this.toneMapped===!1&&(r.toneMapped=!1),this.fog===!1&&(r.fog=!1),Object.keys(this.userData).length>0&&(r.userData=this.userData);function i(a){const o=[];for(const s in a){const l=a[s];delete l.metadata,o.push(l)}return o}if(t){const a=i(e.textures),o=i(e.images);a.length>0&&(r.textures=a),o.length>0&&(r.images=o)}return r}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let r=null;if(t!==null){const i=t.length;r=new Array(i);for(let a=0;a!==i;++a)r[a]=t[a].clone()}return this.clippingPlanes=r,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class ea extends xr{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new $e(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Fv,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const Ts=s9();function s9(){const n=new ArrayBuffer(4),e=new Float32Array(n),t=new Uint32Array(n),r=new Uint32Array(512),i=new Uint32Array(512);for(let l=0;l<256;++l){const u=l-127;u<-27?(r[l]=0,r[l|256]=32768,i[l]=24,i[l|256]=24):u<-14?(r[l]=1024>>-u-14,r[l|256]=1024>>-u-14|32768,i[l]=-u-1,i[l|256]=-u-1):u<=15?(r[l]=u+15<<10,r[l|256]=u+15<<10|32768,i[l]=13,i[l|256]=13):u<128?(r[l]=31744,r[l|256]=64512,i[l]=24,i[l|256]=24):(r[l]=31744,r[l|256]=64512,i[l]=13,i[l|256]=13)}const a=new Uint32Array(2048),o=new Uint32Array(64),s=new Uint32Array(64);for(let l=1;l<1024;++l){let u=l<<13,c=0;for(;!(u&8388608);)u<<=1,c-=8388608;u&=-8388609,c+=947912704,a[l]=u|c}for(let l=1024;l<2048;++l)a[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)o[l]=l<<23;o[31]=1199570944,o[32]=2147483648;for(let l=33;l<63;++l)o[l]=2147483648+(l-32<<23);o[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(s[l]=1024);return{floatView:e,uint32View:t,baseTable:r,shiftTable:i,mantissaTable:a,exponentTable:o,offsetTable:s}}function ki(n){Math.abs(n)>65504,n=or(n,-65504,65504),Ts.floatView[0]=n;const e=Ts.uint32View[0],t=e>>23&511;return Ts.baseTable[t]+((e&8388607)>>Ts.shiftTable[t])}function yp(n){const e=n>>10;return Ts.uint32View[0]=Ts.mantissaTable[Ts.offsetTable[e]+(n&1023)]+Ts.exponentTable[e],Ts.floatView[0]}const cc={toHalfFloat:ki,fromHalfFloat:yp},yr=new J,vm=new Re;class yn{constructor(e,t,r=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=r,this.usage=tv,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Gr,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,r){e*=this.itemSize,r*=t.itemSize;for(let i=0,a=this.itemSize;i0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const u in l)l[u]!==void 0&&(e[u]=l[u]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const r=this.attributes;for(const l in r){const u=r[l];e.data.attributes[l]=u.toJSON(e.data)}const i={};let a=!1;for(const l in this.morphAttributes){const u=this.morphAttributes[l],c=[];for(let h=0,f=u.length;h0&&(i[l]=c,a=!0)}a&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const s=this.boundingSphere;return s!==null&&(e.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const r=e.index;r!==null&&this.setIndex(r.clone(t));const i=e.attributes;for(const u in i){const c=i[u];this.setAttribute(u,c.clone(t))}const a=e.morphAttributes;for(const u in a){const c=[],h=a[u];for(let f=0,d=h.length;f0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,o=i.length;aQS(e.far-e.near,2)))&&(fP.copy(a).invert(),gu.copy(e.ray).applyMatrix4(fP),!(r.boundingBox!==null&&gu.intersectsBox(r.boundingBox)===!1)&&this._computeIntersections(e,t,gu)))}_computeIntersections(e,t,r){let i;const a=this.geometry,o=this.material,s=a.index,l=a.attributes.position,u=a.attributes.uv,c=a.attributes.uv1,h=a.attributes.normal,f=a.groups,d=a.drawRange;if(s!==null)if(Array.isArray(o))for(let p=0,y=f.length;pt.far?null:{distance:u,point:Am.clone(),object:n}}function Mm(n,e,t,r,i,a,o,s,l,u){n.getVertexPosition(s,xh),n.getVertexPosition(l,Sh),n.getVertexPosition(u,Ah);const c=g9(n,e,t,r,xh,Sh,Ah,Sm);if(c){i&&(ym.fromBufferAttribute(i,s),_m.fromBufferAttribute(i,l),xm.fromBufferAttribute(i,u),c.uv=uc.getInterpolation(Sm,xh,Sh,Ah,ym,_m,xm,new Re)),a&&(ym.fromBufferAttribute(a,s),_m.fromBufferAttribute(a,l),xm.fromBufferAttribute(a,u),c.uv1=uc.getInterpolation(Sm,xh,Sh,Ah,ym,_m,xm,new Re),c.uv2=c.uv1),o&&(pP.fromBufferAttribute(o,s),vP.fromBufferAttribute(o,l),gP.fromBufferAttribute(o,u),c.normal=uc.getInterpolation(Sm,xh,Sh,Ah,pP,vP,gP,new J),c.normal.dot(r.direction)>0&&c.normal.multiplyScalar(-1));const h={a:s,b:l,c:u,normal:new J,materialIndex:0};uc.getNormal(xh,Sh,Ah,h.normal),c.face=h}return c}class Vc extends Yt{constructor(e=1,t=1,r=1,i=1,a=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:r,widthSegments:i,heightSegments:a,depthSegments:o};const s=this;i=Math.floor(i),a=Math.floor(a),o=Math.floor(o);const l=[],u=[],c=[],h=[];let f=0,d=0;p("z","y","x",-1,-1,r,t,e,o,a,0),p("z","y","x",1,-1,r,t,-e,o,a,1),p("x","z","y",1,1,e,r,t,i,o,2),p("x","z","y",1,-1,e,r,-t,i,o,3),p("x","y","z",1,-1,e,t,r,i,a,4),p("x","y","z",-1,-1,e,t,-r,i,a,5),this.setIndex(l),this.setAttribute("position",new yt(u,3)),this.setAttribute("normal",new yt(c,3)),this.setAttribute("uv",new yt(h,2));function p(y,g,v,x,S,A,T,w,C,P,E){const R=A/C,I=T/P,O=A/2,U=T/2,F=w/2,z=C+1,X=P+1;let ne=0,H=0;const j=new J;for(let $=0;$0?1:-1,c.push(j.x,j.y,j.z),h.push(ce/C),h.push(1-$/P),ne+=1}}for(let $=0;$0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const r={};for(const i in this.extensions)this.extensions[i]===!0&&(r[i]=!0);return Object.keys(r).length>0&&(t.extensions=r),t}}class rg extends yn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Bt,this.projectionMatrix=new Bt,this.projectionMatrixInverse=new Bt,this.coordinateSystem=oo}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class Hn extends rg{constructor(e=50,t=1,r=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=r,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Nf*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Ec*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Nf*2*Math.atan(Math.tan(Ec*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,r,i,a,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(Ec*.5*this.fov)/this.zoom,r=2*t,i=this.aspect*r,a=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,u=o.fullHeight;a+=o.offsetX*i/l,t-=o.offsetY*r/u,i*=o.width/l,r*=o.height/u}const s=this.filmOffset;s!==0&&(a+=e*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(a,a+i,t,t-r,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Dh=-90,Ih=1;class Hk extends yn{constructor(e,t,r){super(),this.type="CubeCamera",this.renderTarget=r,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new Hn(Dh,Ih,e,t);i.layers=this.layers,this.add(i);const a=new Hn(Dh,Ih,e,t);a.layers=this.layers,this.add(a);const o=new Hn(Dh,Ih,e,t);o.layers=this.layers,this.add(o);const s=new Hn(Dh,Ih,e,t);s.layers=this.layers,this.add(s);const l=new Hn(Dh,Ih,e,t);l.layers=this.layers,this.add(l);const u=new Hn(Dh,Ih,e,t);u.layers=this.layers,this.add(u)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[r,i,a,o,s,l]=t;for(const u of t)this.remove(u);if(e===oo)r.up.set(0,1,0),r.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),a.up.set(0,0,-1),a.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),s.up.set(0,1,0),s.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===Ff)r.up.set(0,-1,0),r.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),a.up.set(0,0,1),a.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),s.up.set(0,-1,0),s.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const u of t)this.add(u),u.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:r,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[a,o,s,l,u,c]=this.children,h=e.getRenderTarget(),f=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;const y=r.texture.generateMipmaps;r.texture.generateMipmaps=!1,e.setRenderTarget(r,0,i),e.render(t,a),e.setRenderTarget(r,1,i),e.render(t,o),e.setRenderTarget(r,2,i),e.render(t,s),e.setRenderTarget(r,3,i),e.render(t,l),e.setRenderTarget(r,4,i),e.render(t,u),r.texture.generateMipmaps=y,e.setRenderTarget(r,5,i),e.render(t,c),e.setRenderTarget(h,f,d),e.xr.enabled=p,r.texture.needsPMREMUpdate=!0}}class ig extends Wn{constructor(e,t,r,i,a,o,s,l,u,c){e=e!==void 0?e:[],t=t!==void 0?t:qo,super(e,t,r,i,a,o,s,l,u,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class iC extends oa{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const r={width:e,height:e,depth:1},i=[r,r,r,r,r,r];t.encoding!==void 0&&(Wp("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===Ul?Tr:ta),this.texture=new ig(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:On}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const r={uniforms:{tEquirect:{value:null}},vertexShader:` +}`;class oa extends xr{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=y9,this.fragmentShader=_9,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1,clipCullDistance:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Rf(e.uniforms),this.uniformsGroups=m9(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const i in this.uniforms){const o=this.uniforms[i].value;o&&o.isTexture?t.uniforms[i]={type:"t",value:o.toJSON(e).uuid}:o&&o.isColor?t.uniforms[i]={type:"c",value:o.getHex()}:o&&o.isVector2?t.uniforms[i]={type:"v2",value:o.toArray()}:o&&o.isVector3?t.uniforms[i]={type:"v3",value:o.toArray()}:o&&o.isVector4?t.uniforms[i]={type:"v4",value:o.toArray()}:o&&o.isMatrix3?t.uniforms[i]={type:"m3",value:o.toArray()}:o&&o.isMatrix4?t.uniforms[i]={type:"m4",value:o.toArray()}:t.uniforms[i]={value:o}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const r={};for(const i in this.extensions)this.extensions[i]===!0&&(r[i]=!0);return Object.keys(r).length>0&&(t.extensions=r),t}}class Gv extends mn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Dt,this.projectionMatrix=new Dt,this.projectionMatrixInverse=new Dt,this.coordinateSystem=ao}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class zn extends Gv{constructor(e=50,t=1,r=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=r,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Ef*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Sc*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Ef*2*Math.atan(Math.tan(Sc*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,r,i,a,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(Sc*.5*this.fov)/this.zoom,r=2*t,i=this.aspect*r,a=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,u=o.fullHeight;a+=o.offsetX*i/l,t-=o.offsetY*r/u,i*=o.width/l,r*=o.height/u}const s=this.filmOffset;s!==0&&(a+=e*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(a,a+i,t,t-r,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Mh=-90,wh=1;class j3 extends mn{constructor(e,t,r){super(),this.type="CubeCamera",this.renderTarget=r,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new zn(Mh,wh,e,t);i.layers=this.layers,this.add(i);const a=new zn(Mh,wh,e,t);a.layers=this.layers,this.add(a);const o=new zn(Mh,wh,e,t);o.layers=this.layers,this.add(o);const s=new zn(Mh,wh,e,t);s.layers=this.layers,this.add(s);const l=new zn(Mh,wh,e,t);l.layers=this.layers,this.add(l);const u=new zn(Mh,wh,e,t);u.layers=this.layers,this.add(u)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[r,i,a,o,s,l]=t;for(const u of t)this.remove(u);if(e===ao)r.up.set(0,1,0),r.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),a.up.set(0,0,-1),a.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),s.up.set(0,1,0),s.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===Cf)r.up.set(0,-1,0),r.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),a.up.set(0,0,1),a.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),s.up.set(0,-1,0),s.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const u of t)this.add(u),u.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:r,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[a,o,s,l,u,c]=this.children,h=e.getRenderTarget(),f=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;const y=r.texture.generateMipmaps;r.texture.generateMipmaps=!1,e.setRenderTarget(r,0,i),e.render(t,a),e.setRenderTarget(r,1,i),e.render(t,o),e.setRenderTarget(r,2,i),e.render(t,s),e.setRenderTarget(r,3,i),e.render(t,l),e.setRenderTarget(r,4,i),e.render(t,u),r.texture.generateMipmaps=y,e.setRenderTarget(r,5,i),e.render(t,c),e.setRenderTarget(h,f,d),e.xr.enabled=p,r.texture.needsPMREMUpdate=!0}}class zv extends Vn{constructor(e,t,r,i,a,o,s,l,u,c){e=e!==void 0?e:[],t=t!==void 0?t:Ko,super(e,t,r,i,a,o,s,l,u,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class RT extends aa{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const r={width:e,height:e,depth:1},i=[r,r,r,r,r,r];t.encoding!==void 0&&(Pp("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===Bl?wr:$i),this.texture=new zv(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:Bn}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const r={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; @@ -49,9 +41,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho gl_FragColor = texture2D( tEquirect, sampleUV ); } - `},i=new Kc(5,5,5),a=new sa({name:"CubemapFromEquirect",uniforms:kf(r.uniforms),vertexShader:r.vertexShader,fragmentShader:r.fragmentShader,side:Ci,blending:ks});a.uniforms.tEquirect.value=t;const o=new ur(i,a),s=t.minFilter;return t.minFilter===$o&&(t.minFilter=On),new Hk(1,10,this).update(e,o),t.minFilter=s,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,r,i){const a=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,r,i);e.setRenderTarget(a)}}const H1=new J,wX=new J,bX=new tn;class Es{constructor(e=new J(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,r,i){return this.normal.set(e,t,r),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,r){const i=H1.subVectors(r,t).cross(wX.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const r=e.delta(H1),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const a=-(e.start.dot(this.normal)+this.constant)/i;return a<0||a>1?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){const t=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return t<0&&r>0||r<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const r=t||bX.getNormalMatrix(e),i=this.coplanarPoint(H1).applyMatrix4(e),a=this.normal.applyMatrix3(r).normalize();return this.constant=-i.dot(a),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Au=new Vr,Wm=new J;class ag{constructor(e=new Es,t=new Es,r=new Es,i=new Es,a=new Es,o=new Es){this.planes=[e,t,r,i,a,o]}set(e,t,r,i,a,o){const s=this.planes;return s[0].copy(e),s[1].copy(t),s[2].copy(r),s[3].copy(i),s[4].copy(a),s[5].copy(o),this}copy(e){const t=this.planes;for(let r=0;r<6;r++)t[r].copy(e.planes[r]);return this}setFromProjectionMatrix(e,t=oo){const r=this.planes,i=e.elements,a=i[0],o=i[1],s=i[2],l=i[3],u=i[4],c=i[5],h=i[6],f=i[7],d=i[8],p=i[9],y=i[10],g=i[11],v=i[12],x=i[13],S=i[14],A=i[15];if(r[0].setComponents(l-a,f-u,g-d,A-v).normalize(),r[1].setComponents(l+a,f+u,g+d,A+v).normalize(),r[2].setComponents(l+o,f+c,g+p,A+x).normalize(),r[3].setComponents(l-o,f-c,g-p,A-x).normalize(),r[4].setComponents(l-s,f-h,g-y,A-S).normalize(),t===oo)r[5].setComponents(l+s,f+h,g+y,A+S).normalize();else if(t===Ff)r[5].setComponents(s,h,y,S).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Au.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Au.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Au)}intersectsSprite(e){return Au.center.set(0,0,0),Au.radius=.7071067811865476,Au.applyMatrix4(e.matrixWorld),this.intersectsSphere(Au)}intersectsSphere(e){const t=this.planes,r=e.center,i=-e.radius;for(let a=0;a<6;a++)if(t[a].distanceToPoint(r)0?e.max.x:e.min.x,Wm.y=i.normal.y>0?e.max.y:e.min.y,Wm.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(Wm)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let r=0;r<6;r++)if(t[r].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function Vk(){let n=null,e=!1,t=null,r=null;function i(a,o){t(a,o),r=n.requestAnimationFrame(i)}return{start:function(){e!==!0&&t!==null&&(r=n.requestAnimationFrame(i),e=!0)},stop:function(){n.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(a){t=a},setContext:function(a){n=a}}}function TX(n,e){const t=e.isWebGL2,r=new WeakMap;function i(u,c){const h=u.array,f=u.usage,d=h.byteLength,p=n.createBuffer();n.bindBuffer(c,p),n.bufferData(c,h,f),u.onUploadCallback();let y;if(h instanceof Float32Array)y=n.FLOAT;else if(h instanceof Uint16Array)if(u.isFloat16BufferAttribute)if(t)y=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else y=n.UNSIGNED_SHORT;else if(h instanceof Int16Array)y=n.SHORT;else if(h instanceof Uint32Array)y=n.UNSIGNED_INT;else if(h instanceof Int32Array)y=n.INT;else if(h instanceof Int8Array)y=n.BYTE;else if(h instanceof Uint8Array)y=n.UNSIGNED_BYTE;else if(h instanceof Uint8ClampedArray)y=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+h);return{buffer:p,type:y,bytesPerElement:h.BYTES_PER_ELEMENT,version:u.version,size:d}}function a(u,c,h){const f=c.array,d=c._updateRange,p=c.updateRanges;if(n.bindBuffer(h,u),d.count===-1&&p.length===0&&n.bufferSubData(h,0,f),p.length!==0){for(let y=0,g=p.length;y1?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){const t=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return t<0&&r>0||r<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const r=t||S9.getNormalMatrix(e),i=this.coplanarPoint(y1).applyMatrix4(e),a=this.normal.applyMatrix3(r).normalize();return this.constant=-i.dot(a),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const mu=new zr,wm=new J;class Hv{constructor(e=new bs,t=new bs,r=new bs,i=new bs,a=new bs,o=new bs){this.planes=[e,t,r,i,a,o]}set(e,t,r,i,a,o){const s=this.planes;return s[0].copy(e),s[1].copy(t),s[2].copy(r),s[3].copy(i),s[4].copy(a),s[5].copy(o),this}copy(e){const t=this.planes;for(let r=0;r<6;r++)t[r].copy(e.planes[r]);return this}setFromProjectionMatrix(e,t=ao){const r=this.planes,i=e.elements,a=i[0],o=i[1],s=i[2],l=i[3],u=i[4],c=i[5],h=i[6],f=i[7],d=i[8],p=i[9],y=i[10],g=i[11],v=i[12],x=i[13],S=i[14],A=i[15];if(r[0].setComponents(l-a,f-u,g-d,A-v).normalize(),r[1].setComponents(l+a,f+u,g+d,A+v).normalize(),r[2].setComponents(l+o,f+c,g+p,A+x).normalize(),r[3].setComponents(l-o,f-c,g-p,A-x).normalize(),r[4].setComponents(l-s,f-h,g-y,A-S).normalize(),t===ao)r[5].setComponents(l+s,f+h,g+y,A+S).normalize();else if(t===Cf)r[5].setComponents(s,h,y,S).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),mu.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),mu.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(mu)}intersectsSprite(e){return mu.center.set(0,0,0),mu.radius=.7071067811865476,mu.applyMatrix4(e.matrixWorld),this.intersectsSphere(mu)}intersectsSphere(e){const t=this.planes,r=e.center,i=-e.radius;for(let a=0;a<6;a++)if(t[a].distanceToPoint(r)0?e.max.x:e.min.x,wm.y=i.normal.y>0?e.max.y:e.min.y,wm.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(wm)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let r=0;r<6;r++)if(t[r].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function K3(){let n=null,e=!1,t=null,r=null;function i(a,o){t(a,o),r=n.requestAnimationFrame(i)}return{start:function(){e!==!0&&t!==null&&(r=n.requestAnimationFrame(i),e=!0)},stop:function(){n.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(a){t=a},setContext:function(a){n=a}}}function A9(n,e){const t=e.isWebGL2,r=new WeakMap;function i(u,c){const h=u.array,f=u.usage,d=h.byteLength,p=n.createBuffer();n.bindBuffer(c,p),n.bufferData(c,h,f),u.onUploadCallback();let y;if(h instanceof Float32Array)y=n.FLOAT;else if(h instanceof Uint16Array)if(u.isFloat16BufferAttribute)if(t)y=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else y=n.UNSIGNED_SHORT;else if(h instanceof Int16Array)y=n.SHORT;else if(h instanceof Uint32Array)y=n.UNSIGNED_INT;else if(h instanceof Int32Array)y=n.INT;else if(h instanceof Int8Array)y=n.BYTE;else if(h instanceof Uint8Array)y=n.UNSIGNED_BYTE;else if(h instanceof Uint8ClampedArray)y=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+h);return{buffer:p,type:y,bytesPerElement:h.BYTES_PER_ELEMENT,version:u.version,size:d}}function a(u,c,h){const f=c.array,d=c._updateRange,p=c.updateRanges;if(n.bindBuffer(h,u),d.count===-1&&p.length===0&&n.bufferSubData(h,0,f),p.length!==0){for(let y=0,g=p.length;y 0 +#endif`,k9=`#if NUM_CLIPPING_PLANES > 0 vec4 plane; #pragma unroll_loop_start for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { @@ -248,26 +240,26 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve #pragma unroll_loop_end if ( clipped ) discard; #endif -#endif`,VX=`#if NUM_CLIPPING_PLANES > 0 +#endif`,U9=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; -#endif`,WX=`#if NUM_CLIPPING_PLANES > 0 +#endif`,G9=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; -#endif`,XX=`#if NUM_CLIPPING_PLANES > 0 +#endif`,z9=`#if NUM_CLIPPING_PLANES > 0 vClipPosition = - mvPosition.xyz; -#endif`,YX=`#if defined( USE_COLOR_ALPHA ) +#endif`,H9=`#if defined( USE_COLOR_ALPHA ) diffuseColor *= vColor; #elif defined( USE_COLOR ) diffuseColor.rgb *= vColor; -#endif`,jX=`#if defined( USE_COLOR_ALPHA ) +#endif`,V9=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) varying vec3 vColor; -#endif`,JX=`#if defined( USE_COLOR_ALPHA ) +#endif`,W9=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) varying vec3 vColor; -#endif`,ZX=`#if defined( USE_COLOR_ALPHA ) +#endif`,X9=`#if defined( USE_COLOR_ALPHA ) vColor = vec4( 1.0 ); #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) vColor = vec3( 1.0 ); @@ -277,7 +269,7 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve #endif #ifdef USE_INSTANCING_COLOR vColor.xyz *= instanceColor.xyz; -#endif`,KX=`#define PI 3.141592653589793 +#endif`,Y9=`#define PI 3.141592653589793 #define PI2 6.283185307179586 #define PI_HALF 1.5707963267948966 #define RECIPROCAL_PI 0.3183098861837907 @@ -355,7 +347,7 @@ vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} // validated`,qX=`#ifdef ENVMAP_TYPE_CUBE_UV +} // validated`,J9=`#ifdef ENVMAP_TYPE_CUBE_UV #define cubeUV_minMipLevel 4.0 #define cubeUV_minTileSize 16.0 float getFace( vec3 direction ) { @@ -448,7 +440,7 @@ float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { return vec4( mix( color0, color1, mipF ), 1.0 ); } } -#endif`,$X=`vec3 transformedNormal = objectNormal; +#endif`,Z9=`vec3 transformedNormal = objectNormal; #ifdef USE_TANGENT vec3 transformedTangent = objectTangent; #endif @@ -477,18 +469,18 @@ transformedNormal = normalMatrix * transformedNormal; #ifdef FLIP_SIDED transformedTangent = - transformedTangent; #endif -#endif`,QX=`#ifdef USE_DISPLACEMENTMAP +#endif`,j9=`#ifdef USE_DISPLACEMENTMAP uniform sampler2D displacementMap; uniform float displacementScale; uniform float displacementBias; -#endif`,e7=`#ifdef USE_DISPLACEMENTMAP +#endif`,K9=`#ifdef USE_DISPLACEMENTMAP transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); -#endif`,t7=`#ifdef USE_EMISSIVEMAP +#endif`,q9=`#ifdef USE_EMISSIVEMAP vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); totalEmissiveRadiance *= emissiveColor.rgb; -#endif`,n7=`#ifdef USE_EMISSIVEMAP +#endif`,Q9=`#ifdef USE_EMISSIVEMAP uniform sampler2D emissiveMap; -#endif`,r7="gl_FragColor = linearToOutputTexel( gl_FragColor );",i7=` +#endif`,$9="gl_FragColor = linearToOutputTexel( gl_FragColor );",e6=` const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3( vec3( 0.8224621, 0.177538, 0.0 ), vec3( 0.0331941, 0.9668058, 0.0 ), @@ -516,7 +508,7 @@ vec4 LinearToLinear( in vec4 value ) { } vec4 LinearTosRGB( in vec4 value ) { return sRGBTransferOETF( value ); -}`,a7=`#ifdef USE_ENVMAP +}`,t6=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vec3 cameraToFrag; if ( isOrthographic ) { @@ -545,7 +537,7 @@ vec4 LinearTosRGB( in vec4 value ) { #elif defined( ENVMAP_BLENDING_ADD ) outgoingLight += envColor.xyz * specularStrength * reflectivity; #endif -#endif`,o7=`#ifdef USE_ENVMAP +#endif`,n6=`#ifdef USE_ENVMAP uniform float envMapIntensity; uniform float flipEnvMap; #ifdef ENVMAP_TYPE_CUBE @@ -554,7 +546,7 @@ vec4 LinearTosRGB( in vec4 value ) { uniform sampler2D envMap; #endif -#endif`,s7=`#ifdef USE_ENVMAP +#endif`,r6=`#ifdef USE_ENVMAP uniform float reflectivity; #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS @@ -565,7 +557,7 @@ vec4 LinearTosRGB( in vec4 value ) { #else varying vec3 vReflect; #endif -#endif`,l7=`#ifdef USE_ENVMAP +#endif`,i6=`#ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS #endif @@ -576,7 +568,7 @@ vec4 LinearTosRGB( in vec4 value ) { varying vec3 vReflect; uniform float refractionRatio; #endif -#endif`,u7=`#ifdef USE_ENVMAP +#endif`,a6=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vWorldPosition = worldPosition.xyz; #else @@ -593,18 +585,18 @@ vec4 LinearTosRGB( in vec4 value ) { vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); #endif #endif -#endif`,c7=`#ifdef USE_FOG +#endif`,o6=`#ifdef USE_FOG vFogDepth = - mvPosition.z; -#endif`,h7=`#ifdef USE_FOG +#endif`,s6=`#ifdef USE_FOG varying float vFogDepth; -#endif`,f7=`#ifdef USE_FOG +#endif`,l6=`#ifdef USE_FOG #ifdef FOG_EXP2 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); #else float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); #endif gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); -#endif`,d7=`#ifdef USE_FOG +#endif`,u6=`#ifdef USE_FOG uniform vec3 fogColor; varying float vFogDepth; #ifdef FOG_EXP2 @@ -613,7 +605,7 @@ vec4 LinearTosRGB( in vec4 value ) { uniform float fogNear; uniform float fogFar; #endif -#endif`,p7=`#ifdef USE_GRADIENTMAP +#endif`,c6=`#ifdef USE_GRADIENTMAP uniform sampler2D gradientMap; #endif vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { @@ -625,16 +617,16 @@ vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { vec2 fw = fwidth( coord ) * 0.5; return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); #endif -}`,v7=`#ifdef USE_LIGHTMAP +}`,h6=`#ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; reflectedLight.indirectDiffuse += lightMapIrradiance; -#endif`,g7=`#ifdef USE_LIGHTMAP +#endif`,f6=`#ifdef USE_LIGHTMAP uniform sampler2D lightMap; uniform float lightMapIntensity; -#endif`,m7=`LambertMaterial material; +#endif`,d6=`LambertMaterial material; material.diffuseColor = diffuseColor.rgb; -material.specularStrength = specularStrength;`,y7=`varying vec3 vViewPosition; +material.specularStrength = specularStrength;`,p6=`varying vec3 vViewPosition; struct LambertMaterial { vec3 diffuseColor; float specularStrength; @@ -648,7 +640,7 @@ void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometr reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Lambert -#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,_7=`uniform bool receiveShadow; +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,v6=`uniform bool receiveShadow; uniform vec3 ambientLightColor; #if defined( USE_LIGHT_PROBES ) uniform vec3 lightProbe[ 9 ]; @@ -771,7 +763,7 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); return irradiance; } -#endif`,x7=`#ifdef USE_ENVMAP +#endif`,g6=`#ifdef USE_ENVMAP vec3 getIBLIrradiance( const in vec3 normal ) { #ifdef ENVMAP_TYPE_CUBE_UV vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); @@ -804,8 +796,8 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi #endif } #endif -#endif`,S7=`ToonMaterial material; -material.diffuseColor = diffuseColor.rgb;`,A7=`varying vec3 vViewPosition; +#endif`,m6=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,y6=`varying vec3 vViewPosition; struct ToonMaterial { vec3 diffuseColor; }; @@ -817,11 +809,11 @@ void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPo reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Toon -#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,M7=`BlinnPhongMaterial material; +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,_6=`BlinnPhongMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularColor = specular; material.specularShininess = shininess; -material.specularStrength = specularStrength;`,w7=`varying vec3 vViewPosition; +material.specularStrength = specularStrength;`,x6=`varying vec3 vViewPosition; struct BlinnPhongMaterial { vec3 diffuseColor; vec3 specularColor; @@ -838,7 +830,7 @@ void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geom reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_BlinnPhong -#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,b7=`PhysicalMaterial material; +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,S6=`PhysicalMaterial material; material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); @@ -921,7 +913,7 @@ material.roughness = min( material.roughness, 1.0 ); material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; -#endif`,T7=`struct PhysicalMaterial { +#endif`,A6=`struct PhysicalMaterial { vec3 diffuseColor; float roughness; vec3 specularColor; @@ -1221,7 +1213,7 @@ void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradia #define RE_IndirectSpecular RE_IndirectSpecular_Physical float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); -}`,C7=` +}`,M6=` vec3 geometryPosition = - vViewPosition; vec3 geometryNormal = normal; vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); @@ -1336,7 +1328,7 @@ IncidentLight directLight; #if defined( RE_IndirectSpecular ) vec3 radiance = vec3( 0.0 ); vec3 clearcoatRadiance = vec3( 0.0 ); -#endif`,E7=`#if defined( RE_IndirectDiffuse ) +#endif`,w6=`#if defined( RE_IndirectDiffuse ) #ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; @@ -1355,25 +1347,25 @@ IncidentLight directLight; #ifdef USE_CLEARCOAT clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); #endif -#endif`,R7=`#if defined( RE_IndirectDiffuse ) +#endif`,b6=`#if defined( RE_IndirectDiffuse ) RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); #endif #if defined( RE_IndirectSpecular ) RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif`,P7=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) +#endif`,T6=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; -#endif`,D7=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) +#endif`,C6=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) uniform float logDepthBufFC; varying float vFragDepth; varying float vIsPerspective; -#endif`,I7=`#ifdef USE_LOGDEPTHBUF +#endif`,E6=`#ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT varying float vFragDepth; varying float vIsPerspective; #else uniform float logDepthBufFC; #endif -#endif`,L7=`#ifdef USE_LOGDEPTHBUF +#endif`,R6=`#ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT vFragDepth = 1.0 + gl_Position.w; vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); @@ -1383,16 +1375,16 @@ IncidentLight directLight; gl_Position.z *= gl_Position.w; } #endif -#endif`,B7=`#ifdef USE_MAP +#endif`,P6=`#ifdef USE_MAP vec4 sampledDiffuseColor = texture2D( map, vMapUv ); #ifdef DECODE_VIDEO_TEXTURE sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); #endif diffuseColor *= sampledDiffuseColor; -#endif`,O7=`#ifdef USE_MAP +#endif`,D6=`#ifdef USE_MAP uniform sampler2D map; -#endif`,F7=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) +#endif`,I6=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) #if defined( USE_POINTS_UV ) vec2 uv = vUv; #else @@ -1404,7 +1396,7 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP diffuseColor.a *= texture2D( alphaMap, uv ).g; -#endif`,N7=`#if defined( USE_POINTS_UV ) +#endif`,L6=`#if defined( USE_POINTS_UV ) varying vec2 vUv; #else #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) @@ -1416,13 +1408,13 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP uniform sampler2D alphaMap; -#endif`,k7=`float metalnessFactor = metalness; +#endif`,B6=`float metalnessFactor = metalness; #ifdef USE_METALNESSMAP vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); metalnessFactor *= texelMetalness.b; -#endif`,U7=`#ifdef USE_METALNESSMAP +#endif`,O6=`#ifdef USE_METALNESSMAP uniform sampler2D metalnessMap; -#endif`,G7=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) +#endif`,N6=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) vColor *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { #if defined( USE_COLOR_ALPHA ) @@ -1431,7 +1423,7 @@ IncidentLight directLight; if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; #endif } -#endif`,z7=`#ifdef USE_MORPHNORMALS +#endif`,F6=`#ifdef USE_MORPHNORMALS objectNormal *= morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { @@ -1443,7 +1435,7 @@ IncidentLight directLight; objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; #endif -#endif`,H7=`#ifdef USE_MORPHTARGETS +#endif`,k6=`#ifdef USE_MORPHTARGETS uniform float morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; @@ -1463,7 +1455,7 @@ IncidentLight directLight; uniform float morphTargetInfluences[ 4 ]; #endif #endif -#endif`,V7=`#ifdef USE_MORPHTARGETS +#endif`,U6=`#ifdef USE_MORPHTARGETS transformed *= morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { @@ -1481,7 +1473,7 @@ IncidentLight directLight; transformed += morphTarget7 * morphTargetInfluences[ 7 ]; #endif #endif -#endif`,W7=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#endif`,G6=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; #ifdef FLAT_SHADED vec3 fdx = dFdx( vViewPosition ); vec3 fdy = dFdy( vViewPosition ); @@ -1522,7 +1514,7 @@ IncidentLight directLight; tbn2[1] *= faceDirection; #endif #endif -vec3 nonPerturbedNormal = normal;`,X7=`#ifdef USE_NORMALMAP_OBJECTSPACE +vec3 nonPerturbedNormal = normal;`,z6=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; #ifdef FLIP_SIDED normal = - normal; @@ -1537,25 +1529,25 @@ vec3 nonPerturbedNormal = normal;`,X7=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = normalize( tbn * mapN ); #elif defined( USE_BUMPMAP ) normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); -#endif`,Y7=`#ifndef FLAT_SHADED +#endif`,H6=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif -#endif`,j7=`#ifndef FLAT_SHADED +#endif`,V6=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif -#endif`,J7=`#ifndef FLAT_SHADED +#endif`,W6=`#ifndef FLAT_SHADED vNormal = normalize( transformedNormal ); #ifdef USE_TANGENT vTangent = normalize( transformedTangent ); vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); #endif -#endif`,Z7=`#ifdef USE_NORMALMAP +#endif`,X6=`#ifdef USE_NORMALMAP uniform sampler2D normalMap; uniform vec2 normalScale; #endif @@ -1577,13 +1569,13 @@ vec3 nonPerturbedNormal = normal;`,X7=`#ifdef USE_NORMALMAP_OBJECTSPACE float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); return mat3( T * scale, B * scale, N ); } -#endif`,K7=`#ifdef USE_CLEARCOAT +#endif`,Y6=`#ifdef USE_CLEARCOAT vec3 clearcoatNormal = nonPerturbedNormal; -#endif`,q7=`#ifdef USE_CLEARCOAT_NORMALMAP +#endif`,J6=`#ifdef USE_CLEARCOAT_NORMALMAP vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; clearcoatMapN.xy *= clearcoatNormalScale; clearcoatNormal = normalize( tbn2 * clearcoatMapN ); -#endif`,$7=`#ifdef USE_CLEARCOATMAP +#endif`,Z6=`#ifdef USE_CLEARCOATMAP uniform sampler2D clearcoatMap; #endif #ifdef USE_CLEARCOAT_NORMALMAP @@ -1592,18 +1584,18 @@ vec3 nonPerturbedNormal = normal;`,X7=`#ifdef USE_NORMALMAP_OBJECTSPACE #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP uniform sampler2D clearcoatRoughnessMap; -#endif`,Q7=`#ifdef USE_IRIDESCENCEMAP +#endif`,j6=`#ifdef USE_IRIDESCENCEMAP uniform sampler2D iridescenceMap; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP uniform sampler2D iridescenceThicknessMap; -#endif`,eY=`#ifdef OPAQUE +#endif`,K6=`#ifdef OPAQUE diffuseColor.a = 1.0; #endif #ifdef USE_TRANSMISSION diffuseColor.a *= material.transmissionAlpha; #endif -gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,tY=`vec3 packNormalToRGB( const in vec3 normal ) { +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,q6=`vec3 packNormalToRGB( const in vec3 normal ) { return normalize( normal ) * 0.5 + 0.5; } vec3 unpackRGBToNormal( const in vec3 rgb ) { @@ -1644,9 +1636,9 @@ float viewZToPerspectiveDepth( const in float viewZ, const in float near, const } float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { return ( near * far ) / ( ( far - near ) * depth - far ); -}`,nY=`#ifdef PREMULTIPLIED_ALPHA +}`,Q6=`#ifdef PREMULTIPLIED_ALPHA gl_FragColor.rgb *= gl_FragColor.a; -#endif`,rY=`vec4 mvPosition = vec4( transformed, 1.0 ); +#endif`,$6=`vec4 mvPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING mvPosition = batchingMatrix * mvPosition; #endif @@ -1654,22 +1646,22 @@ float perspectiveDepthToViewZ( const in float depth, const in float near, const mvPosition = instanceMatrix * mvPosition; #endif mvPosition = modelViewMatrix * mvPosition; -gl_Position = projectionMatrix * mvPosition;`,iY=`#ifdef DITHERING +gl_Position = projectionMatrix * mvPosition;`,eX=`#ifdef DITHERING gl_FragColor.rgb = dithering( gl_FragColor.rgb ); -#endif`,aY=`#ifdef DITHERING +#endif`,tX=`#ifdef DITHERING vec3 dithering( vec3 color ) { float grid_position = rand( gl_FragCoord.xy ); vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); return color + dither_shift_RGB; } -#endif`,oY=`float roughnessFactor = roughness; +#endif`,nX=`float roughnessFactor = roughness; #ifdef USE_ROUGHNESSMAP vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); roughnessFactor *= texelRoughness.g; -#endif`,sY=`#ifdef USE_ROUGHNESSMAP +#endif`,rX=`#ifdef USE_ROUGHNESSMAP uniform sampler2D roughnessMap; -#endif`,lY=`#if NUM_SPOT_LIGHT_COORDS > 0 +#endif`,iX=`#if NUM_SPOT_LIGHT_COORDS > 0 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif #if NUM_SPOT_LIGHT_MAPS > 0 @@ -1846,7 +1838,7 @@ gl_Position = projectionMatrix * mvPosition;`,iY=`#ifdef DITHERING return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); #endif } -#endif`,uY=`#if NUM_SPOT_LIGHT_COORDS > 0 +#endif`,aX=`#if NUM_SPOT_LIGHT_COORDS > 0 uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif @@ -1884,7 +1876,7 @@ gl_Position = projectionMatrix * mvPosition;`,iY=`#ifdef DITHERING }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif -#endif`,cY=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) +#endif`,oX=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); vec4 shadowWorldPosition; #endif @@ -1916,7 +1908,7 @@ gl_Position = projectionMatrix * mvPosition;`,iY=`#ifdef DITHERING vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end -#endif`,hY=`float getShadowMask() { +#endif`,sX=`float getShadowMask() { float shadow = 1.0; #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 @@ -1948,12 +1940,12 @@ gl_Position = projectionMatrix * mvPosition;`,iY=`#ifdef DITHERING #endif #endif return shadow; -}`,fY=`#ifdef USE_SKINNING +}`,lX=`#ifdef USE_SKINNING mat4 boneMatX = getBoneMatrix( skinIndex.x ); mat4 boneMatY = getBoneMatrix( skinIndex.y ); mat4 boneMatZ = getBoneMatrix( skinIndex.z ); mat4 boneMatW = getBoneMatrix( skinIndex.w ); -#endif`,dY=`#ifdef USE_SKINNING +#endif`,uX=`#ifdef USE_SKINNING uniform mat4 bindMatrix; uniform mat4 bindMatrixInverse; uniform highp sampler2D boneTexture; @@ -1968,7 +1960,7 @@ gl_Position = projectionMatrix * mvPosition;`,iY=`#ifdef DITHERING vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); return mat4( v1, v2, v3, v4 ); } -#endif`,pY=`#ifdef USE_SKINNING +#endif`,cX=`#ifdef USE_SKINNING vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); vec4 skinned = vec4( 0.0 ); skinned += boneMatX * skinVertex * skinWeight.x; @@ -1976,7 +1968,7 @@ gl_Position = projectionMatrix * mvPosition;`,iY=`#ifdef DITHERING skinned += boneMatZ * skinVertex * skinWeight.z; skinned += boneMatW * skinVertex * skinWeight.w; transformed = ( bindMatrixInverse * skinned ).xyz; -#endif`,vY=`#ifdef USE_SKINNING +#endif`,hX=`#ifdef USE_SKINNING mat4 skinMatrix = mat4( 0.0 ); skinMatrix += skinWeight.x * boneMatX; skinMatrix += skinWeight.y * boneMatY; @@ -1987,17 +1979,17 @@ gl_Position = projectionMatrix * mvPosition;`,iY=`#ifdef DITHERING #ifdef USE_TANGENT objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; #endif -#endif`,gY=`float specularStrength; +#endif`,fX=`float specularStrength; #ifdef USE_SPECULARMAP vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); specularStrength = texelSpecular.r; #else specularStrength = 1.0; -#endif`,mY=`#ifdef USE_SPECULARMAP +#endif`,dX=`#ifdef USE_SPECULARMAP uniform sampler2D specularMap; -#endif`,yY=`#if defined( TONE_MAPPING ) +#endif`,pX=`#if defined( TONE_MAPPING ) gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); -#endif`,_Y=`#ifndef saturate +#endif`,vX=`#ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif uniform float toneMappingExposure; @@ -2078,7 +2070,7 @@ vec3 AgXToneMapping( vec3 color ) { color = LINEAR_REC2020_TO_LINEAR_SRGB * color; return color; } -vec3 CustomToneMapping( vec3 color ) { return color; }`,xY=`#ifdef USE_TRANSMISSION +vec3 CustomToneMapping( vec3 color ) { return color; }`,gX=`#ifdef USE_TRANSMISSION material.transmission = transmission; material.transmissionAlpha = 1.0; material.thickness = thickness; @@ -2099,7 +2091,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,xY=`#ifdef USE_TRANSMISS material.attenuationColor, material.attenuationDistance ); material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); -#endif`,SY=`#ifdef USE_TRANSMISSION +#endif`,mX=`#ifdef USE_TRANSMISSION uniform float transmission; uniform float thickness; uniform float attenuationDistance; @@ -2205,7 +2197,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,xY=`#ifdef USE_TRANSMISS float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); } -#endif`,AY=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,yX=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP @@ -2275,7 +2267,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,xY=`#ifdef USE_TRANSMISS #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; -#endif`,MY=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,_X=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP @@ -2369,7 +2361,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,xY=`#ifdef USE_TRANSMISS #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; -#endif`,wY=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,xX=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) vUv = vec3( uv, 1 ).xy; #endif #ifdef USE_MAP @@ -2440,7 +2432,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,xY=`#ifdef USE_TRANSMISS #endif #ifdef USE_THICKNESSMAP vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; -#endif`,bY=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 +#endif`,SX=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 vec4 worldPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING worldPosition = batchingMatrix * worldPosition; @@ -2449,12 +2441,12 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,xY=`#ifdef USE_TRANSMISS worldPosition = instanceMatrix * worldPosition; #endif worldPosition = modelMatrix * worldPosition; -#endif`;const TY=`varying vec2 vUv; +#endif`;const AX=`varying vec2 vUv; uniform mat3 uvTransform; void main() { vUv = ( uvTransform * vec3( uv, 1 ) ).xy; gl_Position = vec4( position.xy, 1.0, 1.0 ); -}`,CY=`uniform sampler2D t2D; +}`,MX=`uniform sampler2D t2D; uniform float backgroundIntensity; varying vec2 vUv; void main() { @@ -2466,14 +2458,14 @@ void main() { gl_FragColor = texColor; #include #include -}`,EY=`varying vec3 vWorldDirection; +}`,wX=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; -}`,RY=`#ifdef ENVMAP_TYPE_CUBE +}`,bX=`#ifdef ENVMAP_TYPE_CUBE uniform samplerCube envMap; #elif defined( ENVMAP_TYPE_CUBE_UV ) uniform sampler2D envMap; @@ -2495,14 +2487,14 @@ void main() { gl_FragColor = texColor; #include #include -}`,PY=`varying vec3 vWorldDirection; +}`,TX=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; -}`,DY=`uniform samplerCube tCube; +}`,CX=`uniform samplerCube tCube; uniform float tFlip; uniform float opacity; varying vec3 vWorldDirection; @@ -2512,7 +2504,7 @@ void main() { gl_FragColor.a *= opacity; #include #include -}`,IY=`#include +}`,EX=`#include #include #include #include @@ -2538,7 +2530,7 @@ void main() { #include #include vHighPrecisionZW = gl_Position.zw; -}`,LY=`#if DEPTH_PACKING == 3200 +}`,RX=`#if DEPTH_PACKING == 3200 uniform float opacity; #endif #include @@ -2568,7 +2560,7 @@ void main() { #elif DEPTH_PACKING == 3201 gl_FragColor = packDepthToRGBA( fragCoordZ ); #endif -}`,BY=`#define DISTANCE +}`,PX=`#define DISTANCE varying vec3 vWorldPosition; #include #include @@ -2594,7 +2586,7 @@ void main() { #include #include vWorldPosition = worldPosition.xyz; -}`,OY=`#define DISTANCE +}`,DX=`#define DISTANCE uniform vec3 referencePosition; uniform float nearDistance; uniform float farDistance; @@ -2618,13 +2610,13 @@ void main () { dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); dist = saturate( dist ); gl_FragColor = packDepthToRGBA( dist ); -}`,FY=`varying vec3 vWorldDirection; +}`,IX=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include -}`,NY=`uniform sampler2D tEquirect; +}`,LX=`uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include void main() { @@ -2633,7 +2625,7 @@ void main() { gl_FragColor = texture2D( tEquirect, sampleUV ); #include #include -}`,kY=`uniform float scale; +}`,BX=`uniform float scale; attribute float lineDistance; varying float vLineDistance; #include @@ -2654,7 +2646,7 @@ void main() { #include #include #include -}`,UY=`uniform vec3 diffuse; +}`,OX=`uniform vec3 diffuse; uniform float opacity; uniform float dashSize; uniform float totalSize; @@ -2682,7 +2674,7 @@ void main() { #include #include #include -}`,GY=`#include +}`,NX=`#include #include #include #include @@ -2713,7 +2705,7 @@ void main() { #include #include #include -}`,zY=`uniform vec3 diffuse; +}`,FX=`uniform vec3 diffuse; uniform float opacity; #ifndef FLAT_SHADED varying vec3 vNormal; @@ -2761,7 +2753,7 @@ void main() { #include #include #include -}`,HY=`#define LAMBERT +}`,kX=`#define LAMBERT varying vec3 vViewPosition; #include #include @@ -2799,7 +2791,7 @@ void main() { #include #include #include -}`,VY=`#define LAMBERT +}`,UX=`#define LAMBERT uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; @@ -2856,7 +2848,7 @@ void main() { #include #include #include -}`,WY=`#define MATCAP +}`,GX=`#define MATCAP varying vec3 vViewPosition; #include #include @@ -2889,7 +2881,7 @@ void main() { #include #include vViewPosition = - mvPosition.xyz; -}`,XY=`#define MATCAP +}`,zX=`#define MATCAP uniform vec3 diffuse; uniform float opacity; uniform sampler2D matcap; @@ -2935,7 +2927,7 @@ void main() { #include #include #include -}`,YY=`#define NORMAL +}`,HX=`#define NORMAL #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; #endif @@ -2967,7 +2959,7 @@ void main() { #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) vViewPosition = - mvPosition.xyz; #endif -}`,jY=`#define NORMAL +}`,VX=`#define NORMAL uniform float opacity; #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; @@ -2988,7 +2980,7 @@ void main() { #ifdef OPAQUE gl_FragColor.a = 1.0; #endif -}`,JY=`#define PHONG +}`,WX=`#define PHONG varying vec3 vViewPosition; #include #include @@ -3026,7 +3018,7 @@ void main() { #include #include #include -}`,ZY=`#define PHONG +}`,XX=`#define PHONG uniform vec3 diffuse; uniform vec3 emissive; uniform vec3 specular; @@ -3085,7 +3077,7 @@ void main() { #include #include #include -}`,KY=`#define STANDARD +}`,YX=`#define STANDARD varying vec3 vViewPosition; #ifdef USE_TRANSMISSION varying vec3 vWorldPosition; @@ -3127,7 +3119,7 @@ void main() { #ifdef USE_TRANSMISSION vWorldPosition = worldPosition.xyz; #endif -}`,qY=`#define STANDARD +}`,JX=`#define STANDARD #ifdef PHYSICAL #define IOR #define USE_SPECULAR @@ -3249,7 +3241,7 @@ void main() { #include #include #include -}`,$Y=`#define TOON +}`,ZX=`#define TOON varying vec3 vViewPosition; #include #include @@ -3285,7 +3277,7 @@ void main() { #include #include #include -}`,QY=`#define TOON +}`,jX=`#define TOON uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; @@ -3338,7 +3330,7 @@ void main() { #include #include #include -}`,ej=`uniform float size; +}`,KX=`uniform float size; uniform float scale; #include #include @@ -3368,7 +3360,7 @@ void main() { #include #include #include -}`,tj=`uniform vec3 diffuse; +}`,qX=`uniform vec3 diffuse; uniform float opacity; #include #include @@ -3393,7 +3385,7 @@ void main() { #include #include #include -}`,nj=`#include +}`,QX=`#include #include #include #include @@ -3415,7 +3407,7 @@ void main() { #include #include #include -}`,rj=`uniform vec3 color; +}`,$X=`uniform vec3 color; uniform float opacity; #include #include @@ -3431,7 +3423,7 @@ void main() { #include #include #include -}`,ij=`uniform float rotation; +}`,e7=`uniform float rotation; uniform vec2 center; #include #include @@ -3457,7 +3449,7 @@ void main() { #include #include #include -}`,aj=`uniform vec3 diffuse; +}`,t7=`uniform vec3 diffuse; uniform float opacity; #include #include @@ -3482,7 +3474,7 @@ void main() { #include #include #include -}`,qt={alphahash_fragment:CX,alphahash_pars_fragment:EX,alphamap_fragment:RX,alphamap_pars_fragment:PX,alphatest_fragment:DX,alphatest_pars_fragment:IX,aomap_fragment:LX,aomap_pars_fragment:BX,batching_pars_vertex:OX,batching_vertex:FX,begin_vertex:NX,beginnormal_vertex:kX,bsdfs:UX,iridescence_fragment:GX,bumpmap_pars_fragment:zX,clipping_planes_fragment:HX,clipping_planes_pars_fragment:VX,clipping_planes_pars_vertex:WX,clipping_planes_vertex:XX,color_fragment:YX,color_pars_fragment:jX,color_pars_vertex:JX,color_vertex:ZX,common:KX,cube_uv_reflection_fragment:qX,defaultnormal_vertex:$X,displacementmap_pars_vertex:QX,displacementmap_vertex:e7,emissivemap_fragment:t7,emissivemap_pars_fragment:n7,colorspace_fragment:r7,colorspace_pars_fragment:i7,envmap_fragment:a7,envmap_common_pars_fragment:o7,envmap_pars_fragment:s7,envmap_pars_vertex:l7,envmap_physical_pars_fragment:x7,envmap_vertex:u7,fog_vertex:c7,fog_pars_vertex:h7,fog_fragment:f7,fog_pars_fragment:d7,gradientmap_pars_fragment:p7,lightmap_fragment:v7,lightmap_pars_fragment:g7,lights_lambert_fragment:m7,lights_lambert_pars_fragment:y7,lights_pars_begin:_7,lights_toon_fragment:S7,lights_toon_pars_fragment:A7,lights_phong_fragment:M7,lights_phong_pars_fragment:w7,lights_physical_fragment:b7,lights_physical_pars_fragment:T7,lights_fragment_begin:C7,lights_fragment_maps:E7,lights_fragment_end:R7,logdepthbuf_fragment:P7,logdepthbuf_pars_fragment:D7,logdepthbuf_pars_vertex:I7,logdepthbuf_vertex:L7,map_fragment:B7,map_pars_fragment:O7,map_particle_fragment:F7,map_particle_pars_fragment:N7,metalnessmap_fragment:k7,metalnessmap_pars_fragment:U7,morphcolor_vertex:G7,morphnormal_vertex:z7,morphtarget_pars_vertex:H7,morphtarget_vertex:V7,normal_fragment_begin:W7,normal_fragment_maps:X7,normal_pars_fragment:Y7,normal_pars_vertex:j7,normal_vertex:J7,normalmap_pars_fragment:Z7,clearcoat_normal_fragment_begin:K7,clearcoat_normal_fragment_maps:q7,clearcoat_pars_fragment:$7,iridescence_pars_fragment:Q7,opaque_fragment:eY,packing:tY,premultiplied_alpha_fragment:nY,project_vertex:rY,dithering_fragment:iY,dithering_pars_fragment:aY,roughnessmap_fragment:oY,roughnessmap_pars_fragment:sY,shadowmap_pars_fragment:lY,shadowmap_pars_vertex:uY,shadowmap_vertex:cY,shadowmask_pars_fragment:hY,skinbase_vertex:fY,skinning_pars_vertex:dY,skinning_vertex:pY,skinnormal_vertex:vY,specularmap_fragment:gY,specularmap_pars_fragment:mY,tonemapping_fragment:yY,tonemapping_pars_fragment:_Y,transmission_fragment:xY,transmission_pars_fragment:SY,uv_pars_fragment:AY,uv_pars_vertex:MY,uv_vertex:wY,worldpos_vertex:bY,background_vert:TY,background_frag:CY,backgroundCube_vert:EY,backgroundCube_frag:RY,cube_vert:PY,cube_frag:DY,depth_vert:IY,depth_frag:LY,distanceRGBA_vert:BY,distanceRGBA_frag:OY,equirect_vert:FY,equirect_frag:NY,linedashed_vert:kY,linedashed_frag:UY,meshbasic_vert:GY,meshbasic_frag:zY,meshlambert_vert:HY,meshlambert_frag:VY,meshmatcap_vert:WY,meshmatcap_frag:XY,meshnormal_vert:YY,meshnormal_frag:jY,meshphong_vert:JY,meshphong_frag:ZY,meshphysical_vert:KY,meshphysical_frag:qY,meshtoon_vert:$Y,meshtoon_frag:QY,points_vert:ej,points_frag:tj,shadow_vert:nj,shadow_frag:rj,sprite_vert:ij,sprite_frag:aj},nt={common:{diffuse:{value:new at(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new tn},alphaMap:{value:null},alphaMapTransform:{value:new tn},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new tn}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new tn}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new tn}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new tn},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new tn},normalScale:{value:new De(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new tn},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new tn}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new tn}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new tn}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new at(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new at(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new tn},alphaTest:{value:0},uvTransform:{value:new tn}},sprite:{diffuse:{value:new at(16777215)},opacity:{value:1},center:{value:new De(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new tn},alphaMap:{value:null},alphaMapTransform:{value:new tn},alphaTest:{value:0}}},io={basic:{uniforms:yi([nt.common,nt.specularmap,nt.envmap,nt.aomap,nt.lightmap,nt.fog]),vertexShader:qt.meshbasic_vert,fragmentShader:qt.meshbasic_frag},lambert:{uniforms:yi([nt.common,nt.specularmap,nt.envmap,nt.aomap,nt.lightmap,nt.emissivemap,nt.bumpmap,nt.normalmap,nt.displacementmap,nt.fog,nt.lights,{emissive:{value:new at(0)}}]),vertexShader:qt.meshlambert_vert,fragmentShader:qt.meshlambert_frag},phong:{uniforms:yi([nt.common,nt.specularmap,nt.envmap,nt.aomap,nt.lightmap,nt.emissivemap,nt.bumpmap,nt.normalmap,nt.displacementmap,nt.fog,nt.lights,{emissive:{value:new at(0)},specular:{value:new at(1118481)},shininess:{value:30}}]),vertexShader:qt.meshphong_vert,fragmentShader:qt.meshphong_frag},standard:{uniforms:yi([nt.common,nt.envmap,nt.aomap,nt.lightmap,nt.emissivemap,nt.bumpmap,nt.normalmap,nt.displacementmap,nt.roughnessmap,nt.metalnessmap,nt.fog,nt.lights,{emissive:{value:new at(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:qt.meshphysical_vert,fragmentShader:qt.meshphysical_frag},toon:{uniforms:yi([nt.common,nt.aomap,nt.lightmap,nt.emissivemap,nt.bumpmap,nt.normalmap,nt.displacementmap,nt.gradientmap,nt.fog,nt.lights,{emissive:{value:new at(0)}}]),vertexShader:qt.meshtoon_vert,fragmentShader:qt.meshtoon_frag},matcap:{uniforms:yi([nt.common,nt.bumpmap,nt.normalmap,nt.displacementmap,nt.fog,{matcap:{value:null}}]),vertexShader:qt.meshmatcap_vert,fragmentShader:qt.meshmatcap_frag},points:{uniforms:yi([nt.points,nt.fog]),vertexShader:qt.points_vert,fragmentShader:qt.points_frag},dashed:{uniforms:yi([nt.common,nt.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:qt.linedashed_vert,fragmentShader:qt.linedashed_frag},depth:{uniforms:yi([nt.common,nt.displacementmap]),vertexShader:qt.depth_vert,fragmentShader:qt.depth_frag},normal:{uniforms:yi([nt.common,nt.bumpmap,nt.normalmap,nt.displacementmap,{opacity:{value:1}}]),vertexShader:qt.meshnormal_vert,fragmentShader:qt.meshnormal_frag},sprite:{uniforms:yi([nt.sprite,nt.fog]),vertexShader:qt.sprite_vert,fragmentShader:qt.sprite_frag},background:{uniforms:{uvTransform:{value:new tn},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:qt.background_vert,fragmentShader:qt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:qt.backgroundCube_vert,fragmentShader:qt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:qt.cube_vert,fragmentShader:qt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:qt.equirect_vert,fragmentShader:qt.equirect_frag},distanceRGBA:{uniforms:yi([nt.common,nt.displacementmap,{referencePosition:{value:new J},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:qt.distanceRGBA_vert,fragmentShader:qt.distanceRGBA_frag},shadow:{uniforms:yi([nt.lights,nt.fog,{color:{value:new at(0)},opacity:{value:1}}]),vertexShader:qt.shadow_vert,fragmentShader:qt.shadow_frag}};io.physical={uniforms:yi([io.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new tn},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new tn},clearcoatNormalScale:{value:new De(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new tn},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new tn},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new tn},sheen:{value:0},sheenColor:{value:new at(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new tn},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new tn},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new tn},transmissionSamplerSize:{value:new De},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new tn},attenuationDistance:{value:0},attenuationColor:{value:new at(0)},specularColor:{value:new at(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new tn},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new tn},anisotropyVector:{value:new De},anisotropyMap:{value:null},anisotropyMapTransform:{value:new tn}}]),vertexShader:qt.meshphysical_vert,fragmentShader:qt.meshphysical_frag};const Xm={r:0,b:0,g:0};function oj(n,e,t,r,i,a,o){const s=new at(0);let l=a===!0?0:1,u,c,h=null,f=0,d=null;function p(g,v){let x=!1,S=v.isScene===!0?v.background:null;S&&S.isTexture&&(S=(v.backgroundBlurriness>0?t:e).get(S)),S===null?y(s,l):S&&S.isColor&&(y(S,1),x=!0);const A=n.xr.getEnvironmentBlendMode();A==="additive"?r.buffers.color.setClear(0,0,0,1,o):A==="alpha-blend"&&r.buffers.color.setClear(0,0,0,0,o),(n.autoClear||x)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),S&&(S.isCubeTexture||S.mapping===rd)?(c===void 0&&(c=new ur(new Kc(1,1,1),new sa({name:"BackgroundCubeMaterial",uniforms:kf(io.backgroundCube.uniforms),vertexShader:io.backgroundCube.vertexShader,fragmentShader:io.backgroundCube.fragmentShader,side:Ci,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(b,w,C){this.matrixWorld.copyPosition(C.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(c)),c.material.uniforms.envMap.value=S,c.material.uniforms.flipEnvMap.value=S.isCubeTexture&&S.isRenderTargetTexture===!1?-1:1,c.material.uniforms.backgroundBlurriness.value=v.backgroundBlurriness,c.material.uniforms.backgroundIntensity.value=v.backgroundIntensity,c.material.toneMapped=Dn.getTransfer(S.colorSpace)!==kn,(h!==S||f!==S.version||d!==n.toneMapping)&&(c.material.needsUpdate=!0,h=S,f=S.version,d=n.toneMapping),c.layers.enableAll(),g.unshift(c,c.geometry,c.material,0,0,null)):S&&S.isTexture&&(u===void 0&&(u=new ur(new id(2,2),new sa({name:"BackgroundMaterial",uniforms:kf(io.background.uniforms),vertexShader:io.background.vertexShader,fragmentShader:io.background.fragmentShader,side:Ko,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(u)),u.material.uniforms.t2D.value=S,u.material.uniforms.backgroundIntensity.value=v.backgroundIntensity,u.material.toneMapped=Dn.getTransfer(S.colorSpace)!==kn,S.matrixAutoUpdate===!0&&S.updateMatrix(),u.material.uniforms.uvTransform.value.copy(S.matrix),(h!==S||f!==S.version||d!==n.toneMapping)&&(u.material.needsUpdate=!0,h=S,f=S.version,d=n.toneMapping),u.layers.enableAll(),g.unshift(u,u.geometry,u.material,0,0,null))}function y(g,v){g.getRGB(Xm,Gk(n)),r.buffers.color.setClear(Xm.r,Xm.g,Xm.b,v,o)}return{getClearColor:function(){return s},setClearColor:function(g,v=1){s.set(g),l=v,y(s,l)},getClearAlpha:function(){return l},setClearAlpha:function(g){l=g,y(s,l)},render:p}}function sj(n,e,t,r){const i=n.getParameter(n.MAX_VERTEX_ATTRIBS),a=r.isWebGL2?null:e.get("OES_vertex_array_object"),o=r.isWebGL2||a!==null,s={},l=g(null);let u=l,c=!1;function h(N,z,X,ne,H){let K=!1;if(o){const Q=y(ne,X,z);u!==Q&&(u=Q,d(u.object)),K=v(N,ne,X,H),K&&x(N,ne,X,H)}else{const Q=z.wireframe===!0;(u.geometry!==ne.id||u.program!==X.id||u.wireframe!==Q)&&(u.geometry=ne.id,u.program=X.id,u.wireframe=Q,K=!0)}H!==null&&t.update(H,n.ELEMENT_ARRAY_BUFFER),(K||c)&&(c=!1,P(N,z,X,ne),H!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(H).buffer))}function f(){return r.isWebGL2?n.createVertexArray():a.createVertexArrayOES()}function d(N){return r.isWebGL2?n.bindVertexArray(N):a.bindVertexArrayOES(N)}function p(N){return r.isWebGL2?n.deleteVertexArray(N):a.deleteVertexArrayOES(N)}function y(N,z,X){const ne=X.wireframe===!0;let H=s[N.id];H===void 0&&(H={},s[N.id]=H);let K=H[z.id];K===void 0&&(K={},H[z.id]=K);let Q=K[ne];return Q===void 0&&(Q=g(f()),K[ne]=Q),Q}function g(N){const z=[],X=[],ne=[];for(let H=0;H=0){const ce=H[he];let _e=K[he];if(_e===void 0&&(he==="instanceMatrix"&&N.instanceMatrix&&(_e=N.instanceMatrix),he==="instanceColor"&&N.instanceColor&&(_e=N.instanceColor)),ce===void 0||ce.attribute!==_e||_e&&ce.data!==_e.data)return!0;Q++}return u.attributesNum!==Q||u.index!==ne}function x(N,z,X,ne){const H={},K=z.attributes;let Q=0;const le=X.getAttributes();for(const he in le)if(le[he].location>=0){let ce=K[he];ce===void 0&&(he==="instanceMatrix"&&N.instanceMatrix&&(ce=N.instanceMatrix),he==="instanceColor"&&N.instanceColor&&(ce=N.instanceColor));const _e={};_e.attribute=ce,ce&&ce.data&&(_e.data=ce.data),H[he]=_e,Q++}u.attributes=H,u.attributesNum=Q,u.index=ne}function S(){const N=u.newAttributes;for(let z=0,X=N.length;z=0){let re=H[le];if(re===void 0&&(le==="instanceMatrix"&&N.instanceMatrix&&(re=N.instanceMatrix),le==="instanceColor"&&N.instanceColor&&(re=N.instanceColor)),re!==void 0){const ce=re.normalized,_e=re.itemSize,ge=t.get(re);if(ge===void 0)continue;const Be=ge.buffer,Ye=ge.type,Ke=ge.bytesPerElement,Ne=r.isWebGL2===!0&&(Ye===n.INT||Ye===n.UNSIGNED_INT||re.gpuType===zT);if(re.isInterleavedBufferAttribute){const Ie=re.data,Z=Ie.stride,Se=re.offset;if(Ie.isInstancedInterleavedBuffer){for(let ve=0;ve0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";C="mediump"}return C==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext!="undefined"&&n.constructor.name==="WebGL2RenderingContext";let s=t.precision!==void 0?t.precision:"highp";const l=a(s);l!==s&&(s=l);const u=o||e.has("WEBGL_draw_buffers"),c=t.logarithmicDepthBuffer===!0,h=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),f=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),d=n.getParameter(n.MAX_TEXTURE_SIZE),p=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),y=n.getParameter(n.MAX_VERTEX_ATTRIBS),g=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),v=n.getParameter(n.MAX_VARYING_VECTORS),x=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),S=f>0,A=o||e.has("OES_texture_float"),b=S&&A,w=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:u,getMaxAnisotropy:i,getMaxPrecision:a,precision:s,logarithmicDepthBuffer:c,maxTextures:h,maxVertexTextures:f,maxTextureSize:d,maxCubemapSize:p,maxAttributes:y,maxVertexUniforms:g,maxVaryings:v,maxFragmentUniforms:x,vertexTextures:S,floatFragmentTextures:A,floatVertexTextures:b,maxSamples:w}}function cj(n){const e=this;let t=null,r=0,i=!1,a=!1;const o=new Es,s=new tn,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(h,f){const d=h.length!==0||f||r!==0||i;return i=f,r=h.length,d},this.beginShadows=function(){a=!0,c(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(h,f){t=c(h,f,0)},this.setState=function(h,f,d){const p=h.clippingPlanes,y=h.clipIntersection,g=h.clipShadows,v=n.get(h);if(!i||p===null||p.length===0||a&&!g)a?c(null):u();else{const x=a?0:r,S=x*4;let A=v.clippingState||null;l.value=A,A=c(p,f,S,d);for(let b=0;b!==S;++b)A[b]=t[b];v.clippingState=A,this.numIntersection=y?this.numPlanes:0,this.numPlanes+=x}};function u(){l.value!==t&&(l.value=t,l.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function c(h,f,d,p){const y=h!==null?h.length:0;let g=null;if(y!==0){if(g=l.value,p!==!0||g===null){const v=d+y*4,x=f.matrixWorldInverse;s.getNormalMatrix(x),(g===null||g.length0){const u=new iC(l.height/2);return u.fromEquirectangularTexture(n,o),e.set(o,u),o.addEventListener("dispose",i),t(u.texture,o.mapping)}else return null}}return o}function i(o){const s=o.target;s.removeEventListener("dispose",i);const l=e.get(s);l!==void 0&&(e.delete(s),l.dispose())}function a(){e=new WeakMap}return{get:r,dispose:a}}class ka extends rg{constructor(e=-1,t=1,r=1,i=-1,a=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=r,this.bottom=i,this.near=a,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,r,i,a,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let a=r-e,o=r+e,s=i+t,l=i-t;if(this.view!==null&&this.view.enabled){const u=(this.right-this.left)/this.view.fullWidth/this.zoom,c=(this.top-this.bottom)/this.view.fullHeight/this.zoom;a+=u*this.view.offsetX,o=a+u*this.view.width,s-=c*this.view.offsetY,l=s-c*this.view.height}this.projectionMatrix.makeOrthographic(a,o,s,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const vf=4,tD=[.125,.215,.35,.446,.526,.582],gf=20,V1=new ka,nD=new at;let W1=null,X1=0,Y1=0;const ic=(1+Math.sqrt(5))/2,Lh=1/ic,rD=[new J(1,1,1),new J(-1,1,1),new J(1,1,-1),new J(-1,1,-1),new J(0,ic,Lh),new J(0,ic,-Lh),new J(Lh,0,ic),new J(-Lh,0,ic),new J(ic,Lh,0),new J(-ic,Lh,0)];class tb{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,r=.1,i=100){W1=this._renderer.getRenderTarget(),X1=this._renderer.getActiveCubeFace(),Y1=this._renderer.getActiveMipmapLevel(),this._setSize(256);const a=this._allocateTargets();return a.depthBuffer=!0,this._sceneToCubeUV(e,r,i,a),t>0&&this._blur(a,0,0,t),this._applyPMREM(a),this._cleanup(a),a}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=oD(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=aD(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?S:0,S,S),c.setRenderTarget(i),y&&c.render(p,s),c.render(e,s)}p.geometry.dispose(),p.material.dispose(),c.toneMapping=f,c.autoClear=h,e.background=g}_textureToCubeUV(e,t){const r=this._renderer,i=e.mapping===qo||e.mapping===Xl;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=oD()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=aD());const a=i?this._cubemapMaterial:this._equirectMaterial,o=new ur(this._lodPlanes[0],a),s=a.uniforms;s.envMap.value=e;const l=this._cubeSize;Ym(t,0,0,3*l,2*l),r.setRenderTarget(t),r.render(o,V1)}_applyPMREM(e){const t=this._renderer,r=t.autoClear;t.autoClear=!1;for(let i=1;igf;const v=[];let x=0;for(let C=0;CS-vf?i-S+vf:0),w=4*(this._cubeSize-A);Ym(t,b,w,3*A,2*A),l.setRenderTarget(t),l.render(h,V1)}}function fj(n){const e=[],t=[],r=[];let i=n;const a=n-vf+1+tD.length;for(let o=0;on-vf?l=tD[o-n+vf-1]:o===0&&(l=0),r.push(l);const u=1/(s-2),c=-u,h=1+u,f=[c,c,h,c,h,h,c,c,h,h,c,h],d=6,p=6,y=3,g=2,v=1,x=new Float32Array(y*p*d),S=new Float32Array(g*p*d),A=new Float32Array(v*p*d);for(let w=0;w2?0:-1,E=[C,P,0,C+2/3,P,0,C+2/3,P+1,0,C,P,0,C+2/3,P+1,0,C,P+1,0];x.set(E,y*p*w),S.set(f,g*p*w);const R=[w,w,w,w,w,w];A.set(R,v*p*w)}const b=new Jt;b.setAttribute("position",new _n(x,y)),b.setAttribute("uv",new _n(S,g)),b.setAttribute("faceIndex",new _n(A,v)),e.push(b),i>vf&&i--}return{lodPlanes:e,sizeLods:t,sigmas:r}}function iD(n,e,t){const r=new oa(n,e,t);return r.texture.mapping=rd,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Ym(n,e,t,r,i){n.viewport.set(e,t,r,i),n.scissor.set(e,t,r,i)}function dj(n,e,t){const r=new Float32Array(gf),i=new J(0,1,0);return new sa({name:"SphericalGaussianBlur",defines:{n:gf,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:aC(),fragmentShader:` +}`,jt={alphahash_fragment:M9,alphahash_pars_fragment:w9,alphamap_fragment:b9,alphamap_pars_fragment:T9,alphatest_fragment:C9,alphatest_pars_fragment:E9,aomap_fragment:R9,aomap_pars_fragment:P9,batching_pars_vertex:D9,batching_vertex:I9,begin_vertex:L9,beginnormal_vertex:B9,bsdfs:O9,iridescence_fragment:N9,bumpmap_pars_fragment:F9,clipping_planes_fragment:k9,clipping_planes_pars_fragment:U9,clipping_planes_pars_vertex:G9,clipping_planes_vertex:z9,color_fragment:H9,color_pars_fragment:V9,color_pars_vertex:W9,color_vertex:X9,common:Y9,cube_uv_reflection_fragment:J9,defaultnormal_vertex:Z9,displacementmap_pars_vertex:j9,displacementmap_vertex:K9,emissivemap_fragment:q9,emissivemap_pars_fragment:Q9,colorspace_fragment:$9,colorspace_pars_fragment:e6,envmap_fragment:t6,envmap_common_pars_fragment:n6,envmap_pars_fragment:r6,envmap_pars_vertex:i6,envmap_physical_pars_fragment:g6,envmap_vertex:a6,fog_vertex:o6,fog_pars_vertex:s6,fog_fragment:l6,fog_pars_fragment:u6,gradientmap_pars_fragment:c6,lightmap_fragment:h6,lightmap_pars_fragment:f6,lights_lambert_fragment:d6,lights_lambert_pars_fragment:p6,lights_pars_begin:v6,lights_toon_fragment:m6,lights_toon_pars_fragment:y6,lights_phong_fragment:_6,lights_phong_pars_fragment:x6,lights_physical_fragment:S6,lights_physical_pars_fragment:A6,lights_fragment_begin:M6,lights_fragment_maps:w6,lights_fragment_end:b6,logdepthbuf_fragment:T6,logdepthbuf_pars_fragment:C6,logdepthbuf_pars_vertex:E6,logdepthbuf_vertex:R6,map_fragment:P6,map_pars_fragment:D6,map_particle_fragment:I6,map_particle_pars_fragment:L6,metalnessmap_fragment:B6,metalnessmap_pars_fragment:O6,morphcolor_vertex:N6,morphnormal_vertex:F6,morphtarget_pars_vertex:k6,morphtarget_vertex:U6,normal_fragment_begin:G6,normal_fragment_maps:z6,normal_pars_fragment:H6,normal_pars_vertex:V6,normal_vertex:W6,normalmap_pars_fragment:X6,clearcoat_normal_fragment_begin:Y6,clearcoat_normal_fragment_maps:J6,clearcoat_pars_fragment:Z6,iridescence_pars_fragment:j6,opaque_fragment:K6,packing:q6,premultiplied_alpha_fragment:Q6,project_vertex:$6,dithering_fragment:eX,dithering_pars_fragment:tX,roughnessmap_fragment:nX,roughnessmap_pars_fragment:rX,shadowmap_pars_fragment:iX,shadowmap_pars_vertex:aX,shadowmap_vertex:oX,shadowmask_pars_fragment:sX,skinbase_vertex:lX,skinning_pars_vertex:uX,skinning_vertex:cX,skinnormal_vertex:hX,specularmap_fragment:fX,specularmap_pars_fragment:dX,tonemapping_fragment:pX,tonemapping_pars_fragment:vX,transmission_fragment:gX,transmission_pars_fragment:mX,uv_pars_fragment:yX,uv_pars_vertex:_X,uv_vertex:xX,worldpos_vertex:SX,background_vert:AX,background_frag:MX,backgroundCube_vert:wX,backgroundCube_frag:bX,cube_vert:TX,cube_frag:CX,depth_vert:EX,depth_frag:RX,distanceRGBA_vert:PX,distanceRGBA_frag:DX,equirect_vert:IX,equirect_frag:LX,linedashed_vert:BX,linedashed_frag:OX,meshbasic_vert:NX,meshbasic_frag:FX,meshlambert_vert:kX,meshlambert_frag:UX,meshmatcap_vert:GX,meshmatcap_frag:zX,meshnormal_vert:HX,meshnormal_frag:VX,meshphong_vert:WX,meshphong_frag:XX,meshphysical_vert:YX,meshphysical_frag:JX,meshtoon_vert:ZX,meshtoon_frag:jX,points_vert:KX,points_frag:qX,shadow_vert:QX,shadow_frag:$X,sprite_vert:e7,sprite_frag:t7},qe={common:{diffuse:{value:new $e(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new $t},alphaMap:{value:null},alphaMapTransform:{value:new $t},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new $t}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new $t}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new $t}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new $t},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new $t},normalScale:{value:new Re(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new $t},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new $t}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new $t}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new $t}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new $e(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new $e(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new $t},alphaTest:{value:0},uvTransform:{value:new $t}},sprite:{diffuse:{value:new $e(16777215)},opacity:{value:1},center:{value:new Re(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new $t},alphaMap:{value:null},alphaMapTransform:{value:new $t},alphaTest:{value:0}}},ro={basic:{uniforms:gi([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.fog]),vertexShader:jt.meshbasic_vert,fragmentShader:jt.meshbasic_frag},lambert:{uniforms:gi([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.fog,qe.lights,{emissive:{value:new $e(0)}}]),vertexShader:jt.meshlambert_vert,fragmentShader:jt.meshlambert_frag},phong:{uniforms:gi([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.fog,qe.lights,{emissive:{value:new $e(0)},specular:{value:new $e(1118481)},shininess:{value:30}}]),vertexShader:jt.meshphong_vert,fragmentShader:jt.meshphong_frag},standard:{uniforms:gi([qe.common,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.roughnessmap,qe.metalnessmap,qe.fog,qe.lights,{emissive:{value:new $e(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:jt.meshphysical_vert,fragmentShader:jt.meshphysical_frag},toon:{uniforms:gi([qe.common,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.gradientmap,qe.fog,qe.lights,{emissive:{value:new $e(0)}}]),vertexShader:jt.meshtoon_vert,fragmentShader:jt.meshtoon_frag},matcap:{uniforms:gi([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.fog,{matcap:{value:null}}]),vertexShader:jt.meshmatcap_vert,fragmentShader:jt.meshmatcap_frag},points:{uniforms:gi([qe.points,qe.fog]),vertexShader:jt.points_vert,fragmentShader:jt.points_frag},dashed:{uniforms:gi([qe.common,qe.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:jt.linedashed_vert,fragmentShader:jt.linedashed_frag},depth:{uniforms:gi([qe.common,qe.displacementmap]),vertexShader:jt.depth_vert,fragmentShader:jt.depth_frag},normal:{uniforms:gi([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,{opacity:{value:1}}]),vertexShader:jt.meshnormal_vert,fragmentShader:jt.meshnormal_frag},sprite:{uniforms:gi([qe.sprite,qe.fog]),vertexShader:jt.sprite_vert,fragmentShader:jt.sprite_frag},background:{uniforms:{uvTransform:{value:new $t},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:jt.background_vert,fragmentShader:jt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:jt.backgroundCube_vert,fragmentShader:jt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:jt.cube_vert,fragmentShader:jt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:jt.equirect_vert,fragmentShader:jt.equirect_frag},distanceRGBA:{uniforms:gi([qe.common,qe.displacementmap,{referencePosition:{value:new J},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:jt.distanceRGBA_vert,fragmentShader:jt.distanceRGBA_frag},shadow:{uniforms:gi([qe.lights,qe.fog,{color:{value:new $e(0)},opacity:{value:1}}]),vertexShader:jt.shadow_vert,fragmentShader:jt.shadow_frag}};ro.physical={uniforms:gi([ro.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new $t},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new $t},clearcoatNormalScale:{value:new Re(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new $t},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new $t},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new $t},sheen:{value:0},sheenColor:{value:new $e(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new $t},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new $t},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new $t},transmissionSamplerSize:{value:new Re},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new $t},attenuationDistance:{value:0},attenuationColor:{value:new $e(0)},specularColor:{value:new $e(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new $t},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new $t},anisotropyVector:{value:new Re},anisotropyMap:{value:null},anisotropyMapTransform:{value:new $t}}]),vertexShader:jt.meshphysical_vert,fragmentShader:jt.meshphysical_frag};const bm={r:0,b:0,g:0};function n7(n,e,t,r,i,a,o){const s=new $e(0);let l=a===!0?0:1,u,c,h=null,f=0,d=null;function p(g,v){let x=!1,S=v.isScene===!0?v.background:null;S&&S.isTexture&&(S=(v.backgroundBlurriness>0?t:e).get(S)),S===null?y(s,l):S&&S.isColor&&(y(S,1),x=!0);const A=n.xr.getEnvironmentBlendMode();A==="additive"?r.buffers.color.setClear(0,0,0,1,o):A==="alpha-blend"&&r.buffers.color.setClear(0,0,0,0,o),(n.autoClear||x)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),S&&(S.isCubeTexture||S.mapping===Zf)?(c===void 0&&(c=new sr(new Vc(1,1,1),new oa({name:"BackgroundCubeMaterial",uniforms:Rf(ro.backgroundCube.uniforms),vertexShader:ro.backgroundCube.vertexShader,fragmentShader:ro.backgroundCube.fragmentShader,side:bi,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(T,w,C){this.matrixWorld.copyPosition(C.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(c)),c.material.uniforms.envMap.value=S,c.material.uniforms.flipEnvMap.value=S.isCubeTexture&&S.isRenderTargetTexture===!1?-1:1,c.material.uniforms.backgroundBlurriness.value=v.backgroundBlurriness,c.material.uniforms.backgroundIntensity.value=v.backgroundIntensity,c.material.toneMapped=Pn.getTransfer(S.colorSpace)!==Fn,(h!==S||f!==S.version||d!==n.toneMapping)&&(c.material.needsUpdate=!0,h=S,f=S.version,d=n.toneMapping),c.layers.enableAll(),g.unshift(c,c.geometry,c.material,0,0,null)):S&&S.isTexture&&(u===void 0&&(u=new sr(new jf(2,2),new oa({name:"BackgroundMaterial",uniforms:Rf(ro.background.uniforms),vertexShader:ro.background.vertexShader,fragmentShader:ro.background.fragmentShader,side:jo,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(u)),u.material.uniforms.t2D.value=S,u.material.uniforms.backgroundIntensity.value=v.backgroundIntensity,u.material.toneMapped=Pn.getTransfer(S.colorSpace)!==Fn,S.matrixAutoUpdate===!0&&S.updateMatrix(),u.material.uniforms.uvTransform.value.copy(S.matrix),(h!==S||f!==S.version||d!==n.toneMapping)&&(u.material.needsUpdate=!0,h=S,f=S.version,d=n.toneMapping),u.layers.enableAll(),g.unshift(u,u.geometry,u.material,0,0,null))}function y(g,v){g.getRGB(bm,J3(n)),r.buffers.color.setClear(bm.r,bm.g,bm.b,v,o)}return{getClearColor:function(){return s},setClearColor:function(g,v=1){s.set(g),l=v,y(s,l)},getClearAlpha:function(){return l},setClearAlpha:function(g){l=g,y(s,l)},render:p}}function r7(n,e,t,r){const i=n.getParameter(n.MAX_VERTEX_ATTRIBS),a=r.isWebGL2?null:e.get("OES_vertex_array_object"),o=r.isWebGL2||a!==null,s={},l=g(null);let u=l,c=!1;function h(F,z,X,ne,H){let j=!1;if(o){const $=y(ne,X,z);u!==$&&(u=$,d(u.object)),j=v(F,ne,X,H),j&&x(F,ne,X,H)}else{const $=z.wireframe===!0;(u.geometry!==ne.id||u.program!==X.id||u.wireframe!==$)&&(u.geometry=ne.id,u.program=X.id,u.wireframe=$,j=!0)}H!==null&&t.update(H,n.ELEMENT_ARRAY_BUFFER),(j||c)&&(c=!1,P(F,z,X,ne),H!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(H).buffer))}function f(){return r.isWebGL2?n.createVertexArray():a.createVertexArrayOES()}function d(F){return r.isWebGL2?n.bindVertexArray(F):a.bindVertexArrayOES(F)}function p(F){return r.isWebGL2?n.deleteVertexArray(F):a.deleteVertexArrayOES(F)}function y(F,z,X){const ne=X.wireframe===!0;let H=s[F.id];H===void 0&&(H={},s[F.id]=H);let j=H[z.id];j===void 0&&(j={},H[z.id]=j);let $=j[ne];return $===void 0&&($=g(f()),j[ne]=$),$}function g(F){const z=[],X=[],ne=[];for(let H=0;H=0){const he=H[ce];let Se=j[ce];if(Se===void 0&&(ce==="instanceMatrix"&&F.instanceMatrix&&(Se=F.instanceMatrix),ce==="instanceColor"&&F.instanceColor&&(Se=F.instanceColor)),he===void 0||he.attribute!==Se||Se&&he.data!==Se.data)return!0;$++}return u.attributesNum!==$||u.index!==ne}function x(F,z,X,ne){const H={},j=z.attributes;let $=0;const le=X.getAttributes();for(const ce in le)if(le[ce].location>=0){let he=j[ce];he===void 0&&(ce==="instanceMatrix"&&F.instanceMatrix&&(he=F.instanceMatrix),ce==="instanceColor"&&F.instanceColor&&(he=F.instanceColor));const Se={};Se.attribute=he,he&&he.data&&(Se.data=he.data),H[ce]=Se,$++}u.attributes=H,u.attributesNum=$,u.index=ne}function S(){const F=u.newAttributes;for(let z=0,X=F.length;z=0){let ie=H[le];if(ie===void 0&&(le==="instanceMatrix"&&F.instanceMatrix&&(ie=F.instanceMatrix),le==="instanceColor"&&F.instanceColor&&(ie=F.instanceColor)),ie!==void 0){const he=ie.normalized,Se=ie.itemSize,ve=t.get(ie);if(ve===void 0)continue;const Oe=ve.buffer,Ye=ve.type,tt=ve.bytesPerElement,ze=r.isWebGL2===!0&&(Ye===n.INT||Ye===n.UNSIGNED_INT||ie.gpuType===fT);if(ie.isInterleavedBufferAttribute){const Ie=ie.data,Z=Ie.stride,xe=ie.offset;if(Ie.isInstancedInterleavedBuffer){for(let ge=0;ge0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";C="mediump"}return C==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext!="undefined"&&n.constructor.name==="WebGL2RenderingContext";let s=t.precision!==void 0?t.precision:"highp";const l=a(s);l!==s&&(s=l);const u=o||e.has("WEBGL_draw_buffers"),c=t.logarithmicDepthBuffer===!0,h=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),f=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),d=n.getParameter(n.MAX_TEXTURE_SIZE),p=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),y=n.getParameter(n.MAX_VERTEX_ATTRIBS),g=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),v=n.getParameter(n.MAX_VARYING_VECTORS),x=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),S=f>0,A=o||e.has("OES_texture_float"),T=S&&A,w=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:u,getMaxAnisotropy:i,getMaxPrecision:a,precision:s,logarithmicDepthBuffer:c,maxTextures:h,maxVertexTextures:f,maxTextureSize:d,maxCubemapSize:p,maxAttributes:y,maxVertexUniforms:g,maxVaryings:v,maxFragmentUniforms:x,vertexTextures:S,floatFragmentTextures:A,floatVertexTextures:T,maxSamples:w}}function o7(n){const e=this;let t=null,r=0,i=!1,a=!1;const o=new bs,s=new $t,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(h,f){const d=h.length!==0||f||r!==0||i;return i=f,r=h.length,d},this.beginShadows=function(){a=!0,c(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(h,f){t=c(h,f,0)},this.setState=function(h,f,d){const p=h.clippingPlanes,y=h.clipIntersection,g=h.clipShadows,v=n.get(h);if(!i||p===null||p.length===0||a&&!g)a?c(null):u();else{const x=a?0:r,S=x*4;let A=v.clippingState||null;l.value=A,A=c(p,f,S,d);for(let T=0;T!==S;++T)A[T]=t[T];v.clippingState=A,this.numIntersection=y?this.numPlanes:0,this.numPlanes+=x}};function u(){l.value!==t&&(l.value=t,l.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function c(h,f,d,p){const y=h!==null?h.length:0;let g=null;if(y!==0){if(g=l.value,p!==!0||g===null){const v=d+y*4,x=f.matrixWorldInverse;s.getNormalMatrix(x),(g===null||g.length0){const u=new RT(l.height/2);return u.fromEquirectangularTexture(n,o),e.set(o,u),o.addEventListener("dispose",i),t(u.texture,o.mapping)}else return null}}return o}function i(o){const s=o.target;s.removeEventListener("dispose",i);const l=e.get(s);l!==void 0&&(e.delete(s),l.dispose())}function a(){e=new WeakMap}return{get:r,dispose:a}}class Fa extends Gv{constructor(e=-1,t=1,r=1,i=-1,a=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=r,this.bottom=i,this.near=a,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,r,i,a,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let a=r-e,o=r+e,s=i+t,l=i-t;if(this.view!==null&&this.view.enabled){const u=(this.right-this.left)/this.view.fullWidth/this.zoom,c=(this.top-this.bottom)/this.view.fullHeight/this.zoom;a+=u*this.view.offsetX,o=a+u*this.view.width,s-=c*this.view.offsetY,l=s-c*this.view.height}this.projectionMatrix.makeOrthographic(a,o,s,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const sf=4,mP=[.125,.215,.35,.446,.526,.582],lf=20,_1=new Fa,yP=new $e;let x1=null,S1=0,A1=0;const Qu=(1+Math.sqrt(5))/2,bh=1/Qu,_P=[new J(1,1,1),new J(-1,1,1),new J(1,1,-1),new J(-1,1,-1),new J(0,Qu,bh),new J(0,Qu,-bh),new J(bh,0,Qu),new J(-bh,0,Qu),new J(Qu,bh,0),new J(-Qu,bh,0)];class Tw{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,r=.1,i=100){x1=this._renderer.getRenderTarget(),S1=this._renderer.getActiveCubeFace(),A1=this._renderer.getActiveMipmapLevel(),this._setSize(256);const a=this._allocateTargets();return a.depthBuffer=!0,this._sceneToCubeUV(e,r,i,a),t>0&&this._blur(a,0,0,t),this._applyPMREM(a),this._cleanup(a),a}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=AP(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=SP(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?S:0,S,S),c.setRenderTarget(i),y&&c.render(p,s),c.render(e,s)}p.geometry.dispose(),p.material.dispose(),c.toneMapping=f,c.autoClear=h,e.background=g}_textureToCubeUV(e,t){const r=this._renderer,i=e.mapping===Ko||e.mapping===Gl;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=AP()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=SP());const a=i?this._cubemapMaterial:this._equirectMaterial,o=new sr(this._lodPlanes[0],a),s=a.uniforms;s.envMap.value=e;const l=this._cubeSize;Tm(t,0,0,3*l,2*l),r.setRenderTarget(t),r.render(o,_1)}_applyPMREM(e){const t=this._renderer,r=t.autoClear;t.autoClear=!1;for(let i=1;ilf;const v=[];let x=0;for(let C=0;CS-sf?i-S+sf:0),w=4*(this._cubeSize-A);Tm(t,T,w,3*A,2*A),l.setRenderTarget(t),l.render(h,_1)}}function l7(n){const e=[],t=[],r=[];let i=n;const a=n-sf+1+mP.length;for(let o=0;on-sf?l=mP[o-n+sf-1]:o===0&&(l=0),r.push(l);const u=1/(s-2),c=-u,h=1+u,f=[c,c,h,c,h,h,c,c,h,h,c,h],d=6,p=6,y=3,g=2,v=1,x=new Float32Array(y*p*d),S=new Float32Array(g*p*d),A=new Float32Array(v*p*d);for(let w=0;w2?0:-1,E=[C,P,0,C+2/3,P,0,C+2/3,P+1,0,C,P,0,C+2/3,P+1,0,C,P+1,0];x.set(E,y*p*w),S.set(f,g*p*w);const R=[w,w,w,w,w,w];A.set(R,v*p*w)}const T=new Yt;T.setAttribute("position",new yn(x,y)),T.setAttribute("uv",new yn(S,g)),T.setAttribute("faceIndex",new yn(A,v)),e.push(T),i>sf&&i--}return{lodPlanes:e,sizeLods:t,sigmas:r}}function xP(n,e,t){const r=new aa(n,e,t);return r.texture.mapping=Zf,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Tm(n,e,t,r,i){n.viewport.set(e,t,r,i),n.scissor.set(e,t,r,i)}function u7(n,e,t){const r=new Float32Array(lf),i=new J(0,1,0);return new oa({name:"SphericalGaussianBlur",defines:{n:lf,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:PT(),fragmentShader:` precision mediump float; precision mediump int; @@ -3542,7 +3534,7 @@ void main() { } } - `,blending:ks,depthTest:!1,depthWrite:!1})}function aD(){return new sa({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:aC(),fragmentShader:` + `,blending:Os,depthTest:!1,depthWrite:!1})}function SP(){return new oa({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:PT(),fragmentShader:` precision mediump float; precision mediump int; @@ -3561,7 +3553,7 @@ void main() { gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); } - `,blending:ks,depthTest:!1,depthWrite:!1})}function oD(){return new sa({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:aC(),fragmentShader:` + `,blending:Os,depthTest:!1,depthWrite:!1})}function AP(){return new oa({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:PT(),fragmentShader:` precision mediump float; precision mediump int; @@ -3577,7 +3569,7 @@ void main() { gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); } - `,blending:ks,depthTest:!1,depthWrite:!1})}function aC(){return` + `,blending:Os,depthTest:!1,depthWrite:!1})}function PT(){return` precision mediump float; precision mediump int; @@ -3632,36 +3624,36 @@ void main() { gl_Position = vec4( position, 1.0 ); } - `}function pj(n){let e=new WeakMap,t=null;function r(s){if(s&&s.isTexture){const l=s.mapping,u=l===Lf||l===fv,c=l===qo||l===Xl;if(u||c)if(s.isRenderTargetTexture&&s.needsPMREMUpdate===!0){s.needsPMREMUpdate=!1;let h=e.get(s);return t===null&&(t=new tb(n)),h=u?t.fromEquirectangular(s,h):t.fromCubemap(s,h),e.set(s,h),h.texture}else{if(e.has(s))return e.get(s).texture;{const h=s.image;if(u&&h&&h.height>0||c&&h&&i(h)){t===null&&(t=new tb(n));const f=u?t.fromEquirectangular(s):t.fromCubemap(s);return e.set(s,f),s.addEventListener("dispose",a),f.texture}else return null}}}return s}function i(s){let l=0;const u=6;for(let c=0;ce.maxTextureSize&&(R=Math.ceil(E/e.maxTextureSize),E=e.maxTextureSize);const D=new Float32Array(E*R*4*p),B=new $_(D,E,R,p);B.type=Hr,B.needsUpdate=!0;const k=P*4;for(let z=0;z0)return n;const i=e*t;let a=sD[i];if(a===void 0&&(a=new Float32Array(i),sD[i]=a),e!==0){r.toArray(a,0);for(let o=1,s=0;o!==e;++o)s+=t,n[o].toArray(a,s)}return a}function Rr(n,e){if(n.length!==e.length)return!1;for(let t=0,r=n.length;t0||c&&h&&i(h)){t===null&&(t=new Tw(n));const f=u?t.fromEquirectangular(s):t.fromCubemap(s);return e.set(s,f),s.addEventListener("dispose",a),f.texture}else return null}}}return s}function i(s){let l=0;const u=6;for(let c=0;ce.maxTextureSize&&(R=Math.ceil(E/e.maxTextureSize),E=e.maxTextureSize);const I=new Float32Array(E*R*4*p),O=new C_(I,E,R,p);O.type=Gr,O.needsUpdate=!0;const U=P*4;for(let z=0;z0)return n;const i=e*t;let a=MP[i];if(a===void 0&&(a=new Float32Array(i),MP[i]=a),e!==0){r.toArray(a,0);for(let o=1,s=0;o!==e;++o)s+=t,n[o].toArray(a,s)}return a}function Cr(n,e){if(n.length!==e.length)return!1;for(let t=0,r=n.length;t":" "} ${s}: ${t[o]}`)}return r.join(` -`)}function gJ(n){const e=Dn.getPrimaries(Dn.workingColorSpace),t=Dn.getPrimaries(n);let r;switch(e===t?r="":e===mv&&t===gv?r="LinearDisplayP3ToLinearSRGB":e===gv&&t===mv&&(r="LinearSRGBToLinearDisplayP3"),n){case Qo:case tg:return[r,"LinearTransferOETF"];case Tr:case q_:return[r,"sRGBTransferOETF"];default:return[r,"LinearTransferOETF"]}}function pD(n,e,t){const r=n.getShaderParameter(e,n.COMPILE_STATUS),i=n.getShaderInfoLog(e).trim();if(r&&i==="")return"";const a=/ERROR: 0:(\d+)/.exec(i);if(a){const o=parseInt(a[1]);return t.toUpperCase()+` +`)}function fY(n){const e=Pn.getPrimaries(Pn.workingColorSpace),t=Pn.getPrimaries(n);let r;switch(e===t?r="":e===ev&&t===$p?r="LinearDisplayP3ToLinearSRGB":e===$p&&t===ev&&(r="LinearSRGBToLinearDisplayP3"),n){case Qo:case kv:return[r,"LinearTransferOETF"];case wr:case T_:return[r,"sRGBTransferOETF"];default:return[r,"LinearTransferOETF"]}}function PP(n,e,t){const r=n.getShaderParameter(e,n.COMPILE_STATUS),i=n.getShaderInfoLog(e).trim();if(r&&i==="")return"";const a=/ERROR: 0:(\d+)/.exec(i);if(a){const o=parseInt(a[1]);return t.toUpperCase()+` `+i+` -`+vJ(n.getShaderSource(e),o)}else return i}function mJ(n,e){const t=gJ(e);return`vec4 ${n}( vec4 value ) { return ${t[0]}( ${t[1]}( value ) ); }`}function yJ(n,e){let t;switch(e){case uk:t="Linear";break;case ck:t="Reinhard";break;case hk:t="OptimizedCineon";break;case GT:t="ACESFilmic";break;case dk:t="AgX";break;case fk:t="Custom";break;default:t="Linear"}return"vec3 "+n+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}function _J(n){return[n.extensionDerivatives||n.envMapCubeUVHeight||n.bumpMap||n.normalMapTangentSpace||n.clearcoatNormalMap||n.flatShading||n.shaderID==="physical"?"#extension GL_OES_standard_derivatives : enable":"",(n.extensionFragDepth||n.logarithmicDepthBuffer)&&n.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",n.extensionDrawBuffers&&n.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(n.extensionShaderTextureLOD||n.envMap||n.transmission)&&n.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(mf).join(` -`)}function xJ(n){return[n.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":""].filter(mf).join(` -`)}function SJ(n){const e=[];for(const t in n){const r=n[t];r!==!1&&e.push("#define "+t+" "+r)}return e.join(` -`)}function AJ(n,e){const t={},r=n.getProgramParameter(e,n.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function nb(n){return n.replace(MJ,bJ)}const wJ=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function bJ(n,e){let t=qt[e];if(t===void 0){const r=wJ.get(e);if(r!==void 0)t=qt[r];else throw new Error("Can not resolve #include <"+e+">")}return nb(t)}const TJ=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function mD(n){return n.replace(TJ,CJ)}function CJ(n,e,t,r){let i="";for(let a=parseInt(e);a/gm;function Cw(n){return n.replace(_Y,SY)}const xY=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function SY(n,e){let t=jt[e];if(t===void 0){const r=xY.get(e);if(r!==void 0)t=jt[r];else throw new Error("Can not resolve #include <"+e+">")}return Cw(t)}const AY=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function LP(n){return n.replace(AY,MY)}function MY(n,e,t,r){let i="";for(let a=parseInt(e);a0&&(v+=` -`),x=[d,"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,y].filter(mf).join(` +`),x=[d,"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,y].filter(uf).join(` `),x.length>0&&(x+=` -`)):(v=[yD(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,y,t.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",t.batching?"#define USE_BATCHING":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+c:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors&&t.isWebGL2?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.logarithmicDepthBuffer&&t.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` -`].filter(mf).join(` -`),x=[d,yD(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,y,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+u:"",t.envMap?"#define "+c:"",t.envMap?"#define "+h:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.logarithmicDepthBuffer&&t.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==Wo?"#define TONE_MAPPING":"",t.toneMapping!==Wo?qt.tonemapping_pars_fragment:"",t.toneMapping!==Wo?yJ("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",qt.colorspace_pars_fragment,mJ("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` -`].filter(mf).join(` -`)),o=nb(o),o=vD(o,t),o=gD(o,t),s=nb(s),s=vD(s,t),s=gD(s,t),o=mD(o),s=mD(s),t.isWebGL2&&t.isRawShaderMaterial!==!0&&(S=`#version 300 es +`)):(v=[BP(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,y,t.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",t.batching?"#define USE_BATCHING":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+c:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors&&t.isWebGL2?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.logarithmicDepthBuffer&&t.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` +`].filter(uf).join(` +`),x=[d,BP(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,y,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+u:"",t.envMap?"#define "+c:"",t.envMap?"#define "+h:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.logarithmicDepthBuffer&&t.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==Vo?"#define TONE_MAPPING":"",t.toneMapping!==Vo?jt.tonemapping_pars_fragment:"",t.toneMapping!==Vo?pY("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",jt.colorspace_pars_fragment,dY("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` +`].filter(uf).join(` +`)),o=Cw(o),o=DP(o,t),o=IP(o,t),s=Cw(s),s=DP(s,t),s=IP(s,t),o=LP(o),s=LP(s),t.isWebGL2&&t.isRawShaderMaterial!==!0&&(S=`#version 300 es `,v=[p,"precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join(` `)+` -`+v,x=["precision mediump sampler2DArray;","#define varying in",t.glslVersion===Qw?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===Qw?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` +`+v,x=["precision mediump sampler2DArray;","#define varying in",t.glslVersion===ww?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===ww?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` `)+` -`+x);const A=S+v+o,b=S+x+s,w=dD(i,i.VERTEX_SHADER,A),C=dD(i,i.FRAGMENT_SHADER,b);i.attachShader(g,w),i.attachShader(g,C),t.index0AttributeName!==void 0?i.bindAttribLocation(g,0,t.index0AttributeName):t.morphTargets===!0&&i.bindAttribLocation(g,0,"position"),i.linkProgram(g);function P(B){if(n.debug.checkShaderErrors){const k=i.getProgramInfoLog(g).trim(),N=i.getShaderInfoLog(w).trim(),z=i.getShaderInfoLog(C).trim();let X=!0,ne=!0;if(i.getProgramParameter(g,i.LINK_STATUS)===!1)if(X=!1,typeof n.debug.onShaderError=="function")n.debug.onShaderError(i,g,w,C);else{const H=pD(i,w,"vertex"),K=pD(i,C,"fragment")}else k!==""||(N===""||z==="")&&(ne=!1);ne&&(B.diagnostics={runnable:X,programLog:k,vertexShader:{log:N,prefix:v},fragmentShader:{log:z,prefix:x}})}i.deleteShader(w),i.deleteShader(C),E=new R0(i,g),R=AJ(i,g)}let E;this.getUniforms=function(){return E===void 0&&P(this),E};let R;this.getAttributes=function(){return R===void 0&&P(this),R};let D=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return D===!1&&(D=i.getProgramParameter(g,dJ)),D},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(g),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=pJ++,this.cacheKey=e,this.usedTimes=1,this.program=g,this.vertexShader=w,this.fragmentShader=C,this}let BJ=0;class OJ{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,r=e.fragmentShader,i=this._getShaderStage(t),a=this._getShaderStage(r),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(a)===!1&&(o.add(a),a.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const r of t)r.usedTimes--,r.usedTimes===0&&this.shaderCache.delete(r.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let r=t.get(e);return r===void 0&&(r=new Set,t.set(e,r)),r}_getShaderStage(e){const t=this.shaderCache;let r=t.get(e);return r===void 0&&(r=new FJ(e),t.set(e,r)),r}}class FJ{constructor(e){this.id=BJ++,this.code=e,this.usedTimes=0}}function NJ(n,e,t,r,i,a,o){const s=new Rc,l=new OJ,u=[],c=i.isWebGL2,h=i.logarithmicDepthBuffer,f=i.vertexTextures;let d=i.precision;const p={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function y(E){return E===0?"uv":`uv${E}`}function g(E,R,D,B,k){const N=B.fog,z=k.geometry,X=E.isMeshStandardMaterial?B.environment:null,ne=(E.isMeshStandardMaterial?t:e).get(E.envMap||X),H=ne&&ne.mapping===rd?ne.image.height:null,K=p[E.type];E.precision!==null&&(d=i.getMaxPrecision(E.precision),E.precision);const Q=z.morphAttributes.position||z.morphAttributes.normal||z.morphAttributes.color,le=Q!==void 0?Q.length:0;let he=0;z.morphAttributes.position!==void 0&&(he=1),z.morphAttributes.normal!==void 0&&(he=2),z.morphAttributes.color!==void 0&&(he=3);let re,ce,_e,ge;if(K){const Fn=io[K];re=Fn.vertexShader,ce=Fn.fragmentShader}else re=E.vertexShader,ce=E.fragmentShader,l.update(E),_e=l.getVertexShaderID(E),ge=l.getFragmentShaderID(E);const Be=n.getRenderTarget(),Ye=k.isInstancedMesh===!0,Ke=k.isBatchedMesh===!0,Ne=!!E.map,Ie=!!E.matcap,Z=!!ne,Se=!!E.aoMap,ve=!!E.lightMap,Pe=!!E.bumpMap,me=!!E.normalMap,et=!!E.displacementMap,Xe=!!E.emissiveMap,V=!!E.metalnessMap,G=!!E.roughnessMap,de=E.anisotropy>0,Fe=E.clearcoat>0,Re=E.iridescence>0,Le=E.sheen>0,st=E.transmission>0,Je=de&&!!E.anisotropyMap,rt=Fe&&!!E.clearcoatMap,_t=Fe&&!!E.clearcoatNormalMap,ht=Fe&&!!E.clearcoatRoughnessMap,ke=Re&&!!E.iridescenceMap,vt=Re&&!!E.iridescenceThicknessMap,ft=Le&&!!E.sheenColorMap,it=Le&&!!E.sheenRoughnessMap,qe=!!E.specularMap,je=!!E.specularColorMap,oe=!!E.specularIntensityMap,we=st&&!!E.transmissionMap,Ue=st&&!!E.thicknessMap,ot=!!E.gradientMap,ue=!!E.alphaMap,ie=E.alphaTest>0,We=!!E.alphaHash,tt=!!E.extensions,Et=!!z.attributes.uv1,St=!!z.attributes.uv2,Qt=!!z.attributes.uv3;let fn=Wo;return E.toneMapped&&(Be===null||Be.isXRRenderTarget===!0)&&(fn=n.toneMapping),{isWebGL2:c,shaderID:K,shaderType:E.type,shaderName:E.name,vertexShader:re,fragmentShader:ce,defines:E.defines,customVertexShaderID:_e,customFragmentShaderID:ge,isRawShaderMaterial:E.isRawShaderMaterial===!0,glslVersion:E.glslVersion,precision:d,batching:Ke,instancing:Ye,instancingColor:Ye&&k.instanceColor!==null,supportsVertexTextures:f,outputColorSpace:Be===null?n.outputColorSpace:Be.isXRRenderTarget===!0?Be.texture.colorSpace:Qo,map:Ne,matcap:Ie,envMap:Z,envMapMode:Z&&ne.mapping,envMapCubeUVHeight:H,aoMap:Se,lightMap:ve,bumpMap:Pe,normalMap:me,displacementMap:f&&et,emissiveMap:Xe,normalMapObjectSpace:me&&E.normalMapType===Ek,normalMapTangentSpace:me&&E.normalMapType===nu,metalnessMap:V,roughnessMap:G,anisotropy:de,anisotropyMap:Je,clearcoat:Fe,clearcoatMap:rt,clearcoatNormalMap:_t,clearcoatRoughnessMap:ht,iridescence:Re,iridescenceMap:ke,iridescenceThicknessMap:vt,sheen:Le,sheenColorMap:ft,sheenRoughnessMap:it,specularMap:qe,specularColorMap:je,specularIntensityMap:oe,transmission:st,transmissionMap:we,thicknessMap:Ue,gradientMap:ot,opaque:E.transparent===!1&&E.blending===Cc,alphaMap:ue,alphaTest:ie,alphaHash:We,combine:E.combine,mapUv:Ne&&y(E.map.channel),aoMapUv:Se&&y(E.aoMap.channel),lightMapUv:ve&&y(E.lightMap.channel),bumpMapUv:Pe&&y(E.bumpMap.channel),normalMapUv:me&&y(E.normalMap.channel),displacementMapUv:et&&y(E.displacementMap.channel),emissiveMapUv:Xe&&y(E.emissiveMap.channel),metalnessMapUv:V&&y(E.metalnessMap.channel),roughnessMapUv:G&&y(E.roughnessMap.channel),anisotropyMapUv:Je&&y(E.anisotropyMap.channel),clearcoatMapUv:rt&&y(E.clearcoatMap.channel),clearcoatNormalMapUv:_t&&y(E.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:ht&&y(E.clearcoatRoughnessMap.channel),iridescenceMapUv:ke&&y(E.iridescenceMap.channel),iridescenceThicknessMapUv:vt&&y(E.iridescenceThicknessMap.channel),sheenColorMapUv:ft&&y(E.sheenColorMap.channel),sheenRoughnessMapUv:it&&y(E.sheenRoughnessMap.channel),specularMapUv:qe&&y(E.specularMap.channel),specularColorMapUv:je&&y(E.specularColorMap.channel),specularIntensityMapUv:oe&&y(E.specularIntensityMap.channel),transmissionMapUv:we&&y(E.transmissionMap.channel),thicknessMapUv:Ue&&y(E.thicknessMap.channel),alphaMapUv:ue&&y(E.alphaMap.channel),vertexTangents:!!z.attributes.tangent&&(me||de),vertexColors:E.vertexColors,vertexAlphas:E.vertexColors===!0&&!!z.attributes.color&&z.attributes.color.itemSize===4,vertexUv1s:Et,vertexUv2s:St,vertexUv3s:Qt,pointsUvs:k.isPoints===!0&&!!z.attributes.uv&&(Ne||ue),fog:!!N,useFog:E.fog===!0,fogExp2:N&&N.isFogExp2,flatShading:E.flatShading===!0,sizeAttenuation:E.sizeAttenuation===!0,logarithmicDepthBuffer:h,skinning:k.isSkinnedMesh===!0,morphTargets:z.morphAttributes.position!==void 0,morphNormals:z.morphAttributes.normal!==void 0,morphColors:z.morphAttributes.color!==void 0,morphTargetsCount:le,morphTextureStride:he,numDirLights:R.directional.length,numPointLights:R.point.length,numSpotLights:R.spot.length,numSpotLightMaps:R.spotLightMap.length,numRectAreaLights:R.rectArea.length,numHemiLights:R.hemi.length,numDirLightShadows:R.directionalShadowMap.length,numPointLightShadows:R.pointShadowMap.length,numSpotLightShadows:R.spotShadowMap.length,numSpotLightShadowsWithMaps:R.numSpotLightShadowsWithMaps,numLightProbes:R.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:E.dithering,shadowMapEnabled:n.shadowMap.enabled&&D.length>0,shadowMapType:n.shadowMap.type,toneMapping:fn,useLegacyLights:n._useLegacyLights,decodeVideoTexture:Ne&&E.map.isVideoTexture===!0&&Dn.getTransfer(E.map.colorSpace)===kn,premultipliedAlpha:E.premultipliedAlpha,doubleSided:E.side===ea,flipSided:E.side===Ci,useDepthPacking:E.depthPacking>=0,depthPacking:E.depthPacking||0,index0AttributeName:E.index0AttributeName,extensionDerivatives:tt&&E.extensions.derivatives===!0,extensionFragDepth:tt&&E.extensions.fragDepth===!0,extensionDrawBuffers:tt&&E.extensions.drawBuffers===!0,extensionShaderTextureLOD:tt&&E.extensions.shaderTextureLOD===!0,extensionClipCullDistance:tt&&E.extensions.clipCullDistance&&r.has("WEBGL_clip_cull_distance"),rendererExtensionFragDepth:c||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:c||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:c||r.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:E.customProgramCacheKey()}}function v(E){const R=[];if(E.shaderID?R.push(E.shaderID):(R.push(E.customVertexShaderID),R.push(E.customFragmentShaderID)),E.defines!==void 0)for(const D in E.defines)R.push(D),R.push(E.defines[D]);return E.isRawShaderMaterial===!1&&(x(R,E),S(R,E),R.push(n.outputColorSpace)),R.push(E.customProgramCacheKey),R.join()}function x(E,R){E.push(R.precision),E.push(R.outputColorSpace),E.push(R.envMapMode),E.push(R.envMapCubeUVHeight),E.push(R.mapUv),E.push(R.alphaMapUv),E.push(R.lightMapUv),E.push(R.aoMapUv),E.push(R.bumpMapUv),E.push(R.normalMapUv),E.push(R.displacementMapUv),E.push(R.emissiveMapUv),E.push(R.metalnessMapUv),E.push(R.roughnessMapUv),E.push(R.anisotropyMapUv),E.push(R.clearcoatMapUv),E.push(R.clearcoatNormalMapUv),E.push(R.clearcoatRoughnessMapUv),E.push(R.iridescenceMapUv),E.push(R.iridescenceThicknessMapUv),E.push(R.sheenColorMapUv),E.push(R.sheenRoughnessMapUv),E.push(R.specularMapUv),E.push(R.specularColorMapUv),E.push(R.specularIntensityMapUv),E.push(R.transmissionMapUv),E.push(R.thicknessMapUv),E.push(R.combine),E.push(R.fogExp2),E.push(R.sizeAttenuation),E.push(R.morphTargetsCount),E.push(R.morphAttributeCount),E.push(R.numDirLights),E.push(R.numPointLights),E.push(R.numSpotLights),E.push(R.numSpotLightMaps),E.push(R.numHemiLights),E.push(R.numRectAreaLights),E.push(R.numDirLightShadows),E.push(R.numPointLightShadows),E.push(R.numSpotLightShadows),E.push(R.numSpotLightShadowsWithMaps),E.push(R.numLightProbes),E.push(R.shadowMapType),E.push(R.toneMapping),E.push(R.numClippingPlanes),E.push(R.numClipIntersection),E.push(R.depthPacking)}function S(E,R){s.disableAll(),R.isWebGL2&&s.enable(0),R.supportsVertexTextures&&s.enable(1),R.instancing&&s.enable(2),R.instancingColor&&s.enable(3),R.matcap&&s.enable(4),R.envMap&&s.enable(5),R.normalMapObjectSpace&&s.enable(6),R.normalMapTangentSpace&&s.enable(7),R.clearcoat&&s.enable(8),R.iridescence&&s.enable(9),R.alphaTest&&s.enable(10),R.vertexColors&&s.enable(11),R.vertexAlphas&&s.enable(12),R.vertexUv1s&&s.enable(13),R.vertexUv2s&&s.enable(14),R.vertexUv3s&&s.enable(15),R.vertexTangents&&s.enable(16),R.anisotropy&&s.enable(17),R.alphaHash&&s.enable(18),R.batching&&s.enable(19),E.push(s.mask),s.disableAll(),R.fog&&s.enable(0),R.useFog&&s.enable(1),R.flatShading&&s.enable(2),R.logarithmicDepthBuffer&&s.enable(3),R.skinning&&s.enable(4),R.morphTargets&&s.enable(5),R.morphNormals&&s.enable(6),R.morphColors&&s.enable(7),R.premultipliedAlpha&&s.enable(8),R.shadowMapEnabled&&s.enable(9),R.useLegacyLights&&s.enable(10),R.doubleSided&&s.enable(11),R.flipSided&&s.enable(12),R.useDepthPacking&&s.enable(13),R.dithering&&s.enable(14),R.transmission&&s.enable(15),R.sheen&&s.enable(16),R.opaque&&s.enable(17),R.pointsUvs&&s.enable(18),R.decodeVideoTexture&&s.enable(19),E.push(s.mask)}function A(E){const R=p[E.type];let D;if(R){const B=io[R];D=zk.clone(B.uniforms)}else D=E.uniforms;return D}function b(E,R){let D;for(let B=0,k=u.length;B0?r.push(v):d.transparent===!0?i.push(v):t.push(v)}function l(h,f,d,p,y,g){const v=o(h,f,d,p,y,g);d.transmission>0?r.unshift(v):d.transparent===!0?i.unshift(v):t.unshift(v)}function u(h,f){t.length>1&&t.sort(h||UJ),r.length>1&&r.sort(f||_D),i.length>1&&i.sort(f||_D)}function c(){for(let h=e,f=n.length;h=a.length?(o=new xD,a.push(o)):o=a[i],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function zJ(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new J,color:new at};break;case"SpotLight":t={position:new J,direction:new J,color:new at,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new J,color:new at,distance:0,decay:0};break;case"HemisphereLight":t={direction:new J,skyColor:new at,groundColor:new at};break;case"RectAreaLight":t={color:new at,position:new J,halfWidth:new J,halfHeight:new J};break}return n[e.id]=t,t}}}function HJ(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new De};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new De};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new De,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let VJ=0;function WJ(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function XJ(n,e){const t=new zJ,r=HJ(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)i.probe.push(new J);const a=new J,o=new Bt,s=new Bt;function l(c,h){let f=0,d=0,p=0;for(let B=0;B<9;B++)i.probe[B].set(0,0,0);let y=0,g=0,v=0,x=0,S=0,A=0,b=0,w=0,C=0,P=0,E=0;c.sort(WJ);const R=h===!0?Math.PI:1;for(let B=0,k=c.length;B0&&(e.isWebGL2?n.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=nt.LTC_FLOAT_1,i.rectAreaLTC2=nt.LTC_FLOAT_2):(i.rectAreaLTC1=nt.LTC_HALF_1,i.rectAreaLTC2=nt.LTC_HALF_2):n.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=nt.LTC_FLOAT_1,i.rectAreaLTC2=nt.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0&&(i.rectAreaLTC1=nt.LTC_HALF_1,i.rectAreaLTC2=nt.LTC_HALF_2)),i.ambient[0]=f,i.ambient[1]=d,i.ambient[2]=p;const D=i.hash;(D.directionalLength!==y||D.pointLength!==g||D.spotLength!==v||D.rectAreaLength!==x||D.hemiLength!==S||D.numDirectionalShadows!==A||D.numPointShadows!==b||D.numSpotShadows!==w||D.numSpotMaps!==C||D.numLightProbes!==E)&&(i.directional.length=y,i.spot.length=v,i.rectArea.length=x,i.point.length=g,i.hemi.length=S,i.directionalShadow.length=A,i.directionalShadowMap.length=A,i.pointShadow.length=b,i.pointShadowMap.length=b,i.spotShadow.length=w,i.spotShadowMap.length=w,i.directionalShadowMatrix.length=A,i.pointShadowMatrix.length=b,i.spotLightMatrix.length=w+C-P,i.spotLightMap.length=C,i.numSpotLightShadowsWithMaps=P,i.numLightProbes=E,D.directionalLength=y,D.pointLength=g,D.spotLength=v,D.rectAreaLength=x,D.hemiLength=S,D.numDirectionalShadows=A,D.numPointShadows=b,D.numSpotShadows=w,D.numSpotMaps=C,D.numLightProbes=E,i.version=VJ++)}function u(c,h){let f=0,d=0,p=0,y=0,g=0;const v=h.matrixWorldInverse;for(let x=0,S=c.length;x=s.length?(l=new SD(n,e),s.push(l)):l=s[o],l}function i(){t=new WeakMap}return{get:r,dispose:i}}class ex extends Ar{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Tk,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class sC extends Ar{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const jJ=`void main() { +`+x);const A=S+v+o,T=S+x+s,w=RP(i,i.VERTEX_SHADER,A),C=RP(i,i.FRAGMENT_SHADER,T);i.attachShader(g,w),i.attachShader(g,C),t.index0AttributeName!==void 0?i.bindAttribLocation(g,0,t.index0AttributeName):t.morphTargets===!0&&i.bindAttribLocation(g,0,"position"),i.linkProgram(g);function P(O){if(n.debug.checkShaderErrors){const U=i.getProgramInfoLog(g).trim(),F=i.getShaderInfoLog(w).trim(),z=i.getShaderInfoLog(C).trim();let X=!0,ne=!0;if(i.getProgramParameter(g,i.LINK_STATUS)===!1)if(X=!1,typeof n.debug.onShaderError=="function")n.debug.onShaderError(i,g,w,C);else{const H=PP(i,w,"vertex"),j=PP(i,C,"fragment")}else U!==""||(F===""||z==="")&&(ne=!1);ne&&(O.diagnostics={runnable:X,programLog:U,vertexShader:{log:F,prefix:v},fragmentShader:{log:z,prefix:x}})}i.deleteShader(w),i.deleteShader(C),E=new oy(i,g),R=yY(i,g)}let E;this.getUniforms=function(){return E===void 0&&P(this),E};let R;this.getAttributes=function(){return R===void 0&&P(this),R};let I=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return I===!1&&(I=i.getProgramParameter(g,uY)),I},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(g),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=cY++,this.cacheKey=e,this.usedTimes=1,this.program=g,this.vertexShader=w,this.fragmentShader=C,this}let PY=0;class DY{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,r=e.fragmentShader,i=this._getShaderStage(t),a=this._getShaderStage(r),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(a)===!1&&(o.add(a),a.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const r of t)r.usedTimes--,r.usedTimes===0&&this.shaderCache.delete(r.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let r=t.get(e);return r===void 0&&(r=new Set,t.set(e,r)),r}_getShaderStage(e){const t=this.shaderCache;let r=t.get(e);return r===void 0&&(r=new IY(e),t.set(e,r)),r}}class IY{constructor(e){this.id=PY++,this.code=e,this.usedTimes=0}}function LY(n,e,t,r,i,a,o){const s=new Ac,l=new DY,u=[],c=i.isWebGL2,h=i.logarithmicDepthBuffer,f=i.vertexTextures;let d=i.precision;const p={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function y(E){return E===0?"uv":`uv${E}`}function g(E,R,I,O,U){const F=O.fog,z=U.geometry,X=E.isMeshStandardMaterial?O.environment:null,ne=(E.isMeshStandardMaterial?t:e).get(E.envMap||X),H=ne&&ne.mapping===Zf?ne.image.height:null,j=p[E.type];E.precision!==null&&(d=i.getMaxPrecision(E.precision),E.precision);const $=z.morphAttributes.position||z.morphAttributes.normal||z.morphAttributes.color,le=$!==void 0?$.length:0;let ce=0;z.morphAttributes.position!==void 0&&(ce=1),z.morphAttributes.normal!==void 0&&(ce=2),z.morphAttributes.color!==void 0&&(ce=3);let ie,he,Se,ve;if(j){const On=ro[j];ie=On.vertexShader,he=On.fragmentShader}else ie=E.vertexShader,he=E.fragmentShader,l.update(E),Se=l.getVertexShaderID(E),ve=l.getFragmentShaderID(E);const Oe=n.getRenderTarget(),Ye=U.isInstancedMesh===!0,tt=U.isBatchedMesh===!0,ze=!!E.map,Ie=!!E.matcap,Z=!!ne,xe=!!E.aoMap,ge=!!E.lightMap,Pe=!!E.bumpMap,_e=!!E.normalMap,et=!!E.displacementMap,Je=!!E.emissiveMap,W=!!E.metalnessMap,G=!!E.roughnessMap,de=E.anisotropy>0,Ne=E.clearcoat>0,Le=E.iridescence>0,Be=E.sheen>0,ht=E.transmission>0,je=de&&!!E.anisotropyMap,it=Ne&&!!E.clearcoatMap,_t=Ne&&!!E.clearcoatNormalMap,xt=Ne&&!!E.clearcoatRoughnessMap,Fe=Le&&!!E.iridescenceMap,un=Le&&!!E.iridescenceThicknessMap,Ht=Be&&!!E.sheenColorMap,Ct=Be&&!!E.sheenRoughnessMap,st=!!E.specularMap,lt=!!E.specularColorMap,ae=!!E.specularIntensityMap,Ee=ht&&!!E.transmissionMap,Ve=ht&&!!E.thicknessMap,nt=!!E.gradientMap,pe=!!E.alphaMap,se=E.alphaTest>0,Xe=!!E.alphaHash,Qe=!!E.extensions,Et=!!z.attributes.uv1,gt=!!z.attributes.uv2,qt=!!z.attributes.uv3;let hn=Vo;return E.toneMapped&&(Oe===null||Oe.isXRRenderTarget===!0)&&(hn=n.toneMapping),{isWebGL2:c,shaderID:j,shaderType:E.type,shaderName:E.name,vertexShader:ie,fragmentShader:he,defines:E.defines,customVertexShaderID:Se,customFragmentShaderID:ve,isRawShaderMaterial:E.isRawShaderMaterial===!0,glslVersion:E.glslVersion,precision:d,batching:tt,instancing:Ye,instancingColor:Ye&&U.instanceColor!==null,supportsVertexTextures:f,outputColorSpace:Oe===null?n.outputColorSpace:Oe.isXRRenderTarget===!0?Oe.texture.colorSpace:Qo,map:ze,matcap:Ie,envMap:Z,envMapMode:Z&&ne.mapping,envMapCubeUVHeight:H,aoMap:xe,lightMap:ge,bumpMap:Pe,normalMap:_e,displacementMap:f&&et,emissiveMap:Je,normalMapObjectSpace:_e&&E.normalMapType===O3,normalMapTangentSpace:_e&&E.normalMapType===ql,metalnessMap:W,roughnessMap:G,anisotropy:de,anisotropyMap:je,clearcoat:Ne,clearcoatMap:it,clearcoatNormalMap:_t,clearcoatRoughnessMap:xt,iridescence:Le,iridescenceMap:Fe,iridescenceThicknessMap:un,sheen:Be,sheenColorMap:Ht,sheenRoughnessMap:Ct,specularMap:st,specularColorMap:lt,specularIntensityMap:ae,transmission:ht,transmissionMap:Ee,thicknessMap:Ve,gradientMap:nt,opaque:E.transparent===!1&&E.blending===xc,alphaMap:pe,alphaTest:se,alphaHash:Xe,combine:E.combine,mapUv:ze&&y(E.map.channel),aoMapUv:xe&&y(E.aoMap.channel),lightMapUv:ge&&y(E.lightMap.channel),bumpMapUv:Pe&&y(E.bumpMap.channel),normalMapUv:_e&&y(E.normalMap.channel),displacementMapUv:et&&y(E.displacementMap.channel),emissiveMapUv:Je&&y(E.emissiveMap.channel),metalnessMapUv:W&&y(E.metalnessMap.channel),roughnessMapUv:G&&y(E.roughnessMap.channel),anisotropyMapUv:je&&y(E.anisotropyMap.channel),clearcoatMapUv:it&&y(E.clearcoatMap.channel),clearcoatNormalMapUv:_t&&y(E.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:xt&&y(E.clearcoatRoughnessMap.channel),iridescenceMapUv:Fe&&y(E.iridescenceMap.channel),iridescenceThicknessMapUv:un&&y(E.iridescenceThicknessMap.channel),sheenColorMapUv:Ht&&y(E.sheenColorMap.channel),sheenRoughnessMapUv:Ct&&y(E.sheenRoughnessMap.channel),specularMapUv:st&&y(E.specularMap.channel),specularColorMapUv:lt&&y(E.specularColorMap.channel),specularIntensityMapUv:ae&&y(E.specularIntensityMap.channel),transmissionMapUv:Ee&&y(E.transmissionMap.channel),thicknessMapUv:Ve&&y(E.thicknessMap.channel),alphaMapUv:pe&&y(E.alphaMap.channel),vertexTangents:!!z.attributes.tangent&&(_e||de),vertexColors:E.vertexColors,vertexAlphas:E.vertexColors===!0&&!!z.attributes.color&&z.attributes.color.itemSize===4,vertexUv1s:Et,vertexUv2s:gt,vertexUv3s:qt,pointsUvs:U.isPoints===!0&&!!z.attributes.uv&&(ze||pe),fog:!!F,useFog:E.fog===!0,fogExp2:F&&F.isFogExp2,flatShading:E.flatShading===!0,sizeAttenuation:E.sizeAttenuation===!0,logarithmicDepthBuffer:h,skinning:U.isSkinnedMesh===!0,morphTargets:z.morphAttributes.position!==void 0,morphNormals:z.morphAttributes.normal!==void 0,morphColors:z.morphAttributes.color!==void 0,morphTargetsCount:le,morphTextureStride:ce,numDirLights:R.directional.length,numPointLights:R.point.length,numSpotLights:R.spot.length,numSpotLightMaps:R.spotLightMap.length,numRectAreaLights:R.rectArea.length,numHemiLights:R.hemi.length,numDirLightShadows:R.directionalShadowMap.length,numPointLightShadows:R.pointShadowMap.length,numSpotLightShadows:R.spotShadowMap.length,numSpotLightShadowsWithMaps:R.numSpotLightShadowsWithMaps,numLightProbes:R.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:E.dithering,shadowMapEnabled:n.shadowMap.enabled&&I.length>0,shadowMapType:n.shadowMap.type,toneMapping:hn,useLegacyLights:n._useLegacyLights,decodeVideoTexture:ze&&E.map.isVideoTexture===!0&&Pn.getTransfer(E.map.colorSpace)===Fn,premultipliedAlpha:E.premultipliedAlpha,doubleSided:E.side===Qi,flipSided:E.side===bi,useDepthPacking:E.depthPacking>=0,depthPacking:E.depthPacking||0,index0AttributeName:E.index0AttributeName,extensionDerivatives:Qe&&E.extensions.derivatives===!0,extensionFragDepth:Qe&&E.extensions.fragDepth===!0,extensionDrawBuffers:Qe&&E.extensions.drawBuffers===!0,extensionShaderTextureLOD:Qe&&E.extensions.shaderTextureLOD===!0,extensionClipCullDistance:Qe&&E.extensions.clipCullDistance&&r.has("WEBGL_clip_cull_distance"),rendererExtensionFragDepth:c||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:c||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:c||r.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:E.customProgramCacheKey()}}function v(E){const R=[];if(E.shaderID?R.push(E.shaderID):(R.push(E.customVertexShaderID),R.push(E.customFragmentShaderID)),E.defines!==void 0)for(const I in E.defines)R.push(I),R.push(E.defines[I]);return E.isRawShaderMaterial===!1&&(x(R,E),S(R,E),R.push(n.outputColorSpace)),R.push(E.customProgramCacheKey),R.join()}function x(E,R){E.push(R.precision),E.push(R.outputColorSpace),E.push(R.envMapMode),E.push(R.envMapCubeUVHeight),E.push(R.mapUv),E.push(R.alphaMapUv),E.push(R.lightMapUv),E.push(R.aoMapUv),E.push(R.bumpMapUv),E.push(R.normalMapUv),E.push(R.displacementMapUv),E.push(R.emissiveMapUv),E.push(R.metalnessMapUv),E.push(R.roughnessMapUv),E.push(R.anisotropyMapUv),E.push(R.clearcoatMapUv),E.push(R.clearcoatNormalMapUv),E.push(R.clearcoatRoughnessMapUv),E.push(R.iridescenceMapUv),E.push(R.iridescenceThicknessMapUv),E.push(R.sheenColorMapUv),E.push(R.sheenRoughnessMapUv),E.push(R.specularMapUv),E.push(R.specularColorMapUv),E.push(R.specularIntensityMapUv),E.push(R.transmissionMapUv),E.push(R.thicknessMapUv),E.push(R.combine),E.push(R.fogExp2),E.push(R.sizeAttenuation),E.push(R.morphTargetsCount),E.push(R.morphAttributeCount),E.push(R.numDirLights),E.push(R.numPointLights),E.push(R.numSpotLights),E.push(R.numSpotLightMaps),E.push(R.numHemiLights),E.push(R.numRectAreaLights),E.push(R.numDirLightShadows),E.push(R.numPointLightShadows),E.push(R.numSpotLightShadows),E.push(R.numSpotLightShadowsWithMaps),E.push(R.numLightProbes),E.push(R.shadowMapType),E.push(R.toneMapping),E.push(R.numClippingPlanes),E.push(R.numClipIntersection),E.push(R.depthPacking)}function S(E,R){s.disableAll(),R.isWebGL2&&s.enable(0),R.supportsVertexTextures&&s.enable(1),R.instancing&&s.enable(2),R.instancingColor&&s.enable(3),R.matcap&&s.enable(4),R.envMap&&s.enable(5),R.normalMapObjectSpace&&s.enable(6),R.normalMapTangentSpace&&s.enable(7),R.clearcoat&&s.enable(8),R.iridescence&&s.enable(9),R.alphaTest&&s.enable(10),R.vertexColors&&s.enable(11),R.vertexAlphas&&s.enable(12),R.vertexUv1s&&s.enable(13),R.vertexUv2s&&s.enable(14),R.vertexUv3s&&s.enable(15),R.vertexTangents&&s.enable(16),R.anisotropy&&s.enable(17),R.alphaHash&&s.enable(18),R.batching&&s.enable(19),E.push(s.mask),s.disableAll(),R.fog&&s.enable(0),R.useFog&&s.enable(1),R.flatShading&&s.enable(2),R.logarithmicDepthBuffer&&s.enable(3),R.skinning&&s.enable(4),R.morphTargets&&s.enable(5),R.morphNormals&&s.enable(6),R.morphColors&&s.enable(7),R.premultipliedAlpha&&s.enable(8),R.shadowMapEnabled&&s.enable(9),R.useLegacyLights&&s.enable(10),R.doubleSided&&s.enable(11),R.flipSided&&s.enable(12),R.useDepthPacking&&s.enable(13),R.dithering&&s.enable(14),R.transmission&&s.enable(15),R.sheen&&s.enable(16),R.opaque&&s.enable(17),R.pointsUvs&&s.enable(18),R.decodeVideoTexture&&s.enable(19),E.push(s.mask)}function A(E){const R=p[E.type];let I;if(R){const O=ro[R];I=Z3.clone(O.uniforms)}else I=E.uniforms;return I}function T(E,R){let I;for(let O=0,U=u.length;O0?r.push(v):d.transparent===!0?i.push(v):t.push(v)}function l(h,f,d,p,y,g){const v=o(h,f,d,p,y,g);d.transmission>0?r.unshift(v):d.transparent===!0?i.unshift(v):t.unshift(v)}function u(h,f){t.length>1&&t.sort(h||OY),r.length>1&&r.sort(f||OP),i.length>1&&i.sort(f||OP)}function c(){for(let h=e,f=n.length;h=a.length?(o=new NP,a.push(o)):o=a[i],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function FY(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new J,color:new $e};break;case"SpotLight":t={position:new J,direction:new J,color:new $e,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new J,color:new $e,distance:0,decay:0};break;case"HemisphereLight":t={direction:new J,skyColor:new $e,groundColor:new $e};break;case"RectAreaLight":t={color:new $e,position:new J,halfWidth:new J,halfHeight:new J};break}return n[e.id]=t,t}}}function kY(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Re};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Re};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Re,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let UY=0;function GY(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function zY(n,e){const t=new FY,r=kY(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)i.probe.push(new J);const a=new J,o=new Dt,s=new Dt;function l(c,h){let f=0,d=0,p=0;for(let O=0;O<9;O++)i.probe[O].set(0,0,0);let y=0,g=0,v=0,x=0,S=0,A=0,T=0,w=0,C=0,P=0,E=0;c.sort(GY);const R=h===!0?Math.PI:1;for(let O=0,U=c.length;O0&&(e.isWebGL2?n.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=qe.LTC_FLOAT_1,i.rectAreaLTC2=qe.LTC_FLOAT_2):(i.rectAreaLTC1=qe.LTC_HALF_1,i.rectAreaLTC2=qe.LTC_HALF_2):n.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=qe.LTC_FLOAT_1,i.rectAreaLTC2=qe.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0&&(i.rectAreaLTC1=qe.LTC_HALF_1,i.rectAreaLTC2=qe.LTC_HALF_2)),i.ambient[0]=f,i.ambient[1]=d,i.ambient[2]=p;const I=i.hash;(I.directionalLength!==y||I.pointLength!==g||I.spotLength!==v||I.rectAreaLength!==x||I.hemiLength!==S||I.numDirectionalShadows!==A||I.numPointShadows!==T||I.numSpotShadows!==w||I.numSpotMaps!==C||I.numLightProbes!==E)&&(i.directional.length=y,i.spot.length=v,i.rectArea.length=x,i.point.length=g,i.hemi.length=S,i.directionalShadow.length=A,i.directionalShadowMap.length=A,i.pointShadow.length=T,i.pointShadowMap.length=T,i.spotShadow.length=w,i.spotShadowMap.length=w,i.directionalShadowMatrix.length=A,i.pointShadowMatrix.length=T,i.spotLightMatrix.length=w+C-P,i.spotLightMap.length=C,i.numSpotLightShadowsWithMaps=P,i.numLightProbes=E,I.directionalLength=y,I.pointLength=g,I.spotLength=v,I.rectAreaLength=x,I.hemiLength=S,I.numDirectionalShadows=A,I.numPointShadows=T,I.numSpotShadows=w,I.numSpotMaps=C,I.numLightProbes=E,i.version=UY++)}function u(c,h){let f=0,d=0,p=0,y=0,g=0;const v=h.matrixWorldInverse;for(let x=0,S=c.length;x=s.length?(l=new FP(n,e),s.push(l)):l=s[o],l}function i(){t=new WeakMap}return{get:r,dispose:i}}class R_ extends xr{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=L3,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class IT extends xr{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const VY=`void main() { gl_Position = vec4( position, 1.0 ); -}`,JJ=`uniform sampler2D shadow_pass; +}`,WY=`uniform sampler2D shadow_pass; uniform vec2 resolution; uniform float radius; #include @@ -3687,7 +3679,7 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`;function ZJ(n,e,t){let r=new ag;const i=new De,a=new De,o=new In,s=new ex({depthPacking:Ck}),l=new sC,u={},c=t.maxTextureSize,h={[Ko]:Ci,[Ci]:Ko,[ea]:ea},f=new sa({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new De},radius:{value:4}},vertexShader:jJ,fragmentShader:JJ}),d=f.clone();d.defines.HORIZONTAL_PASS=1;const p=new Jt;p.setAttribute("position",new _n(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const y=new ur(p,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=Y_;let v=this.type;this.render=function(w,C,P){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||w.length===0)return;const E=n.getRenderTarget(),R=n.getActiveCubeFace(),D=n.getActiveMipmapLevel(),B=n.state;B.setBlending(ks),B.buffers.color.setClear(1,1,1,1),B.buffers.depth.setTest(!0),B.setScissorTest(!1);const k=v!==ro&&this.type===ro,N=v===ro&&this.type!==ro;for(let z=0,X=w.length;zc||i.y>c)&&(i.x>c&&(a.x=Math.floor(c/K.x),i.x=a.x*K.x,H.mapSize.x=a.x),i.y>c&&(a.y=Math.floor(c/K.y),i.y=a.y*K.y,H.mapSize.y=a.y)),H.map===null||k===!0||N===!0){const le=this.type!==ro?{minFilter:sr,magFilter:sr}:{};H.map!==null&&H.map.dispose(),H.map=new oa(i.x,i.y,le),H.map.texture.name=ne.name+".shadowMap",H.camera.updateProjectionMatrix()}n.setRenderTarget(H.map),n.clear();const Q=H.getViewportCount();for(let le=0;le0||C.map&&C.alphaTest>0){const B=R.uuid,k=C.uuid;let N=u[B];N===void 0&&(N={},u[B]=N);let z=N[k];z===void 0&&(z=R.clone(),N[k]=z,C.addEventListener("dispose",b)),R=z}if(R.visible=C.visible,R.wireframe=C.wireframe,E===ro?R.side=C.shadowSide!==null?C.shadowSide:C.side:R.side=C.shadowSide!==null?C.shadowSide:h[C.side],R.alphaMap=C.alphaMap,R.alphaTest=C.alphaTest,R.map=C.map,R.clipShadows=C.clipShadows,R.clippingPlanes=C.clippingPlanes,R.clipIntersection=C.clipIntersection,R.displacementMap=C.displacementMap,R.displacementScale=C.displacementScale,R.displacementBias=C.displacementBias,R.wireframeLinewidth=C.wireframeLinewidth,R.linewidth=C.linewidth,P.isPointLight===!0&&R.isMeshDistanceMaterial===!0){const B=n.properties.get(R);B.light=P}return R}function A(w,C,P,E,R){if(w.visible===!1)return;if(w.layers.test(C.layers)&&(w.isMesh||w.isLine||w.isPoints)&&(w.castShadow||w.receiveShadow&&R===ro)&&(!w.frustumCulled||r.intersectsObject(w))){w.modelViewMatrix.multiplyMatrices(P.matrixWorldInverse,w.matrixWorld);const k=e.update(w),N=w.material;if(Array.isArray(N)){const z=k.groups;for(let X=0,ne=z.length;X=1):Q.indexOf("OpenGL ES")!==-1&&(K=parseFloat(/^OpenGL ES (\d)/.exec(Q)[1]),H=K>=2);let le=null,he={};const re=n.getParameter(n.SCISSOR_BOX),ce=n.getParameter(n.VIEWPORT),_e=new In().fromArray(re),ge=new In().fromArray(ce);function Be(ie,We,tt,Et){const St=new Uint8Array(4),Qt=n.createTexture();n.bindTexture(ie,Qt),n.texParameteri(ie,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(ie,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let fn=0;fnFe||V.height>Fe)&&(Re=Fe/Math.max(V.width,V.height)),Re<1||G===!0)if(typeof HTMLImageElement!="undefined"&&V instanceof HTMLImageElement||typeof HTMLCanvasElement!="undefined"&&V instanceof HTMLCanvasElement||typeof ImageBitmap!="undefined"&&V instanceof ImageBitmap){const Le=G?r_:Math.floor,st=Le(Re*V.width),Je=Le(Re*V.height);h===void 0&&(h=p(st,Je));const rt=de?p(st,Je):h;return rt.width=st,rt.height=Je,rt.getContext("2d").drawImage(V,0,0,st,Je),rt}else return"data"in V,V;return V}function g(V){return eb(V.width)&&eb(V.height)}function v(V){return s?!1:V.wrapS!==zr||V.wrapT!==zr||V.minFilter!==sr&&V.minFilter!==On}function x(V,G){return V.generateMipmaps&&G&&V.minFilter!==sr&&V.minFilter!==On}function S(V){n.generateMipmap(V)}function A(V,G,de,Fe,Re=!1){if(s===!1)return G;if(V!==null&&n[V]!==void 0)return n[V];let Le=G;if(G===n.RED&&(de===n.FLOAT&&(Le=n.R32F),de===n.HALF_FLOAT&&(Le=n.R16F),de===n.UNSIGNED_BYTE&&(Le=n.R8)),G===n.RED_INTEGER&&(de===n.UNSIGNED_BYTE&&(Le=n.R8UI),de===n.UNSIGNED_SHORT&&(Le=n.R16UI),de===n.UNSIGNED_INT&&(Le=n.R32UI),de===n.BYTE&&(Le=n.R8I),de===n.SHORT&&(Le=n.R16I),de===n.INT&&(Le=n.R32I)),G===n.RG&&(de===n.FLOAT&&(Le=n.RG32F),de===n.HALF_FLOAT&&(Le=n.RG16F),de===n.UNSIGNED_BYTE&&(Le=n.RG8)),G===n.RGBA){const st=Re?vv:Dn.getTransfer(Fe);de===n.FLOAT&&(Le=n.RGBA32F),de===n.HALF_FLOAT&&(Le=n.RGBA16F),de===n.UNSIGNED_BYTE&&(Le=st===kn?n.SRGB8_ALPHA8:n.RGBA8),de===n.UNSIGNED_SHORT_4_4_4_4&&(Le=n.RGBA4),de===n.UNSIGNED_SHORT_5_5_5_1&&(Le=n.RGB5_A1)}return(Le===n.R16F||Le===n.R32F||Le===n.RG16F||Le===n.RG32F||Le===n.RGBA16F||Le===n.RGBA32F)&&e.get("EXT_color_buffer_float"),Le}function b(V,G,de){return x(V,de)===!0||V.isFramebufferTexture&&V.minFilter!==sr&&V.minFilter!==On?Math.log2(Math.max(G.width,G.height))+1:V.mipmaps!==void 0&&V.mipmaps.length>0?V.mipmaps.length:V.isCompressedTexture&&Array.isArray(V.image)?G.mipmaps.length:1}function w(V){return V===sr||V===dv||V===Af?n.NEAREST:n.LINEAR}function C(V){const G=V.target;G.removeEventListener("dispose",C),E(G),G.isVideoTexture&&c.delete(G)}function P(V){const G=V.target;G.removeEventListener("dispose",P),D(G)}function E(V){const G=r.get(V);if(G.__webglInit===void 0)return;const de=V.source,Fe=f.get(de);if(Fe){const Re=Fe[G.__cacheKey];Re.usedTimes--,Re.usedTimes===0&&R(V),Object.keys(Fe).length===0&&f.delete(de)}r.remove(V)}function R(V){const G=r.get(V);n.deleteTexture(G.__webglTexture);const de=V.source,Fe=f.get(de);delete Fe[G.__cacheKey],o.memory.textures--}function D(V){const G=V.texture,de=r.get(V),Fe=r.get(G);if(Fe.__webglTexture!==void 0&&(n.deleteTexture(Fe.__webglTexture),o.memory.textures--),V.depthTexture&&V.depthTexture.dispose(),V.isWebGLCubeRenderTarget)for(let Re=0;Re<6;Re++){if(Array.isArray(de.__webglFramebuffer[Re]))for(let Le=0;Le=i.maxTextures,B+=1,V}function z(V){const G=[];return G.push(V.wrapS),G.push(V.wrapT),G.push(V.wrapR||0),G.push(V.magFilter),G.push(V.minFilter),G.push(V.anisotropy),G.push(V.internalFormat),G.push(V.format),G.push(V.type),G.push(V.generateMipmaps),G.push(V.premultiplyAlpha),G.push(V.flipY),G.push(V.unpackAlignment),G.push(V.colorSpace),G.join()}function X(V,G){const de=r.get(V);if(V.isVideoTexture&&et(V),V.isRenderTargetTexture===!1&&V.version>0&&de.__version!==V.version){const Fe=V.image;if(Fe!==null){if(Fe.complete!==!1){_e(de,V,G);return}}}t.bindTexture(n.TEXTURE_2D,de.__webglTexture,n.TEXTURE0+G)}function ne(V,G){const de=r.get(V);if(V.version>0&&de.__version!==V.version){_e(de,V,G);return}t.bindTexture(n.TEXTURE_2D_ARRAY,de.__webglTexture,n.TEXTURE0+G)}function H(V,G){const de=r.get(V);if(V.version>0&&de.__version!==V.version){_e(de,V,G);return}t.bindTexture(n.TEXTURE_3D,de.__webglTexture,n.TEXTURE0+G)}function K(V,G){const de=r.get(V);if(V.version>0&&de.__version!==V.version){ge(de,V,G);return}t.bindTexture(n.TEXTURE_CUBE_MAP,de.__webglTexture,n.TEXTURE0+G)}const Q={[Yl]:n.REPEAT,[zr]:n.CLAMP_TO_EDGE,[Bf]:n.MIRRORED_REPEAT},le={[sr]:n.NEAREST,[dv]:n.NEAREST_MIPMAP_NEAREST,[Af]:n.NEAREST_MIPMAP_LINEAR,[On]:n.LINEAR,[J_]:n.LINEAR_MIPMAP_NEAREST,[$o]:n.LINEAR_MIPMAP_LINEAR},he={[Rk]:n.NEVER,[Ok]:n.ALWAYS,[Pk]:n.LESS,[$T]:n.LEQUAL,[Dk]:n.EQUAL,[Bk]:n.GEQUAL,[Ik]:n.GREATER,[Lk]:n.NOTEQUAL};function re(V,G,de){if(de?(n.texParameteri(V,n.TEXTURE_WRAP_S,Q[G.wrapS]),n.texParameteri(V,n.TEXTURE_WRAP_T,Q[G.wrapT]),(V===n.TEXTURE_3D||V===n.TEXTURE_2D_ARRAY)&&n.texParameteri(V,n.TEXTURE_WRAP_R,Q[G.wrapR]),n.texParameteri(V,n.TEXTURE_MAG_FILTER,le[G.magFilter]),n.texParameteri(V,n.TEXTURE_MIN_FILTER,le[G.minFilter])):(n.texParameteri(V,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(V,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(V===n.TEXTURE_3D||V===n.TEXTURE_2D_ARRAY)&&n.texParameteri(V,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),G.wrapS!==zr||G.wrapT,n.texParameteri(V,n.TEXTURE_MAG_FILTER,w(G.magFilter)),n.texParameteri(V,n.TEXTURE_MIN_FILTER,w(G.minFilter)),G.minFilter!==sr&&G.minFilter),G.compareFunction&&(n.texParameteri(V,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(V,n.TEXTURE_COMPARE_FUNC,he[G.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const Fe=e.get("EXT_texture_filter_anisotropic");if(G.magFilter===sr||G.minFilter!==Af&&G.minFilter!==$o||G.type===Hr&&e.has("OES_texture_float_linear")===!1||s===!1&&G.type===bi&&e.has("OES_texture_half_float_linear")===!1)return;(G.anisotropy>1||r.get(G).__currentAnisotropy)&&(n.texParameterf(V,Fe.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(G.anisotropy,i.getMaxAnisotropy())),r.get(G).__currentAnisotropy=G.anisotropy)}}function ce(V,G){let de=!1;V.__webglInit===void 0&&(V.__webglInit=!0,G.addEventListener("dispose",C));const Fe=G.source;let Re=f.get(Fe);Re===void 0&&(Re={},f.set(Fe,Re));const Le=z(G);if(Le!==V.__cacheKey){Re[Le]===void 0&&(Re[Le]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,de=!0),Re[Le].usedTimes++;const st=Re[V.__cacheKey];st!==void 0&&(Re[V.__cacheKey].usedTimes--,st.usedTimes===0&&R(G)),V.__cacheKey=Le,V.__webglTexture=Re[Le].texture}return de}function _e(V,G,de){let Fe=n.TEXTURE_2D;(G.isDataArrayTexture||G.isCompressedArrayTexture)&&(Fe=n.TEXTURE_2D_ARRAY),G.isData3DTexture&&(Fe=n.TEXTURE_3D);const Re=ce(V,G),Le=G.source;t.bindTexture(Fe,V.__webglTexture,n.TEXTURE0+de);const st=r.get(Le);if(Le.version!==st.__version||Re===!0){t.activeTexture(n.TEXTURE0+de);const Je=Dn.getPrimaries(Dn.workingColorSpace),rt=G.colorSpace===ta?null:Dn.getPrimaries(G.colorSpace),_t=G.colorSpace===ta||Je===rt?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,G.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,G.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,G.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,_t);const ht=v(G)&&g(G.image)===!1;let ke=y(G.image,ht,!1,i.maxTextureSize);ke=Xe(G,ke);const vt=g(ke)||s,ft=a.convert(G.format,G.colorSpace);let it=a.convert(G.type),qe=A(G.internalFormat,ft,it,G.colorSpace,G.isVideoTexture);re(Fe,G,vt);let je;const oe=G.mipmaps,we=s&&G.isVideoTexture!==!0&&qe!==JT,Ue=st.__version===void 0||Re===!0,ot=b(G,ke,vt);if(G.isDepthTexture)qe=n.DEPTH_COMPONENT,s?G.type===Hr?qe=n.DEPTH_COMPONENT32F:G.type===Ps?qe=n.DEPTH_COMPONENT24:G.type===Nl?qe=n.DEPTH24_STENCIL8:qe=n.DEPTH_COMPONENT16:G.type,G.format===kl&&qe===n.DEPTH_COMPONENT&&G.type!==Z_&&G.type!==Ps&&(G.type=Ps,it=a.convert(G.type)),G.format===Hc&&qe===n.DEPTH_COMPONENT&&(qe=n.DEPTH_STENCIL,G.type!==Nl&&(G.type=Nl,it=a.convert(G.type))),Ue&&(we?t.texStorage2D(n.TEXTURE_2D,1,qe,ke.width,ke.height):t.texImage2D(n.TEXTURE_2D,0,qe,ke.width,ke.height,0,ft,it,null));else if(G.isDataTexture)if(oe.length>0&&vt){we&&Ue&&t.texStorage2D(n.TEXTURE_2D,ot,qe,oe[0].width,oe[0].height);for(let ue=0,ie=oe.length;ue>=1,ie>>=1}}else if(oe.length>0&&vt){we&&Ue&&t.texStorage2D(n.TEXTURE_2D,ot,qe,oe[0].width,oe[0].height);for(let ue=0,ie=oe.length;ue0&&Ue++,t.texStorage2D(n.TEXTURE_CUBE_MAP,Ue,je,ke[0].width,ke[0].height));for(let ue=0;ue<6;ue++)if(ht){oe?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+ue,0,0,0,ke[ue].width,ke[ue].height,it,qe,ke[ue].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+ue,0,je,ke[ue].width,ke[ue].height,0,it,qe,ke[ue].data);for(let ie=0;ie>Le),ke=Math.max(1,G.height>>Le);Re===n.TEXTURE_3D||Re===n.TEXTURE_2D_ARRAY?t.texImage3D(Re,Le,rt,ht,ke,G.depth,0,st,Je,null):t.texImage2D(Re,Le,rt,ht,ke,0,st,Je,null)}t.bindFramebuffer(n.FRAMEBUFFER,V),me(G)?l.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,Fe,Re,r.get(de).__webglTexture,0,Pe(G)):(Re===n.TEXTURE_2D||Re>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&Re<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,Fe,Re,r.get(de).__webglTexture,Le),t.bindFramebuffer(n.FRAMEBUFFER,null)}function Ye(V,G,de){if(n.bindRenderbuffer(n.RENDERBUFFER,V),G.depthBuffer&&!G.stencilBuffer){let Fe=s===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(de||me(G)){const Re=G.depthTexture;Re&&Re.isDepthTexture&&(Re.type===Hr?Fe=n.DEPTH_COMPONENT32F:Re.type===Ps&&(Fe=n.DEPTH_COMPONENT24));const Le=Pe(G);me(G)?l.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,Le,Fe,G.width,G.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,Le,Fe,G.width,G.height)}else n.renderbufferStorage(n.RENDERBUFFER,Fe,G.width,G.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,V)}else if(G.depthBuffer&&G.stencilBuffer){const Fe=Pe(G);de&&me(G)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,Fe,n.DEPTH24_STENCIL8,G.width,G.height):me(G)?l.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,Fe,n.DEPTH24_STENCIL8,G.width,G.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,G.width,G.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,V)}else{const Fe=G.isWebGLMultipleRenderTargets===!0?G.texture:[G.texture];for(let Re=0;Re0){de.__webglFramebuffer[Je]=[];for(let rt=0;rt0){de.__webglFramebuffer=[];for(let Je=0;Je0&&me(V)===!1){const Je=Le?G:[G];de.__webglMultisampledFramebuffer=n.createFramebuffer(),de.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,de.__webglMultisampledFramebuffer);for(let rt=0;rt0)for(let rt=0;rt0)for(let rt=0;rt0&&me(V)===!1){const G=V.isWebGLMultipleRenderTargets?V.texture:[V.texture],de=V.width,Fe=V.height;let Re=n.COLOR_BUFFER_BIT;const Le=[],st=V.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,Je=r.get(V),rt=V.isWebGLMultipleRenderTargets===!0;if(rt)for(let _t=0;_t0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&G.__useRenderToTexture!==!1}function et(V){const G=o.render.frame;c.get(V)!==G&&(c.set(V,G),V.update())}function Xe(V,G){const de=V.colorSpace,Fe=V.format,Re=V.type;return V.isCompressedTexture===!0||V.isVideoTexture===!0||V.format===n_||de!==Qo&&de!==ta&&Dn.getTransfer(de)===kn&&s===!1&&(e.has("EXT_sRGB")===!0&&Fe===ii?(V.format=n_,V.minFilter=On,V.generateMipmaps=!1):G=eC.sRGBToLinear(G)),G}this.allocateTextureUnit=N,this.resetTextureUnits=k,this.setTexture2D=X,this.setTexture2DArray=ne,this.setTexture3D=H,this.setTextureCube=K,this.rebindTextures=Ie,this.setupRenderTarget=Z,this.updateRenderTargetMipmap=Se,this.updateMultisampleRenderTarget=ve,this.setupDepthRenderbuffer=Ne,this.setupFrameBufferTexture=Be,this.useMultisampledRTT=me}function Zk(n,e,t){const r=t.isWebGL2;function i(a,o=ta){let s;const l=Dn.getTransfer(o);if(a===Xo)return n.UNSIGNED_BYTE;if(a===HT)return n.UNSIGNED_SHORT_4_4_4_4;if(a===VT)return n.UNSIGNED_SHORT_5_5_5_1;if(a===vk)return n.BYTE;if(a===gk)return n.SHORT;if(a===Z_)return n.UNSIGNED_SHORT;if(a===zT)return n.INT;if(a===Ps)return n.UNSIGNED_INT;if(a===Hr)return n.FLOAT;if(a===bi)return r?n.HALF_FLOAT:(s=e.get("OES_texture_half_float"),s!==null?s.HALF_FLOAT_OES:null);if(a===mk)return n.ALPHA;if(a===ii)return n.RGBA;if(a===yk)return n.LUMINANCE;if(a===_k)return n.LUMINANCE_ALPHA;if(a===kl)return n.DEPTH_COMPONENT;if(a===Hc)return n.DEPTH_STENCIL;if(a===n_)return s=e.get("EXT_sRGB"),s!==null?s.SRGB_ALPHA_EXT:null;if(a===WT)return n.RED;if(a===XT)return n.RED_INTEGER;if(a===xk)return n.RG;if(a===YT)return n.RG_INTEGER;if(a===jT)return n.RGBA_INTEGER;if(a===M0||a===w0||a===b0||a===T0)if(l===kn)if(s=e.get("WEBGL_compressed_texture_s3tc_srgb"),s!==null){if(a===M0)return s.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(a===w0)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(a===b0)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(a===T0)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(s=e.get("WEBGL_compressed_texture_s3tc"),s!==null){if(a===M0)return s.COMPRESSED_RGB_S3TC_DXT1_EXT;if(a===w0)return s.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(a===b0)return s.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(a===T0)return s.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(a===Cw||a===Ew||a===Rw||a===Pw)if(s=e.get("WEBGL_compressed_texture_pvrtc"),s!==null){if(a===Cw)return s.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(a===Ew)return s.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(a===Rw)return s.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(a===Pw)return s.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(a===JT)return s=e.get("WEBGL_compressed_texture_etc1"),s!==null?s.COMPRESSED_RGB_ETC1_WEBGL:null;if(a===Dw||a===Iw)if(s=e.get("WEBGL_compressed_texture_etc"),s!==null){if(a===Dw)return l===kn?s.COMPRESSED_SRGB8_ETC2:s.COMPRESSED_RGB8_ETC2;if(a===Iw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:s.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(a===Lw||a===Bw||a===Ow||a===Fw||a===Nw||a===kw||a===Uw||a===Gw||a===zw||a===Hw||a===Vw||a===Ww||a===Xw||a===Yw)if(s=e.get("WEBGL_compressed_texture_astc"),s!==null){if(a===Lw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:s.COMPRESSED_RGBA_ASTC_4x4_KHR;if(a===Bw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:s.COMPRESSED_RGBA_ASTC_5x4_KHR;if(a===Ow)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:s.COMPRESSED_RGBA_ASTC_5x5_KHR;if(a===Fw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:s.COMPRESSED_RGBA_ASTC_6x5_KHR;if(a===Nw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:s.COMPRESSED_RGBA_ASTC_6x6_KHR;if(a===kw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:s.COMPRESSED_RGBA_ASTC_8x5_KHR;if(a===Uw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:s.COMPRESSED_RGBA_ASTC_8x6_KHR;if(a===Gw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:s.COMPRESSED_RGBA_ASTC_8x8_KHR;if(a===zw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:s.COMPRESSED_RGBA_ASTC_10x5_KHR;if(a===Hw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:s.COMPRESSED_RGBA_ASTC_10x6_KHR;if(a===Vw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:s.COMPRESSED_RGBA_ASTC_10x8_KHR;if(a===Ww)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:s.COMPRESSED_RGBA_ASTC_10x10_KHR;if(a===Xw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:s.COMPRESSED_RGBA_ASTC_12x10_KHR;if(a===Yw)return l===kn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:s.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(a===C0||a===jw||a===Jw)if(s=e.get("EXT_texture_compression_bptc"),s!==null){if(a===C0)return l===kn?s.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:s.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(a===jw)return s.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(a===Jw)return s.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(a===Sk||a===Zw||a===Kw||a===qw)if(s=e.get("EXT_texture_compression_rgtc"),s!==null){if(a===C0)return s.COMPRESSED_RED_RGTC1_EXT;if(a===Zw)return s.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(a===Kw)return s.COMPRESSED_RED_GREEN_RGTC2_EXT;if(a===qw)return s.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return a===Nl?r?n.UNSIGNED_INT_24_8:(s=e.get("WEBGL_depth_texture"),s!==null?s.UNSIGNED_INT_24_8_WEBGL:null):n[a]!==void 0?n[a]:null}return{convert:i}}class Kk extends Hn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}let Ds=class extends yn{constructor(){super(),this.isGroup=!0,this.type="Group"}};const $J={type:"move"};class J1{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Ds,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Ds,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new J,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new J),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Ds,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new J,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new J),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const r of e.hand.values())this._getHandJoint(t,r)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,r){let i=null,a=null,o=null;const s=this._targetRay,l=this._grip,u=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(u&&e.hand){o=!0;for(const y of e.hand.values()){const g=t.getJointPose(y,r),v=this._getHandJoint(u,y);g!==null&&(v.matrix.fromArray(g.transform.matrix),v.matrix.decompose(v.position,v.rotation,v.scale),v.matrixWorldNeedsUpdate=!0,v.jointRadius=g.radius),v.visible=g!==null}const c=u.joints["index-finger-tip"],h=u.joints["thumb-tip"],f=c.position.distanceTo(h.position),d=.02,p=.005;u.inputState.pinching&&f>d+p?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&f<=d-p&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(a=t.getPose(e.gripSpace,r),a!==null&&(l.matrix.fromArray(a.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,a.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(a.linearVelocity)):l.hasLinearVelocity=!1,a.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(a.angularVelocity)):l.hasAngularVelocity=!1));s!==null&&(i=t.getPose(e.targetRaySpace,r),i===null&&a!==null&&(i=a),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,this.dispatchEvent($J)))}return s!==null&&(s.visible=i!==null),l!==null&&(l.visible=a!==null),u!==null&&(u.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const r=new Ds;r.matrixAutoUpdate=!1,r.visible=!1,e.joints[t.jointName]=r,e.add(r)}return e.joints[t.jointName]}}class QJ extends is{constructor(e,t){super();const r=this;let i=null,a=1,o=null,s="local-floor",l=1,u=null,c=null,h=null,f=null,d=null,p=null;const y=t.getContextAttributes();let g=null,v=null;const x=[],S=[],A=new De;let b=null;const w=new Hn;w.layers.enable(1),w.viewport=new In;const C=new Hn;C.layers.enable(2),C.viewport=new In;const P=[w,C],E=new Kk;E.layers.enable(1),E.layers.enable(2);let R=null,D=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(re){let ce=x[re];return ce===void 0&&(ce=new J1,x[re]=ce),ce.getTargetRaySpace()},this.getControllerGrip=function(re){let ce=x[re];return ce===void 0&&(ce=new J1,x[re]=ce),ce.getGripSpace()},this.getHand=function(re){let ce=x[re];return ce===void 0&&(ce=new J1,x[re]=ce),ce.getHandSpace()};function B(re){const ce=S.indexOf(re.inputSource);if(ce===-1)return;const _e=x[ce];_e!==void 0&&(_e.update(re.inputSource,re.frame,u||o),_e.dispatchEvent({type:re.type,data:re.inputSource}))}function k(){i.removeEventListener("select",B),i.removeEventListener("selectstart",B),i.removeEventListener("selectend",B),i.removeEventListener("squeeze",B),i.removeEventListener("squeezestart",B),i.removeEventListener("squeezeend",B),i.removeEventListener("end",k),i.removeEventListener("inputsourceschange",N);for(let re=0;re=0&&(S[ge]=null,x[ge].disconnect(_e))}for(let ce=0;ce=S.length){S.push(_e),ge=Ye;break}else if(S[Ye]===null){S[Ye]=_e,ge=Ye;break}if(ge===-1)break}const Be=x[ge];Be&&Be.connect(_e)}}const z=new J,X=new J;function ne(re,ce,_e){z.setFromMatrixPosition(ce.matrixWorld),X.setFromMatrixPosition(_e.matrixWorld);const ge=z.distanceTo(X),Be=ce.projectionMatrix.elements,Ye=_e.projectionMatrix.elements,Ke=Be[14]/(Be[10]-1),Ne=Be[14]/(Be[10]+1),Ie=(Be[9]+1)/Be[5],Z=(Be[9]-1)/Be[5],Se=(Be[8]-1)/Be[0],ve=(Ye[8]+1)/Ye[0],Pe=Ke*Se,me=Ke*ve,et=ge/(-Se+ve),Xe=et*-Se;ce.matrixWorld.decompose(re.position,re.quaternion,re.scale),re.translateX(Xe),re.translateZ(et),re.matrixWorld.compose(re.position,re.quaternion,re.scale),re.matrixWorldInverse.copy(re.matrixWorld).invert();const V=Ke+et,G=Ne+et,de=Pe-Xe,Fe=me+(ge-Xe),Re=Ie*Ne/G*V,Le=Z*Ne/G*V;re.projectionMatrix.makePerspective(de,Fe,Re,Le,V,G),re.projectionMatrixInverse.copy(re.projectionMatrix).invert()}function H(re,ce){ce===null?re.matrixWorld.copy(re.matrix):re.matrixWorld.multiplyMatrices(ce.matrixWorld,re.matrix),re.matrixWorldInverse.copy(re.matrixWorld).invert()}this.updateCamera=function(re){if(i===null)return;E.near=C.near=w.near=re.near,E.far=C.far=w.far=re.far,(R!==E.near||D!==E.far)&&(i.updateRenderState({depthNear:E.near,depthFar:E.far}),R=E.near,D=E.far);const ce=re.parent,_e=E.cameras;H(E,ce);for(let ge=0;ge<_e.length;ge++)H(_e[ge],ce);_e.length===2?ne(E,w,C):E.projectionMatrix.copy(w.projectionMatrix),K(re,E,ce)};function K(re,ce,_e){_e===null?re.matrix.copy(ce.matrixWorld):(re.matrix.copy(_e.matrixWorld),re.matrix.invert(),re.matrix.multiply(ce.matrixWorld)),re.matrix.decompose(re.position,re.quaternion,re.scale),re.updateMatrixWorld(!0),re.projectionMatrix.copy(ce.projectionMatrix),re.projectionMatrixInverse.copy(ce.projectionMatrixInverse),re.isPerspectiveCamera&&(re.fov=Nf*2*Math.atan(1/re.projectionMatrix.elements[5]),re.zoom=1)}this.getCamera=function(){return E},this.getFoveation=function(){if(!(f===null&&d===null))return l},this.setFoveation=function(re){l=re,f!==null&&(f.fixedFoveation=re),d!==null&&d.fixedFoveation!==void 0&&(d.fixedFoveation=re)};let Q=null;function le(re,ce){if(c=ce.getViewerPose(u||o),p=ce,c!==null){const _e=c.views;d!==null&&(e.setRenderTargetFramebuffer(v,d.framebuffer),e.setRenderTarget(v));let ge=!1;_e.length!==E.cameras.length&&(E.cameras.length=0,ge=!0);for(let Be=0;Be<_e.length;Be++){const Ye=_e[Be];let Ke=null;if(d!==null)Ke=d.getViewport(Ye);else{const Ie=h.getViewSubImage(f,Ye);Ke=Ie.viewport,Be===0&&(e.setRenderTargetTextures(v,Ie.colorTexture,f.ignoreDepthValues?void 0:Ie.depthStencilTexture),e.setRenderTarget(v))}let Ne=P[Be];Ne===void 0&&(Ne=new Hn,Ne.layers.enable(Be),Ne.viewport=new In,P[Be]=Ne),Ne.matrix.fromArray(Ye.transform.matrix),Ne.matrix.decompose(Ne.position,Ne.quaternion,Ne.scale),Ne.projectionMatrix.fromArray(Ye.projectionMatrix),Ne.projectionMatrixInverse.copy(Ne.projectionMatrix).invert(),Ne.viewport.set(Ke.x,Ke.y,Ke.width,Ke.height),Be===0&&(E.matrix.copy(Ne.matrix),E.matrix.decompose(E.position,E.quaternion,E.scale)),ge===!0&&E.cameras.push(Ne)}}for(let _e=0;_e0&&(g.alphaTest.value=v.alphaTest);const x=e.get(v).envMap;if(x&&(g.envMap.value=x,g.flipEnvMap.value=x.isCubeTexture&&x.isRenderTargetTexture===!1?-1:1,g.reflectivity.value=v.reflectivity,g.ior.value=v.ior,g.refractionRatio.value=v.refractionRatio),v.lightMap){g.lightMap.value=v.lightMap;const S=n._useLegacyLights===!0?Math.PI:1;g.lightMapIntensity.value=v.lightMapIntensity*S,t(v.lightMap,g.lightMapTransform)}v.aoMap&&(g.aoMap.value=v.aoMap,g.aoMapIntensity.value=v.aoMapIntensity,t(v.aoMap,g.aoMapTransform))}function o(g,v){g.diffuse.value.copy(v.color),g.opacity.value=v.opacity,v.map&&(g.map.value=v.map,t(v.map,g.mapTransform))}function s(g,v){g.dashSize.value=v.dashSize,g.totalSize.value=v.dashSize+v.gapSize,g.scale.value=v.scale}function l(g,v,x,S){g.diffuse.value.copy(v.color),g.opacity.value=v.opacity,g.size.value=v.size*x,g.scale.value=S*.5,v.map&&(g.map.value=v.map,t(v.map,g.uvTransform)),v.alphaMap&&(g.alphaMap.value=v.alphaMap,t(v.alphaMap,g.alphaMapTransform)),v.alphaTest>0&&(g.alphaTest.value=v.alphaTest)}function u(g,v){g.diffuse.value.copy(v.color),g.opacity.value=v.opacity,g.rotation.value=v.rotation,v.map&&(g.map.value=v.map,t(v.map,g.mapTransform)),v.alphaMap&&(g.alphaMap.value=v.alphaMap,t(v.alphaMap,g.alphaMapTransform)),v.alphaTest>0&&(g.alphaTest.value=v.alphaTest)}function c(g,v){g.specular.value.copy(v.specular),g.shininess.value=Math.max(v.shininess,1e-4)}function h(g,v){v.gradientMap&&(g.gradientMap.value=v.gradientMap)}function f(g,v){g.metalness.value=v.metalness,v.metalnessMap&&(g.metalnessMap.value=v.metalnessMap,t(v.metalnessMap,g.metalnessMapTransform)),g.roughness.value=v.roughness,v.roughnessMap&&(g.roughnessMap.value=v.roughnessMap,t(v.roughnessMap,g.roughnessMapTransform)),e.get(v).envMap&&(g.envMapIntensity.value=v.envMapIntensity)}function d(g,v,x){g.ior.value=v.ior,v.sheen>0&&(g.sheenColor.value.copy(v.sheenColor).multiplyScalar(v.sheen),g.sheenRoughness.value=v.sheenRoughness,v.sheenColorMap&&(g.sheenColorMap.value=v.sheenColorMap,t(v.sheenColorMap,g.sheenColorMapTransform)),v.sheenRoughnessMap&&(g.sheenRoughnessMap.value=v.sheenRoughnessMap,t(v.sheenRoughnessMap,g.sheenRoughnessMapTransform))),v.clearcoat>0&&(g.clearcoat.value=v.clearcoat,g.clearcoatRoughness.value=v.clearcoatRoughness,v.clearcoatMap&&(g.clearcoatMap.value=v.clearcoatMap,t(v.clearcoatMap,g.clearcoatMapTransform)),v.clearcoatRoughnessMap&&(g.clearcoatRoughnessMap.value=v.clearcoatRoughnessMap,t(v.clearcoatRoughnessMap,g.clearcoatRoughnessMapTransform)),v.clearcoatNormalMap&&(g.clearcoatNormalMap.value=v.clearcoatNormalMap,t(v.clearcoatNormalMap,g.clearcoatNormalMapTransform),g.clearcoatNormalScale.value.copy(v.clearcoatNormalScale),v.side===Ci&&g.clearcoatNormalScale.value.negate())),v.iridescence>0&&(g.iridescence.value=v.iridescence,g.iridescenceIOR.value=v.iridescenceIOR,g.iridescenceThicknessMinimum.value=v.iridescenceThicknessRange[0],g.iridescenceThicknessMaximum.value=v.iridescenceThicknessRange[1],v.iridescenceMap&&(g.iridescenceMap.value=v.iridescenceMap,t(v.iridescenceMap,g.iridescenceMapTransform)),v.iridescenceThicknessMap&&(g.iridescenceThicknessMap.value=v.iridescenceThicknessMap,t(v.iridescenceThicknessMap,g.iridescenceThicknessMapTransform))),v.transmission>0&&(g.transmission.value=v.transmission,g.transmissionSamplerMap.value=x.texture,g.transmissionSamplerSize.value.set(x.width,x.height),v.transmissionMap&&(g.transmissionMap.value=v.transmissionMap,t(v.transmissionMap,g.transmissionMapTransform)),g.thickness.value=v.thickness,v.thicknessMap&&(g.thicknessMap.value=v.thicknessMap,t(v.thicknessMap,g.thicknessMapTransform)),g.attenuationDistance.value=v.attenuationDistance,g.attenuationColor.value.copy(v.attenuationColor)),v.anisotropy>0&&(g.anisotropyVector.value.set(v.anisotropy*Math.cos(v.anisotropyRotation),v.anisotropy*Math.sin(v.anisotropyRotation)),v.anisotropyMap&&(g.anisotropyMap.value=v.anisotropyMap,t(v.anisotropyMap,g.anisotropyMapTransform))),g.specularIntensity.value=v.specularIntensity,g.specularColor.value.copy(v.specularColor),v.specularColorMap&&(g.specularColorMap.value=v.specularColorMap,t(v.specularColorMap,g.specularColorMapTransform)),v.specularIntensityMap&&(g.specularIntensityMap.value=v.specularIntensityMap,t(v.specularIntensityMap,g.specularIntensityMapTransform))}function p(g,v){v.matcap&&(g.matcap.value=v.matcap)}function y(g,v){const x=e.get(v).light;g.referencePosition.value.setFromMatrixPosition(x.matrixWorld),g.nearDistance.value=x.shadow.camera.near,g.farDistance.value=x.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function tZ(n,e,t,r){let i={},a={},o=[];const s=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(x,S){const A=S.program;r.uniformBlockBinding(x,A)}function u(x,S){let A=i[x.id];A===void 0&&(p(x),A=c(x),i[x.id]=A,x.addEventListener("dispose",g));const b=S.program;r.updateUBOMapping(x,b);const w=e.render.frame;a[x.id]!==w&&(f(x),a[x.id]=w)}function c(x){const S=h();x.__bindingPointIndex=S;const A=n.createBuffer(),b=x.__size,w=x.usage;return n.bindBuffer(n.UNIFORM_BUFFER,A),n.bufferData(n.UNIFORM_BUFFER,b,w),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,S,A),A}function h(){for(let x=0;x0&&(A+=b-w),x.__size=A,x.__cache={},this}function y(x){const S={boundary:0,storage:0};return typeof x=="number"||typeof x=="boolean"?(S.boundary=4,S.storage=4):x.isVector2?(S.boundary=8,S.storage=8):x.isVector3||x.isColor?(S.boundary=16,S.storage=12):x.isVector4?(S.boundary=16,S.storage=16):x.isMatrix3?(S.boundary=48,S.storage=48):x.isMatrix4?(S.boundary=64,S.storage=64):x.isTexture,S}function g(x){const S=x.target;S.removeEventListener("dispose",g);const A=o.indexOf(S.__bindingPointIndex);o.splice(A,1),n.deleteBuffer(i[S.id]),delete i[S.id],delete a[S.id]}function v(){for(const x in i)n.deleteBuffer(i[x]);o=[],i={},a={}}return{bind:l,update:u,dispose:v}}class lC{constructor(e={}){const{canvas:t=Nk(),context:r=null,depth:i=!0,stencil:a=!0,alpha:o=!1,antialias:s=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:u=!1,powerPreference:c="default",failIfMajorPerformanceCaveat:h=!1}=e;this.isWebGLRenderer=!0;let f;r!==null?f=r.getContextAttributes().alpha:f=o;const d=new Uint32Array(4),p=new Int32Array(4);let y=null,g=null;const v=[],x=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Tr,this._useLegacyLights=!1,this.toneMapping=Wo,this.toneMappingExposure=1;const S=this;let A=!1,b=0,w=0,C=null,P=-1,E=null;const R=new In,D=new In;let B=null;const k=new at(0);let N=0,z=t.width,X=t.height,ne=1,H=null,K=null;const Q=new In(0,0,z,X),le=new In(0,0,z,X);let he=!1;const re=new ag;let ce=!1,_e=!1,ge=null;const Be=new Bt,Ye=new De,Ke=new J,Ne={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Ie(){return C===null?ne:1}let Z=r;function Se(O,j){for(let q=0;q{function xe(){if(ae.forEach(function(Ae){Xe.get(Ae).currentProgram.isReady()&&ae.delete(Ae)}),ae.size===0){te(O);return}setTimeout(xe,10)}ve.get("KHR_parallel_shader_compile")!==null?xe():setTimeout(xe,10)})};let fn=null;function Rn(O){fn&&fn(O)}function Fn(){Mr.stop()}function pn(){Mr.start()}const Mr=new Vk;Mr.setAnimationLoop(Rn),typeof self!="undefined"&&Mr.setContext(self),this.setAnimationLoop=function(O){fn=O,ot.setAnimationLoop(O),O===null?Mr.stop():Mr.start()},ot.addEventListener("sessionstart",Fn),ot.addEventListener("sessionend",pn),this.render=function(O,j){if(j!==void 0&&j.isCamera!==!0||A===!0)return;O.matrixWorldAutoUpdate===!0&&O.updateMatrixWorld(),j.parent===null&&j.matrixWorldAutoUpdate===!0&&j.updateMatrixWorld(),ot.enabled===!0&&ot.isPresenting===!0&&(ot.cameraAutoUpdate===!0&&ot.updateCamera(j),j=ot.getCamera()),O.isScene===!0&&O.onBeforeRender(S,O,j,C),g=_t.get(O,x.length),g.init(),x.push(g),Be.multiplyMatrices(j.projectionMatrix,j.matrixWorldInverse),re.setFromProjectionMatrix(Be),_e=this.localClippingEnabled,ce=ht.init(this.clippingPlanes,_e),y=rt.get(O,v.length),y.init(),v.push(y),Li(O,j,0,S.sortObjects),y.finish(),S.sortObjects===!0&&y.sort(H,K),this.info.render.frame++,ce===!0&&ht.beginShadows();const q=g.state.shadowsArray;if(ke.render(q,O,j),ce===!0&&ht.endShadows(),this.info.autoReset===!0&&this.info.reset(),vt.render(y,O),g.setupLights(S._useLegacyLights),j.isArrayCamera){const ae=j.cameras;for(let te=0,xe=ae.length;te0?g=x[x.length-1]:g=null,v.pop(),v.length>0?y=v[v.length-1]:y=null};function Li(O,j,q,ae){if(O.visible===!1)return;if(O.layers.test(j.layers)){if(O.isGroup)q=O.renderOrder;else if(O.isLOD)O.autoUpdate===!0&&O.update(j);else if(O.isLight)g.pushLight(O),O.castShadow&&g.pushShadow(O);else if(O.isSprite){if(!O.frustumCulled||re.intersectsSprite(O)){ae&&Ke.setFromMatrixPosition(O.matrixWorld).applyMatrix4(Be);const Ae=Le.update(O),Ce=O.material;Ce.visible&&y.push(O,Ae,Ce,q,Ke.z,null)}}else if((O.isMesh||O.isLine||O.isPoints)&&(!O.frustumCulled||re.intersectsObject(O))){const Ae=Le.update(O),Ce=O.material;if(ae&&(O.boundingSphere!==void 0?(O.boundingSphere===null&&O.computeBoundingSphere(),Ke.copy(O.boundingSphere.center)):(Ae.boundingSphere===null&&Ae.computeBoundingSphere(),Ke.copy(Ae.boundingSphere.center)),Ke.applyMatrix4(O.matrixWorld).applyMatrix4(Be)),Array.isArray(Ce)){const Te=Ae.groups;for(let dt=0,Ge=Te.length;dt0&&lu(te,xe,j,q),ae&&me.viewport(R.copy(ae)),te.length>0&&ha(te,j,q),xe.length>0&&ha(xe,j,q),Ae.length>0&&ha(Ae,j,q),me.buffers.depth.setTest(!0),me.buffers.depth.setMask(!0),me.buffers.color.setMask(!0),me.setPolygonOffset(!1)}function lu(O,j,q,ae){if((q.isScene===!0?q.overrideMaterial:null)!==null)return;const xe=Pe.isWebGL2;ge===null&&(ge=new oa(1,1,{generateMipmaps:!0,type:ve.has("EXT_color_buffer_half_float")?bi:Xo,minFilter:$o,samples:xe?4:0})),S.getDrawingBufferSize(Ye),xe?ge.setSize(Ye.x,Ye.y):ge.setSize(r_(Ye.x),r_(Ye.y));const Ae=S.getRenderTarget();S.setRenderTarget(ge),S.getClearColor(k),N=S.getClearAlpha(),N<1&&S.setClearColor(16777215,.5),S.clear();const Ce=S.toneMapping;S.toneMapping=Wo,ha(O,q,ae),V.updateMultisampleRenderTarget(ge),V.updateRenderTargetMipmap(ge);let Te=!1;for(let dt=0,Ge=j.length;dt0),ze=!!q.morphAttributes.position,mt=!!q.morphAttributes.normal,Rt=!!q.morphAttributes.color;let It=Wo;ae.toneMapped&&(C===null||C.isXRRenderTarget===!0)&&(It=S.toneMapping);const zt=q.morphAttributes.position||q.morphAttributes.normal||q.morphAttributes.color,pt=zt!==void 0?zt.length:0,Qe=Xe.get(ae),an=g.state.lights;if(ce===!0&&(_e===!0||O!==E)){const Kt=O===E&&ae.id===P;ht.setState(ae,O,Kt)}let Ot=!1;ae.version===Qe.__version?(Qe.needsLights&&Qe.lightsStateVersion!==an.state.version||Qe.outputColorSpace!==Ce||te.isBatchedMesh&&Qe.batching===!1||!te.isBatchedMesh&&Qe.batching===!0||te.isInstancedMesh&&Qe.instancing===!1||!te.isInstancedMesh&&Qe.instancing===!0||te.isSkinnedMesh&&Qe.skinning===!1||!te.isSkinnedMesh&&Qe.skinning===!0||te.isInstancedMesh&&Qe.instancingColor===!0&&te.instanceColor===null||te.isInstancedMesh&&Qe.instancingColor===!1&&te.instanceColor!==null||Qe.envMap!==Te||ae.fog===!0&&Qe.fog!==xe||Qe.numClippingPlanes!==void 0&&(Qe.numClippingPlanes!==ht.numPlanes||Qe.numIntersection!==ht.numIntersection)||Qe.vertexAlphas!==dt||Qe.vertexTangents!==Ge||Qe.morphTargets!==ze||Qe.morphNormals!==mt||Qe.morphColors!==Rt||Qe.toneMapping!==It||Pe.isWebGL2===!0&&Qe.morphTargetsCount!==pt)&&(Ot=!0):(Ot=!0,Qe.__version=ae.version);let Nt=Qe.currentProgram;Ot===!0&&(Nt=Zt(ae,j,te));let Pn=!1,nr=!1,Xn=!1;const gn=Nt.getUniforms(),hn=Qe.uniforms;if(me.useProgram(Nt.program)&&(Pn=!0,nr=!0,Xn=!0),ae.id!==P&&(P=ae.id,nr=!0),Pn||E!==O){gn.setValue(Z,"projectionMatrix",O.projectionMatrix),gn.setValue(Z,"viewMatrix",O.matrixWorldInverse);const Kt=gn.map.cameraPosition;Kt!==void 0&&Kt.setValue(Z,Ke.setFromMatrixPosition(O.matrixWorld)),Pe.logarithmicDepthBuffer&&gn.setValue(Z,"logDepthBufFC",2/(Math.log(O.far+1)/Math.LN2)),(ae.isMeshPhongMaterial||ae.isMeshToonMaterial||ae.isMeshLambertMaterial||ae.isMeshBasicMaterial||ae.isMeshStandardMaterial||ae.isShaderMaterial)&&gn.setValue(Z,"isOrthographic",O.isOrthographicCamera===!0),E!==O&&(E=O,nr=!0,Xn=!0)}if(te.isSkinnedMesh){gn.setOptional(Z,te,"bindMatrix"),gn.setOptional(Z,te,"bindMatrixInverse");const Kt=te.skeleton;Kt&&Pe.floatVertexTextures&&(Kt.boneTexture===null&&Kt.computeBoneTexture(),gn.setValue(Z,"boneTexture",Kt.boneTexture,V))}te.isBatchedMesh&&(gn.setOptional(Z,te,"batchingTexture"),gn.setValue(Z,"batchingTexture",te._matricesTexture,V));const qn=q.morphAttributes;if((qn.position!==void 0||qn.normal!==void 0||qn.color!==void 0&&Pe.isWebGL2===!0)&&ft.update(te,q,Nt),(nr||Qe.receiveShadow!==te.receiveShadow)&&(Qe.receiveShadow=te.receiveShadow,gn.setValue(Z,"receiveShadow",te.receiveShadow)),ae.isMeshGouraudMaterial&&ae.envMap!==null&&(hn.envMap.value=Te,hn.flipEnvMap.value=Te.isCubeTexture&&Te.isRenderTargetTexture===!1?-1:1),nr&&(gn.setValue(Z,"toneMappingExposure",S.toneMappingExposure),Qe.needsLights&&W(hn,Xn),xe&&ae.fog===!0&&Je.refreshFogUniforms(hn,xe),Je.refreshMaterialUniforms(hn,ae,ne,X,ge),R0.upload(Z,uu(Qe),hn,V)),ae.isShaderMaterial&&ae.uniformsNeedUpdate===!0&&(R0.upload(Z,uu(Qe),hn,V),ae.uniformsNeedUpdate=!1),ae.isSpriteMaterial&&gn.setValue(Z,"center",te.center),gn.setValue(Z,"modelViewMatrix",te.modelViewMatrix),gn.setValue(Z,"normalMatrix",te.normalMatrix),gn.setValue(Z,"modelMatrix",te.matrixWorld),ae.isShaderMaterial||ae.isRawShaderMaterial){const Kt=ae.uniformsGroups;for(let dn=0,Nn=Kt.length;dn0&&V.useMultisampledRTT(O)===!1?te=Xe.get(O).__webglMultisampledFramebuffer:Array.isArray(Ge)?te=Ge[q]:te=Ge,R.copy(O.viewport),D.copy(O.scissor),B=O.scissorTest}else R.copy(Q).multiplyScalar(ne).floor(),D.copy(le).multiplyScalar(ne).floor(),B=he;if(me.bindFramebuffer(Z.FRAMEBUFFER,te)&&Pe.drawBuffers&&ae&&me.drawBuffers(O,te),me.viewport(R),me.scissor(D),me.setScissorTest(B),xe){const Te=Xe.get(O.texture);Z.framebufferTexture2D(Z.FRAMEBUFFER,Z.COLOR_ATTACHMENT0,Z.TEXTURE_CUBE_MAP_POSITIVE_X+j,Te.__webglTexture,q)}else if(Ae){const Te=Xe.get(O.texture),dt=j||0;Z.framebufferTextureLayer(Z.FRAMEBUFFER,Z.COLOR_ATTACHMENT0,Te.__webglTexture,q||0,dt)}P=-1},this.readRenderTargetPixels=function(O,j,q,ae,te,xe,Ae){if(!(O&&O.isWebGLRenderTarget))return;let Ce=Xe.get(O).__webglFramebuffer;if(O.isWebGLCubeRenderTarget&&Ae!==void 0&&(Ce=Ce[Ae]),Ce){me.bindFramebuffer(Z.FRAMEBUFFER,Ce);try{const Te=O.texture,dt=Te.format,Ge=Te.type;if(dt!==ii&&je.convert(dt)!==Z.getParameter(Z.IMPLEMENTATION_COLOR_READ_FORMAT))return;const ze=Ge===bi&&(ve.has("EXT_color_buffer_half_float")||Pe.isWebGL2&&ve.has("EXT_color_buffer_float"));if(Ge!==Xo&&je.convert(Ge)!==Z.getParameter(Z.IMPLEMENTATION_COLOR_READ_TYPE)&&!(Ge===Hr&&(Pe.isWebGL2||ve.has("OES_texture_float")||ve.has("WEBGL_color_buffer_float")))&&!ze)return;j>=0&&j<=O.width-ae&&q>=0&&q<=O.height-te&&Z.readPixels(j,q,ae,te,je.convert(dt),je.convert(Ge),xe)}finally{const Te=C!==null?Xe.get(C).__webglFramebuffer:null;me.bindFramebuffer(Z.FRAMEBUFFER,Te)}}},this.copyFramebufferToTexture=function(O,j,q=0){const ae=Math.pow(2,-q),te=Math.floor(j.image.width*ae),xe=Math.floor(j.image.height*ae);V.setTexture2D(j,0),Z.copyTexSubImage2D(Z.TEXTURE_2D,q,0,0,O.x,O.y,te,xe),me.unbindTexture()},this.copyTextureToTexture=function(O,j,q,ae=0){const te=j.image.width,xe=j.image.height,Ae=je.convert(q.format),Ce=je.convert(q.type);V.setTexture2D(q,0),Z.pixelStorei(Z.UNPACK_FLIP_Y_WEBGL,q.flipY),Z.pixelStorei(Z.UNPACK_PREMULTIPLY_ALPHA_WEBGL,q.premultiplyAlpha),Z.pixelStorei(Z.UNPACK_ALIGNMENT,q.unpackAlignment),j.isDataTexture?Z.texSubImage2D(Z.TEXTURE_2D,ae,O.x,O.y,te,xe,Ae,Ce,j.image.data):j.isCompressedTexture?Z.compressedTexSubImage2D(Z.TEXTURE_2D,ae,O.x,O.y,j.mipmaps[0].width,j.mipmaps[0].height,Ae,j.mipmaps[0].data):Z.texSubImage2D(Z.TEXTURE_2D,ae,O.x,O.y,Ae,Ce,j.image),ae===0&&q.generateMipmaps&&Z.generateMipmap(Z.TEXTURE_2D),me.unbindTexture()},this.copyTextureToTexture3D=function(O,j,q,ae,te=0){if(S.isWebGL1Renderer)return;const xe=O.max.x-O.min.x+1,Ae=O.max.y-O.min.y+1,Ce=O.max.z-O.min.z+1,Te=je.convert(ae.format),dt=je.convert(ae.type);let Ge;if(ae.isData3DTexture)V.setTexture3D(ae,0),Ge=Z.TEXTURE_3D;else if(ae.isDataArrayTexture||ae.isCompressedArrayTexture)V.setTexture2DArray(ae,0),Ge=Z.TEXTURE_2D_ARRAY;else return;Z.pixelStorei(Z.UNPACK_FLIP_Y_WEBGL,ae.flipY),Z.pixelStorei(Z.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ae.premultiplyAlpha),Z.pixelStorei(Z.UNPACK_ALIGNMENT,ae.unpackAlignment);const ze=Z.getParameter(Z.UNPACK_ROW_LENGTH),mt=Z.getParameter(Z.UNPACK_IMAGE_HEIGHT),Rt=Z.getParameter(Z.UNPACK_SKIP_PIXELS),It=Z.getParameter(Z.UNPACK_SKIP_ROWS),zt=Z.getParameter(Z.UNPACK_SKIP_IMAGES),pt=q.isCompressedTexture?q.mipmaps[te]:q.image;Z.pixelStorei(Z.UNPACK_ROW_LENGTH,pt.width),Z.pixelStorei(Z.UNPACK_IMAGE_HEIGHT,pt.height),Z.pixelStorei(Z.UNPACK_SKIP_PIXELS,O.min.x),Z.pixelStorei(Z.UNPACK_SKIP_ROWS,O.min.y),Z.pixelStorei(Z.UNPACK_SKIP_IMAGES,O.min.z),q.isDataTexture||q.isData3DTexture?Z.texSubImage3D(Ge,te,j.x,j.y,j.z,xe,Ae,Ce,Te,dt,pt.data):q.isCompressedArrayTexture?Z.compressedTexSubImage3D(Ge,te,j.x,j.y,j.z,xe,Ae,Ce,Te,pt.data):Z.texSubImage3D(Ge,te,j.x,j.y,j.z,xe,Ae,Ce,Te,dt,pt),Z.pixelStorei(Z.UNPACK_ROW_LENGTH,ze),Z.pixelStorei(Z.UNPACK_IMAGE_HEIGHT,mt),Z.pixelStorei(Z.UNPACK_SKIP_PIXELS,Rt),Z.pixelStorei(Z.UNPACK_SKIP_ROWS,It),Z.pixelStorei(Z.UNPACK_SKIP_IMAGES,zt),te===0&&ae.generateMipmaps&&Z.generateMipmap(Ge),me.unbindTexture()},this.initTexture=function(O){O.isCubeTexture?V.setTextureCube(O,0):O.isData3DTexture?V.setTexture3D(O,0):O.isDataArrayTexture||O.isCompressedArrayTexture?V.setTexture2DArray(O,0):V.setTexture2D(O,0),me.unbindTexture()},this.resetState=function(){b=0,w=0,C=null,me.reset(),oe.reset()},typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return oo}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===q_?"display-p3":"srgb",t.unpackColorSpace=Dn.workingColorSpace===tg?"display-p3":"srgb"}get outputEncoding(){return this.outputColorSpace===Tr?Ul:qT}set outputEncoding(e){this.outputColorSpace=e===Ul?Tr:Qo}get useLegacyLights(){return this._useLegacyLights}set useLegacyLights(e){this._useLegacyLights=e}}class qk extends lC{}qk.prototype.isWebGL1Renderer=!0;class tx{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new at(e),this.density=t}clone(){return new tx(this.color,this.density)}toJSON(){return{type:"FogExp2",name:this.name,color:this.color.getHex(),density:this.density}}}class nx{constructor(e,t=1,r=1e3){this.isFog=!0,this.name="",this.color=new at(e),this.near=t,this.far=r}clone(){return new nx(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class xv extends yn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class og{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=yv,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=ia()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,r){e*=this.stride,r*=t.stride;for(let i=0,a=this.stride;ie.far||t.push({distance:l,point:Wd.clone(),uv:gc.getInterpolation(Wd,jm,Yd,Jm,AD,Z1,MD,new De),face:null,object:this})}copy(e,t){return super.copy(e,t),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}}function Zm(n,e,t,r,i,a){Nh.subVectors(n,t).addScalar(.5).multiply(r),i!==void 0?(Xd.x=a*Nh.x-i*Nh.y,Xd.y=i*Nh.x+a*Nh.y):Xd.copy(Nh),n.copy(e),n.x+=Xd.x,n.y+=Xd.y,n.applyMatrix4($k)}const Km=new J,wD=new J;class eU extends yn{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let r=0,i=t.length;r0){let r,i;for(r=1,i=t.length;r0){Km.setFromMatrixPosition(this.matrixWorld);const i=e.ray.origin.distanceTo(Km);this.getObjectForDistance(i).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){Km.setFromMatrixPosition(e.matrixWorld),wD.setFromMatrixPosition(this.matrixWorld);const r=Km.distanceTo(wD)/e.zoom;t[0].object.visible=!0;let i,a;for(i=1,a=t.length;i=o)t[i-1].object.visible=!1,t[i].object.visible=!0;else break}for(this._currentLevel=i-1;i=r.length&&r.push({start:-1,count:-1,z:-1});const a=r[this.index];i.push(a),this.index++,a.start=e.start,a.count=e.count,a.z=t}reset(){this.list.length=0,this.index=0}}const Uh="batchId",hl=new Bt,LD=new Bt,lZ=new Bt,BD=new Bt,$1=new ag,Qm=new oi,Mu=new Vr,Zd=new J,Q1=new sZ,$r=new ur,ey=[];function uZ(n,e,t=0){const r=e.itemSize;if(n.isInterleavedBufferAttribute||n.array.constructor!==e.array.constructor){const i=n.count;for(let a=0;a65536?new Uint32Array(a):new Uint16Array(a);t.setIndex(new _n(s,1))}const o=i>65536?new Uint32Array(r):new Uint16Array(r);t.setAttribute(Uh,new _n(o,1)),this._geometryInitialized=!0}}_validateGeometry(e){if(e.getAttribute(Uh))throw new Error(`BatchedMesh: Geometry cannot use attribute "${Uh}"`);const t=this.geometry;if(!!e.getIndex()!=!!t.getIndex())throw new Error('BatchedMesh: All geometries must consistently have "index".');for(const r in t.attributes){if(r===Uh)continue;if(!e.hasAttribute(r))throw new Error(`BatchedMesh: Added geometry missing "${r}". All geometries must have consistent attributes.`);const i=e.getAttribute(r),a=t.getAttribute(r);if(i.itemSize!==a.itemSize||i.normalized!==a.normalized)throw new Error("BatchedMesh: All attributes must have a consistent itemSize and normalized value.")}}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new oi);const e=this._geometryCount,t=this.boundingBox,r=this._active;t.makeEmpty();for(let i=0;i=this._maxGeometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");const i={vertexStart:-1,vertexCount:-1,indexStart:-1,indexCount:-1};let a=null;const o=this._reservedRanges,s=this._drawRanges,l=this._bounds;this._geometryCount!==0&&(a=o[o.length-1]),t===-1?i.vertexCount=e.getAttribute("position").count:i.vertexCount=t,a===null?i.vertexStart=0:i.vertexStart=a.vertexStart+a.vertexCount;const u=e.getIndex(),c=u!==null;if(c&&(r===-1?i.indexCount=u.count:i.indexCount=r,a===null?i.indexStart=0:i.indexStart=a.indexStart+a.indexCount),i.indexStart!==-1&&i.indexStart+i.indexCount>this._maxIndexCount||i.vertexStart+i.vertexCount>this._maxVertexCount)throw new Error("BatchedMesh: Reserved space request exceeds the maximum buffer size.");const h=this._visibility,f=this._active,d=this._matricesTexture,p=this._matricesTexture.image.data;h.push(!0),f.push(!0);const y=this._geometryCount;this._geometryCount++,lZ.toArray(p,y*16),d.needsUpdate=!0,o.push(i),s.push({start:c?i.indexStart:i.vertexStart,count:-1}),l.push({boxInitialized:!1,box:new oi,sphereInitialized:!1,sphere:new Vr});const g=this.geometry.getAttribute(Uh);for(let v=0;v=this._geometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");this._validateGeometry(t);const r=this.geometry,i=r.getIndex()!==null,a=r.getIndex(),o=t.getIndex(),s=this._reservedRanges[e];if(i&&o.count>s.indexCount||t.attributes.position.count>s.vertexCount)throw new Error("BatchedMesh: Reserved space not large enough for provided geometry.");const l=s.vertexStart,u=s.vertexCount;for(const d in r.attributes){if(d===Uh)continue;const p=t.getAttribute(d),y=r.getAttribute(d);uZ(p,y,l);const g=p.itemSize;for(let v=p.count,x=u;v=t.length||t[e]===!1?this:(t[e]=!1,this._visibilityChanged=!0,this)}getBoundingBoxAt(e,t){if(this._active[e]===!1)return this;const i=this._bounds[e],a=i.box,o=this.geometry;if(i.boxInitialized===!1){a.makeEmpty();const s=o.index,l=o.attributes.position,u=this._drawRanges[e];for(let c=u.start,h=u.start+u.count;c=o||r[e]===!1?this:(t.toArray(a,e*16),i.needsUpdate=!0,this)}getMatrixAt(e,t){const r=this._active,i=this._matricesTexture.image.data,a=this._geometryCount;return e>=a||r[e]===!1?null:t.fromArray(i,e*16)}setVisibleAt(e,t){const r=this._visibility,i=this._active,a=this._geometryCount;return e>=a||i[e]===!1||r[e]===t?this:(r[e]=t,this._visibilityChanged=!0,this)}getVisibleAt(e){const t=this._visibility,r=this._active,i=this._geometryCount;return e>=i||r[e]===!1?!1:t[e]}raycast(e,t){const r=this._visibility,i=this._active,a=this._drawRanges,o=this._geometryCount,s=this.matrixWorld,l=this.geometry;$r.material=this.material,$r.geometry.index=l.index,$r.geometry.attributes=l.attributes,$r.geometry.boundingBox===null&&($r.geometry.boundingBox=new oi),$r.geometry.boundingSphere===null&&($r.geometry.boundingSphere=new Vr);for(let u=0;uTt({},t)),this._reservedRanges=e._reservedRanges.map(t=>Tt({},t)),this._visibility=e._visibility.slice(),this._active=e._active.slice(),this._bounds=e._bounds.map(t=>({boxInitialized:t.boxInitialized,box:t.box.clone(),sphereInitialized:t.sphereInitialized,sphere:t.sphere.clone()})),this._maxGeometryCount=e._maxGeometryCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._geometryCount=e._geometryCount,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.slice(),this}dispose(){return this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,this}onBeforeRender(e,t,r,i,a){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;const o=i.getIndex(),s=o===null?1:o.array.BYTES_PER_ELEMENT,l=this._visibility,u=this._multiDrawStarts,c=this._multiDrawCounts,h=this._drawRanges,f=this.perObjectFrustumCulled;f&&(BD.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse).multiply(this.matrixWorld),$1.setFromProjectionMatrix(BD,e.isWebGPURenderer?Ff:oo));let d=0;if(this.sortObjects){LD.copy(this.matrixWorld).invert(),Zd.setFromMatrixPosition(r.matrixWorld).applyMatrix4(LD);for(let g=0,v=l.length;gl)continue;f.applyMatrix4(this.matrixWorld);const P=e.ray.origin.distanceTo(f);Pe.far||t.push({distance:P,point:h.clone().applyMatrix4(this.matrixWorld),index:S,face:null,faceIndex:null,object:this})}}else{const v=Math.max(0,o.start),x=Math.min(g.count,o.start+o.count);for(let S=v,A=x-1;Sl)continue;f.applyMatrix4(this.matrixWorld);const w=e.ray.origin.distanceTo(f);we.far||t.push({distance:w,point:h.clone().applyMatrix4(this.matrixWorld),index:S,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,r=Object.keys(t);if(r.length>0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,o=i.length;a0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,o=i.length;ai.far)return;a.push({distance:u,distanceToRay:Math.sqrt(s),point:l,index:e,face:null,object:o})}}class cZ extends Wn{constructor(e,t,r,i,a,o,s,l,u){super(e,t,r,i,a,o,s,l,u),this.isVideoTexture=!0,this.minFilter=o!==void 0?o:On,this.magFilter=a!==void 0?a:On,this.generateMipmaps=!1;const c=this;function h(){c.needsUpdate=!0,e.requestVideoFrameCallback(h)}"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(h)}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;"requestVideoFrameCallback"in e===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class hZ extends Wn{constructor(e,t){super({width:e,height:t}),this.isFramebufferTexture=!0,this.magFilter=sr,this.minFilter=sr,this.generateMipmaps=!1,this.needsUpdate=!0}}class ax extends Wn{constructor(e,t,r,i,a,o,s,l,u,c,h,f){super(null,o,s,l,u,c,i,a,h,f),this.isCompressedTexture=!0,this.image={width:t,height:r},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class fZ extends ax{constructor(e,t,r,i,a,o){super(e,t,r,a,o),this.isCompressedArrayTexture=!0,this.image.depth=i,this.wrapR=zr}}class dZ extends ax{constructor(e,t,r){super(void 0,e[0].width,e[0].height,t,r,qo),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}}class pZ extends Wn{constructor(e,t,r,i,a,o,s,l,u){super(e,t,r,i,a,o,s,l,u),this.isCanvasTexture=!0,this.needsUpdate=!0}}class po{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return null}getPointAt(e,t){const r=this.getUtoTmapping(e);return this.getPoint(r,t)}getPoints(e=5){const t=[];for(let r=0;r<=e;r++)t.push(this.getPoint(r/e));return t}getSpacedPoints(e=5){const t=[];for(let r=0;r<=e;r++)t.push(this.getPointAt(r/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let r,i=this.getPoint(0),a=0;t.push(0);for(let o=1;o<=e;o++)r=this.getPoint(o/e),a+=r.distanceTo(i),t.push(a),i=r;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const r=this.getLengths();let i=0;const a=r.length;let o;t?o=t:o=e*r[a-1];let s=0,l=a-1,u;for(;s<=l;)if(i=Math.floor(s+(l-s)/2),u=r[i]-o,u<0)s=i+1;else if(u>0)l=i-1;else{l=i;break}if(i=l,r[i]===o)return i/(a-1);const c=r[i],f=r[i+1]-c,d=(o-c)/f;return(i+d)/(a-1)}getTangent(e,t){let i=e-1e-4,a=e+1e-4;i<0&&(i=0),a>1&&(a=1);const o=this.getPoint(i),s=this.getPoint(a),l=t||(o.isVector2?new De:new J);return l.copy(s).sub(o).normalize(),l}getTangentAt(e,t){const r=this.getUtoTmapping(e);return this.getTangent(r,t)}computeFrenetFrames(e,t){const r=new J,i=[],a=[],o=[],s=new J,l=new Bt;for(let d=0;d<=e;d++){const p=d/e;i[d]=this.getTangentAt(p,new J)}a[0]=new J,o[0]=new J;let u=Number.MAX_VALUE;const c=Math.abs(i[0].x),h=Math.abs(i[0].y),f=Math.abs(i[0].z);c<=u&&(u=c,r.set(1,0,0)),h<=u&&(u=h,r.set(0,1,0)),f<=u&&r.set(0,0,1),s.crossVectors(i[0],r).normalize(),a[0].crossVectors(i[0],s),o[0].crossVectors(i[0],a[0]);for(let d=1;d<=e;d++){if(a[d]=a[d-1].clone(),o[d]=o[d-1].clone(),s.crossVectors(i[d-1],i[d]),s.length()>Number.EPSILON){s.normalize();const p=Math.acos(lr(i[d-1].dot(i[d]),-1,1));a[d].applyMatrix4(l.makeRotationAxis(s,p))}o[d].crossVectors(i[d],a[d])}if(t===!0){let d=Math.acos(lr(a[0].dot(a[e]),-1,1));d/=e,i[0].dot(s.crossVectors(a[0],a[e]))>0&&(d=-d);for(let p=1;p<=e;p++)a[p].applyMatrix4(l.makeRotationAxis(i[p],d*p)),o[p].crossVectors(i[p],a[p])}return{tangents:i,normals:a,binormals:o}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class ox extends po{constructor(e=0,t=0,r=1,i=1,a=0,o=Math.PI*2,s=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=r,this.yRadius=i,this.aStartAngle=a,this.aEndAngle=o,this.aClockwise=s,this.aRotation=l}getPoint(e,t){const r=t||new De,i=Math.PI*2;let a=this.aEndAngle-this.aStartAngle;const o=Math.abs(a)i;)a-=i;a0?0:(Math.floor(Math.abs(s)/a)+1)*a:l===0&&s===a-1&&(s=a-2,l=1);let u,c;this.closed||s>0?u=i[(s-1)%a]:(iy.subVectors(i[0],i[1]).add(i[0]),u=iy);const h=i[s%a],f=i[(s+1)%a];if(this.closed||s+2i.length-2?i.length-1:o+1],h=i[o>i.length-3?i.length-1:o+2];return r.set(HD(s,l.x,u.x,c.x,h.x),HD(s,l.y,u.y,c.y,h.y)),r}copy(e){super.copy(e),this.points=[];for(let t=0,r=e.points.length;t=r){const o=i[a]-r,s=this.curves[a],l=s.getLength(),u=l===0?0:1-o/l;return s.getPointAt(u,t)}a++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let r=0,i=this.curves.length;r1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,r=e.curves.length;t0){const h=u.getPoint(0);h.equals(this.currentPoint)||this.lineTo(h.x,h.y)}this.curves.push(u);const c=u.getPoint(1);return this.currentPoint.copy(c),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}};class lg extends Jt{constructor(e=[new De(0,-.5),new De(.5,0),new De(0,.5)],t=12,r=0,i=Math.PI*2){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:r,phiLength:i},t=Math.floor(t),i=lr(i,0,Math.PI*2);const a=[],o=[],s=[],l=[],u=[],c=1/t,h=new J,f=new De,d=new J,p=new J,y=new J;let g=0,v=0;for(let x=0;x<=e.length-1;x++)switch(x){case 0:g=e[x+1].x-e[x].x,v=e[x+1].y-e[x].y,d.x=v*1,d.y=-g,d.z=v*0,y.copy(d),d.normalize(),l.push(d.x,d.y,d.z);break;case e.length-1:l.push(y.x,y.y,y.z);break;default:g=e[x+1].x-e[x].x,v=e[x+1].y-e[x].y,d.x=v*1,d.y=-g,d.z=v*0,p.copy(d),d.x+=y.x,d.y+=y.y,d.z+=y.z,d.normalize(),l.push(d.x,d.y,d.z),y.copy(p)}for(let x=0;x<=t;x++){const S=r+x*c*i,A=Math.sin(S),b=Math.cos(S);for(let w=0;w<=e.length-1;w++){h.x=e[w].x*A,h.y=e[w].y,h.z=e[w].x*b,o.push(h.x,h.y,h.z),f.x=x/t,f.y=w/(e.length-1),s.push(f.x,f.y);const C=l[3*w+0]*A,P=l[3*w+1],E=l[3*w+0]*b;u.push(C,P,E)}}for(let x=0;x0&&S(!0),t>0&&S(!1)),this.setIndex(c),this.setAttribute("position",new wt(h,3)),this.setAttribute("normal",new wt(f,3)),this.setAttribute("uv",new wt(d,2));function x(){const A=new J,b=new J;let w=0;const C=(t-e)/r;for(let P=0;P<=a;P++){const E=[],R=P/a,D=R*(t-e)+e;for(let B=0;B<=i;B++){const k=B/i,N=k*l+s,z=Math.sin(N),X=Math.cos(N);b.x=D*z,b.y=-R*r+g,b.z=D*X,h.push(b.x,b.y,b.z),A.set(z,C,X).normalize(),f.push(A.x,A.y,A.z),d.push(k,1-R),E.push(p++)}y.push(E)}for(let P=0;P.9&&C<.1&&(S<.2&&(o[x+0]+=1),A<.2&&(o[x+2]+=1),b<.2&&(o[x+4]+=1))}}function f(x){a.push(x.x,x.y,x.z)}function d(x,S){const A=x*3;S.x=e[A+0],S.y=e[A+1],S.z=e[A+2]}function p(){const x=new J,S=new J,A=new J,b=new J,w=new De,C=new De,P=new De;for(let E=0,R=0;E80*t){s=u=n[0],l=c=n[1];for(let p=t;pu&&(u=h),f>c&&(c=f);d=Math.max(u-s,c-l),d=d!==0?32767/d:0}return Av(a,o,t,s,l,d,0),o}};function lU(n,e,t,r,i){let a,o;if(i===kZ(n,e,t,r)>0)for(a=e;a=e;a-=r)o=VD(a,n[a],n[a+1],o);return o&&hx(o,o.next)&&(wv(o),o=o.next),o}function Wc(n,e){if(!n)return n;e||(e=n);let t=n,r;do if(r=!1,!t.steiner&&(hx(t,t.next)||Qn(t.prev,t,t.next)===0)){if(wv(t),t=e=t.prev,t===t.next)break;r=!0}else t=t.next;while(r||t!==e);return e}function Av(n,e,t,r,i,a,o){if(!n)return;!o&&a&&IZ(n,r,i,a);let s=n,l,u;for(;n.prev!==n.next;){if(l=n.prev,u=n.next,a?wZ(n,r,i,a):MZ(n)){e.push(l.i/t|0),e.push(n.i/t|0),e.push(u.i/t|0),wv(n),n=u.next,s=u.next;continue}if(n=u,n===s){o?o===1?(n=bZ(Wc(n),e,t),Av(n,e,t,r,i,a,2)):o===2&&TZ(n,e,t,r,i,a):Av(Wc(n),e,t,r,i,a,1);break}}}function MZ(n){const e=n.prev,t=n,r=n.next;if(Qn(e,t,r)>=0)return!1;const i=e.x,a=t.x,o=r.x,s=e.y,l=t.y,u=r.y,c=ia?i>o?i:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u;let p=r.next;for(;p!==e;){if(p.x>=c&&p.x<=f&&p.y>=h&&p.y<=d&&yf(i,s,a,l,o,u,p.x,p.y)&&Qn(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function wZ(n,e,t,r){const i=n.prev,a=n,o=n.next;if(Qn(i,a,o)>=0)return!1;const s=i.x,l=a.x,u=o.x,c=i.y,h=a.y,f=o.y,d=sl?s>u?s:u:l>u?l:u,g=c>h?c>f?c:f:h>f?h:f,v=ib(d,p,e,t,r),x=ib(y,g,e,t,r);let S=n.prevZ,A=n.nextZ;for(;S&&S.z>=v&&A&&A.z<=x;){if(S.x>=d&&S.x<=y&&S.y>=p&&S.y<=g&&S!==i&&S!==o&&yf(s,c,l,h,u,f,S.x,S.y)&&Qn(S.prev,S,S.next)>=0||(S=S.prevZ,A.x>=d&&A.x<=y&&A.y>=p&&A.y<=g&&A!==i&&A!==o&&yf(s,c,l,h,u,f,A.x,A.y)&&Qn(A.prev,A,A.next)>=0))return!1;A=A.nextZ}for(;S&&S.z>=v;){if(S.x>=d&&S.x<=y&&S.y>=p&&S.y<=g&&S!==i&&S!==o&&yf(s,c,l,h,u,f,S.x,S.y)&&Qn(S.prev,S,S.next)>=0)return!1;S=S.prevZ}for(;A&&A.z<=x;){if(A.x>=d&&A.x<=y&&A.y>=p&&A.y<=g&&A!==i&&A!==o&&yf(s,c,l,h,u,f,A.x,A.y)&&Qn(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function bZ(n,e,t){let r=n;do{const i=r.prev,a=r.next.next;!hx(i,a)&&uU(i,r,r.next,a)&&Mv(i,a)&&Mv(a,i)&&(e.push(i.i/t|0),e.push(r.i/t|0),e.push(a.i/t|0),wv(r),wv(r.next),r=n=a),r=r.next}while(r!==n);return Wc(r)}function TZ(n,e,t,r,i,a){let o=n;do{let s=o.next.next;for(;s!==o.prev;){if(o.i!==s.i&&OZ(o,s)){let l=cU(o,s);o=Wc(o,o.next),l=Wc(l,l.next),Av(o,e,t,r,i,a,0),Av(l,e,t,r,i,a,0);return}s=s.next}o=o.next}while(o!==n)}function CZ(n,e,t,r){const i=[];let a,o,s,l,u;for(a=0,o=e.length;a=t.next.y&&t.next.y!==t.y){const f=t.x+(o-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(f<=a&&f>r&&(r=f,i=t.x=t.x&&t.x>=l&&a!==t.x&&yf(oi.x||t.x===i.x&&DZ(i,t)))&&(i=t,c=h)),t=t.next;while(t!==s);return i}function DZ(n,e){return Qn(n.prev,n,e.prev)<0&&Qn(e.next,n,n.next)<0}function IZ(n,e,t,r){let i=n;do i.z===0&&(i.z=ib(i.x,i.y,e,t,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==n);i.prevZ.nextZ=null,i.prevZ=null,LZ(i)}function LZ(n){let e,t,r,i,a,o,s,l,u=1;do{for(t=n,n=null,a=null,o=0;t;){for(o++,r=t,s=0,e=0;e0||l>0&&r;)s!==0&&(l===0||!r||t.z<=r.z)?(i=t,t=t.nextZ,s--):(i=r,r=r.nextZ,l--),a?a.nextZ=i:n=i,i.prevZ=a,a=i;t=r}a.nextZ=null,u*=2}while(o>1);return n}function ib(n,e,t,r,i){return n=(n-t)*i|0,e=(e-r)*i|0,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,n|e<<1}function BZ(n){let e=n,t=n;do(e.x=(n-o)*(a-s)&&(n-o)*(r-s)>=(t-o)*(e-s)&&(t-o)*(a-s)>=(i-o)*(r-s)}function OZ(n,e){return n.next.i!==e.i&&n.prev.i!==e.i&&!FZ(n,e)&&(Mv(n,e)&&Mv(e,n)&&NZ(n,e)&&(Qn(n.prev,n,e.prev)||Qn(n,e.prev,e))||hx(n,e)&&Qn(n.prev,n,n.next)>0&&Qn(e.prev,e,e.next)>0)}function Qn(n,e,t){return(e.y-n.y)*(t.x-e.x)-(e.x-n.x)*(t.y-e.y)}function hx(n,e){return n.x===e.x&&n.y===e.y}function uU(n,e,t,r){const i=uy(Qn(n,e,t)),a=uy(Qn(n,e,r)),o=uy(Qn(t,r,n)),s=uy(Qn(t,r,e));return!!(i!==a&&o!==s||i===0&&ly(n,t,e)||a===0&&ly(n,r,e)||o===0&&ly(t,n,r)||s===0&&ly(t,e,r))}function ly(n,e,t){return e.x<=Math.max(n.x,t.x)&&e.x>=Math.min(n.x,t.x)&&e.y<=Math.max(n.y,t.y)&&e.y>=Math.min(n.y,t.y)}function uy(n){return n>0?1:n<0?-1:0}function FZ(n,e){let t=n;do{if(t.i!==n.i&&t.next.i!==n.i&&t.i!==e.i&&t.next.i!==e.i&&uU(t,t.next,n,e))return!0;t=t.next}while(t!==n);return!1}function Mv(n,e){return Qn(n.prev,n,n.next)<0?Qn(n,e,n.next)>=0&&Qn(n,n.prev,e)>=0:Qn(n,e,n.prev)<0||Qn(n,n.next,e)<0}function NZ(n,e){let t=n,r=!1;const i=(n.x+e.x)/2,a=(n.y+e.y)/2;do t.y>a!=t.next.y>a&&t.next.y!==t.y&&i<(t.next.x-t.x)*(a-t.y)/(t.next.y-t.y)+t.x&&(r=!r),t=t.next;while(t!==n);return r}function cU(n,e){const t=new ab(n.i,n.x,n.y),r=new ab(e.i,e.x,e.y),i=n.next,a=e.prev;return n.next=e,e.prev=n,t.next=i,i.prev=t,r.next=t,t.prev=r,a.next=r,r.prev=a,r}function VD(n,e,t,r){const i=new ab(n,e,t);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function wv(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function ab(n,e,t){this.i=n,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function kZ(n,e,t,r){let i=0;for(let a=e,o=t-r;a2&&n[e-1].equals(n[0])&&n.pop()}function XD(n,e){for(let t=0;tNumber.EPSILON){const Le=Math.sqrt(Fe),st=Math.sqrt(G*G+de*de),Je=Se.x-V/Le,rt=Se.y+Xe/Le,_t=ve.x-de/st,ht=ve.y+G/st,ke=((_t-Je)*de-(ht-rt)*G)/(Xe*de-V*G);Pe=Je+Xe*ke-Z.x,me=rt+V*ke-Z.y;const vt=Pe*Pe+me*me;if(vt<=2)return new De(Pe,me);et=Math.sqrt(vt/2)}else{let Le=!1;Xe>Number.EPSILON?G>Number.EPSILON&&(Le=!0):Xe<-Number.EPSILON?G<-Number.EPSILON&&(Le=!0):Math.sign(V)===Math.sign(de)&&(Le=!0),Le?(Pe=-V,me=Xe,et=Math.sqrt(Fe)):(Pe=Xe,me=V,et=Math.sqrt(Fe/2))}return new De(Pe/et,me/et)}const K=[];for(let Z=0,Se=N.length,ve=Se-1,Pe=Z+1;Z=0;Z--){const Se=Z/g,ve=d*Math.cos(Se*Math.PI/2),Pe=p*Math.sin(Se*Math.PI/2)+y;for(let me=0,et=N.length;me=0;){const Pe=ve;let me=ve-1;me<0&&(me=Z.length-1);for(let et=0,Xe=c+g*2;et0)&&d.push(S,A,w),(v!==r-1||l0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class pU extends Ar{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new at(16777215),this.specular=new at(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new at(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=nu,this.normalScale=new De(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=eg,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class vU extends Ar{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new at(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new at(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=nu,this.normalScale=new De(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class gU extends Ar{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=nu,this.normalScale=new De(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class mU extends Ar{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new at(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new at(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=nu,this.normalScale=new De(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=eg,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class yU extends Ar{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new at(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=nu,this.normalScale=new De(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}}class _U extends ci{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function yc(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function xU(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function SU(n){function e(i,a){return n[i]-n[a]}const t=n.length,r=new Array(t);for(let i=0;i!==t;++i)r[i]=i;return r.sort(e),r}function ob(n,e,t){const r=n.length,i=new n.constructor(r);for(let a=0,o=0;o!==r;++a){const s=t[a]*e;for(let l=0;l!==e;++l)i[o++]=n[s+l]}return i}function xC(n,e,t,r){let i=1,a=n[0];for(;a!==void 0&&a[r]===void 0;)a=n[i++];if(a===void 0)return;let o=a[r];if(o!==void 0)if(Array.isArray(o))do o=a[r],o!==void 0&&(e.push(a.time),t.push.apply(t,o)),a=n[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(e.push(a.time),o.toArray(t,t.length)),a=n[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(e.push(a.time),t.push(o)),a=n[i++];while(a!==void 0)}function HZ(n,e,t,r,i=30){const a=n.clone();a.name=e;const o=[];for(let l=0;l=r)){h.push(u.times[d]);for(let y=0;ya.tracks[l].times[0]&&(s=a.tracks[l].times[0]);for(let l=0;l=s.times[p]){const v=p*h+c,x=v+h-c;y=s.values.slice(v,x)}else{const v=s.createInterpolant(),x=c,S=h-c;v.evaluate(a),y=v.resultBuffer.slice(x,S)}l==="quaternion"&&new Or().fromArray(y).normalize().conjugate().toArray(y);const g=u.times.length;for(let v=0;v=a)){const s=t[1];e=a)break t}o=r,r=0;break n}break e}for(;r>>1;et;)--o;if(++o,a!==0||o!==i){a>=o&&(o=Math.max(o,1),a=o-1);const s=this.getValueSize();this.times=r.slice(a,o),this.values=this.values.slice(a*s,o*s)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(e=!1);const r=this.times,i=this.values,a=r.length;a===0&&(e=!1);let o=null;for(let s=0;s!==a;s++){const l=r[s];if(typeof l=="number"&&isNaN(l)){e=!1;break}if(o!==null&&o>l){e=!1;break}o=l}if(i!==void 0&&xU(i))for(let s=0,l=i.length;s!==l;++s){const u=i[s];if(isNaN(u)){e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),r=this.getValueSize(),i=this.getInterpolation()===E0,a=e.length-1;let o=1;for(let s=1;s0){e[o]=e[a];for(let s=a*r,l=o*r,u=0;u!==r;++u)t[l+u]=t[s+u];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*r)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),r=this.constructor,i=new r(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}vo.prototype.TimeBufferType=Float32Array;vo.prototype.ValueBufferType=Float32Array;vo.prototype.DefaultInterpolation=Vc;class qc extends vo{}qc.prototype.ValueTypeName="bool";qc.prototype.ValueBufferType=Array;qc.prototype.DefaultInterpolation=Of;qc.prototype.InterpolantFactoryMethodLinear=void 0;qc.prototype.InterpolantFactoryMethodSmooth=void 0;class AC extends vo{}AC.prototype.ValueTypeName="color";class Gf extends vo{}Gf.prototype.ValueTypeName="number";class wU extends sd{constructor(e,t,r,i){super(e,t,r,i)}interpolate_(e,t,r,i){const a=this.resultBuffer,o=this.sampleValues,s=this.valueSize,l=(r-t)/(i-t);let u=e*s;for(let c=u+s;u!==c;u+=4)Or.slerpFlat(a,0,o,u-s,o,u,l);return a}}class Jl extends vo{InterpolantFactoryMethodLinear(e){return new wU(this.times,this.values,this.getValueSize(),e)}}Jl.prototype.ValueTypeName="quaternion";Jl.prototype.DefaultInterpolation=Vc;Jl.prototype.InterpolantFactoryMethodSmooth=void 0;class $c extends vo{}$c.prototype.ValueTypeName="string";$c.prototype.ValueBufferType=Array;$c.prototype.DefaultInterpolation=Of;$c.prototype.InterpolantFactoryMethodLinear=void 0;$c.prototype.InterpolantFactoryMethodSmooth=void 0;class zf extends vo{}zf.prototype.ValueTypeName="vector";class Hf{constructor(e,t=-1,r,i=K_){this.name=e,this.tracks=r,this.duration=t,this.blendMode=i,this.uuid=ia(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],r=e.tracks,i=1/(e.fps||1);for(let o=0,s=r.length;o!==s;++o)t.push(YZ(r[o]).scale(i));const a=new this(e.name,e.duration,t,e.blendMode);return a.uuid=e.uuid,a}static toJSON(e){const t=[],r=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let a=0,o=r.length;a!==o;++a)t.push(vo.toJSON(r[a]));return i}static CreateFromMorphTargetSequence(e,t,r,i){const a=t.length,o=[];for(let s=0;s1){const h=c[1];let f=i[h];f||(i[h]=f=[]),f.push(u)}}const o=[];for(const s in i)o.push(this.CreateFromMorphTargetSequence(s,i[s],t,r));return o}static parseAnimation(e,t){if(!e)return null;const r=function(h,f,d,p,y){if(d.length!==0){const g=[],v=[];xC(d,g,v,p),g.length!==0&&y.push(new h(f,g,v))}},i=[],a=e.name||"default",o=e.fps||30,s=e.blendMode;let l=e.length||-1;const u=e.hierarchy||[];for(let h=0;h{t&&t(a),this.manager.itemEnd(e)},0),a;if(As[e]!==void 0){As[e].push({onLoad:t,onProgress:r,onError:i});return}As[e]=[],As[e].push({onLoad:t,onProgress:r,onError:i});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),s=this.mimeType,l=this.responseType;fetch(o).then(u=>{if(u.status===200||u.status===0){if(u.status,typeof ReadableStream=="undefined"||u.body===void 0||u.body.getReader===void 0)return u;const c=As[e],h=u.body.getReader(),f=u.headers.get("Content-Length")||u.headers.get("X-File-Size"),d=f?parseInt(f):0,p=d!==0;let y=0;const g=new ReadableStream({start(v){x();function x(){h.read().then(({done:S,value:A})=>{if(S)v.close();else{y+=A.byteLength;const b=new ProgressEvent("progress",{lengthComputable:p,loaded:y,total:d});for(let w=0,C=c.length;w{switch(l){case"arraybuffer":return u.arrayBuffer();case"blob":return u.blob();case"document":return u.text().then(c=>new DOMParser().parseFromString(c,s));case"json":return u.json();default:if(s===void 0)return u.text();{const h=/charset="?([^;"\s]*)"?/i.exec(s),f=h&&h[1]?h[1].toLowerCase():void 0,d=new TextDecoder(f);return u.arrayBuffer().then(p=>d.decode(p))}}}).then(u=>{Is.add(e,u);const c=As[e];delete As[e];for(let h=0,f=c.length;h{const c=As[e];if(c===void 0)throw this.manager.itemError(e),u;delete As[e];for(let h=0,f=c.length;h{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class JZ extends hi{constructor(e){super(e)}load(e,t,r,i){const a=this,o=new la(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(s){try{t(a.parse(JSON.parse(s)))}catch(l){i&&i(l),a.manager.itemError(e)}},r,i)}parse(e){const t=[];for(let r=0;r0:i.vertexColors=e.vertexColors),e.uniforms!==void 0)for(const a in e.uniforms){const o=e.uniforms[a];switch(i.uniforms[a]={},o.type){case"t":i.uniforms[a].value=r(o.value);break;case"c":i.uniforms[a].value=new at().setHex(o.value);break;case"v2":i.uniforms[a].value=new De().fromArray(o.value);break;case"v3":i.uniforms[a].value=new J().fromArray(o.value);break;case"v4":i.uniforms[a].value=new In().fromArray(o.value);break;case"m3":i.uniforms[a].value=new tn().fromArray(o.value);break;case"m4":i.uniforms[a].value=new Bt().fromArray(o.value);break;default:i.uniforms[a].value=o.value}}if(e.defines!==void 0&&(i.defines=e.defines),e.vertexShader!==void 0&&(i.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(i.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(i.glslVersion=e.glslVersion),e.extensions!==void 0)for(const a in e.extensions)i.extensions[a]=e.extensions[a];if(e.lights!==void 0&&(i.lights=e.lights),e.clipping!==void 0&&(i.clipping=e.clipping),e.size!==void 0&&(i.size=e.size),e.sizeAttenuation!==void 0&&(i.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(i.map=r(e.map)),e.matcap!==void 0&&(i.matcap=r(e.matcap)),e.alphaMap!==void 0&&(i.alphaMap=r(e.alphaMap)),e.bumpMap!==void 0&&(i.bumpMap=r(e.bumpMap)),e.bumpScale!==void 0&&(i.bumpScale=e.bumpScale),e.normalMap!==void 0&&(i.normalMap=r(e.normalMap)),e.normalMapType!==void 0&&(i.normalMapType=e.normalMapType),e.normalScale!==void 0){let a=e.normalScale;Array.isArray(a)===!1&&(a=[a,a]),i.normalScale=new De().fromArray(a)}return e.displacementMap!==void 0&&(i.displacementMap=r(e.displacementMap)),e.displacementScale!==void 0&&(i.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(i.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(i.roughnessMap=r(e.roughnessMap)),e.metalnessMap!==void 0&&(i.metalnessMap=r(e.metalnessMap)),e.emissiveMap!==void 0&&(i.emissiveMap=r(e.emissiveMap)),e.emissiveIntensity!==void 0&&(i.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(i.specularMap=r(e.specularMap)),e.specularIntensityMap!==void 0&&(i.specularIntensityMap=r(e.specularIntensityMap)),e.specularColorMap!==void 0&&(i.specularColorMap=r(e.specularColorMap)),e.envMap!==void 0&&(i.envMap=r(e.envMap)),e.envMapIntensity!==void 0&&(i.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(i.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(i.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(i.lightMap=r(e.lightMap)),e.lightMapIntensity!==void 0&&(i.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(i.aoMap=r(e.aoMap)),e.aoMapIntensity!==void 0&&(i.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(i.gradientMap=r(e.gradientMap)),e.clearcoatMap!==void 0&&(i.clearcoatMap=r(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(i.clearcoatRoughnessMap=r(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(i.clearcoatNormalMap=r(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(i.clearcoatNormalScale=new De().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(i.iridescenceMap=r(e.iridescenceMap)),e.iridescenceThicknessMap!==void 0&&(i.iridescenceThicknessMap=r(e.iridescenceThicknessMap)),e.transmissionMap!==void 0&&(i.transmissionMap=r(e.transmissionMap)),e.thicknessMap!==void 0&&(i.thicknessMap=r(e.thicknessMap)),e.anisotropyMap!==void 0&&(i.anisotropyMap=r(e.anisotropyMap)),e.sheenColorMap!==void 0&&(i.sheenColorMap=r(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(i.sheenRoughnessMap=r(e.sheenRoughnessMap)),i}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){const t={ShadowMaterial:fU,SpriteMaterial:uC,RawShaderMaterial:dU,ShaderMaterial:sa,PointsMaterial:ix,MeshPhysicalMaterial:as,MeshStandardMaterial:fg,MeshPhongMaterial:pU,MeshToonMaterial:vU,MeshNormalMaterial:gU,MeshLambertMaterial:mU,MeshDepthMaterial:ex,MeshDistanceMaterial:sC,MeshBasicMaterial:na,MeshMatcapMaterial:yU,LineDashedMaterial:_U,LineBasicMaterial:ci,Material:Ar};return new t[e]}}class jo{static decodeText(e){if(typeof TextDecoder!="undefined")return new TextDecoder().decode(e);let t="";for(let r=0,i=e.length;r0){const l=new MC(t);a=new bv(l),a.setCrossOrigin(this.crossOrigin);for(let u=0,c=e.length;u0){i=new bv(this.manager),i.setCrossOrigin(this.crossOrigin);for(let o=0,s=e.length;o{const g=new oi;g.min.fromArray(y.boxMin),g.max.fromArray(y.boxMax);const v=new Vr;return v.radius=y.sphereRadius,v.center.fromArray(y.sphereCenter),{boxInitialized:y.boxInitialized,box:g,sphereInitialized:y.sphereInitialized,sphere:v}}),o._maxGeometryCount=e.maxGeometryCount,o._maxVertexCount=e.maxVertexCount,o._maxIndexCount=e.maxIndexCount,o._geometryInitialized=e.geometryInitialized,o._geometryCount=e.geometryCount,o._matricesTexture=u(e.matricesTexture.uuid);break;case"LOD":o=new eU;break;case"Line":o=new Gs(s(e.geometry),l(e.material));break;case"LineLoop":o=new fC(s(e.geometry),l(e.material));break;case"LineSegments":o=new fo(s(e.geometry),l(e.material));break;case"PointCloud":case"Points":o=new dC(s(e.geometry),l(e.material));break;case"Sprite":o=new Qk(l(e.material));break;case"Group":o=new Ds;break;case"Bone":o=new rx;break;default:o=new yn}if(o.uuid=e.uuid,e.name!==void 0&&(o.name=e.name),e.matrix!==void 0?(o.matrix.fromArray(e.matrix),e.matrixAutoUpdate!==void 0&&(o.matrixAutoUpdate=e.matrixAutoUpdate),o.matrixAutoUpdate&&o.matrix.decompose(o.position,o.quaternion,o.scale)):(e.position!==void 0&&o.position.fromArray(e.position),e.rotation!==void 0&&o.rotation.fromArray(e.rotation),e.quaternion!==void 0&&o.quaternion.fromArray(e.quaternion),e.scale!==void 0&&o.scale.fromArray(e.scale)),e.up!==void 0&&o.up.fromArray(e.up),e.castShadow!==void 0&&(o.castShadow=e.castShadow),e.receiveShadow!==void 0&&(o.receiveShadow=e.receiveShadow),e.shadow&&(e.shadow.bias!==void 0&&(o.shadow.bias=e.shadow.bias),e.shadow.normalBias!==void 0&&(o.shadow.normalBias=e.shadow.normalBias),e.shadow.radius!==void 0&&(o.shadow.radius=e.shadow.radius),e.shadow.mapSize!==void 0&&o.shadow.mapSize.fromArray(e.shadow.mapSize),e.shadow.camera!==void 0&&(o.shadow.camera=this.parseObject(e.shadow.camera))),e.visible!==void 0&&(o.visible=e.visible),e.frustumCulled!==void 0&&(o.frustumCulled=e.frustumCulled),e.renderOrder!==void 0&&(o.renderOrder=e.renderOrder),e.userData!==void 0&&(o.userData=e.userData),e.layers!==void 0&&(o.layers.mask=e.layers),e.children!==void 0){const f=e.children;for(let d=0;d{t&&t(u),a.manager.itemEnd(e)}).catch(u=>{i&&i(u)});return}return setTimeout(function(){t&&t(o),a.manager.itemEnd(e)},0),o}const s={};s.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",s.headers=this.requestHeader;const l=fetch(e,s).then(function(u){return u.blob()}).then(function(u){return createImageBitmap(u,Object.assign(a.options,{colorSpaceConversion:"none"}))}).then(function(u){return Is.add(e,u),t&&t(u),a.manager.itemEnd(e),u}).catch(function(u){i&&i(u),Is.remove(e),a.manager.itemError(e),a.manager.itemEnd(e)});Is.add(e,l),a.manager.itemStart(e)}}let cy;class RC{static getContext(){return cy===void 0&&(cy=new(window.AudioContext||window.webkitAudioContext)),cy}static setContext(e){cy=e}}class tK extends hi{constructor(e){super(e)}load(e,t,r,i){const a=this,o=new la(this.manager);o.setResponseType("arraybuffer"),o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(l){try{const u=l.slice(0);RC.getContext().decodeAudioData(u,function(h){t(h)}).catch(s)}catch(u){s(u)}},r,i);function s(l){i&&i(l),a.manager.itemError(e)}}}const QD=new Bt,eI=new Bt,wu=new Bt;class nK{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Hn,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Hn,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,wu.copy(e.projectionMatrix);const i=t.eyeSep/2,a=i*t.near/t.focus,o=t.near*Math.tan(Ec*t.fov*.5)/t.zoom;let s,l;eI.elements[12]=-i,QD.elements[12]=i,s=-o*t.aspect+a,l=o*t.aspect+a,wu.elements[0]=2*t.near/(l-s),wu.elements[8]=(l+s)/(l-s),this.cameraL.projectionMatrix.copy(wu),s=-o*t.aspect-a,l=o*t.aspect-a,wu.elements[0]=2*t.near/(l-s),wu.elements[8]=(l+s)/(l-s),this.cameraR.projectionMatrix.copy(wu)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(eI),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(QD)}}class PC{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=tI(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=tI();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function tI(){return(typeof performance=="undefined"?Date:performance).now()}const bu=new J,nI=new Or,rK=new J,Tu=new J;class iK extends yn{constructor(){super(),this.type="AudioListener",this.context=RC.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new PC}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const t=this.context.listener,r=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(bu,nI,rK),Tu.set(0,0,-1).applyQuaternion(nI),t.positionX){const i=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(bu.x,i),t.positionY.linearRampToValueAtTime(bu.y,i),t.positionZ.linearRampToValueAtTime(bu.z,i),t.forwardX.linearRampToValueAtTime(Tu.x,i),t.forwardY.linearRampToValueAtTime(Tu.y,i),t.forwardZ.linearRampToValueAtTime(Tu.z,i),t.upX.linearRampToValueAtTime(r.x,i),t.upY.linearRampToValueAtTime(r.y,i),t.upZ.linearRampToValueAtTime(r.z,i)}else t.setPosition(bu.x,bu.y,bu.z),t.setOrientation(Tu.x,Tu.y,Tu.z,r.x,r.y,r.z)}}class FU extends yn{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0||this.hasPlaybackControl===!1)return;this._startedAt=this.context.currentTime+e;const t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl!==!1)return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(){if(this.hasPlaybackControl!==!1)return this._progress=0,this.source!==null&&(this.source.stop(),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e0&&this._mixBufferRegionAdditive(r,i,this._addIndex*t,1,t);for(let l=t,u=t+t;l!==u;++l)if(r[l]!==r[l+t]){s.setValue(r,i);break}}saveOriginalState(){const e=this.binding,t=this.buffer,r=this.valueSize,i=r*this._origIndex;e.getValue(t,i);for(let a=r,o=i;a!==o;++a)t[a]=t[i+a%r];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let r=e;r=.5)for(let o=0;o!==a;++o)e[t+o]=e[r+o]}_slerp(e,t,r,i){Or.slerpFlat(e,t,e,t,e,r,i)}_slerpAdditive(e,t,r,i,a){const o=this._workIndex*a;Or.multiplyQuaternionsFlat(e,o,e,t,e,r),Or.slerpFlat(e,t,e,t,e,o,i)}_lerp(e,t,r,i,a){const o=1-i;for(let s=0;s!==a;++s){const l=t+s;e[l]=e[l]*o+e[r+s]*i}}_lerpAdditive(e,t,r,i,a){for(let o=0;o!==a;++o){const s=t+o;e[s]=e[s]+e[r+o]*i}}}const DC="\\[\\]\\.:\\/",lK=new RegExp("["+DC+"]","g"),IC="[^"+DC+"]",uK="[^"+DC.replace("\\.","")+"]",cK=/((?:WC+[\/:])*)/.source.replace("WC",IC),hK=/(WCOD+)?/.source.replace("WCOD",uK),fK=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",IC),dK=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",IC),pK=new RegExp("^"+cK+hK+fK+dK+"$"),vK=["material","materials","bones","map"];class gK{constructor(e,t,r){const i=r||mn.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const r=this._targetGroup.nCachedObjects_,i=this._bindings[r];i!==void 0&&i.getValue(e,t)}setValue(e,t){const r=this._bindings;for(let i=this._targetGroup.nCachedObjects_,a=r.length;i!==a;++i)r[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,r=e.length;t!==r;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,r=e.length;t!==r;++t)e[t].unbind()}}class mn{constructor(e,t,r){this.path=t,this.parsedPath=r||mn.parseTrackName(t),this.node=mn.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,r){return e&&e.isAnimationObjectGroup?new mn.Composite(e,t,r):new mn(e,t,r)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(lK,"")}static parseTrackName(e){const t=pK.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const r={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=r.nodeName&&r.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const a=r.nodeName.substring(i+1);vK.indexOf(a)!==-1&&(r.nodeName=r.nodeName.substring(0,i),r.objectName=a)}if(r.propertyName===null||r.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return r}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const r=e.skeleton.getBoneByName(t);if(r!==void 0)return r}if(e.children){const r=function(a){for(let o=0;o=a){const h=a++,f=e[h];t[f.uuid]=c,e[c]=f,t[u]=h,e[h]=l;for(let d=0,p=i;d!==p;++d){const y=r[d],g=y[h],v=y[c];y[c]=g,y[h]=v}}}this.nCachedObjects_=a}uncache(){const e=this._objects,t=this._indicesByUUID,r=this._bindings,i=r.length;let a=this.nCachedObjects_,o=e.length;for(let s=0,l=arguments.length;s!==l;++s){const u=arguments[s],c=u.uuid,h=t[c];if(h!==void 0)if(delete t[c],h0&&(t[d.uuid]=h),e[h]=d,e.pop();for(let p=0,y=i;p!==y;++p){const g=r[p];g[h]=g[f],g.pop()}}}this.nCachedObjects_=a}subscribe_(e,t){const r=this._bindingsIndicesByPath;let i=r[e];const a=this._bindings;if(i!==void 0)return a[i];const o=this._paths,s=this._parsedPaths,l=this._objects,u=l.length,c=this.nCachedObjects_,h=new Array(u);i=a.length,r[e]=i,o.push(e),s.push(t),a.push(h);for(let f=c,d=l.length;f!==d;++f){const p=l[f];h[f]=new mn(p,e,t)}return h}unsubscribe_(e){const t=this._bindingsIndicesByPath,r=t[e];if(r!==void 0){const i=this._paths,a=this._parsedPaths,o=this._bindings,s=o.length-1,l=o[s],u=e[s];t[u]=r,o[r]=l,o.pop(),a[r]=a[s],a.pop(),i[r]=i[s],i.pop()}}}class kU{constructor(e,t,r=null,i=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=r,this.blendMode=i;const a=t.tracks,o=a.length,s=new Array(o),l={endingStart:dc,endingEnd:dc};for(let u=0;u!==o;++u){const c=a[u].createInterpolant(null);s[u]=c,c.settings=l}this._interpolantSettings=l,this._interpolants=s,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=Mk,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,r){if(e.fadeOut(t),this.fadeIn(t),r){const i=this._clip.duration,a=e._clip.duration,o=a/i,s=i/a;e.warp(1,o,t),this.warp(s,1,t)}return this}crossFadeTo(e,t,r){return e.crossFadeFrom(this,t,r)}stopFading(){const e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,r){const i=this._mixer,a=i.time,o=this.timeScale;let s=this._timeScaleInterpolant;s===null&&(s=i._lendControlInterpolant(),this._timeScaleInterpolant=s);const l=s.parameterPositions,u=s.sampleValues;return l[0]=a,l[1]=a+r,u[0]=e/o,u[1]=t/o,this}stopWarping(){const e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,r,i){if(!this.enabled){this._updateWeight(e);return}const a=this._startTime;if(a!==null){const l=(e-a)*r;l<0||r===0?t=0:(this._startTime=null,t=r*l)}t*=this._updateTimeScale(e);const o=this._updateTime(t),s=this._updateWeight(e);if(s>0){const l=this._interpolants,u=this._propertyBindings;switch(this.blendMode){case ZT:for(let c=0,h=l.length;c!==h;++c)l[c].evaluate(o),u[c].accumulateAdditive(s);break;case K_:default:for(let c=0,h=l.length;c!==h;++c)l[c].evaluate(o),u[c].accumulate(i,s)}}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const r=this._weightInterpolant;if(r!==null){const i=r.evaluate(e)[0];t*=i,e>r.parameterPositions[1]&&(this.stopFading(),i===0&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const r=this._timeScaleInterpolant;if(r!==null){const i=r.evaluate(e)[0];t*=i,e>r.parameterPositions[1]&&(this.stopWarping(),t===0?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,r=this.loop;let i=this.time+e,a=this._loopCount;const o=r===wk;if(e===0)return a===-1?i:o&&(a&1)===1?t-i:i;if(r===Ak){a===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(i>=t)i=t;else if(i<0)i=0;else{this.time=i;break e}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(a===-1&&(e>=0?(a=0,this._setEndings(!0,this.repetitions===0,o)):this._setEndings(this.repetitions===0,!0,o)),i>=t||i<0){const s=Math.floor(i/t);i-=t*s,a+=Math.abs(s);const l=this.repetitions-a;if(l<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=e>0?t:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(l===1){const u=e<0;this._setEndings(u,!u,o)}else this._setEndings(!1,!1,o);this._loopCount=a,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:s})}}else this.time=i;if(o&&(a&1)===1)return t-i}return i}_setEndings(e,t,r){const i=this._interpolantSettings;r?(i.endingStart=pc,i.endingEnd=pc):(e?i.endingStart=this.zeroSlopeAtStart?pc:dc:i.endingStart=pv,t?i.endingEnd=this.zeroSlopeAtEnd?pc:dc:i.endingEnd=pv)}_scheduleFading(e,t,r){const i=this._mixer,a=i.time;let o=this._weightInterpolant;o===null&&(o=i._lendControlInterpolant(),this._weightInterpolant=o);const s=o.parameterPositions,l=o.sampleValues;return s[0]=a,l[0]=t,s[1]=a+e,l[1]=r,this}}const yK=new Float32Array(1);class _K extends is{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const r=e._localRoot||this._root,i=e._clip.tracks,a=i.length,o=e._propertyBindings,s=e._interpolants,l=r.uuid,u=this._bindingsByRootAndName;let c=u[l];c===void 0&&(c={},u[l]=c);for(let h=0;h!==a;++h){const f=i[h],d=f.name;let p=c[d];if(p!==void 0)++p.referenceCount,o[h]=p;else{if(p=o[h],p!==void 0){p._cacheIndex===null&&(++p.referenceCount,this._addInactiveBinding(p,l,d));continue}const y=t&&t._propertyBindings[h].binding.parsedPath;p=new NU(mn.create(r,d,y),f.ValueTypeName,f.getValueSize()),++p.referenceCount,this._addInactiveBinding(p,l,d),o[h]=p}s[h].resultBuffer=p.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){const r=(e._localRoot||this._root).uuid,i=e._clip.uuid,a=this._actionsByClip[i];this._bindAction(e,a&&a.knownActions[0]),this._addInactiveAction(e,i,r)}const t=e._propertyBindings;for(let r=0,i=t.length;r!==i;++r){const a=t[r];a.useCount++===0&&(this._lendBinding(a),a.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let r=0,i=t.length;r!==i;++r){const a=t[r];--a.useCount===0&&(a.restoreOriginalState(),this._takeBackBinding(a))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return t!==null&&t=0;--r)e[r].stop();return this}update(e){e*=this.timeScale;const t=this._actions,r=this._nActiveActions,i=this.time+=e,a=Math.sign(e),o=this._accuIndex^=1;for(let u=0;u!==r;++u)t[u]._update(i,e,a,o);const s=this._bindings,l=this._nActiveBindings;for(let u=0;u!==l;++u)s[u].apply(o);return this}setTime(e){this.time=0;for(let t=0;tthis.max.x||e.ythis.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,aI).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const oI=new J,hy=new J;class TK{constructor(e=new J,t=new J){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){oI.subVectors(e,this.start),hy.subVectors(this.end,this.start);const r=hy.dot(hy);let a=hy.dot(oI)/r;return t&&(a=lr(a,0,1)),a}closestPointToPoint(e,t,r){const i=this.closestPointToPointParameter(e,t);return this.delta(r).multiplyScalar(i).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}}const sI=new J;class CK extends yn{constructor(e,t){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=t,this.type="SpotLightHelper";const r=new Jt,i=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let o=0,s=1,l=32;o1)for(let h=0;h.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{fI.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(fI,t)}}setLength(e,t=e*.2,r=t*.2){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(r,t,r),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class GK extends fo{constructor(e=1){const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],r=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],i=new Jt;i.setAttribute("position",new wt(t,3)),i.setAttribute("color",new wt(r,3));const a=new ci({vertexColors:!0,toneMapped:!1});super(i,a),this.type="AxesHelper"}setColors(e,t,r){const i=new at,a=this.geometry.attributes.color.array;return i.set(e),i.toArray(a,0),i.toArray(a,3),i.set(t),i.toArray(a,6),i.toArray(a,9),i.set(r),i.toArray(a,12),i.toArray(a,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class zK{constructor(){this.type="ShapePath",this.color=new at,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new Sv,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,r,i){return this.currentPath.quadraticCurveTo(e,t,r,i),this}bezierCurveTo(e,t,r,i,a,o){return this.currentPath.bezierCurveTo(e,t,r,i,a,o),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(v){const x=[];for(let S=0,A=v.length;SNumber.EPSILON){if(R<0&&(C=x[w],E=-E,P=x[b],R=-R),v.yP.y)continue;if(v.y===C.y){if(v.x===C.x)return!0}else{const D=R*(v.x-C.x)-E*(v.y-C.y);if(D===0)return!0;if(D<0)continue;A=!A}}else{if(v.y!==C.y)continue;if(P.x<=v.x&&v.x<=C.x||C.x<=v.x&&v.x<=P.x)return!0}}return A}const i=Yo.isClockWise,a=this.subPaths;if(a.length===0)return[];let o,s,l;const u=[];if(a.length===1)return s=a[0],l=new Dc,l.curves=s.curves,u.push(l),u;let c=!i(a[0].getPoints());c=e?!c:c;const h=[],f=[];let d=[],p=0,y;f[p]=void 0,d[p]=[];for(let v=0,x=a.length;v1){let v=!1,x=0;for(let S=0,A=f.length;S0&&v===!1&&(d=h)}let g;for(let v=0,x=f.length;vc||i.y>c)&&(i.x>c&&(a.x=Math.floor(c/j.x),i.x=a.x*j.x,H.mapSize.x=a.x),i.y>c&&(a.y=Math.floor(c/j.y),i.y=a.y*j.y,H.mapSize.y=a.y)),H.map===null||U===!0||F===!0){const le=this.type!==no?{minFilter:ar,magFilter:ar}:{};H.map!==null&&H.map.dispose(),H.map=new aa(i.x,i.y,le),H.map.texture.name=ne.name+".shadowMap",H.camera.updateProjectionMatrix()}n.setRenderTarget(H.map),n.clear();const $=H.getViewportCount();for(let le=0;le<$;le++){const ce=H.getViewport(le);o.set(a.x*ce.x,a.y*ce.y,a.x*ce.z,a.y*ce.w),O.viewport(o),H.updateMatrices(ne,le),r=H.getFrustum(),A(C,P,H.camera,ne,this.type)}H.isPointLightShadow!==!0&&this.type===no&&x(H,P),H.needsUpdate=!1}v=this.type,g.needsUpdate=!1,n.setRenderTarget(E,R,I)};function x(w,C){const P=e.update(y);f.defines.VSM_SAMPLES!==w.blurSamples&&(f.defines.VSM_SAMPLES=w.blurSamples,d.defines.VSM_SAMPLES=w.blurSamples,f.needsUpdate=!0,d.needsUpdate=!0),w.mapPass===null&&(w.mapPass=new aa(i.x,i.y)),f.uniforms.shadow_pass.value=w.map.texture,f.uniforms.resolution.value=w.mapSize,f.uniforms.radius.value=w.radius,n.setRenderTarget(w.mapPass),n.clear(),n.renderBufferDirect(C,null,P,f,y,null),d.uniforms.shadow_pass.value=w.mapPass.texture,d.uniforms.resolution.value=w.mapSize,d.uniforms.radius.value=w.radius,n.setRenderTarget(w.map),n.clear(),n.renderBufferDirect(C,null,P,d,y,null)}function S(w,C,P,E){let R=null;const I=P.isPointLight===!0?w.customDistanceMaterial:w.customDepthMaterial;if(I!==void 0)R=I;else if(R=P.isPointLight===!0?l:s,n.localClippingEnabled&&C.clipShadows===!0&&Array.isArray(C.clippingPlanes)&&C.clippingPlanes.length!==0||C.displacementMap&&C.displacementScale!==0||C.alphaMap&&C.alphaTest>0||C.map&&C.alphaTest>0){const O=R.uuid,U=C.uuid;let F=u[O];F===void 0&&(F={},u[O]=F);let z=F[U];z===void 0&&(z=R.clone(),F[U]=z,C.addEventListener("dispose",T)),R=z}if(R.visible=C.visible,R.wireframe=C.wireframe,E===no?R.side=C.shadowSide!==null?C.shadowSide:C.side:R.side=C.shadowSide!==null?C.shadowSide:h[C.side],R.alphaMap=C.alphaMap,R.alphaTest=C.alphaTest,R.map=C.map,R.clipShadows=C.clipShadows,R.clippingPlanes=C.clippingPlanes,R.clipIntersection=C.clipIntersection,R.displacementMap=C.displacementMap,R.displacementScale=C.displacementScale,R.displacementBias=C.displacementBias,R.wireframeLinewidth=C.wireframeLinewidth,R.linewidth=C.linewidth,P.isPointLight===!0&&R.isMeshDistanceMaterial===!0){const O=n.properties.get(R);O.light=P}return R}function A(w,C,P,E,R){if(w.visible===!1)return;if(w.layers.test(C.layers)&&(w.isMesh||w.isLine||w.isPoints)&&(w.castShadow||w.receiveShadow&&R===no)&&(!w.frustumCulled||r.intersectsObject(w))){w.modelViewMatrix.multiplyMatrices(P.matrixWorldInverse,w.matrixWorld);const U=e.update(w),F=w.material;if(Array.isArray(F)){const z=U.groups;for(let X=0,ne=z.length;X=1):$.indexOf("OpenGL ES")!==-1&&(j=parseFloat(/^OpenGL ES (\d)/.exec($)[1]),H=j>=2);let le=null,ce={};const ie=n.getParameter(n.SCISSOR_BOX),he=n.getParameter(n.VIEWPORT),Se=new Dn().fromArray(ie),ve=new Dn().fromArray(he);function Oe(se,Xe,Qe,Et){const gt=new Uint8Array(4),qt=n.createTexture();n.bindTexture(se,qt),n.texParameteri(se,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(se,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let hn=0;hnNe||W.height>Ne)&&(Le=Ne/Math.max(W.width,W.height)),Le<1||G===!0)if(typeof HTMLImageElement!="undefined"&&W instanceof HTMLImageElement||typeof HTMLCanvasElement!="undefined"&&W instanceof HTMLCanvasElement||typeof ImageBitmap!="undefined"&&W instanceof ImageBitmap){const Be=G?Iy:Math.floor,ht=Be(Le*W.width),je=Be(Le*W.height);h===void 0&&(h=p(ht,je));const it=de?p(ht,je):h;return it.width=ht,it.height=je,it.getContext("2d").drawImage(W,0,0,ht,je),it}else return"data"in W,W;return W}function g(W){return bw(W.width)&&bw(W.height)}function v(W){return s?!1:W.wrapS!==Ur||W.wrapT!==Ur||W.minFilter!==ar&&W.minFilter!==Bn}function x(W,G){return W.generateMipmaps&&G&&W.minFilter!==ar&&W.minFilter!==Bn}function S(W){n.generateMipmap(W)}function A(W,G,de,Ne,Le=!1){if(s===!1)return G;if(W!==null&&n[W]!==void 0)return n[W];let Be=G;if(G===n.RED&&(de===n.FLOAT&&(Be=n.R32F),de===n.HALF_FLOAT&&(Be=n.R16F),de===n.UNSIGNED_BYTE&&(Be=n.R8)),G===n.RED_INTEGER&&(de===n.UNSIGNED_BYTE&&(Be=n.R8UI),de===n.UNSIGNED_SHORT&&(Be=n.R16UI),de===n.UNSIGNED_INT&&(Be=n.R32UI),de===n.BYTE&&(Be=n.R8I),de===n.SHORT&&(Be=n.R16I),de===n.INT&&(Be=n.R32I)),G===n.RG&&(de===n.FLOAT&&(Be=n.RG32F),de===n.HALF_FLOAT&&(Be=n.RG16F),de===n.UNSIGNED_BYTE&&(Be=n.RG8)),G===n.RGBA){const ht=Le?Qp:Pn.getTransfer(Ne);de===n.FLOAT&&(Be=n.RGBA32F),de===n.HALF_FLOAT&&(Be=n.RGBA16F),de===n.UNSIGNED_BYTE&&(Be=ht===Fn?n.SRGB8_ALPHA8:n.RGBA8),de===n.UNSIGNED_SHORT_4_4_4_4&&(Be=n.RGBA4),de===n.UNSIGNED_SHORT_5_5_5_1&&(Be=n.RGB5_A1)}return(Be===n.R16F||Be===n.R32F||Be===n.RG16F||Be===n.RG32F||Be===n.RGBA16F||Be===n.RGBA32F)&&e.get("EXT_color_buffer_float"),Be}function T(W,G,de){return x(W,de)===!0||W.isFramebufferTexture&&W.minFilter!==ar&&W.minFilter!==Bn?Math.log2(Math.max(G.width,G.height))+1:W.mipmaps!==void 0&&W.mipmaps.length>0?W.mipmaps.length:W.isCompressedTexture&&Array.isArray(W.image)?G.mipmaps.length:1}function w(W){return W===ar||W===Kp||W===pf?n.NEAREST:n.LINEAR}function C(W){const G=W.target;G.removeEventListener("dispose",C),E(G),G.isVideoTexture&&c.delete(G)}function P(W){const G=W.target;G.removeEventListener("dispose",P),I(G)}function E(W){const G=r.get(W);if(G.__webglInit===void 0)return;const de=W.source,Ne=f.get(de);if(Ne){const Le=Ne[G.__cacheKey];Le.usedTimes--,Le.usedTimes===0&&R(W),Object.keys(Ne).length===0&&f.delete(de)}r.remove(W)}function R(W){const G=r.get(W);n.deleteTexture(G.__webglTexture);const de=W.source,Ne=f.get(de);delete Ne[G.__cacheKey],o.memory.textures--}function I(W){const G=W.texture,de=r.get(W),Ne=r.get(G);if(Ne.__webglTexture!==void 0&&(n.deleteTexture(Ne.__webglTexture),o.memory.textures--),W.depthTexture&&W.depthTexture.dispose(),W.isWebGLCubeRenderTarget)for(let Le=0;Le<6;Le++){if(Array.isArray(de.__webglFramebuffer[Le]))for(let Be=0;Be=i.maxTextures,O+=1,W}function z(W){const G=[];return G.push(W.wrapS),G.push(W.wrapT),G.push(W.wrapR||0),G.push(W.magFilter),G.push(W.minFilter),G.push(W.anisotropy),G.push(W.internalFormat),G.push(W.format),G.push(W.type),G.push(W.generateMipmaps),G.push(W.premultiplyAlpha),G.push(W.flipY),G.push(W.unpackAlignment),G.push(W.colorSpace),G.join()}function X(W,G){const de=r.get(W);if(W.isVideoTexture&&et(W),W.isRenderTargetTexture===!1&&W.version>0&&de.__version!==W.version){const Ne=W.image;if(Ne!==null){if(Ne.complete!==!1){Se(de,W,G);return}}}t.bindTexture(n.TEXTURE_2D,de.__webglTexture,n.TEXTURE0+G)}function ne(W,G){const de=r.get(W);if(W.version>0&&de.__version!==W.version){Se(de,W,G);return}t.bindTexture(n.TEXTURE_2D_ARRAY,de.__webglTexture,n.TEXTURE0+G)}function H(W,G){const de=r.get(W);if(W.version>0&&de.__version!==W.version){Se(de,W,G);return}t.bindTexture(n.TEXTURE_3D,de.__webglTexture,n.TEXTURE0+G)}function j(W,G){const de=r.get(W);if(W.version>0&&de.__version!==W.version){ve(de,W,G);return}t.bindTexture(n.TEXTURE_CUBE_MAP,de.__webglTexture,n.TEXTURE0+G)}const $={[zl]:n.REPEAT,[Ur]:n.CLAMP_TO_EDGE,[bf]:n.MIRRORED_REPEAT},le={[ar]:n.NEAREST,[Kp]:n.NEAREST_MIPMAP_NEAREST,[pf]:n.NEAREST_MIPMAP_LINEAR,[Bn]:n.LINEAR,[M_]:n.LINEAR_MIPMAP_NEAREST,[qo]:n.LINEAR_MIPMAP_LINEAR},ce={[N3]:n.NEVER,[H3]:n.ALWAYS,[F3]:n.LESS,[MT]:n.LEQUAL,[k3]:n.EQUAL,[z3]:n.GEQUAL,[U3]:n.GREATER,[G3]:n.NOTEQUAL};function ie(W,G,de){if(de?(n.texParameteri(W,n.TEXTURE_WRAP_S,$[G.wrapS]),n.texParameteri(W,n.TEXTURE_WRAP_T,$[G.wrapT]),(W===n.TEXTURE_3D||W===n.TEXTURE_2D_ARRAY)&&n.texParameteri(W,n.TEXTURE_WRAP_R,$[G.wrapR]),n.texParameteri(W,n.TEXTURE_MAG_FILTER,le[G.magFilter]),n.texParameteri(W,n.TEXTURE_MIN_FILTER,le[G.minFilter])):(n.texParameteri(W,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(W,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(W===n.TEXTURE_3D||W===n.TEXTURE_2D_ARRAY)&&n.texParameteri(W,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),G.wrapS!==Ur||G.wrapT,n.texParameteri(W,n.TEXTURE_MAG_FILTER,w(G.magFilter)),n.texParameteri(W,n.TEXTURE_MIN_FILTER,w(G.minFilter)),G.minFilter!==ar&&G.minFilter),G.compareFunction&&(n.texParameteri(W,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(W,n.TEXTURE_COMPARE_FUNC,ce[G.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const Ne=e.get("EXT_texture_filter_anisotropic");if(G.magFilter===ar||G.minFilter!==pf&&G.minFilter!==qo||G.type===Gr&&e.has("OES_texture_float_linear")===!1||s===!1&&G.type===Mi&&e.has("OES_texture_half_float_linear")===!1)return;(G.anisotropy>1||r.get(G).__currentAnisotropy)&&(n.texParameterf(W,Ne.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(G.anisotropy,i.getMaxAnisotropy())),r.get(G).__currentAnisotropy=G.anisotropy)}}function he(W,G){let de=!1;W.__webglInit===void 0&&(W.__webglInit=!0,G.addEventListener("dispose",C));const Ne=G.source;let Le=f.get(Ne);Le===void 0&&(Le={},f.set(Ne,Le));const Be=z(G);if(Be!==W.__cacheKey){Le[Be]===void 0&&(Le[Be]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,de=!0),Le[Be].usedTimes++;const ht=Le[W.__cacheKey];ht!==void 0&&(Le[W.__cacheKey].usedTimes--,ht.usedTimes===0&&R(G)),W.__cacheKey=Be,W.__webglTexture=Le[Be].texture}return de}function Se(W,G,de){let Ne=n.TEXTURE_2D;(G.isDataArrayTexture||G.isCompressedArrayTexture)&&(Ne=n.TEXTURE_2D_ARRAY),G.isData3DTexture&&(Ne=n.TEXTURE_3D);const Le=he(W,G),Be=G.source;t.bindTexture(Ne,W.__webglTexture,n.TEXTURE0+de);const ht=r.get(Be);if(Be.version!==ht.__version||Le===!0){t.activeTexture(n.TEXTURE0+de);const je=Pn.getPrimaries(Pn.workingColorSpace),it=G.colorSpace===$i?null:Pn.getPrimaries(G.colorSpace),_t=G.colorSpace===$i||je===it?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,G.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,G.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,G.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,_t);const xt=v(G)&&g(G.image)===!1;let Fe=y(G.image,xt,!1,i.maxTextureSize);Fe=Je(G,Fe);const un=g(Fe)||s,Ht=a.convert(G.format,G.colorSpace);let Ct=a.convert(G.type),st=A(G.internalFormat,Ht,Ct,G.colorSpace,G.isVideoTexture);ie(Ne,G,un);let lt;const ae=G.mipmaps,Ee=s&&G.isVideoTexture!==!0&&st!==_T,Ve=ht.__version===void 0||Le===!0,nt=T(G,Fe,un);if(G.isDepthTexture)st=n.DEPTH_COMPONENT,s?G.type===Gr?st=n.DEPTH_COMPONENT32F:G.type===Cs?st=n.DEPTH_COMPONENT24:G.type===Il?st=n.DEPTH24_STENCIL8:st=n.DEPTH_COMPONENT16:G.type,G.format===Ll&&st===n.DEPTH_COMPONENT&&G.type!==w_&&G.type!==Cs&&(G.type=Cs,Ct=a.convert(G.type)),G.format===Oc&&st===n.DEPTH_COMPONENT&&(st=n.DEPTH_STENCIL,G.type!==Il&&(G.type=Il,Ct=a.convert(G.type))),Ve&&(Ee?t.texStorage2D(n.TEXTURE_2D,1,st,Fe.width,Fe.height):t.texImage2D(n.TEXTURE_2D,0,st,Fe.width,Fe.height,0,Ht,Ct,null));else if(G.isDataTexture)if(ae.length>0&&un){Ee&&Ve&&t.texStorage2D(n.TEXTURE_2D,nt,st,ae[0].width,ae[0].height);for(let pe=0,se=ae.length;pe>=1,se>>=1}}else if(ae.length>0&&un){Ee&&Ve&&t.texStorage2D(n.TEXTURE_2D,nt,st,ae[0].width,ae[0].height);for(let pe=0,se=ae.length;pe0&&Ve++,t.texStorage2D(n.TEXTURE_CUBE_MAP,Ve,lt,Fe[0].width,Fe[0].height));for(let pe=0;pe<6;pe++)if(xt){ae?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+pe,0,0,0,Fe[pe].width,Fe[pe].height,Ct,st,Fe[pe].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+pe,0,lt,Fe[pe].width,Fe[pe].height,0,Ct,st,Fe[pe].data);for(let se=0;se>Be),Fe=Math.max(1,G.height>>Be);Le===n.TEXTURE_3D||Le===n.TEXTURE_2D_ARRAY?t.texImage3D(Le,Be,it,xt,Fe,G.depth,0,ht,je,null):t.texImage2D(Le,Be,it,xt,Fe,0,ht,je,null)}t.bindFramebuffer(n.FRAMEBUFFER,W),_e(G)?l.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,Ne,Le,r.get(de).__webglTexture,0,Pe(G)):(Le===n.TEXTURE_2D||Le>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&Le<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,Ne,Le,r.get(de).__webglTexture,Be),t.bindFramebuffer(n.FRAMEBUFFER,null)}function Ye(W,G,de){if(n.bindRenderbuffer(n.RENDERBUFFER,W),G.depthBuffer&&!G.stencilBuffer){let Ne=s===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(de||_e(G)){const Le=G.depthTexture;Le&&Le.isDepthTexture&&(Le.type===Gr?Ne=n.DEPTH_COMPONENT32F:Le.type===Cs&&(Ne=n.DEPTH_COMPONENT24));const Be=Pe(G);_e(G)?l.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,Be,Ne,G.width,G.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,Be,Ne,G.width,G.height)}else n.renderbufferStorage(n.RENDERBUFFER,Ne,G.width,G.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,W)}else if(G.depthBuffer&&G.stencilBuffer){const Ne=Pe(G);de&&_e(G)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,Ne,n.DEPTH24_STENCIL8,G.width,G.height):_e(G)?l.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,Ne,n.DEPTH24_STENCIL8,G.width,G.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,G.width,G.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,W)}else{const Ne=G.isWebGLMultipleRenderTargets===!0?G.texture:[G.texture];for(let Le=0;Le0){de.__webglFramebuffer[je]=[];for(let it=0;it0){de.__webglFramebuffer=[];for(let je=0;je0&&_e(W)===!1){const je=Be?G:[G];de.__webglMultisampledFramebuffer=n.createFramebuffer(),de.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,de.__webglMultisampledFramebuffer);for(let it=0;it0)for(let it=0;it0)for(let it=0;it0&&_e(W)===!1){const G=W.isWebGLMultipleRenderTargets?W.texture:[W.texture],de=W.width,Ne=W.height;let Le=n.COLOR_BUFFER_BIT;const Be=[],ht=W.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,je=r.get(W),it=W.isWebGLMultipleRenderTargets===!0;if(it)for(let _t=0;_t0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&G.__useRenderToTexture!==!1}function et(W){const G=o.render.frame;c.get(W)!==G&&(c.set(W,G),W.update())}function Je(W,G){const de=W.colorSpace,Ne=W.format,Le=W.type;return W.isCompressedTexture===!0||W.isVideoTexture===!0||W.format===Dy||de!==Qo&&de!==$i&&Pn.getTransfer(de)===Fn&&s===!1&&(e.has("EXT_sRGB")===!0&&Ne===ni?(W.format=Dy,W.minFilter=Bn,W.generateMipmaps=!1):G=bT.sRGBToLinear(G)),G}this.allocateTextureUnit=F,this.resetTextureUnits=U,this.setTexture2D=X,this.setTexture2DArray=ne,this.setTexture3D=H,this.setTextureCube=j,this.rebindTextures=Ie,this.setupRenderTarget=Z,this.updateRenderTargetMipmap=xe,this.updateMultisampleRenderTarget=ge,this.setupDepthRenderbuffer=ze,this.setupFrameBufferTexture=Oe,this.useMultisampledRTT=_e}function nk(n,e,t){const r=t.isWebGL2;function i(a,o=$i){let s;const l=Pn.getTransfer(o);if(a===Wo)return n.UNSIGNED_BYTE;if(a===dT)return n.UNSIGNED_SHORT_4_4_4_4;if(a===pT)return n.UNSIGNED_SHORT_5_5_5_1;if(a===A3)return n.BYTE;if(a===M3)return n.SHORT;if(a===w_)return n.UNSIGNED_SHORT;if(a===fT)return n.INT;if(a===Cs)return n.UNSIGNED_INT;if(a===Gr)return n.FLOAT;if(a===Mi)return r?n.HALF_FLOAT:(s=e.get("OES_texture_half_float"),s!==null?s.HALF_FLOAT_OES:null);if(a===w3)return n.ALPHA;if(a===ni)return n.RGBA;if(a===b3)return n.LUMINANCE;if(a===T3)return n.LUMINANCE_ALPHA;if(a===Ll)return n.DEPTH_COMPONENT;if(a===Oc)return n.DEPTH_STENCIL;if(a===Dy)return s=e.get("EXT_sRGB"),s!==null?s.SRGB_ALPHA_EXT:null;if(a===vT)return n.RED;if(a===gT)return n.RED_INTEGER;if(a===C3)return n.RG;if(a===mT)return n.RG_INTEGER;if(a===yT)return n.RGBA_INTEGER;if(a===ey||a===ty||a===ny||a===ry)if(l===Fn)if(s=e.get("WEBGL_compressed_texture_s3tc_srgb"),s!==null){if(a===ey)return s.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(a===ty)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(a===ny)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(a===ry)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(s=e.get("WEBGL_compressed_texture_s3tc"),s!==null){if(a===ey)return s.COMPRESSED_RGB_S3TC_DXT1_EXT;if(a===ty)return s.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(a===ny)return s.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(a===ry)return s.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(a===QM||a===$M||a===ew||a===tw)if(s=e.get("WEBGL_compressed_texture_pvrtc"),s!==null){if(a===QM)return s.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(a===$M)return s.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(a===ew)return s.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(a===tw)return s.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(a===_T)return s=e.get("WEBGL_compressed_texture_etc1"),s!==null?s.COMPRESSED_RGB_ETC1_WEBGL:null;if(a===nw||a===rw)if(s=e.get("WEBGL_compressed_texture_etc"),s!==null){if(a===nw)return l===Fn?s.COMPRESSED_SRGB8_ETC2:s.COMPRESSED_RGB8_ETC2;if(a===rw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:s.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(a===iw||a===aw||a===ow||a===sw||a===lw||a===uw||a===cw||a===hw||a===fw||a===dw||a===pw||a===vw||a===gw||a===mw)if(s=e.get("WEBGL_compressed_texture_astc"),s!==null){if(a===iw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:s.COMPRESSED_RGBA_ASTC_4x4_KHR;if(a===aw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:s.COMPRESSED_RGBA_ASTC_5x4_KHR;if(a===ow)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:s.COMPRESSED_RGBA_ASTC_5x5_KHR;if(a===sw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:s.COMPRESSED_RGBA_ASTC_6x5_KHR;if(a===lw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:s.COMPRESSED_RGBA_ASTC_6x6_KHR;if(a===uw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:s.COMPRESSED_RGBA_ASTC_8x5_KHR;if(a===cw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:s.COMPRESSED_RGBA_ASTC_8x6_KHR;if(a===hw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:s.COMPRESSED_RGBA_ASTC_8x8_KHR;if(a===fw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:s.COMPRESSED_RGBA_ASTC_10x5_KHR;if(a===dw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:s.COMPRESSED_RGBA_ASTC_10x6_KHR;if(a===pw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:s.COMPRESSED_RGBA_ASTC_10x8_KHR;if(a===vw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:s.COMPRESSED_RGBA_ASTC_10x10_KHR;if(a===gw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:s.COMPRESSED_RGBA_ASTC_12x10_KHR;if(a===mw)return l===Fn?s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:s.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(a===iy||a===yw||a===_w)if(s=e.get("EXT_texture_compression_bptc"),s!==null){if(a===iy)return l===Fn?s.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:s.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(a===yw)return s.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(a===_w)return s.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(a===E3||a===xw||a===Sw||a===Aw)if(s=e.get("EXT_texture_compression_rgtc"),s!==null){if(a===iy)return s.COMPRESSED_RED_RGTC1_EXT;if(a===xw)return s.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(a===Sw)return s.COMPRESSED_RED_GREEN_RGTC2_EXT;if(a===Aw)return s.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return a===Il?r?n.UNSIGNED_INT_24_8:(s=e.get("WEBGL_depth_texture"),s!==null?s.UNSIGNED_INT_24_8_WEBGL:null):n[a]!==void 0?n[a]:null}return{convert:i}}class rk extends zn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}let Es=class extends mn{constructor(){super(),this.isGroup=!0,this.type="Group"}};const ZY={type:"move"};class w1{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Es,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Es,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new J,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new J),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Es,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new J,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new J),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const r of e.hand.values())this._getHandJoint(t,r)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,r){let i=null,a=null,o=null;const s=this._targetRay,l=this._grip,u=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(u&&e.hand){o=!0;for(const y of e.hand.values()){const g=t.getJointPose(y,r),v=this._getHandJoint(u,y);g!==null&&(v.matrix.fromArray(g.transform.matrix),v.matrix.decompose(v.position,v.rotation,v.scale),v.matrixWorldNeedsUpdate=!0,v.jointRadius=g.radius),v.visible=g!==null}const c=u.joints["index-finger-tip"],h=u.joints["thumb-tip"],f=c.position.distanceTo(h.position),d=.02,p=.005;u.inputState.pinching&&f>d+p?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&f<=d-p&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(a=t.getPose(e.gripSpace,r),a!==null&&(l.matrix.fromArray(a.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,a.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(a.linearVelocity)):l.hasLinearVelocity=!1,a.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(a.angularVelocity)):l.hasAngularVelocity=!1));s!==null&&(i=t.getPose(e.targetRaySpace,r),i===null&&a!==null&&(i=a),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,this.dispatchEvent(ZY)))}return s!==null&&(s.visible=i!==null),l!==null&&(l.visible=a!==null),u!==null&&(u.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const r=new Es;r.matrixAutoUpdate=!1,r.visible=!1,e.joints[t.jointName]=r,e.add(r)}return e.joints[t.jointName]}}class jY extends rs{constructor(e,t){super();const r=this;let i=null,a=1,o=null,s="local-floor",l=1,u=null,c=null,h=null,f=null,d=null,p=null;const y=t.getContextAttributes();let g=null,v=null;const x=[],S=[],A=new Re;let T=null;const w=new zn;w.layers.enable(1),w.viewport=new Dn;const C=new zn;C.layers.enable(2),C.viewport=new Dn;const P=[w,C],E=new rk;E.layers.enable(1),E.layers.enable(2);let R=null,I=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ie){let he=x[ie];return he===void 0&&(he=new w1,x[ie]=he),he.getTargetRaySpace()},this.getControllerGrip=function(ie){let he=x[ie];return he===void 0&&(he=new w1,x[ie]=he),he.getGripSpace()},this.getHand=function(ie){let he=x[ie];return he===void 0&&(he=new w1,x[ie]=he),he.getHandSpace()};function O(ie){const he=S.indexOf(ie.inputSource);if(he===-1)return;const Se=x[he];Se!==void 0&&(Se.update(ie.inputSource,ie.frame,u||o),Se.dispatchEvent({type:ie.type,data:ie.inputSource}))}function U(){i.removeEventListener("select",O),i.removeEventListener("selectstart",O),i.removeEventListener("selectend",O),i.removeEventListener("squeeze",O),i.removeEventListener("squeezestart",O),i.removeEventListener("squeezeend",O),i.removeEventListener("end",U),i.removeEventListener("inputsourceschange",F);for(let ie=0;ie=0&&(S[ve]=null,x[ve].disconnect(Se))}for(let he=0;he=S.length){S.push(Se),ve=Ye;break}else if(S[Ye]===null){S[Ye]=Se,ve=Ye;break}if(ve===-1)break}const Oe=x[ve];Oe&&Oe.connect(Se)}}const z=new J,X=new J;function ne(ie,he,Se){z.setFromMatrixPosition(he.matrixWorld),X.setFromMatrixPosition(Se.matrixWorld);const ve=z.distanceTo(X),Oe=he.projectionMatrix.elements,Ye=Se.projectionMatrix.elements,tt=Oe[14]/(Oe[10]-1),ze=Oe[14]/(Oe[10]+1),Ie=(Oe[9]+1)/Oe[5],Z=(Oe[9]-1)/Oe[5],xe=(Oe[8]-1)/Oe[0],ge=(Ye[8]+1)/Ye[0],Pe=tt*xe,_e=tt*ge,et=ve/(-xe+ge),Je=et*-xe;he.matrixWorld.decompose(ie.position,ie.quaternion,ie.scale),ie.translateX(Je),ie.translateZ(et),ie.matrixWorld.compose(ie.position,ie.quaternion,ie.scale),ie.matrixWorldInverse.copy(ie.matrixWorld).invert();const W=tt+et,G=ze+et,de=Pe-Je,Ne=_e+(ve-Je),Le=Ie*ze/G*W,Be=Z*ze/G*W;ie.projectionMatrix.makePerspective(de,Ne,Le,Be,W,G),ie.projectionMatrixInverse.copy(ie.projectionMatrix).invert()}function H(ie,he){he===null?ie.matrixWorld.copy(ie.matrix):ie.matrixWorld.multiplyMatrices(he.matrixWorld,ie.matrix),ie.matrixWorldInverse.copy(ie.matrixWorld).invert()}this.updateCamera=function(ie){if(i===null)return;E.near=C.near=w.near=ie.near,E.far=C.far=w.far=ie.far,(R!==E.near||I!==E.far)&&(i.updateRenderState({depthNear:E.near,depthFar:E.far}),R=E.near,I=E.far);const he=ie.parent,Se=E.cameras;H(E,he);for(let ve=0;ve0&&(g.alphaTest.value=v.alphaTest);const x=e.get(v).envMap;if(x&&(g.envMap.value=x,g.flipEnvMap.value=x.isCubeTexture&&x.isRenderTargetTexture===!1?-1:1,g.reflectivity.value=v.reflectivity,g.ior.value=v.ior,g.refractionRatio.value=v.refractionRatio),v.lightMap){g.lightMap.value=v.lightMap;const S=n._useLegacyLights===!0?Math.PI:1;g.lightMapIntensity.value=v.lightMapIntensity*S,t(v.lightMap,g.lightMapTransform)}v.aoMap&&(g.aoMap.value=v.aoMap,g.aoMapIntensity.value=v.aoMapIntensity,t(v.aoMap,g.aoMapTransform))}function o(g,v){g.diffuse.value.copy(v.color),g.opacity.value=v.opacity,v.map&&(g.map.value=v.map,t(v.map,g.mapTransform))}function s(g,v){g.dashSize.value=v.dashSize,g.totalSize.value=v.dashSize+v.gapSize,g.scale.value=v.scale}function l(g,v,x,S){g.diffuse.value.copy(v.color),g.opacity.value=v.opacity,g.size.value=v.size*x,g.scale.value=S*.5,v.map&&(g.map.value=v.map,t(v.map,g.uvTransform)),v.alphaMap&&(g.alphaMap.value=v.alphaMap,t(v.alphaMap,g.alphaMapTransform)),v.alphaTest>0&&(g.alphaTest.value=v.alphaTest)}function u(g,v){g.diffuse.value.copy(v.color),g.opacity.value=v.opacity,g.rotation.value=v.rotation,v.map&&(g.map.value=v.map,t(v.map,g.mapTransform)),v.alphaMap&&(g.alphaMap.value=v.alphaMap,t(v.alphaMap,g.alphaMapTransform)),v.alphaTest>0&&(g.alphaTest.value=v.alphaTest)}function c(g,v){g.specular.value.copy(v.specular),g.shininess.value=Math.max(v.shininess,1e-4)}function h(g,v){v.gradientMap&&(g.gradientMap.value=v.gradientMap)}function f(g,v){g.metalness.value=v.metalness,v.metalnessMap&&(g.metalnessMap.value=v.metalnessMap,t(v.metalnessMap,g.metalnessMapTransform)),g.roughness.value=v.roughness,v.roughnessMap&&(g.roughnessMap.value=v.roughnessMap,t(v.roughnessMap,g.roughnessMapTransform)),e.get(v).envMap&&(g.envMapIntensity.value=v.envMapIntensity)}function d(g,v,x){g.ior.value=v.ior,v.sheen>0&&(g.sheenColor.value.copy(v.sheenColor).multiplyScalar(v.sheen),g.sheenRoughness.value=v.sheenRoughness,v.sheenColorMap&&(g.sheenColorMap.value=v.sheenColorMap,t(v.sheenColorMap,g.sheenColorMapTransform)),v.sheenRoughnessMap&&(g.sheenRoughnessMap.value=v.sheenRoughnessMap,t(v.sheenRoughnessMap,g.sheenRoughnessMapTransform))),v.clearcoat>0&&(g.clearcoat.value=v.clearcoat,g.clearcoatRoughness.value=v.clearcoatRoughness,v.clearcoatMap&&(g.clearcoatMap.value=v.clearcoatMap,t(v.clearcoatMap,g.clearcoatMapTransform)),v.clearcoatRoughnessMap&&(g.clearcoatRoughnessMap.value=v.clearcoatRoughnessMap,t(v.clearcoatRoughnessMap,g.clearcoatRoughnessMapTransform)),v.clearcoatNormalMap&&(g.clearcoatNormalMap.value=v.clearcoatNormalMap,t(v.clearcoatNormalMap,g.clearcoatNormalMapTransform),g.clearcoatNormalScale.value.copy(v.clearcoatNormalScale),v.side===bi&&g.clearcoatNormalScale.value.negate())),v.iridescence>0&&(g.iridescence.value=v.iridescence,g.iridescenceIOR.value=v.iridescenceIOR,g.iridescenceThicknessMinimum.value=v.iridescenceThicknessRange[0],g.iridescenceThicknessMaximum.value=v.iridescenceThicknessRange[1],v.iridescenceMap&&(g.iridescenceMap.value=v.iridescenceMap,t(v.iridescenceMap,g.iridescenceMapTransform)),v.iridescenceThicknessMap&&(g.iridescenceThicknessMap.value=v.iridescenceThicknessMap,t(v.iridescenceThicknessMap,g.iridescenceThicknessMapTransform))),v.transmission>0&&(g.transmission.value=v.transmission,g.transmissionSamplerMap.value=x.texture,g.transmissionSamplerSize.value.set(x.width,x.height),v.transmissionMap&&(g.transmissionMap.value=v.transmissionMap,t(v.transmissionMap,g.transmissionMapTransform)),g.thickness.value=v.thickness,v.thicknessMap&&(g.thicknessMap.value=v.thicknessMap,t(v.thicknessMap,g.thicknessMapTransform)),g.attenuationDistance.value=v.attenuationDistance,g.attenuationColor.value.copy(v.attenuationColor)),v.anisotropy>0&&(g.anisotropyVector.value.set(v.anisotropy*Math.cos(v.anisotropyRotation),v.anisotropy*Math.sin(v.anisotropyRotation)),v.anisotropyMap&&(g.anisotropyMap.value=v.anisotropyMap,t(v.anisotropyMap,g.anisotropyMapTransform))),g.specularIntensity.value=v.specularIntensity,g.specularColor.value.copy(v.specularColor),v.specularColorMap&&(g.specularColorMap.value=v.specularColorMap,t(v.specularColorMap,g.specularColorMapTransform)),v.specularIntensityMap&&(g.specularIntensityMap.value=v.specularIntensityMap,t(v.specularIntensityMap,g.specularIntensityMapTransform))}function p(g,v){v.matcap&&(g.matcap.value=v.matcap)}function y(g,v){const x=e.get(v).light;g.referencePosition.value.setFromMatrixPosition(x.matrixWorld),g.nearDistance.value=x.shadow.camera.near,g.farDistance.value=x.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function qY(n,e,t,r){let i={},a={},o=[];const s=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(x,S){const A=S.program;r.uniformBlockBinding(x,A)}function u(x,S){let A=i[x.id];A===void 0&&(p(x),A=c(x),i[x.id]=A,x.addEventListener("dispose",g));const T=S.program;r.updateUBOMapping(x,T);const w=e.render.frame;a[x.id]!==w&&(f(x),a[x.id]=w)}function c(x){const S=h();x.__bindingPointIndex=S;const A=n.createBuffer(),T=x.__size,w=x.usage;return n.bindBuffer(n.UNIFORM_BUFFER,A),n.bufferData(n.UNIFORM_BUFFER,T,w),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,S,A),A}function h(){for(let x=0;x0&&(A+=T-w),x.__size=A,x.__cache={},this}function y(x){const S={boundary:0,storage:0};return typeof x=="number"||typeof x=="boolean"?(S.boundary=4,S.storage=4):x.isVector2?(S.boundary=8,S.storage=8):x.isVector3||x.isColor?(S.boundary=16,S.storage=12):x.isVector4?(S.boundary=16,S.storage=16):x.isMatrix3?(S.boundary=48,S.storage=48):x.isMatrix4?(S.boundary=64,S.storage=64):x.isTexture,S}function g(x){const S=x.target;S.removeEventListener("dispose",g);const A=o.indexOf(S.__bindingPointIndex);o.splice(A,1),n.deleteBuffer(i[S.id]),delete i[S.id],delete a[S.id]}function v(){for(const x in i)n.deleteBuffer(i[x]);o=[],i={},a={}}return{bind:l,update:u,dispose:v}}class LT{constructor(e={}){const{canvas:t=W3(),context:r=null,depth:i=!0,stencil:a=!0,alpha:o=!1,antialias:s=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:u=!1,powerPreference:c="default",failIfMajorPerformanceCaveat:h=!1}=e;this.isWebGLRenderer=!0;let f;r!==null?f=r.getContextAttributes().alpha:f=o;const d=new Uint32Array(4),p=new Int32Array(4);let y=null,g=null;const v=[],x=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=wr,this._useLegacyLights=!1,this.toneMapping=Vo,this.toneMappingExposure=1;const S=this;let A=!1,T=0,w=0,C=null,P=-1,E=null;const R=new Dn,I=new Dn;let O=null;const U=new $e(0);let F=0,z=t.width,X=t.height,ne=1,H=null,j=null;const $=new Dn(0,0,z,X),le=new Dn(0,0,z,X);let ce=!1;const ie=new Hv;let he=!1,Se=!1,ve=null;const Oe=new Dt,Ye=new Re,tt=new J,ze={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Ie(){return C===null?ne:1}let Z=r;function xe(B,Y){for(let K=0;K{function ye(){if(re.forEach(function(Ae){Je.get(Ae).currentProgram.isReady()&&re.delete(Ae)}),re.size===0){te(B);return}setTimeout(ye,10)}ge.get("KHR_parallel_shader_compile")!==null?ye():setTimeout(ye,10)})};let hn=null;function En(B){hn&&hn(B)}function On(){Sr.stop()}function dn(){Sr.start()}const Sr=new K3;Sr.setAnimationLoop(En),typeof self!="undefined"&&Sr.setContext(self),this.setAnimationLoop=function(B){hn=B,nt.setAnimationLoop(B),B===null?Sr.stop():Sr.start()},nt.addEventListener("sessionstart",On),nt.addEventListener("sessionend",dn),this.render=function(B,Y){if(Y!==void 0&&Y.isCamera!==!0||A===!0)return;B.matrixWorldAutoUpdate===!0&&B.updateMatrixWorld(),Y.parent===null&&Y.matrixWorldAutoUpdate===!0&&Y.updateMatrixWorld(),nt.enabled===!0&&nt.isPresenting===!0&&(nt.cameraAutoUpdate===!0&&nt.updateCamera(Y),Y=nt.getCamera()),B.isScene===!0&&B.onBeforeRender(S,B,Y,C),g=_t.get(B,x.length),g.init(),x.push(g),Oe.multiplyMatrices(Y.projectionMatrix,Y.matrixWorldInverse),ie.setFromProjectionMatrix(Oe),Se=this.localClippingEnabled,he=xt.init(this.clippingPlanes,Se),y=it.get(B,v.length),y.init(),v.push(y),Di(B,Y,0,S.sortObjects),y.finish(),S.sortObjects===!0&&y.sort(H,j),this.info.render.frame++,he===!0&&xt.beginShadows();const K=g.state.shadowsArray;if(Fe.render(K,B,Y),he===!0&&xt.endShadows(),this.info.autoReset===!0&&this.info.reset(),un.render(y,B),g.setupLights(S._useLegacyLights),Y.isArrayCamera){const re=Y.cameras;for(let te=0,ye=re.length;te0?g=x[x.length-1]:g=null,v.pop(),v.length>0?y=v[v.length-1]:y=null};function Di(B,Y,K,re){if(B.visible===!1)return;if(B.layers.test(Y.layers)){if(B.isGroup)K=B.renderOrder;else if(B.isLOD)B.autoUpdate===!0&&B.update(Y);else if(B.isLight)g.pushLight(B),B.castShadow&&g.pushShadow(B);else if(B.isSprite){if(!B.frustumCulled||ie.intersectsSprite(B)){re&&tt.setFromMatrixPosition(B.matrixWorld).applyMatrix4(Oe);const Ae=Be.update(B),Te=B.material;Te.visible&&y.push(B,Ae,Te,K,tt.z,null)}}else if((B.isMesh||B.isLine||B.isPoints)&&(!B.frustumCulled||ie.intersectsObject(B))){const Ae=Be.update(B),Te=B.material;if(re&&(B.boundingSphere!==void 0?(B.boundingSphere===null&&B.computeBoundingSphere(),tt.copy(B.boundingSphere.center)):(Ae.boundingSphere===null&&Ae.computeBoundingSphere(),tt.copy(Ae.boundingSphere.center)),tt.applyMatrix4(B.matrixWorld).applyMatrix4(Oe)),Array.isArray(Te)){const be=Ae.groups;for(let ut=0,ke=be.length;ut0&&ru(te,ye,Y,K),re&&_e.viewport(R.copy(re)),te.length>0&&ca(te,Y,K),ye.length>0&&ca(ye,Y,K),Ae.length>0&&ca(Ae,Y,K),_e.buffers.depth.setTest(!0),_e.buffers.depth.setMask(!0),_e.buffers.color.setMask(!0),_e.setPolygonOffset(!1)}function ru(B,Y,K,re){if((K.isScene===!0?K.overrideMaterial:null)!==null)return;const ye=Pe.isWebGL2;ve===null&&(ve=new aa(1,1,{generateMipmaps:!0,type:ge.has("EXT_color_buffer_half_float")?Mi:Wo,minFilter:qo,samples:ye?4:0})),S.getDrawingBufferSize(Ye),ye?ve.setSize(Ye.x,Ye.y):ve.setSize(Iy(Ye.x),Iy(Ye.y));const Ae=S.getRenderTarget();S.setRenderTarget(ve),S.getClearColor(U),F=S.getClearAlpha(),F<1&&S.setClearColor(16777215,.5),S.clear();const Te=S.toneMapping;S.toneMapping=Vo,ca(B,K,re),W.updateMultisampleRenderTarget(ve),W.updateRenderTargetMipmap(ve);let be=!1;for(let ut=0,ke=Y.length;ut0),Ue=!!K.morphAttributes.position,dt=!!K.morphAttributes.normal,wt=!!K.morphAttributes.color;let Rt=Vo;re.toneMapped&&(C===null||C.isXRRenderTarget===!0)&&(Rt=S.toneMapping);const kt=K.morphAttributes.position||K.morphAttributes.normal||K.morphAttributes.color,ct=kt!==void 0?kt.length:0,Ke=Je.get(re),nn=g.state.lights;if(he===!0&&(Se===!0||B!==E)){const Zt=B===E&&re.id===P;xt.setState(re,B,Zt)}let It=!1;re.version===Ke.__version?(Ke.needsLights&&Ke.lightsStateVersion!==nn.state.version||Ke.outputColorSpace!==Te||te.isBatchedMesh&&Ke.batching===!1||!te.isBatchedMesh&&Ke.batching===!0||te.isInstancedMesh&&Ke.instancing===!1||!te.isInstancedMesh&&Ke.instancing===!0||te.isSkinnedMesh&&Ke.skinning===!1||!te.isSkinnedMesh&&Ke.skinning===!0||te.isInstancedMesh&&Ke.instancingColor===!0&&te.instanceColor===null||te.isInstancedMesh&&Ke.instancingColor===!1&&te.instanceColor!==null||Ke.envMap!==be||re.fog===!0&&Ke.fog!==ye||Ke.numClippingPlanes!==void 0&&(Ke.numClippingPlanes!==xt.numPlanes||Ke.numIntersection!==xt.numIntersection)||Ke.vertexAlphas!==ut||Ke.vertexTangents!==ke||Ke.morphTargets!==Ue||Ke.morphNormals!==dt||Ke.morphColors!==wt||Ke.toneMapping!==Rt||Pe.isWebGL2===!0&&Ke.morphTargetsCount!==ct)&&(It=!0):(It=!0,Ke.__version=re.version);let Bt=Ke.currentProgram;It===!0&&(Bt=Jt(re,Y,te));let Rn=!1,tr=!1,Wn=!1;const vn=Bt.getUniforms(),cn=Ke.uniforms;if(_e.useProgram(Bt.program)&&(Rn=!0,tr=!0,Wn=!0),re.id!==P&&(P=re.id,tr=!0),Rn||E!==B){vn.setValue(Z,"projectionMatrix",B.projectionMatrix),vn.setValue(Z,"viewMatrix",B.matrixWorldInverse);const Zt=vn.map.cameraPosition;Zt!==void 0&&Zt.setValue(Z,tt.setFromMatrixPosition(B.matrixWorld)),Pe.logarithmicDepthBuffer&&vn.setValue(Z,"logDepthBufFC",2/(Math.log(B.far+1)/Math.LN2)),(re.isMeshPhongMaterial||re.isMeshToonMaterial||re.isMeshLambertMaterial||re.isMeshBasicMaterial||re.isMeshStandardMaterial||re.isShaderMaterial)&&vn.setValue(Z,"isOrthographic",B.isOrthographicCamera===!0),E!==B&&(E=B,tr=!0,Wn=!0)}if(te.isSkinnedMesh){vn.setOptional(Z,te,"bindMatrix"),vn.setOptional(Z,te,"bindMatrixInverse");const Zt=te.skeleton;Zt&&Pe.floatVertexTextures&&(Zt.boneTexture===null&&Zt.computeBoneTexture(),vn.setValue(Z,"boneTexture",Zt.boneTexture,W))}te.isBatchedMesh&&(vn.setOptional(Z,te,"batchingTexture"),vn.setValue(Z,"batchingTexture",te._matricesTexture,W));const Kn=K.morphAttributes;if((Kn.position!==void 0||Kn.normal!==void 0||Kn.color!==void 0&&Pe.isWebGL2===!0)&&Ht.update(te,K,Bt),(tr||Ke.receiveShadow!==te.receiveShadow)&&(Ke.receiveShadow=te.receiveShadow,vn.setValue(Z,"receiveShadow",te.receiveShadow)),re.isMeshGouraudMaterial&&re.envMap!==null&&(cn.envMap.value=be,cn.flipEnvMap.value=be.isCubeTexture&&be.isRenderTargetTexture===!1?-1:1),tr&&(vn.setValue(Z,"toneMappingExposure",S.toneMappingExposure),Ke.needsLights&&V(cn,Wn),ye&&re.fog===!0&&je.refreshFogUniforms(cn,ye),je.refreshMaterialUniforms(cn,re,ne,X,ve),oy.upload(Z,iu(Ke),cn,W)),re.isShaderMaterial&&re.uniformsNeedUpdate===!0&&(oy.upload(Z,iu(Ke),cn,W),re.uniformsNeedUpdate=!1),re.isSpriteMaterial&&vn.setValue(Z,"center",te.center),vn.setValue(Z,"modelViewMatrix",te.modelViewMatrix),vn.setValue(Z,"normalMatrix",te.normalMatrix),vn.setValue(Z,"modelMatrix",te.matrixWorld),re.isShaderMaterial||re.isRawShaderMaterial){const Zt=re.uniformsGroups;for(let fn=0,Nn=Zt.length;fn0&&W.useMultisampledRTT(B)===!1?te=Je.get(B).__webglMultisampledFramebuffer:Array.isArray(ke)?te=ke[K]:te=ke,R.copy(B.viewport),I.copy(B.scissor),O=B.scissorTest}else R.copy($).multiplyScalar(ne).floor(),I.copy(le).multiplyScalar(ne).floor(),O=ce;if(_e.bindFramebuffer(Z.FRAMEBUFFER,te)&&Pe.drawBuffers&&re&&_e.drawBuffers(B,te),_e.viewport(R),_e.scissor(I),_e.setScissorTest(O),ye){const be=Je.get(B.texture);Z.framebufferTexture2D(Z.FRAMEBUFFER,Z.COLOR_ATTACHMENT0,Z.TEXTURE_CUBE_MAP_POSITIVE_X+Y,be.__webglTexture,K)}else if(Ae){const be=Je.get(B.texture),ut=Y||0;Z.framebufferTextureLayer(Z.FRAMEBUFFER,Z.COLOR_ATTACHMENT0,be.__webglTexture,K||0,ut)}P=-1},this.readRenderTargetPixels=function(B,Y,K,re,te,ye,Ae){if(!(B&&B.isWebGLRenderTarget))return;let Te=Je.get(B).__webglFramebuffer;if(B.isWebGLCubeRenderTarget&&Ae!==void 0&&(Te=Te[Ae]),Te){_e.bindFramebuffer(Z.FRAMEBUFFER,Te);try{const be=B.texture,ut=be.format,ke=be.type;if(ut!==ni&<.convert(ut)!==Z.getParameter(Z.IMPLEMENTATION_COLOR_READ_FORMAT))return;const Ue=ke===Mi&&(ge.has("EXT_color_buffer_half_float")||Pe.isWebGL2&&ge.has("EXT_color_buffer_float"));if(ke!==Wo&<.convert(ke)!==Z.getParameter(Z.IMPLEMENTATION_COLOR_READ_TYPE)&&!(ke===Gr&&(Pe.isWebGL2||ge.has("OES_texture_float")||ge.has("WEBGL_color_buffer_float")))&&!Ue)return;Y>=0&&Y<=B.width-re&&K>=0&&K<=B.height-te&&Z.readPixels(Y,K,re,te,lt.convert(ut),lt.convert(ke),ye)}finally{const be=C!==null?Je.get(C).__webglFramebuffer:null;_e.bindFramebuffer(Z.FRAMEBUFFER,be)}}},this.copyFramebufferToTexture=function(B,Y,K=0){const re=Math.pow(2,-K),te=Math.floor(Y.image.width*re),ye=Math.floor(Y.image.height*re);W.setTexture2D(Y,0),Z.copyTexSubImage2D(Z.TEXTURE_2D,K,0,0,B.x,B.y,te,ye),_e.unbindTexture()},this.copyTextureToTexture=function(B,Y,K,re=0){const te=Y.image.width,ye=Y.image.height,Ae=lt.convert(K.format),Te=lt.convert(K.type);W.setTexture2D(K,0),Z.pixelStorei(Z.UNPACK_FLIP_Y_WEBGL,K.flipY),Z.pixelStorei(Z.UNPACK_PREMULTIPLY_ALPHA_WEBGL,K.premultiplyAlpha),Z.pixelStorei(Z.UNPACK_ALIGNMENT,K.unpackAlignment),Y.isDataTexture?Z.texSubImage2D(Z.TEXTURE_2D,re,B.x,B.y,te,ye,Ae,Te,Y.image.data):Y.isCompressedTexture?Z.compressedTexSubImage2D(Z.TEXTURE_2D,re,B.x,B.y,Y.mipmaps[0].width,Y.mipmaps[0].height,Ae,Y.mipmaps[0].data):Z.texSubImage2D(Z.TEXTURE_2D,re,B.x,B.y,Ae,Te,Y.image),re===0&&K.generateMipmaps&&Z.generateMipmap(Z.TEXTURE_2D),_e.unbindTexture()},this.copyTextureToTexture3D=function(B,Y,K,re,te=0){if(S.isWebGL1Renderer)return;const ye=B.max.x-B.min.x+1,Ae=B.max.y-B.min.y+1,Te=B.max.z-B.min.z+1,be=lt.convert(re.format),ut=lt.convert(re.type);let ke;if(re.isData3DTexture)W.setTexture3D(re,0),ke=Z.TEXTURE_3D;else if(re.isDataArrayTexture||re.isCompressedArrayTexture)W.setTexture2DArray(re,0),ke=Z.TEXTURE_2D_ARRAY;else return;Z.pixelStorei(Z.UNPACK_FLIP_Y_WEBGL,re.flipY),Z.pixelStorei(Z.UNPACK_PREMULTIPLY_ALPHA_WEBGL,re.premultiplyAlpha),Z.pixelStorei(Z.UNPACK_ALIGNMENT,re.unpackAlignment);const Ue=Z.getParameter(Z.UNPACK_ROW_LENGTH),dt=Z.getParameter(Z.UNPACK_IMAGE_HEIGHT),wt=Z.getParameter(Z.UNPACK_SKIP_PIXELS),Rt=Z.getParameter(Z.UNPACK_SKIP_ROWS),kt=Z.getParameter(Z.UNPACK_SKIP_IMAGES),ct=K.isCompressedTexture?K.mipmaps[te]:K.image;Z.pixelStorei(Z.UNPACK_ROW_LENGTH,ct.width),Z.pixelStorei(Z.UNPACK_IMAGE_HEIGHT,ct.height),Z.pixelStorei(Z.UNPACK_SKIP_PIXELS,B.min.x),Z.pixelStorei(Z.UNPACK_SKIP_ROWS,B.min.y),Z.pixelStorei(Z.UNPACK_SKIP_IMAGES,B.min.z),K.isDataTexture||K.isData3DTexture?Z.texSubImage3D(ke,te,Y.x,Y.y,Y.z,ye,Ae,Te,be,ut,ct.data):K.isCompressedArrayTexture?Z.compressedTexSubImage3D(ke,te,Y.x,Y.y,Y.z,ye,Ae,Te,be,ct.data):Z.texSubImage3D(ke,te,Y.x,Y.y,Y.z,ye,Ae,Te,be,ut,ct),Z.pixelStorei(Z.UNPACK_ROW_LENGTH,Ue),Z.pixelStorei(Z.UNPACK_IMAGE_HEIGHT,dt),Z.pixelStorei(Z.UNPACK_SKIP_PIXELS,wt),Z.pixelStorei(Z.UNPACK_SKIP_ROWS,Rt),Z.pixelStorei(Z.UNPACK_SKIP_IMAGES,kt),te===0&&re.generateMipmaps&&Z.generateMipmap(ke),_e.unbindTexture()},this.initTexture=function(B){B.isCubeTexture?W.setTextureCube(B,0):B.isData3DTexture?W.setTexture3D(B,0):B.isDataArrayTexture||B.isCompressedArrayTexture?W.setTexture2DArray(B,0):W.setTexture2D(B,0),_e.unbindTexture()},this.resetState=function(){T=0,w=0,C=null,_e.reset(),ae.reset()},typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return ao}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===T_?"display-p3":"srgb",t.unpackColorSpace=Pn.workingColorSpace===kv?"display-p3":"srgb"}get outputEncoding(){return this.outputColorSpace===wr?Bl:AT}set outputEncoding(e){this.outputColorSpace=e===Bl?wr:Qo}get useLegacyLights(){return this._useLegacyLights}set useLegacyLights(e){this._useLegacyLights=e}}class ik extends LT{}ik.prototype.isWebGL1Renderer=!0;class P_{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new $e(e),this.density=t}clone(){return new P_(this.color,this.density)}toJSON(){return{type:"FogExp2",name:this.name,color:this.color.getHex(),density:this.density}}}class D_{constructor(e,t=1,r=1e3){this.isFog=!0,this.name="",this.color=new $e(e),this.near=t,this.far=r}clone(){return new D_(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class rv extends mn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class Vv{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=tv,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=ra()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,r){e*=this.stride,r*=t.stride;for(let i=0,a=this.stride;ie.far||t.push({distance:l,point:Bd.clone(),uv:uc.getInterpolation(Bd,Cm,Nd,Em,kP,b1,UP,new Re),face:null,object:this})}copy(e,t){return super.copy(e,t),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}}function Rm(n,e,t,r,i,a){Rh.subVectors(n,t).addScalar(.5).multiply(r),i!==void 0?(Od.x=a*Rh.x-i*Rh.y,Od.y=i*Rh.x+a*Rh.y):Od.copy(Rh),n.copy(e),n.x+=Od.x,n.y+=Od.y,n.applyMatrix4(ak)}const Pm=new J,GP=new J;class sk extends mn{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let r=0,i=t.length;r0){let r,i;for(r=1,i=t.length;r0){Pm.setFromMatrixPosition(this.matrixWorld);const i=e.ray.origin.distanceTo(Pm);this.getObjectForDistance(i).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){Pm.setFromMatrixPosition(e.matrixWorld),GP.setFromMatrixPosition(this.matrixWorld);const r=Pm.distanceTo(GP)/e.zoom;t[0].object.visible=!0;let i,a;for(i=1,a=t.length;i=o)t[i-1].object.visible=!1,t[i].object.visible=!0;else break}for(this._currentLevel=i-1;i=r.length&&r.push({start:-1,count:-1,z:-1});const a=r[this.index];i.push(a),this.index++,a.start=e.start,a.count=e.count,a.z=t}reset(){this.list.length=0,this.index=0}}const Dh="batchId",sl=new Dt,jP=new Dt,iJ=new Dt,KP=new Dt,E1=new Hv,Lm=new ii,yu=new zr,Ud=new J,R1=new rJ,Kr=new sr,Bm=[];function aJ(n,e,t=0){const r=e.itemSize;if(n.isInterleavedBufferAttribute||n.array.constructor!==e.array.constructor){const i=n.count;for(let a=0;a65536?new Uint32Array(a):new Uint16Array(a);t.setIndex(new yn(s,1))}const o=i>65536?new Uint32Array(r):new Uint16Array(r);t.setAttribute(Dh,new yn(o,1)),this._geometryInitialized=!0}}_validateGeometry(e){if(e.getAttribute(Dh))throw new Error(`BatchedMesh: Geometry cannot use attribute "${Dh}"`);const t=this.geometry;if(!!e.getIndex()!=!!t.getIndex())throw new Error('BatchedMesh: All geometries must consistently have "index".');for(const r in t.attributes){if(r===Dh)continue;if(!e.hasAttribute(r))throw new Error(`BatchedMesh: Added geometry missing "${r}". All geometries must have consistent attributes.`);const i=e.getAttribute(r),a=t.getAttribute(r);if(i.itemSize!==a.itemSize||i.normalized!==a.normalized)throw new Error("BatchedMesh: All attributes must have a consistent itemSize and normalized value.")}}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new ii);const e=this._geometryCount,t=this.boundingBox,r=this._active;t.makeEmpty();for(let i=0;i=this._maxGeometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");const i={vertexStart:-1,vertexCount:-1,indexStart:-1,indexCount:-1};let a=null;const o=this._reservedRanges,s=this._drawRanges,l=this._bounds;this._geometryCount!==0&&(a=o[o.length-1]),t===-1?i.vertexCount=e.getAttribute("position").count:i.vertexCount=t,a===null?i.vertexStart=0:i.vertexStart=a.vertexStart+a.vertexCount;const u=e.getIndex(),c=u!==null;if(c&&(r===-1?i.indexCount=u.count:i.indexCount=r,a===null?i.indexStart=0:i.indexStart=a.indexStart+a.indexCount),i.indexStart!==-1&&i.indexStart+i.indexCount>this._maxIndexCount||i.vertexStart+i.vertexCount>this._maxVertexCount)throw new Error("BatchedMesh: Reserved space request exceeds the maximum buffer size.");const h=this._visibility,f=this._active,d=this._matricesTexture,p=this._matricesTexture.image.data;h.push(!0),f.push(!0);const y=this._geometryCount;this._geometryCount++,iJ.toArray(p,y*16),d.needsUpdate=!0,o.push(i),s.push({start:c?i.indexStart:i.vertexStart,count:-1}),l.push({boxInitialized:!1,box:new ii,sphereInitialized:!1,sphere:new zr});const g=this.geometry.getAttribute(Dh);for(let v=0;v=this._geometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");this._validateGeometry(t);const r=this.geometry,i=r.getIndex()!==null,a=r.getIndex(),o=t.getIndex(),s=this._reservedRanges[e];if(i&&o.count>s.indexCount||t.attributes.position.count>s.vertexCount)throw new Error("BatchedMesh: Reserved space not large enough for provided geometry.");const l=s.vertexStart,u=s.vertexCount;for(const d in r.attributes){if(d===Dh)continue;const p=t.getAttribute(d),y=r.getAttribute(d);aJ(p,y,l);const g=p.itemSize;for(let v=p.count,x=u;v=t.length||t[e]===!1?this:(t[e]=!1,this._visibilityChanged=!0,this)}getBoundingBoxAt(e,t){if(this._active[e]===!1)return this;const i=this._bounds[e],a=i.box,o=this.geometry;if(i.boxInitialized===!1){a.makeEmpty();const s=o.index,l=o.attributes.position,u=this._drawRanges[e];for(let c=u.start,h=u.start+u.count;c=o||r[e]===!1?this:(t.toArray(a,e*16),i.needsUpdate=!0,this)}getMatrixAt(e,t){const r=this._active,i=this._matricesTexture.image.data,a=this._geometryCount;return e>=a||r[e]===!1?null:t.fromArray(i,e*16)}setVisibleAt(e,t){const r=this._visibility,i=this._active,a=this._geometryCount;return e>=a||i[e]===!1||r[e]===t?this:(r[e]=t,this._visibilityChanged=!0,this)}getVisibleAt(e){const t=this._visibility,r=this._active,i=this._geometryCount;return e>=i||r[e]===!1?!1:t[e]}raycast(e,t){const r=this._visibility,i=this._active,a=this._drawRanges,o=this._geometryCount,s=this.matrixWorld,l=this.geometry;Kr.material=this.material,Kr.geometry.index=l.index,Kr.geometry.attributes=l.attributes,Kr.geometry.boundingBox===null&&(Kr.geometry.boundingBox=new ii),Kr.geometry.boundingSphere===null&&(Kr.geometry.boundingSphere=new zr);for(let u=0;uAt({},t)),this._reservedRanges=e._reservedRanges.map(t=>At({},t)),this._visibility=e._visibility.slice(),this._active=e._active.slice(),this._bounds=e._bounds.map(t=>({boxInitialized:t.boxInitialized,box:t.box.clone(),sphereInitialized:t.sphereInitialized,sphere:t.sphere.clone()})),this._maxGeometryCount=e._maxGeometryCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._geometryCount=e._geometryCount,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.slice(),this}dispose(){return this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,this}onBeforeRender(e,t,r,i,a){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;const o=i.getIndex(),s=o===null?1:o.array.BYTES_PER_ELEMENT,l=this._visibility,u=this._multiDrawStarts,c=this._multiDrawCounts,h=this._drawRanges,f=this.perObjectFrustumCulled;f&&(KP.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse).multiply(this.matrixWorld),E1.setFromProjectionMatrix(KP,e.isWebGPURenderer?Cf:ao));let d=0;if(this.sortObjects){jP.copy(this.matrixWorld).invert(),Ud.setFromMatrixPosition(r.matrixWorld).applyMatrix4(jP);for(let g=0,v=l.length;gl)continue;f.applyMatrix4(this.matrixWorld);const P=e.ray.origin.distanceTo(f);Pe.far||t.push({distance:P,point:h.clone().applyMatrix4(this.matrixWorld),index:S,face:null,faceIndex:null,object:this})}}else{const v=Math.max(0,o.start),x=Math.min(g.count,o.start+o.count);for(let S=v,A=x-1;Sl)continue;f.applyMatrix4(this.matrixWorld);const w=e.ray.origin.distanceTo(f);we.far||t.push({distance:w,point:h.clone().applyMatrix4(this.matrixWorld),index:S,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,r=Object.keys(t);if(r.length>0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,o=i.length;a0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,o=i.length;ai.far)return;a.push({distance:u,distanceToRay:Math.sqrt(s),point:l,index:e,face:null,object:o})}}class oJ extends Vn{constructor(e,t,r,i,a,o,s,l,u){super(e,t,r,i,a,o,s,l,u),this.isVideoTexture=!0,this.minFilter=o!==void 0?o:Bn,this.magFilter=a!==void 0?a:Bn,this.generateMipmaps=!1;const c=this;function h(){c.needsUpdate=!0,e.requestVideoFrameCallback(h)}"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(h)}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;"requestVideoFrameCallback"in e===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class sJ extends Vn{constructor(e,t){super({width:e,height:t}),this.isFramebufferTexture=!0,this.magFilter=ar,this.minFilter=ar,this.generateMipmaps=!1,this.needsUpdate=!0}}class B_ extends Vn{constructor(e,t,r,i,a,o,s,l,u,c,h,f){super(null,o,s,l,u,c,i,a,h,f),this.isCompressedTexture=!0,this.image={width:t,height:r},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class lJ extends B_{constructor(e,t,r,i,a,o){super(e,t,r,a,o),this.isCompressedArrayTexture=!0,this.image.depth=i,this.wrapR=Ur}}class uJ extends B_{constructor(e,t,r){super(void 0,e[0].width,e[0].height,t,r,Ko),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}}class cJ extends Vn{constructor(e,t,r,i,a,o,s,l,u){super(e,t,r,i,a,o,s,l,u),this.isCanvasTexture=!0,this.needsUpdate=!0}}class fo{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return null}getPointAt(e,t){const r=this.getUtoTmapping(e);return this.getPoint(r,t)}getPoints(e=5){const t=[];for(let r=0;r<=e;r++)t.push(this.getPoint(r/e));return t}getSpacedPoints(e=5){const t=[];for(let r=0;r<=e;r++)t.push(this.getPointAt(r/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let r,i=this.getPoint(0),a=0;t.push(0);for(let o=1;o<=e;o++)r=this.getPoint(o/e),a+=r.distanceTo(i),t.push(a),i=r;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const r=this.getLengths();let i=0;const a=r.length;let o;t?o=t:o=e*r[a-1];let s=0,l=a-1,u;for(;s<=l;)if(i=Math.floor(s+(l-s)/2),u=r[i]-o,u<0)s=i+1;else if(u>0)l=i-1;else{l=i;break}if(i=l,r[i]===o)return i/(a-1);const c=r[i],f=r[i+1]-c,d=(o-c)/f;return(i+d)/(a-1)}getTangent(e,t){let i=e-1e-4,a=e+1e-4;i<0&&(i=0),a>1&&(a=1);const o=this.getPoint(i),s=this.getPoint(a),l=t||(o.isVector2?new Re:new J);return l.copy(s).sub(o).normalize(),l}getTangentAt(e,t){const r=this.getUtoTmapping(e);return this.getTangent(r,t)}computeFrenetFrames(e,t){const r=new J,i=[],a=[],o=[],s=new J,l=new Dt;for(let d=0;d<=e;d++){const p=d/e;i[d]=this.getTangentAt(p,new J)}a[0]=new J,o[0]=new J;let u=Number.MAX_VALUE;const c=Math.abs(i[0].x),h=Math.abs(i[0].y),f=Math.abs(i[0].z);c<=u&&(u=c,r.set(1,0,0)),h<=u&&(u=h,r.set(0,1,0)),f<=u&&r.set(0,0,1),s.crossVectors(i[0],r).normalize(),a[0].crossVectors(i[0],s),o[0].crossVectors(i[0],a[0]);for(let d=1;d<=e;d++){if(a[d]=a[d-1].clone(),o[d]=o[d-1].clone(),s.crossVectors(i[d-1],i[d]),s.length()>Number.EPSILON){s.normalize();const p=Math.acos(or(i[d-1].dot(i[d]),-1,1));a[d].applyMatrix4(l.makeRotationAxis(s,p))}o[d].crossVectors(i[d],a[d])}if(t===!0){let d=Math.acos(or(a[0].dot(a[e]),-1,1));d/=e,i[0].dot(s.crossVectors(a[0],a[e]))>0&&(d=-d);for(let p=1;p<=e;p++)a[p].applyMatrix4(l.makeRotationAxis(i[p],d*p)),o[p].crossVectors(i[p],a[p])}return{tangents:i,normals:a,binormals:o}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class O_ extends fo{constructor(e=0,t=0,r=1,i=1,a=0,o=Math.PI*2,s=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=r,this.yRadius=i,this.aStartAngle=a,this.aEndAngle=o,this.aClockwise=s,this.aRotation=l}getPoint(e,t){const r=t||new Re,i=Math.PI*2;let a=this.aEndAngle-this.aStartAngle;const o=Math.abs(a)i;)a-=i;a0?0:(Math.floor(Math.abs(s)/a)+1)*a:l===0&&s===a-1&&(s=a-2,l=1);let u,c;this.closed||s>0?u=i[(s-1)%a]:(km.subVectors(i[0],i[1]).add(i[0]),u=km);const h=i[s%a],f=i[(s+1)%a];if(this.closed||s+2i.length-2?i.length-1:o+1],h=i[o>i.length-3?i.length-1:o+2];return r.set(iD(s,l.x,u.x,c.x,h.x),iD(s,l.y,u.y,c.y,h.y)),r}copy(e){super.copy(e),this.points=[];for(let t=0,r=e.points.length;t=r){const o=i[a]-r,s=this.curves[a],l=s.getLength(),u=l===0?0:1-o/l;return s.getPointAt(u,t)}a++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let r=0,i=this.curves.length;r1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,r=e.curves.length;t0){const h=u.getPoint(0);h.equals(this.currentPoint)||this.lineTo(h.x,h.y)}this.curves.push(u);const c=u.getPoint(1);return this.currentPoint.copy(c),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}};class Xv extends Yt{constructor(e=[new Re(0,-.5),new Re(.5,0),new Re(0,.5)],t=12,r=0,i=Math.PI*2){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:r,phiLength:i},t=Math.floor(t),i=or(i,0,Math.PI*2);const a=[],o=[],s=[],l=[],u=[],c=1/t,h=new J,f=new Re,d=new J,p=new J,y=new J;let g=0,v=0;for(let x=0;x<=e.length-1;x++)switch(x){case 0:g=e[x+1].x-e[x].x,v=e[x+1].y-e[x].y,d.x=v*1,d.y=-g,d.z=v*0,y.copy(d),d.normalize(),l.push(d.x,d.y,d.z);break;case e.length-1:l.push(y.x,y.y,y.z);break;default:g=e[x+1].x-e[x].x,v=e[x+1].y-e[x].y,d.x=v*1,d.y=-g,d.z=v*0,p.copy(d),d.x+=y.x,d.y+=y.y,d.z+=y.z,d.normalize(),l.push(d.x,d.y,d.z),y.copy(p)}for(let x=0;x<=t;x++){const S=r+x*c*i,A=Math.sin(S),T=Math.cos(S);for(let w=0;w<=e.length-1;w++){h.x=e[w].x*A,h.y=e[w].y,h.z=e[w].x*T,o.push(h.x,h.y,h.z),f.x=x/t,f.y=w/(e.length-1),s.push(f.x,f.y);const C=l[3*w+0]*A,P=l[3*w+1],E=l[3*w+0]*T;u.push(C,P,E)}}for(let x=0;x0&&S(!0),t>0&&S(!1)),this.setIndex(c),this.setAttribute("position",new yt(h,3)),this.setAttribute("normal",new yt(f,3)),this.setAttribute("uv",new yt(d,2));function x(){const A=new J,T=new J;let w=0;const C=(t-e)/r;for(let P=0;P<=a;P++){const E=[],R=P/a,I=R*(t-e)+e;for(let O=0;O<=i;O++){const U=O/i,F=U*l+s,z=Math.sin(F),X=Math.cos(F);T.x=I*z,T.y=-R*r+g,T.z=I*X,h.push(T.x,T.y,T.z),A.set(z,C,X).normalize(),f.push(A.x,A.y,A.z),d.push(U,1-R),E.push(p++)}y.push(E)}for(let P=0;P.9&&C<.1&&(S<.2&&(o[x+0]+=1),A<.2&&(o[x+2]+=1),T<.2&&(o[x+4]+=1))}}function f(x){a.push(x.x,x.y,x.z)}function d(x,S){const A=x*3;S.x=e[A+0],S.y=e[A+1],S.z=e[A+2]}function p(){const x=new J,S=new J,A=new J,T=new J,w=new Re,C=new Re,P=new Re;for(let E=0,R=0;E80*t){s=u=n[0],l=c=n[1];for(let p=t;pu&&(u=h),f>c&&(c=f);d=Math.max(u-s,c-l),d=d!==0?32767/d:0}return av(a,o,t,s,l,d,0),o}};function vk(n,e,t,r,i){let a,o;if(i===BJ(n,e,t,r)>0)for(a=e;a=e;a-=r)o=aD(a,n[a],n[a+1],o);return o&&G_(o,o.next)&&(sv(o),o=o.next),o}function Fc(n,e){if(!n)return n;e||(e=n);let t=n,r;do if(r=!1,!t.steiner&&(G_(t,t.next)||Qn(t.prev,t,t.next)===0)){if(sv(t),t=e=t.prev,t===t.next)break;r=!0}else t=t.next;while(r||t!==e);return e}function av(n,e,t,r,i,a,o){if(!n)return;!o&&a&&EJ(n,r,i,a);let s=n,l,u;for(;n.prev!==n.next;){if(l=n.prev,u=n.next,a?xJ(n,r,i,a):_J(n)){e.push(l.i/t|0),e.push(n.i/t|0),e.push(u.i/t|0),sv(n),n=u.next,s=u.next;continue}if(n=u,n===s){o?o===1?(n=SJ(Fc(n),e,t),av(n,e,t,r,i,a,2)):o===2&&AJ(n,e,t,r,i,a):av(Fc(n),e,t,r,i,a,1);break}}}function _J(n){const e=n.prev,t=n,r=n.next;if(Qn(e,t,r)>=0)return!1;const i=e.x,a=t.x,o=r.x,s=e.y,l=t.y,u=r.y,c=ia?i>o?i:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u;let p=r.next;for(;p!==e;){if(p.x>=c&&p.x<=f&&p.y>=h&&p.y<=d&&cf(i,s,a,l,o,u,p.x,p.y)&&Qn(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function xJ(n,e,t,r){const i=n.prev,a=n,o=n.next;if(Qn(i,a,o)>=0)return!1;const s=i.x,l=a.x,u=o.x,c=i.y,h=a.y,f=o.y,d=sl?s>u?s:u:l>u?l:u,g=c>h?c>f?c:f:h>f?h:f,v=Rw(d,p,e,t,r),x=Rw(y,g,e,t,r);let S=n.prevZ,A=n.nextZ;for(;S&&S.z>=v&&A&&A.z<=x;){if(S.x>=d&&S.x<=y&&S.y>=p&&S.y<=g&&S!==i&&S!==o&&cf(s,c,l,h,u,f,S.x,S.y)&&Qn(S.prev,S,S.next)>=0||(S=S.prevZ,A.x>=d&&A.x<=y&&A.y>=p&&A.y<=g&&A!==i&&A!==o&&cf(s,c,l,h,u,f,A.x,A.y)&&Qn(A.prev,A,A.next)>=0))return!1;A=A.nextZ}for(;S&&S.z>=v;){if(S.x>=d&&S.x<=y&&S.y>=p&&S.y<=g&&S!==i&&S!==o&&cf(s,c,l,h,u,f,S.x,S.y)&&Qn(S.prev,S,S.next)>=0)return!1;S=S.prevZ}for(;A&&A.z<=x;){if(A.x>=d&&A.x<=y&&A.y>=p&&A.y<=g&&A!==i&&A!==o&&cf(s,c,l,h,u,f,A.x,A.y)&&Qn(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function SJ(n,e,t){let r=n;do{const i=r.prev,a=r.next.next;!G_(i,a)&&gk(i,r,r.next,a)&&ov(i,a)&&ov(a,i)&&(e.push(i.i/t|0),e.push(r.i/t|0),e.push(a.i/t|0),sv(r),sv(r.next),r=n=a),r=r.next}while(r!==n);return Fc(r)}function AJ(n,e,t,r,i,a){let o=n;do{let s=o.next.next;for(;s!==o.prev;){if(o.i!==s.i&&DJ(o,s)){let l=mk(o,s);o=Fc(o,o.next),l=Fc(l,l.next),av(o,e,t,r,i,a,0),av(l,e,t,r,i,a,0);return}s=s.next}o=o.next}while(o!==n)}function MJ(n,e,t,r){const i=[];let a,o,s,l,u;for(a=0,o=e.length;a=t.next.y&&t.next.y!==t.y){const f=t.x+(o-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(f<=a&&f>r&&(r=f,i=t.x=t.x&&t.x>=l&&a!==t.x&&cf(oi.x||t.x===i.x&&CJ(i,t)))&&(i=t,c=h)),t=t.next;while(t!==s);return i}function CJ(n,e){return Qn(n.prev,n,e.prev)<0&&Qn(e.next,n,n.next)<0}function EJ(n,e,t,r){let i=n;do i.z===0&&(i.z=Rw(i.x,i.y,e,t,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==n);i.prevZ.nextZ=null,i.prevZ=null,RJ(i)}function RJ(n){let e,t,r,i,a,o,s,l,u=1;do{for(t=n,n=null,a=null,o=0;t;){for(o++,r=t,s=0,e=0;e0||l>0&&r;)s!==0&&(l===0||!r||t.z<=r.z)?(i=t,t=t.nextZ,s--):(i=r,r=r.nextZ,l--),a?a.nextZ=i:n=i,i.prevZ=a,a=i;t=r}a.nextZ=null,u*=2}while(o>1);return n}function Rw(n,e,t,r,i){return n=(n-t)*i|0,e=(e-r)*i|0,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,n|e<<1}function PJ(n){let e=n,t=n;do(e.x=(n-o)*(a-s)&&(n-o)*(r-s)>=(t-o)*(e-s)&&(t-o)*(a-s)>=(i-o)*(r-s)}function DJ(n,e){return n.next.i!==e.i&&n.prev.i!==e.i&&!IJ(n,e)&&(ov(n,e)&&ov(e,n)&&LJ(n,e)&&(Qn(n.prev,n,e.prev)||Qn(n,e.prev,e))||G_(n,e)&&Qn(n.prev,n,n.next)>0&&Qn(e.prev,e,e.next)>0)}function Qn(n,e,t){return(e.y-n.y)*(t.x-e.x)-(e.x-n.x)*(t.y-e.y)}function G_(n,e){return n.x===e.x&&n.y===e.y}function gk(n,e,t,r){const i=Vm(Qn(n,e,t)),a=Vm(Qn(n,e,r)),o=Vm(Qn(t,r,n)),s=Vm(Qn(t,r,e));return!!(i!==a&&o!==s||i===0&&Hm(n,t,e)||a===0&&Hm(n,r,e)||o===0&&Hm(t,n,r)||s===0&&Hm(t,e,r))}function Hm(n,e,t){return e.x<=Math.max(n.x,t.x)&&e.x>=Math.min(n.x,t.x)&&e.y<=Math.max(n.y,t.y)&&e.y>=Math.min(n.y,t.y)}function Vm(n){return n>0?1:n<0?-1:0}function IJ(n,e){let t=n;do{if(t.i!==n.i&&t.next.i!==n.i&&t.i!==e.i&&t.next.i!==e.i&&gk(t,t.next,n,e))return!0;t=t.next}while(t!==n);return!1}function ov(n,e){return Qn(n.prev,n,n.next)<0?Qn(n,e,n.next)>=0&&Qn(n,n.prev,e)>=0:Qn(n,e,n.prev)<0||Qn(n,n.next,e)<0}function LJ(n,e){let t=n,r=!1;const i=(n.x+e.x)/2,a=(n.y+e.y)/2;do t.y>a!=t.next.y>a&&t.next.y!==t.y&&i<(t.next.x-t.x)*(a-t.y)/(t.next.y-t.y)+t.x&&(r=!r),t=t.next;while(t!==n);return r}function mk(n,e){const t=new Pw(n.i,n.x,n.y),r=new Pw(e.i,e.x,e.y),i=n.next,a=e.prev;return n.next=e,e.prev=n,t.next=i,i.prev=t,r.next=t,t.prev=r,a.next=r,r.prev=a,r}function aD(n,e,t,r){const i=new Pw(n,e,t);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function sv(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function Pw(n,e,t){this.i=n,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function BJ(n,e,t,r){let i=0;for(let a=e,o=t-r;a2&&n[e-1].equals(n[0])&&n.pop()}function sD(n,e){for(let t=0;tNumber.EPSILON){const Be=Math.sqrt(Ne),ht=Math.sqrt(G*G+de*de),je=xe.x-W/Be,it=xe.y+Je/Be,_t=ge.x-de/ht,xt=ge.y+G/ht,Fe=((_t-je)*de-(xt-it)*G)/(Je*de-W*G);Pe=je+Je*Fe-Z.x,_e=it+W*Fe-Z.y;const un=Pe*Pe+_e*_e;if(un<=2)return new Re(Pe,_e);et=Math.sqrt(un/2)}else{let Be=!1;Je>Number.EPSILON?G>Number.EPSILON&&(Be=!0):Je<-Number.EPSILON?G<-Number.EPSILON&&(Be=!0):Math.sign(W)===Math.sign(de)&&(Be=!0),Be?(Pe=-W,_e=Je,et=Math.sqrt(Ne)):(Pe=Je,_e=W,et=Math.sqrt(Ne/2))}return new Re(Pe/et,_e/et)}const j=[];for(let Z=0,xe=F.length,ge=xe-1,Pe=Z+1;Z=0;Z--){const xe=Z/g,ge=d*Math.cos(xe*Math.PI/2),Pe=p*Math.sin(xe*Math.PI/2)+y;for(let _e=0,et=F.length;_e=0;){const Pe=ge;let _e=ge-1;_e<0&&(_e=Z.length-1);for(let et=0,Je=c+g*2;et0)&&d.push(S,A,w),(v!==r-1||l0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class Sk extends xr{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new $e(16777215),this.specular=new $e(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new $e(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ql,this.normalScale=new Re(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Fv,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Ak extends xr{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new $e(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new $e(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ql,this.normalScale=new Re(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class Mk extends xr{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ql,this.normalScale=new Re(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class wk extends xr{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new $e(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new $e(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ql,this.normalScale=new Re(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Fv,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class bk extends xr{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new $e(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ql,this.normalScale=new Re(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Tk extends li{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function hc(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function Ck(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function Ek(n){function e(i,a){return n[i]-n[a]}const t=n.length,r=new Array(t);for(let i=0;i!==t;++i)r[i]=i;return r.sort(e),r}function Dw(n,e,t){const r=n.length,i=new n.constructor(r);for(let a=0,o=0;o!==r;++a){const s=t[a]*e;for(let l=0;l!==e;++l)i[o++]=n[s+l]}return i}function XT(n,e,t,r){let i=1,a=n[0];for(;a!==void 0&&a[r]===void 0;)a=n[i++];if(a===void 0)return;let o=a[r];if(o!==void 0)if(Array.isArray(o))do o=a[r],o!==void 0&&(e.push(a.time),t.push.apply(t,o)),a=n[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(e.push(a.time),o.toArray(t,t.length)),a=n[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(e.push(a.time),t.push(o)),a=n[i++];while(a!==void 0)}function kJ(n,e,t,r,i=30){const a=n.clone();a.name=e;const o=[];for(let l=0;l=r)){h.push(u.times[d]);for(let y=0;ya.tracks[l].times[0]&&(s=a.tracks[l].times[0]);for(let l=0;l=s.times[p]){const v=p*h+c,x=v+h-c;y=s.values.slice(v,x)}else{const v=s.createInterpolant(),x=c,S=h-c;v.evaluate(a),y=v.resultBuffer.slice(x,S)}l==="quaternion"&&new Lr().fromArray(y).normalize().conjugate().toArray(y);const g=u.times.length;for(let v=0;v=a)){const s=t[1];e=a)break t}o=r,r=0;break n}break e}for(;r>>1;et;)--o;if(++o,a!==0||o!==i){a>=o&&(o=Math.max(o,1),a=o-1);const s=this.getValueSize();this.times=r.slice(a,o),this.values=this.values.slice(a*s,o*s)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(e=!1);const r=this.times,i=this.values,a=r.length;a===0&&(e=!1);let o=null;for(let s=0;s!==a;s++){const l=r[s];if(typeof l=="number"&&isNaN(l)){e=!1;break}if(o!==null&&o>l){e=!1;break}o=l}if(i!==void 0&&Ck(i))for(let s=0,l=i.length;s!==l;++s){const u=i[s];if(isNaN(u)){e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),r=this.getValueSize(),i=this.getInterpolation()===ay,a=e.length-1;let o=1;for(let s=1;s0){e[o]=e[a];for(let s=a*r,l=o*r,u=0;u!==r;++u)t[l+u]=t[s+u];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*r)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),r=this.constructor,i=new r(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}po.prototype.TimeBufferType=Float32Array;po.prototype.ValueBufferType=Float32Array;po.prototype.DefaultInterpolation=Nc;class Wc extends po{}Wc.prototype.ValueTypeName="bool";Wc.prototype.ValueBufferType=Array;Wc.prototype.DefaultInterpolation=Tf;Wc.prototype.InterpolantFactoryMethodLinear=void 0;Wc.prototype.InterpolantFactoryMethodSmooth=void 0;class JT extends po{}JT.prototype.ValueTypeName="color";class Df extends po{}Df.prototype.ValueTypeName="number";class Dk extends Qf{constructor(e,t,r,i){super(e,t,r,i)}interpolate_(e,t,r,i){const a=this.resultBuffer,o=this.sampleValues,s=this.valueSize,l=(r-t)/(i-t);let u=e*s;for(let c=u+s;u!==c;u+=4)Lr.slerpFlat(a,0,o,u-s,o,u,l);return a}}class Vl extends po{InterpolantFactoryMethodLinear(e){return new Dk(this.times,this.values,this.getValueSize(),e)}}Vl.prototype.ValueTypeName="quaternion";Vl.prototype.DefaultInterpolation=Nc;Vl.prototype.InterpolantFactoryMethodSmooth=void 0;class Xc extends po{}Xc.prototype.ValueTypeName="string";Xc.prototype.ValueBufferType=Array;Xc.prototype.DefaultInterpolation=Tf;Xc.prototype.InterpolantFactoryMethodLinear=void 0;Xc.prototype.InterpolantFactoryMethodSmooth=void 0;class If extends po{}If.prototype.ValueTypeName="vector";class Lf{constructor(e,t=-1,r,i=b_){this.name=e,this.tracks=r,this.duration=t,this.blendMode=i,this.uuid=ra(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],r=e.tracks,i=1/(e.fps||1);for(let o=0,s=r.length;o!==s;++o)t.push(HJ(r[o]).scale(i));const a=new this(e.name,e.duration,t,e.blendMode);return a.uuid=e.uuid,a}static toJSON(e){const t=[],r=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let a=0,o=r.length;a!==o;++a)t.push(po.toJSON(r[a]));return i}static CreateFromMorphTargetSequence(e,t,r,i){const a=t.length,o=[];for(let s=0;s1){const h=c[1];let f=i[h];f||(i[h]=f=[]),f.push(u)}}const o=[];for(const s in i)o.push(this.CreateFromMorphTargetSequence(s,i[s],t,r));return o}static parseAnimation(e,t){if(!e)return null;const r=function(h,f,d,p,y){if(d.length!==0){const g=[],v=[];XT(d,g,v,p),g.length!==0&&y.push(new h(f,g,v))}},i=[],a=e.name||"default",o=e.fps||30,s=e.blendMode;let l=e.length||-1;const u=e.hierarchy||[];for(let h=0;h{t&&t(a),this.manager.itemEnd(e)},0),a;if(_s[e]!==void 0){_s[e].push({onLoad:t,onProgress:r,onError:i});return}_s[e]=[],_s[e].push({onLoad:t,onProgress:r,onError:i});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),s=this.mimeType,l=this.responseType;fetch(o).then(u=>{if(u.status===200||u.status===0){if(u.status,typeof ReadableStream=="undefined"||u.body===void 0||u.body.getReader===void 0)return u;const c=_s[e],h=u.body.getReader(),f=u.headers.get("Content-Length")||u.headers.get("X-File-Size"),d=f?parseInt(f):0,p=d!==0;let y=0;const g=new ReadableStream({start(v){x();function x(){h.read().then(({done:S,value:A})=>{if(S)v.close();else{y+=A.byteLength;const T=new ProgressEvent("progress",{lengthComputable:p,loaded:y,total:d});for(let w=0,C=c.length;w{switch(l){case"arraybuffer":return u.arrayBuffer();case"blob":return u.blob();case"document":return u.text().then(c=>new DOMParser().parseFromString(c,s));case"json":return u.json();default:if(s===void 0)return u.text();{const h=/charset="?([^;"\s]*)"?/i.exec(s),f=h&&h[1]?h[1].toLowerCase():void 0,d=new TextDecoder(f);return u.arrayBuffer().then(p=>d.decode(p))}}}).then(u=>{Rs.add(e,u);const c=_s[e];delete _s[e];for(let h=0,f=c.length;h{const c=_s[e];if(c===void 0)throw this.manager.itemError(e),u;delete _s[e];for(let h=0,f=c.length;h{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class WJ extends ui{constructor(e){super(e)}load(e,t,r,i){const a=this,o=new sa(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(s){try{t(a.parse(JSON.parse(s)))}catch(l){i&&i(l),a.manager.itemError(e)}},r,i)}parse(e){const t=[];for(let r=0;r0:i.vertexColors=e.vertexColors),e.uniforms!==void 0)for(const a in e.uniforms){const o=e.uniforms[a];switch(i.uniforms[a]={},o.type){case"t":i.uniforms[a].value=r(o.value);break;case"c":i.uniforms[a].value=new $e().setHex(o.value);break;case"v2":i.uniforms[a].value=new Re().fromArray(o.value);break;case"v3":i.uniforms[a].value=new J().fromArray(o.value);break;case"v4":i.uniforms[a].value=new Dn().fromArray(o.value);break;case"m3":i.uniforms[a].value=new $t().fromArray(o.value);break;case"m4":i.uniforms[a].value=new Dt().fromArray(o.value);break;default:i.uniforms[a].value=o.value}}if(e.defines!==void 0&&(i.defines=e.defines),e.vertexShader!==void 0&&(i.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(i.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(i.glslVersion=e.glslVersion),e.extensions!==void 0)for(const a in e.extensions)i.extensions[a]=e.extensions[a];if(e.lights!==void 0&&(i.lights=e.lights),e.clipping!==void 0&&(i.clipping=e.clipping),e.size!==void 0&&(i.size=e.size),e.sizeAttenuation!==void 0&&(i.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(i.map=r(e.map)),e.matcap!==void 0&&(i.matcap=r(e.matcap)),e.alphaMap!==void 0&&(i.alphaMap=r(e.alphaMap)),e.bumpMap!==void 0&&(i.bumpMap=r(e.bumpMap)),e.bumpScale!==void 0&&(i.bumpScale=e.bumpScale),e.normalMap!==void 0&&(i.normalMap=r(e.normalMap)),e.normalMapType!==void 0&&(i.normalMapType=e.normalMapType),e.normalScale!==void 0){let a=e.normalScale;Array.isArray(a)===!1&&(a=[a,a]),i.normalScale=new Re().fromArray(a)}return e.displacementMap!==void 0&&(i.displacementMap=r(e.displacementMap)),e.displacementScale!==void 0&&(i.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(i.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(i.roughnessMap=r(e.roughnessMap)),e.metalnessMap!==void 0&&(i.metalnessMap=r(e.metalnessMap)),e.emissiveMap!==void 0&&(i.emissiveMap=r(e.emissiveMap)),e.emissiveIntensity!==void 0&&(i.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(i.specularMap=r(e.specularMap)),e.specularIntensityMap!==void 0&&(i.specularIntensityMap=r(e.specularIntensityMap)),e.specularColorMap!==void 0&&(i.specularColorMap=r(e.specularColorMap)),e.envMap!==void 0&&(i.envMap=r(e.envMap)),e.envMapIntensity!==void 0&&(i.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(i.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(i.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(i.lightMap=r(e.lightMap)),e.lightMapIntensity!==void 0&&(i.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(i.aoMap=r(e.aoMap)),e.aoMapIntensity!==void 0&&(i.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(i.gradientMap=r(e.gradientMap)),e.clearcoatMap!==void 0&&(i.clearcoatMap=r(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(i.clearcoatRoughnessMap=r(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(i.clearcoatNormalMap=r(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(i.clearcoatNormalScale=new Re().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(i.iridescenceMap=r(e.iridescenceMap)),e.iridescenceThicknessMap!==void 0&&(i.iridescenceThicknessMap=r(e.iridescenceThicknessMap)),e.transmissionMap!==void 0&&(i.transmissionMap=r(e.transmissionMap)),e.thicknessMap!==void 0&&(i.thicknessMap=r(e.thicknessMap)),e.anisotropyMap!==void 0&&(i.anisotropyMap=r(e.anisotropyMap)),e.sheenColorMap!==void 0&&(i.sheenColorMap=r(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(i.sheenRoughnessMap=r(e.sheenRoughnessMap)),i}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){const t={ShadowMaterial:_k,SpriteMaterial:BT,RawShaderMaterial:xk,ShaderMaterial:oa,PointsMaterial:L_,MeshPhysicalMaterial:is,MeshStandardMaterial:jv,MeshPhongMaterial:Sk,MeshToonMaterial:Ak,MeshNormalMaterial:Mk,MeshLambertMaterial:wk,MeshDepthMaterial:R_,MeshDistanceMaterial:IT,MeshBasicMaterial:ea,MeshMatcapMaterial:bk,LineDashedMaterial:Tk,LineBasicMaterial:li,Material:xr};return new t[e]}}class Yo{static decodeText(e){if(typeof TextDecoder!="undefined")return new TextDecoder().decode(e);let t="";for(let r=0,i=e.length;r0){const l=new ZT(t);a=new lv(l),a.setCrossOrigin(this.crossOrigin);for(let u=0,c=e.length;u0){i=new lv(this.manager),i.setCrossOrigin(this.crossOrigin);for(let o=0,s=e.length;o{const g=new ii;g.min.fromArray(y.boxMin),g.max.fromArray(y.boxMax);const v=new zr;return v.radius=y.sphereRadius,v.center.fromArray(y.sphereCenter),{boxInitialized:y.boxInitialized,box:g,sphereInitialized:y.sphereInitialized,sphere:v}}),o._maxGeometryCount=e.maxGeometryCount,o._maxVertexCount=e.maxVertexCount,o._maxIndexCount=e.maxIndexCount,o._geometryInitialized=e.geometryInitialized,o._geometryCount=e.geometryCount,o._matricesTexture=u(e.matricesTexture.uuid);break;case"LOD":o=new sk;break;case"Line":o=new Fs(s(e.geometry),l(e.material));break;case"LineLoop":o=new FT(s(e.geometry),l(e.material));break;case"LineSegments":o=new ho(s(e.geometry),l(e.material));break;case"PointCloud":case"Points":o=new kT(s(e.geometry),l(e.material));break;case"Sprite":o=new ok(l(e.material));break;case"Group":o=new Es;break;case"Bone":o=new I_;break;default:o=new mn}if(o.uuid=e.uuid,e.name!==void 0&&(o.name=e.name),e.matrix!==void 0?(o.matrix.fromArray(e.matrix),e.matrixAutoUpdate!==void 0&&(o.matrixAutoUpdate=e.matrixAutoUpdate),o.matrixAutoUpdate&&o.matrix.decompose(o.position,o.quaternion,o.scale)):(e.position!==void 0&&o.position.fromArray(e.position),e.rotation!==void 0&&o.rotation.fromArray(e.rotation),e.quaternion!==void 0&&o.quaternion.fromArray(e.quaternion),e.scale!==void 0&&o.scale.fromArray(e.scale)),e.up!==void 0&&o.up.fromArray(e.up),e.castShadow!==void 0&&(o.castShadow=e.castShadow),e.receiveShadow!==void 0&&(o.receiveShadow=e.receiveShadow),e.shadow&&(e.shadow.bias!==void 0&&(o.shadow.bias=e.shadow.bias),e.shadow.normalBias!==void 0&&(o.shadow.normalBias=e.shadow.normalBias),e.shadow.radius!==void 0&&(o.shadow.radius=e.shadow.radius),e.shadow.mapSize!==void 0&&o.shadow.mapSize.fromArray(e.shadow.mapSize),e.shadow.camera!==void 0&&(o.shadow.camera=this.parseObject(e.shadow.camera))),e.visible!==void 0&&(o.visible=e.visible),e.frustumCulled!==void 0&&(o.frustumCulled=e.frustumCulled),e.renderOrder!==void 0&&(o.renderOrder=e.renderOrder),e.userData!==void 0&&(o.userData=e.userData),e.layers!==void 0&&(o.layers.mask=e.layers),e.children!==void 0){const f=e.children;for(let d=0;d{t&&t(u),a.manager.itemEnd(e)}).catch(u=>{i&&i(u)});return}return setTimeout(function(){t&&t(o),a.manager.itemEnd(e)},0),o}const s={};s.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",s.headers=this.requestHeader;const l=fetch(e,s).then(function(u){return u.blob()}).then(function(u){return createImageBitmap(u,Object.assign(a.options,{colorSpaceConversion:"none"}))}).then(function(u){return Rs.add(e,u),t&&t(u),a.manager.itemEnd(e),u}).catch(function(u){i&&i(u),Rs.remove(e),a.manager.itemError(e),a.manager.itemEnd(e)});Rs.add(e,l),a.manager.itemStart(e)}}let Wm;class eC{static getContext(){return Wm===void 0&&(Wm=new(window.AudioContext||window.webkitAudioContext)),Wm}static setContext(e){Wm=e}}class qJ extends ui{constructor(e){super(e)}load(e,t,r,i){const a=this,o=new sa(this.manager);o.setResponseType("arraybuffer"),o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(l){try{const u=l.slice(0);eC.getContext().decodeAudioData(u,function(h){t(h)}).catch(s)}catch(u){s(u)}},r,i);function s(l){i&&i(l),a.manager.itemError(e)}}}const vD=new Dt,gD=new Dt,_u=new Dt;class QJ{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new zn,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new zn,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,_u.copy(e.projectionMatrix);const i=t.eyeSep/2,a=i*t.near/t.focus,o=t.near*Math.tan(Sc*t.fov*.5)/t.zoom;let s,l;gD.elements[12]=-i,vD.elements[12]=i,s=-o*t.aspect+a,l=o*t.aspect+a,_u.elements[0]=2*t.near/(l-s),_u.elements[8]=(l+s)/(l-s),this.cameraL.projectionMatrix.copy(_u),s=-o*t.aspect-a,l=o*t.aspect-a,_u.elements[0]=2*t.near/(l-s),_u.elements[8]=(l+s)/(l-s),this.cameraR.projectionMatrix.copy(_u)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(gD),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(vD)}}class tC{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=mD(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=mD();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function mD(){return(typeof performance=="undefined"?Date:performance).now()}const xu=new J,yD=new Lr,$J=new J,Su=new J;class eZ extends mn{constructor(){super(),this.type="AudioListener",this.context=eC.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new tC}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const t=this.context.listener,r=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(xu,yD,$J),Su.set(0,0,-1).applyQuaternion(yD),t.positionX){const i=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(xu.x,i),t.positionY.linearRampToValueAtTime(xu.y,i),t.positionZ.linearRampToValueAtTime(xu.z,i),t.forwardX.linearRampToValueAtTime(Su.x,i),t.forwardY.linearRampToValueAtTime(Su.y,i),t.forwardZ.linearRampToValueAtTime(Su.z,i),t.upX.linearRampToValueAtTime(r.x,i),t.upY.linearRampToValueAtTime(r.y,i),t.upZ.linearRampToValueAtTime(r.z,i)}else t.setPosition(xu.x,xu.y,xu.z),t.setOrientation(Su.x,Su.y,Su.z,r.x,r.y,r.z)}}class Vk extends mn{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0||this.hasPlaybackControl===!1)return;this._startedAt=this.context.currentTime+e;const t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl!==!1)return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(){if(this.hasPlaybackControl!==!1)return this._progress=0,this.source!==null&&(this.source.stop(),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e0&&this._mixBufferRegionAdditive(r,i,this._addIndex*t,1,t);for(let l=t,u=t+t;l!==u;++l)if(r[l]!==r[l+t]){s.setValue(r,i);break}}saveOriginalState(){const e=this.binding,t=this.buffer,r=this.valueSize,i=r*this._origIndex;e.getValue(t,i);for(let a=r,o=i;a!==o;++a)t[a]=t[i+a%r];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let r=e;r=.5)for(let o=0;o!==a;++o)e[t+o]=e[r+o]}_slerp(e,t,r,i){Lr.slerpFlat(e,t,e,t,e,r,i)}_slerpAdditive(e,t,r,i,a){const o=this._workIndex*a;Lr.multiplyQuaternionsFlat(e,o,e,t,e,r),Lr.slerpFlat(e,t,e,t,e,o,i)}_lerp(e,t,r,i,a){const o=1-i;for(let s=0;s!==a;++s){const l=t+s;e[l]=e[l]*o+e[r+s]*i}}_lerpAdditive(e,t,r,i,a){for(let o=0;o!==a;++o){const s=t+o;e[s]=e[s]+e[r+o]*i}}}const nC="\\[\\]\\.:\\/",iZ=new RegExp("["+nC+"]","g"),rC="[^"+nC+"]",aZ="[^"+nC.replace("\\.","")+"]",oZ=/((?:WC+[\/:])*)/.source.replace("WC",rC),sZ=/(WCOD+)?/.source.replace("WCOD",aZ),lZ=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",rC),uZ=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",rC),cZ=new RegExp("^"+oZ+sZ+lZ+uZ+"$"),hZ=["material","materials","bones","map"];class fZ{constructor(e,t,r){const i=r||gn.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const r=this._targetGroup.nCachedObjects_,i=this._bindings[r];i!==void 0&&i.getValue(e,t)}setValue(e,t){const r=this._bindings;for(let i=this._targetGroup.nCachedObjects_,a=r.length;i!==a;++i)r[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,r=e.length;t!==r;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,r=e.length;t!==r;++t)e[t].unbind()}}class gn{constructor(e,t,r){this.path=t,this.parsedPath=r||gn.parseTrackName(t),this.node=gn.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,r){return e&&e.isAnimationObjectGroup?new gn.Composite(e,t,r):new gn(e,t,r)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(iZ,"")}static parseTrackName(e){const t=cZ.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const r={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=r.nodeName&&r.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const a=r.nodeName.substring(i+1);hZ.indexOf(a)!==-1&&(r.nodeName=r.nodeName.substring(0,i),r.objectName=a)}if(r.propertyName===null||r.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return r}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const r=e.skeleton.getBoneByName(t);if(r!==void 0)return r}if(e.children){const r=function(a){for(let o=0;o=a){const h=a++,f=e[h];t[f.uuid]=c,e[c]=f,t[u]=h,e[h]=l;for(let d=0,p=i;d!==p;++d){const y=r[d],g=y[h],v=y[c];y[c]=g,y[h]=v}}}this.nCachedObjects_=a}uncache(){const e=this._objects,t=this._indicesByUUID,r=this._bindings,i=r.length;let a=this.nCachedObjects_,o=e.length;for(let s=0,l=arguments.length;s!==l;++s){const u=arguments[s],c=u.uuid,h=t[c];if(h!==void 0)if(delete t[c],h0&&(t[d.uuid]=h),e[h]=d,e.pop();for(let p=0,y=i;p!==y;++p){const g=r[p];g[h]=g[f],g.pop()}}}this.nCachedObjects_=a}subscribe_(e,t){const r=this._bindingsIndicesByPath;let i=r[e];const a=this._bindings;if(i!==void 0)return a[i];const o=this._paths,s=this._parsedPaths,l=this._objects,u=l.length,c=this.nCachedObjects_,h=new Array(u);i=a.length,r[e]=i,o.push(e),s.push(t),a.push(h);for(let f=c,d=l.length;f!==d;++f){const p=l[f];h[f]=new gn(p,e,t)}return h}unsubscribe_(e){const t=this._bindingsIndicesByPath,r=t[e];if(r!==void 0){const i=this._paths,a=this._parsedPaths,o=this._bindings,s=o.length-1,l=o[s],u=e[s];t[u]=r,o[r]=l,o.pop(),a[r]=a[s],a.pop(),i[r]=i[s],i.pop()}}}class Xk{constructor(e,t,r=null,i=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=r,this.blendMode=i;const a=t.tracks,o=a.length,s=new Array(o),l={endingStart:oc,endingEnd:oc};for(let u=0;u!==o;++u){const c=a[u].createInterpolant(null);s[u]=c,c.settings=l}this._interpolantSettings=l,this._interpolants=s,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=P3,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,r){if(e.fadeOut(t),this.fadeIn(t),r){const i=this._clip.duration,a=e._clip.duration,o=a/i,s=i/a;e.warp(1,o,t),this.warp(s,1,t)}return this}crossFadeTo(e,t,r){return e.crossFadeFrom(this,t,r)}stopFading(){const e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,r){const i=this._mixer,a=i.time,o=this.timeScale;let s=this._timeScaleInterpolant;s===null&&(s=i._lendControlInterpolant(),this._timeScaleInterpolant=s);const l=s.parameterPositions,u=s.sampleValues;return l[0]=a,l[1]=a+r,u[0]=e/o,u[1]=t/o,this}stopWarping(){const e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,r,i){if(!this.enabled){this._updateWeight(e);return}const a=this._startTime;if(a!==null){const l=(e-a)*r;l<0||r===0?t=0:(this._startTime=null,t=r*l)}t*=this._updateTimeScale(e);const o=this._updateTime(t),s=this._updateWeight(e);if(s>0){const l=this._interpolants,u=this._propertyBindings;switch(this.blendMode){case xT:for(let c=0,h=l.length;c!==h;++c)l[c].evaluate(o),u[c].accumulateAdditive(s);break;case b_:default:for(let c=0,h=l.length;c!==h;++c)l[c].evaluate(o),u[c].accumulate(i,s)}}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const r=this._weightInterpolant;if(r!==null){const i=r.evaluate(e)[0];t*=i,e>r.parameterPositions[1]&&(this.stopFading(),i===0&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const r=this._timeScaleInterpolant;if(r!==null){const i=r.evaluate(e)[0];t*=i,e>r.parameterPositions[1]&&(this.stopWarping(),t===0?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,r=this.loop;let i=this.time+e,a=this._loopCount;const o=r===D3;if(e===0)return a===-1?i:o&&(a&1)===1?t-i:i;if(r===R3){a===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(i>=t)i=t;else if(i<0)i=0;else{this.time=i;break e}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(a===-1&&(e>=0?(a=0,this._setEndings(!0,this.repetitions===0,o)):this._setEndings(this.repetitions===0,!0,o)),i>=t||i<0){const s=Math.floor(i/t);i-=t*s,a+=Math.abs(s);const l=this.repetitions-a;if(l<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=e>0?t:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(l===1){const u=e<0;this._setEndings(u,!u,o)}else this._setEndings(!1,!1,o);this._loopCount=a,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:s})}}else this.time=i;if(o&&(a&1)===1)return t-i}return i}_setEndings(e,t,r){const i=this._interpolantSettings;r?(i.endingStart=sc,i.endingEnd=sc):(e?i.endingStart=this.zeroSlopeAtStart?sc:oc:i.endingStart=qp,t?i.endingEnd=this.zeroSlopeAtEnd?sc:oc:i.endingEnd=qp)}_scheduleFading(e,t,r){const i=this._mixer,a=i.time;let o=this._weightInterpolant;o===null&&(o=i._lendControlInterpolant(),this._weightInterpolant=o);const s=o.parameterPositions,l=o.sampleValues;return s[0]=a,l[0]=t,s[1]=a+e,l[1]=r,this}}const pZ=new Float32Array(1);class vZ extends rs{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const r=e._localRoot||this._root,i=e._clip.tracks,a=i.length,o=e._propertyBindings,s=e._interpolants,l=r.uuid,u=this._bindingsByRootAndName;let c=u[l];c===void 0&&(c={},u[l]=c);for(let h=0;h!==a;++h){const f=i[h],d=f.name;let p=c[d];if(p!==void 0)++p.referenceCount,o[h]=p;else{if(p=o[h],p!==void 0){p._cacheIndex===null&&(++p.referenceCount,this._addInactiveBinding(p,l,d));continue}const y=t&&t._propertyBindings[h].binding.parsedPath;p=new Wk(gn.create(r,d,y),f.ValueTypeName,f.getValueSize()),++p.referenceCount,this._addInactiveBinding(p,l,d),o[h]=p}s[h].resultBuffer=p.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){const r=(e._localRoot||this._root).uuid,i=e._clip.uuid,a=this._actionsByClip[i];this._bindAction(e,a&&a.knownActions[0]),this._addInactiveAction(e,i,r)}const t=e._propertyBindings;for(let r=0,i=t.length;r!==i;++r){const a=t[r];a.useCount++===0&&(this._lendBinding(a),a.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let r=0,i=t.length;r!==i;++r){const a=t[r];--a.useCount===0&&(a.restoreOriginalState(),this._takeBackBinding(a))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return t!==null&&t=0;--r)e[r].stop();return this}update(e){e*=this.timeScale;const t=this._actions,r=this._nActiveActions,i=this.time+=e,a=Math.sign(e),o=this._accuIndex^=1;for(let u=0;u!==r;++u)t[u]._update(i,e,a,o);const s=this._bindings,l=this._nActiveBindings;for(let u=0;u!==l;++u)s[u].apply(o);return this}setTime(e){this.time=0;for(let t=0;tthis.max.x||e.ythis.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,SD).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const AD=new J,Xm=new J;class AZ{constructor(e=new J,t=new J){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){AD.subVectors(e,this.start),Xm.subVectors(this.end,this.start);const r=Xm.dot(Xm);let a=Xm.dot(AD)/r;return t&&(a=or(a,0,1)),a}closestPointToPoint(e,t,r){const i=this.closestPointToPointParameter(e,t);return this.delta(r).multiplyScalar(i).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}}const MD=new J;class MZ extends mn{constructor(e,t){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=t,this.type="SpotLightHelper";const r=new Yt,i=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let o=0,s=1,l=32;o1)for(let h=0;h.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{ED.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(ED,t)}}setLength(e,t=e*.2,r=t*.2){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(r,t,r),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class NZ extends ho{constructor(e=1){const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],r=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],i=new Yt;i.setAttribute("position",new yt(t,3)),i.setAttribute("color",new yt(r,3));const a=new li({vertexColors:!0,toneMapped:!1});super(i,a),this.type="AxesHelper"}setColors(e,t,r){const i=new $e,a=this.geometry.attributes.color.array;return i.set(e),i.toArray(a,0),i.toArray(a,3),i.set(t),i.toArray(a,6),i.toArray(a,9),i.set(r),i.toArray(a,12),i.toArray(a,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class FZ{constructor(){this.type="ShapePath",this.color=new $e,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new iv,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,r,i){return this.currentPath.quadraticCurveTo(e,t,r,i),this}bezierCurveTo(e,t,r,i,a,o){return this.currentPath.bezierCurveTo(e,t,r,i,a,o),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(v){const x=[];for(let S=0,A=v.length;SNumber.EPSILON){if(R<0&&(C=x[w],E=-E,P=x[T],R=-R),v.yP.y)continue;if(v.y===C.y){if(v.x===C.x)return!0}else{const I=R*(v.x-C.x)-E*(v.y-C.y);if(I===0)return!0;if(I<0)continue;A=!A}}else{if(v.y!==C.y)continue;if(P.x<=v.x&&v.x<=C.x||C.x<=v.x&&v.x<=P.x)return!0}}return A}const i=Xo.isClockWise,a=this.subPaths;if(a.length===0)return[];let o,s,l;const u=[];if(a.length===1)return s=a[0],l=new wc,l.curves=s.curves,u.push(l),u;let c=!i(a[0].getPoints());c=e?!c:c;const h=[],f=[];let d=[],p=0,y;f[p]=void 0,d[p]=[];for(let v=0,x=a.length;v1){let v=!1,x=0;for(let S=0,A=f.length;S0&&v===!1&&(d=h)}let g;for(let v=0,x=f.length;v{const h=typeof u=="function"?u(e):u;if(h!==e){const f=e;e=c?h:Object.assign({},e,h),t.forEach(d=>d(e,f))}},i=()=>e,a=(u,c=i,h=Object.is)=>{let f=c(e);function d(){const p=c(e);if(!h(f,p)){const y=f;u(f=p,y)}}return t.add(d),()=>t.delete(d)},l={setState:r,getState:i,subscribe:(u,c,h)=>c||h?a(u,c,h):(t.add(u),()=>t.delete(u)),destroy:()=>t.clear()};return e=n(r,i,l),l}const WK=typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),dI=WK?Y.useEffect:Y.useLayoutEffect;function zU(n){const e=typeof n=="function"?VK(n):n,t=(r=e.getState,i=Object.is)=>{const[,a]=Y.useReducer(g=>g+1,0),o=e.getState(),s=Y.useRef(o),l=Y.useRef(r),u=Y.useRef(i),c=Y.useRef(!1),h=Y.useRef();h.current===void 0&&(h.current=r(o));let f,d=!1;(s.current!==o||l.current!==r||u.current!==i||c.current)&&(f=r(o),d=!i(h.current,f)),dI(()=>{d&&(h.current=f),s.current=o,l.current=r,u.current=i,c.current=!1});const p=Y.useRef(o);dI(()=>{const g=()=>{try{const x=e.getState(),S=l.current(x);u.current(h.current,S)||(s.current=x,h.current=S,a())}catch(x){c.current=!0,a()}},v=e.subscribe(g);return e.getState()!==p.current&&g(),v},[]);const y=d?f:h.current;return Y.useDebugValue(y),y};return Object.assign(t,e),t[Symbol.iterator]=function(){const r=[t,e];return{next(){const i=r.length<=0;return{value:r.shift(),done:i}}}},t}var HU={exports:{}},VU={exports:{}},WU={};/** + */Yc.ConcurrentRoot=1;Yc.ContinuousEventPriority=4;Yc.DefaultEventPriority=16;Yc.DiscreteEventPriority=1;Yc.IdleEventPriority=536870912;Yc.LegacyRoot=0;Jk.exports=Yc;var hf=Jk.exports;function UZ(n){let e;const t=new Set,r=(u,c)=>{const h=typeof u=="function"?u(e):u;if(h!==e){const f=e;e=c?h:Object.assign({},e,h),t.forEach(d=>d(e,f))}},i=()=>e,a=(u,c=i,h=Object.is)=>{let f=c(e);function d(){const p=c(e);if(!h(f,p)){const y=f;u(f=p,y)}}return t.add(d),()=>t.delete(d)},l={setState:r,getState:i,subscribe:(u,c,h)=>c||h?a(u,c,h):(t.add(u),()=>t.delete(u)),destroy:()=>t.clear()};return e=n(r,i,l),l}const GZ=typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),RD=GZ?q.useEffect:q.useLayoutEffect;function Zk(n){const e=typeof n=="function"?UZ(n):n,t=(r=e.getState,i=Object.is)=>{const[,a]=q.useReducer(g=>g+1,0),o=e.getState(),s=q.useRef(o),l=q.useRef(r),u=q.useRef(i),c=q.useRef(!1),h=q.useRef();h.current===void 0&&(h.current=r(o));let f,d=!1;(s.current!==o||l.current!==r||u.current!==i||c.current)&&(f=r(o),d=!i(h.current,f)),RD(()=>{d&&(h.current=f),s.current=o,l.current=r,u.current=i,c.current=!1});const p=q.useRef(o);RD(()=>{const g=()=>{try{const x=e.getState(),S=l.current(x);u.current(h.current,S)||(s.current=x,h.current=S,a())}catch(x){c.current=!0,a()}},v=e.subscribe(g);return e.getState()!==p.current&&g(),v},[]);const y=d?f:h.current;return q.useDebugValue(y),y};return Object.assign(t,e),t[Symbol.iterator]=function(){const r=[t,e];return{next(){const i=r.length<=0;return{value:r.shift(),done:i}}}},t}var jk={exports:{}},Kk={exports:{}},qk={};/** * @license React * scheduler.production.min.js * @@ -3703,7 +3695,7 @@ void main() { * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(n){function e(H,K){var Q=H.length;H.push(K);e:for(;0>>1,he=H[le];if(0>>1;lei(_e,Q))gei(Be,_e)?(H[le]=Be,H[ge]=Q,le=ge):(H[le]=_e,H[ce]=Q,le=ce);else if(gei(Be,Q))H[le]=Be,H[ge]=Q,le=ge;else break e}}return K}function i(H,K){var Q=H.sortIndex-K.sortIndex;return Q!==0?Q:H.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;n.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,h=null,f=3,d=!1,p=!1,y=!1,g=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(H){for(var K=t(u);K!==null;){if(K.callback===null)r(u);else if(K.startTime<=H)r(u),K.sortIndex=K.expirationTime,e(l,K);else break;K=t(u)}}function A(H){if(y=!1,S(H),!p)if(t(l)!==null)p=!0,X(b);else{var K=t(u);K!==null&&ne(A,K.startTime-H)}}function b(H,K){p=!1,y&&(y=!1,v(P),P=-1),d=!0;var Q=f;try{for(S(K),h=t(l);h!==null&&(!(h.expirationTime>K)||H&&!D());){var le=h.callback;if(typeof le=="function"){h.callback=null,f=h.priorityLevel;var he=le(h.expirationTime<=K);K=n.unstable_now(),typeof he=="function"?h.callback=he:h===t(l)&&r(l),S(K)}else r(l);h=t(l)}if(h!==null)var re=!0;else{var ce=t(u);ce!==null&&ne(A,ce.startTime-K),re=!1}return re}finally{h=null,f=Q,d=!1}}var w=!1,C=null,P=-1,E=5,R=-1;function D(){return!(n.unstable_now()-RH||125le?(H.sortIndex=Q,e(u,H),t(l)===null&&H===t(u)&&(y?(v(P),P=-1):y=!0,ne(A,Q-le))):(H.sortIndex=he,e(l,H),p||d||(p=!0,X(b))),H},n.unstable_shouldYield=D,n.unstable_wrapCallback=function(H){var K=f;return function(){var Q=f;f=K;try{return H.apply(this,arguments)}finally{f=Q}}}})(WU);VU.exports=WU;var ub=VU.exports;/** + */(function(n){function e(H,j){var $=H.length;H.push(j);e:for(;0<$;){var le=$-1>>>1,ce=H[le];if(0>>1;lei(Se,$))vei(Oe,Se)?(H[le]=Oe,H[ve]=$,le=ve):(H[le]=Se,H[he]=$,le=he);else if(vei(Oe,$))H[le]=Oe,H[ve]=$,le=ve;else break e}}return j}function i(H,j){var $=H.sortIndex-j.sortIndex;return $!==0?$:H.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;n.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,h=null,f=3,d=!1,p=!1,y=!1,g=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(H){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=H)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function A(H){if(y=!1,S(H),!p)if(t(l)!==null)p=!0,X(T);else{var j=t(u);j!==null&&ne(A,j.startTime-H)}}function T(H,j){p=!1,y&&(y=!1,v(P),P=-1),d=!0;var $=f;try{for(S(j),h=t(l);h!==null&&(!(h.expirationTime>j)||H&&!I());){var le=h.callback;if(typeof le=="function"){h.callback=null,f=h.priorityLevel;var ce=le(h.expirationTime<=j);j=n.unstable_now(),typeof ce=="function"?h.callback=ce:h===t(l)&&r(l),S(j)}else r(l);h=t(l)}if(h!==null)var ie=!0;else{var he=t(u);he!==null&&ne(A,he.startTime-j),ie=!1}return ie}finally{h=null,f=$,d=!1}}var w=!1,C=null,P=-1,E=5,R=-1;function I(){return!(n.unstable_now()-RH||125le?(H.sortIndex=$,e(u,H),t(l)===null&&H===t(u)&&(y?(v(P),P=-1):y=!0,ne(A,$-le))):(H.sortIndex=ce,e(l,H),p||d||(p=!0,X(T))),H},n.unstable_shouldYield=I,n.unstable_wrapCallback=function(H){var j=f;return function(){var $=f;f=j;try{return H.apply(this,arguments)}finally{f=$}}}})(qk);Kk.exports=qk;var Bw=Kk.exports;/** * @license React * react-reconciler.production.min.js * @@ -3711,17 +3703,17 @@ void main() { * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var XK=function(e){var t={},r=Y,i=ub,a=Object.assign;function o(m){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+m,M=1;Mfe||I[$]!==L[fe]){var Ee=` -`+I[$].replace(" at new "," at ");return m.displayName&&Ee.includes("")&&(Ee=Ee.replace("",m.displayName)),Ee}while(1<=$&&0<=fe);break}}}finally{Ge=!1,Error.prepareStackTrace=M}return(m=m?m.displayName||m.name:"")?dt(m):""}var mt=Object.prototype.hasOwnProperty,Rt=[],It=-1;function zt(m){return{current:m}}function pt(m){0>It||(m.current=Rt[It],Rt[It]=null,It--)}function Qe(m,_){It++,Rt[It]=m.current,m.current=_}var an={},Ot=zt(an),Nt=zt(!1),Pn=an;function nr(m,_){var M=m.type.contextTypes;if(!M)return an;var T=m.stateNode;if(T&&T.__reactInternalMemoizedUnmaskedChildContext===_)return T.__reactInternalMemoizedMaskedChildContext;var I={},L;for(L in M)I[L]=_[L];return T&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=_,m.__reactInternalMemoizedMaskedChildContext=I),I}function Xn(m){return m=m.childContextTypes,m!=null}function gn(){pt(Nt),pt(Ot)}function hn(m,_,M){if(Ot.current!==an)throw Error(o(168));Qe(Ot,_),Qe(Nt,M)}function qn(m,_,M){var T=m.stateNode;if(_=_.childContextTypes,typeof T.getChildContext!="function")return M;T=T.getChildContext();for(var I in T)if(!(I in _))throw Error(o(108,P(m)||"Unknown",I));return a({},M,T)}function Kt(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||an,Pn=Ot.current,Qe(Ot,m),Qe(Nt,Nt.current),!0}function dn(m,_,M){var T=m.stateNode;if(!T)throw Error(o(169));M?(m=qn(m,_,Pn),T.__reactInternalMemoizedMergedChildContext=m,pt(Nt),pt(Ot),Qe(Ot,m)):pt(Nt),Qe(Nt,M)}var Nn=Math.clz32?Math.clz32:So,fa=Math.log,fi=Math.LN2;function So(m){return m>>>=0,m===0?32:31-(fa(m)/fi|0)|0}var Rg=64,Pg=4194304;function xd(m){switch(m&-m){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return m&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return m}}function Dg(m,_){var M=m.pendingLanes;if(M===0)return 0;var T=0,I=m.suspendedLanes,L=m.pingedLanes,$=M&268435455;if($!==0){var fe=$&~I;fe!==0?T=xd(fe):(L&=$,L!==0&&(T=xd(L)))}else $=M&~I,$!==0?T=xd($):L!==0&&(T=xd(L));if(T===0)return 0;if(_!==0&&_!==T&&!(_&I)&&(I=T&-T,L=_&-_,I>=L||I===16&&(L&4194240)!==0))return _;if(T&4&&(T|=M&16),_=m.entangledLanes,_!==0)for(m=m.entanglements,_&=T;0<_;)M=31-Nn(_),I=1<M;M++)_.push(m);return _}function Sd(m,_,M){m.pendingLanes|=_,_!==536870912&&(m.suspendedLanes=0,m.pingedLanes=0),m=m.eventTimes,_=31-Nn(_),m[_]=M}function OW(m,_){var M=m.pendingLanes&~_;m.pendingLanes=_,m.suspendedLanes=0,m.pingedLanes=0,m.expiredLanes&=_,m.mutableReadLanes&=_,m.entangledLanes&=_,_=m.entanglements;var T=m.eventTimes;for(m=m.expirationTimes;0>=$,I-=$,hs=1<<32-Nn(_)+I|M<Mn?(Lr=Yt,Yt=null):Lr=Yt.sibling;var wn=Lt(ye,Yt,Me[Mn],ct);if(wn===null){Yt===null&&(Yt=Lr);break}m&&Yt&&wn.alternate===null&&_(ye,Yt),pe=L(wn,pe,Mn),en===null?bt=wn:en.sibling=wn,en=wn,Yt=Lr}if(Mn===Me.length)return M(ye,Yt),Yn&&hu(ye,Mn),bt;if(Yt===null){for(;MnMn?(Lr=Yt,Yt=null):Lr=Yt.sibling;var il=Lt(ye,Yt,wn.value,ct);if(il===null){Yt===null&&(Yt=Lr);break}m&&Yt&&il.alternate===null&&_(ye,Yt),pe=L(il,pe,Mn),en===null?bt=il:en.sibling=il,en=il,Yt=Lr}if(wn.done)return M(ye,Yt),Yn&&hu(ye,Mn),bt;if(Yt===null){for(;!wn.done;Mn++,wn=Me.next())wn=Xt(ye,wn.value,ct),wn!==null&&(pe=L(wn,pe,Mn),en===null?bt=wn:en.sibling=wn,en=wn);return Yn&&hu(ye,Mn),bt}for(Yt=T(ye,Yt);!wn.done;Mn++,wn=Me.next())wn=Bn(Yt,ye,Mn,wn.value,ct),wn!==null&&(m&&wn.alternate!==null&&Yt.delete(wn.key===null?Mn:wn.key),pe=L(wn,pe,Mn),en===null?bt=wn:en.sibling=wn,en=wn);return m&&Yt.forEach(function(x8){return _(ye,x8)}),Yn&&hu(ye,Mn),bt}function xa(ye,pe,Me,ct){if(typeof Me=="object"&&Me!==null&&Me.type===c&&Me.key===null&&(Me=Me.props.children),typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case l:e:{for(var bt=Me.key,en=pe;en!==null;){if(en.key===bt){if(bt=Me.type,bt===c){if(en.tag===7){M(ye,en.sibling),pe=I(en,Me.props.children),pe.return=ye,ye=pe;break e}}else if(en.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===S&&u2(bt)===en.type){M(ye,en.sibling),pe=I(en,Me.props),pe.ref=wd(ye,en,Me),pe.return=ye,ye=pe;break e}M(ye,en);break}else _(ye,en);en=en.sibling}Me.type===c?(pe=yu(Me.props.children,ye.mode,ct,Me.key),pe.return=ye,ye=pe):(ct=_m(Me.type,Me.key,Me.props,null,ye.mode,ct),ct.ref=wd(ye,pe,Me),ct.return=ye,ye=ct)}return $(ye);case u:e:{for(en=Me.key;pe!==null;){if(pe.key===en)if(pe.tag===4&&pe.stateNode.containerInfo===Me.containerInfo&&pe.stateNode.implementation===Me.implementation){M(ye,pe.sibling),pe=I(pe,Me.children||[]),pe.return=ye,ye=pe;break e}else{M(ye,pe);break}else _(ye,pe);pe=pe.sibling}pe=S1(Me,ye.mode,ct),pe.return=ye,ye=pe}return $(ye);case S:return en=Me._init,xa(ye,pe,en(Me._payload),ct)}if(z(Me))return Ct(ye,pe,Me,ct);if(w(Me))return Zr(ye,pe,Me,ct);Hg(ye,Me)}return typeof Me=="string"&&Me!==""||typeof Me=="number"?(Me=""+Me,pe!==null&&pe.tag===6?(M(ye,pe.sibling),pe=I(pe,Me),pe.return=ye,ye=pe):(M(ye,pe),pe=x1(Me,ye.mode,ct),pe.return=ye,ye=pe),$(ye)):M(ye,pe)}return xa}var ch=c2(!0),h2=c2(!1),bd={},ga=zt(bd),Td=zt(bd),hh=zt(bd);function To(m){if(m===bd)throw Error(o(174));return m}function kS(m,_){Qe(hh,_),Qe(Td,m),Qe(ga,bd),m=ne(_),pt(ga),Qe(ga,m)}function fh(){pt(ga),pt(Td),pt(hh)}function f2(m){var _=To(hh.current),M=To(ga.current);_=H(M,m.type,_),M!==_&&(Qe(Td,m),Qe(ga,_))}function US(m){Td.current===m&&(pt(ga),pt(Td))}var $n=zt(0);function Vg(m){for(var _=m;_!==null;){if(_.tag===13){var M=_.memoizedState;if(M!==null&&(M=M.dehydrated,M===null||xo(M)||lu(M)))return _}else if(_.tag===19&&_.memoizedProps.revealOrder!==void 0){if(_.flags&128)return _}else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===m)break;for(;_.sibling===null;){if(_.return===null||_.return===m)return null;_=_.return}_.sibling.return=_.return,_=_.sibling}return null}var GS=[];function zS(){for(var m=0;mM?M:4,m(!0);var T=ma.transition;ma.transition={};try{m(!1),_()}finally{An=M,ma.transition=T}}function T2(){return Co().memoizedState}function jW(m,_,M){var T=tl(m);M={lane:T,action:M,hasEagerState:!1,eagerState:null,next:null},C2(m)?E2(_,M):(R2(m,_,M),M=pi(),m=ya(m,T,M),m!==null&&P2(m,_,T))}function JW(m,_,M){var T=tl(m),I={lane:T,action:M,hasEagerState:!1,eagerState:null,next:null};if(C2(m))E2(_,I);else{R2(m,_,I);var L=m.alternate;if(m.lanes===0&&(L===null||L.lanes===0)&&(L=_.lastRenderedReducer,L!==null))try{var $=_.lastRenderedState,fe=L($,M);if(I.hasEagerState=!0,I.eagerState=fe,Mo(fe,$))return}catch(Ee){}finally{}M=pi(),m=ya(m,T,M),m!==null&&P2(m,_,T)}}function C2(m){var _=m.alternate;return m===rr||_!==null&&_===rr}function E2(m,_){Cd=Xg=!0;var M=m.pending;M===null?_.next=_:(_.next=M.next,M.next=_),m.pending=_}function R2(m,_,M){mr!==null&&m.mode&1&&!(on&2)?(m=_.interleaved,m===null?(M.next=M,bo===null?bo=[_]:bo.push(_)):(M.next=m.next,m.next=M),_.interleaved=M):(m=_.pending,m===null?M.next=M:(M.next=m.next,m.next=M),_.pending=M)}function P2(m,_,M){if(M&4194240){var T=_.lanes;T&=m.pendingLanes,M|=T,_.lanes=M,SS(m,M)}}var Kg={readContext:da,useCallback:jr,useContext:jr,useEffect:jr,useImperativeHandle:jr,useInsertionEffect:jr,useLayoutEffect:jr,useMemo:jr,useReducer:jr,useRef:jr,useState:jr,useDebugValue:jr,useDeferredValue:jr,useTransition:jr,useMutableSource:jr,useSyncExternalStore:jr,useId:jr,unstable_isNewReconciler:!1},ZW={readContext:da,useCallback:function(m,_){return ds().memoizedState=[m,_===void 0?null:_],m},useContext:da,useEffect:YS,useImperativeHandle:function(m,_,M){return M=M!=null?M.concat([m]):null,Jg(4194308,4,A2.bind(null,_,m),M)},useLayoutEffect:function(m,_){return Jg(4194308,4,m,_)},useInsertionEffect:function(m,_){return Jg(4,2,m,_)},useMemo:function(m,_){var M=ds();return _=_===void 0?null:_,m=m(),M.memoizedState=[m,_],m},useReducer:function(m,_,M){var T=ds();return _=M!==void 0?M(_):_,T.memoizedState=T.baseState=_,m={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:m,lastRenderedState:_},T.queue=m,m=m.dispatch=jW.bind(null,rr,m),[T.memoizedState,m]},useRef:function(m){var _=ds();return m={current:m},_.memoizedState=m},useState:XS,useDebugValue:jS,useDeferredValue:function(m){var _=XS(m),M=_[0],T=_[1];return YS(function(){var I=ma.transition;ma.transition={};try{T(m)}finally{ma.transition=I}},[m]),M},useTransition:function(){var m=XS(!1),_=m[0];return m=YW.bind(null,m[1]),ds().memoizedState=m,[_,m]},useMutableSource:function(){},useSyncExternalStore:function(m,_,M){var T=rr,I=ds();if(Yn){if(M===void 0)throw Error(o(407));M=M()}else{if(M=_(),mr===null)throw Error(o(349));dh&30||v2(T,_,M)}I.memoizedState=M;var L={value:M,getSnapshot:_};return I.queue=L,YS(m2.bind(null,T,L,m),[m]),T.flags|=2048,Rd(9,g2.bind(null,T,L,M,_),void 0,null),M},useId:function(){var m=ds(),_=mr.identifierPrefix;if(Yn){var M=fs,T=hs;M=(T&~(1<<32-Nn(T)-1)).toString(32)+M,_=":"+_+"R"+M,M=Ed++,0ue||D[Q]!==L[ue]){var Ce=` +`+D[Q].replace(" at new "," at ");return m.displayName&&Ce.includes("")&&(Ce=Ce.replace("",m.displayName)),Ce}while(1<=Q&&0<=ue);break}}}finally{ke=!1,Error.prepareStackTrace=M}return(m=m?m.displayName||m.name:"")?ut(m):""}var dt=Object.prototype.hasOwnProperty,wt=[],Rt=-1;function kt(m){return{current:m}}function ct(m){0>Rt||(m.current=wt[Rt],wt[Rt]=null,Rt--)}function Ke(m,_){Rt++,wt[Rt]=m.current,m.current=_}var nn={},It=kt(nn),Bt=kt(!1),Rn=nn;function tr(m,_){var M=m.type.contextTypes;if(!M)return nn;var b=m.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===_)return b.__reactInternalMemoizedMaskedChildContext;var D={},L;for(L in M)D[L]=_[L];return b&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=_,m.__reactInternalMemoizedMaskedChildContext=D),D}function Wn(m){return m=m.childContextTypes,m!=null}function vn(){ct(Bt),ct(It)}function cn(m,_,M){if(It.current!==nn)throw Error(o(168));Ke(It,_),Ke(Bt,M)}function Kn(m,_,M){var b=m.stateNode;if(_=_.childContextTypes,typeof b.getChildContext!="function")return M;b=b.getChildContext();for(var D in b)if(!(D in _))throw Error(o(108,P(m)||"Unknown",D));return a({},M,b)}function Zt(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||nn,Rn=It.current,Ke(It,m),Ke(Bt,Bt.current),!0}function fn(m,_,M){var b=m.stateNode;if(!b)throw Error(o(169));M?(m=Kn(m,_,Rn),b.__reactInternalMemoizedMergedChildContext=m,ct(Bt),ct(It),Ke(It,m)):ct(Bt),Ke(Bt,M)}var Nn=Math.clz32?Math.clz32:xo,ha=Math.log,ci=Math.LN2;function xo(m){return m>>>=0,m===0?32:31-(ha(m)/ci|0)|0}var fg=64,dg=4194304;function hd(m){switch(m&-m){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return m&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return m}}function pg(m,_){var M=m.pendingLanes;if(M===0)return 0;var b=0,D=m.suspendedLanes,L=m.pingedLanes,Q=M&268435455;if(Q!==0){var ue=Q&~D;ue!==0?b=hd(ue):(L&=Q,L!==0&&(b=hd(L)))}else Q=M&~D,Q!==0?b=hd(Q):L!==0&&(b=hd(L));if(b===0)return 0;if(_!==0&&_!==b&&!(_&D)&&(D=b&-b,L=_&-_,D>=L||D===16&&(L&4194240)!==0))return _;if(b&4&&(b|=M&16),_=m.entangledLanes,_!==0)for(m=m.entanglements,_&=b;0<_;)M=31-Nn(_),D=1<M;M++)_.push(m);return _}function fd(m,_,M){m.pendingLanes|=_,_!==536870912&&(m.suspendedLanes=0,m.pingedLanes=0),m=m.eventTimes,_=31-Nn(_),m[_]=M}function HV(m,_){var M=m.pendingLanes&~_;m.pendingLanes=_,m.suspendedLanes=0,m.pingedLanes=0,m.expiredLanes&=_,m.mutableReadLanes&=_,m.entangledLanes&=_,_=m.entanglements;var b=m.eventTimes;for(m=m.expirationTimes;0>=Q,D-=Q,cs=1<<32-Nn(_)+D|M<An?(Dr=Wt,Wt=null):Dr=Wt.sibling;var Mn=Pt(me,Wt,Me[An],ot);if(Mn===null){Wt===null&&(Wt=Dr);break}m&&Wt&&Mn.alternate===null&&_(me,Wt),fe=L(Mn,fe,An),Qt===null?St=Mn:Qt.sibling=Mn,Qt=Mn,Wt=Dr}if(An===Me.length)return M(me,Wt),Xn&&ou(me,An),St;if(Wt===null){for(;AnAn?(Dr=Wt,Wt=null):Dr=Wt.sibling;var tl=Pt(me,Wt,Mn.value,ot);if(tl===null){Wt===null&&(Wt=Dr);break}m&&Wt&&tl.alternate===null&&_(me,Wt),fe=L(tl,fe,An),Qt===null?St=tl:Qt.sibling=tl,Qt=tl,Wt=Dr}if(Mn.done)return M(me,Wt),Xn&&ou(me,An),St;if(Wt===null){for(;!Mn.done;An++,Mn=Me.next())Mn=Vt(me,Mn.value,ot),Mn!==null&&(fe=L(Mn,fe,An),Qt===null?St=Mn:Qt.sibling=Mn,Qt=Mn);return Xn&&ou(me,An),St}for(Wt=b(me,Wt);!Mn.done;An++,Mn=Me.next())Mn=Ln(Wt,me,An,Mn.value,ot),Mn!==null&&(m&&Mn.alternate!==null&&Wt.delete(Mn.key===null?An:Mn.key),fe=L(Mn,fe,An),Qt===null?St=Mn:Qt.sibling=Mn,Qt=Mn);return m&&Wt.forEach(function(CW){return _(me,CW)}),Xn&&ou(me,An),St}function _a(me,fe,Me,ot){if(typeof Me=="object"&&Me!==null&&Me.type===c&&Me.key===null&&(Me=Me.props.children),typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case l:e:{for(var St=Me.key,Qt=fe;Qt!==null;){if(Qt.key===St){if(St=Me.type,St===c){if(Qt.tag===7){M(me,Qt.sibling),fe=D(Qt,Me.props.children),fe.return=me,me=fe;break e}}else if(Qt.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===S&&BR(St)===Qt.type){M(me,Qt.sibling),fe=D(Qt,Me.props),fe.ref=vd(me,Qt,Me),fe.return=me,me=fe;break e}M(me,Qt);break}else _(me,Qt);Qt=Qt.sibling}Me.type===c?(fe=du(Me.props.children,me.mode,ot,Me.key),fe.return=me,me=fe):(ot=nm(Me.type,Me.key,Me.props,null,me.mode,ot),ot.ref=vd(me,fe,Me),ot.return=me,me=ot)}return Q(me);case u:e:{for(Qt=Me.key;fe!==null;){if(fe.key===Qt)if(fe.tag===4&&fe.stateNode.containerInfo===Me.containerInfo&&fe.stateNode.implementation===Me.implementation){M(me,fe.sibling),fe=D(fe,Me.children||[]),fe.return=me,me=fe;break e}else{M(me,fe);break}else _(me,fe);fe=fe.sibling}fe=KS(Me,me.mode,ot),fe.return=me,me=fe}return Q(me);case S:return Qt=Me._init,_a(me,fe,Qt(Me._payload),ot)}if(z(Me))return Mt(me,fe,Me,ot);if(w(Me))return Jr(me,fe,Me,ot);bg(me,Me)}return typeof Me=="string"&&Me!==""||typeof Me=="number"?(Me=""+Me,fe!==null&&fe.tag===6?(M(me,fe.sibling),fe=D(fe,Me),fe.return=me,me=fe):(M(me,fe),fe=jS(Me,me.mode,ot),fe.return=me,me=fe),Q(me)):M(me,fe)}return _a}var rh=OR(!0),NR=OR(!1),gd={},va=kt(gd),md=kt(gd),ih=kt(gd);function bo(m){if(m===gd)throw Error(o(174));return m}function dS(m,_){Ke(ih,_),Ke(md,m),Ke(va,gd),m=ne(_),ct(va),Ke(va,m)}function ah(){ct(va),ct(md),ct(ih)}function FR(m){var _=bo(ih.current),M=bo(va.current);_=H(M,m.type,_),M!==_&&(Ke(md,m),Ke(va,_))}function pS(m){md.current===m&&(ct(va),ct(md))}var qn=kt(0);function Tg(m){for(var _=m;_!==null;){if(_.tag===13){var M=_.memoizedState;if(M!==null&&(M=M.dehydrated,M===null||_o(M)||ru(M)))return _}else if(_.tag===19&&_.memoizedProps.revealOrder!==void 0){if(_.flags&128)return _}else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===m)break;for(;_.sibling===null;){if(_.return===null||_.return===m)return null;_=_.return}_.sibling.return=_.return,_=_.sibling}return null}var vS=[];function gS(){for(var m=0;mM?M:4,m(!0);var b=ga.transition;ga.transition={};try{m(!1),_()}finally{Sn=M,ga.transition=b}}function qR(){return To().memoizedState}function eW(m,_,M){var b=Qs(m);M={lane:b,action:M,hasEagerState:!1,eagerState:null,next:null},QR(m)?$R(_,M):(e2(m,_,M),M=fi(),m=ma(m,b,M),m!==null&&t2(m,_,b))}function tW(m,_,M){var b=Qs(m),D={lane:b,action:M,hasEagerState:!1,eagerState:null,next:null};if(QR(m))$R(_,D);else{e2(m,_,D);var L=m.alternate;if(m.lanes===0&&(L===null||L.lanes===0)&&(L=_.lastRenderedReducer,L!==null))try{var Q=_.lastRenderedState,ue=L(Q,M);if(D.hasEagerState=!0,D.eagerState=ue,Ao(ue,Q))return}catch(Ce){}finally{}M=fi(),m=ma(m,b,M),m!==null&&t2(m,_,b)}}function QR(m){var _=m.alternate;return m===nr||_!==null&&_===nr}function $R(m,_){yd=Eg=!0;var M=m.pending;M===null?_.next=_:(_.next=M.next,M.next=_),m.pending=_}function e2(m,_,M){vr!==null&&m.mode&1&&!(rn&2)?(m=_.interleaved,m===null?(M.next=M,wo===null?wo=[_]:wo.push(_)):(M.next=m.next,m.next=M),_.interleaved=M):(m=_.pending,m===null?M.next=M:(M.next=m.next,m.next=M),_.pending=M)}function t2(m,_,M){if(M&4194240){var b=_.lanes;b&=m.pendingLanes,M|=b,_.lanes=M,Kx(m,M)}}var Lg={readContext:fa,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useInsertionEffect:Xr,useLayoutEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr,useDeferredValue:Xr,useTransition:Xr,useMutableSource:Xr,useSyncExternalStore:Xr,useId:Xr,unstable_isNewReconciler:!1},nW={readContext:fa,useCallback:function(m,_){return fs().memoizedState=[m,_===void 0?null:_],m},useContext:fa,useEffect:SS,useImperativeHandle:function(m,_,M){return M=M!=null?M.concat([m]):null,Dg(4194308,4,JR.bind(null,_,m),M)},useLayoutEffect:function(m,_){return Dg(4194308,4,m,_)},useInsertionEffect:function(m,_){return Dg(4,2,m,_)},useMemo:function(m,_){var M=fs();return _=_===void 0?null:_,m=m(),M.memoizedState=[m,_],m},useReducer:function(m,_,M){var b=fs();return _=M!==void 0?M(_):_,b.memoizedState=b.baseState=_,m={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:m,lastRenderedState:_},b.queue=m,m=m.dispatch=eW.bind(null,nr,m),[b.memoizedState,m]},useRef:function(m){var _=fs();return m={current:m},_.memoizedState=m},useState:xS,useDebugValue:AS,useDeferredValue:function(m){var _=xS(m),M=_[0],b=_[1];return SS(function(){var D=ga.transition;ga.transition={};try{b(m)}finally{ga.transition=D}},[m]),M},useTransition:function(){var m=xS(!1),_=m[0];return m=$V.bind(null,m[1]),fs().memoizedState=m,[_,m]},useMutableSource:function(){},useSyncExternalStore:function(m,_,M){var b=nr,D=fs();if(Xn){if(M===void 0)throw Error(o(407));M=M()}else{if(M=_(),vr===null)throw Error(o(349));oh&30||GR(b,_,M)}D.memoizedState=M;var L={value:M,getSnapshot:_};return D.queue=L,SS(HR.bind(null,b,L,m),[m]),b.flags|=2048,xd(9,zR.bind(null,b,L,M,_),void 0,null),M},useId:function(){var m=fs(),_=vr.identifierPrefix;if(Xn){var M=hs,b=cs;M=(b&~(1<<32-Nn(b)-1)).toString(32)+M,_=":"+_+"R"+M,M=_d++,0f1&&(_.flags|=128,T=!0,Ld(I,!1),_.lanes=4194304)}else{if(!T)if(m=Vg(L),m!==null){if(_.flags|=128,T=!0,m=m.updateQueue,m!==null&&(_.updateQueue=m,_.flags|=4),Ld(I,!0),I.tail===null&&I.tailMode==="hidden"&&!L.alternate&&!Yn)return Jr(_),null}else 2*Dr()-I.renderingStartTime>f1&&M!==1073741824&&(_.flags|=128,T=!0,Ld(I,!1),_.lanes=4194304);I.isBackwards?(L.sibling=_.child,_.child=L):(m=I.last,m!==null?m.sibling=L:_.child=L,I.last=L)}return I.tail!==null?(_=I.tail,I.rendering=_,I.tail=_.sibling,I.renderingStartTime=Dr(),_.sibling=null,m=$n.current,Qe($n,T?m&1|2:m&1),_):(Jr(_),null);case 22:case 23:return m1(),T=_.memoizedState!==null,m!==null&&m.memoizedState!==null!==T&&(_.flags|=8192),T&&_.mode&1?Ki&1073741824&&(Jr(_),Ie&&_.subtreeFlags&6&&(_.flags|=8192)):Jr(_),null;case 24:return null;case 25:return null}throw Error(o(156,_.tag))}var e8=s.ReactCurrentOwner,Zi=!1;function di(m,_,M,T){_.child=m===null?h2(_,null,M,T):ch(_,m.child,M,T)}function k2(m,_,M,T,I){M=M.render;var L=_.ref;return oh(_,I),T=VS(m,_,M,T,L,I),M=WS(),m!==null&&!Zi?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~I,ps(m,_,I)):(Yn&&M&&LS(_),_.flags|=1,di(m,_,T,I),_.child)}function U2(m,_,M,T,I){if(m===null){var L=M.type;return typeof L=="function"&&!_1(L)&&L.defaultProps===void 0&&M.compare===null&&M.defaultProps===void 0?(_.tag=15,_.type=L,G2(m,_,L,T,I)):(m=_m(M.type,null,T,_,_.mode,I),m.ref=_.ref,m.return=_,_.child=m)}if(L=m.child,!(m.lanes&I)){var $=L.memoizedProps;if(M=M.compare,M=M!==null?M:Bg,M($,T)&&m.ref===_.ref)return ps(m,_,I)}return _.flags|=1,m=rl(L,T),m.ref=_.ref,m.return=_,_.child=m}function G2(m,_,M,T,I){if(m!==null&&Bg(m.memoizedProps,T)&&m.ref===_.ref)if(Zi=!1,(m.lanes&I)!==0)m.flags&131072&&(Zi=!0);else return _.lanes=m.lanes,ps(m,_,I);return KS(m,_,M,T,I)}function z2(m,_,M){var T=_.pendingProps,I=T.children,L=m!==null?m.memoizedState:null;if(T.mode==="hidden")if(!(_.mode&1))_.memoizedState={baseLanes:0,cachePool:null},Qe(ph,Ki),Ki|=M;else if(M&1073741824)_.memoizedState={baseLanes:0,cachePool:null},T=L!==null?L.baseLanes:M,Qe(ph,Ki),Ki|=T;else return m=L!==null?L.baseLanes|M:M,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:m,cachePool:null},_.updateQueue=null,Qe(ph,Ki),Ki|=m,null;else L!==null?(T=L.baseLanes|M,_.memoizedState=null):T=M,Qe(ph,Ki),Ki|=T;return di(m,_,I,M),_.child}function H2(m,_){var M=_.ref;(m===null&&M!==null||m!==null&&m.ref!==M)&&(_.flags|=512,_.flags|=2097152)}function KS(m,_,M,T,I){var L=Xn(M)?Pn:Ot.current;return L=nr(_,L),oh(_,I),M=VS(m,_,M,T,L,I),T=WS(),m!==null&&!Zi?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~I,ps(m,_,I)):(Yn&&T&&LS(_),_.flags|=1,di(m,_,M,I),_.child)}function V2(m,_,M,T,I){if(Xn(M)){var L=!0;Kt(_)}else L=!1;if(oh(_,I),_.stateNode===null)m!==null&&(m.alternate=null,_.alternate=null,_.flags|=2),r2(_,M,T),IS(_,M,T,I),T=!0;else if(m===null){var $=_.stateNode,fe=_.memoizedProps;$.props=fe;var Ee=$.context,Ze=M.contextType;typeof Ze=="object"&&Ze!==null?Ze=da(Ze):(Ze=Xn(M)?Pn:Ot.current,Ze=nr(_,Ze));var xt=M.getDerivedStateFromProps,Xt=typeof xt=="function"||typeof $.getSnapshotBeforeUpdate=="function";Xt||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(fe!==T||Ee!==Ze)&&i2(_,$,T,Ze),qs=!1;var Lt=_.memoizedState;$.state=Lt,kg(_,T,$,I),Ee=_.memoizedState,fe!==T||Lt!==Ee||Nt.current||qs?(typeof xt=="function"&&(DS(_,M,xt,T),Ee=_.memoizedState),(fe=qs||n2(_,M,fe,T,Lt,Ee,Ze))?(Xt||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount()),typeof $.componentDidMount=="function"&&(_.flags|=4194308)):(typeof $.componentDidMount=="function"&&(_.flags|=4194308),_.memoizedProps=T,_.memoizedState=Ee),$.props=T,$.state=Ee,$.context=Ze,T=fe):(typeof $.componentDidMount=="function"&&(_.flags|=4194308),T=!1)}else{$=_.stateNode,$R(m,_),fe=_.memoizedProps,Ze=_.type===_.elementType?fe:Ya(_.type,fe),$.props=Ze,Xt=_.pendingProps,Lt=$.context,Ee=M.contextType,typeof Ee=="object"&&Ee!==null?Ee=da(Ee):(Ee=Xn(M)?Pn:Ot.current,Ee=nr(_,Ee));var Bn=M.getDerivedStateFromProps;(xt=typeof Bn=="function"||typeof $.getSnapshotBeforeUpdate=="function")||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(fe!==Xt||Lt!==Ee)&&i2(_,$,T,Ee),qs=!1,Lt=_.memoizedState,$.state=Lt,kg(_,T,$,I);var Ct=_.memoizedState;fe!==Xt||Lt!==Ct||Nt.current||qs?(typeof Bn=="function"&&(DS(_,M,Bn,T),Ct=_.memoizedState),(Ze=qs||n2(_,M,Ze,T,Lt,Ct,Ee)||!1)?(xt||typeof $.UNSAFE_componentWillUpdate!="function"&&typeof $.componentWillUpdate!="function"||(typeof $.componentWillUpdate=="function"&&$.componentWillUpdate(T,Ct,Ee),typeof $.UNSAFE_componentWillUpdate=="function"&&$.UNSAFE_componentWillUpdate(T,Ct,Ee)),typeof $.componentDidUpdate=="function"&&(_.flags|=4),typeof $.getSnapshotBeforeUpdate=="function"&&(_.flags|=1024)):(typeof $.componentDidUpdate!="function"||fe===m.memoizedProps&&Lt===m.memoizedState||(_.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||fe===m.memoizedProps&&Lt===m.memoizedState||(_.flags|=1024),_.memoizedProps=T,_.memoizedState=Ct),$.props=T,$.state=Ct,$.context=Ee,T=Ze):(typeof $.componentDidUpdate!="function"||fe===m.memoizedProps&&Lt===m.memoizedState||(_.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||fe===m.memoizedProps&&Lt===m.memoizedState||(_.flags|=1024),T=!1)}return qS(m,_,M,T,L,I)}function qS(m,_,M,T,I,L){H2(m,_);var $=(_.flags&128)!==0;if(!T&&!$)return I&&dn(_,M,!1),ps(m,_,L);T=_.stateNode,e8.current=_;var fe=$&&typeof M.getDerivedStateFromError!="function"?null:T.render();return _.flags|=1,m!==null&&$?(_.child=ch(_,m.child,null,L),_.child=ch(_,null,fe,L)):di(m,_,fe,L),_.memoizedState=T.state,I&&dn(_,M,!0),_.child}function W2(m){var _=m.stateNode;_.pendingContext?hn(m,_.pendingContext,_.pendingContext!==_.context):_.context&&hn(m,_.context,!1),kS(m,_.containerInfo)}function X2(m,_,M,T,I){return uh(),NS(I),_.flags|=256,di(m,_,M,T),_.child}var Qg={dehydrated:null,treeContext:null,retryLane:0};function em(m){return{baseLanes:m,cachePool:null}}function Y2(m,_,M){var T=_.pendingProps,I=$n.current,L=!1,$=(_.flags&128)!==0,fe;if((fe=$)||(fe=m!==null&&m.memoizedState===null?!1:(I&2)!==0),fe?(L=!0,_.flags&=-129):(m===null||m.memoizedState!==null)&&(I|=1),Qe($n,I&1),m===null)return FS(_),m=_.memoizedState,m!==null&&(m=m.dehydrated,m!==null)?(_.mode&1?lu(m)?_.lanes=8:_.lanes=1073741824:_.lanes=1,null):(I=T.children,m=T.fallback,L?(T=_.mode,L=_.child,I={mode:"hidden",children:I},!(T&1)&&L!==null?(L.childLanes=0,L.pendingProps=I):L=xm(I,T,0,null),m=yu(m,T,M,null),L.return=_,m.return=_,L.sibling=m,_.child=L,_.child.memoizedState=em(M),_.memoizedState=Qg,m):$S(_,I));if(I=m.memoizedState,I!==null){if(fe=I.dehydrated,fe!==null){if($)return _.flags&256?(_.flags&=-257,tm(m,_,M,Error(o(422)))):_.memoizedState!==null?(_.child=m.child,_.flags|=128,null):(L=T.fallback,I=_.mode,T=xm({mode:"visible",children:T.children},I,0,null),L=yu(L,I,M,null),L.flags|=2,T.return=_,L.return=_,T.sibling=L,_.child=T,_.mode&1&&ch(_,m.child,null,M),_.child.memoizedState=em(M),_.memoizedState=Qg,L);if(!(_.mode&1))_=tm(m,_,M,null);else if(lu(fe))_=tm(m,_,M,Error(o(419)));else if(T=(M&m.childLanes)!==0,Zi||T){if(T=mr,T!==null){switch(M&-M){case 4:L=2;break;case 16:L=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:L=32;break;case 536870912:L=268435456;break;default:L=0}T=L&(T.suspendedLanes|M)?0:L,T!==0&&T!==I.retryLane&&(I.retryLane=T,ya(m,T,-1))}y1(),_=tm(m,_,M,Error(o(421)))}else xo(fe)?(_.flags|=128,_.child=m.child,_=d8.bind(null,m),ha(fe,_),_=null):(M=I.treeContext,Se&&(Ji=ih(fe),ji=_,Yn=!0,ja=null,Ad=!1,M!==null&&(pa[va++]=hs,pa[va++]=fs,pa[va++]=cu,hs=M.id,fs=M.overflow,cu=_)),_=$S(_,_.pendingProps.children),_.flags|=4096);return _}return L?(T=J2(m,_,T.children,T.fallback,M),L=_.child,I=m.child.memoizedState,L.memoizedState=I===null?em(M):{baseLanes:I.baseLanes|M,cachePool:null},L.childLanes=m.childLanes&~M,_.memoizedState=Qg,T):(M=j2(m,_,T.children,M),_.memoizedState=null,M)}return L?(T=J2(m,_,T.children,T.fallback,M),L=_.child,I=m.child.memoizedState,L.memoizedState=I===null?em(M):{baseLanes:I.baseLanes|M,cachePool:null},L.childLanes=m.childLanes&~M,_.memoizedState=Qg,T):(M=j2(m,_,T.children,M),_.memoizedState=null,M)}function $S(m,_){return _=xm({mode:"visible",children:_},m.mode,0,null),_.return=m,m.child=_}function j2(m,_,M,T){var I=m.child;return m=I.sibling,M=rl(I,{mode:"visible",children:M}),!(_.mode&1)&&(M.lanes=T),M.return=_,M.sibling=null,m!==null&&(T=_.deletions,T===null?(_.deletions=[m],_.flags|=16):T.push(m)),_.child=M}function J2(m,_,M,T,I){var L=_.mode;m=m.child;var $=m.sibling,fe={mode:"hidden",children:M};return!(L&1)&&_.child!==m?(M=_.child,M.childLanes=0,M.pendingProps=fe,_.deletions=null):(M=rl(m,fe),M.subtreeFlags=m.subtreeFlags&14680064),$!==null?T=rl($,T):(T=yu(T,L,I,null),T.flags|=2),T.return=_,M.return=_,M.sibling=T,_.child=M,T}function tm(m,_,M,T){return T!==null&&NS(T),ch(_,m.child,null,M),m=$S(_,_.pendingProps.children),m.flags|=2,_.memoizedState=null,m}function Z2(m,_,M){m.lanes|=_;var T=m.alternate;T!==null&&(T.lanes|=_),RS(m.return,_,M)}function QS(m,_,M,T,I){var L=m.memoizedState;L===null?m.memoizedState={isBackwards:_,rendering:null,renderingStartTime:0,last:T,tail:M,tailMode:I}:(L.isBackwards=_,L.rendering=null,L.renderingStartTime=0,L.last=T,L.tail=M,L.tailMode=I)}function K2(m,_,M){var T=_.pendingProps,I=T.revealOrder,L=T.tail;if(di(m,_,T.children,M),T=$n.current,T&2)T=T&1|2,_.flags|=128;else{if(m!==null&&m.flags&128)e:for(m=_.child;m!==null;){if(m.tag===13)m.memoizedState!==null&&Z2(m,M,_);else if(m.tag===19)Z2(m,M,_);else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===_)break e;for(;m.sibling===null;){if(m.return===null||m.return===_)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}T&=1}if(Qe($n,T),!(_.mode&1))_.memoizedState=null;else switch(I){case"forwards":for(M=_.child,I=null;M!==null;)m=M.alternate,m!==null&&Vg(m)===null&&(I=M),M=M.sibling;M=I,M===null?(I=_.child,_.child=null):(I=M.sibling,M.sibling=null),QS(_,!1,I,M,L);break;case"backwards":for(M=null,I=_.child,_.child=null;I!==null;){if(m=I.alternate,m!==null&&Vg(m)===null){_.child=I;break}m=I.sibling,I.sibling=M,M=I,I=m}QS(_,!0,M,null,L);break;case"together":QS(_,!1,null,null,void 0);break;default:_.memoizedState=null}return _.child}function ps(m,_,M){if(m!==null&&(_.dependencies=m.dependencies),vh|=_.lanes,!(M&_.childLanes))return null;if(m!==null&&_.child!==m.child)throw Error(o(153));if(_.child!==null){for(m=_.child,M=rl(m,m.pendingProps),_.child=M,M.return=_;m.sibling!==null;)m=m.sibling,M=M.sibling=rl(m,m.pendingProps),M.return=_;M.sibling=null}return _.child}function t8(m,_,M){switch(_.tag){case 3:W2(_),uh();break;case 5:f2(_);break;case 1:Xn(_.type)&&Kt(_);break;case 4:kS(_,_.stateNode.containerInfo);break;case 10:qR(_,_.type._context,_.memoizedProps.value);break;case 13:var T=_.memoizedState;if(T!==null)return T.dehydrated!==null?(Qe($n,$n.current&1),_.flags|=128,null):M&_.child.childLanes?Y2(m,_,M):(Qe($n,$n.current&1),m=ps(m,_,M),m!==null?m.sibling:null);Qe($n,$n.current&1);break;case 19:if(T=(M&_.childLanes)!==0,m.flags&128){if(T)return K2(m,_,M);_.flags|=128}var I=_.memoizedState;if(I!==null&&(I.rendering=null,I.tail=null,I.lastEffect=null),Qe($n,$n.current),T)break;return null;case 22:case 23:return _.lanes=0,z2(m,_,M)}return ps(m,_,M)}function n8(m,_){switch(BS(_),_.tag){case 1:return Xn(_.type)&&gn(),m=_.flags,m&65536?(_.flags=m&-65537|128,_):null;case 3:return fh(),pt(Nt),pt(Ot),zS(),m=_.flags,m&65536&&!(m&128)?(_.flags=m&-65537|128,_):null;case 5:return US(_),null;case 13:if(pt($n),m=_.memoizedState,m!==null&&m.dehydrated!==null){if(_.alternate===null)throw Error(o(340));uh()}return m=_.flags,m&65536?(_.flags=m&-65537|128,_):null;case 19:return pt($n),null;case 4:return fh(),null;case 10:return ES(_.type._context),null;case 22:case 23:return m1(),null;case 24:return null;default:return null}}var nm=!1,du=!1,r8=typeof WeakSet=="function"?WeakSet:Set,lt=null;function rm(m,_){var M=m.ref;if(M!==null)if(typeof M=="function")try{M(null)}catch(T){Ni(m,_,T)}else M.current=null}function e1(m,_,M){try{M()}catch(T){Ni(m,_,T)}}var q2=!1;function i8(m,_){for(K(m.containerInfo),lt=_;lt!==null;)if(m=lt,_=m.child,(m.subtreeFlags&1028)!==0&&_!==null)_.return=m,lt=_;else for(;lt!==null;){m=lt;try{var M=m.alternate;if(m.flags&1024)switch(m.tag){case 0:case 11:case 15:break;case 1:if(M!==null){var T=M.memoizedProps,I=M.memoizedState,L=m.stateNode,$=L.getSnapshotBeforeUpdate(m.elementType===m.type?T:Ya(m.type,T),I);L.__reactInternalSnapshotBeforeUpdate=$}break;case 3:Ie&&We(m.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(fe){Ni(m,m.return,fe)}if(_=m.sibling,_!==null){_.return=m.return,lt=_;break}lt=m.return}return M=q2,q2=!1,M}function pu(m,_,M){var T=_.updateQueue;if(T=T!==null?T.lastEffect:null,T!==null){var I=T=T.next;do{if((I.tag&m)===m){var L=I.destroy;I.destroy=void 0,L!==void 0&&e1(_,M,L)}I=I.next}while(I!==T)}}function Bd(m,_){if(_=_.updateQueue,_=_!==null?_.lastEffect:null,_!==null){var M=_=_.next;do{if((M.tag&m)===m){var T=M.create;M.destroy=T()}M=M.next}while(M!==_)}}function t1(m){var _=m.ref;if(_!==null){var M=m.stateNode;switch(m.tag){case 5:m=X(M);break;default:m=M}typeof _=="function"?_(m):_.current=m}}function $2(m,_,M){if(Ao&&typeof Ao.onCommitFiberUnmount=="function")try{Ao.onCommitFiberUnmount(Ig,_)}catch($){}switch(_.tag){case 0:case 11:case 14:case 15:if(m=_.updateQueue,m!==null&&(m=m.lastEffect,m!==null)){var T=m=m.next;do{var I=T,L=I.destroy;I=I.tag,L!==void 0&&(I&2||I&4)&&e1(_,M,L),T=T.next}while(T!==m)}break;case 1:if(rm(_,M),m=_.stateNode,typeof m.componentWillUnmount=="function")try{m.props=_.memoizedProps,m.state=_.memoizedState,m.componentWillUnmount()}catch($){Ni(_,M,$)}break;case 5:rm(_,M);break;case 4:Ie?iP(m,_,M):Z&&Z&&(_=_.stateNode.containerInfo,M=Et(_),fn(_,M))}}function Q2(m,_,M){for(var T=_;;)if($2(m,T,M),T.child===null||Ie&&T.tag===4){if(T===_)break;for(;T.sibling===null;){if(T.return===null||T.return===_)return;T=T.return}T.sibling.return=T.return,T=T.sibling}else T.child.return=T,T=T.child}function eP(m){var _=m.alternate;_!==null&&(m.alternate=null,eP(_)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(_=m.stateNode,_!==null&&et(_)),m.stateNode=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}function tP(m){return m.tag===5||m.tag===3||m.tag===4}function nP(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||tP(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function rP(m){if(Ie){e:{for(var _=m.return;_!==null;){if(tP(_))break e;_=_.return}throw Error(o(160))}var M=_;switch(M.tag){case 5:_=M.stateNode,M.flags&32&&(we(_),M.flags&=-33),M=nP(m),r1(m,M,_);break;case 3:case 4:_=M.stateNode.containerInfo,M=nP(m),n1(m,M,_);break;default:throw Error(o(161))}}}function n1(m,_,M){var T=m.tag;if(T===5||T===6)m=m.stateNode,_?qe(M,m,_):ht(M,m);else if(T!==4&&(m=m.child,m!==null))for(n1(m,_,M),m=m.sibling;m!==null;)n1(m,_,M),m=m.sibling}function r1(m,_,M){var T=m.tag;if(T===5||T===6)m=m.stateNode,_?it(M,m,_):_t(M,m);else if(T!==4&&(m=m.child,m!==null))for(r1(m,_,M),m=m.sibling;m!==null;)r1(m,_,M),m=m.sibling}function iP(m,_,M){for(var T=_,I=!1,L,$;;){if(!I){I=T.return;e:for(;;){if(I===null)throw Error(o(160));switch(L=I.stateNode,I.tag){case 5:$=!1;break e;case 3:L=L.containerInfo,$=!0;break e;case 4:L=L.containerInfo,$=!0;break e}I=I.return}I=!0}if(T.tag===5||T.tag===6)Q2(m,T,M),$?oe(L,T.stateNode):je(L,T.stateNode);else if(T.tag===18)$?te(L,T.stateNode):ae(L,T.stateNode);else if(T.tag===4){if(T.child!==null){L=T.stateNode.containerInfo,$=!0,T.child.return=T,T=T.child;continue}}else if($2(m,T,M),T.child!==null){T.child.return=T,T=T.child;continue}if(T===_)break;for(;T.sibling===null;){if(T.return===null||T.return===_)return;T=T.return,T.tag===4&&(I=!1)}T.sibling.return=T.return,T=T.sibling}}function i1(m,_){if(Ie){switch(_.tag){case 0:case 11:case 14:case 15:pu(3,_,_.return),Bd(3,_),pu(5,_,_.return);return;case 1:return;case 5:var M=_.stateNode;if(M!=null){var T=_.memoizedProps;m=m!==null?m.memoizedProps:T;var I=_.type,L=_.updateQueue;_.updateQueue=null,L!==null&&ft(M,L,I,m,T,_)}return;case 6:if(_.stateNode===null)throw Error(o(162));M=_.memoizedProps,ke(_.stateNode,m!==null?m.memoizedProps:M,M);return;case 3:Se&&m!==null&&m.memoizedState.isDehydrated&&j(_.stateNode.containerInfo);return;case 12:return;case 13:im(_);return;case 19:im(_);return;case 17:return}throw Error(o(163))}switch(_.tag){case 0:case 11:case 14:case 15:pu(3,_,_.return),Bd(3,_),pu(5,_,_.return);return;case 12:return;case 13:im(_);return;case 19:im(_);return;case 3:Se&&m!==null&&m.memoizedState.isDehydrated&&j(_.stateNode.containerInfo);break;case 22:case 23:return}e:if(Z){switch(_.tag){case 1:case 5:case 6:break e;case 3:case 4:_=_.stateNode,fn(_.containerInfo,_.pendingChildren);break e}throw Error(o(163))}}function im(m){var _=m.updateQueue;if(_!==null){m.updateQueue=null;var M=m.stateNode;M===null&&(M=m.stateNode=new r8),_.forEach(function(T){var I=p8.bind(null,m,T);M.has(T)||(M.add(T),T.then(I,I))})}}function a8(m,_){for(lt=_;lt!==null;){_=lt;var M=_.deletions;if(M!==null)for(var T=0;T";case om:return":has("+(s1(m)||"")+")";case sm:return'[role="'+m.value+'"]';case um:return'"'+m.value+'"';case lm:return'[data-testname="'+m.value+'"]';default:throw Error(o(365))}}function uP(m,_){var M=[];m=[m,0];for(var T=0;TI&&(I=$),T&=~L}if(T=I,T=Dr()-T,T=(120>T?120:480>T?480:1080>T?1080:1920>T?1920:3e3>T?3e3:4320>T?4320:1960*s8(T/1960))-T,10m?16:m,el===null)var T=!1;else{if(m=el,el=null,pm=0,on&6)throw Error(o(331));var I=on;for(on|=4,lt=m.current;lt!==null;){var L=lt,$=L.child;if(lt.flags&16){var fe=L.deletions;if(fe!==null){for(var Ee=0;EeDr()-h1?vu(m,0):c1|=M),Fi(m,_)}function yP(m,_){_===0&&(m.mode&1?(_=Pg,Pg<<=1,!(Pg&130023424)&&(Pg=4194304)):_=1);var M=pi();m=mm(m,_),m!==null&&(Sd(m,_,M),Fi(m,M))}function d8(m){var _=m.memoizedState,M=0;_!==null&&(M=_.retryLane),yP(m,M)}function p8(m,_){var M=0;switch(m.tag){case 13:var T=m.stateNode,I=m.memoizedState;I!==null&&(M=I.retryLane);break;case 19:T=m.stateNode;break;default:throw Error(o(314))}T!==null&&T.delete(_),yP(m,M)}var _P;_P=function(m,_,M){if(m!==null)if(m.memoizedProps!==_.pendingProps||Nt.current)Zi=!0;else{if(!(m.lanes&M)&&!(_.flags&128))return Zi=!1,t8(m,_,M);Zi=!!(m.flags&131072)}else Zi=!1,Yn&&_.flags&1048576&&a2(_,zg,_.index);switch(_.lanes=0,_.tag){case 2:var T=_.type;m!==null&&(m.alternate=null,_.alternate=null,_.flags|=2),m=_.pendingProps;var I=nr(_,Ot.current);oh(_,M),I=VS(null,_,T,m,I,M);var L=WS();return _.flags|=1,typeof I=="object"&&I!==null&&typeof I.render=="function"&&I.$$typeof===void 0?(_.tag=1,_.memoizedState=null,_.updateQueue=null,Xn(T)?(L=!0,Kt(_)):L=!1,_.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,PS(_),I.updater=Ug,_.stateNode=I,I._reactInternals=_,IS(_,T,m,M),_=qS(null,_,T,!0,L,M)):(_.tag=0,Yn&&L&&LS(_),di(null,_,I,M),_=_.child),_;case 16:T=_.elementType;e:{switch(m!==null&&(m.alternate=null,_.alternate=null,_.flags|=2),m=_.pendingProps,I=T._init,T=I(T._payload),_.type=T,I=_.tag=g8(T),m=Ya(T,m),I){case 0:_=KS(null,_,T,m,M);break e;case 1:_=V2(null,_,T,m,M);break e;case 11:_=k2(null,_,T,m,M);break e;case 14:_=U2(null,_,T,Ya(T.type,m),M);break e}throw Error(o(306,T,""))}return _;case 0:return T=_.type,I=_.pendingProps,I=_.elementType===T?I:Ya(T,I),KS(m,_,T,I,M);case 1:return T=_.type,I=_.pendingProps,I=_.elementType===T?I:Ya(T,I),V2(m,_,T,I,M);case 3:e:{if(W2(_),m===null)throw Error(o(387));T=_.pendingProps,L=_.memoizedState,I=L.element,$R(m,_),kg(_,T,null,M);var $=_.memoizedState;if(T=$.element,Se&&L.isDehydrated)if(L={element:T,isDehydrated:!1,cache:$.cache,transitions:$.transitions},_.updateQueue.baseState=L,_.memoizedState=L,_.flags&256){I=Error(o(423)),_=X2(m,_,T,M,I);break e}else if(T!==I){I=Error(o(424)),_=X2(m,_,T,M,I);break e}else for(Se&&(Ji=uu(_.stateNode.containerInfo),ji=_,Yn=!0,ja=null,Ad=!1),M=h2(_,null,T,M),_.child=M;M;)M.flags=M.flags&-3|4096,M=M.sibling;else{if(uh(),T===I){_=ps(m,_,M);break e}di(m,_,T,M)}_=_.child}return _;case 5:return f2(_),m===null&&FS(_),T=_.type,I=_.pendingProps,L=m!==null?m.memoizedProps:null,$=I.children,_e(T,I)?$=null:L!==null&&_e(T,L)&&(_.flags|=32),H2(m,_),di(m,_,$,M),_.child;case 6:return m===null&&FS(_),null;case 13:return Y2(m,_,M);case 4:return kS(_,_.stateNode.containerInfo),T=_.pendingProps,m===null?_.child=ch(_,null,T,M):di(m,_,T,M),_.child;case 11:return T=_.type,I=_.pendingProps,I=_.elementType===T?I:Ya(T,I),k2(m,_,T,I,M);case 7:return di(m,_,_.pendingProps,M),_.child;case 8:return di(m,_,_.pendingProps.children,M),_.child;case 12:return di(m,_,_.pendingProps.children,M),_.child;case 10:e:{if(T=_.type._context,I=_.pendingProps,L=_.memoizedProps,$=I.value,qR(_,T,$),L!==null)if(Mo(L.value,$)){if(L.children===I.children&&!Nt.current){_=ps(m,_,M);break e}}else for(L=_.child,L!==null&&(L.return=_);L!==null;){var fe=L.dependencies;if(fe!==null){$=L.child;for(var Ee=fe.firstContext;Ee!==null;){if(Ee.context===T){if(L.tag===1){Ee=cs(-1,M&-M),Ee.tag=2;var Ze=L.updateQueue;if(Ze!==null){Ze=Ze.shared;var xt=Ze.pending;xt===null?Ee.next=Ee:(Ee.next=xt.next,xt.next=Ee),Ze.pending=Ee}}L.lanes|=M,Ee=L.alternate,Ee!==null&&(Ee.lanes|=M),RS(L.return,M,_),fe.lanes|=M;break}Ee=Ee.next}}else if(L.tag===10)$=L.type===_.type?null:L.child;else if(L.tag===18){if($=L.return,$===null)throw Error(o(341));$.lanes|=M,fe=$.alternate,fe!==null&&(fe.lanes|=M),RS($,M,_),$=L.sibling}else $=L.child;if($!==null)$.return=L;else for($=L;$!==null;){if($===_){$=null;break}if(L=$.sibling,L!==null){L.return=$.return,$=L;break}$=$.return}L=$}di(m,_,I.children,M),_=_.child}return _;case 9:return I=_.type,T=_.pendingProps.children,oh(_,M),I=da(I),T=T(I),_.flags|=1,di(m,_,T,M),_.child;case 14:return T=_.type,I=Ya(T,_.pendingProps),I=Ya(T.type,I),U2(m,_,T,I,M);case 15:return G2(m,_,_.type,_.pendingProps,M);case 17:return T=_.type,I=_.pendingProps,I=_.elementType===T?I:Ya(T,I),m!==null&&(m.alternate=null,_.alternate=null,_.flags|=2),_.tag=1,Xn(T)?(m=!0,Kt(_)):m=!1,oh(_,M),r2(_,T,I),IS(_,T,I,M),qS(null,_,T,!0,m,M);case 19:return K2(m,_,M);case 22:return z2(m,_,M)}throw Error(o(156,_.tag))};function xP(m,_){return AS(m,_)}function v8(m,_,M,T){this.tag=m,this.key=M,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=_,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=T,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _a(m,_,M,T){return new v8(m,_,M,T)}function _1(m){return m=m.prototype,!(!m||!m.isReactComponent)}function g8(m){if(typeof m=="function")return _1(m)?1:0;if(m!=null){if(m=m.$$typeof,m===y)return 11;if(m===x)return 14}return 2}function rl(m,_){var M=m.alternate;return M===null?(M=_a(m.tag,_,m.key,m.mode),M.elementType=m.elementType,M.type=m.type,M.stateNode=m.stateNode,M.alternate=m,m.alternate=M):(M.pendingProps=_,M.type=m.type,M.flags=0,M.subtreeFlags=0,M.deletions=null),M.flags=m.flags&14680064,M.childLanes=m.childLanes,M.lanes=m.lanes,M.child=m.child,M.memoizedProps=m.memoizedProps,M.memoizedState=m.memoizedState,M.updateQueue=m.updateQueue,_=m.dependencies,M.dependencies=_===null?null:{lanes:_.lanes,firstContext:_.firstContext},M.sibling=m.sibling,M.index=m.index,M.ref=m.ref,M}function _m(m,_,M,T,I,L){var $=2;if(T=m,typeof m=="function")_1(m)&&($=1);else if(typeof m=="string")$=5;else e:switch(m){case c:return yu(M.children,I,L,_);case h:$=8,I|=8;break;case f:return m=_a(12,M,_,I|2),m.elementType=f,m.lanes=L,m;case g:return m=_a(13,M,_,I),m.elementType=g,m.lanes=L,m;case v:return m=_a(19,M,_,I),m.elementType=v,m.lanes=L,m;case A:return xm(M,I,L,_);default:if(typeof m=="object"&&m!==null)switch(m.$$typeof){case d:$=10;break e;case p:$=9;break e;case y:$=11;break e;case x:$=14;break e;case S:$=16,T=null;break e}throw Error(o(130,m==null?m:typeof m,""))}return _=_a($,M,_,I),_.elementType=m,_.type=T,_.lanes=L,_}function yu(m,_,M,T){return m=_a(7,m,T,_),m.lanes=M,m}function xm(m,_,M,T){return m=_a(22,m,T,_),m.elementType=A,m.lanes=M,m.stateNode={},m}function x1(m,_,M){return m=_a(6,m,null,_),m.lanes=M,m}function S1(m,_,M){return _=_a(4,m.children!==null?m.children:[],m.key,_),_.lanes=M,_.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},_}function m8(m,_,M,T,I){this.tag=_,this.containerInfo=m,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ke,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xS(0),this.expirationTimes=xS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xS(0),this.identifierPrefix=T,this.onRecoverableError=I,Se&&(this.mutableSourceEagerHydrationData=null)}function SP(m,_,M,T,I,L,$,fe,Ee){return m=new m8(m,_,M,fe,Ee),_===1?(_=1,L===!0&&(_|=8)):_=0,L=_a(3,null,null,_),m.current=L,L.stateNode=m,L.memoizedState={element:T,isDehydrated:M,cache:null,transitions:null},PS(L),m}function AP(m){if(!m)return an;m=m._reactInternals;e:{if(E(m)!==m||m.tag!==1)throw Error(o(170));var _=m;do{switch(_.tag){case 3:_=_.stateNode.context;break e;case 1:if(Xn(_.type)){_=_.stateNode.__reactInternalMemoizedMergedChildContext;break e}}_=_.return}while(_!==null);throw Error(o(171))}if(m.tag===1){var M=m.type;if(Xn(M))return qn(m,M,_)}return _}function MP(m){var _=m._reactInternals;if(_===void 0)throw typeof m.render=="function"?Error(o(188)):(m=Object.keys(m).join(","),Error(o(268,m)));return m=B(_),m===null?null:m.stateNode}function wP(m,_){if(m=m.memoizedState,m!==null&&m.dehydrated!==null){var M=m.retryLane;m.retryLane=M!==0&&M<_?M:_}}function A1(m,_){wP(m,_),(m=m.alternate)&&wP(m,_)}function y8(m){return m=B(m),m===null?null:m.stateNode}function _8(){return null}return t.attemptContinuousHydration=function(m){if(m.tag===13){var _=pi();ya(m,134217728,_),A1(m,134217728)}},t.attemptHydrationAtCurrentPriority=function(m){if(m.tag===13){var _=pi(),M=tl(m);ya(m,M,_),A1(m,M)}},t.attemptSynchronousHydration=function(m){switch(m.tag){case 3:var _=m.stateNode;if(_.current.memoizedState.isDehydrated){var M=xd(_.pendingLanes);M!==0&&(SS(_,M|1),Fi(_,Dr()),!(on&6)&&(gh(),wo()))}break;case 13:var T=pi();fP(function(){return ya(m,1,T)}),A1(m,1)}},t.batchedUpdates=function(m,_){var M=on;on|=1;try{return m(_)}finally{on=M,on===0&&(gh(),Lg&&wo())}},t.createComponentSelector=function(m){return{$$typeof:am,value:m}},t.createContainer=function(m,_,M,T,I,L,$){return SP(m,_,!1,null,M,T,I,L,$)},t.createHasPseudoClassSelector=function(m){return{$$typeof:om,value:m}},t.createHydrationContainer=function(m,_,M,T,I,L,$,fe,Ee){return m=SP(M,T,!0,m,I,L,$,fe,Ee),m.context=AP(null),M=m.current,T=pi(),I=tl(M),L=cs(T,I),L.callback=_!=null?_:null,$s(M,L),m.current.lanes=I,Sd(m,I,T),Fi(m,T),m},t.createPortal=function(m,_,M){var T=3=Ze&&L>=Xt&&I<=xt&&$<=Lt){m.splice(_,1);break}else if(T!==Ze||M.width!==Ee.width||Lt$){if(!(L!==Xt||M.height!==Ee.height||xtI)){Ze>T&&(Ee.width+=Ze-T,Ee.x=T),xtL&&(Ee.height+=Xt-L,Ee.y=L),Lt<$&&(Ee.height=$-Xt),m.splice(_,1);break}}}return m},t.findHostInstance=MP,t.findHostInstanceWithNoPortals=function(m){return m=D(m),m=m!==null?N(m):null,m===null?null:m.stateNode},t.findHostInstanceWithWarning=function(m){return MP(m)},t.flushControlled=function(m){var _=on;on|=1;var M=fr.transition,T=An;try{fr.transition=null,An=1,m()}finally{An=T,fr.transition=M,on=_,on===0&&(gh(),wo())}},t.flushPassiveEffects=mu,t.flushSync=fP,t.focusWithin=function(m,_){if(!G)throw Error(o(363));for(m=a1(m),_=uP(m,_),_=Array.from(_),m=0;m<_.length;){var M=_[m++];if(!Le(M)){if(M.tag===5&&Je(M.stateNode))return!0;for(M=M.child;M!==null;)_.push(M),M=M.sibling}}return!1},t.getCurrentUpdatePriority=function(){return An},t.getFindAllNodesFailureDescription=function(m,_){if(!G)throw Error(o(363));var M=0,T=[];m=[a1(m),0];for(var I=0;IM&&(M=$)),$<_.length))for(L=L.child;L!==null;)m.push(L,$),L=L.sibling}if(M<_.length){for(m=[];M<_.length;M++)m.push(s1(_[M]));return`findAllNodes was able to match part of the selector: - `+(T.join(" > ")+` +`+L.stack}return{value:m,source:_,stack:D}}function wS(m,_){try{}catch(M){setTimeout(function(){throw M})}}var aW=typeof WeakMap=="function"?WeakMap:Map;function n2(m,_,M){M=us(-1,M),M.tag=3,M.payload={element:null};var b=_.value;return M.callback=function(){jg||(jg=!0,HS=b),wS(m,_)},M}function r2(m,_,M){M=us(-1,M),M.tag=3;var b=m.type.getDerivedStateFromError;if(typeof b=="function"){var D=_.value;M.payload=function(){return b(D)},M.callback=function(){wS(m,_)}}var L=m.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(M.callback=function(){wS(m,_),typeof b!="function"&&(Ks===null?Ks=new Set([this]):Ks.add(this));var Q=_.stack;this.componentDidCatch(_.value,{componentStack:Q!==null?Q:""})}),M}function i2(m,_,M){var b=m.pingCache;if(b===null){b=m.pingCache=new aW;var D=new Set;b.set(_,D)}else D=b.get(_),D===void 0&&(D=new Set,b.set(_,D));D.has(M)||(D.add(M),m=_W.bind(null,m,_,M),_.then(m,m))}function a2(m){do{var _;if((_=m.tag===13)&&(_=m.memoizedState,_=_!==null?_.dehydrated!==null:!0),_)return m;m=m.return}while(m!==null);return null}function o2(m,_,M,b,D){return m.mode&1?(m.flags|=65536,m.lanes=D,m):(m===_?m.flags|=65536:(m.flags|=128,M.flags|=131072,M.flags&=-52805,M.tag===1&&(M.alternate===null?M.tag=17:(_=us(-1,1),_.tag=2,js(M,_))),M.lanes|=1),m)}function Co(m){m.flags|=4}function s2(m,_){if(m!==null&&m.child===_.child)return!0;if(_.flags&16)return!1;for(m=_.child;m!==null;){if(m.flags&12854||m.subtreeFlags&12854)return!1;m=m.sibling}return!0}var Ad,Md,Bg,Og;if(Ie)Ad=function(m,_){for(var M=_.child;M!==null;){if(M.tag===5||M.tag===6)ce(m,M.stateNode);else if(M.tag!==4&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===_)break;for(;M.sibling===null;){if(M.return===null||M.return===_)return;M=M.return}M.sibling.return=M.return,M=M.sibling}},Md=function(){},Bg=function(m,_,M,b,D){if(m=m.memoizedProps,m!==b){var L=_.stateNode,Q=bo(va.current);M=he(L,M,m,b,D,Q),(_.updateQueue=M)&&Co(_)}},Og=function(m,_,M,b){M!==b&&Co(_)};else if(Z){Ad=function(m,_,M,b){for(var D=_.child;D!==null;){if(D.tag===5){var L=D.stateNode;M&&b&&(L=En(L,D.type,D.memoizedProps,D)),ce(m,L)}else if(D.tag===6)L=D.stateNode,M&&b&&(L=On(L,D.memoizedProps,D)),ce(m,L);else if(D.tag!==4){if(D.tag===22&&D.memoizedState!==null)L=D.child,L!==null&&(L.return=D),Ad(m,D,!0,!0);else if(D.child!==null){D.child.return=D,D=D.child;continue}}if(D===_)break;for(;D.sibling===null;){if(D.return===null||D.return===_)return;D=D.return}D.sibling.return=D.return,D=D.sibling}};var l2=function(m,_,M,b){for(var D=_.child;D!==null;){if(D.tag===5){var L=D.stateNode;M&&b&&(L=En(L,D.type,D.memoizedProps,D)),gt(m,L)}else if(D.tag===6)L=D.stateNode,M&&b&&(L=On(L,D.memoizedProps,D)),gt(m,L);else if(D.tag!==4){if(D.tag===22&&D.memoizedState!==null)L=D.child,L!==null&&(L.return=D),l2(m,D,!0,!0);else if(D.child!==null){D.child.return=D,D=D.child;continue}}if(D===_)break;for(;D.sibling===null;){if(D.return===null||D.return===_)return;D=D.return}D.sibling.return=D.return,D=D.sibling}};Md=function(m,_){var M=_.stateNode;if(!s2(m,_)){m=M.containerInfo;var b=Et(m);l2(b,_,!1,!1),M.pendingChildren=b,Co(_),qt(m,b)}},Bg=function(m,_,M,b,D){var L=m.stateNode,Q=m.memoizedProps;if((m=s2(m,_))&&Q===b)_.stateNode=L;else{var ue=_.stateNode,Ce=bo(va.current),We=null;Q!==b&&(We=he(ue,M,Q,b,D,Ce)),m&&We===null?_.stateNode=L:(L=Qe(L,We,M,Q,b,_,m,ue),ie(L,M,b,D,Ce)&&Co(_),_.stateNode=L,m?Co(_):Ad(L,_,!1,!1))}},Og=function(m,_,M,b){M!==b?(m=bo(ih.current),M=bo(va.current),_.stateNode=ve(b,m,M,_),Co(_)):_.stateNode=m.stateNode}}else Md=function(){},Bg=function(){},Og=function(){};function wd(m,_){if(!Xn)switch(m.tailMode){case"hidden":_=m.tail;for(var M=null;_!==null;)_.alternate!==null&&(M=_),_=_.sibling;M===null?m.tail=null:M.sibling=null;break;case"collapsed":M=m.tail;for(var b=null;M!==null;)M.alternate!==null&&(b=M),M=M.sibling;b===null?_||m.tail===null?m.tail=null:m.tail.sibling=null:b.sibling=null}}function Yr(m){var _=m.alternate!==null&&m.alternate.child===m.child,M=0,b=0;if(_)for(var D=m.child;D!==null;)M|=D.lanes|D.childLanes,b|=D.subtreeFlags&14680064,b|=D.flags&14680064,D.return=m,D=D.sibling;else for(D=m.child;D!==null;)M|=D.lanes|D.childLanes,b|=D.subtreeFlags,b|=D.flags,D.return=m,D=D.sibling;return m.subtreeFlags|=b,m.childLanes=M,_}function oW(m,_,M){var b=_.pendingProps;switch(uS(_),_.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yr(_),null;case 1:return Wn(_.type)&&vn(),Yr(_),null;case 3:return b=_.stateNode,ah(),ct(Bt),ct(It),gS(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),(m===null||m.child===null)&&(pd(_)?Co(_):m===null||m.memoizedState.isDehydrated&&!(_.flags&256)||(_.flags|=1024,Ya!==null&&(XS(Ya),Ya=null))),Md(m,_),Yr(_),null;case 5:pS(_),M=bo(ih.current);var D=_.type;if(m!==null&&_.stateNode!=null)Bg(m,_,D,b,M),m.ref!==_.ref&&(_.flags|=512,_.flags|=2097152);else{if(!b){if(_.stateNode===null)throw Error(o(166));return Yr(_),null}if(m=bo(va.current),pd(_)){if(!xe)throw Error(o(175));m=N(_.stateNode,_.type,_.memoizedProps,M,m,_,!dd),_.updateQueue=m,m!==null&&Co(_)}else{var L=le(D,b,M,m,_);Ad(L,_,!1,!1),_.stateNode=L,ie(L,D,b,M,m)&&Co(_)}_.ref!==null&&(_.flags|=512,_.flags|=2097152)}return Yr(_),null;case 6:if(m&&_.stateNode!=null)Og(m,_,m.memoizedProps,b);else{if(typeof b!="string"&&_.stateNode===null)throw Error(o(166));if(m=bo(ih.current),M=bo(va.current),pd(_)){if(!xe)throw Error(o(176));if(m=_.stateNode,b=_.memoizedProps,(M=V(m,b,_,!dd))&&(D=Xi,D!==null))switch(L=(D.mode&1)!==0,D.tag){case 3:Ae(D.stateNode.containerInfo,m,b,L);break;case 5:Te(D.type,D.memoizedProps,D.stateNode,m,b,L)}M&&Co(_)}else _.stateNode=ve(b,m,M,_)}return Yr(_),null;case 13:if(ct(qn),b=_.memoizedState,Xn&&Yi!==null&&_.mode&1&&!(_.flags&128)){for(m=Yi;m;)m=Ii(m);return nh(),_.flags|=98560,_}if(b!==null&&b.dehydrated!==null){if(b=pd(_),m===null){if(!b)throw Error(o(318));if(!xe)throw Error(o(344));if(m=_.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(o(317));oe(m,_)}else nh(),!(_.flags&128)&&(_.memoizedState=null),_.flags|=4;return Yr(_),null}return Ya!==null&&(XS(Ya),Ya=null),_.flags&128?(_.lanes=M,_):(b=b!==null,M=!1,m===null?pd(_):M=m.memoizedState!==null,b&&!M&&(_.child.flags|=8192,_.mode&1&&(m===null||qn.current&1?Ar===0&&(Ar=3):JS())),_.updateQueue!==null&&(_.flags|=4),Yr(_),null);case 4:return ah(),Md(m,_),m===null&&Pe(_.stateNode.containerInfo),Yr(_),null;case 10:return rS(_.type._context),Yr(_),null;case 17:return Wn(_.type)&&vn(),Yr(_),null;case 19:if(ct(qn),D=_.memoizedState,D===null)return Yr(_),null;if(b=(_.flags&128)!==0,L=D.rendering,L===null)if(b)wd(D,!1);else{if(Ar!==0||m!==null&&m.flags&128)for(m=_.child;m!==null;){if(L=Tg(m),L!==null){for(_.flags|=128,wd(D,!1),m=L.updateQueue,m!==null&&(_.updateQueue=m,_.flags|=4),_.subtreeFlags=0,m=M,b=_.child;b!==null;)M=b,D=m,M.flags&=14680066,L=M.alternate,L===null?(M.childLanes=0,M.lanes=D,M.child=null,M.subtreeFlags=0,M.memoizedProps=null,M.memoizedState=null,M.updateQueue=null,M.dependencies=null,M.stateNode=null):(M.childLanes=L.childLanes,M.lanes=L.lanes,M.child=L.child,M.subtreeFlags=0,M.deletions=null,M.memoizedProps=L.memoizedProps,M.memoizedState=L.memoizedState,M.updateQueue=L.updateQueue,M.type=L.type,D=L.dependencies,M.dependencies=D===null?null:{lanes:D.lanes,firstContext:D.firstContext}),b=b.sibling;return Ke(qn,qn.current&1|2),_.child}m=m.sibling}D.tail!==null&&Rr()>zS&&(_.flags|=128,b=!0,wd(D,!1),_.lanes=4194304)}else{if(!b)if(m=Tg(L),m!==null){if(_.flags|=128,b=!0,m=m.updateQueue,m!==null&&(_.updateQueue=m,_.flags|=4),wd(D,!0),D.tail===null&&D.tailMode==="hidden"&&!L.alternate&&!Xn)return Yr(_),null}else 2*Rr()-D.renderingStartTime>zS&&M!==1073741824&&(_.flags|=128,b=!0,wd(D,!1),_.lanes=4194304);D.isBackwards?(L.sibling=_.child,_.child=L):(m=D.last,m!==null?m.sibling=L:_.child=L,D.last=L)}return D.tail!==null?(_=D.tail,D.rendering=_,D.tail=_.sibling,D.renderingStartTime=Rr(),_.sibling=null,m=qn.current,Ke(qn,b?m&1|2:m&1),_):(Yr(_),null);case 22:case 23:return YS(),b=_.memoizedState!==null,m!==null&&m.memoizedState!==null!==b&&(_.flags|=8192),b&&_.mode&1?Zi&1073741824&&(Yr(_),Ie&&_.subtreeFlags&6&&(_.flags|=8192)):Yr(_),null;case 24:return null;case 25:return null}throw Error(o(156,_.tag))}var sW=s.ReactCurrentOwner,Ji=!1;function hi(m,_,M,b){_.child=m===null?NR(_,null,M,b):rh(_,m.child,M,b)}function u2(m,_,M,b,D){M=M.render;var L=_.ref;return $c(_,D),b=yS(m,_,M,b,L,D),M=_S(),m!==null&&!Ji?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~D,ds(m,_,D)):(Xn&&M&&lS(_),_.flags|=1,hi(m,_,b,D),_.child)}function c2(m,_,M,b,D){if(m===null){var L=M.type;return typeof L=="function"&&!ZS(L)&&L.defaultProps===void 0&&M.compare===null&&M.defaultProps===void 0?(_.tag=15,_.type=L,h2(m,_,L,b,D)):(m=nm(M.type,null,b,_,_.mode,D),m.ref=_.ref,m.return=_,_.child=m)}if(L=m.child,!(m.lanes&D)){var Q=L.memoizedProps;if(M=M.compare,M=M!==null?M:mg,M(Q,b)&&m.ref===_.ref)return ds(m,_,D)}return _.flags|=1,m=el(L,b),m.ref=_.ref,m.return=_,_.child=m}function h2(m,_,M,b,D){if(m!==null&&mg(m.memoizedProps,b)&&m.ref===_.ref)if(Ji=!1,(m.lanes&D)!==0)m.flags&131072&&(Ji=!0);else return _.lanes=m.lanes,ds(m,_,D);return bS(m,_,M,b,D)}function f2(m,_,M){var b=_.pendingProps,D=b.children,L=m!==null?m.memoizedState:null;if(b.mode==="hidden")if(!(_.mode&1))_.memoizedState={baseLanes:0,cachePool:null},Ke(sh,Zi),Zi|=M;else if(M&1073741824)_.memoizedState={baseLanes:0,cachePool:null},b=L!==null?L.baseLanes:M,Ke(sh,Zi),Zi|=b;else return m=L!==null?L.baseLanes|M:M,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:m,cachePool:null},_.updateQueue=null,Ke(sh,Zi),Zi|=m,null;else L!==null?(b=L.baseLanes|M,_.memoizedState=null):b=M,Ke(sh,Zi),Zi|=b;return hi(m,_,D,M),_.child}function d2(m,_){var M=_.ref;(m===null&&M!==null||m!==null&&m.ref!==M)&&(_.flags|=512,_.flags|=2097152)}function bS(m,_,M,b,D){var L=Wn(M)?Rn:It.current;return L=tr(_,L),$c(_,D),M=yS(m,_,M,b,L,D),b=_S(),m!==null&&!Ji?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~D,ds(m,_,D)):(Xn&&b&&lS(_),_.flags|=1,hi(m,_,M,D),_.child)}function p2(m,_,M,b,D){if(Wn(M)){var L=!0;Zt(_)}else L=!1;if($c(_,D),_.stateNode===null)m!==null&&(m.alternate=null,_.alternate=null,_.flags|=2),ER(_,M,b),sS(_,M,b,D),b=!0;else if(m===null){var Q=_.stateNode,ue=_.memoizedProps;Q.props=ue;var Ce=Q.context,We=M.contextType;typeof We=="object"&&We!==null?We=fa(We):(We=Wn(M)?Rn:It.current,We=tr(_,We));var vt=M.getDerivedStateFromProps,Vt=typeof vt=="function"||typeof Q.getSnapshotBeforeUpdate=="function";Vt||typeof Q.UNSAFE_componentWillReceiveProps!="function"&&typeof Q.componentWillReceiveProps!="function"||(ue!==b||Ce!==We)&&RR(_,Q,b,We),Zs=!1;var Pt=_.memoizedState;Q.state=Pt,Sg(_,b,Q,D),Ce=_.memoizedState,ue!==b||Pt!==Ce||Bt.current||Zs?(typeof vt=="function"&&(oS(_,M,vt,b),Ce=_.memoizedState),(ue=Zs||CR(_,M,ue,b,Pt,Ce,We))?(Vt||typeof Q.UNSAFE_componentWillMount!="function"&&typeof Q.componentWillMount!="function"||(typeof Q.componentWillMount=="function"&&Q.componentWillMount(),typeof Q.UNSAFE_componentWillMount=="function"&&Q.UNSAFE_componentWillMount()),typeof Q.componentDidMount=="function"&&(_.flags|=4194308)):(typeof Q.componentDidMount=="function"&&(_.flags|=4194308),_.memoizedProps=b,_.memoizedState=Ce),Q.props=b,Q.state=Ce,Q.context=We,b=ue):(typeof Q.componentDidMount=="function"&&(_.flags|=4194308),b=!1)}else{Q=_.stateNode,MR(m,_),ue=_.memoizedProps,We=_.type===_.elementType?ue:Xa(_.type,ue),Q.props=We,Vt=_.pendingProps,Pt=Q.context,Ce=M.contextType,typeof Ce=="object"&&Ce!==null?Ce=fa(Ce):(Ce=Wn(M)?Rn:It.current,Ce=tr(_,Ce));var Ln=M.getDerivedStateFromProps;(vt=typeof Ln=="function"||typeof Q.getSnapshotBeforeUpdate=="function")||typeof Q.UNSAFE_componentWillReceiveProps!="function"&&typeof Q.componentWillReceiveProps!="function"||(ue!==Vt||Pt!==Ce)&&RR(_,Q,b,Ce),Zs=!1,Pt=_.memoizedState,Q.state=Pt,Sg(_,b,Q,D);var Mt=_.memoizedState;ue!==Vt||Pt!==Mt||Bt.current||Zs?(typeof Ln=="function"&&(oS(_,M,Ln,b),Mt=_.memoizedState),(We=Zs||CR(_,M,We,b,Pt,Mt,Ce)||!1)?(vt||typeof Q.UNSAFE_componentWillUpdate!="function"&&typeof Q.componentWillUpdate!="function"||(typeof Q.componentWillUpdate=="function"&&Q.componentWillUpdate(b,Mt,Ce),typeof Q.UNSAFE_componentWillUpdate=="function"&&Q.UNSAFE_componentWillUpdate(b,Mt,Ce)),typeof Q.componentDidUpdate=="function"&&(_.flags|=4),typeof Q.getSnapshotBeforeUpdate=="function"&&(_.flags|=1024)):(typeof Q.componentDidUpdate!="function"||ue===m.memoizedProps&&Pt===m.memoizedState||(_.flags|=4),typeof Q.getSnapshotBeforeUpdate!="function"||ue===m.memoizedProps&&Pt===m.memoizedState||(_.flags|=1024),_.memoizedProps=b,_.memoizedState=Mt),Q.props=b,Q.state=Mt,Q.context=Ce,b=We):(typeof Q.componentDidUpdate!="function"||ue===m.memoizedProps&&Pt===m.memoizedState||(_.flags|=4),typeof Q.getSnapshotBeforeUpdate!="function"||ue===m.memoizedProps&&Pt===m.memoizedState||(_.flags|=1024),b=!1)}return TS(m,_,M,b,L,D)}function TS(m,_,M,b,D,L){d2(m,_);var Q=(_.flags&128)!==0;if(!b&&!Q)return D&&fn(_,M,!1),ds(m,_,L);b=_.stateNode,sW.current=_;var ue=Q&&typeof M.getDerivedStateFromError!="function"?null:b.render();return _.flags|=1,m!==null&&Q?(_.child=rh(_,m.child,null,L),_.child=rh(_,null,ue,L)):hi(m,_,ue,L),_.memoizedState=b.state,D&&fn(_,M,!0),_.child}function v2(m){var _=m.stateNode;_.pendingContext?cn(m,_.pendingContext,_.pendingContext!==_.context):_.context&&cn(m,_.context,!1),dS(m,_.containerInfo)}function g2(m,_,M,b,D){return nh(),fS(D),_.flags|=256,hi(m,_,M,b),_.child}var Ng={dehydrated:null,treeContext:null,retryLane:0};function Fg(m){return{baseLanes:m,cachePool:null}}function m2(m,_,M){var b=_.pendingProps,D=qn.current,L=!1,Q=(_.flags&128)!==0,ue;if((ue=Q)||(ue=m!==null&&m.memoizedState===null?!1:(D&2)!==0),ue?(L=!0,_.flags&=-129):(m===null||m.memoizedState!==null)&&(D|=1),Ke(qn,D&1),m===null)return hS(_),m=_.memoizedState,m!==null&&(m=m.dehydrated,m!==null)?(_.mode&1?ru(m)?_.lanes=8:_.lanes=1073741824:_.lanes=1,null):(D=b.children,m=b.fallback,L?(b=_.mode,L=_.child,D={mode:"hidden",children:D},!(b&1)&&L!==null?(L.childLanes=0,L.pendingProps=D):L=rm(D,b,0,null),m=du(m,b,M,null),L.return=_,m.return=_,L.sibling=m,_.child=L,_.child.memoizedState=Fg(M),_.memoizedState=Ng,m):CS(_,D));if(D=m.memoizedState,D!==null){if(ue=D.dehydrated,ue!==null){if(Q)return _.flags&256?(_.flags&=-257,kg(m,_,M,Error(o(422)))):_.memoizedState!==null?(_.child=m.child,_.flags|=128,null):(L=b.fallback,D=_.mode,b=rm({mode:"visible",children:b.children},D,0,null),L=du(L,D,M,null),L.flags|=2,b.return=_,L.return=_,b.sibling=L,_.child=b,_.mode&1&&rh(_,m.child,null,M),_.child.memoizedState=Fg(M),_.memoizedState=Ng,L);if(!(_.mode&1))_=kg(m,_,M,null);else if(ru(ue))_=kg(m,_,M,Error(o(419)));else if(b=(M&m.childLanes)!==0,Ji||b){if(b=vr,b!==null){switch(M&-M){case 4:L=2;break;case 16:L=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:L=32;break;case 536870912:L=268435456;break;default:L=0}b=L&(b.suspendedLanes|M)?0:L,b!==0&&b!==D.retryLane&&(D.retryLane=b,ma(m,b,-1))}JS(),_=kg(m,_,M,Error(o(421)))}else _o(ue)?(_.flags|=128,_.child=m.child,_=xW.bind(null,m),ca(ue,_),_=null):(M=D.treeContext,xe&&(Yi=qc(ue),Xi=_,Xn=!0,Ya=null,dd=!1,M!==null&&(da[pa++]=cs,da[pa++]=hs,da[pa++]=au,cs=M.id,hs=M.overflow,au=_)),_=CS(_,_.pendingProps.children),_.flags|=4096);return _}return L?(b=_2(m,_,b.children,b.fallback,M),L=_.child,D=m.child.memoizedState,L.memoizedState=D===null?Fg(M):{baseLanes:D.baseLanes|M,cachePool:null},L.childLanes=m.childLanes&~M,_.memoizedState=Ng,b):(M=y2(m,_,b.children,M),_.memoizedState=null,M)}return L?(b=_2(m,_,b.children,b.fallback,M),L=_.child,D=m.child.memoizedState,L.memoizedState=D===null?Fg(M):{baseLanes:D.baseLanes|M,cachePool:null},L.childLanes=m.childLanes&~M,_.memoizedState=Ng,b):(M=y2(m,_,b.children,M),_.memoizedState=null,M)}function CS(m,_){return _=rm({mode:"visible",children:_},m.mode,0,null),_.return=m,m.child=_}function y2(m,_,M,b){var D=m.child;return m=D.sibling,M=el(D,{mode:"visible",children:M}),!(_.mode&1)&&(M.lanes=b),M.return=_,M.sibling=null,m!==null&&(b=_.deletions,b===null?(_.deletions=[m],_.flags|=16):b.push(m)),_.child=M}function _2(m,_,M,b,D){var L=_.mode;m=m.child;var Q=m.sibling,ue={mode:"hidden",children:M};return!(L&1)&&_.child!==m?(M=_.child,M.childLanes=0,M.pendingProps=ue,_.deletions=null):(M=el(m,ue),M.subtreeFlags=m.subtreeFlags&14680064),Q!==null?b=el(Q,b):(b=du(b,L,D,null),b.flags|=2),b.return=_,M.return=_,M.sibling=b,_.child=M,b}function kg(m,_,M,b){return b!==null&&fS(b),rh(_,m.child,null,M),m=CS(_,_.pendingProps.children),m.flags|=2,_.memoizedState=null,m}function x2(m,_,M){m.lanes|=_;var b=m.alternate;b!==null&&(b.lanes|=_),iS(m.return,_,M)}function ES(m,_,M,b,D){var L=m.memoizedState;L===null?m.memoizedState={isBackwards:_,rendering:null,renderingStartTime:0,last:b,tail:M,tailMode:D}:(L.isBackwards=_,L.rendering=null,L.renderingStartTime=0,L.last=b,L.tail=M,L.tailMode=D)}function S2(m,_,M){var b=_.pendingProps,D=b.revealOrder,L=b.tail;if(hi(m,_,b.children,M),b=qn.current,b&2)b=b&1|2,_.flags|=128;else{if(m!==null&&m.flags&128)e:for(m=_.child;m!==null;){if(m.tag===13)m.memoizedState!==null&&x2(m,M,_);else if(m.tag===19)x2(m,M,_);else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===_)break e;for(;m.sibling===null;){if(m.return===null||m.return===_)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}b&=1}if(Ke(qn,b),!(_.mode&1))_.memoizedState=null;else switch(D){case"forwards":for(M=_.child,D=null;M!==null;)m=M.alternate,m!==null&&Tg(m)===null&&(D=M),M=M.sibling;M=D,M===null?(D=_.child,_.child=null):(D=M.sibling,M.sibling=null),ES(_,!1,D,M,L);break;case"backwards":for(M=null,D=_.child,_.child=null;D!==null;){if(m=D.alternate,m!==null&&Tg(m)===null){_.child=D;break}m=D.sibling,D.sibling=M,M=D,D=m}ES(_,!0,M,null,L);break;case"together":ES(_,!1,null,null,void 0);break;default:_.memoizedState=null}return _.child}function ds(m,_,M){if(m!==null&&(_.dependencies=m.dependencies),lh|=_.lanes,!(M&_.childLanes))return null;if(m!==null&&_.child!==m.child)throw Error(o(153));if(_.child!==null){for(m=_.child,M=el(m,m.pendingProps),_.child=M,M.return=_;m.sibling!==null;)m=m.sibling,M=M.sibling=el(m,m.pendingProps),M.return=_;M.sibling=null}return _.child}function lW(m,_,M){switch(_.tag){case 3:v2(_),nh();break;case 5:FR(_);break;case 1:Wn(_.type)&&Zt(_);break;case 4:dS(_,_.stateNode.containerInfo);break;case 10:AR(_,_.type._context,_.memoizedProps.value);break;case 13:var b=_.memoizedState;if(b!==null)return b.dehydrated!==null?(Ke(qn,qn.current&1),_.flags|=128,null):M&_.child.childLanes?m2(m,_,M):(Ke(qn,qn.current&1),m=ds(m,_,M),m!==null?m.sibling:null);Ke(qn,qn.current&1);break;case 19:if(b=(M&_.childLanes)!==0,m.flags&128){if(b)return S2(m,_,M);_.flags|=128}var D=_.memoizedState;if(D!==null&&(D.rendering=null,D.tail=null,D.lastEffect=null),Ke(qn,qn.current),b)break;return null;case 22:case 23:return _.lanes=0,f2(m,_,M)}return ds(m,_,M)}function uW(m,_){switch(uS(_),_.tag){case 1:return Wn(_.type)&&vn(),m=_.flags,m&65536?(_.flags=m&-65537|128,_):null;case 3:return ah(),ct(Bt),ct(It),gS(),m=_.flags,m&65536&&!(m&128)?(_.flags=m&-65537|128,_):null;case 5:return pS(_),null;case 13:if(ct(qn),m=_.memoizedState,m!==null&&m.dehydrated!==null){if(_.alternate===null)throw Error(o(340));nh()}return m=_.flags,m&65536?(_.flags=m&-65537|128,_):null;case 19:return ct(qn),null;case 4:return ah(),null;case 10:return rS(_.type._context),null;case 22:case 23:return YS(),null;case 24:return null;default:return null}}var Ug=!1,lu=!1,cW=typeof WeakSet=="function"?WeakSet:Set,rt=null;function Gg(m,_){var M=m.ref;if(M!==null)if(typeof M=="function")try{M(null)}catch(b){Oi(m,_,b)}else M.current=null}function RS(m,_,M){try{M()}catch(b){Oi(m,_,b)}}var A2=!1;function hW(m,_){for(j(m.containerInfo),rt=_;rt!==null;)if(m=rt,_=m.child,(m.subtreeFlags&1028)!==0&&_!==null)_.return=m,rt=_;else for(;rt!==null;){m=rt;try{var M=m.alternate;if(m.flags&1024)switch(m.tag){case 0:case 11:case 15:break;case 1:if(M!==null){var b=M.memoizedProps,D=M.memoizedState,L=m.stateNode,Q=L.getSnapshotBeforeUpdate(m.elementType===m.type?b:Xa(m.type,b),D);L.__reactInternalSnapshotBeforeUpdate=Q}break;case 3:Ie&&Xe(m.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(ue){Oi(m,m.return,ue)}if(_=m.sibling,_!==null){_.return=m.return,rt=_;break}rt=m.return}return M=A2,A2=!1,M}function uu(m,_,M){var b=_.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var D=b=b.next;do{if((D.tag&m)===m){var L=D.destroy;D.destroy=void 0,L!==void 0&&RS(_,M,L)}D=D.next}while(D!==b)}}function bd(m,_){if(_=_.updateQueue,_=_!==null?_.lastEffect:null,_!==null){var M=_=_.next;do{if((M.tag&m)===m){var b=M.create;M.destroy=b()}M=M.next}while(M!==_)}}function PS(m){var _=m.ref;if(_!==null){var M=m.stateNode;switch(m.tag){case 5:m=X(M);break;default:m=M}typeof _=="function"?_(m):_.current=m}}function M2(m,_,M){if(So&&typeof So.onCommitFiberUnmount=="function")try{So.onCommitFiberUnmount(vg,_)}catch(Q){}switch(_.tag){case 0:case 11:case 14:case 15:if(m=_.updateQueue,m!==null&&(m=m.lastEffect,m!==null)){var b=m=m.next;do{var D=b,L=D.destroy;D=D.tag,L!==void 0&&(D&2||D&4)&&RS(_,M,L),b=b.next}while(b!==m)}break;case 1:if(Gg(_,M),m=_.stateNode,typeof m.componentWillUnmount=="function")try{m.props=_.memoizedProps,m.state=_.memoizedState,m.componentWillUnmount()}catch(Q){Oi(_,M,Q)}break;case 5:Gg(_,M);break;case 4:Ie?R2(m,_,M):Z&&Z&&(_=_.stateNode.containerInfo,M=Et(_),hn(_,M))}}function w2(m,_,M){for(var b=_;;)if(M2(m,b,M),b.child===null||Ie&&b.tag===4){if(b===_)break;for(;b.sibling===null;){if(b.return===null||b.return===_)return;b=b.return}b.sibling.return=b.return,b=b.sibling}else b.child.return=b,b=b.child}function b2(m){var _=m.alternate;_!==null&&(m.alternate=null,b2(_)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(_=m.stateNode,_!==null&&et(_)),m.stateNode=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}function T2(m){return m.tag===5||m.tag===3||m.tag===4}function C2(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||T2(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function E2(m){if(Ie){e:{for(var _=m.return;_!==null;){if(T2(_))break e;_=_.return}throw Error(o(160))}var M=_;switch(M.tag){case 5:_=M.stateNode,M.flags&32&&(Ee(_),M.flags&=-33),M=C2(m),IS(m,M,_);break;case 3:case 4:_=M.stateNode.containerInfo,M=C2(m),DS(m,M,_);break;default:throw Error(o(161))}}}function DS(m,_,M){var b=m.tag;if(b===5||b===6)m=m.stateNode,_?st(M,m,_):xt(M,m);else if(b!==4&&(m=m.child,m!==null))for(DS(m,_,M),m=m.sibling;m!==null;)DS(m,_,M),m=m.sibling}function IS(m,_,M){var b=m.tag;if(b===5||b===6)m=m.stateNode,_?Ct(M,m,_):_t(M,m);else if(b!==4&&(m=m.child,m!==null))for(IS(m,_,M),m=m.sibling;m!==null;)IS(m,_,M),m=m.sibling}function R2(m,_,M){for(var b=_,D=!1,L,Q;;){if(!D){D=b.return;e:for(;;){if(D===null)throw Error(o(160));switch(L=D.stateNode,D.tag){case 5:Q=!1;break e;case 3:L=L.containerInfo,Q=!0;break e;case 4:L=L.containerInfo,Q=!0;break e}D=D.return}D=!0}if(b.tag===5||b.tag===6)w2(m,b,M),Q?ae(L,b.stateNode):lt(L,b.stateNode);else if(b.tag===18)Q?te(L,b.stateNode):re(L,b.stateNode);else if(b.tag===4){if(b.child!==null){L=b.stateNode.containerInfo,Q=!0,b.child.return=b,b=b.child;continue}}else if(M2(m,b,M),b.child!==null){b.child.return=b,b=b.child;continue}if(b===_)break;for(;b.sibling===null;){if(b.return===null||b.return===_)return;b=b.return,b.tag===4&&(D=!1)}b.sibling.return=b.return,b=b.sibling}}function LS(m,_){if(Ie){switch(_.tag){case 0:case 11:case 14:case 15:uu(3,_,_.return),bd(3,_),uu(5,_,_.return);return;case 1:return;case 5:var M=_.stateNode;if(M!=null){var b=_.memoizedProps;m=m!==null?m.memoizedProps:b;var D=_.type,L=_.updateQueue;_.updateQueue=null,L!==null&&Ht(M,L,D,m,b,_)}return;case 6:if(_.stateNode===null)throw Error(o(162));M=_.memoizedProps,Fe(_.stateNode,m!==null?m.memoizedProps:M,M);return;case 3:xe&&m!==null&&m.memoizedState.isDehydrated&&Y(_.stateNode.containerInfo);return;case 12:return;case 13:zg(_);return;case 19:zg(_);return;case 17:return}throw Error(o(163))}switch(_.tag){case 0:case 11:case 14:case 15:uu(3,_,_.return),bd(3,_),uu(5,_,_.return);return;case 12:return;case 13:zg(_);return;case 19:zg(_);return;case 3:xe&&m!==null&&m.memoizedState.isDehydrated&&Y(_.stateNode.containerInfo);break;case 22:case 23:return}e:if(Z){switch(_.tag){case 1:case 5:case 6:break e;case 3:case 4:_=_.stateNode,hn(_.containerInfo,_.pendingChildren);break e}throw Error(o(163))}}function zg(m){var _=m.updateQueue;if(_!==null){m.updateQueue=null;var M=m.stateNode;M===null&&(M=m.stateNode=new cW),_.forEach(function(b){var D=SW.bind(null,m,b);M.has(b)||(M.add(b),b.then(D,D))})}}function fW(m,_){for(rt=_;rt!==null;){_=rt;var M=_.deletions;if(M!==null)for(var b=0;b";case Vg:return":has("+(NS(m)||"")+")";case Wg:return'[role="'+m.value+'"]';case Yg:return'"'+m.value+'"';case Xg:return'[data-testname="'+m.value+'"]';default:throw Error(o(365))}}function B2(m,_){var M=[];m=[m,0];for(var b=0;bD&&(D=Q),b&=~L}if(b=D,b=Rr()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*pW(b/1960))-b,10m?16:m,qs===null)var b=!1;else{if(m=qs,qs=null,qg=0,rn&6)throw Error(o(331));var D=rn;for(rn|=4,rt=m.current;rt!==null;){var L=rt,Q=L.child;if(rt.flags&16){var ue=L.deletions;if(ue!==null){for(var Ce=0;CeRr()-GS?cu(m,0):US|=M),Bi(m,_)}function V2(m,_){_===0&&(m.mode&1?(_=dg,dg<<=1,!(dg&130023424)&&(dg=4194304)):_=1);var M=fi();m=em(m,_),m!==null&&(fd(m,_,M),Bi(m,M))}function xW(m){var _=m.memoizedState,M=0;_!==null&&(M=_.retryLane),V2(m,M)}function SW(m,_){var M=0;switch(m.tag){case 13:var b=m.stateNode,D=m.memoizedState;D!==null&&(M=D.retryLane);break;case 19:b=m.stateNode;break;default:throw Error(o(314))}b!==null&&b.delete(_),V2(m,M)}var W2;W2=function(m,_,M){if(m!==null)if(m.memoizedProps!==_.pendingProps||Bt.current)Ji=!0;else{if(!(m.lanes&M)&&!(_.flags&128))return Ji=!1,lW(m,_,M);Ji=!!(m.flags&131072)}else Ji=!1,Xn&&_.flags&1048576&&PR(_,wg,_.index);switch(_.lanes=0,_.tag){case 2:var b=_.type;m!==null&&(m.alternate=null,_.alternate=null,_.flags|=2),m=_.pendingProps;var D=tr(_,It.current);$c(_,M),D=yS(null,_,b,m,D,M);var L=_S();return _.flags|=1,typeof D=="object"&&D!==null&&typeof D.render=="function"&&D.$$typeof===void 0?(_.tag=1,_.memoizedState=null,_.updateQueue=null,Wn(b)?(L=!0,Zt(_)):L=!1,_.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,aS(_),D.updater=Ag,_.stateNode=D,D._reactInternals=_,sS(_,b,m,M),_=TS(null,_,b,!0,L,M)):(_.tag=0,Xn&&L&&lS(_),hi(null,_,D,M),_=_.child),_;case 16:b=_.elementType;e:{switch(m!==null&&(m.alternate=null,_.alternate=null,_.flags|=2),m=_.pendingProps,D=b._init,b=D(b._payload),_.type=b,D=_.tag=MW(b),m=Xa(b,m),D){case 0:_=bS(null,_,b,m,M);break e;case 1:_=p2(null,_,b,m,M);break e;case 11:_=u2(null,_,b,m,M);break e;case 14:_=c2(null,_,b,Xa(b.type,m),M);break e}throw Error(o(306,b,""))}return _;case 0:return b=_.type,D=_.pendingProps,D=_.elementType===b?D:Xa(b,D),bS(m,_,b,D,M);case 1:return b=_.type,D=_.pendingProps,D=_.elementType===b?D:Xa(b,D),p2(m,_,b,D,M);case 3:e:{if(v2(_),m===null)throw Error(o(387));b=_.pendingProps,L=_.memoizedState,D=L.element,MR(m,_),Sg(_,b,null,M);var Q=_.memoizedState;if(b=Q.element,xe&&L.isDehydrated)if(L={element:b,isDehydrated:!1,cache:Q.cache,transitions:Q.transitions},_.updateQueue.baseState=L,_.memoizedState=L,_.flags&256){D=Error(o(423)),_=g2(m,_,b,M,D);break e}else if(b!==D){D=Error(o(424)),_=g2(m,_,b,M,D);break e}else for(xe&&(Yi=iu(_.stateNode.containerInfo),Xi=_,Xn=!0,Ya=null,dd=!1),M=NR(_,null,b,M),_.child=M;M;)M.flags=M.flags&-3|4096,M=M.sibling;else{if(nh(),b===D){_=ds(m,_,M);break e}hi(m,_,b,M)}_=_.child}return _;case 5:return FR(_),m===null&&hS(_),b=_.type,D=_.pendingProps,L=m!==null?m.memoizedProps:null,Q=D.children,Se(b,D)?Q=null:L!==null&&Se(b,L)&&(_.flags|=32),d2(m,_),hi(m,_,Q,M),_.child;case 6:return m===null&&hS(_),null;case 13:return m2(m,_,M);case 4:return dS(_,_.stateNode.containerInfo),b=_.pendingProps,m===null?_.child=rh(_,null,b,M):hi(m,_,b,M),_.child;case 11:return b=_.type,D=_.pendingProps,D=_.elementType===b?D:Xa(b,D),u2(m,_,b,D,M);case 7:return hi(m,_,_.pendingProps,M),_.child;case 8:return hi(m,_,_.pendingProps.children,M),_.child;case 12:return hi(m,_,_.pendingProps.children,M),_.child;case 10:e:{if(b=_.type._context,D=_.pendingProps,L=_.memoizedProps,Q=D.value,AR(_,b,Q),L!==null)if(Ao(L.value,Q)){if(L.children===D.children&&!Bt.current){_=ds(m,_,M);break e}}else for(L=_.child,L!==null&&(L.return=_);L!==null;){var ue=L.dependencies;if(ue!==null){Q=L.child;for(var Ce=ue.firstContext;Ce!==null;){if(Ce.context===b){if(L.tag===1){Ce=us(-1,M&-M),Ce.tag=2;var We=L.updateQueue;if(We!==null){We=We.shared;var vt=We.pending;vt===null?Ce.next=Ce:(Ce.next=vt.next,vt.next=Ce),We.pending=Ce}}L.lanes|=M,Ce=L.alternate,Ce!==null&&(Ce.lanes|=M),iS(L.return,M,_),ue.lanes|=M;break}Ce=Ce.next}}else if(L.tag===10)Q=L.type===_.type?null:L.child;else if(L.tag===18){if(Q=L.return,Q===null)throw Error(o(341));Q.lanes|=M,ue=Q.alternate,ue!==null&&(ue.lanes|=M),iS(Q,M,_),Q=L.sibling}else Q=L.child;if(Q!==null)Q.return=L;else for(Q=L;Q!==null;){if(Q===_){Q=null;break}if(L=Q.sibling,L!==null){L.return=Q.return,Q=L;break}Q=Q.return}L=Q}hi(m,_,D.children,M),_=_.child}return _;case 9:return D=_.type,b=_.pendingProps.children,$c(_,M),D=fa(D),b=b(D),_.flags|=1,hi(m,_,b,M),_.child;case 14:return b=_.type,D=Xa(b,_.pendingProps),D=Xa(b.type,D),c2(m,_,b,D,M);case 15:return h2(m,_,_.type,_.pendingProps,M);case 17:return b=_.type,D=_.pendingProps,D=_.elementType===b?D:Xa(b,D),m!==null&&(m.alternate=null,_.alternate=null,_.flags|=2),_.tag=1,Wn(b)?(m=!0,Zt(_)):m=!1,$c(_,M),ER(_,b,D),sS(_,b,D,M),TS(null,_,b,!0,m,M);case 19:return S2(m,_,M);case 22:return f2(m,_,M)}throw Error(o(156,_.tag))};function X2(m,_){return qx(m,_)}function AW(m,_,M,b){this.tag=m,this.key=M,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=_,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ya(m,_,M,b){return new AW(m,_,M,b)}function ZS(m){return m=m.prototype,!(!m||!m.isReactComponent)}function MW(m){if(typeof m=="function")return ZS(m)?1:0;if(m!=null){if(m=m.$$typeof,m===y)return 11;if(m===x)return 14}return 2}function el(m,_){var M=m.alternate;return M===null?(M=ya(m.tag,_,m.key,m.mode),M.elementType=m.elementType,M.type=m.type,M.stateNode=m.stateNode,M.alternate=m,m.alternate=M):(M.pendingProps=_,M.type=m.type,M.flags=0,M.subtreeFlags=0,M.deletions=null),M.flags=m.flags&14680064,M.childLanes=m.childLanes,M.lanes=m.lanes,M.child=m.child,M.memoizedProps=m.memoizedProps,M.memoizedState=m.memoizedState,M.updateQueue=m.updateQueue,_=m.dependencies,M.dependencies=_===null?null:{lanes:_.lanes,firstContext:_.firstContext},M.sibling=m.sibling,M.index=m.index,M.ref=m.ref,M}function nm(m,_,M,b,D,L){var Q=2;if(b=m,typeof m=="function")ZS(m)&&(Q=1);else if(typeof m=="string")Q=5;else e:switch(m){case c:return du(M.children,D,L,_);case h:Q=8,D|=8;break;case f:return m=ya(12,M,_,D|2),m.elementType=f,m.lanes=L,m;case g:return m=ya(13,M,_,D),m.elementType=g,m.lanes=L,m;case v:return m=ya(19,M,_,D),m.elementType=v,m.lanes=L,m;case A:return rm(M,D,L,_);default:if(typeof m=="object"&&m!==null)switch(m.$$typeof){case d:Q=10;break e;case p:Q=9;break e;case y:Q=11;break e;case x:Q=14;break e;case S:Q=16,b=null;break e}throw Error(o(130,m==null?m:typeof m,""))}return _=ya(Q,M,_,D),_.elementType=m,_.type=b,_.lanes=L,_}function du(m,_,M,b){return m=ya(7,m,b,_),m.lanes=M,m}function rm(m,_,M,b){return m=ya(22,m,b,_),m.elementType=A,m.lanes=M,m.stateNode={},m}function jS(m,_,M){return m=ya(6,m,null,_),m.lanes=M,m}function KS(m,_,M){return _=ya(4,m.children!==null?m.children:[],m.key,_),_.lanes=M,_.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},_}function wW(m,_,M,b,D){this.tag=_,this.containerInfo=m,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=tt,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jx(0),this.expirationTimes=jx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jx(0),this.identifierPrefix=b,this.onRecoverableError=D,xe&&(this.mutableSourceEagerHydrationData=null)}function Y2(m,_,M,b,D,L,Q,ue,Ce){return m=new wW(m,_,M,ue,Ce),_===1?(_=1,L===!0&&(_|=8)):_=0,L=ya(3,null,null,_),m.current=L,L.stateNode=m,L.memoizedState={element:b,isDehydrated:M,cache:null,transitions:null},aS(L),m}function J2(m){if(!m)return nn;m=m._reactInternals;e:{if(E(m)!==m||m.tag!==1)throw Error(o(170));var _=m;do{switch(_.tag){case 3:_=_.stateNode.context;break e;case 1:if(Wn(_.type)){_=_.stateNode.__reactInternalMemoizedMergedChildContext;break e}}_=_.return}while(_!==null);throw Error(o(171))}if(m.tag===1){var M=m.type;if(Wn(M))return Kn(m,M,_)}return _}function Z2(m){var _=m._reactInternals;if(_===void 0)throw typeof m.render=="function"?Error(o(188)):(m=Object.keys(m).join(","),Error(o(268,m)));return m=O(_),m===null?null:m.stateNode}function j2(m,_){if(m=m.memoizedState,m!==null&&m.dehydrated!==null){var M=m.retryLane;m.retryLane=M!==0&&M<_?M:_}}function qS(m,_){j2(m,_),(m=m.alternate)&&j2(m,_)}function bW(m){return m=O(m),m===null?null:m.stateNode}function TW(){return null}return t.attemptContinuousHydration=function(m){if(m.tag===13){var _=fi();ma(m,134217728,_),qS(m,134217728)}},t.attemptHydrationAtCurrentPriority=function(m){if(m.tag===13){var _=fi(),M=Qs(m);ma(m,M,_),qS(m,M)}},t.attemptSynchronousHydration=function(m){switch(m.tag){case 3:var _=m.stateNode;if(_.current.memoizedState.isDehydrated){var M=hd(_.pendingLanes);M!==0&&(Kx(_,M|1),Bi(_,Rr()),!(rn&6)&&(uh(),Mo()))}break;case 13:var b=fi();F2(function(){return ma(m,1,b)}),qS(m,1)}},t.batchedUpdates=function(m,_){var M=rn;rn|=1;try{return m(_)}finally{rn=M,rn===0&&(uh(),gg&&Mo())}},t.createComponentSelector=function(m){return{$$typeof:Hg,value:m}},t.createContainer=function(m,_,M,b,D,L,Q){return Y2(m,_,!1,null,M,b,D,L,Q)},t.createHasPseudoClassSelector=function(m){return{$$typeof:Vg,value:m}},t.createHydrationContainer=function(m,_,M,b,D,L,Q,ue,Ce){return m=Y2(M,b,!0,m,D,L,Q,ue,Ce),m.context=J2(null),M=m.current,b=fi(),D=Qs(M),L=us(b,D),L.callback=_!=null?_:null,js(M,L),m.current.lanes=D,fd(m,D,b),Bi(m,b),m},t.createPortal=function(m,_,M){var b=3=We&&L>=Vt&&D<=vt&&Q<=Pt){m.splice(_,1);break}else if(b!==We||M.width!==Ce.width||PtQ){if(!(L!==Vt||M.height!==Ce.height||vtD)){We>b&&(Ce.width+=We-b,Ce.x=b),vtL&&(Ce.height+=Vt-L,Ce.y=L),PtM&&(M=Q)),Q<_.length))for(L=L.child;L!==null;)m.push(L,Q),L=L.sibling}if(M<_.length){for(m=[];M<_.length;M++)m.push(NS(_[M]));return`findAllNodes was able to match part of the selector: + `+(b.join(" > ")+` No matching component was found for: - `)+m.join(" > ")}return null},t.getPublicRootInstance=function(m){if(m=m.current,!m.child)return null;switch(m.child.tag){case 5:return X(m.child.stateNode);default:return m.child.stateNode}},t.injectIntoDevTools=function(m){if(m={bundleType:m.bundleType,version:m.version,rendererPackageName:m.rendererPackageName,rendererConfig:m.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:y8,findFiberByHostInstance:m.findFiberByHostInstance||_8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")m=!1;else{var _=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(_.isDisabled||!_.supportsFiber)m=!0;else{try{Ig=_.inject(m),Ao=_}catch(M){}m=!!_.checkDCE}}return m},t.isAlreadyRendering=function(){return!1},t.observeVisibleRects=function(m,_,M,T){if(!G)throw Error(o(363));m=l1(m,_);var I=rt(m,M,T).disconnect;return{disconnect:function(){I()}}},t.registerMutableSourceForHydration=function(m,_){var M=_._getVersion;M=M(_._source),m.mutableSourceEagerHydrationData==null?m.mutableSourceEagerHydrationData=[_,M]:m.mutableSourceEagerHydrationData.push(_,M)},t.runWithPriority=function(m,_){var M=An;try{return An=m,_()}finally{An=M}},t.shouldError=function(){return null},t.shouldSuspend=function(){return!1},t.updateContainer=function(m,_,M,T){var I=_.current,L=pi(),$=tl(I);return M=AP(M),_.context===null?_.context=M:_.pendingContext=M,_=cs(L,$),_.payload={element:m},T=T===void 0?null:T,T!==null&&(_.callback=T),$s(I,_),m=ya(I,$,L),m!==null&&Ng(m,I,$),$},t};HU.exports=XK;var YK=HU.exports;const jK=T3(YK),JK=n=>typeof n=="object"&&typeof n.then=="function",_c=[];function XU(n,e,t=(r,i)=>r===i){if(n===e)return!0;if(!n||!e)return!1;const r=n.length;if(e.length!==r)return!1;for(let i=0;i0&&(a.timeout&&clearTimeout(a.timeout),a.timeout=setTimeout(a.remove,r.lifespan)),a.response;if(!t)throw a.promise}const i={keys:e,equal:r.equal,remove:()=>{const a=_c.indexOf(i);a!==-1&&_c.splice(a,1)},promise:(JK(n)?n:n(...e)).then(a=>{i.response=a,r.lifespan&&r.lifespan>0&&(i.timeout=setTimeout(i.remove,r.lifespan))}).catch(a=>i.error=a)};if(_c.push(i),!t)throw i.promise}const ZK=(n,e,t)=>YU(n,e,!1,t),KK=(n,e,t)=>void YU(n,e,!0,t),qK=n=>{if(n===void 0||n.length===0)_c.splice(0,_c.length);else{const e=_c.find(t=>XU(n,t.keys,t.equal));e&&e.remove()}},OC={},jU=n=>void Object.assign(OC,n);function $K(n,e){function t(c,y,p){var g=y,{args:h=[],attach:f}=g,d=vi(g,["args","attach"]);let v=`${c[0].toUpperCase()}${c.slice(1)}`,x;if(c==="primitive"){if(d.object===void 0)throw new Error("R3F: Primitives without 'object' are invalid!");const S=d.object;x=sf(S,{type:c,root:p,attach:f,primitive:!0})}else{const S=OC[v];if(!S)throw new Error(`R3F: ${v} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);if(!Array.isArray(h))throw new Error("R3F: The args prop must be an array!");x=sf(new S(...h),{type:c,root:p,attach:f,memoizedProps:{args:h}})}return x.__r3f.attach===void 0&&(x instanceof Jt?x.__r3f.attach="geometry":x instanceof Ar&&(x.__r3f.attach="material")),v!=="inject"&&hA(x,d),x}function r(c,h){let f=!1;if(h){var d,p;(d=h.__r3f)!=null&&d.attach?cA(c,h,h.__r3f.attach):h.isObject3D&&c.isObject3D&&(c.add(h),f=!0),f||(p=c.__r3f)==null||p.objects.push(h),h.__r3f||sf(h,{}),h.__r3f.parent=c,hb(h),lf(h)}}function i(c,h,f){let d=!1;if(h){var p,y;if((p=h.__r3f)!=null&&p.attach)cA(c,h,h.__r3f.attach);else if(h.isObject3D&&c.isObject3D){h.parent=c,h.dispatchEvent({type:"added"});const g=c.children.filter(x=>x!==h),v=g.indexOf(f);c.children=[...g.slice(0,v),h,...g.slice(v)],d=!0}d||(y=c.__r3f)==null||y.objects.push(h),h.__r3f||sf(h,{}),h.__r3f.parent=c,hb(h),lf(h)}}function a(c,h,f=!1){c&&[...c].forEach(d=>o(h,d,f))}function o(c,h,f){if(h){var d,p,y;if(h.__r3f&&(h.__r3f.parent=null),(d=c.__r3f)!=null&&d.objects&&(c.__r3f.objects=c.__r3f.objects.filter(A=>A!==h)),(p=h.__r3f)!=null&&p.attach)yI(c,h,h.__r3f.attach);else if(h.isObject3D&&c.isObject3D){var g;c.remove(h),(g=h.__r3f)!=null&&g.root&&oq(P0(h),h)}const x=(y=h.__r3f)==null?void 0:y.primitive,S=!x&&(f===void 0?h.dispose!==null:f);if(!x){var v;a((v=h.__r3f)==null?void 0:v.objects,h,S),a(h.children,h,S)}if(delete h.__r3f,S&&h.dispose&&h.type!=="Scene"){const A=()=>{try{h.dispose()}catch(b){}};typeof IS_REACT_ACT_ENVIRONMENT=="undefined"?ub.unstable_scheduleCallback(ub.unstable_IdlePriority,A):A()}lf(c)}}function s(c,h,f,d){var p;const y=(p=c.__r3f)==null?void 0:p.parent;if(!y)return;const g=t(h,f,c.__r3f.root);if(c.children){for(const v of c.children)v.__r3f&&r(g,v);c.children=c.children.filter(v=>!v.__r3f)}c.__r3f.objects.forEach(v=>r(g,v)),c.__r3f.objects=[],c.__r3f.autoRemovedBeforeAppend||o(y,c),g.parent&&(g.__r3f.autoRemovedBeforeAppend=!0),r(y,g),g.raycast&&g.__r3f.eventCount&&P0(g).getState().internal.interaction.push(g),[d,d.alternate].forEach(v=>{v!==null&&(v.stateNode=g,v.ref&&(typeof v.ref=="function"?v.ref(g):v.ref.current=g))})}const l=()=>{};return{reconciler:jK({createInstance:t,removeChild:o,appendChild:r,appendInitialChild:r,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(c,h)=>{if(!h)return;const f=c.getState().scene;f.__r3f&&(f.__r3f.root=c,r(f,h))},removeChildFromContainer:(c,h)=>{h&&o(c.getState().scene,h)},insertInContainerBefore:(c,h,f)=>{if(!h||!f)return;const d=c.getState().scene;d.__r3f&&i(d,h,f)},getRootHostContext:()=>null,getChildHostContext:c=>c,finalizeInitialChildren(c){var h;return!!((h=c==null?void 0:c.__r3f)!=null?h:{}).handlers},prepareUpdate(c,h,f,d){var p;if(((p=c==null?void 0:c.__r3f)!=null?p:{}).primitive&&d.object&&d.object!==c)return[!0];{const g=d,{args:x=[],children:S}=g,A=vi(g,["args","children"]),v=f,{args:b=[],children:w}=v,C=vi(v,["args","children"]);if(!Array.isArray(x))throw new Error("R3F: the args prop must be an array!");if(x.some((E,R)=>E!==b[R]))return[!0];const P=eG(c,A,C,!0);return P.changes.length?[!1,P]:null}},commitUpdate(c,[h,f],d,p,y,g){h?s(c,d,y,g):hA(c,f)},commitMount(c,h,f,d){var p;const y=(p=c.__r3f)!=null?p:{};c.raycast&&y.handlers&&y.eventCount&&P0(c).getState().internal.interaction.push(c)},getPublicInstance:c=>c,prepareForCommit:()=>null,preparePortalMount:c=>sf(c.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(c){var h;const{attach:f,parent:d}=(h=c.__r3f)!=null?h:{};f&&d&&yI(d,c,f),c.isObject3D&&(c.visible=!1),lf(c)},unhideInstance(c,h){var f;const{attach:d,parent:p}=(f=c.__r3f)!=null?f:{};d&&p&&cA(p,c,d),(c.isObject3D&&h.visible==null||h.visible)&&(c.visible=!0),lf(c)},createTextInstance:l,hideTextInstance:l,unhideTextInstance:l,getCurrentEventPriority:()=>e?e():_f.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:typeof performance!="undefined"&&Gn.fun(performance.now)?performance.now:Gn.fun(Date.now)?Date.now:()=>0,scheduleTimeout:Gn.fun(setTimeout)?setTimeout:void 0,cancelTimeout:Gn.fun(clearTimeout)?clearTimeout:void 0}),applyProps:hA}}var pI,vI;const uA=n=>"colorSpace"in n||"outputColorSpace"in n,JU=()=>{var n;return(n=OC.ColorManagement)!=null?n:null},ZU=n=>n&&n.isOrthographicCamera,QK=n=>n&&n.hasOwnProperty("current"),dg=typeof window!="undefined"&&((pI=window.document)!=null&&pI.createElement||((vI=window.navigator)==null?void 0:vI.product)==="ReactNative")?Y.useLayoutEffect:Y.useEffect;function KU(n){const e=Y.useRef(n);return dg(()=>void(e.current=n),[n]),e}function eq({set:n}){return dg(()=>(n(new Promise(()=>null)),()=>n(!1)),[n]),null}class qU extends Y.Component{constructor(...e){super(...e),this.state={error:!1}}componentDidCatch(e){this.props.set(e)}render(){return this.state.error?null:this.props.children}}qU.getDerivedStateFromError=()=>({error:!0});const $U="__default",gI=new Map,tq=n=>n&&!!n.memoized&&!!n.changes;function QU(n){var e;const t=typeof window!="undefined"?(e=window.devicePixelRatio)!=null?e:2:1;return Array.isArray(n)?Math.min(Math.max(n[0],t),n[1]):n}const qd=n=>{var e;return(e=n.__r3f)==null?void 0:e.root.getState()};function P0(n){let e=n.__r3f.root;for(;e.getState().previousRoot;)e=e.getState().previousRoot;return e}const Gn={obj:n=>n===Object(n)&&!Gn.arr(n)&&typeof n!="function",fun:n=>typeof n=="function",str:n=>typeof n=="string",num:n=>typeof n=="number",boo:n=>typeof n=="boolean",und:n=>n===void 0,arr:n=>Array.isArray(n),equ(n,e,{arrays:t="shallow",objects:r="reference",strict:i=!0}={}){if(typeof n!=typeof e||!!n!=!!e)return!1;if(Gn.str(n)||Gn.num(n))return n===e;const a=Gn.obj(n);if(a&&r==="reference")return n===e;const o=Gn.arr(n);if(o&&t==="reference")return n===e;if((o||a)&&n===e)return!0;let s;for(s in n)if(!(s in e))return!1;if(a&&t==="shallow"&&r==="shallow"){for(s in i?e:n)if(!Gn.equ(n[s],e[s],{strict:i,objects:"reference"}))return!1}else for(s in i?e:n)if(n[s]!==e[s])return!1;if(Gn.und(s)){if(o&&n.length===0&&e.length===0||a&&Object.keys(n).length===0&&Object.keys(e).length===0)return!0;if(n!==e)return!1}return!0}};function nq(n){const e={nodes:{},materials:{}};return n&&n.traverse(t=>{t.name&&(e.nodes[t.name]=t),t.material&&!e.materials[t.material.name]&&(e.materials[t.material.name]=t.material)}),e}function rq(n){n.dispose&&n.type!=="Scene"&&n.dispose();for(const e in n)e.dispose==null||e.dispose(),delete n[e]}function sf(n,e){const t=n;return t.__r3f=Tt({type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null},e),n}function cb(n,e){let t=n;if(e.includes("-")){const r=e.split("-"),i=r.pop();return t=r.reduce((a,o)=>a[o],n),{target:t,key:i}}else return{target:t,key:e}}const mI=/-\d+$/;function cA(n,e,t){if(Gn.str(t)){if(mI.test(t)){const a=t.replace(mI,""),{target:o,key:s}=cb(n,a);Array.isArray(o[s])||(o[s]=[])}const{target:r,key:i}=cb(n,t);e.__r3f.previousAttach=r[i],r[i]=e}else e.__r3f.previousAttach=t(n,e)}function yI(n,e,t){var r,i;if(Gn.str(t)){const{target:a,key:o}=cb(n,t),s=e.__r3f.previousAttach;s===void 0?delete a[o]:a[o]=s}else(r=e.__r3f)==null||r.previousAttach==null||r.previousAttach(n,e);(i=e.__r3f)==null||delete i.previousAttach}function eG(n,c,f={},u=!1){var h=c,{children:e,key:t,ref:r}=h,i=vi(h,["children","key","ref"]);var d=f,{children:a,key:o,ref:s}=d,l=vi(d,["children","key","ref"]);var p;const y=(p=n==null?void 0:n.__r3f)!=null?p:{},g=Object.entries(i),v=[];if(u){const S=Object.keys(l);for(let A=0;A{var b;if((b=n.__r3f)!=null&&b.primitive&&S==="object"||Gn.equ(A,l[S]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(S))return v.push([S,A,!0,[]]);let w=[];S.includes("-")&&(w=S.split("-")),v.push([S,A,!1,w]);for(const C in i){const P=i[C];C.startsWith(`${S}-`)&&v.push([C,P,!1,C.split("-")])}});const x=Tt({},i);return y.memoizedProps&&y.memoizedProps.args&&(x.args=y.memoizedProps.args),y.memoizedProps&&y.memoizedProps.attach&&(x.attach=y.memoizedProps.attach),{memoized:x,changes:v}}const iq=typeof process!="undefined"&&!1;function hA(n,e){var t,r,i;const a=(t=n.__r3f)!=null?t:{},o=a.root,s=(r=o==null||o.getState==null?void 0:o.getState())!=null?r:{},{memoized:l,changes:u}=tq(e)?e:eG(n,e),c=a.eventCount;n.__r3f&&(n.__r3f.memoizedProps=l);for(let f=0;fS[A],n),!(x&&x.set))){const[S,...A]=g.reverse();v=A.reverse().reduce((b,w)=>b[w],n),d=S}if(p===$U+"remove")if(v.constructor){let S=gI.get(v.constructor);S||(S=new v.constructor,gI.set(v.constructor,S)),p=S[d]}else p=0;if(y)p?a.handlers[d]=p:delete a.handlers[d],a.eventCount=Object.keys(a.handlers).length;else if(x&&x.set&&(x.copy||x instanceof Rc)){if(Array.isArray(p))x.fromArray?x.fromArray(p):x.set(...p);else if(x.copy&&p&&p.constructor&&(iq?x.constructor.name===p.constructor.name:x.constructor===p.constructor))x.copy(p);else if(p!==void 0){const S=x instanceof at;!S&&x.setScalar?x.setScalar(p):x instanceof Rc&&p instanceof Rc?x.mask=p.mask:x.set(p),!JU()&&!s.linear&&S&&x.convertSRGBToLinear()}}else if(v[d]=p,v[d]instanceof Wn&&v[d].format===ii&&v[d].type===Xo){const S=v[d];uA(S)&&uA(s.gl)?S.colorSpace=s.gl.outputColorSpace:S.encoding=s.gl.outputEncoding}lf(n)}if(a.parent&&n.raycast&&c!==a.eventCount){const f=P0(n).getState().internal,d=f.interaction.indexOf(n);d>-1&&f.interaction.splice(d,1),a.eventCount&&f.interaction.push(n)}return!(u.length===1&&u[0][0]==="onUpdate")&&u.length&&(i=n.__r3f)!=null&&i.parent&&hb(n),n}function lf(n){var e,t;const r=(e=n.__r3f)==null||(t=e.root)==null||t.getState==null?void 0:t.getState();r&&r.internal.frames===0&&r.invalidate()}function hb(n){n.onUpdate==null||n.onUpdate(n)}function tG(n,e){n.manual||(ZU(n)?(n.left=e.width/-2,n.right=e.width/2,n.top=e.height/2,n.bottom=e.height/-2):n.aspect=e.width/e.height,n.updateProjectionMatrix(),n.updateMatrixWorld())}function my(n){return(n.eventObject||n.object).uuid+"/"+n.index+n.instanceId}function aq(){var n;const e=typeof self!="undefined"&&self||typeof window!="undefined"&&window;if(!e)return _f.DefaultEventPriority;switch((n=e.event)==null?void 0:n.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return _f.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return _f.ContinuousEventPriority;default:return _f.DefaultEventPriority}}function nG(n,e,t,r){const i=t.get(e);i&&(t.delete(e),t.size===0&&(n.delete(r),i.target.releasePointerCapture(r)))}function oq(n,e){const{internal:t}=n.getState();t.interaction=t.interaction.filter(r=>r!==e),t.initialHits=t.initialHits.filter(r=>r!==e),t.hovered.forEach((r,i)=>{(r.eventObject===e||r.object===e)&&t.hovered.delete(i)}),t.capturedMap.forEach((r,i)=>{nG(t.capturedMap,e,r,i)})}function sq(n){function e(l){const{internal:u}=n.getState(),c=l.offsetX-u.initialClick[0],h=l.offsetY-u.initialClick[1];return Math.round(Math.sqrt(c*c+h*h))}function t(l){return l.filter(u=>["Move","Over","Enter","Out","Leave"].some(c=>{var h;return(h=u.__r3f)==null?void 0:h.handlers["onPointer"+c]}))}function r(l,u){const c=n.getState(),h=new Set,f=[],d=u?u(c.internal.interaction):c.internal.interaction;for(let v=0;v{const S=qd(v.object),A=qd(x.object);return!S||!A?v.distance-x.distance:A.events.priority-S.events.priority||v.distance-x.distance}).filter(v=>{const x=my(v);return h.has(x)?!1:(h.add(x),!0)});c.events.filter&&(y=c.events.filter(y,c));for(const v of y){let x=v.object;for(;x;){var g;(g=x.__r3f)!=null&&g.eventCount&&f.push(_r(Tt({},v),{eventObject:x})),x=x.parent}}if("pointerId"in l&&c.internal.capturedMap.has(l.pointerId))for(let v of c.internal.capturedMap.get(l.pointerId).values())h.has(my(v.intersection))||f.push(v.intersection);return f}function i(l,u,c,h){const f=n.getState();if(l.length){const d={stopped:!1};for(const p of l){const y=qd(p.object)||f,{raycaster:g,pointer:v,camera:x,internal:S}=y,A=new J(v.x,v.y,0).unproject(x),b=R=>{var D,B;return(D=(B=S.capturedMap.get(R))==null?void 0:B.has(p.eventObject))!=null?D:!1},w=R=>{const D={intersection:p,target:u.target};S.capturedMap.has(R)?S.capturedMap.get(R).set(p.eventObject,D):S.capturedMap.set(R,new Map([[p.eventObject,D]])),u.target.setPointerCapture(R)},C=R=>{const D=S.capturedMap.get(R);D&&nG(S.capturedMap,p.eventObject,D,R)};let P={};for(let R in u){let D=u[R];typeof D!="function"&&(P[R]=D)}let E=_r(Tt(Tt({},p),P),{pointer:v,intersections:l,stopped:d.stopped,delta:c,unprojectedPoint:A,ray:g.ray,camera:x,stopPropagation(){const R="pointerId"in u&&S.capturedMap.get(u.pointerId);if((!R||R.has(p.eventObject))&&(E.stopped=d.stopped=!0,S.hovered.size&&Array.from(S.hovered.values()).find(D=>D.eventObject===p.eventObject))){const D=l.slice(0,l.indexOf(p));a([...D,p])}},target:{hasPointerCapture:b,setPointerCapture:w,releasePointerCapture:C},currentTarget:{hasPointerCapture:b,setPointerCapture:w,releasePointerCapture:C},nativeEvent:u});if(h(E),d.stopped===!0)break}}return l}function a(l){const{internal:u}=n.getState();for(const c of u.hovered.values())if(!l.length||!l.find(h=>h.object===c.object&&h.index===c.index&&h.instanceId===c.instanceId)){const f=c.eventObject.__r3f,d=f==null?void 0:f.handlers;if(u.hovered.delete(my(c)),f!=null&&f.eventCount){const p=_r(Tt({},c),{intersections:l});d.onPointerOut==null||d.onPointerOut(p),d.onPointerLeave==null||d.onPointerLeave(p)}}}function o(l,u){for(let c=0;ca([]);case"onLostPointerCapture":return u=>{const{internal:c}=n.getState();"pointerId"in u&&c.capturedMap.has(u.pointerId)&&requestAnimationFrame(()=>{c.capturedMap.has(u.pointerId)&&(c.capturedMap.delete(u.pointerId),a([]))})}}return function(c){const{onPointerMissed:h,internal:f}=n.getState();f.lastEvent.current=c;const d=l==="onPointerMove",p=l==="onClick"||l==="onContextMenu"||l==="onDoubleClick",g=r(c,d?t:void 0),v=p?e(c):0;l==="onPointerDown"&&(f.initialClick=[c.offsetX,c.offsetY],f.initialHits=g.map(S=>S.eventObject)),p&&!g.length&&v<=2&&(o(c,f.interaction),h&&h(c)),d&&a(g);function x(S){const A=S.eventObject,b=A.__r3f,w=b==null?void 0:b.handlers;if(b!=null&&b.eventCount)if(d){if(w.onPointerOver||w.onPointerEnter||w.onPointerOut||w.onPointerLeave){const C=my(S),P=f.hovered.get(C);P?P.stopped&&S.stopPropagation():(f.hovered.set(C,S),w.onPointerOver==null||w.onPointerOver(S),w.onPointerEnter==null||w.onPointerEnter(S))}w.onPointerMove==null||w.onPointerMove(S)}else{const C=w[l];C?(!p||f.initialHits.includes(A))&&(o(c,f.interaction.filter(P=>!f.initialHits.includes(P))),C(S)):p&&f.initialHits.includes(A)&&o(c,f.interaction.filter(P=>!f.initialHits.includes(P)))}}i(g,c,v,x)}}return{handlePointer:s}}const lq=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],rG=n=>!!(n!=null&&n.render),FC=Y.createContext(null),uq=(n,e)=>{const t=zU((s,l)=>{const u=new J,c=new J,h=new J;function f(v=l().camera,x=c,S=l().size){const{width:A,height:b,top:w,left:C}=S,P=A/b;x instanceof J?h.copy(x):h.set(...x);const E=v.getWorldPosition(u).distanceTo(h);if(ZU(v))return{width:A/v.zoom,height:b/v.zoom,top:w,left:C,factor:1,distance:E,aspect:P};{const R=v.fov*Math.PI/180,D=2*Math.tan(R/2)*E,B=D*(A/b);return{width:B,height:D,top:w,left:C,factor:A/B,distance:E,aspect:P}}}let d;const p=v=>s(x=>({performance:_r(Tt({},x.performance),{current:v})})),y=new De;return{set:s,get:l,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(v=1)=>n(l(),v),advance:(v,x)=>e(v,x,l()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new PC,pointer:y,mouse:y,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const v=l();d&&clearTimeout(d),v.performance.current!==v.performance.min&&p(v.performance.min),d=setTimeout(()=>p(l().performance.max),v.performance.debounce)}},size:{width:0,height:0,top:0,left:0,updateStyle:!1},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:f},setEvents:v=>s(x=>_r(Tt({},x),{events:Tt(Tt({},x.events),v)})),setSize:(v,x,S,A,b)=>{const w=l().camera,C={width:v,height:x,top:A||0,left:b||0,updateStyle:S};s(P=>({size:C,viewport:Tt(Tt({},P.viewport),f(w,c,C))}))},setDpr:v=>s(x=>{const S=QU(v);return{viewport:_r(Tt({},x.viewport),{dpr:S,initialDpr:x.viewport.initialDpr||S})}}),setFrameloop:(v="always")=>{const x=l().clock;x.stop(),x.elapsedTime=0,v!=="never"&&(x.start(),x.elapsedTime=0),s(()=>({frameloop:v}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:Y.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(v,x,S)=>{const A=l().internal;return A.priority=A.priority+(x>0?1:0),A.subscribers.push({ref:v,priority:x,store:S}),A.subscribers=A.subscribers.sort((b,w)=>b.priority-w.priority),()=>{const b=l().internal;b!=null&&b.subscribers&&(b.priority=b.priority-(x>0?1:0),b.subscribers=b.subscribers.filter(w=>w.ref!==v))}}}}}),r=t.getState();let i=r.size,a=r.viewport.dpr,o=r.camera;return t.subscribe(()=>{const{camera:s,size:l,viewport:u,gl:c,set:h}=t.getState();if(l.width!==i.width||l.height!==i.height||u.dpr!==a){var f;i=l,a=u.dpr,tG(s,l),c.setPixelRatio(u.dpr);const d=(f=l.updateStyle)!=null?f:typeof HTMLCanvasElement!="undefined"&&c.domElement instanceof HTMLCanvasElement;c.setSize(l.width,l.height,d)}s!==o&&(o=s,h(d=>({viewport:Tt(Tt({},d.viewport),d.viewport.getCurrentViewport(s))})))}),t.subscribe(s=>n(s)),t};let yy,cq=new Set,hq=new Set,fq=new Set;function fA(n,e){if(n.size)for(const{callback:t}of n.values())t(e)}function $d(n,e){switch(n){case"before":return fA(cq,e);case"after":return fA(hq,e);case"tail":return fA(fq,e)}}let dA,pA;function vA(n,e,t){let r=e.clock.getDelta();for(e.frameloop==="never"&&typeof n=="number"&&(r=n-e.clock.elapsedTime,e.clock.oldTime=e.clock.elapsedTime,e.clock.elapsedTime=n),dA=e.internal.subscribers,yy=0;yy0)&&!((u=i.gl.xr)!=null&&u.isPresenting)&&(t+=vA(l,i))}if($d("after",l),t===0)return $d("tail",l),e=!1,cancelAnimationFrame(r)}function o(l,u=1){var c;if(!l)return n.forEach(h=>o(h.store.getState()),u);(c=l.gl.xr)!=null&&c.isPresenting||!l.internal.active||l.frameloop==="never"||(l.internal.frames=Math.min(60,l.internal.frames+u),e||(e=!0,requestAnimationFrame(a)))}function s(l,u=!0,c,h){if(u&&$d("before",l),c)vA(l,c,h);else for(const f of n.values())vA(l,f.store.getState());u&&$d("after",l)}return{loop:a,invalidate:o,advance:s}}function NC(){const n=Y.useContext(FC);if(!n)throw new Error("R3F: Hooks can only be used within the Canvas component!");return n}function _i(n=t=>t,e){return NC()(n,e)}function pg(n,e=0){const t=NC(),r=t.getState().internal.subscribe,i=KU(n);return dg(()=>r(i,e,t),[e,r,t]),null}const _I=new WeakMap;function iG(n,e){return function(t,...r){let i=_I.get(t);return i||(i=new t,_I.set(t,i)),n&&n(i),Promise.all(r.map(a=>new Promise((o,s)=>i.load(a,l=>{l.scene&&Object.assign(l,nq(l.scene)),o(l)},e,l=>s(new Error(`Could not load ${a}: ${l==null?void 0:l.message}`)))))).finally(()=>i.dispose==null?void 0:i.dispose())}}function ld(n,e,t,r){const i=Array.isArray(e)?e:[e],a=ZK(iG(t,r),[n,...i],{equal:Gn.equ});return Array.isArray(e)?a:a[0]}ld.preload=function(n,e,t){const r=Array.isArray(e)?e:[e];return KK(iG(t),[n,...r])};ld.clear=function(n,e){const t=Array.isArray(e)?e:[e];return qK([n,...t])};const Vf=new Map,{invalidate:xI,advance:SI}=dq(Vf),{reconciler:Tv,applyProps:Gh}=$K(Vf,aq),zh={objects:"shallow",strict:!1},pq=(n,e)=>{const t=typeof n=="function"?n(e):n;return rG(t)?t:new lC(Tt({powerPreference:"high-performance",canvas:e,antialias:!0,alpha:!0},n))};function vq(n,e){const t=typeof HTMLCanvasElement!="undefined"&&n instanceof HTMLCanvasElement;if(e){const{width:r,height:i,top:a,left:o,updateStyle:s=t}=e;return{width:r,height:i,top:a,left:o,updateStyle:s}}else if(typeof HTMLCanvasElement!="undefined"&&n instanceof HTMLCanvasElement&&n.parentElement){const{width:r,height:i,top:a,left:o}=n.parentElement.getBoundingClientRect();return{width:r,height:i,top:a,left:o,updateStyle:t}}else if(typeof OffscreenCanvas!="undefined"&&n instanceof OffscreenCanvas)return{width:n.width,height:n.height,top:0,left:0,updateStyle:t};return{width:0,height:0,top:0,left:0}}function gq(n){const e=Vf.get(n),t=e==null?void 0:e.fiber,r=e==null?void 0:e.store,i=typeof reportError=="function"?reportError:console.error,a=r||uq(xI,SI),o=t||Tv.createContainer(a,_f.ConcurrentRoot,null,!1,null,"",i,null);e||Vf.set(n,{fiber:o,store:a});let s,l=!1,u;return{configure(c={}){let{gl:h,size:f,scene:d,events:p,onCreated:y,shadows:g=!1,linear:v=!1,flat:x=!1,legacy:S=!1,orthographic:A=!1,frameloop:b="always",dpr:w=[1,2],performance:C,raycaster:P,camera:E,onPointerMissed:R}=c,D=a.getState(),B=D.gl;D.gl||D.set({gl:B=pq(h,n)});let k=D.raycaster;k||D.set({raycaster:k=new BC});const he=P||{},{params:N}=he,z=vi(he,["params"]);if(Gn.equ(z,k,zh)||Gh(k,Tt({},z)),Gn.equ(N,k.params,zh)||Gh(k,{params:Tt(Tt({},k.params),N)}),!D.camera||D.camera===u&&!Gn.equ(u,E,zh)){u=E;const re=E instanceof rg,ce=re?E:A?new ka(0,0,0,0,.1,1e3):new Hn(75,0,.1,1e3);re||(ce.position.z=5,E&&Gh(ce,E),!D.camera&&!(E!=null&&E.rotation)&&ce.lookAt(0,0,0)),D.set({camera:ce}),k.camera=ce}if(!D.scene){let re;d instanceof xv?re=d:(re=new xv,d&&Gh(re,d)),D.set({scene:sf(re)})}if(!D.xr){var X;const re=(ge,Be)=>{const Ye=a.getState();Ye.frameloop!=="never"&&SI(ge,!0,Ye,Be)},ce=()=>{const ge=a.getState();ge.gl.xr.enabled=ge.gl.xr.isPresenting,ge.gl.xr.setAnimationLoop(ge.gl.xr.isPresenting?re:null),ge.gl.xr.isPresenting||xI(ge)},_e={connect(){const ge=a.getState().gl;ge.xr.addEventListener("sessionstart",ce),ge.xr.addEventListener("sessionend",ce)},disconnect(){const ge=a.getState().gl;ge.xr.removeEventListener("sessionstart",ce),ge.xr.removeEventListener("sessionend",ce)}};typeof((X=B.xr)==null?void 0:X.addEventListener)=="function"&&_e.connect(),D.set({xr:_e})}if(B.shadowMap){const re=B.shadowMap.enabled,ce=B.shadowMap.type;if(B.shadowMap.enabled=!!g,Gn.boo(g))B.shadowMap.type=Hp;else if(Gn.str(g)){var ne;const _e={basic:N3,percentage:Y_,soft:Hp,variance:ro};B.shadowMap.type=(ne=_e[g])!=null?ne:Hp}else Gn.obj(g)&&Object.assign(B.shadowMap,g);(re!==B.shadowMap.enabled||ce!==B.shadowMap.type)&&(B.shadowMap.needsUpdate=!0)}const H=JU();H&&("enabled"in H?H.enabled=!S:"legacyMode"in H&&(H.legacyMode=S)),Gh(B,{outputEncoding:v?3e3:3001,toneMapping:x?Wo:GT}),D.legacy!==S&&D.set(()=>({legacy:S})),D.linear!==v&&D.set(()=>({linear:v})),D.flat!==x&&D.set(()=>({flat:x})),h&&!Gn.fun(h)&&!rG(h)&&!Gn.equ(h,B,zh)&&Gh(B,h),p&&!D.events.handlers&&D.set({events:p(a)});const le=vq(n,f);return Gn.equ(le,D.size,zh)||D.setSize(le.width,le.height,le.updateStyle,le.top,le.left),w&&D.viewport.dpr!==QU(w)&&D.setDpr(w),D.frameloop!==b&&D.setFrameloop(b),D.onPointerMissed||D.set({onPointerMissed:R}),C&&!Gn.equ(C,D.performance,zh)&&D.set(re=>({performance:Tt(Tt({},re.performance),C)})),s=y,l=!0,this},render(c){return l||this.configure(),Tv.updateContainer(Y.createElement(mq,{store:a,children:c,onCreated:s,rootElement:n}),o,null,()=>{}),a},unmount(){aG(n)}}}function mq({store:n,children:e,onCreated:t,rootElement:r}){return dg(()=>{const i=n.getState();i.set(a=>({internal:_r(Tt({},a.internal),{active:!0})})),t&&t(i),n.getState().events.connected||i.events.connect==null||i.events.connect(r)},[]),Y.createElement(FC.Provider,{value:n},e)}function aG(n,e){const t=Vf.get(n),r=t==null?void 0:t.fiber;if(r){const i=t==null?void 0:t.store.getState();i&&(i.internal.active=!1),Tv.updateContainer(null,r,null,()=>{i&&setTimeout(()=>{try{var a,o,s,l;i.events.disconnect==null||i.events.disconnect(),(a=i.gl)==null||(o=a.renderLists)==null||o.dispose==null||o.dispose(),(s=i.gl)==null||s.forceContextLoss==null||s.forceContextLoss(),(l=i.gl)!=null&&l.xr&&i.xr.disconnect(),rq(i),Vf.delete(n),e&&e(n)}catch(u){}},500)})}}function yq(n,e,t){return Y.createElement(_q,{key:e.uuid,children:n,container:e,state:t})}function _q({state:n={},children:e,container:t}){const h=n,{events:r,size:i}=h,a=vi(h,["events","size"]),o=NC(),[s]=Y.useState(()=>new BC),[l]=Y.useState(()=>new De),u=Y.useCallback((f,d)=>{const p=Tt({},f);Object.keys(f).forEach(g=>{(lq.includes(g)||f[g]!==d[g]&&d[g])&&delete p[g]});let y;if(d&&i){const g=d.camera;y=f.viewport.getCurrentViewport(g,new J,i),g!==f.camera&&tG(g,i)}return Tt(_r(Tt({},p),{scene:t,raycaster:s,pointer:l,mouse:l,previousRoot:o,events:Tt(Tt(Tt({},f.events),d==null?void 0:d.events),r),size:Tt(Tt({},f.size),i),viewport:Tt(Tt({},f.viewport),y)}),a)},[n]),[c]=Y.useState(()=>{const f=o.getState();return zU((p,y)=>_r(Tt(_r(Tt({},f),{scene:t,raycaster:s,pointer:l,mouse:l,previousRoot:o,events:Tt(Tt({},f.events),r),size:Tt(Tt({},f.size),i)}),a),{set:p,get:y,setEvents:g=>p(v=>_r(Tt({},v),{events:Tt(Tt({},v.events),g)}))}))});return Y.useEffect(()=>{const f=o.subscribe(d=>c.setState(p=>u(d,p)));return()=>{f(),c.destroy()}},[]),Y.useEffect(()=>{c.setState(f=>u(o.getState(),f))},[u]),Y.createElement(Y.Fragment,null,Tv.createPortal(Y.createElement(FC.Provider,{value:c},e),c,null))}Tv.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:Y.version});function fb(n,e,t){var r,i,a,o,s;e==null&&(e=100);function l(){var c=Date.now()-o;c=0?r=setTimeout(l,e-c):(r=null,t||(s=n.apply(a,i),a=i=null))}var u=function(){a=this,i=arguments,o=Date.now();var c=t&&!r;return r||(r=setTimeout(l,e)),c&&(s=n.apply(a,i),a=i=null),s};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(s=n.apply(a,i),a=i=null,clearTimeout(r),r=null)},u}fb.debounce=fb;var xq=fb;const AI=T3(xq);function Sq(n){let{debounce:e,scroll:t,polyfill:r,offsetSize:i}=n===void 0?{debounce:0,scroll:!1,offsetSize:!1}:n;const a=r||(typeof window=="undefined"?class{}:window.ResizeObserver);if(!a)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[o,s]=Y.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=Y.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o}),u=e?typeof e=="number"?e:e.scroll:null,c=e?typeof e=="number"?e:e.resize:null,h=Y.useRef(!1);Y.useEffect(()=>(h.current=!0,()=>void(h.current=!1)));const[f,d,p]=Y.useMemo(()=>{const x=()=>{if(!l.current.element)return;const{left:S,top:A,width:b,height:w,bottom:C,right:P,x:E,y:R}=l.current.element.getBoundingClientRect(),D={left:S,top:A,width:b,height:w,bottom:C,right:P,x:E,y:R};l.current.element instanceof HTMLElement&&i&&(D.height=l.current.element.offsetHeight,D.width=l.current.element.offsetWidth),Object.freeze(D),h.current&&!bq(l.current.lastBounds,D)&&s(l.current.lastBounds=D)};return[x,c?AI(x,c):x,u?AI(x,u):x]},[s,i,u,c]);function y(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(x=>x.removeEventListener("scroll",p,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null)}function g(){l.current.element&&(l.current.resizeObserver=new a(p),l.current.resizeObserver.observe(l.current.element),t&&l.current.scrollContainers&&l.current.scrollContainers.forEach(x=>x.addEventListener("scroll",p,{capture:!0,passive:!0})))}const v=x=>{!x||x===l.current.element||(y(),l.current.element=x,l.current.scrollContainers=oG(x),g())};return Mq(p,!!t),Aq(d),Y.useEffect(()=>{y(),g()},[t,p,d]),Y.useEffect(()=>y,[]),[v,o,f]}function Aq(n){Y.useEffect(()=>{const e=n;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[n])}function Mq(n,e){Y.useEffect(()=>{if(e){const t=n;return window.addEventListener("scroll",t,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",t,!0)}},[n,e])}function oG(n){const e=[];if(!n||n===document.body)return e;const{overflow:t,overflowX:r,overflowY:i}=window.getComputedStyle(n);return[t,r,i].some(a=>a==="auto"||a==="scroll")&&e.push(n),[...e,...oG(n.parentElement)]}const wq=["x","y","top","bottom","left","right","width","height"],bq=(n,e)=>wq.every(t=>n[t]===e[t]),gA={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};function Tq(n){const{handlePointer:e}=sq(n);return{priority:1,enabled:!0,compute(t,r,i){r.pointer.set(t.offsetX/r.size.width*2-1,-(t.offsetY/r.size.height)*2+1),r.raycaster.setFromCamera(r.pointer,r.camera)},connected:void 0,handlers:Object.keys(gA).reduce((t,r)=>_r(Tt({},t),{[r]:e(r)}),{}),update:()=>{var t;const{events:r,internal:i}=n.getState();(t=i.lastEvent)!=null&&t.current&&r.handlers&&r.handlers.onPointerMove(i.lastEvent.current)},connect:t=>{var r;const{set:i,events:a}=n.getState();a.disconnect==null||a.disconnect(),i(o=>({events:_r(Tt({},o.events),{connected:t})})),Object.entries((r=a.handlers)!=null?r:[]).forEach(([o,s])=>{const[l,u]=gA[o];t.addEventListener(l,s,{passive:u})})},disconnect:()=>{const{set:t,events:r}=n.getState();if(r.connected){var i;Object.entries((i=r.handlers)!=null?i:[]).forEach(([a,o])=>{if(r&&r.connected instanceof HTMLElement){const[s]=gA[a];r.connected.removeEventListener(s,o)}}),t(a=>({events:_r(Tt({},a.events),{connected:void 0})}))}}}}const Cq=Y.forwardRef(function(P,C){var E=P,{children:e,fallback:t,resize:r,style:i,gl:a,events:o=Tq,eventSource:s,eventPrefix:l,shadows:u,linear:c,flat:h,legacy:f,orthographic:d,frameloop:p,dpr:y,performance:g,raycaster:v,camera:x,scene:S,onPointerMissed:A,onCreated:b}=E,w=vi(E,["children","fallback","resize","style","gl","events","eventSource","eventPrefix","shadows","linear","flat","legacy","orthographic","frameloop","dpr","performance","raycaster","camera","scene","onPointerMissed","onCreated"]);Y.useMemo(()=>jU(HK),[]);const R=i9(),[D,B]=Sq(Tt({scroll:!0,debounce:{scroll:50,resize:0}},r)),k=Y.useRef(null),N=Y.useRef(null);Y.useImperativeHandle(C,()=>k.current);const z=KU(A),[X,ne]=Y.useState(!1),[H,K]=Y.useState(!1);if(X)throw X;if(H)throw H;const Q=Y.useRef(null);dg(()=>{const he=k.current;B.width>0&&B.height>0&&he&&(Q.current||(Q.current=gq(he)),Q.current.configure({gl:a,events:o,shadows:u,linear:c,flat:h,legacy:f,orthographic:d,frameloop:p,dpr:y,performance:g,raycaster:v,camera:x,scene:S,size:B,onPointerMissed:(...re)=>z.current==null?void 0:z.current(...re),onCreated:re=>{re.events.connect==null||re.events.connect(s?QK(s)?s.current:s:N.current),l&&re.setEvents({compute:(ce,_e)=>{const ge=ce[l+"X"],Be=ce[l+"Y"];_e.pointer.set(ge/_e.size.width*2-1,-(Be/_e.size.height)*2+1),_e.raycaster.setFromCamera(_e.pointer,_e.camera)}}),b==null||b(re)}}),Q.current.render(Y.createElement(R,null,Y.createElement(qU,{set:K},Y.createElement(Y.Suspense,{fallback:Y.createElement(eq,{set:ne})},e)))))}),Y.useEffect(()=>{const he=k.current;if(he)return()=>aG(he)},[]);const le=s?"none":"auto";return Y.createElement("div",td({ref:N,style:Tt({position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:le},i)},w),Y.createElement("div",{ref:D,style:{width:"100%",height:"100%"}},Y.createElement("canvas",{ref:k,style:{display:"block"}},t)))}),Eq=Y.forwardRef(function(e,t){return Y.createElement(r9,null,Y.createElement(Cq,td({},e,{ref:t})))}),vg=new J,kC=new J,Rq=new J;function Pq(n,e,t){const r=vg.setFromMatrixPosition(n.matrixWorld);r.project(e);const i=t.width/2,a=t.height/2;return[r.x*i+i,-(r.y*a)+a]}function Dq(n,e){const t=vg.setFromMatrixPosition(n.matrixWorld),r=kC.setFromMatrixPosition(e.matrixWorld),i=t.sub(r),a=e.getWorldDirection(Rq);return i.angleTo(a)>Math.PI/2}function Iq(n,e,t,r){const i=vg.setFromMatrixPosition(n.matrixWorld),a=i.clone();a.project(e),t.setFromCamera(a,e);const o=t.intersectObjects(r,!0);if(o.length){const s=o[0].distance;return i.distanceTo(t.ray.origin)Math.abs(n)<1e-10?0:n;function sG(n,e,t=""){let r="matrix3d(";for(let i=0;i!==16;i++)r+=db(e[i]*n.elements[i])+(i!==15?",":")");return t+r}const Oq=(n=>e=>sG(e,n))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),Fq=(n=>(e,t)=>sG(e,n(t),"translate(-50%,-50%)"))(n=>[1/n,1/n,1/n,1,-1/n,-1/n,-1/n,-1,1/n,1/n,1/n,1,1,1,1,1]);function Nq(n){return n&&typeof n=="object"&&"current"in n}const kq=Y.forwardRef((P,C)=>{var E=P,{children:n,eps:e=.001,style:t,className:r,prepend:i,center:a,fullscreen:o,portal:s,distanceFactor:l,sprite:u=!1,transform:c=!1,occlude:h,onOcclude:f,castShadow:d,receiveShadow:p,material:y,geometry:g,zIndexRange:v=[16777271,0],calculatePosition:x=Pq,as:S="div",wrapperClass:A,pointerEvents:b="auto"}=E,w=vi(E,["children","eps","style","className","prepend","center","fullscreen","portal","distanceFactor","sprite","transform","occlude","onOcclude","castShadow","receiveShadow","material","geometry","zIndexRange","calculatePosition","as","wrapperClass","pointerEvents"]);const{gl:R,camera:D,scene:B,size:k,raycaster:N,events:z,viewport:X}=_i(),[ne]=Y.useState(()=>document.createElement(S)),H=Y.useRef(),K=Y.useRef(null),Q=Y.useRef(0),le=Y.useRef([0,0]),he=Y.useRef(null),re=Y.useRef(null),ce=(s==null?void 0:s.current)||z.connected||R.domElement.parentNode,_e=Y.useRef(null),ge=Y.useRef(!1),Be=Y.useMemo(()=>h&&h!=="blending"||Array.isArray(h)&&h.length&&Nq(h[0]),[h]);Y.useLayoutEffect(()=>{const Z=R.domElement;h&&h==="blending"?(Z.style.zIndex=`${Math.floor(v[0]/2)}`,Z.style.position="absolute",Z.style.pointerEvents="none"):(Z.style.zIndex=null,Z.style.position=null,Z.style.pointerEvents=null)},[h]),Y.useLayoutEffect(()=>{if(K.current){const Z=H.current=a9(ne);if(B.updateMatrixWorld(),c)ne.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const Se=x(K.current,D,k);ne.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${Se[0]}px,${Se[1]}px,0);transform-origin:0 0;`}return ce&&(i?ce.prepend(ne):ce.appendChild(ne)),()=>{ce&&ce.removeChild(ne),Z.unmount()}}},[ce,c]),Y.useLayoutEffect(()=>{A&&(ne.className=A)},[A]);const Ye=Y.useMemo(()=>c?{position:"absolute",top:0,left:0,width:k.width,height:k.height,transformStyle:"preserve-3d",pointerEvents:"none"}:Tt(Tt({position:"absolute",transform:a?"translate3d(-50%,-50%,0)":"none"},o&&{top:-k.height/2,left:-k.width/2,width:k.width,height:k.height}),t),[t,a,o,k,c]),Ke=Y.useMemo(()=>({position:"absolute",pointerEvents:b}),[b]);Y.useLayoutEffect(()=>{if(ge.current=!1,c){var Z;(Z=H.current)==null||Z.render(Y.createElement("div",{ref:he,style:Ye},Y.createElement("div",{ref:re,style:Ke},Y.createElement("div",{ref:C,className:r,style:t,children:n}))))}else{var Se;(Se=H.current)==null||Se.render(Y.createElement("div",{ref:C,style:Ye,className:r,children:n}))}});const Ne=Y.useRef(!0);pg(Z=>{if(K.current){D.updateMatrixWorld(),K.current.updateWorldMatrix(!0,!1);const Se=c?le.current:x(K.current,D,k);if(c||Math.abs(Q.current-D.zoom)>e||Math.abs(le.current[0]-Se[0])>e||Math.abs(le.current[1]-Se[1])>e){const ve=Dq(K.current,D);let Pe=!1;Be&&(Array.isArray(h)?Pe=h.map(V=>V.current):h!=="blending"&&(Pe=[B]));const me=Ne.current;if(Pe){const V=Iq(K.current,D,N,Pe);Ne.current=V&&!ve}else Ne.current=!ve;me!==Ne.current&&(f?f(!Ne.current):ne.style.display=Ne.current?"block":"none");const et=Math.floor(v[0]/2),Xe=h?Be?[v[0],et]:[et-1,0]:v;if(ne.style.zIndex=`${Bq(K.current,D,Xe)}`,c){const[V,G]=[k.width/2,k.height/2],de=D.projectionMatrix.elements[5]*G,{isOrthographicCamera:Fe,top:Re,left:Le,bottom:st,right:Je}=D,rt=Oq(D.matrixWorldInverse),_t=Fe?`scale(${de})translate(${db(-(Je+Le)/2)}px,${db((Re+st)/2)}px)`:`translateZ(${de}px)`;let ht=K.current.matrixWorld;u&&(ht=D.matrixWorldInverse.clone().transpose().copyPosition(ht).scale(K.current.scale),ht.elements[3]=ht.elements[7]=ht.elements[11]=0,ht.elements[15]=1),ne.style.width=k.width+"px",ne.style.height=k.height+"px",ne.style.perspective=Fe?"":`${de}px`,he.current&&re.current&&(he.current.style.transform=`${_t}${rt}translate(${V}px,${G}px)`,re.current.style.transform=Fq(ht,1/((l||10)/400)))}else{const V=l===void 0?1:Lq(K.current,D)*l;ne.style.transform=`translate3d(${Se[0]}px,${Se[1]}px,0) scale(${V})`}le.current=Se,Q.current=D.zoom}}if(!Be&&_e.current&&!ge.current)if(c){if(he.current){const Se=he.current.children[0];if(Se!=null&&Se.clientWidth&&Se!=null&&Se.clientHeight){const{isOrthographicCamera:ve}=D;if(ve||g)w.scale&&(Array.isArray(w.scale)?w.scale instanceof J?_e.current.scale.copy(w.scale.clone().divideScalar(1)):_e.current.scale.set(1/w.scale[0],1/w.scale[1],1/w.scale[2]):_e.current.scale.setScalar(1/w.scale));else{const Pe=(l||10)/400,me=Se.clientWidth*Pe,et=Se.clientHeight*Pe;_e.current.scale.set(me,et,1)}ge.current=!0}}}else{const Se=ne.children[0];if(Se!=null&&Se.clientWidth&&Se!=null&&Se.clientHeight){const ve=1/X.factor,Pe=Se.clientWidth*ve,me=Se.clientHeight*ve;_e.current.scale.set(Pe,me,1),ge.current=!0}_e.current.lookAt(Z.camera.position)}});const Ie=Y.useMemo(()=>({vertexShader:c?void 0:` + `)+m.join(" > ")}return null},t.getPublicRootInstance=function(m){if(m=m.current,!m.child)return null;switch(m.child.tag){case 5:return X(m.child.stateNode);default:return m.child.stateNode}},t.injectIntoDevTools=function(m){if(m={bundleType:m.bundleType,version:m.version,rendererPackageName:m.rendererPackageName,rendererConfig:m.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:bW,findFiberByHostInstance:m.findFiberByHostInstance||TW,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")m=!1;else{var _=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(_.isDisabled||!_.supportsFiber)m=!0;else{try{vg=_.inject(m),So=_}catch(M){}m=!!_.checkDCE}}return m},t.isAlreadyRendering=function(){return!1},t.observeVisibleRects=function(m,_,M,b){if(!G)throw Error(o(363));m=FS(m,_);var D=it(m,M,b).disconnect;return{disconnect:function(){D()}}},t.registerMutableSourceForHydration=function(m,_){var M=_._getVersion;M=M(_._source),m.mutableSourceEagerHydrationData==null?m.mutableSourceEagerHydrationData=[_,M]:m.mutableSourceEagerHydrationData.push(_,M)},t.runWithPriority=function(m,_){var M=Sn;try{return Sn=m,_()}finally{Sn=M}},t.shouldError=function(){return null},t.shouldSuspend=function(){return!1},t.updateContainer=function(m,_,M,b){var D=_.current,L=fi(),Q=Qs(D);return M=J2(M),_.context===null?_.context=M:_.pendingContext=M,_=us(L,Q),_.payload={element:m},b=b===void 0?null:b,b!==null&&(_.callback=b),js(D,_),m=ma(D,Q,L),m!==null&&xg(m,D,Q),Q},t};jk.exports=zZ;var HZ=jk.exports;const VZ=zF(HZ),WZ=n=>typeof n=="object"&&typeof n.then=="function",fc=[];function Qk(n,e,t=(r,i)=>r===i){if(n===e)return!0;if(!n||!e)return!1;const r=n.length;if(e.length!==r)return!1;for(let i=0;i0&&(a.timeout&&clearTimeout(a.timeout),a.timeout=setTimeout(a.remove,r.lifespan)),a.response;if(!t)throw a.promise}const i={keys:e,equal:r.equal,remove:()=>{const a=fc.indexOf(i);a!==-1&&fc.splice(a,1)},promise:(WZ(n)?n:n(...e)).then(a=>{i.response=a,r.lifespan&&r.lifespan>0&&(i.timeout=setTimeout(i.remove,r.lifespan))}).catch(a=>i.error=a)};if(fc.push(i),!t)throw i.promise}const XZ=(n,e,t)=>$k(n,e,!1,t),YZ=(n,e,t)=>void $k(n,e,!0,t),JZ=n=>{if(n===void 0||n.length===0)fc.splice(0,fc.length);else{const e=fc.find(t=>Qk(n,t.keys,t.equal));e&&e.remove()}},oC={},eU=n=>void Object.assign(oC,n);function ZZ(n,e){function t(c,y,p){var g=y,{args:h=[],attach:f}=g,d=di(g,["args","attach"]);let v=`${c[0].toUpperCase()}${c.slice(1)}`,x;if(c==="primitive"){if(d.object===void 0)throw new Error("R3F: Primitives without 'object' are invalid!");const S=d.object;x=Qh(S,{type:c,root:p,attach:f,primitive:!0})}else{const S=oC[v];if(!S)throw new Error(`R3F: ${v} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);if(!Array.isArray(h))throw new Error("R3F: The args prop must be an array!");x=Qh(new S(...h),{type:c,root:p,attach:f,memoizedProps:{args:h}})}return x.__r3f.attach===void 0&&(x instanceof Yt?x.__r3f.attach="geometry":x instanceof xr&&(x.__r3f.attach="material")),v!=="inject"&&z1(x,d),x}function r(c,h){let f=!1;if(h){var d,p;(d=h.__r3f)!=null&&d.attach?G1(c,h,h.__r3f.attach):h.isObject3D&&c.isObject3D&&(c.add(h),f=!0),f||(p=c.__r3f)==null||p.objects.push(h),h.__r3f||Qh(h,{}),h.__r3f.parent=c,Nw(h),$h(h)}}function i(c,h,f){let d=!1;if(h){var p,y;if((p=h.__r3f)!=null&&p.attach)G1(c,h,h.__r3f.attach);else if(h.isObject3D&&c.isObject3D){h.parent=c,h.dispatchEvent({type:"added"});const g=c.children.filter(x=>x!==h),v=g.indexOf(f);c.children=[...g.slice(0,v),h,...g.slice(v)],d=!0}d||(y=c.__r3f)==null||y.objects.push(h),h.__r3f||Qh(h,{}),h.__r3f.parent=c,Nw(h),$h(h)}}function a(c,h,f=!1){c&&[...c].forEach(d=>o(h,d,f))}function o(c,h,f){if(h){var d,p,y;if(h.__r3f&&(h.__r3f.parent=null),(d=c.__r3f)!=null&&d.objects&&(c.__r3f.objects=c.__r3f.objects.filter(A=>A!==h)),(p=h.__r3f)!=null&&p.attach)BD(c,h,h.__r3f.attach);else if(h.isObject3D&&c.isObject3D){var g;c.remove(h),(g=h.__r3f)!=null&&g.root&&nj(sy(h),h)}const x=(y=h.__r3f)==null?void 0:y.primitive,S=!x&&(f===void 0?h.dispose!==null:f);if(!x){var v;a((v=h.__r3f)==null?void 0:v.objects,h,S),a(h.children,h,S)}if(delete h.__r3f,S&&h.dispose&&h.type!=="Scene"){const A=()=>{try{h.dispose()}catch(T){}};typeof IS_REACT_ACT_ENVIRONMENT=="undefined"?Bw.unstable_scheduleCallback(Bw.unstable_IdlePriority,A):A()}$h(c)}}function s(c,h,f,d){var p;const y=(p=c.__r3f)==null?void 0:p.parent;if(!y)return;const g=t(h,f,c.__r3f.root);if(c.children){for(const v of c.children)v.__r3f&&r(g,v);c.children=c.children.filter(v=>!v.__r3f)}c.__r3f.objects.forEach(v=>r(g,v)),c.__r3f.objects=[],c.__r3f.autoRemovedBeforeAppend||o(y,c),g.parent&&(g.__r3f.autoRemovedBeforeAppend=!0),r(y,g),g.raycast&&g.__r3f.eventCount&&sy(g).getState().internal.interaction.push(g),[d,d.alternate].forEach(v=>{v!==null&&(v.stateNode=g,v.ref&&(typeof v.ref=="function"?v.ref(g):v.ref.current=g))})}const l=()=>{};return{reconciler:VZ({createInstance:t,removeChild:o,appendChild:r,appendInitialChild:r,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(c,h)=>{if(!h)return;const f=c.getState().scene;f.__r3f&&(f.__r3f.root=c,r(f,h))},removeChildFromContainer:(c,h)=>{h&&o(c.getState().scene,h)},insertInContainerBefore:(c,h,f)=>{if(!h||!f)return;const d=c.getState().scene;d.__r3f&&i(d,h,f)},getRootHostContext:()=>null,getChildHostContext:c=>c,finalizeInitialChildren(c){var h;return!!((h=c==null?void 0:c.__r3f)!=null?h:{}).handlers},prepareUpdate(c,h,f,d){var p;if(((p=c==null?void 0:c.__r3f)!=null?p:{}).primitive&&d.object&&d.object!==c)return[!0];{const g=d,{args:x=[],children:S}=g,A=di(g,["args","children"]),v=f,{args:T=[],children:w}=v,C=di(v,["args","children"]);if(!Array.isArray(x))throw new Error("R3F: the args prop must be an array!");if(x.some((E,R)=>E!==T[R]))return[!0];const P=sU(c,A,C,!0);return P.changes.length?[!1,P]:null}},commitUpdate(c,[h,f],d,p,y,g){h?s(c,d,y,g):z1(c,f)},commitMount(c,h,f,d){var p;const y=(p=c.__r3f)!=null?p:{};c.raycast&&y.handlers&&y.eventCount&&sy(c).getState().internal.interaction.push(c)},getPublicInstance:c=>c,prepareForCommit:()=>null,preparePortalMount:c=>Qh(c.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(c){var h;const{attach:f,parent:d}=(h=c.__r3f)!=null?h:{};f&&d&&BD(d,c,f),c.isObject3D&&(c.visible=!1),$h(c)},unhideInstance(c,h){var f;const{attach:d,parent:p}=(f=c.__r3f)!=null?f:{};d&&p&&G1(p,c,d),(c.isObject3D&&h.visible==null||h.visible)&&(c.visible=!0),$h(c)},createTextInstance:l,hideTextInstance:l,unhideTextInstance:l,getCurrentEventPriority:()=>e?e():hf.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:typeof performance!="undefined"&&Un.fun(performance.now)?performance.now:Un.fun(Date.now)?Date.now:()=>0,scheduleTimeout:Un.fun(setTimeout)?setTimeout:void 0,cancelTimeout:Un.fun(clearTimeout)?clearTimeout:void 0}),applyProps:z1}}var PD,DD;const U1=n=>"colorSpace"in n||"outputColorSpace"in n,tU=()=>{var n;return(n=oC.ColorManagement)!=null?n:null},nU=n=>n&&n.isOrthographicCamera,jZ=n=>n&&n.hasOwnProperty("current"),Kv=typeof window!="undefined"&&((PD=window.document)!=null&&PD.createElement||((DD=window.navigator)==null?void 0:DD.product)==="ReactNative")?q.useLayoutEffect:q.useEffect;function rU(n){const e=q.useRef(n);return Kv(()=>void(e.current=n),[n]),e}function KZ({set:n}){return Kv(()=>(n(new Promise(()=>null)),()=>n(!1)),[n]),null}class iU extends q.Component{constructor(...e){super(...e),this.state={error:!1}}componentDidCatch(e){this.props.set(e)}render(){return this.state.error?null:this.props.children}}iU.getDerivedStateFromError=()=>({error:!0});const aU="__default",ID=new Map,qZ=n=>n&&!!n.memoized&&!!n.changes;function oU(n){var e;const t=typeof window!="undefined"?(e=window.devicePixelRatio)!=null?e:2:1;return Array.isArray(n)?Math.min(Math.max(n[0],t),n[1]):n}const zd=n=>{var e;return(e=n.__r3f)==null?void 0:e.root.getState()};function sy(n){let e=n.__r3f.root;for(;e.getState().previousRoot;)e=e.getState().previousRoot;return e}const Un={obj:n=>n===Object(n)&&!Un.arr(n)&&typeof n!="function",fun:n=>typeof n=="function",str:n=>typeof n=="string",num:n=>typeof n=="number",boo:n=>typeof n=="boolean",und:n=>n===void 0,arr:n=>Array.isArray(n),equ(n,e,{arrays:t="shallow",objects:r="reference",strict:i=!0}={}){if(typeof n!=typeof e||!!n!=!!e)return!1;if(Un.str(n)||Un.num(n))return n===e;const a=Un.obj(n);if(a&&r==="reference")return n===e;const o=Un.arr(n);if(o&&t==="reference")return n===e;if((o||a)&&n===e)return!0;let s;for(s in n)if(!(s in e))return!1;if(a&&t==="shallow"&&r==="shallow"){for(s in i?e:n)if(!Un.equ(n[s],e[s],{strict:i,objects:"reference"}))return!1}else for(s in i?e:n)if(n[s]!==e[s])return!1;if(Un.und(s)){if(o&&n.length===0&&e.length===0||a&&Object.keys(n).length===0&&Object.keys(e).length===0)return!0;if(n!==e)return!1}return!0}};function QZ(n){const e={nodes:{},materials:{}};return n&&n.traverse(t=>{t.name&&(e.nodes[t.name]=t),t.material&&!e.materials[t.material.name]&&(e.materials[t.material.name]=t.material)}),e}function $Z(n){n.dispose&&n.type!=="Scene"&&n.dispose();for(const e in n)e.dispose==null||e.dispose(),delete n[e]}function Qh(n,e){const t=n;return t.__r3f=At({type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null},e),n}function Ow(n,e){let t=n;if(e.includes("-")){const r=e.split("-"),i=r.pop();return t=r.reduce((a,o)=>a[o],n),{target:t,key:i}}else return{target:t,key:e}}const LD=/-\d+$/;function G1(n,e,t){if(Un.str(t)){if(LD.test(t)){const a=t.replace(LD,""),{target:o,key:s}=Ow(n,a);Array.isArray(o[s])||(o[s]=[])}const{target:r,key:i}=Ow(n,t);e.__r3f.previousAttach=r[i],r[i]=e}else e.__r3f.previousAttach=t(n,e)}function BD(n,e,t){var r,i;if(Un.str(t)){const{target:a,key:o}=Ow(n,t),s=e.__r3f.previousAttach;s===void 0?delete a[o]:a[o]=s}else(r=e.__r3f)==null||r.previousAttach==null||r.previousAttach(n,e);(i=e.__r3f)==null||delete i.previousAttach}function sU(n,c,f={},u=!1){var h=c,{children:e,key:t,ref:r}=h,i=di(h,["children","key","ref"]);var d=f,{children:a,key:o,ref:s}=d,l=di(d,["children","key","ref"]);var p;const y=(p=n==null?void 0:n.__r3f)!=null?p:{},g=Object.entries(i),v=[];if(u){const S=Object.keys(l);for(let A=0;A{var T;if((T=n.__r3f)!=null&&T.primitive&&S==="object"||Un.equ(A,l[S]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(S))return v.push([S,A,!0,[]]);let w=[];S.includes("-")&&(w=S.split("-")),v.push([S,A,!1,w]);for(const C in i){const P=i[C];C.startsWith(`${S}-`)&&v.push([C,P,!1,C.split("-")])}});const x=At({},i);return y.memoizedProps&&y.memoizedProps.args&&(x.args=y.memoizedProps.args),y.memoizedProps&&y.memoizedProps.attach&&(x.attach=y.memoizedProps.attach),{memoized:x,changes:v}}const ej=typeof process!="undefined"&&!1;function z1(n,e){var t,r,i;const a=(t=n.__r3f)!=null?t:{},o=a.root,s=(r=o==null||o.getState==null?void 0:o.getState())!=null?r:{},{memoized:l,changes:u}=qZ(e)?e:sU(n,e),c=a.eventCount;n.__r3f&&(n.__r3f.memoizedProps=l);for(let f=0;fS[A],n),!(x&&x.set))){const[S,...A]=g.reverse();v=A.reverse().reduce((T,w)=>T[w],n),d=S}if(p===aU+"remove")if(v.constructor){let S=ID.get(v.constructor);S||(S=new v.constructor,ID.set(v.constructor,S)),p=S[d]}else p=0;if(y)p?a.handlers[d]=p:delete a.handlers[d],a.eventCount=Object.keys(a.handlers).length;else if(x&&x.set&&(x.copy||x instanceof Ac)){if(Array.isArray(p))x.fromArray?x.fromArray(p):x.set(...p);else if(x.copy&&p&&p.constructor&&(ej?x.constructor.name===p.constructor.name:x.constructor===p.constructor))x.copy(p);else if(p!==void 0){const S=x instanceof $e;!S&&x.setScalar?x.setScalar(p):x instanceof Ac&&p instanceof Ac?x.mask=p.mask:x.set(p),!tU()&&!s.linear&&S&&x.convertSRGBToLinear()}}else if(v[d]=p,v[d]instanceof Vn&&v[d].format===ni&&v[d].type===Wo){const S=v[d];U1(S)&&U1(s.gl)?S.colorSpace=s.gl.outputColorSpace:S.encoding=s.gl.outputEncoding}$h(n)}if(a.parent&&n.raycast&&c!==a.eventCount){const f=sy(n).getState().internal,d=f.interaction.indexOf(n);d>-1&&f.interaction.splice(d,1),a.eventCount&&f.interaction.push(n)}return!(u.length===1&&u[0][0]==="onUpdate")&&u.length&&(i=n.__r3f)!=null&&i.parent&&Nw(n),n}function $h(n){var e,t;const r=(e=n.__r3f)==null||(t=e.root)==null||t.getState==null?void 0:t.getState();r&&r.internal.frames===0&&r.invalidate()}function Nw(n){n.onUpdate==null||n.onUpdate(n)}function lU(n,e){n.manual||(nU(n)?(n.left=e.width/-2,n.right=e.width/2,n.top=e.height/2,n.bottom=e.height/-2):n.aspect=e.width/e.height,n.updateProjectionMatrix(),n.updateMatrixWorld())}function qm(n){return(n.eventObject||n.object).uuid+"/"+n.index+n.instanceId}function tj(){var n;const e=typeof self!="undefined"&&self||typeof window!="undefined"&&window;if(!e)return hf.DefaultEventPriority;switch((n=e.event)==null?void 0:n.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return hf.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return hf.ContinuousEventPriority;default:return hf.DefaultEventPriority}}function uU(n,e,t,r){const i=t.get(e);i&&(t.delete(e),t.size===0&&(n.delete(r),i.target.releasePointerCapture(r)))}function nj(n,e){const{internal:t}=n.getState();t.interaction=t.interaction.filter(r=>r!==e),t.initialHits=t.initialHits.filter(r=>r!==e),t.hovered.forEach((r,i)=>{(r.eventObject===e||r.object===e)&&t.hovered.delete(i)}),t.capturedMap.forEach((r,i)=>{uU(t.capturedMap,e,r,i)})}function rj(n){function e(l){const{internal:u}=n.getState(),c=l.offsetX-u.initialClick[0],h=l.offsetY-u.initialClick[1];return Math.round(Math.sqrt(c*c+h*h))}function t(l){return l.filter(u=>["Move","Over","Enter","Out","Leave"].some(c=>{var h;return(h=u.__r3f)==null?void 0:h.handlers["onPointer"+c]}))}function r(l,u){const c=n.getState(),h=new Set,f=[],d=u?u(c.internal.interaction):c.internal.interaction;for(let v=0;v{const S=zd(v.object),A=zd(x.object);return!S||!A?v.distance-x.distance:A.events.priority-S.events.priority||v.distance-x.distance}).filter(v=>{const x=qm(v);return h.has(x)?!1:(h.add(x),!0)});c.events.filter&&(y=c.events.filter(y,c));for(const v of y){let x=v.object;for(;x;){var g;(g=x.__r3f)!=null&&g.eventCount&&f.push(mr(At({},v),{eventObject:x})),x=x.parent}}if("pointerId"in l&&c.internal.capturedMap.has(l.pointerId))for(let v of c.internal.capturedMap.get(l.pointerId).values())h.has(qm(v.intersection))||f.push(v.intersection);return f}function i(l,u,c,h){const f=n.getState();if(l.length){const d={stopped:!1};for(const p of l){const y=zd(p.object)||f,{raycaster:g,pointer:v,camera:x,internal:S}=y,A=new J(v.x,v.y,0).unproject(x),T=R=>{var I,O;return(I=(O=S.capturedMap.get(R))==null?void 0:O.has(p.eventObject))!=null?I:!1},w=R=>{const I={intersection:p,target:u.target};S.capturedMap.has(R)?S.capturedMap.get(R).set(p.eventObject,I):S.capturedMap.set(R,new Map([[p.eventObject,I]])),u.target.setPointerCapture(R)},C=R=>{const I=S.capturedMap.get(R);I&&uU(S.capturedMap,p.eventObject,I,R)};let P={};for(let R in u){let I=u[R];typeof I!="function"&&(P[R]=I)}let E=mr(At(At({},p),P),{pointer:v,intersections:l,stopped:d.stopped,delta:c,unprojectedPoint:A,ray:g.ray,camera:x,stopPropagation(){const R="pointerId"in u&&S.capturedMap.get(u.pointerId);if((!R||R.has(p.eventObject))&&(E.stopped=d.stopped=!0,S.hovered.size&&Array.from(S.hovered.values()).find(I=>I.eventObject===p.eventObject))){const I=l.slice(0,l.indexOf(p));a([...I,p])}},target:{hasPointerCapture:T,setPointerCapture:w,releasePointerCapture:C},currentTarget:{hasPointerCapture:T,setPointerCapture:w,releasePointerCapture:C},nativeEvent:u});if(h(E),d.stopped===!0)break}}return l}function a(l){const{internal:u}=n.getState();for(const c of u.hovered.values())if(!l.length||!l.find(h=>h.object===c.object&&h.index===c.index&&h.instanceId===c.instanceId)){const f=c.eventObject.__r3f,d=f==null?void 0:f.handlers;if(u.hovered.delete(qm(c)),f!=null&&f.eventCount){const p=mr(At({},c),{intersections:l});d.onPointerOut==null||d.onPointerOut(p),d.onPointerLeave==null||d.onPointerLeave(p)}}}function o(l,u){for(let c=0;ca([]);case"onLostPointerCapture":return u=>{const{internal:c}=n.getState();"pointerId"in u&&c.capturedMap.has(u.pointerId)&&requestAnimationFrame(()=>{c.capturedMap.has(u.pointerId)&&(c.capturedMap.delete(u.pointerId),a([]))})}}return function(c){const{onPointerMissed:h,internal:f}=n.getState();f.lastEvent.current=c;const d=l==="onPointerMove",p=l==="onClick"||l==="onContextMenu"||l==="onDoubleClick",g=r(c,d?t:void 0),v=p?e(c):0;l==="onPointerDown"&&(f.initialClick=[c.offsetX,c.offsetY],f.initialHits=g.map(S=>S.eventObject)),p&&!g.length&&v<=2&&(o(c,f.interaction),h&&h(c)),d&&a(g);function x(S){const A=S.eventObject,T=A.__r3f,w=T==null?void 0:T.handlers;if(T!=null&&T.eventCount)if(d){if(w.onPointerOver||w.onPointerEnter||w.onPointerOut||w.onPointerLeave){const C=qm(S),P=f.hovered.get(C);P?P.stopped&&S.stopPropagation():(f.hovered.set(C,S),w.onPointerOver==null||w.onPointerOver(S),w.onPointerEnter==null||w.onPointerEnter(S))}w.onPointerMove==null||w.onPointerMove(S)}else{const C=w[l];C?(!p||f.initialHits.includes(A))&&(o(c,f.interaction.filter(P=>!f.initialHits.includes(P))),C(S)):p&&f.initialHits.includes(A)&&o(c,f.interaction.filter(P=>!f.initialHits.includes(P)))}}i(g,c,v,x)}}return{handlePointer:s}}const ij=["set","get","setSize","setFrameloop","setDpr","events","invalidate","advance","size","viewport"],cU=n=>!!(n!=null&&n.render),sC=q.createContext(null),aj=(n,e)=>{const t=Zk((s,l)=>{const u=new J,c=new J,h=new J;function f(v=l().camera,x=c,S=l().size){const{width:A,height:T,top:w,left:C}=S,P=A/T;x instanceof J?h.copy(x):h.set(...x);const E=v.getWorldPosition(u).distanceTo(h);if(nU(v))return{width:A/v.zoom,height:T/v.zoom,top:w,left:C,factor:1,distance:E,aspect:P};{const R=v.fov*Math.PI/180,I=2*Math.tan(R/2)*E,O=I*(A/T);return{width:O,height:I,top:w,left:C,factor:A/O,distance:E,aspect:P}}}let d;const p=v=>s(x=>({performance:mr(At({},x.performance),{current:v})})),y=new Re;return{set:s,get:l,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(v=1)=>n(l(),v),advance:(v,x)=>e(v,x,l()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new tC,pointer:y,mouse:y,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const v=l();d&&clearTimeout(d),v.performance.current!==v.performance.min&&p(v.performance.min),d=setTimeout(()=>p(l().performance.max),v.performance.debounce)}},size:{width:0,height:0,top:0,left:0,updateStyle:!1},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:f},setEvents:v=>s(x=>mr(At({},x),{events:At(At({},x.events),v)})),setSize:(v,x,S,A,T)=>{const w=l().camera,C={width:v,height:x,top:A||0,left:T||0,updateStyle:S};s(P=>({size:C,viewport:At(At({},P.viewport),f(w,c,C))}))},setDpr:v=>s(x=>{const S=oU(v);return{viewport:mr(At({},x.viewport),{dpr:S,initialDpr:x.viewport.initialDpr||S})}}),setFrameloop:(v="always")=>{const x=l().clock;x.stop(),x.elapsedTime=0,v!=="never"&&(x.start(),x.elapsedTime=0),s(()=>({frameloop:v}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:q.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(v,x,S)=>{const A=l().internal;return A.priority=A.priority+(x>0?1:0),A.subscribers.push({ref:v,priority:x,store:S}),A.subscribers=A.subscribers.sort((T,w)=>T.priority-w.priority),()=>{const T=l().internal;T!=null&&T.subscribers&&(T.priority=T.priority-(x>0?1:0),T.subscribers=T.subscribers.filter(w=>w.ref!==v))}}}}}),r=t.getState();let i=r.size,a=r.viewport.dpr,o=r.camera;return t.subscribe(()=>{const{camera:s,size:l,viewport:u,gl:c,set:h}=t.getState();if(l.width!==i.width||l.height!==i.height||u.dpr!==a){var f;i=l,a=u.dpr,lU(s,l),c.setPixelRatio(u.dpr);const d=(f=l.updateStyle)!=null?f:typeof HTMLCanvasElement!="undefined"&&c.domElement instanceof HTMLCanvasElement;c.setSize(l.width,l.height,d)}s!==o&&(o=s,h(d=>({viewport:At(At({},d.viewport),d.viewport.getCurrentViewport(s))})))}),t.subscribe(s=>n(s)),t};let Qm,oj=new Set,sj=new Set,lj=new Set;function H1(n,e){if(n.size)for(const{callback:t}of n.values())t(e)}function Hd(n,e){switch(n){case"before":return H1(oj,e);case"after":return H1(sj,e);case"tail":return H1(lj,e)}}let V1,W1;function X1(n,e,t){let r=e.clock.getDelta();for(e.frameloop==="never"&&typeof n=="number"&&(r=n-e.clock.elapsedTime,e.clock.oldTime=e.clock.elapsedTime,e.clock.elapsedTime=n),V1=e.internal.subscribers,Qm=0;Qm0)&&!((u=i.gl.xr)!=null&&u.isPresenting)&&(t+=X1(l,i))}if(Hd("after",l),t===0)return Hd("tail",l),e=!1,cancelAnimationFrame(r)}function o(l,u=1){var c;if(!l)return n.forEach(h=>o(h.store.getState()),u);(c=l.gl.xr)!=null&&c.isPresenting||!l.internal.active||l.frameloop==="never"||(l.internal.frames=Math.min(60,l.internal.frames+u),e||(e=!0,requestAnimationFrame(a)))}function s(l,u=!0,c,h){if(u&&Hd("before",l),c)X1(l,c,h);else for(const f of n.values())X1(l,f.store.getState());u&&Hd("after",l)}return{loop:a,invalidate:o,advance:s}}function lC(){const n=q.useContext(sC);if(!n)throw new Error("R3F: Hooks can only be used within the Canvas component!");return n}function mi(n=t=>t,e){return lC()(n,e)}function qv(n,e=0){const t=lC(),r=t.getState().internal.subscribe,i=rU(n);return Kv(()=>r(i,e,t),[e,r,t]),null}const OD=new WeakMap;function hU(n,e){return function(t,...r){let i=OD.get(t);return i||(i=new t,OD.set(t,i)),n&&n(i),Promise.all(r.map(a=>new Promise((o,s)=>i.load(a,l=>{l.scene&&Object.assign(l,QZ(l.scene)),o(l)},e,l=>s(new Error(`Could not load ${a}: ${l==null?void 0:l.message}`)))))).finally(()=>i.dispose==null?void 0:i.dispose())}}function $f(n,e,t,r){const i=Array.isArray(e)?e:[e],a=XZ(hU(t,r),[n,...i],{equal:Un.equ});return Array.isArray(e)?a:a[0]}$f.preload=function(n,e,t){const r=Array.isArray(e)?e:[e];return YZ(hU(t),[n,...r])};$f.clear=function(n,e){const t=Array.isArray(e)?e:[e];return JZ([n,...t])};const Bf=new Map,{invalidate:ND,advance:FD}=uj(Bf),{reconciler:uv,applyProps:Ih}=ZZ(Bf,tj),Lh={objects:"shallow",strict:!1},cj=(n,e)=>{const t=typeof n=="function"?n(e):n;return cU(t)?t:new LT(At({powerPreference:"high-performance",canvas:e,antialias:!0,alpha:!0},n))};function hj(n,e){const t=typeof HTMLCanvasElement!="undefined"&&n instanceof HTMLCanvasElement;if(e){const{width:r,height:i,top:a,left:o,updateStyle:s=t}=e;return{width:r,height:i,top:a,left:o,updateStyle:s}}else if(typeof HTMLCanvasElement!="undefined"&&n instanceof HTMLCanvasElement&&n.parentElement){const{width:r,height:i,top:a,left:o}=n.parentElement.getBoundingClientRect();return{width:r,height:i,top:a,left:o,updateStyle:t}}else if(typeof OffscreenCanvas!="undefined"&&n instanceof OffscreenCanvas)return{width:n.width,height:n.height,top:0,left:0,updateStyle:t};return{width:0,height:0,top:0,left:0}}function fj(n){const e=Bf.get(n),t=e==null?void 0:e.fiber,r=e==null?void 0:e.store,i=typeof reportError=="function"?reportError:console.error,a=r||aj(ND,FD),o=t||uv.createContainer(a,hf.ConcurrentRoot,null,!1,null,"",i,null);e||Bf.set(n,{fiber:o,store:a});let s,l=!1,u;return{configure(c={}){let{gl:h,size:f,scene:d,events:p,onCreated:y,shadows:g=!1,linear:v=!1,flat:x=!1,legacy:S=!1,orthographic:A=!1,frameloop:T="always",dpr:w=[1,2],performance:C,raycaster:P,camera:E,onPointerMissed:R}=c,I=a.getState(),O=I.gl;I.gl||I.set({gl:O=cj(h,n)});let U=I.raycaster;U||I.set({raycaster:U=new aC});const ce=P||{},{params:F}=ce,z=di(ce,["params"]);if(Un.equ(z,U,Lh)||Ih(U,At({},z)),Un.equ(F,U.params,Lh)||Ih(U,{params:At(At({},U.params),F)}),!I.camera||I.camera===u&&!Un.equ(u,E,Lh)){u=E;const ie=E instanceof Gv,he=ie?E:A?new Fa(0,0,0,0,.1,1e3):new zn(75,0,.1,1e3);ie||(he.position.z=5,E&&Ih(he,E),!I.camera&&!(E!=null&&E.rotation)&&he.lookAt(0,0,0)),I.set({camera:he}),U.camera=he}if(!I.scene){let ie;d instanceof rv?ie=d:(ie=new rv,d&&Ih(ie,d)),I.set({scene:Qh(ie)})}if(!I.xr){var X;const ie=(ve,Oe)=>{const Ye=a.getState();Ye.frameloop!=="never"&&FD(ve,!0,Ye,Oe)},he=()=>{const ve=a.getState();ve.gl.xr.enabled=ve.gl.xr.isPresenting,ve.gl.xr.setAnimationLoop(ve.gl.xr.isPresenting?ie:null),ve.gl.xr.isPresenting||ND(ve)},Se={connect(){const ve=a.getState().gl;ve.xr.addEventListener("sessionstart",he),ve.xr.addEventListener("sessionend",he)},disconnect(){const ve=a.getState().gl;ve.xr.removeEventListener("sessionstart",he),ve.xr.removeEventListener("sessionend",he)}};typeof((X=O.xr)==null?void 0:X.addEventListener)=="function"&&Se.connect(),I.set({xr:Se})}if(O.shadowMap){const ie=O.shadowMap.enabled,he=O.shadowMap.type;if(O.shadowMap.enabled=!!g,Un.boo(g))O.shadowMap.type=Ep;else if(Un.str(g)){var ne;const Se={basic:WF,percentage:S_,soft:Ep,variance:no};O.shadowMap.type=(ne=Se[g])!=null?ne:Ep}else Un.obj(g)&&Object.assign(O.shadowMap,g);(ie!==O.shadowMap.enabled||he!==O.shadowMap.type)&&(O.shadowMap.needsUpdate=!0)}const H=tU();H&&("enabled"in H?H.enabled=!S:"legacyMode"in H&&(H.legacyMode=S)),Ih(O,{outputEncoding:v?3e3:3001,toneMapping:x?Vo:hT}),I.legacy!==S&&I.set(()=>({legacy:S})),I.linear!==v&&I.set(()=>({linear:v})),I.flat!==x&&I.set(()=>({flat:x})),h&&!Un.fun(h)&&!cU(h)&&!Un.equ(h,O,Lh)&&Ih(O,h),p&&!I.events.handlers&&I.set({events:p(a)});const le=hj(n,f);return Un.equ(le,I.size,Lh)||I.setSize(le.width,le.height,le.updateStyle,le.top,le.left),w&&I.viewport.dpr!==oU(w)&&I.setDpr(w),I.frameloop!==T&&I.setFrameloop(T),I.onPointerMissed||I.set({onPointerMissed:R}),C&&!Un.equ(C,I.performance,Lh)&&I.set(ie=>({performance:At(At({},ie.performance),C)})),s=y,l=!0,this},render(c){return l||this.configure(),uv.updateContainer(q.createElement(dj,{store:a,children:c,onCreated:s,rootElement:n}),o,null,()=>{}),a},unmount(){fU(n)}}}function dj({store:n,children:e,onCreated:t,rootElement:r}){return Kv(()=>{const i=n.getState();i.set(a=>({internal:mr(At({},a.internal),{active:!0})})),t&&t(i),n.getState().events.connected||i.events.connect==null||i.events.connect(r)},[]),q.createElement(sC.Provider,{value:n},e)}function fU(n,e){const t=Bf.get(n),r=t==null?void 0:t.fiber;if(r){const i=t==null?void 0:t.store.getState();i&&(i.internal.active=!1),uv.updateContainer(null,r,null,()=>{i&&setTimeout(()=>{try{var a,o,s,l;i.events.disconnect==null||i.events.disconnect(),(a=i.gl)==null||(o=a.renderLists)==null||o.dispose==null||o.dispose(),(s=i.gl)==null||s.forceContextLoss==null||s.forceContextLoss(),(l=i.gl)!=null&&l.xr&&i.xr.disconnect(),$Z(i),Bf.delete(n),e&&e(n)}catch(u){}},500)})}}function pj(n,e,t){return q.createElement(vj,{key:e.uuid,children:n,container:e,state:t})}function vj({state:n={},children:e,container:t}){const h=n,{events:r,size:i}=h,a=di(h,["events","size"]),o=lC(),[s]=q.useState(()=>new aC),[l]=q.useState(()=>new Re),u=q.useCallback((f,d)=>{const p=At({},f);Object.keys(f).forEach(g=>{(ij.includes(g)||f[g]!==d[g]&&d[g])&&delete p[g]});let y;if(d&&i){const g=d.camera;y=f.viewport.getCurrentViewport(g,new J,i),g!==f.camera&&lU(g,i)}return At(mr(At({},p),{scene:t,raycaster:s,pointer:l,mouse:l,previousRoot:o,events:At(At(At({},f.events),d==null?void 0:d.events),r),size:At(At({},f.size),i),viewport:At(At({},f.viewport),y)}),a)},[n]),[c]=q.useState(()=>{const f=o.getState();return Zk((p,y)=>mr(At(mr(At({},f),{scene:t,raycaster:s,pointer:l,mouse:l,previousRoot:o,events:At(At({},f.events),r),size:At(At({},f.size),i)}),a),{set:p,get:y,setEvents:g=>p(v=>mr(At({},v),{events:At(At({},v.events),g)}))}))});return q.useEffect(()=>{const f=o.subscribe(d=>c.setState(p=>u(d,p)));return()=>{f(),c.destroy()}},[]),q.useEffect(()=>{c.setState(f=>u(o.getState(),f))},[u]),q.createElement(q.Fragment,null,uv.createPortal(q.createElement(sC.Provider,{value:c},e),c,null))}uv.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:q.version});function Fw(n,e,t){var r,i,a,o,s;e==null&&(e=100);function l(){var c=Date.now()-o;c=0?r=setTimeout(l,e-c):(r=null,t||(s=n.apply(a,i),a=i=null))}var u=function(){a=this,i=arguments,o=Date.now();var c=t&&!r;return r||(r=setTimeout(l,e)),c&&(s=n.apply(a,i),a=i=null),s};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(s=n.apply(a,i),a=i=null,clearTimeout(r),r=null)},u}Fw.debounce=Fw;var gj=Fw;const kD=zF(gj);function mj(n){let{debounce:e,scroll:t,polyfill:r,offsetSize:i}=n===void 0?{debounce:0,scroll:!1,offsetSize:!1}:n;const a=r||(typeof window=="undefined"?class{}:window.ResizeObserver);if(!a)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[o,s]=q.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=q.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o}),u=e?typeof e=="number"?e:e.scroll:null,c=e?typeof e=="number"?e:e.resize:null,h=q.useRef(!1);q.useEffect(()=>(h.current=!0,()=>void(h.current=!1)));const[f,d,p]=q.useMemo(()=>{const x=()=>{if(!l.current.element)return;const{left:S,top:A,width:T,height:w,bottom:C,right:P,x:E,y:R}=l.current.element.getBoundingClientRect(),I={left:S,top:A,width:T,height:w,bottom:C,right:P,x:E,y:R};l.current.element instanceof HTMLElement&&i&&(I.height=l.current.element.offsetHeight,I.width=l.current.element.offsetWidth),Object.freeze(I),h.current&&!Sj(l.current.lastBounds,I)&&s(l.current.lastBounds=I)};return[x,c?kD(x,c):x,u?kD(x,u):x]},[s,i,u,c]);function y(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(x=>x.removeEventListener("scroll",p,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null)}function g(){l.current.element&&(l.current.resizeObserver=new a(p),l.current.resizeObserver.observe(l.current.element),t&&l.current.scrollContainers&&l.current.scrollContainers.forEach(x=>x.addEventListener("scroll",p,{capture:!0,passive:!0})))}const v=x=>{!x||x===l.current.element||(y(),l.current.element=x,l.current.scrollContainers=dU(x),g())};return _j(p,!!t),yj(d),q.useEffect(()=>{y(),g()},[t,p,d]),q.useEffect(()=>y,[]),[v,o,f]}function yj(n){q.useEffect(()=>{const e=n;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[n])}function _j(n,e){q.useEffect(()=>{if(e){const t=n;return window.addEventListener("scroll",t,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",t,!0)}},[n,e])}function dU(n){const e=[];if(!n||n===document.body)return e;const{overflow:t,overflowX:r,overflowY:i}=window.getComputedStyle(n);return[t,r,i].some(a=>a==="auto"||a==="scroll")&&e.push(n),[...e,...dU(n.parentElement)]}const xj=["x","y","top","bottom","left","right","width","height"],Sj=(n,e)=>xj.every(t=>n[t]===e[t]),Y1={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};function Aj(n){const{handlePointer:e}=rj(n);return{priority:1,enabled:!0,compute(t,r,i){r.pointer.set(t.offsetX/r.size.width*2-1,-(t.offsetY/r.size.height)*2+1),r.raycaster.setFromCamera(r.pointer,r.camera)},connected:void 0,handlers:Object.keys(Y1).reduce((t,r)=>mr(At({},t),{[r]:e(r)}),{}),update:()=>{var t;const{events:r,internal:i}=n.getState();(t=i.lastEvent)!=null&&t.current&&r.handlers&&r.handlers.onPointerMove(i.lastEvent.current)},connect:t=>{var r;const{set:i,events:a}=n.getState();a.disconnect==null||a.disconnect(),i(o=>({events:mr(At({},o.events),{connected:t})})),Object.entries((r=a.handlers)!=null?r:[]).forEach(([o,s])=>{const[l,u]=Y1[o];t.addEventListener(l,s,{passive:u})})},disconnect:()=>{const{set:t,events:r}=n.getState();if(r.connected){var i;Object.entries((i=r.handlers)!=null?i:[]).forEach(([a,o])=>{if(r&&r.connected instanceof HTMLElement){const[s]=Y1[a];r.connected.removeEventListener(s,o)}}),t(a=>({events:mr(At({},a.events),{connected:void 0})}))}}}}const Mj=q.forwardRef(function(P,C){var E=P,{children:e,fallback:t,resize:r,style:i,gl:a,events:o=Aj,eventSource:s,eventPrefix:l,shadows:u,linear:c,flat:h,legacy:f,orthographic:d,frameloop:p,dpr:y,performance:g,raycaster:v,camera:x,scene:S,onPointerMissed:A,onCreated:T}=E,w=di(E,["children","fallback","resize","style","gl","events","eventSource","eventPrefix","shadows","linear","flat","legacy","orthographic","frameloop","dpr","performance","raycaster","camera","scene","onPointerMissed","onCreated"]);q.useMemo(()=>eU(kZ),[]);const R=WW(),[I,O]=mj(At({scroll:!0,debounce:{scroll:50,resize:0}},r)),U=q.useRef(null),F=q.useRef(null);q.useImperativeHandle(C,()=>U.current);const z=rU(A),[X,ne]=q.useState(!1),[H,j]=q.useState(!1);if(X)throw X;if(H)throw H;const $=q.useRef(null);Kv(()=>{const ce=U.current;O.width>0&&O.height>0&&ce&&($.current||($.current=fj(ce)),$.current.configure({gl:a,events:o,shadows:u,linear:c,flat:h,legacy:f,orthographic:d,frameloop:p,dpr:y,performance:g,raycaster:v,camera:x,scene:S,size:O,onPointerMissed:(...ie)=>z.current==null?void 0:z.current(...ie),onCreated:ie=>{ie.events.connect==null||ie.events.connect(s?jZ(s)?s.current:s:F.current),l&&ie.setEvents({compute:(he,Se)=>{const ve=he[l+"X"],Oe=he[l+"Y"];Se.pointer.set(ve/Se.size.width*2-1,-(Oe/Se.size.height)*2+1),Se.raycaster.setFromCamera(Se.pointer,Se.camera)}}),T==null||T(ie)}}),$.current.render(q.createElement(R,null,q.createElement(iU,{set:j},q.createElement(q.Suspense,{fallback:q.createElement(KZ,{set:ne})},e)))))}),q.useEffect(()=>{const ce=U.current;if(ce)return()=>fU(ce)},[]);const le=s?"none":"auto";return q.createElement("div",Yf({ref:F,style:At({position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:le},i)},w),q.createElement("div",{ref:I,style:{width:"100%",height:"100%"}},q.createElement("canvas",{ref:U,style:{display:"block"}},t)))}),wj=q.forwardRef(function(e,t){return q.createElement(VW,null,q.createElement(Mj,Yf({},e,{ref:t})))}),Qv=new J,uC=new J,bj=new J;function Tj(n,e,t){const r=Qv.setFromMatrixPosition(n.matrixWorld);r.project(e);const i=t.width/2,a=t.height/2;return[r.x*i+i,-(r.y*a)+a]}function Cj(n,e){const t=Qv.setFromMatrixPosition(n.matrixWorld),r=uC.setFromMatrixPosition(e.matrixWorld),i=t.sub(r),a=e.getWorldDirection(bj);return i.angleTo(a)>Math.PI/2}function Ej(n,e,t,r){const i=Qv.setFromMatrixPosition(n.matrixWorld),a=i.clone();a.project(e),t.setFromCamera(a,e);const o=t.intersectObjects(r,!0);if(o.length){const s=o[0].distance;return i.distanceTo(t.ray.origin)Math.abs(n)<1e-10?0:n;function pU(n,e,t=""){let r="matrix3d(";for(let i=0;i!==16;i++)r+=kw(e[i]*n.elements[i])+(i!==15?",":")");return t+r}const Dj=(n=>e=>pU(e,n))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),Ij=(n=>(e,t)=>pU(e,n(t),"translate(-50%,-50%)"))(n=>[1/n,1/n,1/n,1,-1/n,-1/n,-1/n,-1,1/n,1/n,1/n,1,1,1,1,1]);function Lj(n){return n&&typeof n=="object"&&"current"in n}const Bj=q.forwardRef((P,C)=>{var E=P,{children:n,eps:e=.001,style:t,className:r,prepend:i,center:a,fullscreen:o,portal:s,distanceFactor:l,sprite:u=!1,transform:c=!1,occlude:h,onOcclude:f,castShadow:d,receiveShadow:p,material:y,geometry:g,zIndexRange:v=[16777271,0],calculatePosition:x=Tj,as:S="div",wrapperClass:A,pointerEvents:T="auto"}=E,w=di(E,["children","eps","style","className","prepend","center","fullscreen","portal","distanceFactor","sprite","transform","occlude","onOcclude","castShadow","receiveShadow","material","geometry","zIndexRange","calculatePosition","as","wrapperClass","pointerEvents"]);const{gl:R,camera:I,scene:O,size:U,raycaster:F,events:z,viewport:X}=mi(),[ne]=q.useState(()=>document.createElement(S)),H=q.useRef(),j=q.useRef(null),$=q.useRef(0),le=q.useRef([0,0]),ce=q.useRef(null),ie=q.useRef(null),he=(s==null?void 0:s.current)||z.connected||R.domElement.parentNode,Se=q.useRef(null),ve=q.useRef(!1),Oe=q.useMemo(()=>h&&h!=="blending"||Array.isArray(h)&&h.length&&Lj(h[0]),[h]);q.useLayoutEffect(()=>{const Z=R.domElement;h&&h==="blending"?(Z.style.zIndex=`${Math.floor(v[0]/2)}`,Z.style.position="absolute",Z.style.pointerEvents="none"):(Z.style.zIndex=null,Z.style.position=null,Z.style.pointerEvents=null)},[h]),q.useLayoutEffect(()=>{if(j.current){const Z=H.current=XW(ne);if(O.updateMatrixWorld(),c)ne.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const xe=x(j.current,I,U);ne.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${xe[0]}px,${xe[1]}px,0);transform-origin:0 0;`}return he&&(i?he.prepend(ne):he.appendChild(ne)),()=>{he&&he.removeChild(ne),Z.unmount()}}},[he,c]),q.useLayoutEffect(()=>{A&&(ne.className=A)},[A]);const Ye=q.useMemo(()=>c?{position:"absolute",top:0,left:0,width:U.width,height:U.height,transformStyle:"preserve-3d",pointerEvents:"none"}:At(At({position:"absolute",transform:a?"translate3d(-50%,-50%,0)":"none"},o&&{top:-U.height/2,left:-U.width/2,width:U.width,height:U.height}),t),[t,a,o,U,c]),tt=q.useMemo(()=>({position:"absolute",pointerEvents:T}),[T]);q.useLayoutEffect(()=>{if(ve.current=!1,c){var Z;(Z=H.current)==null||Z.render(q.createElement("div",{ref:ce,style:Ye},q.createElement("div",{ref:ie,style:tt},q.createElement("div",{ref:C,className:r,style:t,children:n}))))}else{var xe;(xe=H.current)==null||xe.render(q.createElement("div",{ref:C,style:Ye,className:r,children:n}))}});const ze=q.useRef(!0);qv(Z=>{if(j.current){I.updateMatrixWorld(),j.current.updateWorldMatrix(!0,!1);const xe=c?le.current:x(j.current,I,U);if(c||Math.abs($.current-I.zoom)>e||Math.abs(le.current[0]-xe[0])>e||Math.abs(le.current[1]-xe[1])>e){const ge=Cj(j.current,I);let Pe=!1;Oe&&(Array.isArray(h)?Pe=h.map(W=>W.current):h!=="blending"&&(Pe=[O]));const _e=ze.current;if(Pe){const W=Ej(j.current,I,F,Pe);ze.current=W&&!ge}else ze.current=!ge;_e!==ze.current&&(f?f(!ze.current):ne.style.display=ze.current?"block":"none");const et=Math.floor(v[0]/2),Je=h?Oe?[v[0],et]:[et-1,0]:v;if(ne.style.zIndex=`${Pj(j.current,I,Je)}`,c){const[W,G]=[U.width/2,U.height/2],de=I.projectionMatrix.elements[5]*G,{isOrthographicCamera:Ne,top:Le,left:Be,bottom:ht,right:je}=I,it=Dj(I.matrixWorldInverse),_t=Ne?`scale(${de})translate(${kw(-(je+Be)/2)}px,${kw((Le+ht)/2)}px)`:`translateZ(${de}px)`;let xt=j.current.matrixWorld;u&&(xt=I.matrixWorldInverse.clone().transpose().copyPosition(xt).scale(j.current.scale),xt.elements[3]=xt.elements[7]=xt.elements[11]=0,xt.elements[15]=1),ne.style.width=U.width+"px",ne.style.height=U.height+"px",ne.style.perspective=Ne?"":`${de}px`,ce.current&&ie.current&&(ce.current.style.transform=`${_t}${it}translate(${W}px,${G}px)`,ie.current.style.transform=Ij(xt,1/((l||10)/400)))}else{const W=l===void 0?1:Rj(j.current,I)*l;ne.style.transform=`translate3d(${xe[0]}px,${xe[1]}px,0) scale(${W})`}le.current=xe,$.current=I.zoom}}if(!Oe&&Se.current&&!ve.current)if(c){if(ce.current){const xe=ce.current.children[0];if(xe!=null&&xe.clientWidth&&xe!=null&&xe.clientHeight){const{isOrthographicCamera:ge}=I;if(ge||g)w.scale&&(Array.isArray(w.scale)?w.scale instanceof J?Se.current.scale.copy(w.scale.clone().divideScalar(1)):Se.current.scale.set(1/w.scale[0],1/w.scale[1],1/w.scale[2]):Se.current.scale.setScalar(1/w.scale));else{const Pe=(l||10)/400,_e=xe.clientWidth*Pe,et=xe.clientHeight*Pe;Se.current.scale.set(_e,et,1)}ve.current=!0}}}else{const xe=ne.children[0];if(xe!=null&&xe.clientWidth&&xe!=null&&xe.clientHeight){const ge=1/X.factor,Pe=xe.clientWidth*ge,_e=xe.clientHeight*ge;Se.current.scale.set(Pe,_e,1),ve.current=!0}Se.current.lookAt(Z.camera.position)}});const Ie=q.useMemo(()=>({vertexShader:c?void 0:` /* This shader is from the THREE's SpriteMaterial. We need to turn the backing plane into a Sprite @@ -3758,7 +3750,7 @@ No matching component was found for: void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); } - `}),[c]);return Y.createElement("group",td({},w,{ref:K}),h&&!Be&&Y.createElement("mesh",{castShadow:d,receiveShadow:p,ref:_e},g||Y.createElement("planeGeometry",null),y||Y.createElement("shaderMaterial",{side:ea,vertexShader:Ie.vertexShader,fragmentShader:Ie.fragmentShader})))});function MI(n,e){if(e===bk)return n;if(e===t_||e===KT){let t=n.getIndex();if(t===null){const o=[],s=n.getAttribute("position");if(s!==void 0){for(let l=0;l>>1|(Vn&21845)<<1;dl=(dl&52428)>>>2|(dl&13107)<<2,dl=(dl&61680)>>>4|(dl&3855)<<4,vb[Vn]=((dl&65280)>>>8|(dl&255)<<8)>>>1}var jp=function(n,e,t){for(var r=n.length,i=0,a=new Rl(e);i>>l]=u}else for(s=new Rl(r),i=0;i>>15-n[i]);return s},gg=new Oa(288);for(var Vn=0;Vn<144;++Vn)gg[Vn]=8;for(var Vn=144;Vn<256;++Vn)gg[Vn]=9;for(var Vn=256;Vn<280;++Vn)gg[Vn]=7;for(var Vn=280;Vn<288;++Vn)gg[Vn]=8;var dG=new Oa(32);for(var Vn=0;Vn<32;++Vn)dG[Vn]=5;var Wq=jp(gg,9,1),Xq=jp(dG,5,1),mA=function(n){for(var e=n[0],t=1;te&&(e=n[t]);return e},qa=function(n,e,t){var r=e/8|0;return(n[r]|n[r+1]<<8)>>(e&7)&t},yA=function(n,e){var t=e/8|0;return(n[t]|n[t+1]<<8|n[t+2]<<16)>>(e&7)},Yq=function(n){return(n/8|0)+(n&7&&1)},jq=function(n,e,t){(e==null||e<0)&&(e=0),(t==null||t>n.length)&&(t=n.length);var r=new(n instanceof Rl?Rl:n instanceof pb?pb:Oa)(t-e);return r.set(n.subarray(e,t)),r},Jq=function(n,e,t){var r=n.length;if(!r||t&&!t.l&&r<5)return e||new Oa(0);var i=!e||t,a=!t||t.i;t||(t={}),e||(e=new Oa(r*3));var o=function(ge){var Be=e.length;if(ge>Be){var Ye=new Oa(Math.max(Be*2,ge));Ye.set(e),e=Ye}},s=t.f||0,l=t.p||0,u=t.b||0,c=t.l,h=t.d,f=t.m,d=t.n,p=r*8;do{if(!c){t.f=s=qa(n,l,1);var y=qa(n,l+1,3);if(l+=3,y)if(y==1)c=Wq,h=Xq,f=9,d=5;else if(y==2){var S=qa(n,l,31)+257,A=qa(n,l+10,15)+4,b=S+qa(n,l+5,31)+1;l+=14;for(var w=new Oa(b),C=new Oa(19),P=0;P>>4;if(g<16)w[P++]=g;else{var k=0,N=0;for(g==16?(N=3+qa(n,l,3),l+=2,k=w[P-1]):g==17?(N=3+qa(n,l,7),l+=3):g==18&&(N=11+qa(n,l,127),l+=7);N--;)w[P++]=k}}var z=w.subarray(0,S),X=w.subarray(S);f=mA(z),d=mA(X),c=jp(z,f,1),h=jp(X,d,1)}else throw"invalid block type";else{var g=Yq(l)+4,v=n[g-4]|n[g-3]<<8,x=g+v;if(x>r){if(a)throw"unexpected EOF";break}i&&o(u+v),e.set(n.subarray(g,x),u),t.b=u+=v,t.p=l=x*8;continue}if(l>p){if(a)throw"unexpected EOF";break}}i&&o(u+131072);for(var ne=(1<>>4;if(l+=k&15,l>p){if(a)throw"unexpected EOF";break}if(!k)throw"invalid length/literal";if(Q<256)e[u++]=Q;else if(Q==256){K=l,c=null;break}else{var le=Q-254;if(Q>264){var P=Q-257,he=lG[P];le=qa(n,l,(1<>>4;if(!re)throw"invalid distance";l+=re&15;var X=Vq[ce];if(ce>3){var he=uG[ce];X+=yA(n,l)&(1<p){if(a)throw"unexpected EOF";break}i&&o(u+131072);for(var _e=u+le;u<_e;u+=4)e[u]=e[u-X],e[u+1]=e[u+1-X],e[u+2]=e[u+2-X],e[u+3]=e[u+3-X];u=_e}}t.l=c,t.p=K,t.b=u,c&&(s=1,t.m=f,t.d=h,t.n=d)}while(!s);return u==e.length?e:jq(e,0,u)},Zq=new Oa(0),Kq=function(n){if((n[0]&15)!=8||n[0]>>>4>7||(n[0]<<8|n[1])%31)throw"invalid zlib data";if(n[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function _y(n,e){return Jq((Kq(n),n.subarray(2,-4)),e)}var qq=typeof TextDecoder!="undefined"&&new TextDecoder,$q=0;try{qq.decode(Zq,{stream:!0}),$q=1}catch(n){}const Qq=n=>n&&n.isCubeTexture;class e$ extends ur{constructor(e,t){var r,i;const a=Qq(e),s=((i=a?(r=e.image[0])==null?void 0:r.width:e.image.width)!=null?i:1024)/4,l=Math.floor(Math.log2(s)),u=Math.pow(2,l),c=3*Math.max(u,16*7),h=4*u,f=[a?"#define ENVMAP_TYPE_CUBE":"",`#define CUBEUV_TEXEL_WIDTH ${1/c}`,`#define CUBEUV_TEXEL_HEIGHT ${1/h}`,`#define CUBEUV_MAX_MIP ${l}.0`],d=` + `}),[c]);return q.createElement("group",Yf({},w,{ref:j}),h&&!Oe&&q.createElement("mesh",{castShadow:d,receiveShadow:p,ref:Se},g||q.createElement("planeGeometry",null),y||q.createElement("shaderMaterial",{side:Qi,vertexShader:Ie.vertexShader,fragmentShader:Ie.fragmentShader})))});function UD(n,e){if(e===I3)return n;if(e===Py||e===ST){let t=n.getIndex();if(t===null){const o=[],s=n.getAttribute("position");if(s!==void 0){for(let l=0;l>>1|(Hn&21845)<<1;ul=(ul&52428)>>>2|(ul&13107)<<2,ul=(ul&61680)>>>4|(ul&3855)<<4,Gw[Hn]=((ul&65280)>>>8|(ul&255)<<8)>>>1}var Lp=function(n,e,t){for(var r=n.length,i=0,a=new wl(e);i>>l]=u}else for(s=new wl(r),i=0;i>>15-n[i]);return s},$v=new Ba(288);for(var Hn=0;Hn<144;++Hn)$v[Hn]=8;for(var Hn=144;Hn<256;++Hn)$v[Hn]=9;for(var Hn=256;Hn<280;++Hn)$v[Hn]=7;for(var Hn=280;Hn<288;++Hn)$v[Hn]=8;var xU=new Ba(32);for(var Hn=0;Hn<32;++Hn)xU[Hn]=5;var Gj=Lp($v,9,1),zj=Lp(xU,5,1),J1=function(n){for(var e=n[0],t=1;te&&(e=n[t]);return e},Ka=function(n,e,t){var r=e/8|0;return(n[r]|n[r+1]<<8)>>(e&7)&t},Z1=function(n,e){var t=e/8|0;return(n[t]|n[t+1]<<8|n[t+2]<<16)>>(e&7)},Hj=function(n){return(n/8|0)+(n&7&&1)},Vj=function(n,e,t){(e==null||e<0)&&(e=0),(t==null||t>n.length)&&(t=n.length);var r=new(n instanceof wl?wl:n instanceof Uw?Uw:Ba)(t-e);return r.set(n.subarray(e,t)),r},Wj=function(n,e,t){var r=n.length;if(!r||t&&!t.l&&r<5)return e||new Ba(0);var i=!e||t,a=!t||t.i;t||(t={}),e||(e=new Ba(r*3));var o=function(ve){var Oe=e.length;if(ve>Oe){var Ye=new Ba(Math.max(Oe*2,ve));Ye.set(e),e=Ye}},s=t.f||0,l=t.p||0,u=t.b||0,c=t.l,h=t.d,f=t.m,d=t.n,p=r*8;do{if(!c){t.f=s=Ka(n,l,1);var y=Ka(n,l+1,3);if(l+=3,y)if(y==1)c=Gj,h=zj,f=9,d=5;else if(y==2){var S=Ka(n,l,31)+257,A=Ka(n,l+10,15)+4,T=S+Ka(n,l+5,31)+1;l+=14;for(var w=new Ba(T),C=new Ba(19),P=0;P>>4;if(g<16)w[P++]=g;else{var U=0,F=0;for(g==16?(F=3+Ka(n,l,3),l+=2,U=w[P-1]):g==17?(F=3+Ka(n,l,7),l+=3):g==18&&(F=11+Ka(n,l,127),l+=7);F--;)w[P++]=U}}var z=w.subarray(0,S),X=w.subarray(S);f=J1(z),d=J1(X),c=Lp(z,f,1),h=Lp(X,d,1)}else throw"invalid block type";else{var g=Hj(l)+4,v=n[g-4]|n[g-3]<<8,x=g+v;if(x>r){if(a)throw"unexpected EOF";break}i&&o(u+v),e.set(n.subarray(g,x),u),t.b=u+=v,t.p=l=x*8;continue}if(l>p){if(a)throw"unexpected EOF";break}}i&&o(u+131072);for(var ne=(1<>>4;if(l+=U&15,l>p){if(a)throw"unexpected EOF";break}if(!U)throw"invalid length/literal";if($<256)e[u++]=$;else if($==256){j=l,c=null;break}else{var le=$-254;if($>264){var P=$-257,ce=vU[P];le=Ka(n,l,(1<>>4;if(!ie)throw"invalid distance";l+=ie&15;var X=Uj[he];if(he>3){var ce=gU[he];X+=Z1(n,l)&(1<p){if(a)throw"unexpected EOF";break}i&&o(u+131072);for(var Se=u+le;u>>4>7||(n[0]<<8|n[1])%31)throw"invalid zlib data";if(n[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function $m(n,e){return Wj((Yj(n),n.subarray(2,-4)),e)}var Jj=typeof TextDecoder!="undefined"&&new TextDecoder,Zj=0;try{Jj.decode(Xj,{stream:!0}),Zj=1}catch(n){}const jj=n=>n&&n.isCubeTexture;class Kj extends sr{constructor(e,t){var r,i;const a=jj(e),s=((i=a?(r=e.image[0])==null?void 0:r.width:e.image.width)!=null?i:1024)/4,l=Math.floor(Math.log2(s)),u=Math.pow(2,l),c=3*Math.max(u,16*7),h=4*u,f=[a?"#define ENVMAP_TYPE_CUBE":"",`#define CUBEUV_TEXEL_WIDTH ${1/c}`,`#define CUBEUV_TEXEL_HEIGHT ${1/h}`,`#define CUBEUV_MAX_MIP ${l}.0`],d=` varying vec3 vWorldPosition; void main() { @@ -3837,9 +3829,9 @@ No matching component was found for: #endif gl_FragColor = vec4( outcolor, 1.0 ); #include - #include <${parseInt(nd.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}> + #include <${parseInt(Jf.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}> } - `,y={map:{value:e},height:{value:(t==null?void 0:t.height)||15},radius:{value:(t==null?void 0:t.radius)||100}},g=new ug(1,16),v=new sa({uniforms:y,fragmentShader:p,vertexShader:d,side:ea});super(g,v)}set radius(e){this.material.uniforms.radius.value=e}get radius(){return this.material.uniforms.radius.value}set height(e){this.material.uniforms.height.value=e}get height(){return this.material.uniforms.height.value}}var t$=Object.defineProperty,n$=(n,e,t)=>e in n?t$(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Gt=(n,e,t)=>(n$(n,typeof e!="symbol"?e+"":e,t),t);const xy=new Zc,wI=new Es,r$=Math.cos(70*(Math.PI/180)),bI=(n,e)=>(n%e+e)%e;let i$=class extends is{constructor(e,t){super(),Gt(this,"object"),Gt(this,"domElement"),Gt(this,"enabled",!0),Gt(this,"target",new J),Gt(this,"minDistance",0),Gt(this,"maxDistance",1/0),Gt(this,"minZoom",0),Gt(this,"maxZoom",1/0),Gt(this,"minPolarAngle",0),Gt(this,"maxPolarAngle",Math.PI),Gt(this,"minAzimuthAngle",-1/0),Gt(this,"maxAzimuthAngle",1/0),Gt(this,"enableDamping",!1),Gt(this,"dampingFactor",.05),Gt(this,"enableZoom",!0),Gt(this,"zoomSpeed",1),Gt(this,"enableRotate",!0),Gt(this,"rotateSpeed",1),Gt(this,"enablePan",!0),Gt(this,"panSpeed",1),Gt(this,"screenSpacePanning",!0),Gt(this,"keyPanSpeed",7),Gt(this,"zoomToCursor",!1),Gt(this,"autoRotate",!1),Gt(this,"autoRotateSpeed",2),Gt(this,"reverseOrbit",!1),Gt(this,"reverseHorizontalOrbit",!1),Gt(this,"reverseVerticalOrbit",!1),Gt(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),Gt(this,"mouseButtons",{LEFT:ec.ROTATE,MIDDLE:ec.DOLLY,RIGHT:ec.PAN}),Gt(this,"touches",{ONE:tc.ROTATE,TWO:tc.DOLLY_PAN}),Gt(this,"target0"),Gt(this,"position0"),Gt(this,"zoom0"),Gt(this,"_domElementKeyEvents",null),Gt(this,"getPolarAngle"),Gt(this,"getAzimuthalAngle"),Gt(this,"setPolarAngle"),Gt(this,"setAzimuthalAngle"),Gt(this,"getDistance"),Gt(this,"listenToKeyEvents"),Gt(this,"stopListenToKeyEvents"),Gt(this,"saveState"),Gt(this,"reset"),Gt(this,"update"),Gt(this,"connect"),Gt(this,"dispose"),this.object=e,this.domElement=t,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>c.phi,this.getAzimuthalAngle=()=>c.theta,this.setPolarAngle=oe=>{let we=bI(oe,2*Math.PI),Ue=c.phi;Ue<0&&(Ue+=2*Math.PI),we<0&&(we+=2*Math.PI);let ot=Math.abs(we-Ue);2*Math.PI-ot{let we=bI(oe,2*Math.PI),Ue=c.theta;Ue<0&&(Ue+=2*Math.PI),we<0&&(we+=2*Math.PI);let ot=Math.abs(we-Ue);2*Math.PI-otr.object.position.distanceTo(r.target),this.listenToKeyEvents=oe=>{oe.addEventListener("keydown",_t),this._domElementKeyEvents=oe},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",_t),this._domElementKeyEvents=null},this.saveState=()=>{r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=()=>{r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(i),r.update(),l=s.NONE},this.update=(()=>{const oe=new J,we=new J(0,1,0),Ue=new Or().setFromUnitVectors(e.up,we),ot=Ue.clone().invert(),ue=new J,ie=new Or,We=2*Math.PI;return function(){const Et=r.object.position;Ue.setFromUnitVectors(e.up,we),ot.copy(Ue).invert(),oe.copy(Et).sub(r.target),oe.applyQuaternion(Ue),c.setFromVector3(oe),r.autoRotate&&l===s.NONE&&N(B()),r.enableDamping?(c.theta+=h.theta*r.dampingFactor,c.phi+=h.phi*r.dampingFactor):(c.theta+=h.theta,c.phi+=h.phi);let St=r.minAzimuthAngle,Qt=r.maxAzimuthAngle;isFinite(St)&&isFinite(Qt)&&(St<-Math.PI?St+=We:St>Math.PI&&(St-=We),Qt<-Math.PI?Qt+=We:Qt>Math.PI&&(Qt-=We),St<=Qt?c.theta=Math.max(St,Math.min(Qt,c.theta)):c.theta=c.theta>(St+Qt)/2?Math.max(St,c.theta):Math.min(Qt,c.theta)),c.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,c.phi)),c.makeSafe(),r.enableDamping===!0?r.target.addScaledVector(d,r.dampingFactor):r.target.add(d),r.zoomToCursor&&E||r.object.isOrthographicCamera?c.radius=he(c.radius):c.radius=he(c.radius*f),oe.setFromSpherical(c),oe.applyQuaternion(ot),Et.copy(r.target).add(oe),r.object.matrixAutoUpdate||r.object.updateMatrix(),r.object.lookAt(r.target),r.enableDamping===!0?(h.theta*=1-r.dampingFactor,h.phi*=1-r.dampingFactor,d.multiplyScalar(1-r.dampingFactor)):(h.set(0,0,0),d.set(0,0,0));let fn=!1;if(r.zoomToCursor&&E){let Rn=null;if(r.object instanceof Hn&&r.object.isPerspectiveCamera){const Fn=oe.length();Rn=he(Fn*f);const pn=Fn-Rn;r.object.position.addScaledVector(C,pn),r.object.updateMatrixWorld()}else if(r.object.isOrthographicCamera){const Fn=new J(P.x,P.y,0);Fn.unproject(r.object),r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/f)),r.object.updateProjectionMatrix(),fn=!0;const pn=new J(P.x,P.y,0);pn.unproject(r.object),r.object.position.sub(pn).add(Fn),r.object.updateMatrixWorld(),Rn=oe.length()}else r.zoomToCursor=!1;Rn!==null&&(r.screenSpacePanning?r.target.set(0,0,-1).transformDirection(r.object.matrix).multiplyScalar(Rn).add(r.object.position):(xy.origin.copy(r.object.position),xy.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(xy.direction))u||8*(1-ie.dot(r.object.quaternion))>u?(r.dispatchEvent(i),ue.copy(r.object.position),ie.copy(r.object.quaternion),fn=!1,!0):!1}})(),this.connect=oe=>{r.domElement=oe,r.domElement.style.touchAction="none",r.domElement.addEventListener("contextmenu",vt),r.domElement.addEventListener("pointerdown",de),r.domElement.addEventListener("pointercancel",Le),r.domElement.addEventListener("wheel",rt)},this.dispose=()=>{var oe,we,Ue,ot,ue,ie;(oe=r.domElement)==null||oe.removeEventListener("contextmenu",vt),(we=r.domElement)==null||we.removeEventListener("pointerdown",de),(Ue=r.domElement)==null||Ue.removeEventListener("pointercancel",Le),(ot=r.domElement)==null||ot.removeEventListener("wheel",rt),(ue=r.domElement)==null||ue.ownerDocument.removeEventListener("pointermove",Fe),(ie=r.domElement)==null||ie.ownerDocument.removeEventListener("pointerup",Re),r._domElementKeyEvents!==null&&r._domElementKeyEvents.removeEventListener("keydown",_t)};const r=this,i={type:"change"},a={type:"start"},o={type:"end"},s={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=s.NONE;const u=1e-6,c=new lb,h=new lb;let f=1;const d=new J,p=new De,y=new De,g=new De,v=new De,x=new De,S=new De,A=new De,b=new De,w=new De,C=new J,P=new De;let E=!1;const R=[],D={};function B(){return 2*Math.PI/60/60*r.autoRotateSpeed}function k(){return Math.pow(.95,r.zoomSpeed)}function N(oe){r.reverseOrbit||r.reverseHorizontalOrbit?h.theta+=oe:h.theta-=oe}function z(oe){r.reverseOrbit||r.reverseVerticalOrbit?h.phi+=oe:h.phi-=oe}const X=(()=>{const oe=new J;return function(Ue,ot){oe.setFromMatrixColumn(ot,0),oe.multiplyScalar(-Ue),d.add(oe)}})(),ne=(()=>{const oe=new J;return function(Ue,ot){r.screenSpacePanning===!0?oe.setFromMatrixColumn(ot,1):(oe.setFromMatrixColumn(ot,0),oe.crossVectors(r.object.up,oe)),oe.multiplyScalar(Ue),d.add(oe)}})(),H=(()=>{const oe=new J;return function(Ue,ot){const ue=r.domElement;if(ue&&r.object instanceof Hn&&r.object.isPerspectiveCamera){const ie=r.object.position;oe.copy(ie).sub(r.target);let We=oe.length();We*=Math.tan(r.object.fov/2*Math.PI/180),X(2*Ue*We/ue.clientHeight,r.object.matrix),ne(2*ot*We/ue.clientHeight,r.object.matrix)}else ue&&r.object instanceof ka&&r.object.isOrthographicCamera?(X(Ue*(r.object.right-r.object.left)/r.object.zoom/ue.clientWidth,r.object.matrix),ne(ot*(r.object.top-r.object.bottom)/r.object.zoom/ue.clientHeight,r.object.matrix)):r.enablePan=!1}})();function K(oe){r.object instanceof Hn&&r.object.isPerspectiveCamera||r.object instanceof ka&&r.object.isOrthographicCamera?f/=oe:r.enableZoom=!1}function Q(oe){r.object instanceof Hn&&r.object.isPerspectiveCamera||r.object instanceof ka&&r.object.isOrthographicCamera?f*=oe:r.enableZoom=!1}function le(oe){if(!r.zoomToCursor||!r.domElement)return;E=!0;const we=r.domElement.getBoundingClientRect(),Ue=oe.clientX-we.left,ot=oe.clientY-we.top,ue=we.width,ie=we.height;P.x=Ue/ue*2-1,P.y=-(ot/ie)*2+1,C.set(P.x,P.y,1).unproject(r.object).sub(r.object.position).normalize()}function he(oe){return Math.max(r.minDistance,Math.min(r.maxDistance,oe))}function re(oe){p.set(oe.clientX,oe.clientY)}function ce(oe){le(oe),A.set(oe.clientX,oe.clientY)}function _e(oe){v.set(oe.clientX,oe.clientY)}function ge(oe){y.set(oe.clientX,oe.clientY),g.subVectors(y,p).multiplyScalar(r.rotateSpeed);const we=r.domElement;we&&(N(2*Math.PI*g.x/we.clientHeight),z(2*Math.PI*g.y/we.clientHeight)),p.copy(y),r.update()}function Be(oe){b.set(oe.clientX,oe.clientY),w.subVectors(b,A),w.y>0?K(k()):w.y<0&&Q(k()),A.copy(b),r.update()}function Ye(oe){x.set(oe.clientX,oe.clientY),S.subVectors(x,v).multiplyScalar(r.panSpeed),H(S.x,S.y),v.copy(x),r.update()}function Ke(oe){le(oe),oe.deltaY<0?Q(k()):oe.deltaY>0&&K(k()),r.update()}function Ne(oe){let we=!1;switch(oe.code){case r.keys.UP:H(0,r.keyPanSpeed),we=!0;break;case r.keys.BOTTOM:H(0,-r.keyPanSpeed),we=!0;break;case r.keys.LEFT:H(r.keyPanSpeed,0),we=!0;break;case r.keys.RIGHT:H(-r.keyPanSpeed,0),we=!0;break}we&&(oe.preventDefault(),r.update())}function Ie(){if(R.length==1)p.set(R[0].pageX,R[0].pageY);else{const oe=.5*(R[0].pageX+R[1].pageX),we=.5*(R[0].pageY+R[1].pageY);p.set(oe,we)}}function Z(){if(R.length==1)v.set(R[0].pageX,R[0].pageY);else{const oe=.5*(R[0].pageX+R[1].pageX),we=.5*(R[0].pageY+R[1].pageY);v.set(oe,we)}}function Se(){const oe=R[0].pageX-R[1].pageX,we=R[0].pageY-R[1].pageY,Ue=Math.sqrt(oe*oe+we*we);A.set(0,Ue)}function ve(){r.enableZoom&&Se(),r.enablePan&&Z()}function Pe(){r.enableZoom&&Se(),r.enableRotate&&Ie()}function me(oe){if(R.length==1)y.set(oe.pageX,oe.pageY);else{const Ue=je(oe),ot=.5*(oe.pageX+Ue.x),ue=.5*(oe.pageY+Ue.y);y.set(ot,ue)}g.subVectors(y,p).multiplyScalar(r.rotateSpeed);const we=r.domElement;we&&(N(2*Math.PI*g.x/we.clientHeight),z(2*Math.PI*g.y/we.clientHeight)),p.copy(y)}function et(oe){if(R.length==1)x.set(oe.pageX,oe.pageY);else{const we=je(oe),Ue=.5*(oe.pageX+we.x),ot=.5*(oe.pageY+we.y);x.set(Ue,ot)}S.subVectors(x,v).multiplyScalar(r.panSpeed),H(S.x,S.y),v.copy(x)}function Xe(oe){const we=je(oe),Ue=oe.pageX-we.x,ot=oe.pageY-we.y,ue=Math.sqrt(Ue*Ue+ot*ot);b.set(0,ue),w.set(0,Math.pow(b.y/A.y,r.zoomSpeed)),K(w.y),A.copy(b)}function V(oe){r.enableZoom&&Xe(oe),r.enablePan&&et(oe)}function G(oe){r.enableZoom&&Xe(oe),r.enableRotate&&me(oe)}function de(oe){var we,Ue;r.enabled!==!1&&(R.length===0&&((we=r.domElement)==null||we.ownerDocument.addEventListener("pointermove",Fe),(Ue=r.domElement)==null||Ue.ownerDocument.addEventListener("pointerup",Re)),ft(oe),oe.pointerType==="touch"?ht(oe):st(oe))}function Fe(oe){r.enabled!==!1&&(oe.pointerType==="touch"?ke(oe):Je(oe))}function Re(oe){var we,Ue,ot;it(oe),R.length===0&&((we=r.domElement)==null||we.releasePointerCapture(oe.pointerId),(Ue=r.domElement)==null||Ue.ownerDocument.removeEventListener("pointermove",Fe),(ot=r.domElement)==null||ot.ownerDocument.removeEventListener("pointerup",Re)),r.dispatchEvent(o),l=s.NONE}function Le(oe){it(oe)}function st(oe){let we;switch(oe.button){case 0:we=r.mouseButtons.LEFT;break;case 1:we=r.mouseButtons.MIDDLE;break;case 2:we=r.mouseButtons.RIGHT;break;default:we=-1}switch(we){case ec.DOLLY:if(r.enableZoom===!1)return;ce(oe),l=s.DOLLY;break;case ec.ROTATE:if(oe.ctrlKey||oe.metaKey||oe.shiftKey){if(r.enablePan===!1)return;_e(oe),l=s.PAN}else{if(r.enableRotate===!1)return;re(oe),l=s.ROTATE}break;case ec.PAN:if(oe.ctrlKey||oe.metaKey||oe.shiftKey){if(r.enableRotate===!1)return;re(oe),l=s.ROTATE}else{if(r.enablePan===!1)return;_e(oe),l=s.PAN}break;default:l=s.NONE}l!==s.NONE&&r.dispatchEvent(a)}function Je(oe){if(r.enabled!==!1)switch(l){case s.ROTATE:if(r.enableRotate===!1)return;ge(oe);break;case s.DOLLY:if(r.enableZoom===!1)return;Be(oe);break;case s.PAN:if(r.enablePan===!1)return;Ye(oe);break}}function rt(oe){r.enabled===!1||r.enableZoom===!1||l!==s.NONE&&l!==s.ROTATE||(oe.preventDefault(),r.dispatchEvent(a),Ke(oe),r.dispatchEvent(o))}function _t(oe){r.enabled===!1||r.enablePan===!1||Ne(oe)}function ht(oe){switch(qe(oe),R.length){case 1:switch(r.touches.ONE){case tc.ROTATE:if(r.enableRotate===!1)return;Ie(),l=s.TOUCH_ROTATE;break;case tc.PAN:if(r.enablePan===!1)return;Z(),l=s.TOUCH_PAN;break;default:l=s.NONE}break;case 2:switch(r.touches.TWO){case tc.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;ve(),l=s.TOUCH_DOLLY_PAN;break;case tc.DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;Pe(),l=s.TOUCH_DOLLY_ROTATE;break;default:l=s.NONE}break;default:l=s.NONE}l!==s.NONE&&r.dispatchEvent(a)}function ke(oe){switch(qe(oe),l){case s.TOUCH_ROTATE:if(r.enableRotate===!1)return;me(oe),r.update();break;case s.TOUCH_PAN:if(r.enablePan===!1)return;et(oe),r.update();break;case s.TOUCH_DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;V(oe),r.update();break;case s.TOUCH_DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;G(oe),r.update();break;default:l=s.NONE}}function vt(oe){r.enabled!==!1&&oe.preventDefault()}function ft(oe){R.push(oe)}function it(oe){delete D[oe.pointerId];for(let we=0;we=2.0 are supported."));return}const l=new O$(a,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});l.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u=0&&s[c]}}l.setExtensions(o),l.setPlugins(s),l.parse(r,i)}parseAsync(e,t){const r=this;return new Promise(function(i,a){r.parse(e,t,i,a)})}}function a$(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const vn={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class o${constructor(e){this.parser=e,this.name=vn.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let r=0,i=t.length;r=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,a.source,o)}}class y${constructor(e){this.parser=e,this.name=vn.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,r=this.parser,i=r.json,a=i.textures[e];if(!a.extensions||!a.extensions[t])return null;const o=a.extensions[t],s=i.images[o.source];let l=r.textureLoader;if(s.uri){const u=r.options.manager.getHandler(s.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return r.loadTextureImage(e,o.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return r.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class _${constructor(e){this.parser=e,this.name=vn.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,r=this.parser,i=r.json,a=i.textures[e];if(!a.extensions||!a.extensions[t])return null;const o=a.extensions[t],s=i.images[o.source];let l=r.textureLoader;if(s.uri){const u=r.options.manager.getHandler(s.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return r.loadTextureImage(e,o.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return r.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class x${constructor(e){this.name=vn.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,r=t.bufferViews[e];if(r.extensions&&r.extensions[this.name]){const i=r.extensions[this.name],a=this.parser.getDependency("buffer",i.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return a.then(function(s){const l=i.byteOffset||0,u=i.byteLength||0,c=i.count,h=i.byteStride,f=new Uint8Array(s,l,u);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(c,h,f,i.mode,i.filter).then(function(d){return d.buffer}):o.ready.then(function(){const d=new ArrayBuffer(c*h);return o.decodeGltfBuffer(new Uint8Array(d),c,h,f,i.mode,i.filter),d})})}else return null}}class S${constructor(e){this.name=vn.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,r=t.nodes[e];if(!r.extensions||!r.extensions[this.name]||r.mesh===void 0)return null;const i=t.meshes[r.mesh];for(const u of i.primitives)if(u.mode!==Ta.TRIANGLES&&u.mode!==Ta.TRIANGLE_STRIP&&u.mode!==Ta.TRIANGLE_FAN&&u.mode!==void 0)return null;const o=r.extensions[this.name].attributes,s=[],l={};for(const u in o)s.push(this.parser.getDependency("accessor",o[u]).then(c=>(l[u]=c,l[u])));return s.length<1?null:(s.push(this.parser.createNodeMesh(e)),Promise.all(s).then(u=>{const c=u.pop(),h=c.isGroup?c.children:[c],f=u[0].count,d=[];for(const p of h){const y=new Bt,g=new J,v=new Or,x=new J(1,1,1),S=new hC(p.geometry,p.material,f);for(let A=0;A=152?{TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3"}:{TEXCOORD_0:"uv",TEXCOORD_1:"uv2"}),{COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"}),pl={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},E$={CUBICSPLINE:void 0,LINEAR:Vc,STEP:Of},xA={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function R$(n){return n.DefaultMaterial===void 0&&(n.DefaultMaterial=new fg({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:Ko})),n.DefaultMaterial}function Ru(n,e,t){for(const r in t.extensions)n[r]===void 0&&(e.userData.gltfExtensions=e.userData.gltfExtensions||{},e.userData.gltfExtensions[r]=t.extensions[r])}function Tl(n,e){e.extras!==void 0&&typeof e.extras=="object"&&Object.assign(n.userData,e.extras)}function P$(n,e,t){let r=!1,i=!1,a=!1;for(let u=0,c=e.length;u0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const B$=new Bt;class O${constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new a$,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let r=!1,i=!1,a=-1;typeof navigator!="undefined"&&typeof navigator.userAgent!="undefined"&&(r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,i=navigator.userAgent.indexOf("Firefox")>-1,a=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap=="undefined"||r||i&&a<98?this.textureLoader=new CU(this.options.manager):this.textureLoader=new OU(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new la(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const r=this,i=this.json,a=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([r.getDependencies("scene"),r.getDependencies("animation"),r.getDependencies("camera")])}).then(function(o){const s={scene:o[0][i.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:i.asset,parser:r,userData:{}};Ru(a,s,i),Tl(s,i),Promise.all(r._invokeAll(function(l){return l.afterRoot&&l.afterRoot(s)})).then(function(){e(s)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],r=this.json.meshes||[];for(let i=0,a=t.length;i{const l=this.associations.get(o);l!=null&&this.associations.set(s,l);for(const[u,c]of o.children.entries())a(c,s.children[u])};return a(r,i),i.name+="_instance_"+e.uses[t]++,i}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let r=0;r=2&&g.setY(E,w[C*l+1]),l>=3&&g.setZ(E,w[C*l+2]),l>=4&&g.setW(E,w[C*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return g})}loadTexture(e){const t=this.json,r=this.options,a=t.textures[e].source,o=t.images[a];let s=this.textureLoader;if(o.uri){const l=r.manager.getHandler(o.uri);l!==null&&(s=l)}return this.loadTextureImage(e,a,s)}loadTextureImage(e,t,r){const i=this,a=this.json,o=a.textures[e],s=a.images[t],l=(s.uri||s.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const u=this.loadImageSource(t,r).then(function(c){c.flipY=!1,c.name=o.name||s.name||"",c.name===""&&typeof s.uri=="string"&&s.uri.startsWith("data:image/")===!1&&(c.name=s.uri);const f=(a.samplers||{})[o.sampler]||{};return c.magFilter=CI[f.magFilter]||On,c.minFilter=CI[f.minFilter]||$o,c.wrapS=EI[f.wrapS]||Yl,c.wrapT=EI[f.wrapT]||Yl,i.associations.set(c,{textures:e}),c}).catch(function(){return null});return this.textureCache[l]=u,u}loadImageSource(e,t){const r=this,i=this.json,a=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(h=>h.clone());const o=i.images[e],s=self.URL||self.webkitURL;let l=o.uri||"",u=!1;if(o.bufferView!==void 0)l=r.getDependency("bufferView",o.bufferView).then(function(h){u=!0;const f=new Blob([h],{type:o.mimeType});return l=s.createObjectURL(f),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const c=Promise.resolve(l).then(function(h){return new Promise(function(f,d){let p=f;t.isImageBitmapLoader===!0&&(p=function(y){const g=new Wn(y);g.needsUpdate=!0,f(g)}),t.load(jo.resolveURL(h,a.path),p,void 0,d)})}).then(function(h){return u===!0&&s.revokeObjectURL(l),h.userData.mimeType=o.mimeType||L$(o.uri),h}).catch(function(h){throw h});return this.sourceCache[e]=c,c}assignTexture(e,t,r,i){const a=this;return this.getDependency("texture",r.index).then(function(o){if(!o)return null;if(r.texCoord!==void 0&&r.texCoord>0&&(o=o.clone(),o.channel=r.texCoord),a.extensions[vn.KHR_TEXTURE_TRANSFORM]){const s=r.extensions!==void 0?r.extensions[vn.KHR_TEXTURE_TRANSFORM]:void 0;if(s){const l=a.associations.get(o);o=a.extensions[vn.KHR_TEXTURE_TRANSFORM].extendTexture(o,s),a.associations.set(o,l)}}return i!==void 0&&("colorSpace"in o?o.colorSpace=i===3001?"srgb":"srgb-linear":o.encoding=i),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let r=e.material;const i=t.attributes.tangent===void 0,a=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const s="PointsMaterial:"+r.uuid;let l=this.cache.get(s);l||(l=new ix,Ar.prototype.copy.call(l,r),l.color.copy(r.color),l.map=r.map,l.sizeAttenuation=!1,this.cache.add(s,l)),r=l}else if(e.isLine){const s="LineBasicMaterial:"+r.uuid;let l=this.cache.get(s);l||(l=new ci,Ar.prototype.copy.call(l,r),l.color.copy(r.color),l.map=r.map,this.cache.add(s,l)),r=l}if(i||a||o){let s="ClonedMaterial:"+r.uuid+":";i&&(s+="derivative-tangents:"),a&&(s+="vertex-colors:"),o&&(s+="flat-shading:");let l=this.cache.get(s);l||(l=r.clone(),a&&(l.vertexColors=!0),o&&(l.flatShading=!0),i&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(s,l),this.associations.set(l,this.associations.get(r))),r=l}e.material=r}getMaterialType(){return fg}loadMaterial(e){const t=this,r=this.json,i=this.extensions,a=r.materials[e];let o;const s={},l=a.extensions||{},u=[];if(l[vn.KHR_MATERIALS_UNLIT]){const h=i[vn.KHR_MATERIALS_UNLIT];o=h.getMaterialType(),u.push(h.extendParams(s,a,t))}else{const h=a.pbrMetallicRoughness||{};if(s.color=new at(1,1,1),s.opacity=1,Array.isArray(h.baseColorFactor)){const f=h.baseColorFactor;s.color.fromArray(f),s.opacity=f[3]}h.baseColorTexture!==void 0&&u.push(t.assignTexture(s,"map",h.baseColorTexture,3001)),s.metalness=h.metallicFactor!==void 0?h.metallicFactor:1,s.roughness=h.roughnessFactor!==void 0?h.roughnessFactor:1,h.metallicRoughnessTexture!==void 0&&(u.push(t.assignTexture(s,"metalnessMap",h.metallicRoughnessTexture)),u.push(t.assignTexture(s,"roughnessMap",h.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),u.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,s)})))}a.doubleSided===!0&&(s.side=ea);const c=a.alphaMode||xA.OPAQUE;if(c===xA.BLEND?(s.transparent=!0,s.depthWrite=!1):(s.transparent=!1,c===xA.MASK&&(s.alphaTest=a.alphaCutoff!==void 0?a.alphaCutoff:.5)),a.normalTexture!==void 0&&o!==na&&(u.push(t.assignTexture(s,"normalMap",a.normalTexture)),s.normalScale=new De(1,1),a.normalTexture.scale!==void 0)){const h=a.normalTexture.scale;s.normalScale.set(h,h)}return a.occlusionTexture!==void 0&&o!==na&&(u.push(t.assignTexture(s,"aoMap",a.occlusionTexture)),a.occlusionTexture.strength!==void 0&&(s.aoMapIntensity=a.occlusionTexture.strength)),a.emissiveFactor!==void 0&&o!==na&&(s.emissive=new at().fromArray(a.emissiveFactor)),a.emissiveTexture!==void 0&&o!==na&&u.push(t.assignTexture(s,"emissiveMap",a.emissiveTexture,3001)),Promise.all(u).then(function(){const h=new o(s);return a.name&&(h.name=a.name),Tl(h,a),t.associations.set(h,{materials:e}),a.extensions&&Ru(i,h,a),h})}createUniqueName(e){const t=mn.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,r=this.extensions,i=this.primitiveCache;function a(s){return r[vn.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(s,t).then(function(l){return RI(l,s,t)})}const o=[];for(let s=0,l=e.length;s0&&D$(v,a),v.name=t.createUniqueName(a.name||"mesh_"+e),Tl(v,a),g.extensions&&Ru(i,v,g),t.assignFinalMaterial(v),h.push(v)}for(let d=0,p=h.length;d1?c=new Ds:u.length===1?c=u[0]:c=new yn,c!==u[0])for(let h=0,f=u.length;h{const h=new Map;for(const[f,d]of i.associations)(f instanceof Ar||f instanceof Wn)&&h.set(f,d);return c.traverse(f=>{const d=i.associations.get(f);d!=null&&h.set(f,d)}),h};return i.associations=u(a),a})}}function F$(n,e,t){const r=e.attributes,i=new oi;if(r.POSITION!==void 0){const s=t.json.accessors[r.POSITION],l=s.min,u=s.max;if(l!==void 0&&u!==void 0){if(i.set(new J(l[0],l[1],l[2]),new J(u[0],u[1],u[2])),s.normalized){const c=mb(wf[s.componentType]);i.min.multiplyScalar(c),i.max.multiplyScalar(c)}}else return}else return;const a=e.targets;if(a!==void 0){const s=new J,l=new J;for(let u=0,c=a.length;ue in n?qj(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Ft=(n,e,t)=>(Qj(n,typeof e!="symbol"?e+"":e,t),t);const e0=new Hc,GD=new bs,$j=Math.cos(70*(Math.PI/180)),zD=(n,e)=>(n%e+e)%e;let eK=class extends rs{constructor(e,t){super(),Ft(this,"object"),Ft(this,"domElement"),Ft(this,"enabled",!0),Ft(this,"target",new J),Ft(this,"minDistance",0),Ft(this,"maxDistance",1/0),Ft(this,"minZoom",0),Ft(this,"maxZoom",1/0),Ft(this,"minPolarAngle",0),Ft(this,"maxPolarAngle",Math.PI),Ft(this,"minAzimuthAngle",-1/0),Ft(this,"maxAzimuthAngle",1/0),Ft(this,"enableDamping",!1),Ft(this,"dampingFactor",.05),Ft(this,"enableZoom",!0),Ft(this,"zoomSpeed",1),Ft(this,"enableRotate",!0),Ft(this,"rotateSpeed",1),Ft(this,"enablePan",!0),Ft(this,"panSpeed",1),Ft(this,"screenSpacePanning",!0),Ft(this,"keyPanSpeed",7),Ft(this,"zoomToCursor",!1),Ft(this,"autoRotate",!1),Ft(this,"autoRotateSpeed",2),Ft(this,"reverseOrbit",!1),Ft(this,"reverseHorizontalOrbit",!1),Ft(this,"reverseVerticalOrbit",!1),Ft(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),Ft(this,"mouseButtons",{LEFT:Zu.ROTATE,MIDDLE:Zu.DOLLY,RIGHT:Zu.PAN}),Ft(this,"touches",{ONE:ju.ROTATE,TWO:ju.DOLLY_PAN}),Ft(this,"target0"),Ft(this,"position0"),Ft(this,"zoom0"),Ft(this,"_domElementKeyEvents",null),Ft(this,"getPolarAngle"),Ft(this,"getAzimuthalAngle"),Ft(this,"setPolarAngle"),Ft(this,"setAzimuthalAngle"),Ft(this,"getDistance"),Ft(this,"listenToKeyEvents"),Ft(this,"stopListenToKeyEvents"),Ft(this,"saveState"),Ft(this,"reset"),Ft(this,"update"),Ft(this,"connect"),Ft(this,"dispose"),this.object=e,this.domElement=t,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>c.phi,this.getAzimuthalAngle=()=>c.theta,this.setPolarAngle=ae=>{let Ee=zD(ae,2*Math.PI),Ve=c.phi;Ve<0&&(Ve+=2*Math.PI),Ee<0&&(Ee+=2*Math.PI);let nt=Math.abs(Ee-Ve);2*Math.PI-nt{let Ee=zD(ae,2*Math.PI),Ve=c.theta;Ve<0&&(Ve+=2*Math.PI),Ee<0&&(Ee+=2*Math.PI);let nt=Math.abs(Ee-Ve);2*Math.PI-ntr.object.position.distanceTo(r.target),this.listenToKeyEvents=ae=>{ae.addEventListener("keydown",_t),this._domElementKeyEvents=ae},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",_t),this._domElementKeyEvents=null},this.saveState=()=>{r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=()=>{r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(i),r.update(),l=s.NONE},this.update=(()=>{const ae=new J,Ee=new J(0,1,0),Ve=new Lr().setFromUnitVectors(e.up,Ee),nt=Ve.clone().invert(),pe=new J,se=new Lr,Xe=2*Math.PI;return function(){const Et=r.object.position;Ve.setFromUnitVectors(e.up,Ee),nt.copy(Ve).invert(),ae.copy(Et).sub(r.target),ae.applyQuaternion(Ve),c.setFromVector3(ae),r.autoRotate&&l===s.NONE&&F(O()),r.enableDamping?(c.theta+=h.theta*r.dampingFactor,c.phi+=h.phi*r.dampingFactor):(c.theta+=h.theta,c.phi+=h.phi);let gt=r.minAzimuthAngle,qt=r.maxAzimuthAngle;isFinite(gt)&&isFinite(qt)&&(gt<-Math.PI?gt+=Xe:gt>Math.PI&&(gt-=Xe),qt<-Math.PI?qt+=Xe:qt>Math.PI&&(qt-=Xe),gt<=qt?c.theta=Math.max(gt,Math.min(qt,c.theta)):c.theta=c.theta>(gt+qt)/2?Math.max(gt,c.theta):Math.min(qt,c.theta)),c.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,c.phi)),c.makeSafe(),r.enableDamping===!0?r.target.addScaledVector(d,r.dampingFactor):r.target.add(d),r.zoomToCursor&&E||r.object.isOrthographicCamera?c.radius=ce(c.radius):c.radius=ce(c.radius*f),ae.setFromSpherical(c),ae.applyQuaternion(nt),Et.copy(r.target).add(ae),r.object.matrixAutoUpdate||r.object.updateMatrix(),r.object.lookAt(r.target),r.enableDamping===!0?(h.theta*=1-r.dampingFactor,h.phi*=1-r.dampingFactor,d.multiplyScalar(1-r.dampingFactor)):(h.set(0,0,0),d.set(0,0,0));let hn=!1;if(r.zoomToCursor&&E){let En=null;if(r.object instanceof zn&&r.object.isPerspectiveCamera){const On=ae.length();En=ce(On*f);const dn=On-En;r.object.position.addScaledVector(C,dn),r.object.updateMatrixWorld()}else if(r.object.isOrthographicCamera){const On=new J(P.x,P.y,0);On.unproject(r.object),r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/f)),r.object.updateProjectionMatrix(),hn=!0;const dn=new J(P.x,P.y,0);dn.unproject(r.object),r.object.position.sub(dn).add(On),r.object.updateMatrixWorld(),En=ae.length()}else r.zoomToCursor=!1;En!==null&&(r.screenSpacePanning?r.target.set(0,0,-1).transformDirection(r.object.matrix).multiplyScalar(En).add(r.object.position):(e0.origin.copy(r.object.position),e0.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(e0.direction))<$j?e.lookAt(r.target):(GD.setFromNormalAndCoplanarPoint(r.object.up,r.target),e0.intersectPlane(GD,r.target))))}else r.object instanceof Fa&&r.object.isOrthographicCamera&&(hn=f!==1,hn&&(r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/f)),r.object.updateProjectionMatrix()));return f=1,E=!1,hn||pe.distanceToSquared(r.object.position)>u||8*(1-se.dot(r.object.quaternion))>u?(r.dispatchEvent(i),pe.copy(r.object.position),se.copy(r.object.quaternion),hn=!1,!0):!1}})(),this.connect=ae=>{r.domElement=ae,r.domElement.style.touchAction="none",r.domElement.addEventListener("contextmenu",un),r.domElement.addEventListener("pointerdown",de),r.domElement.addEventListener("pointercancel",Be),r.domElement.addEventListener("wheel",it)},this.dispose=()=>{var ae,Ee,Ve,nt,pe,se;(ae=r.domElement)==null||ae.removeEventListener("contextmenu",un),(Ee=r.domElement)==null||Ee.removeEventListener("pointerdown",de),(Ve=r.domElement)==null||Ve.removeEventListener("pointercancel",Be),(nt=r.domElement)==null||nt.removeEventListener("wheel",it),(pe=r.domElement)==null||pe.ownerDocument.removeEventListener("pointermove",Ne),(se=r.domElement)==null||se.ownerDocument.removeEventListener("pointerup",Le),r._domElementKeyEvents!==null&&r._domElementKeyEvents.removeEventListener("keydown",_t)};const r=this,i={type:"change"},a={type:"start"},o={type:"end"},s={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=s.NONE;const u=1e-6,c=new Lw,h=new Lw;let f=1;const d=new J,p=new Re,y=new Re,g=new Re,v=new Re,x=new Re,S=new Re,A=new Re,T=new Re,w=new Re,C=new J,P=new Re;let E=!1;const R=[],I={};function O(){return 2*Math.PI/60/60*r.autoRotateSpeed}function U(){return Math.pow(.95,r.zoomSpeed)}function F(ae){r.reverseOrbit||r.reverseHorizontalOrbit?h.theta+=ae:h.theta-=ae}function z(ae){r.reverseOrbit||r.reverseVerticalOrbit?h.phi+=ae:h.phi-=ae}const X=(()=>{const ae=new J;return function(Ve,nt){ae.setFromMatrixColumn(nt,0),ae.multiplyScalar(-Ve),d.add(ae)}})(),ne=(()=>{const ae=new J;return function(Ve,nt){r.screenSpacePanning===!0?ae.setFromMatrixColumn(nt,1):(ae.setFromMatrixColumn(nt,0),ae.crossVectors(r.object.up,ae)),ae.multiplyScalar(Ve),d.add(ae)}})(),H=(()=>{const ae=new J;return function(Ve,nt){const pe=r.domElement;if(pe&&r.object instanceof zn&&r.object.isPerspectiveCamera){const se=r.object.position;ae.copy(se).sub(r.target);let Xe=ae.length();Xe*=Math.tan(r.object.fov/2*Math.PI/180),X(2*Ve*Xe/pe.clientHeight,r.object.matrix),ne(2*nt*Xe/pe.clientHeight,r.object.matrix)}else pe&&r.object instanceof Fa&&r.object.isOrthographicCamera?(X(Ve*(r.object.right-r.object.left)/r.object.zoom/pe.clientWidth,r.object.matrix),ne(nt*(r.object.top-r.object.bottom)/r.object.zoom/pe.clientHeight,r.object.matrix)):r.enablePan=!1}})();function j(ae){r.object instanceof zn&&r.object.isPerspectiveCamera||r.object instanceof Fa&&r.object.isOrthographicCamera?f/=ae:r.enableZoom=!1}function $(ae){r.object instanceof zn&&r.object.isPerspectiveCamera||r.object instanceof Fa&&r.object.isOrthographicCamera?f*=ae:r.enableZoom=!1}function le(ae){if(!r.zoomToCursor||!r.domElement)return;E=!0;const Ee=r.domElement.getBoundingClientRect(),Ve=ae.clientX-Ee.left,nt=ae.clientY-Ee.top,pe=Ee.width,se=Ee.height;P.x=Ve/pe*2-1,P.y=-(nt/se)*2+1,C.set(P.x,P.y,1).unproject(r.object).sub(r.object.position).normalize()}function ce(ae){return Math.max(r.minDistance,Math.min(r.maxDistance,ae))}function ie(ae){p.set(ae.clientX,ae.clientY)}function he(ae){le(ae),A.set(ae.clientX,ae.clientY)}function Se(ae){v.set(ae.clientX,ae.clientY)}function ve(ae){y.set(ae.clientX,ae.clientY),g.subVectors(y,p).multiplyScalar(r.rotateSpeed);const Ee=r.domElement;Ee&&(F(2*Math.PI*g.x/Ee.clientHeight),z(2*Math.PI*g.y/Ee.clientHeight)),p.copy(y),r.update()}function Oe(ae){T.set(ae.clientX,ae.clientY),w.subVectors(T,A),w.y>0?j(U()):w.y<0&&$(U()),A.copy(T),r.update()}function Ye(ae){x.set(ae.clientX,ae.clientY),S.subVectors(x,v).multiplyScalar(r.panSpeed),H(S.x,S.y),v.copy(x),r.update()}function tt(ae){le(ae),ae.deltaY<0?$(U()):ae.deltaY>0&&j(U()),r.update()}function ze(ae){let Ee=!1;switch(ae.code){case r.keys.UP:H(0,r.keyPanSpeed),Ee=!0;break;case r.keys.BOTTOM:H(0,-r.keyPanSpeed),Ee=!0;break;case r.keys.LEFT:H(r.keyPanSpeed,0),Ee=!0;break;case r.keys.RIGHT:H(-r.keyPanSpeed,0),Ee=!0;break}Ee&&(ae.preventDefault(),r.update())}function Ie(){if(R.length==1)p.set(R[0].pageX,R[0].pageY);else{const ae=.5*(R[0].pageX+R[1].pageX),Ee=.5*(R[0].pageY+R[1].pageY);p.set(ae,Ee)}}function Z(){if(R.length==1)v.set(R[0].pageX,R[0].pageY);else{const ae=.5*(R[0].pageX+R[1].pageX),Ee=.5*(R[0].pageY+R[1].pageY);v.set(ae,Ee)}}function xe(){const ae=R[0].pageX-R[1].pageX,Ee=R[0].pageY-R[1].pageY,Ve=Math.sqrt(ae*ae+Ee*Ee);A.set(0,Ve)}function ge(){r.enableZoom&&xe(),r.enablePan&&Z()}function Pe(){r.enableZoom&&xe(),r.enableRotate&&Ie()}function _e(ae){if(R.length==1)y.set(ae.pageX,ae.pageY);else{const Ve=lt(ae),nt=.5*(ae.pageX+Ve.x),pe=.5*(ae.pageY+Ve.y);y.set(nt,pe)}g.subVectors(y,p).multiplyScalar(r.rotateSpeed);const Ee=r.domElement;Ee&&(F(2*Math.PI*g.x/Ee.clientHeight),z(2*Math.PI*g.y/Ee.clientHeight)),p.copy(y)}function et(ae){if(R.length==1)x.set(ae.pageX,ae.pageY);else{const Ee=lt(ae),Ve=.5*(ae.pageX+Ee.x),nt=.5*(ae.pageY+Ee.y);x.set(Ve,nt)}S.subVectors(x,v).multiplyScalar(r.panSpeed),H(S.x,S.y),v.copy(x)}function Je(ae){const Ee=lt(ae),Ve=ae.pageX-Ee.x,nt=ae.pageY-Ee.y,pe=Math.sqrt(Ve*Ve+nt*nt);T.set(0,pe),w.set(0,Math.pow(T.y/A.y,r.zoomSpeed)),j(w.y),A.copy(T)}function W(ae){r.enableZoom&&Je(ae),r.enablePan&&et(ae)}function G(ae){r.enableZoom&&Je(ae),r.enableRotate&&_e(ae)}function de(ae){var Ee,Ve;r.enabled!==!1&&(R.length===0&&((Ee=r.domElement)==null||Ee.ownerDocument.addEventListener("pointermove",Ne),(Ve=r.domElement)==null||Ve.ownerDocument.addEventListener("pointerup",Le)),Ht(ae),ae.pointerType==="touch"?xt(ae):ht(ae))}function Ne(ae){r.enabled!==!1&&(ae.pointerType==="touch"?Fe(ae):je(ae))}function Le(ae){var Ee,Ve,nt;Ct(ae),R.length===0&&((Ee=r.domElement)==null||Ee.releasePointerCapture(ae.pointerId),(Ve=r.domElement)==null||Ve.ownerDocument.removeEventListener("pointermove",Ne),(nt=r.domElement)==null||nt.ownerDocument.removeEventListener("pointerup",Le)),r.dispatchEvent(o),l=s.NONE}function Be(ae){Ct(ae)}function ht(ae){let Ee;switch(ae.button){case 0:Ee=r.mouseButtons.LEFT;break;case 1:Ee=r.mouseButtons.MIDDLE;break;case 2:Ee=r.mouseButtons.RIGHT;break;default:Ee=-1}switch(Ee){case Zu.DOLLY:if(r.enableZoom===!1)return;he(ae),l=s.DOLLY;break;case Zu.ROTATE:if(ae.ctrlKey||ae.metaKey||ae.shiftKey){if(r.enablePan===!1)return;Se(ae),l=s.PAN}else{if(r.enableRotate===!1)return;ie(ae),l=s.ROTATE}break;case Zu.PAN:if(ae.ctrlKey||ae.metaKey||ae.shiftKey){if(r.enableRotate===!1)return;ie(ae),l=s.ROTATE}else{if(r.enablePan===!1)return;Se(ae),l=s.PAN}break;default:l=s.NONE}l!==s.NONE&&r.dispatchEvent(a)}function je(ae){if(r.enabled!==!1)switch(l){case s.ROTATE:if(r.enableRotate===!1)return;ve(ae);break;case s.DOLLY:if(r.enableZoom===!1)return;Oe(ae);break;case s.PAN:if(r.enablePan===!1)return;Ye(ae);break}}function it(ae){r.enabled===!1||r.enableZoom===!1||l!==s.NONE&&l!==s.ROTATE||(ae.preventDefault(),r.dispatchEvent(a),tt(ae),r.dispatchEvent(o))}function _t(ae){r.enabled===!1||r.enablePan===!1||ze(ae)}function xt(ae){switch(st(ae),R.length){case 1:switch(r.touches.ONE){case ju.ROTATE:if(r.enableRotate===!1)return;Ie(),l=s.TOUCH_ROTATE;break;case ju.PAN:if(r.enablePan===!1)return;Z(),l=s.TOUCH_PAN;break;default:l=s.NONE}break;case 2:switch(r.touches.TWO){case ju.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;ge(),l=s.TOUCH_DOLLY_PAN;break;case ju.DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;Pe(),l=s.TOUCH_DOLLY_ROTATE;break;default:l=s.NONE}break;default:l=s.NONE}l!==s.NONE&&r.dispatchEvent(a)}function Fe(ae){switch(st(ae),l){case s.TOUCH_ROTATE:if(r.enableRotate===!1)return;_e(ae),r.update();break;case s.TOUCH_PAN:if(r.enablePan===!1)return;et(ae),r.update();break;case s.TOUCH_DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;W(ae),r.update();break;case s.TOUCH_DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;G(ae),r.update();break;default:l=s.NONE}}function un(ae){r.enabled!==!1&&ae.preventDefault()}function Ht(ae){R.push(ae)}function Ct(ae){delete I[ae.pointerId];for(let Ee=0;Ee=2.0 are supported."));return}const l=new DK(a,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});l.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u=0&&s[c]}}l.setExtensions(o),l.setPlugins(s),l.parse(r,i)}parseAsync(e,t){const r=this;return new Promise(function(i,a){r.parse(e,t,i,a)})}}function tK(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const pn={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class nK{constructor(e){this.parser=e,this.name=pn.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let r=0,i=t.length;r=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,a.source,o)}}class pK{constructor(e){this.parser=e,this.name=pn.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,r=this.parser,i=r.json,a=i.textures[e];if(!a.extensions||!a.extensions[t])return null;const o=a.extensions[t],s=i.images[o.source];let l=r.textureLoader;if(s.uri){const u=r.options.manager.getHandler(s.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return r.loadTextureImage(e,o.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return r.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class vK{constructor(e){this.parser=e,this.name=pn.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,r=this.parser,i=r.json,a=i.textures[e];if(!a.extensions||!a.extensions[t])return null;const o=a.extensions[t],s=i.images[o.source];let l=r.textureLoader;if(s.uri){const u=r.options.manager.getHandler(s.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return r.loadTextureImage(e,o.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return r.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class gK{constructor(e){this.name=pn.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,r=t.bufferViews[e];if(r.extensions&&r.extensions[this.name]){const i=r.extensions[this.name],a=this.parser.getDependency("buffer",i.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return a.then(function(s){const l=i.byteOffset||0,u=i.byteLength||0,c=i.count,h=i.byteStride,f=new Uint8Array(s,l,u);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(c,h,f,i.mode,i.filter).then(function(d){return d.buffer}):o.ready.then(function(){const d=new ArrayBuffer(c*h);return o.decodeGltfBuffer(new Uint8Array(d),c,h,f,i.mode,i.filter),d})})}else return null}}class mK{constructor(e){this.name=pn.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,r=t.nodes[e];if(!r.extensions||!r.extensions[this.name]||r.mesh===void 0)return null;const i=t.meshes[r.mesh];for(const u of i.primitives)if(u.mode!==ba.TRIANGLES&&u.mode!==ba.TRIANGLE_STRIP&&u.mode!==ba.TRIANGLE_FAN&&u.mode!==void 0)return null;const o=r.extensions[this.name].attributes,s=[],l={};for(const u in o)s.push(this.parser.getDependency("accessor",o[u]).then(c=>(l[u]=c,l[u])));return s.length<1?null:(s.push(this.parser.createNodeMesh(e)),Promise.all(s).then(u=>{const c=u.pop(),h=c.isGroup?c.children:[c],f=u[0].count,d=[];for(const p of h){const y=new Dt,g=new J,v=new Lr,x=new J(1,1,1),S=new NT(p.geometry,p.material,f);for(let A=0;A=152?{TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3"}:{TEXCOORD_0:"uv",TEXCOORD_1:"uv2"}),{COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"}),cl={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},wK={CUBICSPLINE:void 0,LINEAR:Nc,STEP:Tf},K1={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function bK(n){return n.DefaultMaterial===void 0&&(n.DefaultMaterial=new jv({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:jo})),n.DefaultMaterial}function wu(n,e,t){for(const r in t.extensions)n[r]===void 0&&(e.userData.gltfExtensions=e.userData.gltfExtensions||{},e.userData.gltfExtensions[r]=t.extensions[r])}function Al(n,e){e.extras!==void 0&&typeof e.extras=="object"&&Object.assign(n.userData,e.extras)}function TK(n,e,t){let r=!1,i=!1,a=!1;for(let u=0,c=e.length;u0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const PK=new Dt;class DK{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new tK,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let r=!1,i=!1,a=-1;typeof navigator!="undefined"&&typeof navigator.userAgent!="undefined"&&(r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,i=navigator.userAgent.indexOf("Firefox")>-1,a=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap=="undefined"||r||i&&a<98?this.textureLoader=new Bk(this.options.manager):this.textureLoader=new Hk(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new sa(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const r=this,i=this.json,a=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([r.getDependencies("scene"),r.getDependencies("animation"),r.getDependencies("camera")])}).then(function(o){const s={scene:o[0][i.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:i.asset,parser:r,userData:{}};wu(a,s,i),Al(s,i),Promise.all(r._invokeAll(function(l){return l.afterRoot&&l.afterRoot(s)})).then(function(){e(s)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],r=this.json.meshes||[];for(let i=0,a=t.length;i{const l=this.associations.get(o);l!=null&&this.associations.set(s,l);for(const[u,c]of o.children.entries())a(c,s.children[u])};return a(r,i),i.name+="_instance_"+e.uses[t]++,i}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let r=0;r=2&&g.setY(E,w[C*l+1]),l>=3&&g.setZ(E,w[C*l+2]),l>=4&&g.setW(E,w[C*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return g})}loadTexture(e){const t=this.json,r=this.options,a=t.textures[e].source,o=t.images[a];let s=this.textureLoader;if(o.uri){const l=r.manager.getHandler(o.uri);l!==null&&(s=l)}return this.loadTextureImage(e,a,s)}loadTextureImage(e,t,r){const i=this,a=this.json,o=a.textures[e],s=a.images[t],l=(s.uri||s.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const u=this.loadImageSource(t,r).then(function(c){c.flipY=!1,c.name=o.name||s.name||"",c.name===""&&typeof s.uri=="string"&&s.uri.startsWith("data:image/")===!1&&(c.name=s.uri);const f=(a.samplers||{})[o.sampler]||{};return c.magFilter=VD[f.magFilter]||Bn,c.minFilter=VD[f.minFilter]||qo,c.wrapS=WD[f.wrapS]||zl,c.wrapT=WD[f.wrapT]||zl,i.associations.set(c,{textures:e}),c}).catch(function(){return null});return this.textureCache[l]=u,u}loadImageSource(e,t){const r=this,i=this.json,a=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(h=>h.clone());const o=i.images[e],s=self.URL||self.webkitURL;let l=o.uri||"",u=!1;if(o.bufferView!==void 0)l=r.getDependency("bufferView",o.bufferView).then(function(h){u=!0;const f=new Blob([h],{type:o.mimeType});return l=s.createObjectURL(f),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const c=Promise.resolve(l).then(function(h){return new Promise(function(f,d){let p=f;t.isImageBitmapLoader===!0&&(p=function(y){const g=new Vn(y);g.needsUpdate=!0,f(g)}),t.load(Yo.resolveURL(h,a.path),p,void 0,d)})}).then(function(h){return u===!0&&s.revokeObjectURL(l),h.userData.mimeType=o.mimeType||RK(o.uri),h}).catch(function(h){throw h});return this.sourceCache[e]=c,c}assignTexture(e,t,r,i){const a=this;return this.getDependency("texture",r.index).then(function(o){if(!o)return null;if(r.texCoord!==void 0&&r.texCoord>0&&(o=o.clone(),o.channel=r.texCoord),a.extensions[pn.KHR_TEXTURE_TRANSFORM]){const s=r.extensions!==void 0?r.extensions[pn.KHR_TEXTURE_TRANSFORM]:void 0;if(s){const l=a.associations.get(o);o=a.extensions[pn.KHR_TEXTURE_TRANSFORM].extendTexture(o,s),a.associations.set(o,l)}}return i!==void 0&&("colorSpace"in o?o.colorSpace=i===3001?"srgb":"srgb-linear":o.encoding=i),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let r=e.material;const i=t.attributes.tangent===void 0,a=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const s="PointsMaterial:"+r.uuid;let l=this.cache.get(s);l||(l=new L_,xr.prototype.copy.call(l,r),l.color.copy(r.color),l.map=r.map,l.sizeAttenuation=!1,this.cache.add(s,l)),r=l}else if(e.isLine){const s="LineBasicMaterial:"+r.uuid;let l=this.cache.get(s);l||(l=new li,xr.prototype.copy.call(l,r),l.color.copy(r.color),l.map=r.map,this.cache.add(s,l)),r=l}if(i||a||o){let s="ClonedMaterial:"+r.uuid+":";i&&(s+="derivative-tangents:"),a&&(s+="vertex-colors:"),o&&(s+="flat-shading:");let l=this.cache.get(s);l||(l=r.clone(),a&&(l.vertexColors=!0),o&&(l.flatShading=!0),i&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(s,l),this.associations.set(l,this.associations.get(r))),r=l}e.material=r}getMaterialType(){return jv}loadMaterial(e){const t=this,r=this.json,i=this.extensions,a=r.materials[e];let o;const s={},l=a.extensions||{},u=[];if(l[pn.KHR_MATERIALS_UNLIT]){const h=i[pn.KHR_MATERIALS_UNLIT];o=h.getMaterialType(),u.push(h.extendParams(s,a,t))}else{const h=a.pbrMetallicRoughness||{};if(s.color=new $e(1,1,1),s.opacity=1,Array.isArray(h.baseColorFactor)){const f=h.baseColorFactor;s.color.fromArray(f),s.opacity=f[3]}h.baseColorTexture!==void 0&&u.push(t.assignTexture(s,"map",h.baseColorTexture,3001)),s.metalness=h.metallicFactor!==void 0?h.metallicFactor:1,s.roughness=h.roughnessFactor!==void 0?h.roughnessFactor:1,h.metallicRoughnessTexture!==void 0&&(u.push(t.assignTexture(s,"metalnessMap",h.metallicRoughnessTexture)),u.push(t.assignTexture(s,"roughnessMap",h.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),u.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,s)})))}a.doubleSided===!0&&(s.side=Qi);const c=a.alphaMode||K1.OPAQUE;if(c===K1.BLEND?(s.transparent=!0,s.depthWrite=!1):(s.transparent=!1,c===K1.MASK&&(s.alphaTest=a.alphaCutoff!==void 0?a.alphaCutoff:.5)),a.normalTexture!==void 0&&o!==ea&&(u.push(t.assignTexture(s,"normalMap",a.normalTexture)),s.normalScale=new Re(1,1),a.normalTexture.scale!==void 0)){const h=a.normalTexture.scale;s.normalScale.set(h,h)}return a.occlusionTexture!==void 0&&o!==ea&&(u.push(t.assignTexture(s,"aoMap",a.occlusionTexture)),a.occlusionTexture.strength!==void 0&&(s.aoMapIntensity=a.occlusionTexture.strength)),a.emissiveFactor!==void 0&&o!==ea&&(s.emissive=new $e().fromArray(a.emissiveFactor)),a.emissiveTexture!==void 0&&o!==ea&&u.push(t.assignTexture(s,"emissiveMap",a.emissiveTexture,3001)),Promise.all(u).then(function(){const h=new o(s);return a.name&&(h.name=a.name),Al(h,a),t.associations.set(h,{materials:e}),a.extensions&&wu(i,h,a),h})}createUniqueName(e){const t=gn.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,r=this.extensions,i=this.primitiveCache;function a(s){return r[pn.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(s,t).then(function(l){return XD(l,s,t)})}const o=[];for(let s=0,l=e.length;s0&&CK(v,a),v.name=t.createUniqueName(a.name||"mesh_"+e),Al(v,a),g.extensions&&wu(i,v,g),t.assignFinalMaterial(v),h.push(v)}for(let d=0,p=h.length;d1?c=new Es:u.length===1?c=u[0]:c=new mn,c!==u[0])for(let h=0,f=u.length;h{const h=new Map;for(const[f,d]of i.associations)(f instanceof xr||f instanceof Vn)&&h.set(f,d);return c.traverse(f=>{const d=i.associations.get(f);d!=null&&h.set(f,d)}),h};return i.associations=u(a),a})}}function IK(n,e,t){const r=e.attributes,i=new ii;if(r.POSITION!==void 0){const s=t.json.accessors[r.POSITION],l=s.min,u=s.max;if(l!==void 0&&u!==void 0){if(i.set(new J(l[0],l[1],l[2]),new J(u[0],u[1],u[2])),s.normalized){const c=Hw(gf[s.componentType]);i.min.multiplyScalar(c),i.max.multiplyScalar(c)}}else return}else return;const a=e.targets;if(a!==void 0){const s=new J,l=new J;for(let u=0,c=a.length;u(P=D.indexOf(h))&&E=S.byteLength||!(R=f(S)))return s(1,"no header found");if(!(D=R.match(A)))return s(3,"bad initial token");for(E.valid|=1,E.programtype=D[1],E.string+=R+` + `};class OK extends jT{constructor(e){super(e),this.type=Mi}parse(e){const s=function(S,A){switch(S){case 1:break;case 2:break;case 3:break;default:case 4:}return-1},h=` +`,f=function(S,A,T){A=A||1024;let C=S.pos,P=-1,E=0,R="",I=String.fromCharCode.apply(null,new Uint16Array(S.subarray(C,C+128)));for(;0>(P=I.indexOf(h))&&E=S.byteLength||!(R=f(S)))return s(1,"no header found");if(!(I=R.match(A)))return s(3,"bad initial token");for(E.valid|=1,E.programtype=I[1],E.string+=R+` `;R=f(S),R!==!1;){if(E.string+=R+` `,R.charAt(0)==="#"){E.comments+=R+` -`;continue}if((D=R.match(b))&&(E.gamma=parseFloat(D[1])),(D=R.match(w))&&(E.exposure=parseFloat(D[1])),(D=R.match(C))&&(E.valid|=2,E.format=D[1]),(D=R.match(P))&&(E.valid|=4,E.height=parseInt(D[1],10),E.width=parseInt(D[2],10)),E.valid&2&&E.valid&4)break}return E.valid&2?E.valid&4?E:s(3,"missing image size specifier"):s(3,"missing format specifier")},p=function(S,A,b){const w=A;if(w<8||w>32767||S[0]!==2||S[1]!==2||S[2]&128)return new Uint8Array(S);if(w!==(S[2]<<8|S[3]))return s(3,"wrong scanline width");const C=new Uint8Array(4*A*b);if(!C.length)return s(4,"unable to allocate buffer space");let P=0,E=0;const R=4*w,D=new Uint8Array(4),B=new Uint8Array(R);let k=b;for(;k>0&&ES.byteLength)return s(1);if(D[0]=S[E++],D[1]=S[E++],D[2]=S[E++],D[3]=S[E++],D[0]!=2||D[1]!=2||(D[2]<<8|D[3])!=w)return s(3,"bad rgbe scanline format");let N=0,z;for(;N128;if(ne&&(z-=128),z===0||N+z>R)return s(3,"bad scanline data");if(ne){const H=S[E++];for(let K=0;K>3]&1<<(O&7))&&(W[se++]=O);for(var j=se-1;se<65536;)W[se++]=0;return j}function D(F){for(var W=0;W<16384;W++)F[W]={},F[W].len=0,F[W].lit=0,F[W].p=null}const B={l:0,c:0,lc:0};function k(F,W,se,O,j){for(;se>se&(1<0;--W){var O=se+N[W]>>1;N[W]=se,se=O}for(var W=0;W<65537;++W){var j=F[W];j>0&&(F[W]=j|N[j]++<<6)}}function X(F,W,se,O,j,q,ae){for(var te=se,xe=0,Ae=0;j<=q;j++){if(te.value-se.value>O)return!1;k(6,xe,Ae,F,te);var Ce=B.l;if(xe=B.c,Ae=B.lc,ae[j]=Ce,Ce==63){if(te.value-se.value>O)throw"Something wrong with hufUnpackEncTable";k(8,xe,Ae,F,te);var Te=B.l+6;if(xe=B.c,Ae=B.lc,j+Te>q+1)throw"Something wrong with hufUnpackEncTable";for(;Te--;)ae[j++]=0;j--}else if(Ce>=59){var Te=Ce-59+2;if(j+Te>q+1)throw"Something wrong with hufUnpackEncTable";for(;Te--;)ae[j++]=0;j--}}z(ae)}function ne(F){return F&63}function H(F){return F>>6}function K(F,W,se,O){for(;W<=se;W++){var j=H(F[W]),q=ne(F[W]);if(j>>q)throw"Invalid table entry";if(q>14){var ae=O[j>>q-14];if(ae.len)throw"Invalid table entry";if(ae.lit++,ae.p){var te=ae.p;ae.p=new Array(ae.lit);for(var xe=0;xe0;xe--){var ae=O[(j<<14-q)+Ae];if(ae.len||ae.p)throw"Invalid table entry";ae.len=q,ae.lit=W,Ae++}}return!0}const Q={c:0,lc:0};function le(F,W,se,O){F=F<<8|je(se,O),W+=8,Q.c=F,Q.lc=W}const he={c:0,lc:0};function re(F,W,se,O,j,q,ae,te,xe,Ae){if(F==W){O<8&&(le(se,O,j,ae),se=Q.c,O=Q.lc),O-=8;var Ce=se>>O,Ce=new Uint8Array([Ce])[0];if(xe.value+Ce>Ae)return!1;for(var Te=te[xe.value-1];Ce-- >0;)te[xe.value++]=Te}else if(xe.value32767?W-65536:W}const ge={a:0,b:0};function Be(F,W){var se=_e(F),O=_e(W),j=O,q=se+(j&1)+(j>>1),ae=q,te=q-j;ge.a=ae,ge.b=te}function Ye(F,W){var se=ce(F),O=ce(W),j=se-(O>>1)&65535,q=O+j-32768&65535;ge.a=q,ge.b=j}function Ke(F,W,se,O,j,q,ae){for(var te=ae<16384,xe=se>j?j:se,Ae=1,Ce;Ae<=xe;)Ae<<=1;for(Ae>>=1,Ce=Ae,Ae>>=1;Ae>=1;){for(var Te=0,dt=Te+q*(j-Ce),Ge=q*Ae,ze=q*Ce,mt=O*Ae,Rt=O*Ce,It,zt,pt,Qe;Te<=dt;Te+=ze){for(var an=Te,Ot=Te+O*(se-Ce);an<=Ot;an+=Rt){var Nt=an+mt,Pn=an+Ge,nr=Pn+mt;te?(Be(F[an+W],F[Pn+W]),It=ge.a,pt=ge.b,Be(F[Nt+W],F[nr+W]),zt=ge.a,Qe=ge.b,Be(It,zt),F[an+W]=ge.a,F[Nt+W]=ge.b,Be(pt,Qe),F[Pn+W]=ge.a,F[nr+W]=ge.b):(Ye(F[an+W],F[Pn+W]),It=ge.a,pt=ge.b,Ye(F[Nt+W],F[nr+W]),zt=ge.a,Qe=ge.b,Ye(It,zt),F[an+W]=ge.a,F[Nt+W]=ge.b,Ye(pt,Qe),F[Pn+W]=ge.a,F[nr+W]=ge.b)}if(se&Ae){var Pn=an+Ge;te?Be(F[an+W],F[Pn+W]):Ye(F[an+W],F[Pn+W]),It=ge.a,F[Pn+W]=ge.b,F[an+W]=It}}if(j&Ae)for(var an=Te,Ot=Te+O*(se-Ce);an<=Ot;an+=Rt){var Nt=an+mt;te?Be(F[an+W],F[Nt+W]):Ye(F[an+W],F[Nt+W]),It=ge.a,F[Nt+W]=ge.b,F[an+W]=It}Ce=Ae,Ae>>=1}return Te}function Ne(F,W,se,O,j,q,ae,te,xe,Ae){for(var Ce=0,Te=0,dt=te,Ge=Math.trunc(j.value+(q+7)/8);j.value=14;){var ze=Ce>>Te-14&16383,mt=W[ze];if(mt.len)Te-=mt.len,re(mt.lit,ae,Ce,Te,se,O,j,xe,Ae,dt),Ce=he.c,Te=he.lc;else{if(!mt.p)throw"hufDecode issues";var Rt;for(Rt=0;Rt=It&&H(F[mt.p[Rt]])==(Ce>>Te-It&(1<>=zt,Te-=zt;Te>0;){var mt=W[Ce<<14-Te&16383];if(mt.len)Te-=mt.len,re(mt.lit,ae,Ce,Te,se,O,j,xe,Ae,dt),Ce=he.c,Te=he.lc;else throw"hufDecode issues"}return!0}function Ie(F,W,se,O,j,q){var ae={value:0},te=se.value,xe=qe(W,se),Ae=qe(W,se);se.value+=4;var Ce=qe(W,se);if(se.value+=4,xe<0||xe>=65537||Ae<0||Ae>=65537)throw"Something wrong with HUF_ENCSIZE";var Te=new Array(65537),dt=new Array(16384);D(dt);var Ge=O-(se.value-te);if(X(F,W,se,Ge,xe,Ae,Te),Ce>8*(O-(se.value-te)))throw"Something wrong with hufUncompress";K(Te,xe,Ae,dt),Ne(Te,dt,F,W,se,Ce,Ae,q,j,ae)}function Z(F,W,se){for(var O=0;Oq||(W[j++]=F[se++],j>q));)W[j++]=F[O++]}function Pe(F){for(var W=F.byteLength,se=new Array,O=0,j=new DataView(F);W>0;){var q=j.getInt8(O++);if(q<0){var ae=-q;W-=ae+1;for(var te=0;te>8==255?j+=O&255:(se[j]=O,j++),F.value++}function Xe(F,W){W[0]=ue(F[0]),W[1]=ue(F[1]),W[2]=ue(F[5]),W[3]=ue(F[6]),W[4]=ue(F[14]),W[5]=ue(F[15]),W[6]=ue(F[27]),W[7]=ue(F[28]),W[8]=ue(F[2]),W[9]=ue(F[4]),W[10]=ue(F[7]),W[11]=ue(F[13]),W[12]=ue(F[16]),W[13]=ue(F[26]),W[14]=ue(F[29]),W[15]=ue(F[42]),W[16]=ue(F[3]),W[17]=ue(F[8]),W[18]=ue(F[12]),W[19]=ue(F[17]),W[20]=ue(F[25]),W[21]=ue(F[30]),W[22]=ue(F[41]),W[23]=ue(F[43]),W[24]=ue(F[9]),W[25]=ue(F[11]),W[26]=ue(F[18]),W[27]=ue(F[24]),W[28]=ue(F[31]),W[29]=ue(F[40]),W[30]=ue(F[44]),W[31]=ue(F[53]),W[32]=ue(F[10]),W[33]=ue(F[19]),W[34]=ue(F[23]),W[35]=ue(F[32]),W[36]=ue(F[39]),W[37]=ue(F[45]),W[38]=ue(F[52]),W[39]=ue(F[54]),W[40]=ue(F[20]),W[41]=ue(F[22]),W[42]=ue(F[33]),W[43]=ue(F[38]),W[44]=ue(F[46]),W[45]=ue(F[51]),W[46]=ue(F[55]),W[47]=ue(F[60]),W[48]=ue(F[21]),W[49]=ue(F[34]),W[50]=ue(F[37]),W[51]=ue(F[47]),W[52]=ue(F[50]),W[53]=ue(F[56]),W[54]=ue(F[59]),W[55]=ue(F[61]),W[56]=ue(F[35]),W[57]=ue(F[36]),W[58]=ue(F[48]),W[59]=ue(F[49]),W[60]=ue(F[57]),W[61]=ue(F[58]),W[62]=ue(F[62]),W[63]=ue(F[63])}function V(F){const W=.5*Math.cos(.7853975),se=.5*Math.cos(3.14159/16),O=.5*Math.cos(3.14159/8),j=.5*Math.cos(3*3.14159/16),q=.5*Math.cos(5*3.14159/16),ae=.5*Math.cos(3*3.14159/8),te=.5*Math.cos(7*3.14159/16);for(var xe=new Array(4),Ae=new Array(4),Ce=new Array(4),Te=new Array(4),dt=0;dt<8;++dt){var Ge=dt*8;xe[0]=O*F[Ge+2],xe[1]=ae*F[Ge+2],xe[2]=O*F[Ge+6],xe[3]=ae*F[Ge+6],Ae[0]=se*F[Ge+1]+j*F[Ge+3]+q*F[Ge+5]+te*F[Ge+7],Ae[1]=j*F[Ge+1]-te*F[Ge+3]-se*F[Ge+5]-q*F[Ge+7],Ae[2]=q*F[Ge+1]-se*F[Ge+3]+te*F[Ge+5]+j*F[Ge+7],Ae[3]=te*F[Ge+1]-q*F[Ge+3]+j*F[Ge+5]-se*F[Ge+7],Ce[0]=W*(F[Ge+0]+F[Ge+4]),Ce[3]=W*(F[Ge+0]-F[Ge+4]),Ce[1]=xe[0]+xe[3],Ce[2]=xe[1]-xe[2],Te[0]=Ce[0]+Ce[1],Te[1]=Ce[3]+Ce[2],Te[2]=Ce[3]-Ce[2],Te[3]=Ce[0]-Ce[1],F[Ge+0]=Te[0]+Ae[0],F[Ge+1]=Te[1]+Ae[1],F[Ge+2]=Te[2]+Ae[2],F[Ge+3]=Te[3]+Ae[3],F[Ge+4]=Te[3]-Ae[3],F[Ge+5]=Te[2]-Ae[2],F[Ge+6]=Te[1]-Ae[1],F[Ge+7]=Te[0]-Ae[0]}for(var ze=0;ze<8;++ze)xe[0]=O*F[16+ze],xe[1]=ae*F[16+ze],xe[2]=O*F[48+ze],xe[3]=ae*F[48+ze],Ae[0]=se*F[8+ze]+j*F[24+ze]+q*F[40+ze]+te*F[56+ze],Ae[1]=j*F[8+ze]-te*F[24+ze]-se*F[40+ze]-q*F[56+ze],Ae[2]=q*F[8+ze]-se*F[24+ze]+te*F[40+ze]+j*F[56+ze],Ae[3]=te*F[8+ze]-q*F[24+ze]+j*F[40+ze]-se*F[56+ze],Ce[0]=W*(F[ze]+F[32+ze]),Ce[3]=W*(F[ze]-F[32+ze]),Ce[1]=xe[0]+xe[3],Ce[2]=xe[1]-xe[2],Te[0]=Ce[0]+Ce[1],Te[1]=Ce[3]+Ce[2],Te[2]=Ce[3]-Ce[2],Te[3]=Ce[0]-Ce[1],F[0+ze]=Te[0]+Ae[0],F[8+ze]=Te[1]+Ae[1],F[16+ze]=Te[2]+Ae[2],F[24+ze]=Te[3]+Ae[3],F[32+ze]=Te[3]-Ae[3],F[40+ze]=Te[2]-Ae[2],F[48+ze]=Te[1]-Ae[1],F[56+ze]=Te[0]-Ae[0]}function G(F){for(var W=0;W<64;++W){var se=F[0][W],O=F[1][W],j=F[2][W];F[0][W]=se+1.5747*j,F[1][W]=se-.1873*O-.4682*j,F[2][W]=se+1.8556*O}}function de(F,W,se){for(var O=0;O<64;++O)W[se+O]=mc.toHalfFloat(Fe(F[O]))}function Fe(F){return F<=1?Math.sign(F)*Math.pow(Math.abs(F),2.2):Math.sign(F)*Math.pow(E,Math.abs(F)-1)}function Re(F){return new DataView(F.array.buffer,F.offset.value,F.size)}function Le(F){var W=F.viewer.buffer.slice(F.offset.value,F.offset.value+F.size),se=new Uint8Array(Pe(W)),O=new Uint8Array(se.length);return Se(se),ve(se,O),new DataView(O.buffer)}function st(F){var W=F.array.slice(F.offset.value,F.offset.value+F.size),se=_y(W),O=new Uint8Array(se.length);return Se(se),ve(se,O),new DataView(O.buffer)}function Je(F){for(var W=F.viewer,se={value:F.offset.value},O=new Uint16Array(F.width*F.scanlineBlockSize*(F.channels*F.type)),j=new Uint8Array(8192),q=0,ae=new Array(F.channels),te=0;te=8192)throw"Something is wrong with PIZ_COMPRESSION BITMAP_SIZE";if(xe<=Ae)for(var te=0;te0;){var te=ht(W.buffer,se),xe=oe(W,se),Ae=xe>>2&3,Ce=(xe>>4)-1,Te=new Int8Array([Ce])[0],dt=oe(W,se);q.push({name:te,index:Te,type:dt,compression:Ae}),ae-=te.length+3}for(var Ge=Bi.channels,ze=new Array(F.channels),mt=0;mt=0&&(zt.idx[Qe.index]=pt),Rt.offset=pt)}if(j.acCompressedSize>0)switch(j.acCompression){case 0:var Nt=new Uint16Array(j.totalAcUncompressedCount);Ie(F.array,W,se,j.acCompressedSize,Nt,j.totalAcUncompressedCount);break;case 1:var an=F.array.slice(se.value,se.value+j.totalAcUncompressedCount),Ot=_y(an),Nt=new Uint16Array(Ot.buffer);se.value+=j.totalAcUncompressedCount;break}if(j.dcCompressedSize>0){var Pn={array:F.array,offset:se,size:j.dcCompressedSize},nr=new Uint16Array(st(Pn).buffer);se.value+=j.dcCompressedSize}if(j.rleRawSize>0){var an=F.array.slice(se.value,se.value+j.rleCompressedSize),Ot=_y(an),Xn=Pe(Ot.buffer);se.value+=j.rleCompressedSize}for(var gn=0,hn=new Array(ze.length),mt=0;mt>10,se=F&1023;return(F>>15?-1:1)*(W?W===31?se?NaN:1/0:Math.pow(2,W-15)*(1+se/1024):6103515625e-14*(se/1024))}function ie(F,W){var se=F.getUint16(W.value,!0);return W.value+=2,se}function We(F,W){return ue(ie(F,W))}function tt(F,W,se,O){for(var j=se.value,q=[];se.valueZt.height?Zt.height-W:Zt.scanlineBlockSize;const O=Zt.size=Zt.height)break;for(let ae=0;ae{const s={attributeIDs:this.defaultAttributeIDs,attributeTypes:this.defaultAttributeTypes,useUniqueIDs:!1};this.decodeGeometry(o,s).then(t).catch(i)},r,i)}decodeDracoFile(e,t,r,i){const a={attributeIDs:r||this.defaultAttributeIDs,attributeTypes:i||this.defaultAttributeTypes,useUniqueIDs:!!r};this.decodeGeometry(e,a).then(t)}decodeGeometry(e,t){for(const l in t.attributeTypes){const u=t.attributeTypes[l];u.BYTES_PER_ELEMENT!==void 0&&(t.attributeTypes[l]=u.name)}const r=JSON.stringify(t);if(AA.has(e)){const l=AA.get(e);if(l.key===r)return l.promise;if(e.byteLength===0)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let i;const a=this.workerNextTaskID++,o=e.byteLength,s=this._getWorker(a,o).then(l=>(i=l,new Promise((u,c)=>{i._callbacks[a]={resolve:u,reject:c},i.postMessage({type:"decode",id:a,taskConfig:t,buffer:e},[e])}))).then(l=>this._createGeometry(l.geometry));return s.catch(()=>!0).then(()=>{i&&a&&this._releaseTask(i,a)}),AA.set(e,{key:r,promise:s}),s}_createGeometry(e){const t=new Jt;e.index&&t.setIndex(new _n(e.index.array,1));for(let r=0;r{r.load(e,i,void 0,a)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const e=typeof WebAssembly!="object"||this.decoderConfig.type==="js",t=[];return e?t.push(this._loadLibrary("draco_decoder.js","text")):(t.push(this._loadLibrary("draco_wasm_wrapper.js","text")),t.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(t).then(r=>{const i=r[0];e||(this.decoderConfig.wasmBinary=r[1]);const a=H$.toString(),o=["/* draco decoder */",i,"","/* worker */",a.substring(a.indexOf("{")+1,a.lastIndexOf("}"))].join(` -`);this.workerSourceURL=URL.createObjectURL(new Blob([o]))}),this.decoderPending}_getWorker(e,t){return this._initDecoder().then(()=>{if(this.workerPool.lengtha._taskLoad?-1:1});const r=this.workerPool[this.workerPool.length-1];return r._taskCosts[e]=t,r._taskLoad+=t,r})}_releaseTask(e,t){e._taskLoad-=e._taskCosts[t],delete e._callbacks[t],delete e._taskCosts[t]}debug(){}dispose(){for(let e=0;e{const h=c.draco,f=new h.Decoder,d=new h.DecoderBuffer;d.Init(new Int8Array(l),l.byteLength);try{const p=t(h,f,d,u),y=p.attributes.map(g=>g.array.buffer);p.index&&y.push(p.index.array.buffer),self.postMessage({type:"decode",id:s.id,geometry:p},y)}catch(p){self.postMessage({type:"error",id:s.id,error:p.message})}finally{h.destroy(d),h.destroy(f)}});break}};function t(o,s,l,u){const c=u.attributeIDs,h=u.attributeTypes;let f,d;const p=s.GetEncodedGeometryType(l);if(p===o.TRIANGULAR_MESH)f=new o.Mesh,d=s.DecodeBufferToMesh(l,f);else if(p===o.POINT_CLOUD)f=new o.PointCloud,d=s.DecodeBufferToPointCloud(l,f);else throw new Error("THREE.DRACOLoader: Unexpected geometry type.");if(!d.ok()||f.ptr===0)throw new Error("THREE.DRACOLoader: Decoding failed: "+d.error_msg());const y={index:null,attributes:[]};for(const g in c){const v=self[h[g]];let x,S;if(u.useUniqueIDs)S=c[g],x=s.GetAttributeByUniqueId(f,S);else{if(S=s.GetAttributeId(f,o[c[g]]),S===-1)continue;x=s.GetAttribute(f,S)}y.attributes.push(i(o,s,f,g,v,x))}return p===o.TRIANGULAR_MESH&&(y.index=r(o,s,f)),o.destroy(f),y}function r(o,s,l){const c=l.num_faces()*3,h=c*4,f=o._malloc(h);s.GetTrianglesUInt32Array(l,h,f);const d=new Uint32Array(o.HEAPF32.buffer,f,c).slice();return o._free(f),{array:d,itemSize:1}}function i(o,s,l,u,c,h){const f=h.num_components(),p=l.num_points()*f,y=p*c.BYTES_PER_ELEMENT,g=a(o,c),v=o._malloc(y);s.GetAttributeDataArrayForAllPoints(l,h,g,y,v);const x=new c(o.HEAPF32.buffer,v,p).slice();return o._free(v),{name:u,array:x,itemSize:f}}function a(o,s){switch(s){case Float32Array:return o.DT_FLOAT32;case Int8Array:return o.DT_INT8;case Int16Array:return o.DT_INT16;case Int32Array:return o.DT_INT32;case Uint8Array:return o.DT_UINT8;case Uint16Array:return o.DT_UINT16;case Uint32Array:return o.DT_UINT32}}}let Sy;const MA=()=>{if(Sy)return Sy;const n="B9h9z9tFBBBF8fL9gBB9gLaaaaaFa9gEaaaB9gFaFa9gEaaaFaEMcBFFFGGGEIIILF9wFFFLEFBFKNFaFCx/IFMO/LFVK9tv9t9vq95GBt9f9f939h9z9t9f9j9h9s9s9f9jW9vq9zBBp9tv9z9o9v9wW9f9kv9j9v9kv9WvqWv94h919m9mvqBF8Z9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv94h919m9mvqBGy9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv949TvZ91v9u9jvBEn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9P9jWBIi9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9R919hWBLn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9F949wBKI9z9iqlBOc+x8ycGBM/qQFTa8jUUUUBCU/EBlHL8kUUUUBC9+RKGXAGCFJAI9LQBCaRKAE2BBC+gF9HQBALAEAIJHOAGlAGTkUUUBRNCUoBAG9uC/wgBZHKCUGAKCUG9JyRVAECFJRICBRcGXEXAcAF9PQFAVAFAclAcAVJAF9JyRMGXGXAG9FQBAMCbJHKC9wZRSAKCIrCEJCGrRQANCUGJRfCBRbAIRTEXGXAOATlAQ9PQBCBRISEMATAQJRIGXAS9FQBCBRtCBREEXGXAOAIlCi9PQBCBRISLMANCU/CBJAEJRKGXGXGXGXGXATAECKrJ2BBAtCKZrCEZfIBFGEBMAKhB83EBAKCNJhB83EBSEMAKAI2BIAI2BBHmCKrHYAYCE6HYy86BBAKCFJAICIJAYJHY2BBAmCIrCEZHPAPCE6HPy86BBAKCGJAYAPJHY2BBAmCGrCEZHPAPCE6HPy86BBAKCEJAYAPJHY2BBAmCEZHmAmCE6Hmy86BBAKCIJAYAmJHY2BBAI2BFHmCKrHPAPCE6HPy86BBAKCLJAYAPJHY2BBAmCIrCEZHPAPCE6HPy86BBAKCKJAYAPJHY2BBAmCGrCEZHPAPCE6HPy86BBAKCOJAYAPJHY2BBAmCEZHmAmCE6Hmy86BBAKCNJAYAmJHY2BBAI2BGHmCKrHPAPCE6HPy86BBAKCVJAYAPJHY2BBAmCIrCEZHPAPCE6HPy86BBAKCcJAYAPJHY2BBAmCGrCEZHPAPCE6HPy86BBAKCMJAYAPJHY2BBAmCEZHmAmCE6Hmy86BBAKCSJAYAmJHm2BBAI2BEHICKrHYAYCE6HYy86BBAKCQJAmAYJHm2BBAICIrCEZHYAYCE6HYy86BBAKCfJAmAYJHm2BBAICGrCEZHYAYCE6HYy86BBAKCbJAmAYJHK2BBAICEZHIAICE6HIy86BBAKAIJRISGMAKAI2BNAI2BBHmCIrHYAYCb6HYy86BBAKCFJAICNJAYJHY2BBAmCbZHmAmCb6Hmy86BBAKCGJAYAmJHm2BBAI2BFHYCIrHPAPCb6HPy86BBAKCEJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCIJAmAYJHm2BBAI2BGHYCIrHPAPCb6HPy86BBAKCLJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCKJAmAYJHm2BBAI2BEHYCIrHPAPCb6HPy86BBAKCOJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCNJAmAYJHm2BBAI2BIHYCIrHPAPCb6HPy86BBAKCVJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCcJAmAYJHm2BBAI2BLHYCIrHPAPCb6HPy86BBAKCMJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCSJAmAYJHm2BBAI2BKHYCIrHPAPCb6HPy86BBAKCQJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCfJAmAYJHm2BBAI2BOHICIrHYAYCb6HYy86BBAKCbJAmAYJHK2BBAICbZHIAICb6HIy86BBAKAIJRISFMAKAI8pBB83BBAKCNJAICNJ8pBB83BBAICTJRIMAtCGJRtAECTJHEAS9JQBMMGXAIQBCBRISEMGXAM9FQBANAbJ2BBRtCBRKAfREEXAEANCU/CBJAKJ2BBHTCFrCBATCFZl9zAtJHt86BBAEAGJREAKCFJHKAM9HQBMMAfCFJRfAIRTAbCFJHbAG9HQBMMABAcAG9sJANCUGJAMAG9sTkUUUBpANANCUGJAMCaJAG9sJAGTkUUUBpMAMCBAIyAcJRcAIQBMC9+RKSFMCBC99AOAIlAGCAAGCA9Ly6yRKMALCU/EBJ8kUUUUBAKM+OmFTa8jUUUUBCoFlHL8kUUUUBC9+RKGXAFCE9uHOCtJAI9LQBCaRKAE2BBHNC/wFZC/gF9HQBANCbZHVCF9LQBALCoBJCgFCUFT+JUUUBpALC84Jha83EBALC8wJha83EBALC8oJha83EBALCAJha83EBALCiJha83EBALCTJha83EBALha83ENALha83EBAEAIJC9wJRcAECFJHNAOJRMGXAF9FQBCQCbAVCF6yRSABRECBRVCBRQCBRfCBRICBRKEXGXAMAcuQBC9+RKSEMGXGXAN2BBHOC/vF9LQBALCoBJAOCIrCa9zAKJCbZCEWJHb8oGIRTAb8oGBRtGXAOCbZHbAS9PQBALAOCa9zAIJCbZCGWJ8oGBAVAbyROAb9FRbGXGXAGCG9HQBABAt87FBABCIJAO87FBABCGJAT87FBSFMAEAtjGBAECNJAOjGBAECIJATjGBMAVAbJRVALCoBJAKCEWJHmAOjGBAmATjGIALAICGWJAOjGBALCoBJAKCFJCbZHKCEWJHTAtjGBATAOjGIAIAbJRIAKCFJRKSGMGXGXAbCb6QBAQAbJAbC989zJCFJRQSFMAM1BBHbCgFZROGXGXAbCa9MQBAMCFJRMSFMAM1BFHbCgBZCOWAOCgBZqROGXAbCa9MQBAMCGJRMSFMAM1BGHbCgBZCfWAOqROGXAbCa9MQBAMCEJRMSFMAM1BEHbCgBZCdWAOqROGXAbCa9MQBAMCIJRMSFMAM2BIC8cWAOqROAMCLJRMMAOCFrCBAOCFZl9zAQJRQMGXGXAGCG9HQBABAt87FBABCIJAQ87FBABCGJAT87FBSFMAEAtjGBAECNJAQjGBAECIJATjGBMALCoBJAKCEWJHOAQjGBAOATjGIALAICGWJAQjGBALCoBJAKCFJCbZHKCEWJHOAtjGBAOAQjGIAICFJRIAKCFJRKSFMGXAOCDF9LQBALAIAcAOCbZJ2BBHbCIrHTlCbZCGWJ8oGBAVCFJHtATyROALAIAblCbZCGWJ8oGBAtAT9FHmJHtAbCbZHTyRbAT9FRTGXGXAGCG9HQBABAV87FBABCIJAb87FBABCGJAO87FBSFMAEAVjGBAECNJAbjGBAECIJAOjGBMALAICGWJAVjGBALCoBJAKCEWJHYAOjGBAYAVjGIALAICFJHICbZCGWJAOjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAIAmJCbZHICGWJAbjGBALCoBJAKCGJCbZHKCEWJHOAVjGBAOAbjGIAKCFJRKAIATJRIAtATJRVSFMAVCBAM2BBHYyHTAOC/+F6HPJROAYCbZRtGXGXAYCIrHmQBAOCFJRbSFMAORbALAIAmlCbZCGWJ8oGBROMGXGXAtQBAbCFJRVSFMAbRVALAIAYlCbZCGWJ8oGBRbMGXGXAP9FQBAMCFJRYSFMAM1BFHYCgFZRTGXGXAYCa9MQBAMCGJRYSFMAM1BGHYCgBZCOWATCgBZqRTGXAYCa9MQBAMCEJRYSFMAM1BEHYCgBZCfWATqRTGXAYCa9MQBAMCIJRYSFMAM1BIHYCgBZCdWATqRTGXAYCa9MQBAMCLJRYSFMAMCKJRYAM2BLC8cWATqRTMATCFrCBATCFZl9zAQJHQRTMGXGXAmCb6QBAYRPSFMAY1BBHMCgFZROGXGXAMCa9MQBAYCFJRPSFMAY1BFHMCgBZCOWAOCgBZqROGXAMCa9MQBAYCGJRPSFMAY1BGHMCgBZCfWAOqROGXAMCa9MQBAYCEJRPSFMAY1BEHMCgBZCdWAOqROGXAMCa9MQBAYCIJRPSFMAYCLJRPAY2BIC8cWAOqROMAOCFrCBAOCFZl9zAQJHQROMGXGXAtCb6QBAPRMSFMAP1BBHMCgFZRbGXGXAMCa9MQBAPCFJRMSFMAP1BFHMCgBZCOWAbCgBZqRbGXAMCa9MQBAPCGJRMSFMAP1BGHMCgBZCfWAbqRbGXAMCa9MQBAPCEJRMSFMAP1BEHMCgBZCdWAbqRbGXAMCa9MQBAPCIJRMSFMAPCLJRMAP2BIC8cWAbqRbMAbCFrCBAbCFZl9zAQJHQRbMGXGXAGCG9HQBABAT87FBABCIJAb87FBABCGJAO87FBSFMAEATjGBAECNJAbjGBAECIJAOjGBMALCoBJAKCEWJHYAOjGBAYATjGIALAICGWJATjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAICFJHICbZCGWJAOjGBALCoBJAKCGJCbZCEWJHOATjGBAOAbjGIALAIAm9FAmCb6qJHICbZCGWJAbjGBAIAt9FAtCb6qJRIAKCEJRKMANCFJRNABCKJRBAECSJREAKCbZRKAICbZRIAfCEJHfAF9JQBMMCBC99AMAc6yRKMALCoFJ8kUUUUBAKM/tIFGa8jUUUUBCTlRLC9+RKGXAFCLJAI9LQBCaRKAE2BBC/+FZC/QF9HQBALhB83ENAECFJRKAEAIJC98JREGXAF9FQBGXAGCG6QBEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMALCNJAICFZCGWqHGAICGrCBAICFrCFZl9zAG8oGBJHIjGBABAIjGBABCIJRBAFCaJHFQBSGMMEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMABAICGrCBAICFrCFZl9zALCNJAICFZCGWqHI8oGBJHG87FBAIAGjGBABCGJRBAFCaJHFQBMMCBC99AKAE6yRKMAKM+lLKFaF99GaG99FaG99GXGXAGCI9HQBAF9FQFEXGXGX9DBBB8/9DBBB+/ABCGJHG1BB+yAB1BBHE+yHI+L+TABCFJHL1BBHK+yHO+L+THN9DBBBB9gHVyAN9DBB/+hANAN+U9DBBBBANAVyHcAc+MHMAECa3yAI+SHIAI+UAcAMAKCa3yAO+SHcAc+U+S+S+R+VHO+U+SHN+L9DBBB9P9d9FQBAN+oRESFMCUUUU94REMAGAE86BBGXGX9DBBB8/9DBBB+/Ac9DBBBB9gyAcAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMALAG86BBGXGX9DBBB8/9DBBB+/AI9DBBBB9gyAIAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMABAG86BBABCIJRBAFCaJHFQBSGMMAF9FQBEXGXGX9DBBB8/9DBBB+/ABCIJHG8uFB+yAB8uFBHE+yHI+L+TABCGJHL8uFBHK+yHO+L+THN9DBBBB9gHVyAN9DB/+g6ANAN+U9DBBBBANAVyHcAc+MHMAECa3yAI+SHIAI+UAcAMAKCa3yAO+SHcAc+U+S+S+R+VHO+U+SHN+L9DBBB9P9d9FQBAN+oRESFMCUUUU94REMAGAE87FBGXGX9DBBB8/9DBBB+/Ac9DBBBB9gyAcAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMALAG87FBGXGX9DBBB8/9DBBB+/AI9DBBBB9gyAIAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMABAG87FBABCNJRBAFCaJHFQBMMM/SEIEaE99EaF99GXAF9FQBCBREABRIEXGXGX9D/zI818/AICKJ8uFBHLCEq+y+VHKAI8uFB+y+UHO9DB/+g6+U9DBBB8/9DBBB+/AO9DBBBB9gy+SHN+L9DBBB9P9d9FQBAN+oRVSFMCUUUU94RVMAICIJ8uFBRcAICGJ8uFBRMABALCFJCEZAEqCFWJAV87FBGXGXAKAM+y+UHN9DB/+g6+U9DBBB8/9DBBB+/AN9DBBBB9gy+SHS+L9DBBB9P9d9FQBAS+oRMSFMCUUUU94RMMABALCGJCEZAEqCFWJAM87FBGXGXAKAc+y+UHK9DB/+g6+U9DBBB8/9DBBB+/AK9DBBBB9gy+SHS+L9DBBB9P9d9FQBAS+oRcSFMCUUUU94RcMABALCaJCEZAEqCFWJAc87FBGXGX9DBBU8/AOAO+U+TANAN+U+TAKAK+U+THO9DBBBBAO9DBBBB9gy+R9DB/+g6+U9DBBB8/+SHO+L9DBBB9P9d9FQBAO+oRcSFMCUUUU94RcMABALCEZAEqCFWJAc87FBAICNJRIAECIJREAFCaJHFQBMMM9JBGXAGCGrAF9sHF9FQBEXABAB8oGBHGCNWCN91+yAGCi91CnWCUUU/8EJ+++U84GBABCIJRBAFCaJHFQBMMM9TFEaCBCB8oGUkUUBHFABCEJC98ZJHBjGUkUUBGXGXAB8/BCTWHGuQBCaREABAGlCggEJCTrXBCa6QFMAFREMAEM/lFFFaGXGXAFABqCEZ9FQBABRESFMGXGXAGCT9PQBABRESFMABREEXAEAF8oGBjGBAECIJAFCIJ8oGBjGBAECNJAFCNJ8oGBjGBAECSJAFCSJ8oGBjGBAECTJREAFCTJRFAGC9wJHGCb9LQBMMAGCI9JQBEXAEAF8oGBjGBAFCIJRFAECIJREAGC98JHGCE9LQBMMGXAG9FQBEXAEAF2BB86BBAECFJREAFCFJRFAGCaJHGQBMMABMoFFGaGXGXABCEZ9FQBABRESFMAFCgFZC+BwsN9sRIGXGXAGCT9PQBABRESFMABREEXAEAIjGBAECSJAIjGBAECNJAIjGBAECIJAIjGBAECTJREAGC9wJHGCb9LQBMMAGCI9JQBEXAEAIjGBAECIJREAGC98JHGCE9LQBMMGXAG9FQBEXAEAF86BBAECFJREAGCaJHGQBMMABMMMFBCUNMIT9kBB",e="B9h9z9tFBBBFiI9gBB9gLaaaaaFa9gEaaaB9gFaFaEMcBBFBFFGGGEILF9wFFFLEFBFKNFaFCx/aFMO/LFVK9tv9t9vq95GBt9f9f939h9z9t9f9j9h9s9s9f9jW9vq9zBBp9tv9z9o9v9wW9f9kv9j9v9kv9WvqWv94h919m9mvqBG8Z9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv94h919m9mvqBIy9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv949TvZ91v9u9jvBLn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9P9jWBKi9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9R919hWBOn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9F949wBNI9z9iqlBVc+N9IcIBTEM9+FLa8jUUUUBCTlRBCBRFEXCBRGCBREEXABCNJAGJAECUaAFAGrCFZHIy86BBAEAIJREAGCFJHGCN9HQBMAFCx+YUUBJAE86BBAFCEWCxkUUBJAB8pEN83EBAFCFJHFCUG9HQBMMk8lLbaE97F9+FaL978jUUUUBCU/KBlHL8kUUUUBC9+RKGXAGCFJAI9LQBCaRKAE2BBC+gF9HQBALAEAIJHOAGlAG/8cBBCUoBAG9uC/wgBZHKCUGAKCUG9JyRNAECFJRKCBRVGXEXAVAF9PQFANAFAVlAVANJAF9JyRcGXGXAG9FQBAcCbJHIC9wZHMCE9sRSAMCFWRQAICIrCEJCGrRfCBRbEXAKRTCBRtGXEXGXAOATlAf9PQBCBRKSLMALCU/CBJAtAM9sJRmATAfJRKCBREGXAMCoB9JQBAOAKlC/gB9JQBCBRIEXAmAIJREGXGXGXGXGXATAICKrJ2BBHYCEZfIBFGEBMAECBDtDMIBSEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAEAKDBBBDMIBAKCTJRKMGXGXGXGXGXAYCGrCEZfIBFGEBMAECBDtDMITSEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMITAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMITAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAEAKDBBBDMITAKCTJRKMGXGXGXGXGXAYCIrCEZfIBFGEBMAECBDtDMIASEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIAAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIAAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAEAKDBBBDMIAAKCTJRKMGXGXGXGXGXAYCKrfIBFGEBMAECBDtDMI8wSEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHYCEWCxkUUBJDBEBAYCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHYCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMI8wAKCIJAeDeBJAYCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHYCEWCxkUUBJDBEBAYCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHYCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMI8wAKCNJAeDeBJAYCx+YUUBJ2BBJRKSFMAEAKDBBBDMI8wAKCTJRKMAICoBJREAICUFJAM9LQFAERIAOAKlC/fB9LQBMMGXAEAM9PQBAECErRIEXGXAOAKlCi9PQBCBRKSOMAmAEJRYGXGXGXGXGXATAECKrJ2BBAICKZrCEZfIBFGEBMAYCBDtDMIBSEMAYAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAYAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAYAKDBBBDMIBAKCTJRKMAICGJRIAECTJHEAM9JQBMMGXAK9FQBAKRTAtCFJHtCI6QGSFMMCBRKSEMGXAM9FQBALCUGJAbJREALAbJDBGBReCBRYEXAEALCU/CBJAYJHIDBIBHdCFD9tAdCFDbHPD9OD9hD9RHdAIAMJDBIBH8ZCFD9tA8ZAPD9OD9hD9RH8ZDQBTFtGmEYIPLdKeOnHpAIAQJDBIBHyCFD9tAyAPD9OD9hD9RHyAIASJDBIBH8cCFD9tA8cAPD9OD9hD9RH8cDQBTFtGmEYIPLdKeOnH8dDQBFTtGEmYILPdKOenHPAPDQBFGEBFGEBFGEBFGEAeD9uHeDyBjGBAEAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJHIAeApA8dDQNVi8ZcMpySQ8c8dfb8e8fHPAPDQBFGEBFGEBFGEBFGED9uHeDyBjGBAIAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJHIAeAdA8ZDQNiV8ZcpMyS8cQ8df8eb8fHdAyA8cDQNiV8ZcpMyS8cQ8df8eb8fH8ZDQBFTtGEmYILPdKOenHPAPDQBFGEBFGEBFGEBFGED9uHeDyBjGBAIAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJHIAeAdA8ZDQNVi8ZcMpySQ8c8dfb8e8fHPAPDQBFGEBFGEBFGEBFGED9uHeDyBjGBAIAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJREAYCTJHYAM9JQBMMAbCIJHbAG9JQBMMABAVAG9sJALCUGJAcAG9s/8cBBALALCUGJAcCaJAG9sJAG/8cBBMAcCBAKyAVJRVAKQBMC9+RKSFMCBC99AOAKlAGCAAGCA9Ly6yRKMALCU/KBJ8kUUUUBAKMNBT+BUUUBM+KmFTa8jUUUUBCoFlHL8kUUUUBC9+RKGXAFCE9uHOCtJAI9LQBCaRKAE2BBHNC/wFZC/gF9HQBANCbZHVCF9LQBALCoBJCgFCUF/8MBALC84Jha83EBALC8wJha83EBALC8oJha83EBALCAJha83EBALCiJha83EBALCTJha83EBALha83ENALha83EBAEAIJC9wJRcAECFJHNAOJRMGXAF9FQBCQCbAVCF6yRSABRECBRVCBRQCBRfCBRICBRKEXGXAMAcuQBC9+RKSEMGXGXAN2BBHOC/vF9LQBALCoBJAOCIrCa9zAKJCbZCEWJHb8oGIRTAb8oGBRtGXAOCbZHbAS9PQBALAOCa9zAIJCbZCGWJ8oGBAVAbyROAb9FRbGXGXAGCG9HQBABAt87FBABCIJAO87FBABCGJAT87FBSFMAEAtjGBAECNJAOjGBAECIJATjGBMAVAbJRVALCoBJAKCEWJHmAOjGBAmATjGIALAICGWJAOjGBALCoBJAKCFJCbZHKCEWJHTAtjGBATAOjGIAIAbJRIAKCFJRKSGMGXGXAbCb6QBAQAbJAbC989zJCFJRQSFMAM1BBHbCgFZROGXGXAbCa9MQBAMCFJRMSFMAM1BFHbCgBZCOWAOCgBZqROGXAbCa9MQBAMCGJRMSFMAM1BGHbCgBZCfWAOqROGXAbCa9MQBAMCEJRMSFMAM1BEHbCgBZCdWAOqROGXAbCa9MQBAMCIJRMSFMAM2BIC8cWAOqROAMCLJRMMAOCFrCBAOCFZl9zAQJRQMGXGXAGCG9HQBABAt87FBABCIJAQ87FBABCGJAT87FBSFMAEAtjGBAECNJAQjGBAECIJATjGBMALCoBJAKCEWJHOAQjGBAOATjGIALAICGWJAQjGBALCoBJAKCFJCbZHKCEWJHOAtjGBAOAQjGIAICFJRIAKCFJRKSFMGXAOCDF9LQBALAIAcAOCbZJ2BBHbCIrHTlCbZCGWJ8oGBAVCFJHtATyROALAIAblCbZCGWJ8oGBAtAT9FHmJHtAbCbZHTyRbAT9FRTGXGXAGCG9HQBABAV87FBABCIJAb87FBABCGJAO87FBSFMAEAVjGBAECNJAbjGBAECIJAOjGBMALAICGWJAVjGBALCoBJAKCEWJHYAOjGBAYAVjGIALAICFJHICbZCGWJAOjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAIAmJCbZHICGWJAbjGBALCoBJAKCGJCbZHKCEWJHOAVjGBAOAbjGIAKCFJRKAIATJRIAtATJRVSFMAVCBAM2BBHYyHTAOC/+F6HPJROAYCbZRtGXGXAYCIrHmQBAOCFJRbSFMAORbALAIAmlCbZCGWJ8oGBROMGXGXAtQBAbCFJRVSFMAbRVALAIAYlCbZCGWJ8oGBRbMGXGXAP9FQBAMCFJRYSFMAM1BFHYCgFZRTGXGXAYCa9MQBAMCGJRYSFMAM1BGHYCgBZCOWATCgBZqRTGXAYCa9MQBAMCEJRYSFMAM1BEHYCgBZCfWATqRTGXAYCa9MQBAMCIJRYSFMAM1BIHYCgBZCdWATqRTGXAYCa9MQBAMCLJRYSFMAMCKJRYAM2BLC8cWATqRTMATCFrCBATCFZl9zAQJHQRTMGXGXAmCb6QBAYRPSFMAY1BBHMCgFZROGXGXAMCa9MQBAYCFJRPSFMAY1BFHMCgBZCOWAOCgBZqROGXAMCa9MQBAYCGJRPSFMAY1BGHMCgBZCfWAOqROGXAMCa9MQBAYCEJRPSFMAY1BEHMCgBZCdWAOqROGXAMCa9MQBAYCIJRPSFMAYCLJRPAY2BIC8cWAOqROMAOCFrCBAOCFZl9zAQJHQROMGXGXAtCb6QBAPRMSFMAP1BBHMCgFZRbGXGXAMCa9MQBAPCFJRMSFMAP1BFHMCgBZCOWAbCgBZqRbGXAMCa9MQBAPCGJRMSFMAP1BGHMCgBZCfWAbqRbGXAMCa9MQBAPCEJRMSFMAP1BEHMCgBZCdWAbqRbGXAMCa9MQBAPCIJRMSFMAPCLJRMAP2BIC8cWAbqRbMAbCFrCBAbCFZl9zAQJHQRbMGXGXAGCG9HQBABAT87FBABCIJAb87FBABCGJAO87FBSFMAEATjGBAECNJAbjGBAECIJAOjGBMALCoBJAKCEWJHYAOjGBAYATjGIALAICGWJATjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAICFJHICbZCGWJAOjGBALCoBJAKCGJCbZCEWJHOATjGBAOAbjGIALAIAm9FAmCb6qJHICbZCGWJAbjGBAIAt9FAtCb6qJRIAKCEJRKMANCFJRNABCKJRBAECSJREAKCbZRKAICbZRIAfCEJHfAF9JQBMMCBC99AMAc6yRKMALCoFJ8kUUUUBAKM/tIFGa8jUUUUBCTlRLC9+RKGXAFCLJAI9LQBCaRKAE2BBC/+FZC/QF9HQBALhB83ENAECFJRKAEAIJC98JREGXAF9FQBGXAGCG6QBEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMALCNJAICFZCGWqHGAICGrCBAICFrCFZl9zAG8oGBJHIjGBABAIjGBABCIJRBAFCaJHFQBSGMMEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMABAICGrCBAICFrCFZl9zALCNJAICFZCGWqHI8oGBJHG87FBAIAGjGBABCGJRBAFCaJHFQBMMCBC99AKAE6yRKMAKM/dLEK97FaF97GXGXAGCI9HQBAF9FQFCBRGEXABABDBBBHECiD+rFCiD+sFD/6FHIAECND+rFCiD+sFD/6FAID/gFAECTD+rFCiD+sFD/6FHLD/gFD/kFD/lFHKCBDtD+2FHOAICUUUU94DtHND9OD9RD/kFHI9DBB/+hDYAIAID/mFAKAKD/mFALAOALAND9OD9RD/kFHIAID/mFD/kFD/kFD/jFD/nFHLD/mF9DBBX9LDYHOD/kFCgFDtD9OAECUUU94DtD9OD9QAIALD/mFAOD/kFCND+rFCU/+EDtD9OD9QAKALD/mFAOD/kFCTD+rFCUU/8ODtD9OD9QDMBBABCTJRBAGCIJHGAF9JQBSGMMAF9FQBCBRGEXABCTJHVAVDBBBHECBDtHOCUU98D8cFCUU98D8cEHND9OABDBBBHKAEDQILKOSQfbPden8c8d8e8fCggFDtD9OD/6FAKAEDQBFGENVcMTtmYi8ZpyHECTD+sFD/6FHID/gFAECTD+rFCTD+sFD/6FHLD/gFD/kFD/lFHE9DB/+g6DYALAEAOD+2FHOALCUUUU94DtHcD9OD9RD/kFHLALD/mFAEAED/mFAIAOAIAcD9OD9RD/kFHEAED/mFD/kFD/kFD/jFD/nFHID/mF9DBBX9LDYHOD/kFCTD+rFALAID/mFAOD/kFCggEDtD9OD9QHLAEAID/mFAOD/kFCaDbCBDnGCBDnECBDnKCBDnOCBDncCBDnMCBDnfCBDnbD9OHEDQNVi8ZcMpySQ8c8dfb8e8fD9QDMBBABAKAND9OALAEDQBFTtGEmYILPdKOenD9QDMBBABCAJRBAGCIJHGAF9JQBMMM/hEIGaF97FaL978jUUUUBCTlREGXAF9FQBCBRIEXAEABDBBBHLABCTJHKDBBBHODQILKOSQfbPden8c8d8e8fHNCTD+sFHVCID+rFDMIBAB9DBBU8/DY9D/zI818/DYAVCEDtD9QD/6FD/nFHVALAODQBFGENVcMTtmYi8ZpyHLCTD+rFCTD+sFD/6FD/mFHOAOD/mFAVALCTD+sFD/6FD/mFHcAcD/mFAVANCTD+rFCTD+sFD/6FD/mFHNAND/mFD/kFD/kFD/lFCBDtD+4FD/jF9DB/+g6DYHVD/mF9DBBX9LDYHLD/kFCggEDtHMD9OAcAVD/mFALD/kFCTD+rFD9QHcANAVD/mFALD/kFCTD+rFAOAVD/mFALD/kFAMD9OD9QHVDQBFTtGEmYILPdKOenHLD8dBAEDBIBDyB+t+J83EBABCNJALD8dFAEDBIBDyF+t+J83EBAKAcAVDQNVi8ZcMpySQ8c8dfb8e8fHVD8dBAEDBIBDyG+t+J83EBABCiJAVD8dFAEDBIBDyE+t+J83EBABCAJRBAICIJHIAF9JQBMMM9jFF97GXAGCGrAF9sHG9FQBCBRFEXABABDBBBHECND+rFCND+sFD/6FAECiD+sFCnD+rFCUUU/8EDtD+uFD/mFDMBBABCTJRBAFCIJHFAG9JQBMMM9TFEaCBCB8oGUkUUBHFABCEJC98ZJHBjGUkUUBGXGXAB8/BCTWHGuQBCaREABAGlCggEJCTrXBCa6QFMAFREMAEMMMFBCUNMIT9tBB",t=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]),r=new Uint8Array([32,0,65,253,3,1,2,34,4,106,6,5,11,8,7,20,13,33,12,16,128,9,116,64,19,113,127,15,10,21,22,14,255,66,24,54,136,107,18,23,192,26,114,118,132,17,77,101,130,144,27,87,131,44,45,74,156,154,70,167]);if(typeof WebAssembly!="object")return{supported:!1};let i=n;WebAssembly.validate(t)&&(i=e);let a;const o=WebAssembly.instantiate(s(i),{}).then(h=>{a=h.instance,a.exports.__wasm_call_ctors()});function s(h){const f=new Uint8Array(h.length);for(let p=0;p96?y-71:y>64?y-65:y>47?y+4:y>46?63:62}let d=0;for(let p=0;p{t&&t(r),n&&(Ay||(Ay=new z$),Ay.setDecoderPath(typeof n=="string"?n:gG),r.setDRACOLoader(Ay)),e&&r.setMeshoptDecoder(typeof MA=="function"?MA():MA)}}function xx(n,e=!0,t=!0,r){return ld(UC,n,mG(e,t,r))}xx.preload=(n,e=!0,t=!0,r)=>ld.preload(UC,n,mG(e,t,r));xx.clear=n=>ld.clear(UC,n);xx.setDecoderPath=n=>{gG=n};const V$=Y.forwardRef((h,c)=>{var f=h,{makeDefault:n,camera:e,regress:t,domElement:r,enableDamping:i=!0,keyEvents:a=!1,onChange:o,onStart:s,onEnd:l}=f,u=vi(f,["makeDefault","camera","regress","domElement","enableDamping","keyEvents","onChange","onStart","onEnd"]);const d=_i(P=>P.invalidate),p=_i(P=>P.camera),y=_i(P=>P.gl),g=_i(P=>P.events),v=_i(P=>P.setEvents),x=_i(P=>P.set),S=_i(P=>P.get),A=_i(P=>P.performance),b=e||p,w=r||g.connected||y.domElement,C=Y.useMemo(()=>new i$(b),[b]);return pg(()=>{C.enabled&&C.update()},-1),Y.useEffect(()=>(a&&C.connect(a===!0?w:a),C.connect(w),()=>void C.dispose()),[a,w,t,C,d]),Y.useEffect(()=>{const P=D=>{d(),t&&A.regress(),o&&o(D)},E=D=>{s&&s(D)},R=D=>{l&&l(D)};return C.addEventListener("change",P),C.addEventListener("start",E),C.addEventListener("end",R),()=>{C.removeEventListener("start",E),C.removeEventListener("end",R),C.removeEventListener("change",P)}},[o,s,l,C,d,v]),Y.useEffect(()=>{if(n){const P=S().controls;return x({controls:C}),()=>x({controls:P})}},[n,C]),Y.createElement("primitive",td({ref:c,object:C,enableDamping:i},u))}),wA={apartment:"lebombo_1k.hdr",city:"potsdamer_platz_1k.hdr",dawn:"kiara_1_dawn_1k.hdr",forest:"forest_slope_1k.hdr",lobby:"st_fagans_interior_1k.hdr",night:"dikhololo_night_1k.hdr",park:"rooitou_park_1k.hdr",studio:"studio_small_03_1k.hdr",sunset:"venice_sunset_1k.hdr",warehouse:"empty_warehouse_01_1k.hdr"},W$="https://raw.githack.com/pmndrs/drei-assets/456060a26bbeb8fdf79326f224b6d99b8bcce736/hdri/",PI=n=>Array.isArray(n);function yG({files:n=["/px.png","/nx.png","/py.png","/ny.png","/pz.png","/nz.png"],path:e="",preset:t=void 0,encoding:r=void 0,extensions:i}={}){var a;let o=null,s=!1,l;if(t){if(!(t in wA))throw new Error("Preset must be one of: "+Object.keys(wA).join(", "));n=wA[t],e=W$}if(s=PI(n),l=PI(n)?"cube":n.startsWith("data:application/exr")?"exr":n.startsWith("data:application/hdr")?"hdr":(a=n.split(".").pop())==null||(a=a.split("?"))==null||(a=a.shift())==null?void 0:a.toLowerCase(),o=s?TU:l==="hdr"?U$:l==="exr"?G$:null,!o)throw new Error("useEnvironment: Unrecognized file extension: "+n);const u=ld(o,s?[n]:n,d=>{d.setPath==null||d.setPath(e),i&&i(d)}),c=s?u[0]:u;c.mapping=s?qo:Lf;const h=3001,f=3e3;return"colorSpace"in c?c.colorSpace=(r!=null?r:s)?"srgb":"srgb-linear":c.encoding=(r!=null?r:s)?h:f,c}const X$=n=>n.current&&n.current.isScene,Y$=n=>X$(n)?n.current:n;function GC(n,e,t,r,i=0){const a=Y$(e||t),o=a.background,s=a.environment,l=a.backgroundBlurriness||0;return n!=="only"&&(a.environment=r),n&&(a.background=r),n&&a.backgroundBlurriness!==void 0&&(a.backgroundBlurriness=i),()=>{n!=="only"&&(a.environment=s),n&&(a.background=o),n&&a.backgroundBlurriness!==void 0&&(a.backgroundBlurriness=l)}}function zC({scene:n,background:e=!1,blur:t,map:r}){const i=_i(a=>a.scene);return Y.useLayoutEffect(()=>{if(r)return GC(e,n,i,r,t)},[i,n,r,e,t]),null}function _G(i){var a=i,{background:n=!1,scene:e,blur:t}=a,r=vi(a,["background","scene","blur"]);const o=yG(r),s=_i(l=>l.scene);return Y.useLayoutEffect(()=>GC(n,e,s,o,t),[o,n,e,s,t]),null}function j$({children:n,near:e=1,far:t=1e3,resolution:r=256,frames:i=1,map:a,background:o=!1,blur:s,scene:l,files:u,path:c,preset:h=void 0,extensions:f}){const d=_i(S=>S.gl),p=_i(S=>S.scene),y=Y.useRef(null),[g]=Y.useState(()=>new xv),v=Y.useMemo(()=>{const S=new iC(r);return S.texture.type=bi,S},[r]);Y.useLayoutEffect(()=>(i===1&&y.current.update(d,g),GC(o,l,p,v.texture,s)),[n,g,v.texture,l,p,o,i,d]);let x=1;return pg(()=>{(i===1/0||xjU({GroundProjectedEnvImpl:e$}),[]);const s=Y.useMemo(()=>[o],[o]),l=(e=n.ground)==null?void 0:e.height,u=(t=n.ground)==null?void 0:t.radius,c=(r=(i=n.ground)==null?void 0:i.scale)!==null&&r!==void 0?r:1e3;return Y.createElement(Y.Fragment,null,Y.createElement(zC,td({},n,{map:o})),Y.createElement("groundProjectedEnvImpl",{args:s,scale:c,height:l,radius:u}))}function Z$(n){return n.ground?Y.createElement(J$,n):n.map?Y.createElement(zC,n):n.children?Y.createElement(j$,n):Y.createElement(_G,n)}const K$=Y.forwardRef((y,p)=>{var g=y,{scale:n=10,frames:e=1/0,opacity:t=1,width:r=1,height:i=1,blur:a=1,near:o=0,far:s=10,resolution:l=512,smooth:u=!0,color:c="#000000",depthWrite:h=!1,renderOrder:f}=g,d=vi(g,["scale","frames","opacity","width","height","blur","near","far","resolution","smooth","color","depthWrite","renderOrder"]);const v=Y.useRef(null),x=_i(X=>X.scene),S=_i(X=>X.gl),A=Y.useRef(null);r=r*(Array.isArray(n)?n[0]:n||1),i=i*(Array.isArray(n)?n[1]:n||1);const[b,w,C,P,E,R,D]=Y.useMemo(()=>{const X=new oa(l,l),ne=new oa(l,l);ne.texture.generateMipmaps=X.texture.generateMipmaps=!1;const H=new id(r,i).rotateX(Math.PI/2),K=new ur(H),Q=new ex;Q.depthTest=Q.depthWrite=!1,Q.onBeforeCompile=re=>{re.uniforms=_r(Tt({},re.uniforms),{ucolor:{value:new at(c)}}),re.fragmentShader=re.fragmentShader.replace("void main() {",`uniform vec3 ucolor; +`;continue}if((I=R.match(T))&&(E.gamma=parseFloat(I[1])),(I=R.match(w))&&(E.exposure=parseFloat(I[1])),(I=R.match(C))&&(E.valid|=2,E.format=I[1]),(I=R.match(P))&&(E.valid|=4,E.height=parseInt(I[1],10),E.width=parseInt(I[2],10)),E.valid&2&&E.valid&4)break}return E.valid&2?E.valid&4?E:s(3,"missing image size specifier"):s(3,"missing format specifier")},p=function(S,A,T){const w=A;if(w<8||w>32767||S[0]!==2||S[1]!==2||S[2]&128)return new Uint8Array(S);if(w!==(S[2]<<8|S[3]))return s(3,"wrong scanline width");const C=new Uint8Array(4*A*T);if(!C.length)return s(4,"unable to allocate buffer space");let P=0,E=0;const R=4*w,I=new Uint8Array(4),O=new Uint8Array(R);let U=T;for(;U>0&&ES.byteLength)return s(1);if(I[0]=S[E++],I[1]=S[E++],I[2]=S[E++],I[3]=S[E++],I[0]!=2||I[1]!=2||(I[2]<<8|I[3])!=w)return s(3,"bad rgbe scanline format");let F=0,z;for(;F128;if(ne&&(z-=128),z===0||F+z>R)return s(3,"bad scanline data");if(ne){const H=S[E++];for(let j=0;j>3]&1<<(B&7))&&(V[oe++]=B);for(var Y=oe-1;oe<65536;)V[oe++]=0;return Y}function I(N){for(var V=0;V<16384;V++)N[V]={},N[V].len=0,N[V].lit=0,N[V].p=null}const O={l:0,c:0,lc:0};function U(N,V,oe,B,Y){for(;oe>oe&(1<0;--V){var B=oe+F[V]>>1;F[V]=oe,oe=B}for(var V=0;V<65537;++V){var Y=N[V];Y>0&&(N[V]=Y|F[Y]++<<6)}}function X(N,V,oe,B,Y,K,re){for(var te=oe,ye=0,Ae=0;Y<=K;Y++){if(te.value-oe.value>B)return!1;U(6,ye,Ae,N,te);var Te=O.l;if(ye=O.c,Ae=O.lc,re[Y]=Te,Te==63){if(te.value-oe.value>B)throw"Something wrong with hufUnpackEncTable";U(8,ye,Ae,N,te);var be=O.l+6;if(ye=O.c,Ae=O.lc,Y+be>K+1)throw"Something wrong with hufUnpackEncTable";for(;be--;)re[Y++]=0;Y--}else if(Te>=59){var be=Te-59+2;if(Y+be>K+1)throw"Something wrong with hufUnpackEncTable";for(;be--;)re[Y++]=0;Y--}}z(re)}function ne(N){return N&63}function H(N){return N>>6}function j(N,V,oe,B){for(;V<=oe;V++){var Y=H(N[V]),K=ne(N[V]);if(Y>>K)throw"Invalid table entry";if(K>14){var re=B[Y>>K-14];if(re.len)throw"Invalid table entry";if(re.lit++,re.p){var te=re.p;re.p=new Array(re.lit);for(var ye=0;ye0;ye--){var re=B[(Y<<14-K)+Ae];if(re.len||re.p)throw"Invalid table entry";re.len=K,re.lit=V,Ae++}}return!0}const $={c:0,lc:0};function le(N,V,oe,B){N=N<<8|lt(oe,B),V+=8,$.c=N,$.lc=V}const ce={c:0,lc:0};function ie(N,V,oe,B,Y,K,re,te,ye,Ae){if(N==V){B<8&&(le(oe,B,Y,re),oe=$.c,B=$.lc),B-=8;var Te=oe>>B,Te=new Uint8Array([Te])[0];if(ye.value+Te>Ae)return!1;for(var be=te[ye.value-1];Te-- >0;)te[ye.value++]=be}else if(ye.value32767?V-65536:V}const ve={a:0,b:0};function Oe(N,V){var oe=Se(N),B=Se(V),Y=B,K=oe+(Y&1)+(Y>>1),re=K,te=K-Y;ve.a=re,ve.b=te}function Ye(N,V){var oe=he(N),B=he(V),Y=oe-(B>>1)&65535,K=B+Y-32768&65535;ve.a=K,ve.b=Y}function tt(N,V,oe,B,Y,K,re){for(var te=re<16384,ye=oe>Y?Y:oe,Ae=1,Te;Ae<=ye;)Ae<<=1;for(Ae>>=1,Te=Ae,Ae>>=1;Ae>=1;){for(var be=0,ut=be+K*(Y-Te),ke=K*Ae,Ue=K*Te,dt=B*Ae,wt=B*Te,Rt,kt,ct,Ke;be<=ut;be+=Ue){for(var nn=be,It=be+B*(oe-Te);nn<=It;nn+=wt){var Bt=nn+dt,Rn=nn+ke,tr=Rn+dt;te?(Oe(N[nn+V],N[Rn+V]),Rt=ve.a,ct=ve.b,Oe(N[Bt+V],N[tr+V]),kt=ve.a,Ke=ve.b,Oe(Rt,kt),N[nn+V]=ve.a,N[Bt+V]=ve.b,Oe(ct,Ke),N[Rn+V]=ve.a,N[tr+V]=ve.b):(Ye(N[nn+V],N[Rn+V]),Rt=ve.a,ct=ve.b,Ye(N[Bt+V],N[tr+V]),kt=ve.a,Ke=ve.b,Ye(Rt,kt),N[nn+V]=ve.a,N[Bt+V]=ve.b,Ye(ct,Ke),N[Rn+V]=ve.a,N[tr+V]=ve.b)}if(oe&Ae){var Rn=nn+ke;te?Oe(N[nn+V],N[Rn+V]):Ye(N[nn+V],N[Rn+V]),Rt=ve.a,N[Rn+V]=ve.b,N[nn+V]=Rt}}if(Y&Ae)for(var nn=be,It=be+B*(oe-Te);nn<=It;nn+=wt){var Bt=nn+dt;te?Oe(N[nn+V],N[Bt+V]):Ye(N[nn+V],N[Bt+V]),Rt=ve.a,N[Bt+V]=ve.b,N[nn+V]=Rt}Te=Ae,Ae>>=1}return be}function ze(N,V,oe,B,Y,K,re,te,ye,Ae){for(var Te=0,be=0,ut=te,ke=Math.trunc(Y.value+(K+7)/8);Y.value=14;){var Ue=Te>>be-14&16383,dt=V[Ue];if(dt.len)be-=dt.len,ie(dt.lit,re,Te,be,oe,B,Y,ye,Ae,ut),Te=ce.c,be=ce.lc;else{if(!dt.p)throw"hufDecode issues";var wt;for(wt=0;wt=Rt&&H(N[dt.p[wt]])==(Te>>be-Rt&(1<>=kt,be-=kt;be>0;){var dt=V[Te<<14-be&16383];if(dt.len)be-=dt.len,ie(dt.lit,re,Te,be,oe,B,Y,ye,Ae,ut),Te=ce.c,be=ce.lc;else throw"hufDecode issues"}return!0}function Ie(N,V,oe,B,Y,K){var re={value:0},te=oe.value,ye=st(V,oe),Ae=st(V,oe);oe.value+=4;var Te=st(V,oe);if(oe.value+=4,ye<0||ye>=65537||Ae<0||Ae>=65537)throw"Something wrong with HUF_ENCSIZE";var be=new Array(65537),ut=new Array(16384);I(ut);var ke=B-(oe.value-te);if(X(N,V,oe,ke,ye,Ae,be),Te>8*(B-(oe.value-te)))throw"Something wrong with hufUncompress";j(be,ye,Ae,ut),ze(be,ut,N,V,oe,Te,Ae,K,Y,re)}function Z(N,V,oe){for(var B=0;BK||(V[Y++]=N[oe++],Y>K));)V[Y++]=N[B++]}function Pe(N){for(var V=N.byteLength,oe=new Array,B=0,Y=new DataView(N);V>0;){var K=Y.getInt8(B++);if(K<0){var re=-K;V-=re+1;for(var te=0;te>8==255?Y+=B&255:(oe[Y]=B,Y++),N.value++}function Je(N,V){V[0]=pe(N[0]),V[1]=pe(N[1]),V[2]=pe(N[5]),V[3]=pe(N[6]),V[4]=pe(N[14]),V[5]=pe(N[15]),V[6]=pe(N[27]),V[7]=pe(N[28]),V[8]=pe(N[2]),V[9]=pe(N[4]),V[10]=pe(N[7]),V[11]=pe(N[13]),V[12]=pe(N[16]),V[13]=pe(N[26]),V[14]=pe(N[29]),V[15]=pe(N[42]),V[16]=pe(N[3]),V[17]=pe(N[8]),V[18]=pe(N[12]),V[19]=pe(N[17]),V[20]=pe(N[25]),V[21]=pe(N[30]),V[22]=pe(N[41]),V[23]=pe(N[43]),V[24]=pe(N[9]),V[25]=pe(N[11]),V[26]=pe(N[18]),V[27]=pe(N[24]),V[28]=pe(N[31]),V[29]=pe(N[40]),V[30]=pe(N[44]),V[31]=pe(N[53]),V[32]=pe(N[10]),V[33]=pe(N[19]),V[34]=pe(N[23]),V[35]=pe(N[32]),V[36]=pe(N[39]),V[37]=pe(N[45]),V[38]=pe(N[52]),V[39]=pe(N[54]),V[40]=pe(N[20]),V[41]=pe(N[22]),V[42]=pe(N[33]),V[43]=pe(N[38]),V[44]=pe(N[46]),V[45]=pe(N[51]),V[46]=pe(N[55]),V[47]=pe(N[60]),V[48]=pe(N[21]),V[49]=pe(N[34]),V[50]=pe(N[37]),V[51]=pe(N[47]),V[52]=pe(N[50]),V[53]=pe(N[56]),V[54]=pe(N[59]),V[55]=pe(N[61]),V[56]=pe(N[35]),V[57]=pe(N[36]),V[58]=pe(N[48]),V[59]=pe(N[49]),V[60]=pe(N[57]),V[61]=pe(N[58]),V[62]=pe(N[62]),V[63]=pe(N[63])}function W(N){const V=.5*Math.cos(.7853975),oe=.5*Math.cos(3.14159/16),B=.5*Math.cos(3.14159/8),Y=.5*Math.cos(3*3.14159/16),K=.5*Math.cos(5*3.14159/16),re=.5*Math.cos(3*3.14159/8),te=.5*Math.cos(7*3.14159/16);for(var ye=new Array(4),Ae=new Array(4),Te=new Array(4),be=new Array(4),ut=0;ut<8;++ut){var ke=ut*8;ye[0]=B*N[ke+2],ye[1]=re*N[ke+2],ye[2]=B*N[ke+6],ye[3]=re*N[ke+6],Ae[0]=oe*N[ke+1]+Y*N[ke+3]+K*N[ke+5]+te*N[ke+7],Ae[1]=Y*N[ke+1]-te*N[ke+3]-oe*N[ke+5]-K*N[ke+7],Ae[2]=K*N[ke+1]-oe*N[ke+3]+te*N[ke+5]+Y*N[ke+7],Ae[3]=te*N[ke+1]-K*N[ke+3]+Y*N[ke+5]-oe*N[ke+7],Te[0]=V*(N[ke+0]+N[ke+4]),Te[3]=V*(N[ke+0]-N[ke+4]),Te[1]=ye[0]+ye[3],Te[2]=ye[1]-ye[2],be[0]=Te[0]+Te[1],be[1]=Te[3]+Te[2],be[2]=Te[3]-Te[2],be[3]=Te[0]-Te[1],N[ke+0]=be[0]+Ae[0],N[ke+1]=be[1]+Ae[1],N[ke+2]=be[2]+Ae[2],N[ke+3]=be[3]+Ae[3],N[ke+4]=be[3]-Ae[3],N[ke+5]=be[2]-Ae[2],N[ke+6]=be[1]-Ae[1],N[ke+7]=be[0]-Ae[0]}for(var Ue=0;Ue<8;++Ue)ye[0]=B*N[16+Ue],ye[1]=re*N[16+Ue],ye[2]=B*N[48+Ue],ye[3]=re*N[48+Ue],Ae[0]=oe*N[8+Ue]+Y*N[24+Ue]+K*N[40+Ue]+te*N[56+Ue],Ae[1]=Y*N[8+Ue]-te*N[24+Ue]-oe*N[40+Ue]-K*N[56+Ue],Ae[2]=K*N[8+Ue]-oe*N[24+Ue]+te*N[40+Ue]+Y*N[56+Ue],Ae[3]=te*N[8+Ue]-K*N[24+Ue]+Y*N[40+Ue]-oe*N[56+Ue],Te[0]=V*(N[Ue]+N[32+Ue]),Te[3]=V*(N[Ue]-N[32+Ue]),Te[1]=ye[0]+ye[3],Te[2]=ye[1]-ye[2],be[0]=Te[0]+Te[1],be[1]=Te[3]+Te[2],be[2]=Te[3]-Te[2],be[3]=Te[0]-Te[1],N[0+Ue]=be[0]+Ae[0],N[8+Ue]=be[1]+Ae[1],N[16+Ue]=be[2]+Ae[2],N[24+Ue]=be[3]+Ae[3],N[32+Ue]=be[3]-Ae[3],N[40+Ue]=be[2]-Ae[2],N[48+Ue]=be[1]-Ae[1],N[56+Ue]=be[0]-Ae[0]}function G(N){for(var V=0;V<64;++V){var oe=N[0][V],B=N[1][V],Y=N[2][V];N[0][V]=oe+1.5747*Y,N[1][V]=oe-.1873*B-.4682*Y,N[2][V]=oe+1.8556*B}}function de(N,V,oe){for(var B=0;B<64;++B)V[oe+B]=cc.toHalfFloat(Ne(N[B]))}function Ne(N){return N<=1?Math.sign(N)*Math.pow(Math.abs(N),2.2):Math.sign(N)*Math.pow(E,Math.abs(N)-1)}function Le(N){return new DataView(N.array.buffer,N.offset.value,N.size)}function Be(N){var V=N.viewer.buffer.slice(N.offset.value,N.offset.value+N.size),oe=new Uint8Array(Pe(V)),B=new Uint8Array(oe.length);return xe(oe),ge(oe,B),new DataView(B.buffer)}function ht(N){var V=N.array.slice(N.offset.value,N.offset.value+N.size),oe=$m(V),B=new Uint8Array(oe.length);return xe(oe),ge(oe,B),new DataView(B.buffer)}function je(N){for(var V=N.viewer,oe={value:N.offset.value},B=new Uint16Array(N.width*N.scanlineBlockSize*(N.channels*N.type)),Y=new Uint8Array(8192),K=0,re=new Array(N.channels),te=0;te=8192)throw"Something is wrong with PIZ_COMPRESSION BITMAP_SIZE";if(ye<=Ae)for(var te=0;te0;){var te=xt(V.buffer,oe),ye=ae(V,oe),Ae=ye>>2&3,Te=(ye>>4)-1,be=new Int8Array([Te])[0],ut=ae(V,oe);K.push({name:te,index:be,type:ut,compression:Ae}),re-=te.length+3}for(var ke=Ii.channels,Ue=new Array(N.channels),dt=0;dt=0&&(kt.idx[Ke.index]=ct),wt.offset=ct)}if(Y.acCompressedSize>0)switch(Y.acCompression){case 0:var Bt=new Uint16Array(Y.totalAcUncompressedCount);Ie(N.array,V,oe,Y.acCompressedSize,Bt,Y.totalAcUncompressedCount);break;case 1:var nn=N.array.slice(oe.value,oe.value+Y.totalAcUncompressedCount),It=$m(nn),Bt=new Uint16Array(It.buffer);oe.value+=Y.totalAcUncompressedCount;break}if(Y.dcCompressedSize>0){var Rn={array:N.array,offset:oe,size:Y.dcCompressedSize},tr=new Uint16Array(ht(Rn).buffer);oe.value+=Y.dcCompressedSize}if(Y.rleRawSize>0){var nn=N.array.slice(oe.value,oe.value+Y.rleCompressedSize),It=$m(nn),Wn=Pe(It.buffer);oe.value+=Y.rleCompressedSize}for(var vn=0,cn=new Array(Ue.length),dt=0;dt>10,oe=N&1023;return(N>>15?-1:1)*(V?V===31?oe?NaN:1/0:Math.pow(2,V-15)*(1+oe/1024):6103515625e-14*(oe/1024))}function se(N,V){var oe=N.getUint16(V.value,!0);return V.value+=2,oe}function Xe(N,V){return pe(se(N,V))}function Qe(N,V,oe,B){for(var Y=oe.value,K=[];oe.valueJt.height?Jt.height-V:Jt.scanlineBlockSize;const B=Jt.size=Jt.height)break;for(let re=0;re{const s={attributeIDs:this.defaultAttributeIDs,attributeTypes:this.defaultAttributeTypes,useUniqueIDs:!1};this.decodeGeometry(o,s).then(t).catch(i)},r,i)}decodeDracoFile(e,t,r,i){const a={attributeIDs:r||this.defaultAttributeIDs,attributeTypes:i||this.defaultAttributeTypes,useUniqueIDs:!!r};this.decodeGeometry(e,a).then(t)}decodeGeometry(e,t){for(const l in t.attributeTypes){const u=t.attributeTypes[l];u.BYTES_PER_ELEMENT!==void 0&&(t.attributeTypes[l]=u.name)}const r=JSON.stringify(t);if(Q1.has(e)){const l=Q1.get(e);if(l.key===r)return l.promise;if(e.byteLength===0)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let i;const a=this.workerNextTaskID++,o=e.byteLength,s=this._getWorker(a,o).then(l=>(i=l,new Promise((u,c)=>{i._callbacks[a]={resolve:u,reject:c},i.postMessage({type:"decode",id:a,taskConfig:t,buffer:e},[e])}))).then(l=>this._createGeometry(l.geometry));return s.catch(()=>!0).then(()=>{i&&a&&this._releaseTask(i,a)}),Q1.set(e,{key:r,promise:s}),s}_createGeometry(e){const t=new Yt;e.index&&t.setIndex(new yn(e.index.array,1));for(let r=0;r{r.load(e,i,void 0,a)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const e=typeof WebAssembly!="object"||this.decoderConfig.type==="js",t=[];return e?t.push(this._loadLibrary("draco_decoder.js","text")):(t.push(this._loadLibrary("draco_wasm_wrapper.js","text")),t.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(t).then(r=>{const i=r[0];e||(this.decoderConfig.wasmBinary=r[1]);const a=kK.toString(),o=["/* draco decoder */",i,"","/* worker */",a.substring(a.indexOf("{")+1,a.lastIndexOf("}"))].join(` +`);this.workerSourceURL=URL.createObjectURL(new Blob([o]))}),this.decoderPending}_getWorker(e,t){return this._initDecoder().then(()=>{if(this.workerPool.lengtha._taskLoad?-1:1});const r=this.workerPool[this.workerPool.length-1];return r._taskCosts[e]=t,r._taskLoad+=t,r})}_releaseTask(e,t){e._taskLoad-=e._taskCosts[t],delete e._callbacks[t],delete e._taskCosts[t]}debug(){}dispose(){for(let e=0;e{const h=c.draco,f=new h.Decoder,d=new h.DecoderBuffer;d.Init(new Int8Array(l),l.byteLength);try{const p=t(h,f,d,u),y=p.attributes.map(g=>g.array.buffer);p.index&&y.push(p.index.array.buffer),self.postMessage({type:"decode",id:s.id,geometry:p},y)}catch(p){self.postMessage({type:"error",id:s.id,error:p.message})}finally{h.destroy(d),h.destroy(f)}});break}};function t(o,s,l,u){const c=u.attributeIDs,h=u.attributeTypes;let f,d;const p=s.GetEncodedGeometryType(l);if(p===o.TRIANGULAR_MESH)f=new o.Mesh,d=s.DecodeBufferToMesh(l,f);else if(p===o.POINT_CLOUD)f=new o.PointCloud,d=s.DecodeBufferToPointCloud(l,f);else throw new Error("THREE.DRACOLoader: Unexpected geometry type.");if(!d.ok()||f.ptr===0)throw new Error("THREE.DRACOLoader: Decoding failed: "+d.error_msg());const y={index:null,attributes:[]};for(const g in c){const v=self[h[g]];let x,S;if(u.useUniqueIDs)S=c[g],x=s.GetAttributeByUniqueId(f,S);else{if(S=s.GetAttributeId(f,o[c[g]]),S===-1)continue;x=s.GetAttribute(f,S)}y.attributes.push(i(o,s,f,g,v,x))}return p===o.TRIANGULAR_MESH&&(y.index=r(o,s,f)),o.destroy(f),y}function r(o,s,l){const c=l.num_faces()*3,h=c*4,f=o._malloc(h);s.GetTrianglesUInt32Array(l,h,f);const d=new Uint32Array(o.HEAPF32.buffer,f,c).slice();return o._free(f),{array:d,itemSize:1}}function i(o,s,l,u,c,h){const f=h.num_components(),p=l.num_points()*f,y=p*c.BYTES_PER_ELEMENT,g=a(o,c),v=o._malloc(y);s.GetAttributeDataArrayForAllPoints(l,h,g,y,v);const x=new c(o.HEAPF32.buffer,v,p).slice();return o._free(v),{name:u,array:x,itemSize:f}}function a(o,s){switch(s){case Float32Array:return o.DT_FLOAT32;case Int8Array:return o.DT_INT8;case Int16Array:return o.DT_INT16;case Int32Array:return o.DT_INT32;case Uint8Array:return o.DT_UINT8;case Uint16Array:return o.DT_UINT16;case Uint32Array:return o.DT_UINT32}}}let t0;const $1=()=>{if(t0)return t0;const n="B9h9z9tFBBBF8fL9gBB9gLaaaaaFa9gEaaaB9gFaFa9gEaaaFaEMcBFFFGGGEIIILF9wFFFLEFBFKNFaFCx/IFMO/LFVK9tv9t9vq95GBt9f9f939h9z9t9f9j9h9s9s9f9jW9vq9zBBp9tv9z9o9v9wW9f9kv9j9v9kv9WvqWv94h919m9mvqBF8Z9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv94h919m9mvqBGy9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv949TvZ91v9u9jvBEn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9P9jWBIi9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9R919hWBLn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9F949wBKI9z9iqlBOc+x8ycGBM/qQFTa8jUUUUBCU/EBlHL8kUUUUBC9+RKGXAGCFJAI9LQBCaRKAE2BBC+gF9HQBALAEAIJHOAGlAGTkUUUBRNCUoBAG9uC/wgBZHKCUGAKCUG9JyRVAECFJRICBRcGXEXAcAF9PQFAVAFAclAcAVJAF9JyRMGXGXAG9FQBAMCbJHKC9wZRSAKCIrCEJCGrRQANCUGJRfCBRbAIRTEXGXAOATlAQ9PQBCBRISEMATAQJRIGXAS9FQBCBRtCBREEXGXAOAIlCi9PQBCBRISLMANCU/CBJAEJRKGXGXGXGXGXATAECKrJ2BBAtCKZrCEZfIBFGEBMAKhB83EBAKCNJhB83EBSEMAKAI2BIAI2BBHmCKrHYAYCE6HYy86BBAKCFJAICIJAYJHY2BBAmCIrCEZHPAPCE6HPy86BBAKCGJAYAPJHY2BBAmCGrCEZHPAPCE6HPy86BBAKCEJAYAPJHY2BBAmCEZHmAmCE6Hmy86BBAKCIJAYAmJHY2BBAI2BFHmCKrHPAPCE6HPy86BBAKCLJAYAPJHY2BBAmCIrCEZHPAPCE6HPy86BBAKCKJAYAPJHY2BBAmCGrCEZHPAPCE6HPy86BBAKCOJAYAPJHY2BBAmCEZHmAmCE6Hmy86BBAKCNJAYAmJHY2BBAI2BGHmCKrHPAPCE6HPy86BBAKCVJAYAPJHY2BBAmCIrCEZHPAPCE6HPy86BBAKCcJAYAPJHY2BBAmCGrCEZHPAPCE6HPy86BBAKCMJAYAPJHY2BBAmCEZHmAmCE6Hmy86BBAKCSJAYAmJHm2BBAI2BEHICKrHYAYCE6HYy86BBAKCQJAmAYJHm2BBAICIrCEZHYAYCE6HYy86BBAKCfJAmAYJHm2BBAICGrCEZHYAYCE6HYy86BBAKCbJAmAYJHK2BBAICEZHIAICE6HIy86BBAKAIJRISGMAKAI2BNAI2BBHmCIrHYAYCb6HYy86BBAKCFJAICNJAYJHY2BBAmCbZHmAmCb6Hmy86BBAKCGJAYAmJHm2BBAI2BFHYCIrHPAPCb6HPy86BBAKCEJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCIJAmAYJHm2BBAI2BGHYCIrHPAPCb6HPy86BBAKCLJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCKJAmAYJHm2BBAI2BEHYCIrHPAPCb6HPy86BBAKCOJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCNJAmAYJHm2BBAI2BIHYCIrHPAPCb6HPy86BBAKCVJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCcJAmAYJHm2BBAI2BLHYCIrHPAPCb6HPy86BBAKCMJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCSJAmAYJHm2BBAI2BKHYCIrHPAPCb6HPy86BBAKCQJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCfJAmAYJHm2BBAI2BOHICIrHYAYCb6HYy86BBAKCbJAmAYJHK2BBAICbZHIAICb6HIy86BBAKAIJRISFMAKAI8pBB83BBAKCNJAICNJ8pBB83BBAICTJRIMAtCGJRtAECTJHEAS9JQBMMGXAIQBCBRISEMGXAM9FQBANAbJ2BBRtCBRKAfREEXAEANCU/CBJAKJ2BBHTCFrCBATCFZl9zAtJHt86BBAEAGJREAKCFJHKAM9HQBMMAfCFJRfAIRTAbCFJHbAG9HQBMMABAcAG9sJANCUGJAMAG9sTkUUUBpANANCUGJAMCaJAG9sJAGTkUUUBpMAMCBAIyAcJRcAIQBMC9+RKSFMCBC99AOAIlAGCAAGCA9Ly6yRKMALCU/EBJ8kUUUUBAKM+OmFTa8jUUUUBCoFlHL8kUUUUBC9+RKGXAFCE9uHOCtJAI9LQBCaRKAE2BBHNC/wFZC/gF9HQBANCbZHVCF9LQBALCoBJCgFCUFT+JUUUBpALC84Jha83EBALC8wJha83EBALC8oJha83EBALCAJha83EBALCiJha83EBALCTJha83EBALha83ENALha83EBAEAIJC9wJRcAECFJHNAOJRMGXAF9FQBCQCbAVCF6yRSABRECBRVCBRQCBRfCBRICBRKEXGXAMAcuQBC9+RKSEMGXGXAN2BBHOC/vF9LQBALCoBJAOCIrCa9zAKJCbZCEWJHb8oGIRTAb8oGBRtGXAOCbZHbAS9PQBALAOCa9zAIJCbZCGWJ8oGBAVAbyROAb9FRbGXGXAGCG9HQBABAt87FBABCIJAO87FBABCGJAT87FBSFMAEAtjGBAECNJAOjGBAECIJATjGBMAVAbJRVALCoBJAKCEWJHmAOjGBAmATjGIALAICGWJAOjGBALCoBJAKCFJCbZHKCEWJHTAtjGBATAOjGIAIAbJRIAKCFJRKSGMGXGXAbCb6QBAQAbJAbC989zJCFJRQSFMAM1BBHbCgFZROGXGXAbCa9MQBAMCFJRMSFMAM1BFHbCgBZCOWAOCgBZqROGXAbCa9MQBAMCGJRMSFMAM1BGHbCgBZCfWAOqROGXAbCa9MQBAMCEJRMSFMAM1BEHbCgBZCdWAOqROGXAbCa9MQBAMCIJRMSFMAM2BIC8cWAOqROAMCLJRMMAOCFrCBAOCFZl9zAQJRQMGXGXAGCG9HQBABAt87FBABCIJAQ87FBABCGJAT87FBSFMAEAtjGBAECNJAQjGBAECIJATjGBMALCoBJAKCEWJHOAQjGBAOATjGIALAICGWJAQjGBALCoBJAKCFJCbZHKCEWJHOAtjGBAOAQjGIAICFJRIAKCFJRKSFMGXAOCDF9LQBALAIAcAOCbZJ2BBHbCIrHTlCbZCGWJ8oGBAVCFJHtATyROALAIAblCbZCGWJ8oGBAtAT9FHmJHtAbCbZHTyRbAT9FRTGXGXAGCG9HQBABAV87FBABCIJAb87FBABCGJAO87FBSFMAEAVjGBAECNJAbjGBAECIJAOjGBMALAICGWJAVjGBALCoBJAKCEWJHYAOjGBAYAVjGIALAICFJHICbZCGWJAOjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAIAmJCbZHICGWJAbjGBALCoBJAKCGJCbZHKCEWJHOAVjGBAOAbjGIAKCFJRKAIATJRIAtATJRVSFMAVCBAM2BBHYyHTAOC/+F6HPJROAYCbZRtGXGXAYCIrHmQBAOCFJRbSFMAORbALAIAmlCbZCGWJ8oGBROMGXGXAtQBAbCFJRVSFMAbRVALAIAYlCbZCGWJ8oGBRbMGXGXAP9FQBAMCFJRYSFMAM1BFHYCgFZRTGXGXAYCa9MQBAMCGJRYSFMAM1BGHYCgBZCOWATCgBZqRTGXAYCa9MQBAMCEJRYSFMAM1BEHYCgBZCfWATqRTGXAYCa9MQBAMCIJRYSFMAM1BIHYCgBZCdWATqRTGXAYCa9MQBAMCLJRYSFMAMCKJRYAM2BLC8cWATqRTMATCFrCBATCFZl9zAQJHQRTMGXGXAmCb6QBAYRPSFMAY1BBHMCgFZROGXGXAMCa9MQBAYCFJRPSFMAY1BFHMCgBZCOWAOCgBZqROGXAMCa9MQBAYCGJRPSFMAY1BGHMCgBZCfWAOqROGXAMCa9MQBAYCEJRPSFMAY1BEHMCgBZCdWAOqROGXAMCa9MQBAYCIJRPSFMAYCLJRPAY2BIC8cWAOqROMAOCFrCBAOCFZl9zAQJHQROMGXGXAtCb6QBAPRMSFMAP1BBHMCgFZRbGXGXAMCa9MQBAPCFJRMSFMAP1BFHMCgBZCOWAbCgBZqRbGXAMCa9MQBAPCGJRMSFMAP1BGHMCgBZCfWAbqRbGXAMCa9MQBAPCEJRMSFMAP1BEHMCgBZCdWAbqRbGXAMCa9MQBAPCIJRMSFMAPCLJRMAP2BIC8cWAbqRbMAbCFrCBAbCFZl9zAQJHQRbMGXGXAGCG9HQBABAT87FBABCIJAb87FBABCGJAO87FBSFMAEATjGBAECNJAbjGBAECIJAOjGBMALCoBJAKCEWJHYAOjGBAYATjGIALAICGWJATjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAICFJHICbZCGWJAOjGBALCoBJAKCGJCbZCEWJHOATjGBAOAbjGIALAIAm9FAmCb6qJHICbZCGWJAbjGBAIAt9FAtCb6qJRIAKCEJRKMANCFJRNABCKJRBAECSJREAKCbZRKAICbZRIAfCEJHfAF9JQBMMCBC99AMAc6yRKMALCoFJ8kUUUUBAKM/tIFGa8jUUUUBCTlRLC9+RKGXAFCLJAI9LQBCaRKAE2BBC/+FZC/QF9HQBALhB83ENAECFJRKAEAIJC98JREGXAF9FQBGXAGCG6QBEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMALCNJAICFZCGWqHGAICGrCBAICFrCFZl9zAG8oGBJHIjGBABAIjGBABCIJRBAFCaJHFQBSGMMEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMABAICGrCBAICFrCFZl9zALCNJAICFZCGWqHI8oGBJHG87FBAIAGjGBABCGJRBAFCaJHFQBMMCBC99AKAE6yRKMAKM+lLKFaF99GaG99FaG99GXGXAGCI9HQBAF9FQFEXGXGX9DBBB8/9DBBB+/ABCGJHG1BB+yAB1BBHE+yHI+L+TABCFJHL1BBHK+yHO+L+THN9DBBBB9gHVyAN9DBB/+hANAN+U9DBBBBANAVyHcAc+MHMAECa3yAI+SHIAI+UAcAMAKCa3yAO+SHcAc+U+S+S+R+VHO+U+SHN+L9DBBB9P9d9FQBAN+oRESFMCUUUU94REMAGAE86BBGXGX9DBBB8/9DBBB+/Ac9DBBBB9gyAcAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMALAG86BBGXGX9DBBB8/9DBBB+/AI9DBBBB9gyAIAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMABAG86BBABCIJRBAFCaJHFQBSGMMAF9FQBEXGXGX9DBBB8/9DBBB+/ABCIJHG8uFB+yAB8uFBHE+yHI+L+TABCGJHL8uFBHK+yHO+L+THN9DBBBB9gHVyAN9DB/+g6ANAN+U9DBBBBANAVyHcAc+MHMAECa3yAI+SHIAI+UAcAMAKCa3yAO+SHcAc+U+S+S+R+VHO+U+SHN+L9DBBB9P9d9FQBAN+oRESFMCUUUU94REMAGAE87FBGXGX9DBBB8/9DBBB+/Ac9DBBBB9gyAcAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMALAG87FBGXGX9DBBB8/9DBBB+/AI9DBBBB9gyAIAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMABAG87FBABCNJRBAFCaJHFQBMMM/SEIEaE99EaF99GXAF9FQBCBREABRIEXGXGX9D/zI818/AICKJ8uFBHLCEq+y+VHKAI8uFB+y+UHO9DB/+g6+U9DBBB8/9DBBB+/AO9DBBBB9gy+SHN+L9DBBB9P9d9FQBAN+oRVSFMCUUUU94RVMAICIJ8uFBRcAICGJ8uFBRMABALCFJCEZAEqCFWJAV87FBGXGXAKAM+y+UHN9DB/+g6+U9DBBB8/9DBBB+/AN9DBBBB9gy+SHS+L9DBBB9P9d9FQBAS+oRMSFMCUUUU94RMMABALCGJCEZAEqCFWJAM87FBGXGXAKAc+y+UHK9DB/+g6+U9DBBB8/9DBBB+/AK9DBBBB9gy+SHS+L9DBBB9P9d9FQBAS+oRcSFMCUUUU94RcMABALCaJCEZAEqCFWJAc87FBGXGX9DBBU8/AOAO+U+TANAN+U+TAKAK+U+THO9DBBBBAO9DBBBB9gy+R9DB/+g6+U9DBBB8/+SHO+L9DBBB9P9d9FQBAO+oRcSFMCUUUU94RcMABALCEZAEqCFWJAc87FBAICNJRIAECIJREAFCaJHFQBMMM9JBGXAGCGrAF9sHF9FQBEXABAB8oGBHGCNWCN91+yAGCi91CnWCUUU/8EJ+++U84GBABCIJRBAFCaJHFQBMMM9TFEaCBCB8oGUkUUBHFABCEJC98ZJHBjGUkUUBGXGXAB8/BCTWHGuQBCaREABAGlCggEJCTrXBCa6QFMAFREMAEM/lFFFaGXGXAFABqCEZ9FQBABRESFMGXGXAGCT9PQBABRESFMABREEXAEAF8oGBjGBAECIJAFCIJ8oGBjGBAECNJAFCNJ8oGBjGBAECSJAFCSJ8oGBjGBAECTJREAFCTJRFAGC9wJHGCb9LQBMMAGCI9JQBEXAEAF8oGBjGBAFCIJRFAECIJREAGC98JHGCE9LQBMMGXAG9FQBEXAEAF2BB86BBAECFJREAFCFJRFAGCaJHGQBMMABMoFFGaGXGXABCEZ9FQBABRESFMAFCgFZC+BwsN9sRIGXGXAGCT9PQBABRESFMABREEXAEAIjGBAECSJAIjGBAECNJAIjGBAECIJAIjGBAECTJREAGC9wJHGCb9LQBMMAGCI9JQBEXAEAIjGBAECIJREAGC98JHGCE9LQBMMGXAG9FQBEXAEAF86BBAECFJREAGCaJHGQBMMABMMMFBCUNMIT9kBB",e="B9h9z9tFBBBFiI9gBB9gLaaaaaFa9gEaaaB9gFaFaEMcBBFBFFGGGEILF9wFFFLEFBFKNFaFCx/aFMO/LFVK9tv9t9vq95GBt9f9f939h9z9t9f9j9h9s9s9f9jW9vq9zBBp9tv9z9o9v9wW9f9kv9j9v9kv9WvqWv94h919m9mvqBG8Z9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv94h919m9mvqBIy9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv949TvZ91v9u9jvBLn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9P9jWBKi9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9R919hWBOn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9F949wBNI9z9iqlBVc+N9IcIBTEM9+FLa8jUUUUBCTlRBCBRFEXCBRGCBREEXABCNJAGJAECUaAFAGrCFZHIy86BBAEAIJREAGCFJHGCN9HQBMAFCx+YUUBJAE86BBAFCEWCxkUUBJAB8pEN83EBAFCFJHFCUG9HQBMMk8lLbaE97F9+FaL978jUUUUBCU/KBlHL8kUUUUBC9+RKGXAGCFJAI9LQBCaRKAE2BBC+gF9HQBALAEAIJHOAGlAG/8cBBCUoBAG9uC/wgBZHKCUGAKCUG9JyRNAECFJRKCBRVGXEXAVAF9PQFANAFAVlAVANJAF9JyRcGXGXAG9FQBAcCbJHIC9wZHMCE9sRSAMCFWRQAICIrCEJCGrRfCBRbEXAKRTCBRtGXEXGXAOATlAf9PQBCBRKSLMALCU/CBJAtAM9sJRmATAfJRKCBREGXAMCoB9JQBAOAKlC/gB9JQBCBRIEXAmAIJREGXGXGXGXGXATAICKrJ2BBHYCEZfIBFGEBMAECBDtDMIBSEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAEAKDBBBDMIBAKCTJRKMGXGXGXGXGXAYCGrCEZfIBFGEBMAECBDtDMITSEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMITAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMITAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAEAKDBBBDMITAKCTJRKMGXGXGXGXGXAYCIrCEZfIBFGEBMAECBDtDMIASEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIAAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIAAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAEAKDBBBDMIAAKCTJRKMGXGXGXGXGXAYCKrfIBFGEBMAECBDtDMI8wSEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHYCEWCxkUUBJDBEBAYCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHYCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMI8wAKCIJAeDeBJAYCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHYCEWCxkUUBJDBEBAYCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHYCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMI8wAKCNJAeDeBJAYCx+YUUBJ2BBJRKSFMAEAKDBBBDMI8wAKCTJRKMAICoBJREAICUFJAM9LQFAERIAOAKlC/fB9LQBMMGXAEAM9PQBAECErRIEXGXAOAKlCi9PQBCBRKSOMAmAEJRYGXGXGXGXGXATAECKrJ2BBAICKZrCEZfIBFGEBMAYCBDtDMIBSEMAYAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAYAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAYAKDBBBDMIBAKCTJRKMAICGJRIAECTJHEAM9JQBMMGXAK9FQBAKRTAtCFJHtCI6QGSFMMCBRKSEMGXAM9FQBALCUGJAbJREALAbJDBGBReCBRYEXAEALCU/CBJAYJHIDBIBHdCFD9tAdCFDbHPD9OD9hD9RHdAIAMJDBIBH8ZCFD9tA8ZAPD9OD9hD9RH8ZDQBTFtGmEYIPLdKeOnHpAIAQJDBIBHyCFD9tAyAPD9OD9hD9RHyAIASJDBIBH8cCFD9tA8cAPD9OD9hD9RH8cDQBTFtGmEYIPLdKeOnH8dDQBFTtGEmYILPdKOenHPAPDQBFGEBFGEBFGEBFGEAeD9uHeDyBjGBAEAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJHIAeApA8dDQNVi8ZcMpySQ8c8dfb8e8fHPAPDQBFGEBFGEBFGEBFGED9uHeDyBjGBAIAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJHIAeAdA8ZDQNiV8ZcpMyS8cQ8df8eb8fHdAyA8cDQNiV8ZcpMyS8cQ8df8eb8fH8ZDQBFTtGEmYILPdKOenHPAPDQBFGEBFGEBFGEBFGED9uHeDyBjGBAIAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJHIAeAdA8ZDQNVi8ZcMpySQ8c8dfb8e8fHPAPDQBFGEBFGEBFGEBFGED9uHeDyBjGBAIAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJREAYCTJHYAM9JQBMMAbCIJHbAG9JQBMMABAVAG9sJALCUGJAcAG9s/8cBBALALCUGJAcCaJAG9sJAG/8cBBMAcCBAKyAVJRVAKQBMC9+RKSFMCBC99AOAKlAGCAAGCA9Ly6yRKMALCU/KBJ8kUUUUBAKMNBT+BUUUBM+KmFTa8jUUUUBCoFlHL8kUUUUBC9+RKGXAFCE9uHOCtJAI9LQBCaRKAE2BBHNC/wFZC/gF9HQBANCbZHVCF9LQBALCoBJCgFCUF/8MBALC84Jha83EBALC8wJha83EBALC8oJha83EBALCAJha83EBALCiJha83EBALCTJha83EBALha83ENALha83EBAEAIJC9wJRcAECFJHNAOJRMGXAF9FQBCQCbAVCF6yRSABRECBRVCBRQCBRfCBRICBRKEXGXAMAcuQBC9+RKSEMGXGXAN2BBHOC/vF9LQBALCoBJAOCIrCa9zAKJCbZCEWJHb8oGIRTAb8oGBRtGXAOCbZHbAS9PQBALAOCa9zAIJCbZCGWJ8oGBAVAbyROAb9FRbGXGXAGCG9HQBABAt87FBABCIJAO87FBABCGJAT87FBSFMAEAtjGBAECNJAOjGBAECIJATjGBMAVAbJRVALCoBJAKCEWJHmAOjGBAmATjGIALAICGWJAOjGBALCoBJAKCFJCbZHKCEWJHTAtjGBATAOjGIAIAbJRIAKCFJRKSGMGXGXAbCb6QBAQAbJAbC989zJCFJRQSFMAM1BBHbCgFZROGXGXAbCa9MQBAMCFJRMSFMAM1BFHbCgBZCOWAOCgBZqROGXAbCa9MQBAMCGJRMSFMAM1BGHbCgBZCfWAOqROGXAbCa9MQBAMCEJRMSFMAM1BEHbCgBZCdWAOqROGXAbCa9MQBAMCIJRMSFMAM2BIC8cWAOqROAMCLJRMMAOCFrCBAOCFZl9zAQJRQMGXGXAGCG9HQBABAt87FBABCIJAQ87FBABCGJAT87FBSFMAEAtjGBAECNJAQjGBAECIJATjGBMALCoBJAKCEWJHOAQjGBAOATjGIALAICGWJAQjGBALCoBJAKCFJCbZHKCEWJHOAtjGBAOAQjGIAICFJRIAKCFJRKSFMGXAOCDF9LQBALAIAcAOCbZJ2BBHbCIrHTlCbZCGWJ8oGBAVCFJHtATyROALAIAblCbZCGWJ8oGBAtAT9FHmJHtAbCbZHTyRbAT9FRTGXGXAGCG9HQBABAV87FBABCIJAb87FBABCGJAO87FBSFMAEAVjGBAECNJAbjGBAECIJAOjGBMALAICGWJAVjGBALCoBJAKCEWJHYAOjGBAYAVjGIALAICFJHICbZCGWJAOjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAIAmJCbZHICGWJAbjGBALCoBJAKCGJCbZHKCEWJHOAVjGBAOAbjGIAKCFJRKAIATJRIAtATJRVSFMAVCBAM2BBHYyHTAOC/+F6HPJROAYCbZRtGXGXAYCIrHmQBAOCFJRbSFMAORbALAIAmlCbZCGWJ8oGBROMGXGXAtQBAbCFJRVSFMAbRVALAIAYlCbZCGWJ8oGBRbMGXGXAP9FQBAMCFJRYSFMAM1BFHYCgFZRTGXGXAYCa9MQBAMCGJRYSFMAM1BGHYCgBZCOWATCgBZqRTGXAYCa9MQBAMCEJRYSFMAM1BEHYCgBZCfWATqRTGXAYCa9MQBAMCIJRYSFMAM1BIHYCgBZCdWATqRTGXAYCa9MQBAMCLJRYSFMAMCKJRYAM2BLC8cWATqRTMATCFrCBATCFZl9zAQJHQRTMGXGXAmCb6QBAYRPSFMAY1BBHMCgFZROGXGXAMCa9MQBAYCFJRPSFMAY1BFHMCgBZCOWAOCgBZqROGXAMCa9MQBAYCGJRPSFMAY1BGHMCgBZCfWAOqROGXAMCa9MQBAYCEJRPSFMAY1BEHMCgBZCdWAOqROGXAMCa9MQBAYCIJRPSFMAYCLJRPAY2BIC8cWAOqROMAOCFrCBAOCFZl9zAQJHQROMGXGXAtCb6QBAPRMSFMAP1BBHMCgFZRbGXGXAMCa9MQBAPCFJRMSFMAP1BFHMCgBZCOWAbCgBZqRbGXAMCa9MQBAPCGJRMSFMAP1BGHMCgBZCfWAbqRbGXAMCa9MQBAPCEJRMSFMAP1BEHMCgBZCdWAbqRbGXAMCa9MQBAPCIJRMSFMAPCLJRMAP2BIC8cWAbqRbMAbCFrCBAbCFZl9zAQJHQRbMGXGXAGCG9HQBABAT87FBABCIJAb87FBABCGJAO87FBSFMAEATjGBAECNJAbjGBAECIJAOjGBMALCoBJAKCEWJHYAOjGBAYATjGIALAICGWJATjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAICFJHICbZCGWJAOjGBALCoBJAKCGJCbZCEWJHOATjGBAOAbjGIALAIAm9FAmCb6qJHICbZCGWJAbjGBAIAt9FAtCb6qJRIAKCEJRKMANCFJRNABCKJRBAECSJREAKCbZRKAICbZRIAfCEJHfAF9JQBMMCBC99AMAc6yRKMALCoFJ8kUUUUBAKM/tIFGa8jUUUUBCTlRLC9+RKGXAFCLJAI9LQBCaRKAE2BBC/+FZC/QF9HQBALhB83ENAECFJRKAEAIJC98JREGXAF9FQBGXAGCG6QBEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMALCNJAICFZCGWqHGAICGrCBAICFrCFZl9zAG8oGBJHIjGBABAIjGBABCIJRBAFCaJHFQBSGMMEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMABAICGrCBAICFrCFZl9zALCNJAICFZCGWqHI8oGBJHG87FBAIAGjGBABCGJRBAFCaJHFQBMMCBC99AKAE6yRKMAKM/dLEK97FaF97GXGXAGCI9HQBAF9FQFCBRGEXABABDBBBHECiD+rFCiD+sFD/6FHIAECND+rFCiD+sFD/6FAID/gFAECTD+rFCiD+sFD/6FHLD/gFD/kFD/lFHKCBDtD+2FHOAICUUUU94DtHND9OD9RD/kFHI9DBB/+hDYAIAID/mFAKAKD/mFALAOALAND9OD9RD/kFHIAID/mFD/kFD/kFD/jFD/nFHLD/mF9DBBX9LDYHOD/kFCgFDtD9OAECUUU94DtD9OD9QAIALD/mFAOD/kFCND+rFCU/+EDtD9OD9QAKALD/mFAOD/kFCTD+rFCUU/8ODtD9OD9QDMBBABCTJRBAGCIJHGAF9JQBSGMMAF9FQBCBRGEXABCTJHVAVDBBBHECBDtHOCUU98D8cFCUU98D8cEHND9OABDBBBHKAEDQILKOSQfbPden8c8d8e8fCggFDtD9OD/6FAKAEDQBFGENVcMTtmYi8ZpyHECTD+sFD/6FHID/gFAECTD+rFCTD+sFD/6FHLD/gFD/kFD/lFHE9DB/+g6DYALAEAOD+2FHOALCUUUU94DtHcD9OD9RD/kFHLALD/mFAEAED/mFAIAOAIAcD9OD9RD/kFHEAED/mFD/kFD/kFD/jFD/nFHID/mF9DBBX9LDYHOD/kFCTD+rFALAID/mFAOD/kFCggEDtD9OD9QHLAEAID/mFAOD/kFCaDbCBDnGCBDnECBDnKCBDnOCBDncCBDnMCBDnfCBDnbD9OHEDQNVi8ZcMpySQ8c8dfb8e8fD9QDMBBABAKAND9OALAEDQBFTtGEmYILPdKOenD9QDMBBABCAJRBAGCIJHGAF9JQBMMM/hEIGaF97FaL978jUUUUBCTlREGXAF9FQBCBRIEXAEABDBBBHLABCTJHKDBBBHODQILKOSQfbPden8c8d8e8fHNCTD+sFHVCID+rFDMIBAB9DBBU8/DY9D/zI818/DYAVCEDtD9QD/6FD/nFHVALAODQBFGENVcMTtmYi8ZpyHLCTD+rFCTD+sFD/6FD/mFHOAOD/mFAVALCTD+sFD/6FD/mFHcAcD/mFAVANCTD+rFCTD+sFD/6FD/mFHNAND/mFD/kFD/kFD/lFCBDtD+4FD/jF9DB/+g6DYHVD/mF9DBBX9LDYHLD/kFCggEDtHMD9OAcAVD/mFALD/kFCTD+rFD9QHcANAVD/mFALD/kFCTD+rFAOAVD/mFALD/kFAMD9OD9QHVDQBFTtGEmYILPdKOenHLD8dBAEDBIBDyB+t+J83EBABCNJALD8dFAEDBIBDyF+t+J83EBAKAcAVDQNVi8ZcMpySQ8c8dfb8e8fHVD8dBAEDBIBDyG+t+J83EBABCiJAVD8dFAEDBIBDyE+t+J83EBABCAJRBAICIJHIAF9JQBMMM9jFF97GXAGCGrAF9sHG9FQBCBRFEXABABDBBBHECND+rFCND+sFD/6FAECiD+sFCnD+rFCUUU/8EDtD+uFD/mFDMBBABCTJRBAFCIJHFAG9JQBMMM9TFEaCBCB8oGUkUUBHFABCEJC98ZJHBjGUkUUBGXGXAB8/BCTWHGuQBCaREABAGlCggEJCTrXBCa6QFMAFREMAEMMMFBCUNMIT9tBB",t=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]),r=new Uint8Array([32,0,65,253,3,1,2,34,4,106,6,5,11,8,7,20,13,33,12,16,128,9,116,64,19,113,127,15,10,21,22,14,255,66,24,54,136,107,18,23,192,26,114,118,132,17,77,101,130,144,27,87,131,44,45,74,156,154,70,167]);if(typeof WebAssembly!="object")return{supported:!1};let i=n;WebAssembly.validate(t)&&(i=e);let a;const o=WebAssembly.instantiate(s(i),{}).then(h=>{a=h.instance,a.exports.__wasm_call_ctors()});function s(h){const f=new Uint8Array(h.length);for(let p=0;p96?y-71:y>64?y-65:y>47?y+4:y>46?63:62}let d=0;for(let p=0;p{t&&t(r),n&&(n0||(n0=new FK),n0.setDecoderPath(typeof n=="string"?n:MU),r.setDRACOLoader(n0)),e&&r.setMeshoptDecoder(typeof $1=="function"?$1():$1)}}function j_(n,e=!0,t=!0,r){return $f(cC,n,wU(e,t,r))}j_.preload=(n,e=!0,t=!0,r)=>$f.preload(cC,n,wU(e,t,r));j_.clear=n=>$f.clear(cC,n);j_.setDecoderPath=n=>{MU=n};const UK=q.forwardRef((h,c)=>{var f=h,{makeDefault:n,camera:e,regress:t,domElement:r,enableDamping:i=!0,keyEvents:a=!1,onChange:o,onStart:s,onEnd:l}=f,u=di(f,["makeDefault","camera","regress","domElement","enableDamping","keyEvents","onChange","onStart","onEnd"]);const d=mi(P=>P.invalidate),p=mi(P=>P.camera),y=mi(P=>P.gl),g=mi(P=>P.events),v=mi(P=>P.setEvents),x=mi(P=>P.set),S=mi(P=>P.get),A=mi(P=>P.performance),T=e||p,w=r||g.connected||y.domElement,C=q.useMemo(()=>new eK(T),[T]);return qv(()=>{C.enabled&&C.update()},-1),q.useEffect(()=>(a&&C.connect(a===!0?w:a),C.connect(w),()=>void C.dispose()),[a,w,t,C,d]),q.useEffect(()=>{const P=I=>{d(),t&&A.regress(),o&&o(I)},E=I=>{s&&s(I)},R=I=>{l&&l(I)};return C.addEventListener("change",P),C.addEventListener("start",E),C.addEventListener("end",R),()=>{C.removeEventListener("start",E),C.removeEventListener("end",R),C.removeEventListener("change",P)}},[o,s,l,C,d,v]),q.useEffect(()=>{if(n){const P=S().controls;return x({controls:C}),()=>x({controls:P})}},[n,C]),q.createElement("primitive",Yf({ref:c,object:C,enableDamping:i},u))}),eA={apartment:"lebombo_1k.hdr",city:"potsdamer_platz_1k.hdr",dawn:"kiara_1_dawn_1k.hdr",forest:"forest_slope_1k.hdr",lobby:"st_fagans_interior_1k.hdr",night:"dikhololo_night_1k.hdr",park:"rooitou_park_1k.hdr",studio:"studio_small_03_1k.hdr",sunset:"venice_sunset_1k.hdr",warehouse:"empty_warehouse_01_1k.hdr"},GK="https://raw.githack.com/pmndrs/drei-assets/456060a26bbeb8fdf79326f224b6d99b8bcce736/hdri/",YD=n=>Array.isArray(n);function bU({files:n=["/px.png","/nx.png","/py.png","/ny.png","/pz.png","/nz.png"],path:e="",preset:t=void 0,encoding:r=void 0,extensions:i}={}){var a;let o=null,s=!1,l;if(t){if(!(t in eA))throw new Error("Preset must be one of: "+Object.keys(eA).join(", "));n=eA[t],e=GK}if(s=YD(n),l=YD(n)?"cube":n.startsWith("data:application/exr")?"exr":n.startsWith("data:application/hdr")?"hdr":(a=n.split(".").pop())==null||(a=a.split("?"))==null||(a=a.shift())==null?void 0:a.toLowerCase(),o=s?Lk:l==="hdr"?OK:l==="exr"?NK:null,!o)throw new Error("useEnvironment: Unrecognized file extension: "+n);const u=$f(o,s?[n]:n,d=>{d.setPath==null||d.setPath(e),i&&i(d)}),c=s?u[0]:u;c.mapping=s?Ko:wf;const h=3001,f=3e3;return"colorSpace"in c?c.colorSpace=(r!=null?r:s)?"srgb":"srgb-linear":c.encoding=(r!=null?r:s)?h:f,c}const zK=n=>n.current&&n.current.isScene,HK=n=>zK(n)?n.current:n;function hC(n,e,t,r,i=0){const a=HK(e||t),o=a.background,s=a.environment,l=a.backgroundBlurriness||0;return n!=="only"&&(a.environment=r),n&&(a.background=r),n&&a.backgroundBlurriness!==void 0&&(a.backgroundBlurriness=i),()=>{n!=="only"&&(a.environment=s),n&&(a.background=o),n&&a.backgroundBlurriness!==void 0&&(a.backgroundBlurriness=l)}}function fC({scene:n,background:e=!1,blur:t,map:r}){const i=mi(a=>a.scene);return q.useLayoutEffect(()=>{if(r)return hC(e,n,i,r,t)},[i,n,r,e,t]),null}function TU(i){var a=i,{background:n=!1,scene:e,blur:t}=a,r=di(a,["background","scene","blur"]);const o=bU(r),s=mi(l=>l.scene);return q.useLayoutEffect(()=>hC(n,e,s,o,t),[o,n,e,s,t]),null}function VK({children:n,near:e=1,far:t=1e3,resolution:r=256,frames:i=1,map:a,background:o=!1,blur:s,scene:l,files:u,path:c,preset:h=void 0,extensions:f}){const d=mi(S=>S.gl),p=mi(S=>S.scene),y=q.useRef(null),[g]=q.useState(()=>new rv),v=q.useMemo(()=>{const S=new RT(r);return S.texture.type=Mi,S},[r]);q.useLayoutEffect(()=>(i===1&&y.current.update(d,g),hC(o,l,p,v.texture,s)),[n,g,v.texture,l,p,o,i,d]);let x=1;return qv(()=>{(i===1/0||xeU({GroundProjectedEnvImpl:Kj}),[]);const s=q.useMemo(()=>[o],[o]),l=(e=n.ground)==null?void 0:e.height,u=(t=n.ground)==null?void 0:t.radius,c=(r=(i=n.ground)==null?void 0:i.scale)!==null&&r!==void 0?r:1e3;return q.createElement(q.Fragment,null,q.createElement(fC,Yf({},n,{map:o})),q.createElement("groundProjectedEnvImpl",{args:s,scale:c,height:l,radius:u}))}function XK(n){return n.ground?q.createElement(WK,n):n.map?q.createElement(fC,n):n.children?q.createElement(VK,n):q.createElement(TU,n)}const YK=q.forwardRef((y,p)=>{var g=y,{scale:n=10,frames:e=1/0,opacity:t=1,width:r=1,height:i=1,blur:a=1,near:o=0,far:s=10,resolution:l=512,smooth:u=!0,color:c="#000000",depthWrite:h=!1,renderOrder:f}=g,d=di(g,["scale","frames","opacity","width","height","blur","near","far","resolution","smooth","color","depthWrite","renderOrder"]);const v=q.useRef(null),x=mi(X=>X.scene),S=mi(X=>X.gl),A=q.useRef(null);r=r*(Array.isArray(n)?n[0]:n||1),i=i*(Array.isArray(n)?n[1]:n||1);const[T,w,C,P,E,R,I]=q.useMemo(()=>{const X=new aa(l,l),ne=new aa(l,l);ne.texture.generateMipmaps=X.texture.generateMipmaps=!1;const H=new jf(r,i).rotateX(Math.PI/2),j=new sr(H),$=new R_;$.depthTest=$.depthWrite=!1,$.onBeforeCompile=ie=>{ie.uniforms=mr(At({},ie.uniforms),{ucolor:{value:new $e(c)}}),ie.fragmentShader=ie.fragmentShader.replace("void main() {",`uniform vec3 ucolor; void main() { - `),re.fragmentShader=re.fragmentShader.replace("vec4( vec3( 1.0 - fragCoordZ ), opacity );","vec4( ucolor * fragCoordZ * 2.0, ( 1.0 - fragCoordZ ) * 1.0 );")};const le=new sa(N$),he=new sa(k$);return he.depthTest=le.depthTest=!1,[X,H,Q,K,le,he,ne]},[l,r,i,n,c]),B=X=>{P.visible=!0,P.material=E,E.uniforms.tDiffuse.value=b.texture,E.uniforms.h.value=X*1/256,S.setRenderTarget(D),S.render(P,A.current),P.material=R,R.uniforms.tDiffuse.value=D.texture,R.uniforms.v.value=X*1/256,S.setRenderTarget(b),S.render(P,A.current),P.visible=!1};let k=0,N,z;return pg(()=>{A.current&&(e===1/0||kv.current,[]),Y.createElement("group",td({"rotation-x":Math.PI/2},d,{ref:v}),Y.createElement("mesh",{renderOrder:f,geometry:w,scale:[1,-1,1],rotation:[-Math.PI/2,0,0]},Y.createElement("meshBasicMaterial",{transparent:!0,map:b.texture,opacity:t,depthWrite:h})),Y.createElement("orthographicCamera",{ref:A,args:[-r/2,r/2,i/2,-i/2,o,s]}))});function Mi(){return Mi=Object.assign||function(n){for(var e=1;e=0)&&(t[i]=n[i]);return t}function q$(n,e){if(n){if(typeof n=="string")return DI(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return DI(n,e)}}function DI(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return t=n[Symbol.iterator](),t.next.bind(t)}function es(n,e){if(n in e){for(var t=e[n],r=arguments.length,i=new Array(r>2?r-2:0),a=2;a0){if(!Y.isValidElement(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"","The current component <"+r+' /> is rendering a "Fragment".',"However we need to passthrough the following props:",Object.keys(h).map(function(p){return" - "+p}).join(` + `),ie.fragmentShader=ie.fragmentShader.replace("vec4( vec3( 1.0 - fragCoordZ ), opacity );","vec4( ucolor * fragCoordZ * 2.0, ( 1.0 - fragCoordZ ) * 1.0 );")};const le=new oa(LK),ce=new oa(BK);return ce.depthTest=le.depthTest=!1,[X,H,$,j,le,ce,ne]},[l,r,i,n,c]),O=X=>{P.visible=!0,P.material=E,E.uniforms.tDiffuse.value=T.texture,E.uniforms.h.value=X*1/256,S.setRenderTarget(I),S.render(P,A.current),P.material=R,R.uniforms.tDiffuse.value=I.texture,R.uniforms.v.value=X*1/256,S.setRenderTarget(T),S.render(P,A.current),P.visible=!1};let U=0,F,z;return qv(()=>{A.current&&(e===1/0||Uv.current,[]),q.createElement("group",Yf({"rotation-x":Math.PI/2},d,{ref:v}),q.createElement("mesh",{renderOrder:f,geometry:w,scale:[1,-1,1],rotation:[-Math.PI/2,0,0]},q.createElement("meshBasicMaterial",{transparent:!0,map:T.texture,opacity:t,depthWrite:h})),q.createElement("orthographicCamera",{ref:A,args:[-r/2,r/2,i/2,-i/2,o,s]}))});function Si(){return Si=Object.assign||function(n){for(var e=1;e=0)&&(t[i]=n[i]);return t}function JK(n,e){if(n){if(typeof n=="string")return JD(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return JD(n,e)}}function JD(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return t=n[Symbol.iterator](),t.next.bind(t)}function $o(n,e){if(n in e){for(var t=e[n],r=arguments.length,i=new Array(r>2?r-2:0),a=2;a0){if(!q.isValidElement(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"","The current component <"+r+' /> is rendering a "Fragment".',"However we need to passthrough the following props:",Object.keys(h).map(function(p){return" - "+p}).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(function(p){return" - "+p}).join(` `)].join(` -`));return Y.cloneElement(d,Object.assign({},$$(Q$(bA(h,["ref"])),d.props,["onClick"]),f))}return Y.createElement(s,Object.assign({},bA(h,["ref"]),s!==Y.Fragment&&f),d)}function $$(n,e,t){for(var r=Object.assign({},n),i=function(){var l=o.value;if(n[l]!==void 0&&e[l]!==void 0){var u;Object.assign(r,(u={},u[l]=function(c){c.defaultPrevented||n[l](c),c.defaultPrevented||e[l](c)},u))}},a=ud(t),o;!(o=a()).done;)i();return r}function HC(n){var e;return Object.assign(Y.forwardRef(n),{displayName:(e=n.displayName)!=null?e:n.name})}function Q$(n){var e=Object.assign({},n);for(var t in e)e[t]===void 0&&delete e[t];return e}function bA(n,e){e===void 0&&(e=[]);for(var t=Object.assign({},n),r=ud(e),i;!(i=r()).done;){var a=i.value;a in t&&delete t[a]}return t}var D0=typeof window!="undefined"?Y.useLayoutEffect:Y.useEffect,TA={serverHandoffComplete:!1};function xG(){var n=Y.useState(TA.serverHandoffComplete),e=n[0],t=n[1];return Y.useEffect(function(){e!==!0&&t(!0)},[e]),Y.useEffect(function(){TA.serverHandoffComplete===!1&&(TA.serverHandoffComplete=!0)},[]),e}function VC(){for(var n=arguments.length,e=new Array(n),t=0;t=l||s+l<=0)return Ls.Error;var h=a+s;if(e&Sr.WrapAround)h=(h+l)%l;else{if(h<0)return Ls.Underflow;if(h>=l)return Ls.Overflow}u=t[h],(c=u)==null||c.focus(o),s+=i}while(u!==document.activeElement);return u.hasAttribute("tabindex")||u.setAttribute("tabindex","0"),Ls.Success}function rQ(){var n=Y.useRef(!1);return Y.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),n}var WC=Y.createContext(null);WC.displayName="OpenClosedContext";var ts;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(ts||(ts={}));function Sx(){return Y.useContext(WC)}function AG(n){var e=n.value,t=n.children;return At.createElement(WC.Provider,{value:e},t)}function MG(){var n=[],e={requestAnimationFrame:function(t){function r(){return t.apply(this,arguments)}return r.toString=function(){return t.toString()},r}(function(){var t=requestAnimationFrame.apply(void 0,arguments);e.add(function(){return cancelAnimationFrame(t)})}),nextFrame:function(){for(var r=arguments.length,i=new Array(r),a=0;a is missing a parent <"+pr.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Ax),t}return e}var YC=Y.createContext(null);YC.displayName="PopoverAPIContext";function wG(n){var e=Y.useContext(YC);if(e===null){var t=new Error("<"+n+" /> is missing a parent <"+pr.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(t,wG),t}return e}var jC=Y.createContext(null);jC.displayName="PopoverGroupContext";function bG(){return Y.useContext(jC)}var JC=Y.createContext(null);JC.displayName="PopoverPanelContext";function aQ(){return Y.useContext(JC)}function oQ(n,e){return es(e.type,iQ,n,e)}var sQ="div";function pr(n){var e,t="headlessui-popover-button-"+a_(),r="headlessui-popover-panel-"+a_(),i=Y.useReducer(oQ,{popoverState:bn.Closed,button:null,buttonId:t,panel:null,panelId:r}),a=i[0],o=a.popoverState,s=a.button,l=a.panel,u=i[1];Y.useEffect(function(){return u({type:Un.SetButtonId,buttonId:t})},[t,u]),Y.useEffect(function(){return u({type:Un.SetPanelId,panelId:r})},[r,u]);var c=Y.useMemo(function(){return{buttonId:t,panelId:r,close:function(){return u({type:Un.ClosePopover})}}},[t,r,u]),h=bG(),f=h==null?void 0:h.registerPopover,d=Y.useCallback(function(){var v;return(v=h==null?void 0:h.isFocusWithinPopoverGroup())!=null?v:(s==null?void 0:s.contains(document.activeElement))||(l==null?void 0:l.contains(document.activeElement))},[h,s,l]);Y.useEffect(function(){return f==null?void 0:f(c)},[f,c]),Cv("focus",function(){o===bn.Open&&(d()||s&&l&&u({type:Un.ClosePopover}))},!0),Cv("mousedown",function(v){var x=v.target;o===bn.Open&&(s!=null&&s.contains(x)||l!=null&&l.contains(x)||(u({type:Un.ClosePopover}),nQ(x,bf.Loose)||(v.preventDefault(),s==null||s.focus())))});var p=Y.useCallback(function(v){u({type:Un.ClosePopover});var x=function(){return v?v instanceof HTMLElement?v:v.current instanceof HTMLElement?v.current:s:s}();x==null||x.focus()},[u,s]),y=Y.useMemo(function(){return{close:p}},[p]),g=Y.useMemo(function(){return{open:o===bn.Open,close:p}},[o,p]);return At.createElement(XC.Provider,{value:i},At.createElement(YC.Provider,{value:y},At.createElement(AG,{value:es(o,(e={},e[bn.Open]=ts.Open,e[bn.Closed]=ts.Closed,e))},eh({props:n,slot:g,defaultTag:sQ,name:"Popover"}))))}var lQ="button",uQ=HC(function n(e,t){var r=Ax([pr.name,n.name].join(".")),i=r[0],a=r[1],o=Y.useRef(null),s=bG(),l=s==null?void 0:s.closeOthers,u=aQ(),c=u===null?!1:u===i.panelId,h=VC(o,t,c?null:function(A){return a({type:Un.SetButton,button:A})}),f=Y.useRef(null),d=Y.useRef(typeof window=="undefined"?null:document.activeElement);Cv("focus",function(){d.current=f.current,f.current=document.activeElement},!0);var p=Y.useCallback(function(A){var b;if(c){if(i.popoverState===bn.Closed)return;switch(A.key){case Ra.Space:case Ra.Enter:A.preventDefault(),A.stopPropagation(),a({type:Un.ClosePopover}),(b=i.button)==null||b.focus();break}}else switch(A.key){case Ra.Space:case Ra.Enter:A.preventDefault(),A.stopPropagation(),i.popoverState===bn.Closed&&(l==null||l(i.buttonId)),a({type:Un.TogglePopover});break;case Ra.Escape:if(i.popoverState!==bn.Open)return l==null?void 0:l(i.buttonId);if(!o.current||!o.current.contains(document.activeElement))return;a({type:Un.ClosePopover});break;case Ra.Tab:if(i.popoverState!==bn.Open||!i.panel||!i.button)return;if(A.shiftKey){var w;if(!d.current||(w=i.button)!=null&&w.contains(d.current)||i.panel.contains(d.current))return;var C=s_(),P=C.indexOf(d.current),E=C.indexOf(i.button);if(E>P)return;A.preventDefault(),A.stopPropagation(),xc(i.panel,Sr.Last)}else A.preventDefault(),A.stopPropagation(),xc(i.panel,Sr.First);break}},[a,i.popoverState,i.buttonId,i.button,i.panel,o,l,c]),y=Y.useCallback(function(A){var b;if(!c&&(A.key===Ra.Space&&A.preventDefault(),i.popoverState===bn.Open&&i.panel&&i.button))switch(A.key){case Ra.Tab:if(!d.current||(b=i.button)!=null&&b.contains(d.current)||i.panel.contains(d.current))return;var w=s_(),C=w.indexOf(d.current),P=w.indexOf(i.button);if(P>C)return;A.preventDefault(),A.stopPropagation(),xc(i.panel,Sr.Last);break}},[i.popoverState,i.panel,i.button,c]),g=Y.useCallback(function(A){if(!SG(A.currentTarget)&&!e.disabled)if(c){var b;a({type:Un.ClosePopover}),(b=i.button)==null||b.focus()}else{var w;i.popoverState===bn.Closed&&(l==null||l(i.buttonId)),(w=i.button)==null||w.focus(),a({type:Un.TogglePopover})}},[a,i.button,i.popoverState,i.buttonId,e.disabled,l,c]),v=Y.useMemo(function(){return{open:i.popoverState===bn.Open}},[i]),x=e,S=c?{type:"button",onKeyDown:p,onClick:g}:{ref:h,id:i.buttonId,type:"button","aria-expanded":e.disabled?void 0:i.popoverState===bn.Open,"aria-controls":i.panel?i.panelId:void 0,onKeyDown:p,onKeyUp:y,onClick:g};return eh({props:Mi({},x,S),slot:v,defaultTag:lQ,name:"Popover.Button"})}),cQ="div",hQ=Jo.RenderStrategy|Jo.Static,fQ=HC(function n(e,t){var r=Ax([pr.name,n.name].join(".")),i=r[0].popoverState,a=r[1],o=VC(t),s="headlessui-popover-overlay-"+a_(),l=Sx(),u=function(){return l!==null?l===ts.Open:i===bn.Open}(),c=Y.useCallback(function(p){if(SG(p.currentTarget))return p.preventDefault();a({type:Un.ClosePopover})},[a]),h=Y.useMemo(function(){return{open:i===bn.Open}},[i]),f={ref:o,id:s,"aria-hidden":!0,onClick:c},d=e;return eh({props:Mi({},d,f),slot:h,defaultTag:cQ,features:hQ,visible:u,name:"Popover.Overlay"})}),dQ="div",pQ=Jo.RenderStrategy|Jo.Static,vQ=HC(function n(e,t){var r=e.focus,i=r===void 0?!1:r,a=Wf(e,["focus"]),o=Ax([pr.name,n.name].join(".")),s=o[0],l=o[1],u=wG([pr.name,n.name].join(".")),c=u.close,h=Y.useRef(null),f=VC(h,t,function(x){l({type:Un.SetPanel,panel:x})}),d=Sx(),p=function(){return d!==null?d===ts.Open:s.popoverState===bn.Open}(),y=Y.useCallback(function(x){var S;switch(x.key){case Ra.Escape:if(s.popoverState!==bn.Open||!h.current||!h.current.contains(document.activeElement))return;x.preventDefault(),l({type:Un.ClosePopover}),(S=s.button)==null||S.focus();break}},[s,h,l]);Y.useEffect(function(){return function(){return l({type:Un.SetPanel,panel:null})}},[l]),Y.useEffect(function(){var x;s.popoverState===bn.Closed&&((x=e.unmount)==null||x)&&l({type:Un.SetPanel,panel:null})},[s.popoverState,e.unmount,l]),Y.useEffect(function(){if(i&&s.popoverState===bn.Open&&h.current){var x=document.activeElement;h.current.contains(x)||xc(h.current,Sr.First)}},[i,h,s.popoverState]),Cv("keydown",function(x){if(s.popoverState===bn.Open&&h.current&&x.key===Ra.Tab&&document.activeElement&&h.current&&h.current.contains(document.activeElement)){x.preventDefault();var S=xc(h.current,x.shiftKey?Sr.Previous:Sr.Next);if(S===Ls.Underflow){var A;return(A=s.button)==null?void 0:A.focus()}else if(S===Ls.Overflow){if(!s.button)return;var b=s_(),w=b.indexOf(s.button),C=b.splice(w+1).filter(function(P){var E;return!((E=h.current)!=null&&E.contains(P))});xc(C,Sr.First)===Ls.Error&&xc(document.body,Sr.First)}}}),Cv("focus",function(){var x;i&&s.popoverState===bn.Open&&h.current&&((x=h.current)!=null&&x.contains(document.activeElement)||l({type:Un.ClosePopover}))},!0);var g=Y.useMemo(function(){return{open:s.popoverState===bn.Open,close:c}},[s,c]),v={ref:f,id:s.panelId,onKeyDown:y};return At.createElement(JC.Provider,{value:s.panelId},eh({props:Mi({},a,v),slot:g,defaultTag:dQ,features:pQ,visible:p,name:"Popover.Panel"}))}),gQ="div";function mQ(n){var e=Y.useRef(null),t=Y.useState([]),r=t[0],i=t[1],a=Y.useCallback(function(d){i(function(p){var y=p.indexOf(d);if(y!==-1){var g=p.slice();return g.splice(y,1),g}return p})},[i]),o=Y.useCallback(function(d){return i(function(p){return[].concat(p,[d])}),function(){return a(d)}},[i,a]),s=Y.useCallback(function(){var d,p=document.activeElement;return(d=e.current)!=null&&d.contains(p)?!0:r.some(function(y){var g,v;return((g=document.getElementById(y.buttonId))==null?void 0:g.contains(p))||((v=document.getElementById(y.panelId))==null?void 0:v.contains(p))})},[e,r]),l=Y.useCallback(function(d){for(var p=ud(r),y;!(y=p()).done;){var g=y.value;g.buttonId!==d&&g.close()}},[r]),u=Y.useMemo(function(){return{registerPopover:o,unregisterPopover:a,isFocusWithinPopoverGroup:s,closeOthers:l}},[o,a,s,l]),c=Y.useMemo(function(){return{}},[]),h={ref:e},f=n;return At.createElement(jC.Provider,{value:u},eh({props:Mi({},f,h),slot:c,defaultTag:gQ,name:"Popover.Group"}))}pr.Button=uQ;pr.Overlay=fQ;pr.Panel=vQ;pr.Group=mQ;function TG(){var n=Y.useRef(!0);return Y.useEffect(function(){n.current=!1},[]),n.current}function yQ(n){var e={called:!1};return function(){if(!e.called)return e.called=!0,n.apply(void 0,arguments)}}function CA(n){for(var e,t=arguments.length,r=new Array(t>1?t-1:0),i=1;i0&&(e=n.classList).add.apply(e,r)}function wy(n){for(var e,t=arguments.length,r=new Array(t>1?t-1:0),i=1;i0&&(e=n.classList).remove.apply(e,r)}var Gl;(function(n){n.Finished="finished",n.Cancelled="cancelled"})(Gl||(Gl={}));function _Q(n,e){var t=MG();if(!n)return t.dispose;var r=getComputedStyle(n),i=r.transitionDuration,a=r.transitionDelay,o=[i,a].map(function(u){var c=u.split(",").filter(Boolean).map(function(d){return d.includes("ms")?parseFloat(d):parseFloat(d)*1e3}).sort(function(d,p){return p-d}),h=c[0],f=h===void 0?0:h;return f}),s=o[0],l=o[1];return s!==0?t.setTimeout(function(){e(Gl.Finished)},s+l):e(Gl.Finished),t.add(function(){return e(Gl.Cancelled)}),t.dispose}function LI(n,e,t,r,i,a){var o=MG(),s=a!==void 0?yQ(a):function(){};return wy.apply(void 0,[n].concat(i)),CA.apply(void 0,[n].concat(e,t)),o.nextFrame(function(){wy.apply(void 0,[n].concat(t)),CA.apply(void 0,[n].concat(r)),o.add(_Q(n,function(l){return wy.apply(void 0,[n].concat(r,e)),CA.apply(void 0,[n].concat(i)),s(l)}))}),o.add(function(){return wy.apply(void 0,[n].concat(e,t,r,i))}),o.add(function(){return s(Gl.Cancelled)}),o.dispose}function Pu(n){return n===void 0&&(n=""),Y.useMemo(function(){return n.split(" ").filter(function(e){return e.trim().length>1})},[n])}var Mx=Y.createContext(null);Mx.displayName="TransitionContext";var Jn;(function(n){n.Visible="visible",n.Hidden="hidden"})(Jn||(Jn={}));function xQ(){var n=Y.useContext(Mx);if(n===null)throw new Error("A is used but it is missing a parent or .");return n}function SQ(){var n=Y.useContext(bx);if(n===null)throw new Error("A is used but it is missing a parent or .");return n}var bx=Y.createContext(null);bx.displayName="NestingContext";function Tx(n){return"children"in n?Tx(n.children):n.current.filter(function(e){var t=e.state;return t===Jn.Visible}).length>0}function CG(n){var e=Y.useRef(n),t=Y.useRef([]),r=rQ();Y.useEffect(function(){e.current=n},[n]);var i=Y.useCallback(function(o,s){var l;s===void 0&&(s=ra.Hidden);var u=t.current.findIndex(function(c){var h=c.id;return h===o});u!==-1&&(es(s,(l={},l[ra.Unmount]=function(){t.current.splice(u,1)},l[ra.Hidden]=function(){t.current[u].state=Jn.Hidden},l)),!Tx(t)&&r.current&&(e.current==null||e.current()))},[e,r,t]),a=Y.useCallback(function(o){var s=t.current.find(function(l){var u=l.id;return u===o});return s?s.state!==Jn.Visible&&(s.state=Jn.Visible):t.current.push({id:o,state:Jn.Visible}),function(){return i(o,ra.Unmount)}},[t,i]);return Y.useMemo(function(){return{children:t,register:a,unregister:i}},[a,i,t])}function AQ(){}var MQ=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function BI(n){for(var e={},t=ud(MQ),r;!(r=t()).done;){var i,a=r.value;e[a]=(i=n[a])!=null?i:AQ}return e}function wQ(n){var e=Y.useRef(BI(n));return Y.useEffect(function(){e.current=BI(n)},[n]),e}var bQ="div",EG=Jo.RenderStrategy;function RG(n){var e,t=n.beforeEnter,r=n.afterEnter,i=n.beforeLeave,a=n.afterLeave,o=n.enter,s=n.enterFrom,l=n.enterTo,u=n.entered,c=n.leave,h=n.leaveFrom,f=n.leaveTo,d=Wf(n,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),p=Y.useRef(null),y=Y.useState(Jn.Visible),g=y[0],v=y[1],x=d.unmount?ra.Unmount:ra.Hidden,S=xQ(),A=S.show,b=S.appear,w=SQ(),C=w.register,P=w.unregister,E=TG(),R=a_(),D=Y.useRef(!1),B=CG(function(){D.current||(v(Jn.Hidden),P(R),Q.current.afterLeave())});D0(function(){if(R)return C(R)},[C,R]),D0(function(){var _e;if(x===ra.Hidden&&R){if(A&&g!==Jn.Visible){v(Jn.Visible);return}es(g,(_e={},_e[Jn.Hidden]=function(){return P(R)},_e[Jn.Visible]=function(){return C(R)},_e))}},[g,R,C,P,A,x]);var k=Pu(o),N=Pu(s),z=Pu(l),X=Pu(u),ne=Pu(c),H=Pu(h),K=Pu(f),Q=wQ({beforeEnter:t,afterEnter:r,beforeLeave:i,afterLeave:a}),le=xG();Y.useEffect(function(){if(le&&g===Jn.Visible&&p.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[p,g,le]);var he=E&&!b;D0(function(){var _e=p.current;if(_e&&!he)return D.current=!0,A&&Q.current.beforeEnter(),A||Q.current.beforeLeave(),A?LI(_e,k,N,z,X,function(ge){D.current=!1,ge===Gl.Finished&&Q.current.afterEnter()}):LI(_e,ne,H,K,X,function(ge){D.current=!1,ge===Gl.Finished&&(Tx(B)||(v(Jn.Hidden),P(R),Q.current.afterLeave()))})},[Q,R,D,P,B,p,he,A,k,N,z,ne,H,K]);var re={ref:p},ce=d;return At.createElement(bx.Provider,{value:B},At.createElement(AG,{value:es(g,(e={},e[Jn.Visible]=ts.Open,e[Jn.Hidden]=ts.Closed,e))},eh({props:Mi({},ce,re),defaultTag:bQ,features:EG,visible:g===Jn.Visible,name:"Transition.Child"})))}function Ic(n){var e=n.show,t=n.appear,r=t===void 0?!1:t,i=n.unmount,a=Wf(n,["show","appear","unmount"]),o=Sx();if(e===void 0&&o!==null){var s;e=es(o,(s={},s[ts.Open]=!0,s[ts.Closed]=!1,s))}if(![!0,!1].includes(e))throw new Error("A is used but it is missing a `show={true | false}` prop.");var l=Y.useState(e?Jn.Visible:Jn.Hidden),u=l[0],c=l[1],h=CG(function(){c(Jn.Hidden)}),f=TG(),d=Y.useMemo(function(){return{show:e,appear:r||!f}},[e,r,f]);Y.useEffect(function(){e?c(Jn.Visible):Tx(h)||c(Jn.Hidden)},[e,h]);var p={unmount:i};return At.createElement(bx.Provider,{value:h},At.createElement(Mx.Provider,{value:d},eh({props:Mi({},p,{as:Y.Fragment,children:At.createElement(RG,Object.assign({},p,a))}),defaultTag:Y.Fragment,features:EG,visible:u===Jn.Visible,name:"Transition"})))}Ic.Child=function(e){var t=Y.useContext(Mx)!==null,r=Sx()!==null;return!t&&r?At.createElement(Ic,Object.assign({},e)):At.createElement(RG,Object.assign({},e))};Ic.Root=Ic;function TQ(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 4v12l-4-2-4 2V4M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))}const CQ=Y.forwardRef(TQ),EQ=CQ;function RQ(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}))}const PQ=Y.forwardRef(RQ),DQ=PQ;function IQ(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"}))}const LQ=Y.forwardRef(IQ),BQ=LQ;function OQ(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"}))}const FQ=Y.forwardRef(OQ),NQ=FQ;function kQ(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"}))}const UQ=Y.forwardRef(kQ),GQ=UQ;function zQ(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"}))}const HQ=Y.forwardRef(zQ),VQ=HQ;function WQ(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}const XQ=Y.forwardRef(WQ),YQ=XQ;function jQ(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"}))}const JQ=Y.forwardRef(jQ),ZQ=JQ;function KQ(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"}))}const qQ=Y.forwardRef(KQ),PG=qQ;function $Q(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z"}))}const QQ=Y.forwardRef($Q),eee=QQ;function tee(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"}))}const nee=Y.forwardRef(tee),ree=nee;function iee(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const aee=Y.forwardRef(iee),oee=aee;function see(n,e){return Y.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},n),Y.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}const lee=Y.forwardRef(see),OI=lee,FI=[{name:"分析",href:"#",description:"获取更多关于您的数据的信息。",icon:BQ},{name:"订阅",href:"#",description:"订阅您的数据以获得更多信息。",icon:NQ},{name:"Security",href:"#",description:"Your customers' data will be safe and secure.",icon:PG},{name:"Integrations",href:"#",description:"Connect with third-party tools that you're already using.",icon:ree},{name:"Automations",href:"#",description:"Build strategic funnels that will drive your customers to convert",icon:ZQ}],uee=[{name:"Watch Demo",href:"#",icon:YQ},{name:"Contact Sales",href:"#",icon:VQ}],NI=[{name:"Help Center",description:"Get all of your questions answered in our forums or contact support.",href:"#",icon:eee},{name:"Guides",description:"Learn how to maximize our platform to get the most out of it.",href:"#",icon:EQ},{name:"Events",description:"See what meet-ups and other events we might be planning near you.",href:"#",icon:DQ},{name:"Security",description:"Understand how we take your privacy seriously.",href:"#",icon:PG}],cee=[{id:1,name:"Boost your conversion rate",href:"#"},{id:2,name:"How to use search engine optimization to drive traffic to your site",href:"#"},{id:3,name:"Improve your customer experience",href:"#"}];function by(...n){return n.filter(Boolean).join(" ")}function hee(){return ee.jsxs("div",{className:"relative bg-gray-50",children:[ee.jsx(pr,{className:"relative bg-white shadow",children:({open:n})=>ee.jsxs(ee.Fragment,{children:[ee.jsx("div",{className:"max-w-7xl mx-auto px-4 px-6",children:ee.jsxs("div",{className:"flex justify-between items-center py-6",children:[ee.jsx("div",{className:"flex justify-start",children:ee.jsxs("a",{href:"#",children:[ee.jsx("span",{className:"sr-only",children:"Workflow"}),ee.jsx("img",{className:"h-8 w-auto h-10",src:"https://raw.githubusercontent.com/anyone-yuren/multiway/master/logo.png",alt:""})]})}),ee.jsx("div",{className:"-mr-2 -my-2",children:ee.jsxs(pr.Button,{className:"bg-white rounded-md p-2 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500",children:[ee.jsx("span",{className:"sr-only",children:"Open menu"}),ee.jsx(GQ,{className:"h-6 w-6","aria-hidden":"true"})]})}),ee.jsxs(pr.Group,{as:"nav",className:"hidden space-x-10",children:[ee.jsx(pr,{className:"relative",children:({open:e})=>ee.jsxs(ee.Fragment,{children:[ee.jsxs(pr.Button,{className:by(e?"text-gray-900":"text-gray-500","group bg-white rounded-md inline-flex items-center text-base font-medium hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"),children:[ee.jsx("span",{children:"Solutions"}),ee.jsx(OI,{className:by(n?"text-gray-600":"text-gray-400","ml-2 h-5 w-5 group-hover:text-gray-500"),"aria-hidden":"true"})]}),ee.jsx(Ic,{show:n,as:Y.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:ee.jsx(pr.Panel,{static:!0,className:"absolute -ml-4 mt-3 transform z-10 px-2 w-screen max-w-md px-0",children:ee.jsxs("div",{className:"rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 overflow-hidden",children:[ee.jsx("div",{className:"relative grid gap-6 bg-white px-5 py-6 gap-8 p-8",children:FI.map(t=>ee.jsxs("a",{href:t.href,className:"-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50",children:[ee.jsx(t.icon,{className:"flex-shrink-0 h-6 w-6 text-indigo-600","aria-hidden":"true"}),ee.jsxs("div",{className:"ml-4",children:[ee.jsx("p",{className:"text-base font-medium text-gray-900",children:t.name}),ee.jsx("p",{className:"mt-1 text-sm text-gray-500",children:t.description})]})]},t.name))}),ee.jsx("div",{className:"px-5 py-5 bg-gray-50 space-y-6 flex space-y-0 space-x-10 px-8",children:uee.map(t=>ee.jsx("div",{className:"flow-root",children:ee.jsxs("a",{href:t.href,className:"-m-3 p-3 flex items-center rounded-md text-base font-medium text-gray-900 hover:bg-gray-100",children:[ee.jsx(t.icon,{className:"flex-shrink-0 h-6 w-6 text-gray-400","aria-hidden":"true"}),ee.jsx("span",{className:"ml-3",children:t.name})]})},t.name))})]})})})]})}),ee.jsx("a",{href:"#",className:"text-base font-medium text-gray-500 hover:text-gray-900",children:"Pricing"}),ee.jsx("a",{href:"#",className:"text-base font-medium text-gray-500 hover:text-gray-900",children:"Docs"}),ee.jsx(pr,{className:"relative",children:()=>ee.jsxs(ee.Fragment,{children:[ee.jsxs(pr.Button,{className:by(n?"text-gray-900":"text-gray-500","group bg-white rounded-md inline-flex items-center text-base font-medium hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"),children:[ee.jsx("span",{children:"More"}),ee.jsx(OI,{className:by(n?"text-gray-600":"text-gray-400","ml-2 h-5 w-5 group-hover:text-gray-500"),"aria-hidden":"true"})]}),ee.jsx(Ic,{show:n,as:Y.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:ee.jsx(pr.Panel,{static:!0,className:"absolute left-1/2 z-10 transform -translate-x-1/2 mt-3 px-2 w-screen max-w-md px-0",children:ee.jsxs("div",{className:"rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 overflow-hidden",children:[ee.jsx("div",{className:"relative grid gap-6 bg-white px-5 py-6 gap-8 p-8",children:NI.map(e=>ee.jsxs("a",{href:e.href,className:"-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50",children:[ee.jsx(e.icon,{className:"flex-shrink-0 h-6 w-6 text-indigo-600","aria-hidden":"true"}),ee.jsxs("div",{className:"ml-4",children:[ee.jsx("p",{className:"text-base font-medium text-gray-900",children:e.name}),ee.jsx("p",{className:"mt-1 text-sm text-gray-500",children:e.description})]})]},e.name))}),ee.jsxs("div",{className:"px-5 py-5 bg-gray-50 px-8 py-8",children:[ee.jsxs("div",{children:[ee.jsx("h3",{className:"text-sm tracking-wide font-medium text-gray-500 uppercase",children:"Recent Posts"}),ee.jsx("ul",{className:"mt-4 space-y-4",children:cee.map(e=>ee.jsx("li",{className:"text-base truncate",children:ee.jsx("a",{href:e.href,className:"font-medium text-gray-900 hover:text-gray-700",children:e.name})},e.id))})]}),ee.jsx("div",{className:"mt-5 text-sm",children:ee.jsxs("a",{href:"#",className:"font-medium text-indigo-600 hover:text-indigo-500",children:[" ","View all posts ",ee.jsx("span",{"aria-hidden":"true",children:"→"})]})})]})]})})})]})})]}),ee.jsxs("div",{className:"hidden items-center justify-end",children:[ee.jsx("a",{href:"#",className:"whitespace-nowrap text-base font-medium text-gray-500 hover:text-gray-900",children:"Sign in"}),ee.jsx("a",{href:"#",className:"ml-8 whitespace-nowrap inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-white bg-indigo-600 hover:bg-indigo-700",children:"Sign up"})]})]})}),ee.jsx(Ic,{show:n,as:Y.Fragment,enter:"duration-200 ease-out",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"duration-100 ease-in",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:ee.jsx(pr.Panel,{focus:!0,static:!0,className:"absolute top-0 inset-x-0 z-10 p-2 transition transform origin-top-right",children:ee.jsxs("div",{className:"rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 bg-white divide-y-2 divide-gray-50",children:[ee.jsxs("div",{className:"pt-5 pb-6 px-5",children:[ee.jsxs("div",{className:"flex items-center justify-between",children:[ee.jsx("div",{children:ee.jsx("img",{className:"h-8 w-auto",src:"https://raw.githubusercontent.com/anyone-yuren/multiway/master/logo.png",alt:"Workflow"})}),ee.jsx("div",{className:"-mr-2",children:ee.jsxs(pr.Button,{className:"bg-white rounded-md p-2 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500",children:[ee.jsx("span",{className:"sr-only",children:"Close menu"}),ee.jsx(oee,{className:"h-6 w-6","aria-hidden":"true"})]})})]}),ee.jsx("div",{className:"mt-6",children:ee.jsx("nav",{className:"grid gap-y-8",children:FI.map(e=>ee.jsxs("a",{href:e.href,className:"-m-3 p-3 flex items-center rounded-md hover:bg-gray-50",children:[ee.jsx(e.icon,{className:"flex-shrink-0 h-6 w-6 text-indigo-600","aria-hidden":"true"}),ee.jsx("span",{className:"ml-3 text-base font-medium text-gray-900",children:e.name})]},e.name))})})]}),ee.jsxs("div",{className:"py-6 px-5 space-y-6",children:[ee.jsxs("div",{className:"grid grid-cols-2 gap-y-4 gap-x-8",children:[ee.jsx("a",{href:"#",className:"text-base font-medium text-gray-900 hover:text-gray-700",children:"Pricing"}),ee.jsx("a",{href:"#",className:"text-base font-medium text-gray-900 hover:text-gray-700",children:"Docs"}),NI.map(e=>ee.jsx("a",{href:e.href,className:"text-base font-medium text-gray-900 hover:text-gray-700",children:e.name},e.name))]}),ee.jsxs("div",{children:[ee.jsx("a",{href:"#",className:"w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-white bg-indigo-600 hover:bg-indigo-700",children:"Sign up"}),ee.jsxs("p",{className:"mt-6 text-center text-base font-medium text-gray-500",children:["Existing customer?",ee.jsx("a",{href:"#",className:"text-indigo-600 hover:text-indigo-500",children:"Sign in"})]})]})]})]})})})]})}),ee.jsxs("main",{children:[ee.jsx("div",{className:"mx-auto max-w-7xl w-full pt-16 pb-20 text-center",children:ee.jsxs("div",{className:"px-4 px-8",children:[ee.jsxs("h1",{className:"text-4xl tracking-tight font-extrabold text-gray-900 text-5xl",children:[ee.jsx("span",{className:"block",children:"最了解你的人不是你的朋友"})," ",ee.jsx("span",{className:"block text-indigo-600",children:"而是你的敌人。"})]}),ee.jsx("p",{className:"mt-3 max-w-md mx-auto text-lg text-gray-500 text-xl",children:"有时候,耳朵比眼睛还重要,很多东西用耳朵听比用眼睛看好,一个人假装开心,但声音就装不了。细心一听就知道了。"}),ee.jsxs("div",{className:"mt-10 flex justify-center",children:[ee.jsx("div",{className:"mt-3 rounded-md shadow mt-0 ml-3",children:ee.jsx("a",{href:"#",className:"w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700",children:"Get started"})}),ee.jsx("div",{className:"mt-3 rounded-md shadow mt-0 ml-3",children:ee.jsx("a",{href:"#",className:"w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-indigo-600 bg-white hover:bg-gray-50",children:"Live demo"})})]})]})}),ee.jsx("div",{className:"relative w-full h-64 h-72",children:ee.jsx("img",{className:"absolute inset-0 w-full h-full object-cover",src:"https://github.com/anyone-yuren/multiway/blob/master/iShot_2024-01-05_17.05.52.gif?raw=true",alt:""})})]})]})}function fee(n){const e=Y.useRef(),{nodes:t,materials:r}=xx("https://raw.githubusercontent.com/anyone-yuren/multiway/master/mac-draco.glb");return pg(i=>{const a=i.clock.getElapsedTime();e.current&&(e.current.rotation.x=df.lerp(e.current.rotation.x,Math.cos(a/2)/20+.25,.1),e.current.rotation.y=df.lerp(e.current.rotation.y,Math.sin(a/4)/20,.1),e.current.rotation.z=df.lerp(e.current.rotation.z,Math.sin(a/8)/20,.1),e.current.position.y=df.lerp(e.current.position.y,(-2+Math.sin(a/2))/2,.1))}),ee.jsxs("group",_r(Tt({ref:e},n),{dispose:null,children:[ee.jsx("group",{"rotation-x":-.425,position:[0,-.04,.41],children:ee.jsxs("group",{position:[0,2.96,-.13],rotation:[Math.PI/2,0,0],children:[ee.jsx("mesh",{material:r.aluminium,geometry:t.Cube008.geometry}),ee.jsx("mesh",{material:r["matte.001"],geometry:t.Cube008_1.geometry}),ee.jsx("mesh",{geometry:t.Cube008_2.geometry,children:ee.jsx(kq,{className:"content",style:{width:"334px",height:"216px",backgroundColor:"#f0f0f0",overflowY:"auto",overflowX:"hidden",padding:0},"rotation-x":-Math.PI/2,position:[0,.05,-.09],transform:!0,occlude:!0,children:ee.jsx("div",{className:"wrapper",style:{padding:"10px",width:"668px",height:"432px",transform:"scale(0.5)",transformOrigin:"top left"},onPointerDown:i=>i.stopPropagation(),children:ee.jsx(hee,{})})})})]})}),ee.jsx("mesh",{material:r.keys,geometry:t.keyboard.geometry,position:[1.79,0,3.45]}),ee.jsxs("group",{position:[0,-.1,3.39],children:[ee.jsx("mesh",{material:r.aluminium,geometry:t.Cube002.geometry}),ee.jsx("mesh",{material:r.trackpad,geometry:t.Cube002_1.geometry})]}),ee.jsx("mesh",{material:r.touchbar,geometry:t.touchbar.geometry,position:[0,-.03,1.2]})]}))}const dee=()=>ee.jsxs(Eq,{camera:{position:[-5,0,-15],fov:45},children:[ee.jsx("pointLight",{position:[10,10,10],intensity:1.5}),ee.jsxs(Y.Suspense,{fallback:null,children:[ee.jsx("group",{rotation:[0,Math.PI,0],position:[0,1,0],children:ee.jsx(fee,{})}),ee.jsx(Z$,{preset:"city"})]}),ee.jsx(K$,{position:[0,-4.5,0],scale:20,blur:2,far:4.5}),ee.jsx(V$,{enablePan:!1,enableZoom:!1,minPolarAngle:Math.PI/2.2,maxPolarAngle:Math.PI/2.2})]}),pee=Y.memo(dee);/*! ***************************************************************************** +`));return q.cloneElement(d,Object.assign({},ZK(jK(tA(h,["ref"])),d.props,["onClick"]),f))}return q.createElement(s,Object.assign({},tA(h,["ref"]),s!==q.Fragment&&f),d)}function ZK(n,e,t){for(var r=Object.assign({},n),i=function(){var l=o.value;if(n[l]!==void 0&&e[l]!==void 0){var u;Object.assign(r,(u={},u[l]=function(c){c.defaultPrevented||n[l](c),c.defaultPrevented||e[l](c)},u))}},a=ed(t),o;!(o=a()).done;)i();return r}function dC(n){var e;return Object.assign(q.forwardRef(n),{displayName:(e=n.displayName)!=null?e:n.name})}function jK(n){var e=Object.assign({},n);for(var t in e)e[t]===void 0&&delete e[t];return e}function tA(n,e){e===void 0&&(e=[]);for(var t=Object.assign({},n),r=ed(e),i;!(i=r()).done;){var a=i.value;a in t&&delete t[a]}return t}var ly=typeof window!="undefined"?q.useLayoutEffect:q.useEffect,nA={serverHandoffComplete:!1};function CU(){var n=q.useState(nA.serverHandoffComplete),e=n[0],t=n[1];return q.useEffect(function(){e!==!0&&t(!0)},[e]),q.useEffect(function(){nA.serverHandoffComplete===!1&&(nA.serverHandoffComplete=!0)},[]),e}function pC(){for(var n=arguments.length,e=new Array(n),t=0;t=l||s+l<=0)return Ps.Error;var h=a+s;if(e&_r.WrapAround)h=(h+l)%l;else{if(h<0)return Ps.Underflow;if(h>=l)return Ps.Overflow}u=t[h],(c=u)==null||c.focus(o),s+=i}while(u!==document.activeElement);return u.hasAttribute("tabindex")||u.setAttribute("tabindex","0"),Ps.Success}function $K(){var n=q.useRef(!1);return q.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),n}var vC=q.createContext(null);vC.displayName="OpenClosedContext";var es;(function(n){n[n.Open=0]="Open",n[n.Closed=1]="Closed"})(es||(es={}));function K_(){return q.useContext(vC)}function RU(n){var e=n.value,t=n.children;return na.createElement(vC.Provider,{value:e},t)}function PU(){var n=[],e={requestAnimationFrame:function(t){function r(){return t.apply(this,arguments)}return r.toString=function(){return t.toString()},r}(function(){var t=requestAnimationFrame.apply(void 0,arguments);e.add(function(){return cancelAnimationFrame(t)})}),nextFrame:function(){for(var r=arguments.length,i=new Array(r),a=0;a is missing a parent <"+fr.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(t,q_),t}return e}var mC=q.createContext(null);mC.displayName="PopoverAPIContext";function DU(n){var e=q.useContext(mC);if(e===null){var t=new Error("<"+n+" /> is missing a parent <"+fr.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(t,DU),t}return e}var yC=q.createContext(null);yC.displayName="PopoverGroupContext";function IU(){return q.useContext(yC)}var _C=q.createContext(null);_C.displayName="PopoverPanelContext";function tq(){return q.useContext(_C)}function nq(n,e){return $o(e.type,eq,n,e)}var rq="div";function fr(n){var e,t="headlessui-popover-button-"+By(),r="headlessui-popover-panel-"+By(),i=q.useReducer(nq,{popoverState:wn.Closed,button:null,buttonId:t,panel:null,panelId:r}),a=i[0],o=a.popoverState,s=a.button,l=a.panel,u=i[1];q.useEffect(function(){return u({type:kn.SetButtonId,buttonId:t})},[t,u]),q.useEffect(function(){return u({type:kn.SetPanelId,panelId:r})},[r,u]);var c=q.useMemo(function(){return{buttonId:t,panelId:r,close:function(){return u({type:kn.ClosePopover})}}},[t,r,u]),h=IU(),f=h==null?void 0:h.registerPopover,d=q.useCallback(function(){var v;return(v=h==null?void 0:h.isFocusWithinPopoverGroup())!=null?v:(s==null?void 0:s.contains(document.activeElement))||(l==null?void 0:l.contains(document.activeElement))},[h,s,l]);q.useEffect(function(){return f==null?void 0:f(c)},[f,c]),cv("focus",function(){o===wn.Open&&(d()||s&&l&&u({type:kn.ClosePopover}))},!0),cv("mousedown",function(v){var x=v.target;o===wn.Open&&(s!=null&&s.contains(x)||l!=null&&l.contains(x)||(u({type:kn.ClosePopover}),QK(x,mf.Loose)||(v.preventDefault(),s==null||s.focus())))});var p=q.useCallback(function(v){u({type:kn.ClosePopover});var x=function(){return v?v instanceof HTMLElement?v:v.current instanceof HTMLElement?v.current:s:s}();x==null||x.focus()},[u,s]),y=q.useMemo(function(){return{close:p}},[p]),g=q.useMemo(function(){return{open:o===wn.Open,close:p}},[o,p]);return na.createElement(gC.Provider,{value:i},na.createElement(mC.Provider,{value:y},na.createElement(RU,{value:$o(o,(e={},e[wn.Open]=es.Open,e[wn.Closed]=es.Closed,e))},Jc({props:n,slot:g,defaultTag:rq,name:"Popover"}))))}var iq="button",aq=dC(function n(e,t){var r=q_([fr.name,n.name].join(".")),i=r[0],a=r[1],o=q.useRef(null),s=IU(),l=s==null?void 0:s.closeOthers,u=tq(),c=u===null?!1:u===i.panelId,h=pC(o,t,c?null:function(A){return a({type:kn.SetButton,button:A})}),f=q.useRef(null),d=q.useRef(typeof window=="undefined"?null:document.activeElement);cv("focus",function(){d.current=f.current,f.current=document.activeElement},!0);var p=q.useCallback(function(A){var T;if(c){if(i.popoverState===wn.Closed)return;switch(A.key){case Ea.Space:case Ea.Enter:A.preventDefault(),A.stopPropagation(),a({type:kn.ClosePopover}),(T=i.button)==null||T.focus();break}}else switch(A.key){case Ea.Space:case Ea.Enter:A.preventDefault(),A.stopPropagation(),i.popoverState===wn.Closed&&(l==null||l(i.buttonId)),a({type:kn.TogglePopover});break;case Ea.Escape:if(i.popoverState!==wn.Open)return l==null?void 0:l(i.buttonId);if(!o.current||!o.current.contains(document.activeElement))return;a({type:kn.ClosePopover});break;case Ea.Tab:if(i.popoverState!==wn.Open||!i.panel||!i.button)return;if(A.shiftKey){var w;if(!d.current||(w=i.button)!=null&&w.contains(d.current)||i.panel.contains(d.current))return;var C=Ny(),P=C.indexOf(d.current),E=C.indexOf(i.button);if(E>P)return;A.preventDefault(),A.stopPropagation(),dc(i.panel,_r.Last)}else A.preventDefault(),A.stopPropagation(),dc(i.panel,_r.First);break}},[a,i.popoverState,i.buttonId,i.button,i.panel,o,l,c]),y=q.useCallback(function(A){var T;if(!c&&(A.key===Ea.Space&&A.preventDefault(),i.popoverState===wn.Open&&i.panel&&i.button))switch(A.key){case Ea.Tab:if(!d.current||(T=i.button)!=null&&T.contains(d.current)||i.panel.contains(d.current))return;var w=Ny(),C=w.indexOf(d.current),P=w.indexOf(i.button);if(P>C)return;A.preventDefault(),A.stopPropagation(),dc(i.panel,_r.Last);break}},[i.popoverState,i.panel,i.button,c]),g=q.useCallback(function(A){if(!EU(A.currentTarget)&&!e.disabled)if(c){var T;a({type:kn.ClosePopover}),(T=i.button)==null||T.focus()}else{var w;i.popoverState===wn.Closed&&(l==null||l(i.buttonId)),(w=i.button)==null||w.focus(),a({type:kn.TogglePopover})}},[a,i.button,i.popoverState,i.buttonId,e.disabled,l,c]),v=q.useMemo(function(){return{open:i.popoverState===wn.Open}},[i]),x=e,S=c?{type:"button",onKeyDown:p,onClick:g}:{ref:h,id:i.buttonId,type:"button","aria-expanded":e.disabled?void 0:i.popoverState===wn.Open,"aria-controls":i.panel?i.panelId:void 0,onKeyDown:p,onKeyUp:y,onClick:g};return Jc({props:Si({},x,S),slot:v,defaultTag:iq,name:"Popover.Button"})}),oq="div",sq=Jo.RenderStrategy|Jo.Static,lq=dC(function n(e,t){var r=q_([fr.name,n.name].join(".")),i=r[0].popoverState,a=r[1],o=pC(t),s="headlessui-popover-overlay-"+By(),l=K_(),u=function(){return l!==null?l===es.Open:i===wn.Open}(),c=q.useCallback(function(p){if(EU(p.currentTarget))return p.preventDefault();a({type:kn.ClosePopover})},[a]),h=q.useMemo(function(){return{open:i===wn.Open}},[i]),f={ref:o,id:s,"aria-hidden":!0,onClick:c},d=e;return Jc({props:Si({},d,f),slot:h,defaultTag:oq,features:sq,visible:u,name:"Popover.Overlay"})}),uq="div",cq=Jo.RenderStrategy|Jo.Static,hq=dC(function n(e,t){var r=e.focus,i=r===void 0?!1:r,a=Of(e,["focus"]),o=q_([fr.name,n.name].join(".")),s=o[0],l=o[1],u=DU([fr.name,n.name].join(".")),c=u.close,h=q.useRef(null),f=pC(h,t,function(x){l({type:kn.SetPanel,panel:x})}),d=K_(),p=function(){return d!==null?d===es.Open:s.popoverState===wn.Open}(),y=q.useCallback(function(x){var S;switch(x.key){case Ea.Escape:if(s.popoverState!==wn.Open||!h.current||!h.current.contains(document.activeElement))return;x.preventDefault(),l({type:kn.ClosePopover}),(S=s.button)==null||S.focus();break}},[s,h,l]);q.useEffect(function(){return function(){return l({type:kn.SetPanel,panel:null})}},[l]),q.useEffect(function(){var x;s.popoverState===wn.Closed&&((x=e.unmount)==null||x)&&l({type:kn.SetPanel,panel:null})},[s.popoverState,e.unmount,l]),q.useEffect(function(){if(i&&s.popoverState===wn.Open&&h.current){var x=document.activeElement;h.current.contains(x)||dc(h.current,_r.First)}},[i,h,s.popoverState]),cv("keydown",function(x){if(s.popoverState===wn.Open&&h.current&&x.key===Ea.Tab&&document.activeElement&&h.current&&h.current.contains(document.activeElement)){x.preventDefault();var S=dc(h.current,x.shiftKey?_r.Previous:_r.Next);if(S===Ps.Underflow){var A;return(A=s.button)==null?void 0:A.focus()}else if(S===Ps.Overflow){if(!s.button)return;var T=Ny(),w=T.indexOf(s.button),C=T.splice(w+1).filter(function(P){var E;return!((E=h.current)!=null&&E.contains(P))});dc(C,_r.First)===Ps.Error&&dc(document.body,_r.First)}}}),cv("focus",function(){var x;i&&s.popoverState===wn.Open&&h.current&&((x=h.current)!=null&&x.contains(document.activeElement)||l({type:kn.ClosePopover}))},!0);var g=q.useMemo(function(){return{open:s.popoverState===wn.Open,close:c}},[s,c]),v={ref:f,id:s.panelId,onKeyDown:y};return na.createElement(_C.Provider,{value:s.panelId},Jc({props:Si({},a,v),slot:g,defaultTag:uq,features:cq,visible:p,name:"Popover.Panel"}))}),fq="div";function dq(n){var e=q.useRef(null),t=q.useState([]),r=t[0],i=t[1],a=q.useCallback(function(d){i(function(p){var y=p.indexOf(d);if(y!==-1){var g=p.slice();return g.splice(y,1),g}return p})},[i]),o=q.useCallback(function(d){return i(function(p){return[].concat(p,[d])}),function(){return a(d)}},[i,a]),s=q.useCallback(function(){var d,p=document.activeElement;return(d=e.current)!=null&&d.contains(p)?!0:r.some(function(y){var g,v;return((g=document.getElementById(y.buttonId))==null?void 0:g.contains(p))||((v=document.getElementById(y.panelId))==null?void 0:v.contains(p))})},[e,r]),l=q.useCallback(function(d){for(var p=ed(r),y;!(y=p()).done;){var g=y.value;g.buttonId!==d&&g.close()}},[r]),u=q.useMemo(function(){return{registerPopover:o,unregisterPopover:a,isFocusWithinPopoverGroup:s,closeOthers:l}},[o,a,s,l]),c=q.useMemo(function(){return{}},[]),h={ref:e},f=n;return na.createElement(yC.Provider,{value:u},Jc({props:Si({},f,h),slot:c,defaultTag:fq,name:"Popover.Group"}))}fr.Button=aq;fr.Overlay=lq;fr.Panel=hq;fr.Group=dq;function LU(){var n=q.useRef(!0);return q.useEffect(function(){n.current=!1},[]),n.current}function pq(n){var e={called:!1};return function(){if(!e.called)return e.called=!0,n.apply(void 0,arguments)}}function rA(n){for(var e,t=arguments.length,r=new Array(t>1?t-1:0),i=1;i0&&(e=n.classList).add.apply(e,r)}function i0(n){for(var e,t=arguments.length,r=new Array(t>1?t-1:0),i=1;i0&&(e=n.classList).remove.apply(e,r)}var Ol;(function(n){n.Finished="finished",n.Cancelled="cancelled"})(Ol||(Ol={}));function vq(n,e){var t=PU();if(!n)return t.dispose;var r=getComputedStyle(n),i=r.transitionDuration,a=r.transitionDelay,o=[i,a].map(function(u){var c=u.split(",").filter(Boolean).map(function(d){return d.includes("ms")?parseFloat(d):parseFloat(d)*1e3}).sort(function(d,p){return p-d}),h=c[0],f=h===void 0?0:h;return f}),s=o[0],l=o[1];return s!==0?t.setTimeout(function(){e(Ol.Finished)},s+l):e(Ol.Finished),t.add(function(){return e(Ol.Cancelled)}),t.dispose}function jD(n,e,t,r,i,a){var o=PU(),s=a!==void 0?pq(a):function(){};return i0.apply(void 0,[n].concat(i)),rA.apply(void 0,[n].concat(e,t)),o.nextFrame(function(){i0.apply(void 0,[n].concat(t)),rA.apply(void 0,[n].concat(r)),o.add(vq(n,function(l){return i0.apply(void 0,[n].concat(r,e)),rA.apply(void 0,[n].concat(i)),s(l)}))}),o.add(function(){return i0.apply(void 0,[n].concat(e,t,r,i))}),o.add(function(){return s(Ol.Cancelled)}),o.dispose}function bu(n){return n===void 0&&(n=""),q.useMemo(function(){return n.split(" ").filter(function(e){return e.trim().length>1})},[n])}var Q_=q.createContext(null);Q_.displayName="TransitionContext";var Jn;(function(n){n.Visible="visible",n.Hidden="hidden"})(Jn||(Jn={}));function gq(){var n=q.useContext(Q_);if(n===null)throw new Error("A is used but it is missing a parent or .");return n}function mq(){var n=q.useContext($_);if(n===null)throw new Error("A is used but it is missing a parent or .");return n}var $_=q.createContext(null);$_.displayName="NestingContext";function ex(n){return"children"in n?ex(n.children):n.current.filter(function(e){var t=e.state;return t===Jn.Visible}).length>0}function BU(n){var e=q.useRef(n),t=q.useRef([]),r=$K();q.useEffect(function(){e.current=n},[n]);var i=q.useCallback(function(o,s){var l;s===void 0&&(s=ta.Hidden);var u=t.current.findIndex(function(c){var h=c.id;return h===o});u!==-1&&($o(s,(l={},l[ta.Unmount]=function(){t.current.splice(u,1)},l[ta.Hidden]=function(){t.current[u].state=Jn.Hidden},l)),!ex(t)&&r.current&&(e.current==null||e.current()))},[e,r,t]),a=q.useCallback(function(o){var s=t.current.find(function(l){var u=l.id;return u===o});return s?s.state!==Jn.Visible&&(s.state=Jn.Visible):t.current.push({id:o,state:Jn.Visible}),function(){return i(o,ta.Unmount)}},[t,i]);return q.useMemo(function(){return{children:t,register:a,unregister:i}},[a,i,t])}function yq(){}var _q=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function KD(n){for(var e={},t=ed(_q),r;!(r=t()).done;){var i,a=r.value;e[a]=(i=n[a])!=null?i:yq}return e}function xq(n){var e=q.useRef(KD(n));return q.useEffect(function(){e.current=KD(n)},[n]),e}var Sq="div",OU=Jo.RenderStrategy;function NU(n){var e,t=n.beforeEnter,r=n.afterEnter,i=n.beforeLeave,a=n.afterLeave,o=n.enter,s=n.enterFrom,l=n.enterTo,u=n.entered,c=n.leave,h=n.leaveFrom,f=n.leaveTo,d=Of(n,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),p=q.useRef(null),y=q.useState(Jn.Visible),g=y[0],v=y[1],x=d.unmount?ta.Unmount:ta.Hidden,S=gq(),A=S.show,T=S.appear,w=mq(),C=w.register,P=w.unregister,E=LU(),R=By(),I=q.useRef(!1),O=BU(function(){I.current||(v(Jn.Hidden),P(R),$.current.afterLeave())});ly(function(){if(R)return C(R)},[C,R]),ly(function(){var Se;if(x===ta.Hidden&&R){if(A&&g!==Jn.Visible){v(Jn.Visible);return}$o(g,(Se={},Se[Jn.Hidden]=function(){return P(R)},Se[Jn.Visible]=function(){return C(R)},Se))}},[g,R,C,P,A,x]);var U=bu(o),F=bu(s),z=bu(l),X=bu(u),ne=bu(c),H=bu(h),j=bu(f),$=xq({beforeEnter:t,afterEnter:r,beforeLeave:i,afterLeave:a}),le=CU();q.useEffect(function(){if(le&&g===Jn.Visible&&p.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[p,g,le]);var ce=E&&!T;ly(function(){var Se=p.current;if(Se&&!ce)return I.current=!0,A&&$.current.beforeEnter(),A||$.current.beforeLeave(),A?jD(Se,U,F,z,X,function(ve){I.current=!1,ve===Ol.Finished&&$.current.afterEnter()}):jD(Se,ne,H,j,X,function(ve){I.current=!1,ve===Ol.Finished&&(ex(O)||(v(Jn.Hidden),P(R),$.current.afterLeave()))})},[$,R,I,P,O,p,ce,A,U,F,z,ne,H,j]);var ie={ref:p},he=d;return na.createElement($_.Provider,{value:O},na.createElement(RU,{value:$o(g,(e={},e[Jn.Visible]=es.Open,e[Jn.Hidden]=es.Closed,e))},Jc({props:Si({},he,ie),defaultTag:Sq,features:OU,visible:g===Jn.Visible,name:"Transition.Child"})))}function bc(n){var e=n.show,t=n.appear,r=t===void 0?!1:t,i=n.unmount,a=Of(n,["show","appear","unmount"]),o=K_();if(e===void 0&&o!==null){var s;e=$o(o,(s={},s[es.Open]=!0,s[es.Closed]=!1,s))}if(![!0,!1].includes(e))throw new Error("A is used but it is missing a `show={true | false}` prop.");var l=q.useState(e?Jn.Visible:Jn.Hidden),u=l[0],c=l[1],h=BU(function(){c(Jn.Hidden)}),f=LU(),d=q.useMemo(function(){return{show:e,appear:r||!f}},[e,r,f]);q.useEffect(function(){e?c(Jn.Visible):ex(h)||c(Jn.Hidden)},[e,h]);var p={unmount:i};return na.createElement($_.Provider,{value:h},na.createElement(Q_.Provider,{value:d},Jc({props:Si({},p,{as:q.Fragment,children:na.createElement(NU,Object.assign({},p,a))}),defaultTag:q.Fragment,features:OU,visible:u===Jn.Visible,name:"Transition"})))}bc.Child=function(e){var t=q.useContext(Q_)!==null,r=K_()!==null;return!t&&r?na.createElement(bc,Object.assign({},e)):na.createElement(NU,Object.assign({},e))};bc.Root=bc;function Aq(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 4v12l-4-2-4 2V4M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))}const Mq=q.forwardRef(Aq),wq=Mq;function bq(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}))}const Tq=q.forwardRef(bq),Cq=Tq;function Eq(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"}))}const Rq=q.forwardRef(Eq),Pq=Rq;function Dq(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"}))}const Iq=q.forwardRef(Dq),Lq=Iq;function Bq(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"}))}const Oq=q.forwardRef(Bq),Nq=Oq;function Fq(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"}))}const kq=q.forwardRef(Fq),Uq=kq;function Gq(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}const zq=q.forwardRef(Gq),Hq=zq;function Vq(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"}))}const Wq=q.forwardRef(Vq),Xq=Wq;function Yq(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"}))}const Jq=q.forwardRef(Yq),FU=Jq;function Zq(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z"}))}const jq=q.forwardRef(Zq),Kq=jq;function qq(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"}))}const Qq=q.forwardRef(qq),$q=Qq;function eQ(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const tQ=q.forwardRef(eQ),nQ=tQ;function rQ(n,e){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},n),q.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}const iQ=q.forwardRef(rQ),qD=iQ,QD=[{name:"分析",href:"#",description:"获取更多关于您的数据的信息。",icon:Pq},{name:"订阅",href:"#",description:"订阅您的数据以获得更多信息。",icon:Lq},{name:"Security",href:"#",description:"Your customers' data will be safe and secure.",icon:FU},{name:"Integrations",href:"#",description:"Connect with third-party tools that you're already using.",icon:$q},{name:"Automations",href:"#",description:"Build strategic funnels that will drive your customers to convert",icon:Xq}],aQ=[{name:"Watch Demo",href:"#",icon:Hq},{name:"Contact Sales",href:"#",icon:Uq}],$D=[{name:"Help Center",description:"Get all of your questions answered in our forums or contact support.",href:"#",icon:Kq},{name:"Guides",description:"Learn how to maximize our platform to get the most out of it.",href:"#",icon:wq},{name:"Events",description:"See what meet-ups and other events we might be planning near you.",href:"#",icon:Cq},{name:"Security",description:"Understand how we take your privacy seriously.",href:"#",icon:FU}],oQ=[{id:1,name:"Boost your conversion rate",href:"#"},{id:2,name:"How to use search engine optimization to drive traffic to your site",href:"#"},{id:3,name:"Improve your customer experience",href:"#"}];function a0(...n){return n.filter(Boolean).join(" ")}function sQ(){return ee.jsxs("div",{className:"relative bg-gray-50",children:[ee.jsx(fr,{className:"relative bg-white shadow",children:({open:n})=>ee.jsxs(ee.Fragment,{children:[ee.jsx("div",{className:"max-w-7xl mx-auto px-4 px-6",children:ee.jsxs("div",{className:"flex justify-between items-center py-6",children:[ee.jsx("div",{className:"flex justify-start",children:ee.jsxs("a",{href:"#",children:[ee.jsx("span",{className:"sr-only",children:"Workflow"}),ee.jsx("img",{className:"h-8 w-auto h-10",src:"https://raw.githubusercontent.com/anyone-yuren/multiway/master/logo.png",alt:""})]})}),ee.jsx("div",{className:"-mr-2 -my-2",children:ee.jsxs(fr.Button,{className:"bg-white rounded-md p-2 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500",children:[ee.jsx("span",{className:"sr-only",children:"Open menu"}),ee.jsx(Nq,{className:"h-6 w-6","aria-hidden":"true"})]})}),ee.jsxs(fr.Group,{as:"nav",className:"hidden space-x-10",children:[ee.jsx(fr,{className:"relative",children:({open:e})=>ee.jsxs(ee.Fragment,{children:[ee.jsxs(fr.Button,{className:a0(e?"text-gray-900":"text-gray-500","group bg-white rounded-md inline-flex items-center text-base font-medium hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"),children:[ee.jsx("span",{children:"Solutions"}),ee.jsx(qD,{className:a0(n?"text-gray-600":"text-gray-400","ml-2 h-5 w-5 group-hover:text-gray-500"),"aria-hidden":"true"})]}),ee.jsx(bc,{show:n,as:q.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:ee.jsx(fr.Panel,{static:!0,className:"absolute -ml-4 mt-3 transform z-10 px-2 w-screen max-w-md px-0",children:ee.jsxs("div",{className:"rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 overflow-hidden",children:[ee.jsx("div",{className:"relative grid gap-6 bg-white px-5 py-6 gap-8 p-8",children:QD.map(t=>ee.jsxs("a",{href:t.href,className:"-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50",children:[ee.jsx(t.icon,{className:"flex-shrink-0 h-6 w-6 text-indigo-600","aria-hidden":"true"}),ee.jsxs("div",{className:"ml-4",children:[ee.jsx("p",{className:"text-base font-medium text-gray-900",children:t.name}),ee.jsx("p",{className:"mt-1 text-sm text-gray-500",children:t.description})]})]},t.name))}),ee.jsx("div",{className:"px-5 py-5 bg-gray-50 space-y-6 flex space-y-0 space-x-10 px-8",children:aQ.map(t=>ee.jsx("div",{className:"flow-root",children:ee.jsxs("a",{href:t.href,className:"-m-3 p-3 flex items-center rounded-md text-base font-medium text-gray-900 hover:bg-gray-100",children:[ee.jsx(t.icon,{className:"flex-shrink-0 h-6 w-6 text-gray-400","aria-hidden":"true"}),ee.jsx("span",{className:"ml-3",children:t.name})]})},t.name))})]})})})]})}),ee.jsx("a",{href:"#",className:"text-base font-medium text-gray-500 hover:text-gray-900",children:"Pricing"}),ee.jsx("a",{href:"#",className:"text-base font-medium text-gray-500 hover:text-gray-900",children:"Docs"}),ee.jsx(fr,{className:"relative",children:()=>ee.jsxs(ee.Fragment,{children:[ee.jsxs(fr.Button,{className:a0(n?"text-gray-900":"text-gray-500","group bg-white rounded-md inline-flex items-center text-base font-medium hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"),children:[ee.jsx("span",{children:"More"}),ee.jsx(qD,{className:a0(n?"text-gray-600":"text-gray-400","ml-2 h-5 w-5 group-hover:text-gray-500"),"aria-hidden":"true"})]}),ee.jsx(bc,{show:n,as:q.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:ee.jsx(fr.Panel,{static:!0,className:"absolute left-1/2 z-10 transform -translate-x-1/2 mt-3 px-2 w-screen max-w-md px-0",children:ee.jsxs("div",{className:"rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 overflow-hidden",children:[ee.jsx("div",{className:"relative grid gap-6 bg-white px-5 py-6 gap-8 p-8",children:$D.map(e=>ee.jsxs("a",{href:e.href,className:"-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50",children:[ee.jsx(e.icon,{className:"flex-shrink-0 h-6 w-6 text-indigo-600","aria-hidden":"true"}),ee.jsxs("div",{className:"ml-4",children:[ee.jsx("p",{className:"text-base font-medium text-gray-900",children:e.name}),ee.jsx("p",{className:"mt-1 text-sm text-gray-500",children:e.description})]})]},e.name))}),ee.jsxs("div",{className:"px-5 py-5 bg-gray-50 px-8 py-8",children:[ee.jsxs("div",{children:[ee.jsx("h3",{className:"text-sm tracking-wide font-medium text-gray-500 uppercase",children:"Recent Posts"}),ee.jsx("ul",{className:"mt-4 space-y-4",children:oQ.map(e=>ee.jsx("li",{className:"text-base truncate",children:ee.jsx("a",{href:e.href,className:"font-medium text-gray-900 hover:text-gray-700",children:e.name})},e.id))})]}),ee.jsx("div",{className:"mt-5 text-sm",children:ee.jsxs("a",{href:"#",className:"font-medium text-indigo-600 hover:text-indigo-500",children:[" ","View all posts ",ee.jsx("span",{"aria-hidden":"true",children:"→"})]})})]})]})})})]})})]}),ee.jsxs("div",{className:"hidden items-center justify-end",children:[ee.jsx("a",{href:"#",className:"whitespace-nowrap text-base font-medium text-gray-500 hover:text-gray-900",children:"Sign in"}),ee.jsx("a",{href:"#",className:"ml-8 whitespace-nowrap inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-white bg-indigo-600 hover:bg-indigo-700",children:"Sign up"})]})]})}),ee.jsx(bc,{show:n,as:q.Fragment,enter:"duration-200 ease-out",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"duration-100 ease-in",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:ee.jsx(fr.Panel,{focus:!0,static:!0,className:"absolute top-0 inset-x-0 z-10 p-2 transition transform origin-top-right",children:ee.jsxs("div",{className:"rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 bg-white divide-y-2 divide-gray-50",children:[ee.jsxs("div",{className:"pt-5 pb-6 px-5",children:[ee.jsxs("div",{className:"flex items-center justify-between",children:[ee.jsx("div",{children:ee.jsx("img",{className:"h-8 w-auto",src:"https://raw.githubusercontent.com/anyone-yuren/multiway/master/logo.png",alt:"Workflow"})}),ee.jsx("div",{className:"-mr-2",children:ee.jsxs(fr.Button,{className:"bg-white rounded-md p-2 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500",children:[ee.jsx("span",{className:"sr-only",children:"Close menu"}),ee.jsx(nQ,{className:"h-6 w-6","aria-hidden":"true"})]})})]}),ee.jsx("div",{className:"mt-6",children:ee.jsx("nav",{className:"grid gap-y-8",children:QD.map(e=>ee.jsxs("a",{href:e.href,className:"-m-3 p-3 flex items-center rounded-md hover:bg-gray-50",children:[ee.jsx(e.icon,{className:"flex-shrink-0 h-6 w-6 text-indigo-600","aria-hidden":"true"}),ee.jsx("span",{className:"ml-3 text-base font-medium text-gray-900",children:e.name})]},e.name))})})]}),ee.jsxs("div",{className:"py-6 px-5 space-y-6",children:[ee.jsxs("div",{className:"grid grid-cols-2 gap-y-4 gap-x-8",children:[ee.jsx("a",{href:"#",className:"text-base font-medium text-gray-900 hover:text-gray-700",children:"Pricing"}),ee.jsx("a",{href:"#",className:"text-base font-medium text-gray-900 hover:text-gray-700",children:"Docs"}),$D.map(e=>ee.jsx("a",{href:e.href,className:"text-base font-medium text-gray-900 hover:text-gray-700",children:e.name},e.name))]}),ee.jsxs("div",{children:[ee.jsx("a",{href:"#",className:"w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-white bg-indigo-600 hover:bg-indigo-700",children:"Sign up"}),ee.jsxs("p",{className:"mt-6 text-center text-base font-medium text-gray-500",children:["Existing customer?",ee.jsx("a",{href:"#",className:"text-indigo-600 hover:text-indigo-500",children:"Sign in"})]})]})]})]})})})]})}),ee.jsxs("main",{children:[ee.jsx("div",{className:"mx-auto max-w-7xl w-full pt-16 pb-20 text-center",children:ee.jsxs("div",{className:"px-4 px-8",children:[ee.jsxs("h1",{className:"text-4xl tracking-tight font-extrabold text-gray-900 text-5xl",children:[ee.jsx("span",{className:"block",children:"最了解你的人不是你的朋友"})," ",ee.jsx("span",{className:"block text-indigo-600",children:"而是你的敌人。"})]}),ee.jsx("p",{className:"mt-3 max-w-md mx-auto text-lg text-gray-500 text-xl",children:"有时候,耳朵比眼睛还重要,很多东西用耳朵听比用眼睛看好,一个人假装开心,但声音就装不了。细心一听就知道了。"}),ee.jsxs("div",{className:"mt-10 flex justify-center",children:[ee.jsx("div",{className:"mt-3 rounded-md shadow mt-0 ml-3",children:ee.jsx("a",{href:"#",className:"w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700",children:"Get started"})}),ee.jsx("div",{className:"mt-3 rounded-md shadow mt-0 ml-3",children:ee.jsx("a",{href:"#",className:"w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-indigo-600 bg-white hover:bg-gray-50",children:"Live demo"})})]})]})}),ee.jsx("div",{className:"relative w-full h-64 h-72",children:ee.jsx("img",{className:"absolute inset-0 w-full h-full object-cover",src:"https://github.com/anyone-yuren/multiway/blob/master/iShot_2024-01-05_17.05.52.gif?raw=true",alt:""})})]})]})}function lQ(n){const e=q.useRef(),{nodes:t,materials:r}=j_("https://raw.githubusercontent.com/anyone-yuren/multiway/master/mac-draco.glb");return qv(i=>{const a=i.clock.getElapsedTime();e.current&&(e.current.rotation.x=af.lerp(e.current.rotation.x,Math.cos(a/2)/20+.25,.1),e.current.rotation.y=af.lerp(e.current.rotation.y,Math.sin(a/4)/20,.1),e.current.rotation.z=af.lerp(e.current.rotation.z,Math.sin(a/8)/20,.1),e.current.position.y=af.lerp(e.current.position.y,(-2+Math.sin(a/2))/2,.1))}),ee.jsxs("group",mr(At({ref:e},n),{dispose:null,children:[ee.jsx("group",{"rotation-x":-.425,position:[0,-.04,.41],children:ee.jsxs("group",{position:[0,2.96,-.13],rotation:[Math.PI/2,0,0],children:[ee.jsx("mesh",{material:r.aluminium,geometry:t.Cube008.geometry}),ee.jsx("mesh",{material:r["matte.001"],geometry:t.Cube008_1.geometry}),ee.jsx("mesh",{geometry:t.Cube008_2.geometry,children:ee.jsx(Bj,{className:"content",style:{width:"334px",height:"216px",backgroundColor:"#f0f0f0",overflowY:"auto",overflowX:"hidden",padding:0},"rotation-x":-Math.PI/2,position:[0,.05,-.09],transform:!0,occlude:!0,children:ee.jsx("div",{className:"wrapper",style:{padding:"10px",width:"668px",height:"432px",transform:"scale(0.5)",transformOrigin:"top left"},onPointerDown:i=>i.stopPropagation(),children:ee.jsx(sQ,{})})})})]})}),ee.jsx("mesh",{material:r.keys,geometry:t.keyboard.geometry,position:[1.79,0,3.45]}),ee.jsxs("group",{position:[0,-.1,3.39],children:[ee.jsx("mesh",{material:r.aluminium,geometry:t.Cube002.geometry}),ee.jsx("mesh",{material:r.trackpad,geometry:t.Cube002_1.geometry})]}),ee.jsx("mesh",{material:r.touchbar,geometry:t.touchbar.geometry,position:[0,-.03,1.2]})]}))}const uQ=()=>ee.jsxs(wj,{camera:{position:[-5,0,-15],fov:45},children:[ee.jsx("pointLight",{position:[10,10,10],intensity:1.5}),ee.jsxs(q.Suspense,{fallback:null,children:[ee.jsx("group",{rotation:[0,Math.PI,0],position:[0,1,0],children:ee.jsx(lQ,{})}),ee.jsx(XK,{preset:"city"})]}),ee.jsx(YK,{position:[0,-4.5,0],scale:20,blur:2,far:4.5}),ee.jsx(UK,{enablePan:!1,enableZoom:!1,minPolarAngle:Math.PI/2.2,maxPolarAngle:Math.PI/2.2})]}),cQ=q.memo(uQ);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -3928,21 +3920,21 @@ 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. -***************************************************************************** */var _b=function(n,e){return _b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},_b(n,e)};function be(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");_b(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var ZC=12,DG="sans-serif",Zl=ZC+"px "+DG,vee=20,gee=100,mee="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function yee(n){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document!="undefined";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const un=ac;var Oee=".",Du="___EC__COMPONENT__CONTAINER___",zG="___EC__EXTENDED_CLASS___";function zo(n){var e={main:"",sub:""};if(n){var t=n.split(Oee);e.main=t[0]||"",e.sub=t[1]||""}return e}function Fee(n){Pi(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal')}function Nee(n){return!!(n&&n[zG])}function nE(n,e){n.$constructor=n,n.extend=function(t){var r=this,i;return kee(r)?i=function(a){be(o,a);function o(){return a.apply(this,arguments)||this}return o}(r):(i=function(){(t.$constructor||r).apply(this,arguments)},eE(i,this)),Oe(i.prototype,t),i[zG]=!0,i.extend=this.extend,i.superCall=zee,i.superApply=Hee,i.superClass=r,i}}function kee(n){return Dt(n)&&/^class\s/.test(Function.prototype.toString.call(n))}function HG(n,e){n.extend=e.extend}var Uee=Math.round(Math.random()*10);function Gee(n){var e=["__\0is_clz",Uee++].join("_");n.prototype[e]=!0,n.isInstance=function(t){return!!(t&&t[e])}}function zee(n,e){for(var t=[],r=2;r=0||a&&nn(a,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var Vee=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Wee=Yf(Vee),Xee=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return Wee(this,e,t)},n}(),VG=function(){function n(e){this.value=e}return n}(),Yee=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new VG(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),jee=function(){function n(e){this._list=new Yee,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,i=this._map,a=null;if(i[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new VG(t),s.key=e,r.insertEntry(s),i[e]=s}return a},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const yg=jee;var Sb=new yg(50);function Jee(n){if(typeof n=="string"){var e=Sb.get(n);return e&&e.image}else return n}function rE(n,e,t,r,i){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var a=Sb.get(n),o={hostEl:t,cb:r,cbPayload:i};return a?(e=a.image,!Dx(e)&&a.pending.push(o)):(e=Kl.loadImage(n,UI,UI),e.__zrImageSrc=n,Sb.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function UI(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;ep&&(p=S,yp&&(p=A,v=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Iu.x=Bu.x=t.x,Iu.y=Ou.y=t.y,Lu.x=Ou.x=t.x+t.width,Lu.y=Bu.y=t.y+t.height,Iu.transform(r),Ou.transform(r),Lu.transform(r),Bu.transform(r),e.x=Cy(Iu.x,Lu.x,Bu.x,Ou.x),e.y=Cy(Iu.y,Lu.y,Bu.y,Ou.y);var l=Ey(Iu.x,Lu.x,Bu.x,Ou.x),u=Ey(Iu.y,Lu.y,Bu.y,Ou.y);e.width=l-e.x,e.height=u-e.y},n}();const cn=$ee;var GI={};function aa(n,e){e=e||Zl;var t=GI[e];t||(t=GI[e]=new yg(500));var r=t.get(n);return r==null&&(r=Kl.measureText(n,e).width,t.put(n,r)),r}function zI(n,e,t,r){var i=aa(n,e),a=Lx(e),o=Dp(0,i,t),s=uf(0,a,r),l=new cn(o,s,i,a);return l}function xg(n,e,t,r){var i=((n||"")+"").split(` -`),a=i.length;if(a===1)return zI(i[0],e,t,r);for(var o=new cn(0,0,0,0),s=0;s=0?parseFloat(n)/100*e:parseFloat(n):n}function c_(n,e,t){var r=e.position||"inside",i=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,c="left",h="top";if(r instanceof Array)l+=co(r[0],t.width),u+=co(r[1],t.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,c="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,c="right",h="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",h="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=h,n}var EA=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function WG(n,e,t,r,i){if(!e)return"";var a=(n+"").split(` -`);i=XG(e,t,r,i);for(var o=0,s=a.length;o=o;l++)s-=o;var u=aa(t,e);return u>s&&(t="",u=0),s=n-u,i.ellipsis=t,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=n,i}function YG(n,e){var t=e.containerWidth,r=e.font,i=e.contentWidth;if(!t)return"";var a=aa(n,r);if(a<=t)return n;for(var o=0;;o++){if(a<=i||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?Qee(n,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(n.length*i/a):0;n=n.substr(0,s),a=aa(n,r)}return n===""&&(n=e.placeholder),n}function Qee(n,e,t,r){for(var i=0,a=0,o=n.length;ad&&u){var p=Math.floor(d/s);h=h.slice(0,p)}if(n&&a&&c!=null)for(var y=XG(c,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&RA(t,n.substring(s,u),e,o),RA(t,l[2],e,o,l[1]),s=EA.lastIndex}si){b>0?(x.tokens=x.tokens.slice(0,b),g(x,A,S),t.lines=t.lines.slice(0,v+1)):t.lines=t.lines.slice(0,v);break e}var B=C.width,k=B==null||B==="auto";if(typeof B=="string"&&B.charAt(B.length-1)==="%")w.percentWidth=B,c.push(w),w.contentWidth=aa(w.text,R);else{if(k){var N=C.backgroundColor,z=N&&N.image;z&&(z=Jee(z),Dx(z)&&(w.width=Math.max(w.width,z.width*D/z.height)))}var X=p&&r!=null?r-A:null;X!=null&&X0&&p+r.accumWidth>r.width&&(c=e.split(` -`),u=!0),r.accumWidth=p}else{var y=jG(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+d,h=y.linesWidths,c=y.lines}}else c=e.split(` -`);for(var g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var ate=Ga(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function ote(n){return ite(n)?!!ate[n]:!0}function jG(n,e,t,r,i){for(var a=[],o=[],s="",l="",u=0,c=0,h=0;ht:i+c+d>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=f,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=f,c=d)):p?(a.push(l),o.push(u),l=f,u=d):(a.push(f),o.push(d));continue}c+=d,p?(l+=f,u+=d):(l&&(s+=l,l="",u=0),s+=f)}return!a.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}function th(n,e){return n==null&&(n=0),e==null&&(e=0),[n,e]}function JG(n,e){return n[0]=e[0],n[1]=e[1],n}function ZG(n){return[n[0],n[1]]}function ste(n,e,t){return n[0]=e,n[1]=t,n}function Ab(n,e,t){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n}function lte(n,e,t,r){return n[0]=e[0]+t[0]*r,n[1]=e[1]+t[1]*r,n}function KG(n,e,t){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n}function aE(n){return Math.sqrt(oE(n))}var ute=aE;function oE(n){return n[0]*n[0]+n[1]*n[1]}var cte=oE;function hte(n,e,t){return n[0]=e[0]*t[0],n[1]=e[1]*t[1],n}function fte(n,e,t){return n[0]=e[0]/t[0],n[1]=e[1]/t[1],n}function dte(n,e){return n[0]*e[0]+n[1]*e[1]}function I0(n,e,t){return n[0]=e[0]*t,n[1]=e[1]*t,n}function qG(n,e){var t=aE(e);return t===0?(n[0]=0,n[1]=0):(n[0]=e[0]/t,n[1]=e[1]/t),n}function h_(n,e){return Math.sqrt((n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1]))}var f_=h_;function $G(n,e){return(n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1])}var Lc=$G;function pte(n,e){return n[0]=-e[0],n[1]=-e[1],n}function L0(n,e,t,r){return n[0]=e[0]+r*(t[0]-e[0]),n[1]=e[1]+r*(t[1]-e[1]),n}function Nr(n,e,t){var r=e[0],i=e[1];return n[0]=t[0]*r+t[2]*i+t[4],n[1]=t[1]*r+t[3]*i+t[5],n}function Bs(n,e,t){return n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n}function Os(n,e,t){return n[0]=Math.max(e[0],t[0]),n[1]=Math.max(e[1],t[1]),n}const vte=Object.freeze(Object.defineProperty({__proto__:null,add:Ab,applyTransform:Nr,clone:ZG,copy:JG,create:th,dist:f_,distSquare:Lc,distance:h_,distanceSquare:$G,div:fte,dot:dte,len:aE,lenSquare:oE,length:ute,lengthSquare:cte,lerp:L0,max:Os,min:Bs,mul:hte,negate:pte,normalize:qG,scale:I0,scaleAndAdd:lte,set:ste,sub:KG},Symbol.toStringTag,{value:"Module"}));var VI=_g,WI=5e-5;function Fu(n){return n>WI||n<-WI}var Nu=[],Hh=[],PA=za(),DA=Math.abs,gte=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return Fu(this.rotation)||Fu(this.x)||Fu(this.y)||Fu(this.scaleX-1)||Fu(this.scaleY-1)||Fu(this.skewX)||Fu(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(VI(r),this.invTransform=null);return}r=r||za(),t?this.getLocalTransform(r):VI(r),e&&(t?Zo(r,e,r):Ix(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Nu);var r=Nu[0]<0?-1:1,i=Nu[1]<0?-1:1,a=((Nu[0]-r)*t+r)/Nu[0]||0,o=((Nu[1]-i)*t+i)/Nu[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||za(),hd(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Zo(Hh,e.invTransform,t),t=Hh);var r=this.originX,i=this.originY;(r||i)&&(PA[4]=r,PA[5]=i,Zo(Hh,t,PA),Hh[4]-=r,Hh[5]-=i,t=Hh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],i=this.invTransform;return i&&Nr(r,r,i),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],i=this.transform;return i&&Nr(r,r,i),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&DA(e[0]-1)>1e-10&&DA(e[3]-1)>1e-10?Math.sqrt(DA(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){QG(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,h=e.y,f=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(r||i||s||l){var p=r+s,y=i+l;t[4]=-p*a-f*y*o,t[5]=-y*o-d*p*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=d*a,t[2]=f*o,u&&au(t,t,u),t[4]+=r+c,t[5]+=i+h,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),ns=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function QG(n,e){for(var t=0;t-d_&&nd_||n<-d_}function br(n,e,t,r,i){var a=1-i;return a*a*(a*n+3*i*e)+i*i*(i*r+3*a*t)}function YI(n,e,t,r,i){var a=1-i;return 3*(((e-n)*a+2*(t-e)*i)*a+(r-t)*i*i)}function p_(n,e,t,r,i,a){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-i,c=s*s-3*o*l,h=s*l-9*o*u,f=l*l-3*s*u,d=0;if(Pl(c)&&Pl(h))if(Pl(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[d++]=p)}else{var y=h*h-4*c*f;if(Pl(y)){var g=h/c,p=-s/o+g,v=-g/2;p>=0&&p<=1&&(a[d++]=p),v>=0&&v<=1&&(a[d++]=v)}else if(y>0){var x=zl(y),S=c*s+1.5*o*(-h+x),A=c*s+1.5*o*(-h-x);S<0?S=-Ry(-S,Py):S=Ry(S,Py),A<0?A=-Ry(-A,Py):A=Ry(A,Py);var p=(-s-(S+A))/(3*o);p>=0&&p<=1&&(a[d++]=p)}else{var b=(2*c*s-3*o*h)/(2*zl(c*c*c)),w=Math.acos(b)/3,C=zl(c),P=Math.cos(w),p=(-s-2*C*P)/(3*o),v=(-s+C*(P+XI*Math.sin(w)))/(3*o),E=(-s+C*(P-XI*Math.sin(w)))/(3*o);p>=0&&p<=1&&(a[d++]=p),v>=0&&v<=1&&(a[d++]=v),E>=0&&E<=1&&(a[d++]=E)}}return d}function rz(n,e,t,r,i){var a=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(Pl(o)){if(nz(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Pl(c))i[0]=-a/(2*o);else if(c>0){var h=zl(c),u=(-a+h)/(2*o),f=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function v_(n,e,t,r,i,a){var o=(e-n)*i+n,s=(t-e)*i+e,l=(r-t)*i+t,u=(s-o)*i+o,c=(l-s)*i+s,h=(c-u)*i+u;a[0]=n,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=r}function mte(n,e,t,r,i,a,o,s,l,u,c){var h,f=.005,d=1/0,p,y,g,v;ko[0]=l,ko[1]=u;for(var x=0;x<1;x+=.05)Ia[0]=br(n,t,i,o,x),Ia[1]=br(e,r,a,s,x),g=Lc(ko,Ia),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Pl(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=zl(c),u=(-o+h)/(2*a),f=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function iz(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function g_(n,e,t,r,i){var a=(e-n)*r+n,o=(t-e)*r+e,s=(o-a)*r+a;i[0]=n,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function xte(n,e,t,r,i,a,o,s,l){var u,c=.005,h=1/0;ko[0]=o,ko[1]=s;for(var f=0;f<1;f+=.05){Ia[0]=ni(n,t,i,f),Ia[1]=ni(e,r,a,f);var d=Lc(ko,Ia);d=0&&d=1?1:p_(0,r,a,1,l,s)&&br(0,i,o,1,s[0])}}}var Mte=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Fr,this.ondestroy=e.ondestroy||Fr,this.onrestart=e.onrestart||Fr,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,i=e-this._startTime-this._pausedTime,a=i/r;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Dt(e)?e:ez[e]||sE(e)},n}();const wte=Mte;var JI={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function so(n){return n=Math.round(n),n<0?0:n>255?255:n}function bte(n){return n=Math.round(n),n<0?0:n>360?360:n}function Rv(n){return n<0?0:n>1?1:n}function IA(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?so(parseFloat(e)/100*255):so(parseInt(e,10))}function Bc(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Rv(parseFloat(e)/100):Rv(parseFloat(e))}function LA(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function Dl(n,e,t){return n+(e-n)*t}function ba(n,e,t,r,i){return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function Mb(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var az=new yg(20),Dy=null;function Vh(n,e){Dy&&Mb(Dy,e),Dy=az.put(n,Dy||e.slice())}function Ei(n,e){if(n){e=e||[];var t=az.get(n);if(t)return Mb(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in JI)return Mb(e,JI[r]),Vh(n,e),e;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){ba(e,0,0,0,1);return}return ba(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Vh(n,e),e}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){ba(e,0,0,0,1);return}return ba(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Vh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===i){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ba(e,+u[0],+u[1],+u[2],1):ba(e,0,0,0,1);c=Bc(u.pop());case"rgb":if(u.length>=3)return ba(e,IA(u[0]),IA(u[1]),IA(u[2]),u.length===3?c:Bc(u[3])),Vh(n,e),e;ba(e,0,0,0,1);return;case"hsla":if(u.length!==4){ba(e,0,0,0,1);return}return u[3]=Bc(u[3]),wb(u,e),Vh(n,e),e;case"hsl":if(u.length!==3){ba(e,0,0,0,1);return}return wb(u,e),Vh(n,e),e;default:return}}ba(e,0,0,0,1)}}function wb(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=Bc(n[1]),i=Bc(n[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return e=e||[],ba(e,so(LA(o,a,t+1/3)*255),so(LA(o,a,t)*255),so(LA(o,a,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function Tte(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,i=Math.min(e,t,r),a=Math.max(e,t,r),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-e)/6+o/2)/o,h=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o;e===a?l=f-h:t===a?l=1/3+c-f:r===a&&(l=2/3+h-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return n[3]!=null&&d.push(n[3]),d}}function bb(n,e){var t=Ei(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return lo(t,t.length===4?"rgba":"rgb")}}function Cte(n){var e=Ei(n);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Zp(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),i=Math.floor(r),a=Math.ceil(r),o=e[i],s=e[a],l=r-i;return t[0]=so(Dl(o[0],s[0],l)),t[1]=so(Dl(o[1],s[1],l)),t[2]=so(Dl(o[2],s[2],l)),t[3]=Rv(Dl(o[3],s[3],l)),t}}var Ete=Zp;function lE(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),i=Math.floor(r),a=Math.ceil(r),o=Ei(e[i]),s=Ei(e[a]),l=r-i,u=lo([so(Dl(o[0],s[0],l)),so(Dl(o[1],s[1],l)),so(Dl(o[2],s[2],l)),Rv(Dl(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:a,value:r}:u}}var Rte=lE;function O0(n,e,t,r){var i=Ei(n);if(n)return i=Tte(i),e!=null&&(i[0]=bte(e)),t!=null&&(i[1]=Bc(t)),r!=null&&(i[2]=Bc(r)),lo(wb(i),"rgba")}function oz(n,e){var t=Ei(n);if(t&&e!=null)return t[3]=Rv(e),lo(t,"rgba")}function lo(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function Pv(n,e){var t=Ei(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function Pte(){return lo([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const Dte=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Zp,fastMapToColor:Ete,lerp:lE,lift:bb,lum:Pv,mapToColor:Rte,modifyAlpha:oz,modifyHSL:O0,parse:Ei,random:Pte,stringify:lo,toHex:Cte},Symbol.toStringTag,{value:"Module"}));var m_=Math.round;function Dv(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=Ei(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e==null?1:e}}var ZI=1e-4;function Il(n){return n-ZI}function Iy(n){return m_(n*1e3)/1e3}function Tb(n){return m_(n*1e4)/1e4}function Ite(n){return"matrix("+Iy(n[0])+","+Iy(n[1])+","+Iy(n[2])+","+Iy(n[3])+","+Tb(n[4])+","+Tb(n[5])+")"}var Lte={left:"start",right:"end",center:"middle",middle:"middle"};function Bte(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function Ote(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function Fte(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function sz(n){return n&&!!n.image}function Nte(n){return n&&!!n.svgElement}function uE(n){return sz(n)||Nte(n)}function lz(n){return n.type==="linear"}function uz(n){return n.type==="radial"}function cz(n){return n&&(n.type==="linear"||n.type==="radial")}function Bx(n){return"url(#"+n+")"}function hz(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function fz(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*Jp,i=Vt(n.scaleX,1),a=Vt(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+m_(o*Jp)+"deg, "+m_(s*Jp)+"deg)"),l.join(" ")}var kte=function(){return un.hasGlobalWindow&&Dt(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer!="undefined"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),Cb=Array.prototype.slice;function Ts(n,e,t){return(e-n)*t+n}function BA(n,e,t,r){for(var i=e.length,a=0;ar?e:n,a=Math.min(t,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)r.length=o;else for(var l=a;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=qI,l=t;if(li(t)){var u=Hte(t);s=u,(u===1&&!En(t[0])||u===2&&!En(t[0][0]))&&(o=!0)}else if(En(t)&&!Ev(t))s=By;else if($e(t))if(!isNaN(+t))s=By;else{var c=Ei(t);c&&(l=c,s=Ip)}else if(Ex(t)){var h=Oe({},l);h.colorStops=Ve(t.colorStops,function(d){return{offset:d.offset,color:Ei(d.color)}}),lz(t)?s=Eb:uz(t)&&(s=Rb),l=h}a===0?this.valType=s:(s!==this.valType||s===qI)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=Dt(r)?r:ez[r]||sE(r)),i.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(y,g){return y.time-g.time});for(var i=this.valType,a=r.length,o=r[a-1],s=this.discrete,l=Oy(i),u=$I(i),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=h;ct);c++);c=f(c-1,s-2)}p=o[c+1],d=o[c]}if(d&&p){this._lastFr=c,this._lastFrP=t;var g=p.percent-d.percent,v=g===0?1:f((t-d.percent)/g,1);p.easingFunc&&(v=p.easingFunc(v));var x=r?this._additiveValue:u?rp:e[l];if((Oy(a)||u)&&!x&&(x=this._additiveValue=[]),this.discrete)e[l]=v<1?d.rawValue:p.rawValue;else if(Oy(a))a===N0?BA(x,d[i],p[i],v):Ute(x,d[i],p[i],v);else if($I(a)){var S=d[i],A=p[i],b=a===Eb;e[l]={type:b?"linear":"radial",x:Ts(S.x,A.x,v),y:Ts(S.y,A.y,v),colorStops:Ve(S.colorStops,function(C,P){var E=A.colorStops[P];return{offset:Ts(C.offset,E.offset,v),color:F0(BA([],C.color,E.color,v))}}),global:A.global},b?(e[l].x2=Ts(S.x2,A.x2,v),e[l].y2=Ts(S.y2,A.y2,v)):e[l].r=Ts(S.r,A.r,v)}else if(u)BA(x,d[i],p[i],v),r||(e[l]=F0(x));else{var w=Ts(d[i],p[i],v);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,i=this._additiveValue;t===By?e[r]=e[r]+i:t===Ip?(Ei(e[r],rp),Ly(rp,rp,i,1),e[r]=F0(rp)):t===N0?Ly(e[r],e[r],i,1):t===dz&&KI(e[r],e[r],i,1)},n}(),cE=function(){function n(e,t,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){QC("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,jt(t),r)},n.prototype.whenWithKeys=function(e,t,r,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Kp(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Kp(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},n}(),Wte=function(){function n(e){e&&(this._$eventProcessor=e)}return n.prototype.on=function(e,t,r,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(i=r,r=t,t=null),!r||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,x=void 0,S=void 0;y&&this.canBeInsideText()?(v=r.insideFill,x=r.insideStroke,(v==null||v==="auto")&&(v=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(v),S=!0)):(v=r.outsideFill,x=r.outsideStroke,(v==null||v==="auto")&&(v=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(v),S=!0)),v=v||"#000",(v!==g.fill||x!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=v,g.stroke=x,g.autoStroke=S,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Uo,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ib:Db},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&Ei(t);r||(r=[255,255,255,1]);for(var i=r[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*i+(a?0:255)*(1-i);return r[3]=1,lo(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},Oe(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(yt(e))for(var r=e,i=jt(r),a=0;a0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(OA,!1,e)},n.prototype.useState=function(e,t,r,i){var a=e===OA,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(nn(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){QC("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,f=this._textGuide;return h&&h.useState(e,t,r,c),f&&f.useState(e,t,r,c),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Uo),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l0,p);var y=this._textContent,g=this._textGuide;y&&y.useStates(e,t,f),g&&g.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Uo)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var i=this.currentStates.slice(),a=nn(i,e),o=nn(i,t)>=0;a>=0?o?i.splice(a,1):i[a]=t:r&&!o&&i.push(t),this.useStates(i)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,i=0;i=0&&a.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,i=r.length,a=[],o=0;o0&&t.during&&a[0].during(function(p,y){t.during(y)});for(var f=0;f0||i.force&&!o.length){var P=void 0,E=void 0,R=void 0;if(s){E={},f&&(P={});for(var A=0;A1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Fy[0]=HA(i)*t+n,Fy[1]=zA(i)*r+e,Ny[0]=HA(a)*t+n,Ny[1]=zA(a)*r+e,u(s,Fy,Ny),c(l,Fy,Ny),i=i%ku,i<0&&(i=i+ku),a=a%ku,a<0&&(a=a+ku),i>a&&!o?a+=ku:ii&&(ky[0]=HA(d)*t+n,ky[1]=zA(d)*r+e,u(s,ky,s),c(l,ky,l))}var Cn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Uu=[],Gu=[],Ro=[],gl=[],Po=[],Do=[],VA=Math.min,WA=Math.max,zu=Math.cos,Hu=Math.sin,Ms=Math.abs,Bb=Math.PI,wl=Bb*2,XA=typeof Float32Array!="undefined",ip=[];function YA(n){var e=Math.round(n/Bb*1e8)/1e8;return e%2*Bb}function ine(n,e){var t=YA(n[0]);t<0&&(t+=wl);var r=t-n[0],i=n[1];i+=r,!e&&i-t>=wl?i=t+wl:e&&t-i>=wl?i=t-wl:!e&&t>i?i=t+(wl-YA(t-i)):e&&t0&&(this._ux=Ms(r/QI/e)||0,this._uy=Ms(r/QI/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Cn.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=Ms(e-this._xi),i=Ms(t-this._yi),a=r>this._ux||i>this._uy;if(this.addData(Cn.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,i,a,o){return this._drawPendingPt(),this.addData(Cn.C,e,t,r,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,i,a,o),this._xi=a,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,i){return this._drawPendingPt(),this.addData(Cn.Q,e,t,r,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,i),this._xi=r,this._yi=i,this},n.prototype.arc=function(e,t,r,i,a,o){this._drawPendingPt(),ip[0]=i,ip[1]=a,ine(ip,o),i=ip[0],a=ip[1];var s=a-i;return this.addData(Cn.A,e,t,r,r,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,i,a,o),this._xi=zu(a)*r+e,this._yi=Hu(a)*r+t,this},n.prototype.arcTo=function(e,t,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,i,a),this},n.prototype.rect=function(e,t,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,i),this.addData(Cn.R,e,t,r,i),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Cn.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&XA&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){Ro[0]=Ro[1]=Po[0]=Po[1]=Number.MAX_VALUE,gl[0]=gl[1]=Do[0]=Do[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,i=0,a=0,o;for(o=0;or||Ms(S)>i||f===t-1)&&(y=Math.sqrt(x*x+S*S),a=g,o=v);break}case Cn.C:{var A=e[f++],b=e[f++],g=e[f++],v=e[f++],w=e[f++],C=e[f++];y=yte(a,o,A,b,g,v,w,C,10),a=w,o=C;break}case Cn.Q:{var A=e[f++],b=e[f++],g=e[f++],v=e[f++];y=Ste(a,o,A,b,g,v,10),a=g,o=v;break}case Cn.A:var P=e[f++],E=e[f++],R=e[f++],D=e[f++],B=e[f++],k=e[f++],N=k+B;f+=1,e[f++],p&&(s=zu(B)*R+P,l=Hu(B)*D+E),y=WA(R,D)*VA(wl,Math.abs(k)),a=zu(N)*R+P,o=Hu(N)*D+E;break;case Cn.R:{s=a=e[f++],l=o=e[f++];var z=e[f++],X=e[f++];y=z*2+X*2;break}case Cn.Z:{var x=s-a,S=l-o;y=Math.sqrt(x*x+S*S),a=s,o=l;break}}y>=0&&(u[h++]=y,c+=y)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,h,f,d=t<1,p,y,g=0,v=0,x,S=0,A,b;if(!(d&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,y=this._pathLen,x=t*y,!x)))e:for(var w=0;w0&&(e.lineTo(A,b),S=0),C){case Cn.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case Cn.L:{h=r[w++],f=r[w++];var E=Ms(h-u),R=Ms(f-c);if(E>i||R>a){if(d){var D=p[v++];if(g+D>x){var B=(x-g)/D;e.lineTo(u*(1-B)+h*B,c*(1-B)+f*B);break e}g+=D}e.lineTo(h,f),u=h,c=f,S=0}else{var k=E*E+R*R;k>S&&(A=h,b=f,S=k)}break}case Cn.C:{var N=r[w++],z=r[w++],X=r[w++],ne=r[w++],H=r[w++],K=r[w++];if(d){var D=p[v++];if(g+D>x){var B=(x-g)/D;v_(u,N,X,H,B,Uu),v_(c,z,ne,K,B,Gu),e.bezierCurveTo(Uu[1],Gu[1],Uu[2],Gu[2],Uu[3],Gu[3]);break e}g+=D}e.bezierCurveTo(N,z,X,ne,H,K),u=H,c=K;break}case Cn.Q:{var N=r[w++],z=r[w++],X=r[w++],ne=r[w++];if(d){var D=p[v++];if(g+D>x){var B=(x-g)/D;g_(u,N,X,B,Uu),g_(c,z,ne,B,Gu),e.quadraticCurveTo(Uu[1],Gu[1],Uu[2],Gu[2]);break e}g+=D}e.quadraticCurveTo(N,z,X,ne),u=X,c=ne;break}case Cn.A:var Q=r[w++],le=r[w++],he=r[w++],re=r[w++],ce=r[w++],_e=r[w++],ge=r[w++],Be=!r[w++],Ye=he>re?he:re,Ke=Ms(he-re)>.001,Ne=ce+_e,Ie=!1;if(d){var D=p[v++];g+D>x&&(Ne=ce+_e*(x-g)/D,Ie=!0),g+=D}if(Ke&&e.ellipse?e.ellipse(Q,le,he,re,ge,ce,Ne,Be):e.arc(Q,le,Ye,ce,Ne,Be),Ie)break e;P&&(s=zu(ce)*he+Q,l=Hu(ce)*re+le),u=zu(Ne)*he+Q,c=Hu(Ne)*re+le;break;case Cn.R:s=u=r[w],l=c=r[w+1],h=r[w++],f=r[w++];var Z=r[w++],Se=r[w++];if(d){var D=p[v++];if(g+D>x){var ve=x-g;e.moveTo(h,f),e.lineTo(h+VA(ve,Z),f),ve-=Z,ve>0&&e.lineTo(h+Z,f+VA(ve,Se)),ve-=Se,ve>0&&e.lineTo(h+WA(Z-ve,0),f+Se),ve-=Z,ve>0&&e.lineTo(h,f+WA(Se-ve,0));break e}g+=D}e.rect(h,f,Z,Se);break;case Cn.Z:if(d){var D=p[v++];if(g+D>x){var B=(x-g)/D;e.lineTo(u*(1-B)+s*B,c*(1-B)+l*B);break e}g+=D}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=Cn,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();const Ws=ane;function Xh(n,e,t,r,i,a,o){if(i===0)return!1;var s=i,l=0,u=n;if(o>e+s&&o>r+s||on+s&&a>t+s||ae+h&&c>r+h&&c>a+h&&c>s+h||cn+h&&u>t+h&&u>i+h&&u>o+h||ue+u&&l>r+u&&l>a+u||ln+u&&s>t+u&&s>i+u||st||c+ui&&(i+=ap);var f=Math.atan2(l,s);return f<0&&(f+=ap),f>=r&&f<=i||f+ap>=r&&f+ap<=i}function Cs(n,e,t,r,i,a){if(a>e&&a>r||ai?s:0}var ml=Ws.CMD,Vu=Math.PI*2,une=1e-4;function cne(n,e){return Math.abs(n-e)e&&u>r&&u>a&&u>s||u1&&hne(),d=br(e,r,a,s,Pa[0]),f>1&&(p=br(e,r,a,s,Pa[1]))),f===2?ge&&s>r&&s>a||s=0&&u<=1){for(var c=0,h=ni(e,r,a,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);xi[0]=-l,xi[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Vu-1e-4){r=0,i=Vu;var c=a?1:-1;return o>=xi[0]+n&&o<=xi[1]+n?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Vu,i+=Vu);for(var f=0,d=0;d<2;d++){var p=xi[d];if(p+n>o){var y=Math.atan2(s,p),c=a?1:-1;y<0&&(y=Vu+y),(y>=r&&y<=i||y+Vu>=r&&y+Vu<=i)&&(y>Math.PI/2&&y1&&(t||(s+=Cs(l,u,c,h,r,i))),g&&(l=a[p],u=a[p+1],c=l,h=u),y){case ml.M:c=a[p++],h=a[p++],l=c,u=h;break;case ml.L:if(t){if(Xh(l,u,a[p],a[p+1],e,r,i))return!0}else s+=Cs(l,u,a[p],a[p+1],r,i)||0;l=a[p++],u=a[p++];break;case ml.C:if(t){if(one(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],e,r,i))return!0}else s+=fne(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],r,i)||0;l=a[p++],u=a[p++];break;case ml.Q:if(t){if(sne(l,u,a[p++],a[p++],a[p],a[p+1],e,r,i))return!0}else s+=dne(l,u,a[p++],a[p++],a[p],a[p+1],r,i)||0;l=a[p++],u=a[p++];break;case ml.A:var v=a[p++],x=a[p++],S=a[p++],A=a[p++],b=a[p++],w=a[p++];p+=1;var C=!!(1-a[p++]);f=Math.cos(b)*S+v,d=Math.sin(b)*A+x,g?(c=f,h=d):s+=Cs(l,u,f,d,r,i);var P=(r-v)*A/S+v;if(t){if(lne(v,x,A,b,b+w,C,e,P,i))return!0}else s+=pne(v,x,A,b,b+w,C,P,i);l=Math.cos(b+w)*S+v,u=Math.sin(b+w)*A+x;break;case ml.R:c=l=a[p++],h=u=a[p++];var E=a[p++],R=a[p++];if(f=c+E,d=h+R,t){if(Xh(c,h,f,h,e,r,i)||Xh(f,h,f,d,e,r,i)||Xh(f,d,c,d,e,r,i)||Xh(c,d,c,h,e,r,i))return!0}else s+=Cs(f,h,f,d,r,i),s+=Cs(c,d,c,h,r,i);break;case ml.Z:if(t){if(Xh(l,u,c,h,e,r,i))return!0}else s+=Cs(l,u,c,h,r,i);l=c,u=h;break}}return!t&&!cne(u,h)&&(s+=Cs(l,u,c,h,r,i)||0),s!==0}function vne(n,e,t){return mz(n,0,!1,e,t)}function gne(n,e,t,r){return mz(n,e,!0,t,r)}var y_=Pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Oc),mne={style:Pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ox.style)},jA=ns.concat(["invisible","culling","z","z2","zlevel","parent"]),yne=function(n){be(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Db:r>.2?Xte:Ib}else if(t)return Ib}return Db},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if($e(r)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Pv(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,i=!t;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&cf)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c==null?4:c)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),a=this.getBoundingRect(),o=this.style;if(t=i[0],r=i[1],a.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),gne(s,l/u,t,r)))return!0}if(this.hasFill())return vne(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=cf,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=r:Oe(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&cf)},e.prototype.createStyle=function(t){return mg(y_,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=Oe({},this.shape))},e.prototype._applyStateObj=function(t,r,i,a,o,s){n.prototype._applyStateObj.call(this,t,r,i,a,o,s);var l=!(r&&a),u;if(r&&r.shape?o?a?u=r.shape:(u=Oe({},i.shape),Oe(u,r.shape)):(u=Oe({},a?this.shape:i.shape),Oe(u,r.shape)):l&&(u=i.shape),u)if(o){this.shape=Oe({},this.shape);for(var c={},h=jt(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return mg(_ne,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var i=xg(r,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var a=t.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Vs);yz.prototype.type="tspan";const Iv=yz;var xne=Pt({x:0,y:0},Oc),Sne={style:Pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ox.style)};function Ane(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var _z=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return mg(xne,t)},e.prototype._getSize=function(t){var r=this.style,i=r[t];if(i!=null)return i;var a=Ane(r.image)?r.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Sne},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new cn(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Vs);_z.prototype.type="image";const Ii=_z;function Mne(n,e){var t=e.x,r=e.y,i=e.width,a=e.height,o=e.r,s,l,u,c;i<0&&(t=t+i,i=-i),a<0&&(r=r+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+c>i&&(h=u+c,u*=i/h,c*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+c>a&&(h=s+c,s*=a/h,c*=a/h),n.moveTo(t+s,r),n.lineTo(t+i-l,r),l!==0&&n.arc(t+i-l,r+l,l,-Math.PI/2,0),n.lineTo(t+i,r+a-u),u!==0&&n.arc(t+i-u,r+a-u,u,0,Math.PI/2),n.lineTo(t+c,r+a),c!==0&&n.arc(t+c,r+a-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var xf=Math.round;function xz(n,e,t){if(e){var r=e.x1,i=e.x2,a=e.y1,o=e.y2;n.x1=r,n.x2=i,n.y1=a,n.y2=o;var s=t&&t.lineWidth;return s&&(xf(r*2)===xf(i*2)&&(n.x1=n.x2=Ac(r,s,!0)),xf(a*2)===xf(o*2)&&(n.y1=n.y2=Ac(a,s,!0))),n}}function Sz(n,e,t){if(e){var r=e.x,i=e.y,a=e.width,o=e.height;n.x=r,n.y=i,n.width=a,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=Ac(r,s,!0),n.y=Ac(i,s,!0),n.width=Math.max(Ac(r+a,s,!1)-n.x,a===0?0:1),n.height=Math.max(Ac(i+o,s,!1)-n.y,o===0?0:1)),n}}function Ac(n,e,t){if(!e)return n;var r=xf(n*2);return(r+xf(e))%2===0?r/2:(r+(t?1:-1))/2}var wne=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),bne={},Az=function(n){be(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new wne},e.prototype.buildPath=function(t,r){var i,a,o,s;if(this.subPixelOptimize){var l=Sz(bne,r,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,a=r.y,o=r.width,s=r.height;r.r?Mne(t,r):t.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Tn);Az.prototype.type="rect";const xn=Az;var aL={fill:"#000"},oL=2,Tne={style:Pt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ox.style)},Mz=function(n){be(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=aL,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,B=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),k=o.calculatedLineHeight,N=0;N=0&&(N=w[k],N.align==="right");)this._placeToken(N,t,P,v,B,"right",S),E-=N.width,B-=N.width,k--;for(D+=(a-(D-g)-(x-B)-E)/2;R<=k;)N=w[R],this._placeToken(N,t,P,v,D+N.width/2,"center",S),D+=N.width,R++;v+=P}},e.prototype._placeToken=function(t,r,i,a,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,h=a+i/2;c==="top"?h=a+t.height/2:c==="bottom"&&(h=a+i-t.height/2);var f=!t.isLineHolder&&JA(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var d=!!u.backgroundColor,p=t.textPadding;p&&(o=fL(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var y=this._getOrCreateChild(Iv),g=y.createStyle();y.useStyle(g);var v=this._defaultStyle,x=!1,S=0,A=hL("fill"in u?u.fill:"fill"in r?r.fill:(x=!0,v.fill)),b=cL("stroke"in u?u.stroke:"stroke"in r?r.stroke:!d&&!l&&(!v.autoStroke||x)?(S=oL,v.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,w&&(g.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,g.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||Zl,g.opacity=Tf(u.opacity,r.opacity,1),lL(g,u),b&&(g.lineWidth=Tf(u.lineWidth,r.lineWidth,S),g.lineDash=Vt(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=b),A&&(g.fill=A);var C=t.contentWidth,P=t.contentHeight;y.setBoundingRect(new cn(Dp(g.x,C,g.textAlign),uf(g.y,P,g.textBaseline),C,P))},e.prototype._renderBackground=function(t,r,i,a,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,f=l&&!h,d=t.borderRadius,p=this,y,g;if(f||t.lineHeight||u&&c){y=this._getOrCreateChild(xn),y.useStyle(y.createStyle()),y.style.fill=null;var v=y.shape;v.x=i,v.y=a,v.width=o,v.height=s,v.r=d,y.dirtyShape()}if(f){var x=y.style;x.fill=l||null,x.fillOpacity=Vt(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Ii),g.onload=function(){p.dirtyStyle()};var S=g.style;S.image=l.image,S.x=i,S.y=a,S.width=o,S.height=s}if(u&&c){var x=y.style;x.lineWidth=u,x.stroke=c,x.strokeOpacity=Vt(t.strokeOpacity,1),x.lineDash=t.borderDash,x.lineDashOffset=t.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2)}var A=(y||g).style;A.shadowBlur=t.shadowBlur||0,A.shadowColor=t.shadowColor||"transparent",A.shadowOffsetX=t.shadowOffsetX||0,A.shadowOffsetY=t.shadowOffsetY||0,A.opacity=Tf(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return bz(t)&&(r=[t.fontStyle,t.fontWeight,wz(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Ua(r)||t.textFont||t.font},e}(Vs),Cne={left:!0,right:1,center:1},Ene={top:1,bottom:1,middle:1},sL=["fontStyle","fontWeight","fontSize","fontFamily"];function wz(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?ZC+"px":n+"px"}function lL(n,e){for(var t=0;t0){if(n<=i)return o;if(n>=a)return s}else{if(n>=i)return o;if(n<=a)return s}else{if(n===i)return o;if(n===a)return s}return(n-i)/l*u+o}function Ft(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return $e(n)?Pne(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function cr(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),Tz),n=(+n).toFixed(e),t?n:+n}function Ho(n){return n.sort(function(e,t){return e-t}),n}function Vo(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return Cz(n)}function Cz(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,i=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-r)}function fE(n,e){var t=Math.log,r=Math.LN10,i=Math.floor(t(n[1]-n[0])/r),a=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Dne(n,e,t){if(!n[e])return 0;var r=Ez(n,t);return r[e]||0}function Ez(n,e){var t=Ga(n,function(d,p){return d+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),i=Ve(n,function(d){return(isNaN(d)?0:d)/t*r*100}),a=r*100,o=Ve(i,function(d){return Math.floor(d)}),s=Ga(o,function(d,p){return d+p},0),l=Ve(i,function(d,p){return d-o[p]});su&&(u=l[h],c=h);++o[c],l[c]=0,++s}return Ve(o,function(d){return d/r})}function Ine(n,e){var t=Math.max(Vo(n),Vo(e)),r=n+e;return t>Tz?r:cr(r,t)}var Lne=9007199254740991;function dE(n){var e=Math.PI*2;return(n%e+e)%e}function Lv(n){return n>-pL&&n=10&&e++,e}function pE(n,e){var t=Fx(n),r=Math.pow(10,t),i=n/r,a;return e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,n=a*r,t>=-20?+n.toFixed(t<0?-t:0):n}function One(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),i=+n[r-1],a=t-r;return a?i+a*(n[r]-i):i}function Ob(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0,a=!1;if(n instanceof Tn){var o=Nz(n),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Yh(s)||Yh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(a=!0,r=Oe({},r),u=Oe({},u),u.fill=s):!Yh(u.fill)&&Yh(s)?(a=!0,r=Oe({},r),u=Oe({},u),u.fill=SL(s)):!Yh(u.stroke)&&Yh(l)&&(a||(r=Oe({},r),u=Oe({},u)),u.stroke=SL(l)),r.style=u}}if(r&&r.z2==null){a||(r=Oe({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c!=null?c:kz)}return r}function ire(n,e,t){if(t&&t.z2==null){t=Oe({},t);var r=n.z2SelectLift;t.z2=n.z2+(r!=null?r:Qne)}return t}function are(n,e,t){var r=nn(n.currentStates,e)>=0,i=n.style.opacity,a=r?null:nre(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=Oe({},t),o=Oe({opacity:r?i:a.opacity*.1},o),t.style=o),t}function ZA(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return rre(this,n,e,t);if(n==="blur")return are(this,n,t);if(n==="select")return ire(this,n,t)}return t}function SE(n){n.stateProxy=ZA;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=ZA),t&&(t.stateProxy=ZA)}function ML(n,e){!Xz(n,e)&&!n.__highByOuter&&js(n,Uz)}function wL(n,e){!Xz(n,e)&&!n.__highByOuter&&js(n,Gz)}function jf(n,e){n.__highByOuter|=1<<(e||0),js(n,Uz)}function Jf(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&js(n,Gz)}function ore(n){js(n,xE)}function Hz(n){js(n,zz)}function Vz(n){js(n,ere)}function Wz(n){js(n,tre)}function Xz(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function Yz(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(i,a){var o=yE(a),s=i==="series",l=s?n.getViewOfSeriesModel(a):n.getViewOfComponentModel(a);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){zz(u)}),s&&t.push(a)),o.isBlured=!1}),U(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function Nb(n,e,t,r){var i=r.getModel();t=t||"coordinateSystem";function a(u,c){for(var h=0;h0){var s={dataIndex:o,seriesIndex:t.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Hl(n,e,t){ME(n,!0),js(n,SE),dre(n,e,t)}function fre(n){ME(n,!1)}function ql(n,e,t,r){r?fre(n):Hl(n,e,t)}function dre(n,e,t){var r=rn(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var TL=["emphasis","blur","select"],pre={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Zf(n,e,t,r){t=t||"itemStyle";for(var i=0;i1&&(o*=KA(p),s*=KA(p));var y=(i===a?-1:1)*KA((o*o*(s*s)-o*o*(d*d)-s*s*(f*f))/(o*o*(d*d)+s*s*(f*f)))||0,g=y*o*d/s,v=y*-s*f/o,x=(n+t)/2+zy(h)*g-Gy(h)*v,S=(e+r)/2+Gy(h)*g+zy(h)*v,A=PL([1,0],[(f-g)/o,(d-v)/s]),b=[(f-g)/o,(d-v)/s],w=[(-1*f-g)/o,(-1*d-v)/s],C=PL(b,w);if(zb(b,w)<=-1&&(C=op),zb(b,w)>=1&&(C=0),C<0){var P=Math.round(C/op*1e6)/1e6;C=op*2+P%2*op}c.addData(u,x,S,o,s,A,C,h,a)}var Sre=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Are=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Mre(n){var e=new Ws;if(!n)return e;var t=0,r=0,i=t,a=r,o,s=Ws.CMD,l=n.match(Sre);if(!l)return e;for(var u=0;u=0&&(i.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var i=nn(this._children,t);return i>=0&&this.replaceAt(r,i),this},e.prototype.replaceAt=function(t,r){var i=this._children,a=i[r];if(t&&t!==this&&t.parent!==this&&t!==a){i[r]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,i=this._children,a=nn(i,t);return a<0?this:(i.splice(a,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,i=0;iN*N+z*z&&(P=R,E=D),{cx:P,cy:E,x0:-c,y0:-h,x1:P*(i/b-1),y1:E*(i/b-1)}}function Pre(n){var e;if(He(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function Dre(n,e){var t,r=Bp(e.r,0),i=Bp(e.r0||0,0),a=r>0,o=i>0;if(!(!a&&!o)){if(a||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,h=e.cy,f=!!e.clockwise,d=IL(u-l),p=d>qA&&d%qA;if(p>eo&&(d=p),!(r>eo))n.moveTo(c,h);else if(d>qA-eo)n.moveTo(c+r*Jh(l),h+r*Wu(l)),n.arc(c,h,r,l,u,!f),i>eo&&(n.moveTo(c+i*Jh(u),h+i*Wu(u)),n.arc(c,h,i,u,l,f));else{var y=void 0,g=void 0,v=void 0,x=void 0,S=void 0,A=void 0,b=void 0,w=void 0,C=void 0,P=void 0,E=void 0,R=void 0,D=void 0,B=void 0,k=void 0,N=void 0,z=r*Jh(l),X=r*Wu(l),ne=i*Jh(u),H=i*Wu(u),K=d>eo;if(K){var Q=e.cornerRadius;Q&&(t=Pre(Q),y=t[0],g=t[1],v=t[2],x=t[3]);var le=IL(r-i)/2;if(S=Io(le,v),A=Io(le,x),b=Io(le,y),w=Io(le,g),E=C=Bp(S,A),R=P=Bp(b,w),(C>eo||P>eo)&&(D=r*Jh(u),B=r*Wu(u),k=i*Jh(l),N=i*Wu(l),deo){var Ke=Io(v,E),Ne=Io(x,E),Ie=Hy(k,N,z,X,r,Ke,f),Z=Hy(D,B,ne,H,r,Ne,f);n.moveTo(c+Ie.cx+Ie.x0,h+Ie.cy+Ie.y0),E0&&n.arc(c+Ie.cx,h+Ie.cy,Ke,Qr(Ie.y0,Ie.x0),Qr(Ie.y1,Ie.x1),!f),n.arc(c,h,r,Qr(Ie.cy+Ie.y1,Ie.cx+Ie.x1),Qr(Z.cy+Z.y1,Z.cx+Z.x1),!f),Ne>0&&n.arc(c+Z.cx,h+Z.cy,Ne,Qr(Z.y1,Z.x1),Qr(Z.y0,Z.x0),!f))}else n.moveTo(c+z,h+X),n.arc(c,h,r,l,u,!f);if(!(i>eo)||!K)n.lineTo(c+ne,h+H);else if(R>eo){var Ke=Io(y,R),Ne=Io(g,R),Ie=Hy(ne,H,D,B,i,-Ne,f),Z=Hy(z,X,k,N,i,-Ke,f);n.lineTo(c+Ie.cx+Ie.x0,h+Ie.cy+Ie.y0),R0&&n.arc(c+Ie.cx,h+Ie.cy,Ne,Qr(Ie.y0,Ie.x0),Qr(Ie.y1,Ie.x1),!f),n.arc(c,h,i,Qr(Ie.cy+Ie.y1,Ie.cx+Ie.x1),Qr(Z.cy+Z.y1,Z.cx+Z.x1),f),Ke>0&&n.arc(c+Z.cx,h+Z.cy,Ke,Qr(Z.y1,Z.x1),Qr(Z.y0,Z.x0),!f))}else n.lineTo(c+ne,h+H),n.arc(c,h,i,u,l,f)}n.closePath()}}}var Ire=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),tH=function(n){be(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Ire},e.prototype.buildPath=function(t,r){Dre(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Tn);tH.prototype.type="sector";const os=tH;var Lre=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),nH=function(n){be(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Lre},e.prototype.buildPath=function(t,r){var i=r.cx,a=r.cy,o=Math.PI*2;t.moveTo(i+r.r,a),t.arc(i,a,r.r,0,o,!1),t.moveTo(i+r.r0,a),t.arc(i,a,r.r0,0,o,!0)},e}(Tn);nH.prototype.type="ring";const Ag=nH;function Bre(n,e,t,r){var i=[],a=[],o=[],s=[],l,u,c,h;if(r){c=[1/0,1/0],h=[-1/0,-1/0];for(var f=0,d=n.length;f=2){if(r){var a=Bre(i,r,t,e.smoothConstraint);n.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sYu[1]){if(s=!1,a)return s;var c=Math.abs(Yu[0]-Xu[1]),h=Math.abs(Xu[0]-Yu[1]);Math.min(c,h)>i.len()&&(c0){var h=c.duration,f=c.delay,d=c.easing,p={duration:h,delay:f||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function hr(n,e,t,r,i,a){CE("update",n,e,t,r,i,a)}function Ri(n,e,t,r,i,a){CE("enter",n,e,t,r,i,a)}function nv(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function OL(n){return!n.isGroup}function $re(n){return n.shape!=null}function Xx(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){OL(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return $re(o)&&(s.shape=Oe({},o.shape)),s}var a=r(n);e.traverse(function(o){if(OL(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),hr(o,l,t,rn(o).dataIndex)}}})}function DE(n,e){return Ve(n,function(t){var r=t[0];r=M_(r,e.x),r=w_(r,e.x+e.width);var i=t[1];return i=M_(i,e.y),i=w_(i,e.y+e.height),[r,i]})}function pH(n,e){var t=M_(n.x,e.x),r=w_(n.x+n.width,e.x+e.width),i=M_(n.y,e.y),a=w_(n.y+n.height,e.y+e.height);if(r>=t&&a>=i)return{x:t,y:i,width:r-t,height:a-i}}function dd(n,e,t){var r=Oe({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(i.image=n.slice(8),Pt(i,t),new Ii(r)):Vx(n.replace("path://",""),r,t,"center")}function Qre(n,e,t,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=$A(d,p,c,h)/f;return!(g<0||g>1)}function $A(n,e,t,r){return n*r-t*e}function eie(n){return n<=1e-6&&n>=-1e-6}function pd(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,i=$e(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:r,$vars:["name"]};s[a+"Index"]=o;var l=n.formatterParamsExtra;l&&U(jt(l),function(c){kt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=rn(n.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:r,option:Pt({content:r,formatterParams:s},i)}}function FL(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Yx(n,e){if(n)if(He(n))for(var t=0;t1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},i={},a=[],o=[];this._initIndexMap(e,r,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(h===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(h===1&&f===1)this._update&&this._update(c,u),i[l]=null;else if(h>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(h>1)for(var d=0;d1)for(var s=0;sy&&(y=S)}d[0]=p,d[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};YL=(e={},e[Yi+"_"+Us]={pure:!0,appendData:a},e[Yi+"_"+vd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[mo]={pure:!0,appendData:a},e[ls]={pure:!0,appendData:function(o){var s=this._data;U(o,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},e[Xa]={appendData:a},e[Wl]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;si?-this._resultLT:0},n}(),qx="undefined",Rie=typeof Uint32Array===qx?Array:Uint32Array,Pie=typeof Uint16Array===qx?Array:Uint16Array,PH=typeof Int32Array===qx?Array:Int32Array,KL=typeof Float64Array===qx?Array:Float64Array,DH={float:KL,int:PH,ordinal:Array,number:Array,time:KL},rM;function lp(n){return n>65535?Rie:Pie}function Zh(){return[1/0,-1/0]}function Die(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function qL(n,e,t,r,i){var a=DH[t||"float"];if(i){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new a(r),u=0;ug[1]&&(g[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Ve(o,function(x){return x.property}),c=0;cv[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)a=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var i=this._chunks,a=i[e],o=[];if(!a)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,h=this.count();c=0&&l<0)&&(s=p,l=d,u=0),d===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,i=this._count;if(r===Array){e=new r(i);for(var a=0;a=h&&x<=f||isNaN(x))&&(l[u++]=y),y++}p=!0}else if(a===2){for(var g=d[i[0]],S=d[i[1]],A=e[i[1]][0],b=e[i[1]][1],v=0;v=h&&x<=f||isNaN(x))&&(w>=A&&w<=b||isNaN(w))&&(l[u++]=y),y++}p=!0}}if(!p)if(a===1)for(var v=0;v=h&&x<=f||isNaN(x))&&(l[u++]=C)}else for(var v=0;ve[R][1])&&(P=!1)}P&&(l[u++]=t.getRawIndex(v))}return uv[1]&&(v[1]=g)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),i=r._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,h,f,d=new(lp(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var p=1;pc&&(c=h,f=A)}D>0&&Dc-p&&(l=c-p,s.length=l);for(var y=0;yh[1]&&(h[1]=v),f[d++]=x}return a._count=d,a._indices=f,a._updateGetRawIdx(),a},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,i=this._chunks,a=0,o=this.count();al&&(l=h)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],i=this._chunks,a=0;a=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,i,a){return z0(t[a],this._dimensions[a])}rM={arrayRows:e,objectRows:function(t,r,i,a){return z0(t[r],this._dimensions[a])},keyedColumns:e,original:function(t,r,i,a){var o=t&&(t.value==null?t:t.value);return z0(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,r,i,a){return t[a]}}}(),n}(),Iie=Ln(),Lie={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},IH=function(){function n(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=OH(this.source)))},n.prototype.getSourceDimensionIndex=function(e){return Vt(this._dimNameMap.get(e),-1)},n.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},n.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=bH(this.source),r=!FH(e),i="",a=[],o=0,s=0;o30}var up=yt,yl=Ve,Bie=typeof Int32Array=="undefined"?Array:Int32Array,Oie="e\0\0",$L=-1,Fie=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Nie=["_approximateExtent"],QL,Xy,cp,hp,iM,Yy,aM,kie=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,i=!1;LH(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,r=e),r=r||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Xa;if(l&&!i.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,i=r[e];i||(i=r[e]={});var a=i[t];return a==null&&(a=this.getVisual(t),He(a)?a=a.slice():up(a)&&(a=Oe({},a)),i[t]=a),a},n.prototype.setItemVisual=function(e,t,r){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,up(t)?Oe(i,t):i[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){up(e)?Oe(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?Oe(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;$ne(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){U(this._graphicEls,function(r,i){r&&e&&e.call(t,r,i)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:yl(this.dimensions,this._getDimInfo,this),this.hostModel)),iM(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];Dt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=r.apply(this,arguments);return t.apply(this,[i].concat(Rx(arguments)))})},n.internalField=function(){QL=function(e){var t=e._invertedIndicesMap;U(t,function(r,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){r=t[i]=new Bie(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[t]=l}}}(),n}();const $x=kie;function Uie(n,e){return NE(n,e).dimensions}function NE(n,e){BE(n)||(n=OE(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],i=gt(),a=[],o=zie(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&FH(o),l=r===n.dimensionsDefine,u=l?OH(n):BH(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var h=gt(c),f=new PH(o),d=0;d0&&(r.name=i+(a-1)),a++,e.set(i,a)}}function zie(n,e,t,r){var i=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return U(e,function(a){var o;yt(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Hie(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var oM={},Vie=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(e,t){var r=[];U(oM,function(i,a){var o=i.create(e,t);r=r.concat(o||[])}),this._coordinateSystems=r},n.prototype.update=function(e,t){U(this._coordinateSystems,function(r){r.update&&r.update(e,t)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(e,t){oM[e]=t},n.get=function(e){return oM[e]},n}();const Qx=Vie;var Wie=function(){function n(e){this.coordSysDims=[],this.axisMap=gt(),this.categoryAxisMap=gt(),this.coordSysName=e}return n}();function Xie(n){var e=n.get("coordinateSystem"),t=new Wie(e),r=Yie[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var Yie={cartesian2d:function(n,e,t,r){var i=n.getReferringComponents("xAxis",Cr).models[0],a=n.getReferringComponents("yAxis",Cr).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",a),Kh(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Kh(a)&&(r.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var i=n.getReferringComponents("singleAxis",Cr).models[0];e.coordSysDims=["single"],t.set("single",i),Kh(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var i=n.getReferringComponents("polar",Cr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),Kh(a)&&(r.set("radius",a),e.firstCategoryDimIndex=0),Kh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var i=n.ecModel,a=i.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();U(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Kh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Kh(n){return n.get("type")==="category"}function NH(n,e,t){t=t||{};var r=t.byIndex,i=t.stackedCoordDimension,a,o,s;jie(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,h,f;if(U(a,function(x,S){$e(x)&&(a[S]=x={name:x}),l&&!x.isExtraCoord&&(!r&&!u&&x.ordinalMeta&&(u=x),!c&&x.type!=="ordinal"&&x.type!=="time"&&(!i||i===x.coordDim)&&(c=x))}),c&&!r&&!u&&(r=!0),c){h="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,p=c.type,y=0;U(a,function(x){x.coordDim===d&&y++});var g={name:h,coordDim:d,coordDimIndex:y,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},v={name:f,coordDim:f,coordDimIndex:y+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,p),v.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(v)):(a.push(g),a.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:h}}function jie(n){return!LH(n.schema)}function $l(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function kH(n,e){return $l(n,e)?n.getCalculationInfo("stackResultDimension"):e}function Jie(n,e){var t=n.get("coordinateSystem"),r=Qx.get(t),i;return e&&e.coordSysDims&&(i=Ve(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=bie(l)}return o})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function Zie(n,e,t){var r,i;return t&&U(n,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(n[r].otherDims.itemName=0),r}function eS(n,e,t){t=t||{};var r=e.getSourceManager(),i,a=!1;n?(a=!0,i=OE(n)):(i=r.getSource(),a=i.sourceFormat===Xa);var o=Xie(e),s=Jie(e,o),l=t.useEncodeDefaulter,u=Dt(l)?l:l?ln(vie,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=NE(i,c),f=Zie(h.dimensions,t.createInvertedIndices,o),d=a?null:r.getSharedDataStore(h),p=NH(e,{schema:h,store:d}),y=new $x(h,e);y.setCalculationInfo(p);var g=f!=null&&Kie(i)?function(v,x,S,A){return A===f?S:this.defaultDimValueGetter(v,x,S,A)}:null;return y.hasItemOption=!1,y.initData(a?i:d,null,g),y}function Kie(n){if(n.sourceFormat===Xa){var e=qie(n.data||[]);return!He(fd(e))}}function qie(n){for(var e=0;e=0&&s.push(l)}),s}}function ou(n,e){return Ut(Ut({},n,!0),e,!0)}var tae=Math.log(2);function Xb(n,e,t,r,i,a){var o=r+"-"+i,s=n.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function iae(n,e,t){for(var r=t?"invTrans":"trans",i=e[r],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),h=2*u,f=c.left,d=c.top;o.push(f,d),l=l&&a&&f===a[h]&&d===a[h+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[r]=t?eB(s,o):eB(o,s))}function UH(n){return n.nodeName.toUpperCase()==="CANVAS"}var aae=/([&<>"'])/g,oae={"&":"&","<":"<",">":">",'"':""","'":"'"};function wi(n){return n==null?"":(n+"").replace(aae,function(e,t){return oae[t]})}const sae={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},lae={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var b_="ZH",kE="EN",Uv=kE,H0={},UE={},GH=un.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(b_)>-1?b_:Uv}():Uv;function GE(n,e){n=n.toUpperCase(),UE[n]=new Kn(e),H0[n]=e}function uae(n){if($e(n)){var e=H0[n.toUpperCase()]||{};return n===b_||n===kE?Mt(e):Ut(Mt(e),Mt(H0[Uv]),!1)}else return Ut(Mt(n),Mt(H0[Uv]),!1)}function jb(n){return UE[n]}function cae(){return UE[Uv]}GE(kE,sae);GE(b_,lae);var zE=1e3,HE=zE*60,rv=HE*60,Na=rv*24,nB=Na*365,Op={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},jy="{yyyy}-{MM}-{dd}",rB={year:"{yyyy}",month:"{yyyy}-{MM}",day:jy,hour:jy+" "+Op.hour,minute:jy+" "+Op.minute,second:jy+" "+Op.second,millisecond:Op.none},lM=["year","month","day","hour","minute","second","millisecond"],zH=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Si(n,e){return n+="","0000".substr(0,e-n.length)+n}function Rf(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function hae(n){return n===Rf(n)}function fae(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function wg(n,e,t,r){var i=ua(n),a=i[VE(t)](),o=i[Pf(t)]()+1,s=Math.floor((o-1)/3)+1,l=i[tS(t)](),u=i["get"+(t?"UTC":"")+"Day"](),c=i[Gv(t)](),h=(c-1)%12+1,f=i[nS(t)](),d=i[rS(t)](),p=i[iS(t)](),y=r instanceof Kn?r:jb(r||GH)||cae(),g=y.getModel("time"),v=g.get("month"),x=g.get("monthAbbr"),S=g.get("dayOfWeek"),A=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Si(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Si(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Si(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,A[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Si(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Si(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Si(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Si(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Si(p,3)).replace(/{S}/g,p+"")}function dae(n,e,t,r,i){var a=null;if($e(t))a=t;else if(Dt(t))a=t(n.value,e,{level:n.level});else{var o=Oe({},Op);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(He(a)){var h=n.level==null?0:n.level>=0?n.level:a.length+n.level;h=Math.min(h,a.length-1),a=a[h]}}return wg(new Date(n.value),a,i,r)}function HH(n,e){var t=ua(n),r=t[Pf(e)]()+1,i=t[tS(e)](),a=t[Gv(e)](),o=t[nS(e)](),s=t[rS(e)](),l=t[iS(e)](),u=l===0,c=u&&s===0,h=c&&o===0,f=h&&a===0,d=f&&i===1,p=d&&r===1;return p?"year":d?"month":f?"day":h?"hour":c?"minute":u?"second":"millisecond"}function iB(n,e,t){var r=En(n)?ua(n):n;switch(e=e||HH(n,t),e){case"year":return r[VE(t)]();case"half-year":return r[Pf(t)]()>=6?1:0;case"quarter":return Math.floor((r[Pf(t)]()+1)/4);case"month":return r[Pf(t)]();case"day":return r[tS(t)]();case"half-day":return r[Gv(t)]()/24;case"hour":return r[Gv(t)]();case"minute":return r[nS(t)]();case"second":return r[rS(t)]();case"millisecond":return r[iS(t)]()}}function VE(n){return n?"getUTCFullYear":"getFullYear"}function Pf(n){return n?"getUTCMonth":"getMonth"}function tS(n){return n?"getUTCDate":"getDate"}function Gv(n){return n?"getUTCHours":"getHours"}function nS(n){return n?"getUTCMinutes":"getMinutes"}function rS(n){return n?"getUTCSeconds":"getSeconds"}function iS(n){return n?"getUTCMilliseconds":"getMilliseconds"}function pae(n){return n?"setUTCFullYear":"setFullYear"}function VH(n){return n?"setUTCMonth":"setMonth"}function WH(n){return n?"setUTCDate":"setDate"}function XH(n){return n?"setUTCHours":"setHours"}function YH(n){return n?"setUTCMinutes":"setMinutes"}function jH(n){return n?"setUTCSeconds":"setSeconds"}function JH(n){return n?"setUTCMilliseconds":"setMilliseconds"}function vae(n,e,t,r,i,a,o,s){var l=new Sn({style:{text:n,font:e,align:t,verticalAlign:r,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function WE(n){if(!vE(n))return $e(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function XE(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var md=tE;function Jb(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Ua(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?ua(n):n;if(isNaN(+l)){if(s)return"-"}else return wg(l,r,t)}if(e==="ordinal")return l_(n)?i(n):En(n)&&a(n)?n+"":"-";var u=Bv(n);return a(u)?WE(u):l_(n)?i(n):typeof n=="boolean"?n+"":"-"}var aB=["a","b","c","d","e","f","g"],uM=function(n,e){return"{"+n+(e==null?"":e)+"}"};function YE(n,e,t){He(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],a=0;a':'';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function mae(n,e,t){(n==="week"||n==="month"||n==="quarter"||n==="half-year"||n==="year")&&(n=`MM-dd -yyyy`);var r=ua(e),i=t?"getUTC":"get",a=r[i+"FullYear"](),o=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return n=n.replace("MM",Si(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Si(a%100+"",2)).replace("dd",Si(s,2)).replace("d",s).replace("hh",Si(l,2)).replace("h",l).replace("mm",Si(u,2)).replace("m",u).replace("ss",Si(c,2)).replace("s",c).replace("SSS",Si(h,3)),n}function yae(n){return n&&n.charAt(0).toUpperCase()+n.substr(1)}function Yc(n,e){return e=e||"transparent",$e(n)?n:yt(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function oB(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var V0=U,KH=["left","right","top","bottom","width","height"],Mc=[["width","left","right"],["height","top","bottom"]];function jE(n,e,t,r,i){var a=0,o=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),h=e.childAt(u+1),f=h&&h.getBoundingRect(),d,p;if(n==="horizontal"){var y=c.width+(f?-f.x+c.x:0);d=a+y,d>r||l.newline?(a=0,d=y,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(f?-f.y+c.y:0);p=o+g,p>i||l.newline?(a+=s+t,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),n==="horizontal"?a=d+t:o=p+t)})}var Nc=jE;ln(jE,"vertical");ln(jE,"horizontal");function Di(n,e,t){t=md(t||0);var r=e.width,i=e.height,a=Ft(n.left,r),o=Ft(n.top,i),s=Ft(n.right,r),l=Ft(n.bottom,i),u=Ft(n.width,r),c=Ft(n.height,i),h=t[2]+t[0],f=t[1]+t[3],d=n.aspect;switch(isNaN(u)&&(u=r-s-f-a),isNaN(c)&&(c=i-l-h-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(a)&&(a=r-s-u-f),isNaN(o)&&(o=i-l-c-h),n.left||n.right){case"center":a=r/2-u/2-t[3];break;case"right":a=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=i/2-c/2-t[0];break;case"bottom":o=i-c-h;break}a=a||0,o=o||0,isNaN(u)&&(u=r-f-a-(s||0)),isNaN(c)&&(c=i-h-o-(l||0));var p=new cn(a+t[3],o+t[0],u,c);return p.margin=t,p}function JE(n,e,t,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||n,a.x=n.x,a.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new cn(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var h=Di(Pt({width:u.width,height:u.height},e),t,r),f=o?h.x-u.x:0,d=s?h.y-u.y:0;return l==="raw"?(a.x=f,a.y=d):(a.x+=f,a.y+=d),a===n&&n.markRedraw(),!0}function _ae(n,e){return n[Mc[e][0]]!=null||n[Mc[e][1]]!=null&&n[Mc[e][2]]!=null}function zv(n){var e=n.layoutMode||n.constructor.layoutMode;return yt(e)?e:e?{type:e}:null}function Ql(n,e,t){var r=t&&t.ignoreSize;!He(r)&&(r=[r,r]);var i=o(Mc[0],0),a=o(Mc[1],1);u(Mc[0],n,i),u(Mc[1],n,a);function o(c,h){var f={},d=0,p={},y=0,g=2;if(V0(c,function(S){p[S]=n[S]}),V0(c,function(S){s(e,S)&&(f[S]=p[S]=e[S]),l(f,S)&&d++,l(p,S)&&y++}),r[h])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(y===g||!d)return p;if(d>=g)return f;for(var v=0;v=0;l--)s=Ut(s,i[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var i=t+"Index",a=t+"Id";return Sg(this.ecModel,t,{index:this.get(i,!0),id:this.get(a,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Kn);HG(_d,Kn);Px(_d);Qie(_d);eae(_d,Sae);function Sae(n){var e=[];return U(_d.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=Ve(e,function(t){return zo(t).main}),n!=="dataset"&&nn(e,"dataset")<=0&&e.unshift("dataset"),e}const sn=_d;var sB=Ln(),Aae=Ln(),ZE=function(){function n(){}return n.prototype.getColorFromPalette=function(e,t,r){var i=er(this.get("color",!0)),a=this.get("colorLayer",!0);return $H(this,sB,i,a,e,t,r)},n.prototype.clearColorPalette=function(){wae(this,sB)},n}();function lB(n,e,t,r){var i=er(n.get(["aria","decal","decals"]));return $H(n,Aae,i,null,e,t,r)}function Mae(n,e){for(var t=n.length,r=0;re)return n[r];return n[t-1]}function $H(n,e,t,r,i,a,o){a=a||n;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!r?t:Mae(r,o);if(c=c||t,!(!c||!c.length)){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function wae(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var bae=/\{@(.+?)\}/g,QH=function(){function n(){}return n.prototype.getDataParams=function(e,t){var r=this.getData(t),i=this.getRawValue(e,t),a=r.getRawIndex(e),o=r.getName(e),s=r.getRawDataItem(e),l=r.getItemVisual(e,"style"),u=l&&l[r.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,h=this.mainType,f=h==="series",d=r.userOutput&&r.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:a,data:s,dataType:t,value:i,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(e,t,r,i,a,o){t=t||"normal";var s=this.getData(r),l=this.getDataParams(e,r);if(o&&(l.value=o.interpolatedValue),i!=null&&He(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Dt(a))return l.status=t,l.dimensionIndex=i,a(l);if($e(a)){var c=YE(a,l);return c.replace(bae,function(h,f){var d=f.length,p=f;p.charAt(0)==="["&&p.charAt(d-1)==="]"&&(p=+p.slice(1,d-1));var y=Kf(s,e,p);if(o&&He(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(y=o.interpolatedValue[g])}return y!=null?y+"":""})}},n.prototype.getRawValue=function(e,t){return Kf(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function uB(n){var e,t;return yt(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function iv(n){return new Tae(n)}var Tae=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(x){return!(x>=1)&&(x=1),x}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(h||d1&&r>0?s:o}};return a;function o(){return e=n?null:l9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,i,a;if(Jy(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Xi(s)?Wl:Xa,a=[];var h=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},d=Vt(h.seriesLayoutBy,f.seriesLayoutBy)||null,p=Vt(h.sourceHeader,f.sourceHeader),y=Vt(h.dimensions,f.dimensions),g=d!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||y;i=g?[Vb(s,{seriesLayoutBy:d,sourceHeader:p,dimensions:y},l)]:[]}else{var v=e;if(r){var x=this._applyTransform(t);i=x.sourceList,a=x.upstreamSignList}else{var S=v.get("source",!0);i=[Vb(S,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&hB(a)}var o,s=[],l=[];return U(e,function(u){u.prepareSource();var c=u.getSource(i||0),h="";i!=null&&!c&&hB(h),s.push(c),l.push(u._getVersionSign())}),r?o=Bae(r,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[mie(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t=0)s=o*t.length;else for(var l=0;l18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document!="undefined";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const sn=$u;var DQ=".",Tu="___EC__COMPONENT__CONTAINER___",ZU="___EC__EXTENDED_CLASS___";function Go(n){var e={main:"",sub:""};if(n){var t=n.split(DQ);e.main=t[0]||"",e.sub=t[1]||""}return e}function IQ(n){Ei(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal')}function LQ(n){return!!(n&&n[ZU])}function CC(n,e){n.$constructor=n,n.extend=function(t){var r=this,i;return BQ(r)?i=function(a){we(o,a);function o(){return a.apply(this,arguments)||this}return o}(r):(i=function(){(t.$constructor||r).apply(this,arguments)},bC(i,this)),De(i.prototype,t),i[ZU]=!0,i.extend=this.extend,i.superCall=FQ,i.superApply=kQ,i.superClass=r,i}}function BQ(n){return Tt(n)&&/^class\s/.test(Function.prototype.toString.call(n))}function jU(n,e){n.extend=e.extend}var OQ=Math.round(Math.random()*10);function NQ(n){var e=["__\0is_clz",OQ++].join("_");n.prototype[e]=!0,n.isInstance=function(t){return!!(t&&t[e])}}function FQ(n,e){for(var t=[],r=2;r=0||a&&en(a,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var UQ=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],GQ=Ff(UQ),zQ=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return GQ(this,e,t)},n}(),KU=function(){function n(e){this.value=e}return n}(),HQ=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new KU(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),VQ=function(){function n(e){this._list=new HQ,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,i=this._map,a=null;if(i[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new KU(t),s.key=e,r.insertEntry(s),i[e]=s}return a},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const tg=VQ;var Yw=new tg(50);function WQ(n){if(typeof n=="string"){var e=Yw.get(n);return e&&e.image}else return n}function EC(n,e,t,r,i){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var a=Yw.get(n),o={hostEl:t,cb:r,cbPayload:i};return a?(e=a.image,!ax(e)&&a.pending.push(o)):(e=Xl.loadImage(n,tI,tI),e.__zrImageSrc=n,Yw.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function tI(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;ep&&(p=S,yp&&(p=A,v=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Cu.x=Ru.x=t.x,Cu.y=Pu.y=t.y,Eu.x=Pu.x=t.x+t.width,Eu.y=Ru.y=t.y+t.height,Cu.transform(r),Pu.transform(r),Eu.transform(r),Ru.transform(r),e.x=s0(Cu.x,Eu.x,Ru.x,Pu.x),e.y=s0(Cu.y,Eu.y,Ru.y,Pu.y);var l=l0(Cu.x,Eu.x,Ru.x,Pu.x),u=l0(Cu.y,Eu.y,Ru.y,Pu.y);e.width=l-e.x,e.height=u-e.y},n}();const ln=ZQ;var nI={};function ia(n,e){e=e||Wl;var t=nI[e];t||(t=nI[e]=new tg(500));var r=t.get(n);return r==null&&(r=Xl.measureText(n,e).width,t.put(n,r)),r}function rI(n,e,t,r){var i=ia(n,e),a=sx(e),o=_p(0,i,t),s=ef(0,a,r),l=new ln(o,s,i,a);return l}function rg(n,e,t,r){var i=((n||"")+"").split(` +`),a=i.length;if(a===1)return rI(i[0],e,t,r);for(var o=new ln(0,0,0,0),s=0;s=0?parseFloat(n)/100*e:parseFloat(n):n}function Uy(n,e,t){var r=e.position||"inside",i=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,c="left",h="top";if(r instanceof Array)l+=uo(r[0],t.width),u+=uo(r[1],t.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,c="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,c="right",h="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",h="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=h,n}var iA=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function qU(n,e,t,r,i){if(!e)return"";var a=(n+"").split(` +`);i=QU(e,t,r,i);for(var o=0,s=a.length;o=o;l++)s-=o;var u=ia(t,e);return u>s&&(t="",u=0),s=n-u,i.ellipsis=t,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=n,i}function $U(n,e){var t=e.containerWidth,r=e.font,i=e.contentWidth;if(!t)return"";var a=ia(n,r);if(a<=t)return n;for(var o=0;;o++){if(a<=i||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?jQ(n,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(n.length*i/a):0;n=n.substr(0,s),a=ia(n,r)}return n===""&&(n=e.placeholder),n}function jQ(n,e,t,r){for(var i=0,a=0,o=n.length;ad&&u){var p=Math.floor(d/s);h=h.slice(0,p)}if(n&&a&&c!=null)for(var y=QU(c,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&aA(t,n.substring(s,u),e,o),aA(t,l[2],e,o,l[1]),s=iA.lastIndex}si){T>0?(x.tokens=x.tokens.slice(0,T),g(x,A,S),t.lines=t.lines.slice(0,v+1)):t.lines=t.lines.slice(0,v);break e}var O=C.width,U=O==null||O==="auto";if(typeof O=="string"&&O.charAt(O.length-1)==="%")w.percentWidth=O,c.push(w),w.contentWidth=ia(w.text,R);else{if(U){var F=C.backgroundColor,z=F&&F.image;z&&(z=WQ(z),ax(z)&&(w.width=Math.max(w.width,z.width*I/z.height)))}var X=p&&r!=null?r-A:null;X!=null&&X0&&p+r.accumWidth>r.width&&(c=e.split(` +`),u=!0),r.accumWidth=p}else{var y=eG(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+d,h=y.linesWidths,c=y.lines}}else c=e.split(` +`);for(var g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var t$=Ua(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function n$(n){return e$(n)?!!t$[n]:!0}function eG(n,e,t,r,i){for(var a=[],o=[],s="",l="",u=0,c=0,h=0;ht:i+c+d>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=f,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=f,c=d)):p?(a.push(l),o.push(u),l=f,u=d):(a.push(f),o.push(d));continue}c+=d,p?(l+=f,u+=d):(l&&(s+=l,l="",u=0),s+=f)}return!a.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}function Zc(n,e){return n==null&&(n=0),e==null&&(e=0),[n,e]}function tG(n,e){return n[0]=e[0],n[1]=e[1],n}function nG(n){return[n[0],n[1]]}function r$(n,e,t){return n[0]=e,n[1]=t,n}function Jw(n,e,t){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n}function i$(n,e,t,r){return n[0]=e[0]+t[0]*r,n[1]=e[1]+t[1]*r,n}function rG(n,e,t){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n}function PC(n){return Math.sqrt(DC(n))}var a$=PC;function DC(n){return n[0]*n[0]+n[1]*n[1]}var o$=DC;function s$(n,e,t){return n[0]=e[0]*t[0],n[1]=e[1]*t[1],n}function l$(n,e,t){return n[0]=e[0]/t[0],n[1]=e[1]/t[1],n}function u$(n,e){return n[0]*e[0]+n[1]*e[1]}function uy(n,e,t){return n[0]=e[0]*t,n[1]=e[1]*t,n}function iG(n,e){var t=PC(e);return t===0?(n[0]=0,n[1]=0):(n[0]=e[0]/t,n[1]=e[1]/t),n}function Gy(n,e){return Math.sqrt((n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1]))}var zy=Gy;function aG(n,e){return(n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1])}var Tc=aG;function c$(n,e){return n[0]=-e[0],n[1]=-e[1],n}function cy(n,e,t,r){return n[0]=e[0]+r*(t[0]-e[0]),n[1]=e[1]+r*(t[1]-e[1]),n}function Or(n,e,t){var r=e[0],i=e[1];return n[0]=t[0]*r+t[2]*i+t[4],n[1]=t[1]*r+t[3]*i+t[5],n}function Ds(n,e,t){return n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n}function Is(n,e,t){return n[0]=Math.max(e[0],t[0]),n[1]=Math.max(e[1],t[1]),n}const h$=Object.freeze(Object.defineProperty({__proto__:null,add:Jw,applyTransform:Or,clone:nG,copy:tG,create:Zc,dist:zy,distSquare:Tc,distance:Gy,distanceSquare:aG,div:l$,dot:u$,len:PC,lenSquare:DC,length:a$,lengthSquare:o$,lerp:cy,max:Is,min:Ds,mul:s$,negate:c$,normalize:iG,scale:uy,scaleAndAdd:i$,set:r$,sub:rG},Symbol.toStringTag,{value:"Module"}));var aI=ng,oI=5e-5;function Du(n){return n>oI||n<-oI}var Iu=[],Bh=[],oA=Ga(),sA=Math.abs,f$=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return Du(this.rotation)||Du(this.x)||Du(this.y)||Du(this.scaleX-1)||Du(this.scaleY-1)||Du(this.skewX)||Du(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(aI(r),this.invTransform=null);return}r=r||Ga(),t?this.getLocalTransform(r):aI(r),e&&(t?Zo(r,e,r):ox(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Iu);var r=Iu[0]<0?-1:1,i=Iu[1]<0?-1:1,a=((Iu[0]-r)*t+r)/Iu[0]||0,o=((Iu[1]-i)*t+i)/Iu[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Ga(),nd(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Zo(Bh,e.invTransform,t),t=Bh);var r=this.originX,i=this.originY;(r||i)&&(oA[4]=r,oA[5]=i,Zo(Bh,t,oA),Bh[4]-=r,Bh[5]-=i,t=Bh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],i=this.invTransform;return i&&Or(r,r,i),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],i=this.transform;return i&&Or(r,r,i),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&sA(e[0]-1)>1e-10&&sA(e[3]-1)>1e-10?Math.sqrt(sA(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){oG(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,h=e.y,f=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(r||i||s||l){var p=r+s,y=i+l;t[4]=-p*a-f*y*o,t[5]=-y*o-d*p*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=d*a,t[2]=f*o,u&&eu(t,t,u),t[4]+=r+c,t[5]+=i+h,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),ts=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function oG(n,e){for(var t=0;t-Hy&&nHy||n<-Hy}function Mr(n,e,t,r,i){var a=1-i;return a*a*(a*n+3*i*e)+i*i*(i*r+3*a*t)}function lI(n,e,t,r,i){var a=1-i;return 3*(((e-n)*a+2*(t-e)*i)*a+(r-t)*i*i)}function Vy(n,e,t,r,i,a){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-i,c=s*s-3*o*l,h=s*l-9*o*u,f=l*l-3*s*u,d=0;if(bl(c)&&bl(h))if(bl(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[d++]=p)}else{var y=h*h-4*c*f;if(bl(y)){var g=h/c,p=-s/o+g,v=-g/2;p>=0&&p<=1&&(a[d++]=p),v>=0&&v<=1&&(a[d++]=v)}else if(y>0){var x=Nl(y),S=c*s+1.5*o*(-h+x),A=c*s+1.5*o*(-h-x);S<0?S=-u0(-S,c0):S=u0(S,c0),A<0?A=-u0(-A,c0):A=u0(A,c0);var p=(-s-(S+A))/(3*o);p>=0&&p<=1&&(a[d++]=p)}else{var T=(2*c*s-3*o*h)/(2*Nl(c*c*c)),w=Math.acos(T)/3,C=Nl(c),P=Math.cos(w),p=(-s-2*C*P)/(3*o),v=(-s+C*(P+sI*Math.sin(w)))/(3*o),E=(-s+C*(P-sI*Math.sin(w)))/(3*o);p>=0&&p<=1&&(a[d++]=p),v>=0&&v<=1&&(a[d++]=v),E>=0&&E<=1&&(a[d++]=E)}}return d}function cG(n,e,t,r,i){var a=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(bl(o)){if(uG(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(bl(c))i[0]=-a/(2*o);else if(c>0){var h=Nl(c),u=(-a+h)/(2*o),f=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Wy(n,e,t,r,i,a){var o=(e-n)*i+n,s=(t-e)*i+e,l=(r-t)*i+t,u=(s-o)*i+o,c=(l-s)*i+s,h=(c-u)*i+u;a[0]=n,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=r}function d$(n,e,t,r,i,a,o,s,l,u,c){var h,f=.005,d=1/0,p,y,g,v;Fo[0]=l,Fo[1]=u;for(var x=0;x<1;x+=.05)Da[0]=Mr(n,t,i,o,x),Da[1]=Mr(e,r,a,s,x),g=Tc(Fo,Da),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(bl(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=Nl(c),u=(-o+h)/(2*a),f=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function hG(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function Xy(n,e,t,r,i){var a=(e-n)*r+n,o=(t-e)*r+e,s=(o-a)*r+a;i[0]=n,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function g$(n,e,t,r,i,a,o,s,l){var u,c=.005,h=1/0;Fo[0]=o,Fo[1]=s;for(var f=0;f<1;f+=.05){Da[0]=ei(n,t,i,f),Da[1]=ei(e,r,a,f);var d=Tc(Fo,Da);d=0&&d=1?1:Vy(0,r,a,1,l,s)&&Mr(0,i,o,1,s[0])}}}var _$=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Br,this.ondestroy=e.ondestroy||Br,this.onrestart=e.onrestart||Br,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,i=e-this._startTime-this._pausedTime,a=i/r;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Tt(e)?e:sG[e]||IC(e)},n}();const x$=_$;var cI={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function oo(n){return n=Math.round(n),n<0?0:n>255?255:n}function S$(n){return n=Math.round(n),n<0?0:n>360?360:n}function fv(n){return n<0?0:n>1?1:n}function lA(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?oo(parseFloat(e)/100*255):oo(parseInt(e,10))}function Cc(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?fv(parseFloat(e)/100):fv(parseFloat(e))}function uA(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function Tl(n,e,t){return n+(e-n)*t}function wa(n,e,t,r,i){return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function Zw(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var fG=new tg(20),h0=null;function Oh(n,e){h0&&Zw(h0,e),h0=fG.put(n,h0||e.slice())}function Ti(n,e){if(n){e=e||[];var t=fG.get(n);if(t)return Zw(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in cI)return Zw(e,cI[r]),Oh(n,e),e;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){wa(e,0,0,0,1);return}return wa(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Oh(n,e),e}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){wa(e,0,0,0,1);return}return wa(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Oh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===i){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?wa(e,+u[0],+u[1],+u[2],1):wa(e,0,0,0,1);c=Cc(u.pop());case"rgb":if(u.length>=3)return wa(e,lA(u[0]),lA(u[1]),lA(u[2]),u.length===3?c:Cc(u[3])),Oh(n,e),e;wa(e,0,0,0,1);return;case"hsla":if(u.length!==4){wa(e,0,0,0,1);return}return u[3]=Cc(u[3]),jw(u,e),Oh(n,e),e;case"hsl":if(u.length!==3){wa(e,0,0,0,1);return}return jw(u,e),Oh(n,e),e;default:return}}wa(e,0,0,0,1)}}function jw(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=Cc(n[1]),i=Cc(n[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return e=e||[],wa(e,oo(uA(o,a,t+1/3)*255),oo(uA(o,a,t)*255),oo(uA(o,a,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function A$(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,i=Math.min(e,t,r),a=Math.max(e,t,r),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-e)/6+o/2)/o,h=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o;e===a?l=f-h:t===a?l=1/3+c-f:r===a&&(l=2/3+h-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return n[3]!=null&&d.push(n[3]),d}}function Kw(n,e){var t=Ti(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return so(t,t.length===4?"rgba":"rgb")}}function M$(n){var e=Ti(n);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Op(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),i=Math.floor(r),a=Math.ceil(r),o=e[i],s=e[a],l=r-i;return t[0]=oo(Tl(o[0],s[0],l)),t[1]=oo(Tl(o[1],s[1],l)),t[2]=oo(Tl(o[2],s[2],l)),t[3]=fv(Tl(o[3],s[3],l)),t}}var w$=Op;function LC(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),i=Math.floor(r),a=Math.ceil(r),o=Ti(e[i]),s=Ti(e[a]),l=r-i,u=so([oo(Tl(o[0],s[0],l)),oo(Tl(o[1],s[1],l)),oo(Tl(o[2],s[2],l)),fv(Tl(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:a,value:r}:u}}var b$=LC;function fy(n,e,t,r){var i=Ti(n);if(n)return i=A$(i),e!=null&&(i[0]=S$(e)),t!=null&&(i[1]=Cc(t)),r!=null&&(i[2]=Cc(r)),so(jw(i),"rgba")}function dG(n,e){var t=Ti(n);if(t&&e!=null)return t[3]=fv(e),so(t,"rgba")}function so(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function dv(n,e){var t=Ti(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function T$(){return so([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const C$=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Op,fastMapToColor:w$,lerp:LC,lift:Kw,lum:dv,mapToColor:b$,modifyAlpha:dG,modifyHSL:fy,parse:Ti,random:T$,stringify:so,toHex:M$},Symbol.toStringTag,{value:"Module"}));var Yy=Math.round;function pv(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=Ti(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e==null?1:e}}var hI=1e-4;function Cl(n){return n-hI}function f0(n){return Yy(n*1e3)/1e3}function qw(n){return Yy(n*1e4)/1e4}function E$(n){return"matrix("+f0(n[0])+","+f0(n[1])+","+f0(n[2])+","+f0(n[3])+","+qw(n[4])+","+qw(n[5])+")"}var R$={left:"start",right:"end",center:"middle",middle:"middle"};function P$(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function D$(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function I$(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function pG(n){return n&&!!n.image}function L$(n){return n&&!!n.svgElement}function BC(n){return pG(n)||L$(n)}function vG(n){return n.type==="linear"}function gG(n){return n.type==="radial"}function mG(n){return n&&(n.type==="linear"||n.type==="radial")}function lx(n){return"url(#"+n+")"}function yG(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function _G(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*Bp,i=Gt(n.scaleX,1),a=Gt(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Yy(o*Bp)+"deg, "+Yy(s*Bp)+"deg)"),l.join(" ")}var B$=function(){return sn.hasGlobalWindow&&Tt(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer!="undefined"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),Qw=Array.prototype.slice;function Ms(n,e,t){return(e-n)*t+n}function cA(n,e,t,r){for(var i=e.length,a=0;ar?e:n,a=Math.min(t,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)r.length=o;else for(var l=a;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=dI,l=t;if(oi(t)){var u=k$(t);s=u,(u===1&&!Cn(t[0])||u===2&&!Cn(t[0][0]))&&(o=!0)}else if(Cn(t)&&!hv(t))s=p0;else if(Ze(t))if(!isNaN(+t))s=p0;else{var c=Ti(t);c&&(l=c,s=xp)}else if(nx(t)){var h=De({},l);h.colorStops=He(t.colorStops,function(d){return{offset:d.offset,color:Ti(d.color)}}),vG(t)?s=$w:gG(t)&&(s=eb),l=h}a===0?this.valType=s:(s!==this.valType||s===dI)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=Tt(r)?r:sG[r]||IC(r)),i.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(y,g){return y.time-g.time});for(var i=this.valType,a=r.length,o=r[a-1],s=this.discrete,l=v0(i),u=pI(i),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=h;ct);c++);c=f(c-1,s-2)}p=o[c+1],d=o[c]}if(d&&p){this._lastFr=c,this._lastFrP=t;var g=p.percent-d.percent,v=g===0?1:f((t-d.percent)/g,1);p.easingFunc&&(v=p.easingFunc(v));var x=r?this._additiveValue:u?Jd:e[l];if((v0(a)||u)&&!x&&(x=this._additiveValue=[]),this.discrete)e[l]=v<1?d.rawValue:p.rawValue;else if(v0(a))a===py?cA(x,d[i],p[i],v):O$(x,d[i],p[i],v);else if(pI(a)){var S=d[i],A=p[i],T=a===$w;e[l]={type:T?"linear":"radial",x:Ms(S.x,A.x,v),y:Ms(S.y,A.y,v),colorStops:He(S.colorStops,function(C,P){var E=A.colorStops[P];return{offset:Ms(C.offset,E.offset,v),color:dy(cA([],C.color,E.color,v))}}),global:A.global},T?(e[l].x2=Ms(S.x2,A.x2,v),e[l].y2=Ms(S.y2,A.y2,v)):e[l].r=Ms(S.r,A.r,v)}else if(u)cA(x,d[i],p[i],v),r||(e[l]=dy(x));else{var w=Ms(d[i],p[i],v);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,i=this._additiveValue;t===p0?e[r]=e[r]+i:t===xp?(Ti(e[r],Jd),d0(Jd,Jd,i,1),e[r]=dy(Jd)):t===py?d0(e[r],e[r],i,1):t===xG&&fI(e[r],e[r],i,1)},n}(),OC=function(){function n(e,t,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){wC("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Xt(t),r)},n.prototype.whenWithKeys=function(e,t,r,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Np(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Np(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},n}(),G$=function(){function n(e){e&&(this._$eventProcessor=e)}return n.prototype.on=function(e,t,r,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(i=r,r=t,t=null),!r||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,x=void 0,S=void 0;y&&this.canBeInsideText()?(v=r.insideFill,x=r.insideStroke,(v==null||v==="auto")&&(v=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(v),S=!0)):(v=r.outsideFill,x=r.outsideStroke,(v==null||v==="auto")&&(v=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(v),S=!0)),v=v||"#000",(v!==g.fill||x!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=v,g.stroke=x,g.autoStroke=S,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=ko,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?rb:nb},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&Ti(t);r||(r=[255,255,255,1]);for(var i=r[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*i+(a?0:255)*(1-i);return r[3]=1,so(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},De(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(pt(e))for(var r=e,i=Xt(r),a=0;a0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(hA,!1,e)},n.prototype.useState=function(e,t,r,i){var a=e===hA,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(en(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){wC("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,f=this._textGuide;return h&&h.useState(e,t,r,c),f&&f.useState(e,t,r,c),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ko),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l0,p);var y=this._textContent,g=this._textGuide;y&&y.useStates(e,t,f),g&&g.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ko)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var i=this.currentStates.slice(),a=en(i,e),o=en(i,t)>=0;a>=0?o?i.splice(a,1):i[a]=t:r&&!o&&i.push(t),this.useStates(i)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,i=0;i=0&&a.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,i=r.length,a=[],o=0;o0&&t.during&&a[0].during(function(p,y){t.during(y)});for(var f=0;f0||i.force&&!o.length){var P=void 0,E=void 0,R=void 0;if(s){E={},f&&(P={});for(var A=0;A1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(g0[0]=yA(i)*t+n,g0[1]=mA(i)*r+e,m0[0]=yA(a)*t+n,m0[1]=mA(a)*r+e,u(s,g0,m0),c(l,g0,m0),i=i%Lu,i<0&&(i=i+Lu),a=a%Lu,a<0&&(a=a+Lu),i>a&&!o?a+=Lu:ii&&(y0[0]=yA(d)*t+n,y0[1]=mA(d)*r+e,u(s,y0,s),c(l,y0,l))}var Tn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Bu=[],Ou=[],Eo=[],fl=[],Ro=[],Po=[],_A=Math.min,xA=Math.max,Nu=Math.cos,Fu=Math.sin,xs=Math.abs,ab=Math.PI,xl=ab*2,SA=typeof Float32Array!="undefined",Zd=[];function AA(n){var e=Math.round(n/ab*1e8)/1e8;return e%2*ab}function eee(n,e){var t=AA(n[0]);t<0&&(t+=xl);var r=t-n[0],i=n[1];i+=r,!e&&i-t>=xl?i=t+xl:e&&t-i>=xl?i=t-xl:!e&&t>i?i=t+(xl-AA(t-i)):e&&t0&&(this._ux=xs(r/vI/e)||0,this._uy=xs(r/vI/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Tn.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=xs(e-this._xi),i=xs(t-this._yi),a=r>this._ux||i>this._uy;if(this.addData(Tn.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,i,a,o){return this._drawPendingPt(),this.addData(Tn.C,e,t,r,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,i,a,o),this._xi=a,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,i){return this._drawPendingPt(),this.addData(Tn.Q,e,t,r,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,i),this._xi=r,this._yi=i,this},n.prototype.arc=function(e,t,r,i,a,o){this._drawPendingPt(),Zd[0]=i,Zd[1]=a,eee(Zd,o),i=Zd[0],a=Zd[1];var s=a-i;return this.addData(Tn.A,e,t,r,r,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,i,a,o),this._xi=Nu(a)*r+e,this._yi=Fu(a)*r+t,this},n.prototype.arcTo=function(e,t,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,i,a),this},n.prototype.rect=function(e,t,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,i),this.addData(Tn.R,e,t,r,i),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Tn.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&SA&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){Eo[0]=Eo[1]=Ro[0]=Ro[1]=Number.MAX_VALUE,fl[0]=fl[1]=Po[0]=Po[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,i=0,a=0,o;for(o=0;or||xs(S)>i||f===t-1)&&(y=Math.sqrt(x*x+S*S),a=g,o=v);break}case Tn.C:{var A=e[f++],T=e[f++],g=e[f++],v=e[f++],w=e[f++],C=e[f++];y=p$(a,o,A,T,g,v,w,C,10),a=w,o=C;break}case Tn.Q:{var A=e[f++],T=e[f++],g=e[f++],v=e[f++];y=m$(a,o,A,T,g,v,10),a=g,o=v;break}case Tn.A:var P=e[f++],E=e[f++],R=e[f++],I=e[f++],O=e[f++],U=e[f++],F=U+O;f+=1,e[f++],p&&(s=Nu(O)*R+P,l=Fu(O)*I+E),y=xA(R,I)*_A(xl,Math.abs(U)),a=Nu(F)*R+P,o=Fu(F)*I+E;break;case Tn.R:{s=a=e[f++],l=o=e[f++];var z=e[f++],X=e[f++];y=z*2+X*2;break}case Tn.Z:{var x=s-a,S=l-o;y=Math.sqrt(x*x+S*S),a=s,o=l;break}}y>=0&&(u[h++]=y,c+=y)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,h,f,d=t<1,p,y,g=0,v=0,x,S=0,A,T;if(!(d&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,y=this._pathLen,x=t*y,!x)))e:for(var w=0;w0&&(e.lineTo(A,T),S=0),C){case Tn.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case Tn.L:{h=r[w++],f=r[w++];var E=xs(h-u),R=xs(f-c);if(E>i||R>a){if(d){var I=p[v++];if(g+I>x){var O=(x-g)/I;e.lineTo(u*(1-O)+h*O,c*(1-O)+f*O);break e}g+=I}e.lineTo(h,f),u=h,c=f,S=0}else{var U=E*E+R*R;U>S&&(A=h,T=f,S=U)}break}case Tn.C:{var F=r[w++],z=r[w++],X=r[w++],ne=r[w++],H=r[w++],j=r[w++];if(d){var I=p[v++];if(g+I>x){var O=(x-g)/I;Wy(u,F,X,H,O,Bu),Wy(c,z,ne,j,O,Ou),e.bezierCurveTo(Bu[1],Ou[1],Bu[2],Ou[2],Bu[3],Ou[3]);break e}g+=I}e.bezierCurveTo(F,z,X,ne,H,j),u=H,c=j;break}case Tn.Q:{var F=r[w++],z=r[w++],X=r[w++],ne=r[w++];if(d){var I=p[v++];if(g+I>x){var O=(x-g)/I;Xy(u,F,X,O,Bu),Xy(c,z,ne,O,Ou),e.quadraticCurveTo(Bu[1],Ou[1],Bu[2],Ou[2]);break e}g+=I}e.quadraticCurveTo(F,z,X,ne),u=X,c=ne;break}case Tn.A:var $=r[w++],le=r[w++],ce=r[w++],ie=r[w++],he=r[w++],Se=r[w++],ve=r[w++],Oe=!r[w++],Ye=ce>ie?ce:ie,tt=xs(ce-ie)>.001,ze=he+Se,Ie=!1;if(d){var I=p[v++];g+I>x&&(ze=he+Se*(x-g)/I,Ie=!0),g+=I}if(tt&&e.ellipse?e.ellipse($,le,ce,ie,ve,he,ze,Oe):e.arc($,le,Ye,he,ze,Oe),Ie)break e;P&&(s=Nu(he)*ce+$,l=Fu(he)*ie+le),u=Nu(ze)*ce+$,c=Fu(ze)*ie+le;break;case Tn.R:s=u=r[w],l=c=r[w+1],h=r[w++],f=r[w++];var Z=r[w++],xe=r[w++];if(d){var I=p[v++];if(g+I>x){var ge=x-g;e.moveTo(h,f),e.lineTo(h+_A(ge,Z),f),ge-=Z,ge>0&&e.lineTo(h+Z,f+_A(ge,xe)),ge-=xe,ge>0&&e.lineTo(h+xA(Z-ge,0),f+xe),ge-=Z,ge>0&&e.lineTo(h,f+xA(xe-ge,0));break e}g+=I}e.rect(h,f,Z,xe);break;case Tn.Z:if(d){var I=p[v++];if(g+I>x){var O=(x-g)/I;e.lineTo(u*(1-O)+s*O,c*(1-O)+l*O);break e}g+=I}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=Tn,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();const zs=tee;function Fh(n,e,t,r,i,a,o){if(i===0)return!1;var s=i,l=0,u=n;if(o>e+s&&o>r+s||on+s&&a>t+s||ae+h&&c>r+h&&c>a+h&&c>s+h||cn+h&&u>t+h&&u>i+h&&u>o+h||ue+u&&l>r+u&&l>a+u||ln+u&&s>t+u&&s>i+u||st||c+ui&&(i+=jd);var f=Math.atan2(l,s);return f<0&&(f+=jd),f>=r&&f<=i||f+jd>=r&&f+jd<=i}function ws(n,e,t,r,i,a){if(a>e&&a>r||ai?s:0}var dl=zs.CMD,ku=Math.PI*2,aee=1e-4;function oee(n,e){return Math.abs(n-e)e&&u>r&&u>a&&u>s||u1&&see(),d=Mr(e,r,a,s,Ra[0]),f>1&&(p=Mr(e,r,a,s,Ra[1]))),f===2?ge&&s>r&&s>a||s=0&&u<=1){for(var c=0,h=ei(e,r,a,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);yi[0]=-l,yi[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=ku-1e-4){r=0,i=ku;var c=a?1:-1;return o>=yi[0]+n&&o<=yi[1]+n?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=ku,i+=ku);for(var f=0,d=0;d<2;d++){var p=yi[d];if(p+n>o){var y=Math.atan2(s,p),c=a?1:-1;y<0&&(y=ku+y),(y>=r&&y<=i||y+ku>=r&&y+ku<=i)&&(y>Math.PI/2&&y1&&(t||(s+=ws(l,u,c,h,r,i))),g&&(l=a[p],u=a[p+1],c=l,h=u),y){case dl.M:c=a[p++],h=a[p++],l=c,u=h;break;case dl.L:if(t){if(Fh(l,u,a[p],a[p+1],e,r,i))return!0}else s+=ws(l,u,a[p],a[p+1],r,i)||0;l=a[p++],u=a[p++];break;case dl.C:if(t){if(nee(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],e,r,i))return!0}else s+=lee(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],r,i)||0;l=a[p++],u=a[p++];break;case dl.Q:if(t){if(ree(l,u,a[p++],a[p++],a[p],a[p+1],e,r,i))return!0}else s+=uee(l,u,a[p++],a[p++],a[p],a[p+1],r,i)||0;l=a[p++],u=a[p++];break;case dl.A:var v=a[p++],x=a[p++],S=a[p++],A=a[p++],T=a[p++],w=a[p++];p+=1;var C=!!(1-a[p++]);f=Math.cos(T)*S+v,d=Math.sin(T)*A+x,g?(c=f,h=d):s+=ws(l,u,f,d,r,i);var P=(r-v)*A/S+v;if(t){if(iee(v,x,A,T,T+w,C,e,P,i))return!0}else s+=cee(v,x,A,T,T+w,C,P,i);l=Math.cos(T+w)*S+v,u=Math.sin(T+w)*A+x;break;case dl.R:c=l=a[p++],h=u=a[p++];var E=a[p++],R=a[p++];if(f=c+E,d=h+R,t){if(Fh(c,h,f,h,e,r,i)||Fh(f,h,f,d,e,r,i)||Fh(f,d,c,d,e,r,i)||Fh(c,d,c,h,e,r,i))return!0}else s+=ws(f,h,f,d,r,i),s+=ws(c,d,c,h,r,i);break;case dl.Z:if(t){if(Fh(l,u,c,h,e,r,i))return!0}else s+=ws(l,u,c,h,r,i);l=c,u=h;break}}return!t&&!oee(u,h)&&(s+=ws(l,u,c,h,r,i)||0),s!==0}function hee(n,e,t){return wG(n,0,!1,e,t)}function fee(n,e,t,r){return wG(n,e,!0,t,r)}var Jy=bt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ec),dee={style:bt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ux.style)},MA=ts.concat(["invisible","culling","z","z2","zlevel","parent"]),pee=function(n){we(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?nb:r>.2?z$:rb}else if(t)return rb}return nb},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(Ze(r)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=dv(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,i=!t;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&tf)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c==null?4:c)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),a=this.getBoundingRect(),o=this.style;if(t=i[0],r=i[1],a.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),fee(s,l/u,t,r)))return!0}if(this.hasFill())return hee(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tf,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=r:De(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tf)},e.prototype.createStyle=function(t){return eg(Jy,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=De({},this.shape))},e.prototype._applyStateObj=function(t,r,i,a,o,s){n.prototype._applyStateObj.call(this,t,r,i,a,o,s);var l=!(r&&a),u;if(r&&r.shape?o?a?u=r.shape:(u=De({},i.shape),De(u,r.shape)):(u=De({},a?this.shape:i.shape),De(u,r.shape)):l&&(u=i.shape),u)if(o){this.shape=De({},this.shape);for(var c={},h=Xt(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return eg(vee,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var i=rg(r,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var a=t.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Gs);bG.prototype.type="tspan";const vv=bG;var gee=bt({x:0,y:0},Ec),mee={style:bt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ux.style)};function yee(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var TG=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return eg(gee,t)},e.prototype._getSize=function(t){var r=this.style,i=r[t];if(i!=null)return i;var a=yee(r.image)?r.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return mee},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ln(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Gs);TG.prototype.type="image";const Pi=TG;function _ee(n,e){var t=e.x,r=e.y,i=e.width,a=e.height,o=e.r,s,l,u,c;i<0&&(t=t+i,i=-i),a<0&&(r=r+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+c>i&&(h=u+c,u*=i/h,c*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+c>a&&(h=s+c,s*=a/h,c*=a/h),n.moveTo(t+s,r),n.lineTo(t+i-l,r),l!==0&&n.arc(t+i-l,r+l,l,-Math.PI/2,0),n.lineTo(t+i,r+a-u),u!==0&&n.arc(t+i-u,r+a-u,u,0,Math.PI/2),n.lineTo(t+c,r+a),c!==0&&n.arc(t+c,r+a-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var ff=Math.round;function CG(n,e,t){if(e){var r=e.x1,i=e.x2,a=e.y1,o=e.y2;n.x1=r,n.x2=i,n.y1=a,n.y2=o;var s=t&&t.lineWidth;return s&&(ff(r*2)===ff(i*2)&&(n.x1=n.x2=vc(r,s,!0)),ff(a*2)===ff(o*2)&&(n.y1=n.y2=vc(a,s,!0))),n}}function EG(n,e,t){if(e){var r=e.x,i=e.y,a=e.width,o=e.height;n.x=r,n.y=i,n.width=a,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=vc(r,s,!0),n.y=vc(i,s,!0),n.width=Math.max(vc(r+a,s,!1)-n.x,a===0?0:1),n.height=Math.max(vc(i+o,s,!1)-n.y,o===0?0:1)),n}}function vc(n,e,t){if(!e)return n;var r=ff(n*2);return(r+ff(e))%2===0?r/2:(r+(t?1:-1))/2}var xee=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),See={},RG=function(n){we(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new xee},e.prototype.buildPath=function(t,r){var i,a,o,s;if(this.subPixelOptimize){var l=EG(See,r,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,a=r.y,o=r.width,s=r.height;r.r?_ee(t,r):t.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(bn);RG.prototype.type="rect";const _n=RG;var SI={fill:"#000"},AI=2,Aee={style:bt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},ux.style)},PG=function(n){we(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=SI,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,O=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),U=o.calculatedLineHeight,F=0;F=0&&(F=w[U],F.align==="right");)this._placeToken(F,t,P,v,O,"right",S),E-=F.width,O-=F.width,U--;for(I+=(a-(I-g)-(x-O)-E)/2;R<=U;)F=w[R],this._placeToken(F,t,P,v,I+F.width/2,"center",S),I+=F.width,R++;v+=P}},e.prototype._placeToken=function(t,r,i,a,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,h=a+i/2;c==="top"?h=a+t.height/2:c==="bottom"&&(h=a+i-t.height/2);var f=!t.isLineHolder&&wA(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var d=!!u.backgroundColor,p=t.textPadding;p&&(o=EI(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var y=this._getOrCreateChild(vv),g=y.createStyle();y.useStyle(g);var v=this._defaultStyle,x=!1,S=0,A=CI("fill"in u?u.fill:"fill"in r?r.fill:(x=!0,v.fill)),T=TI("stroke"in u?u.stroke:"stroke"in r?r.stroke:!d&&!l&&(!v.autoStroke||x)?(S=AI,v.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,w&&(g.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,g.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||Wl,g.opacity=yf(u.opacity,r.opacity,1),wI(g,u),T&&(g.lineWidth=yf(u.lineWidth,r.lineWidth,S),g.lineDash=Gt(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=T),A&&(g.fill=A);var C=t.contentWidth,P=t.contentHeight;y.setBoundingRect(new ln(_p(g.x,C,g.textAlign),ef(g.y,P,g.textBaseline),C,P))},e.prototype._renderBackground=function(t,r,i,a,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,f=l&&!h,d=t.borderRadius,p=this,y,g;if(f||t.lineHeight||u&&c){y=this._getOrCreateChild(_n),y.useStyle(y.createStyle()),y.style.fill=null;var v=y.shape;v.x=i,v.y=a,v.width=o,v.height=s,v.r=d,y.dirtyShape()}if(f){var x=y.style;x.fill=l||null,x.fillOpacity=Gt(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Pi),g.onload=function(){p.dirtyStyle()};var S=g.style;S.image=l.image,S.x=i,S.y=a,S.width=o,S.height=s}if(u&&c){var x=y.style;x.lineWidth=u,x.stroke=c,x.strokeOpacity=Gt(t.strokeOpacity,1),x.lineDash=t.borderDash,x.lineDashOffset=t.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2)}var A=(y||g).style;A.shadowBlur=t.shadowBlur||0,A.shadowColor=t.shadowColor||"transparent",A.shadowOffsetX=t.shadowOffsetX||0,A.shadowOffsetY=t.shadowOffsetY||0,A.opacity=yf(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return IG(t)&&(r=[t.fontStyle,t.fontWeight,DG(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&ka(r)||t.textFont||t.font},e}(Gs),Mee={left:!0,right:1,center:1},wee={top:1,bottom:1,middle:1},MI=["fontStyle","fontWeight","fontSize","fontFamily"];function DG(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?xC+"px":n+"px"}function wI(n,e){for(var t=0;t0){if(n<=i)return o;if(n>=a)return s}else{if(n>=i)return o;if(n<=a)return s}else{if(n===i)return o;if(n===a)return s}return(n-i)/l*u+o}function Lt(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return Ze(n)?Tee(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function lr(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),LG),n=(+n).toFixed(e),t?n:+n}function zo(n){return n.sort(function(e,t){return e-t}),n}function Ho(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return BG(n)}function BG(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,i=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-r)}function FC(n,e){var t=Math.log,r=Math.LN10,i=Math.floor(t(n[1]-n[0])/r),a=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Cee(n,e,t){if(!n[e])return 0;var r=OG(n,t);return r[e]||0}function OG(n,e){var t=Ua(n,function(d,p){return d+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),i=He(n,function(d){return(isNaN(d)?0:d)/t*r*100}),a=r*100,o=He(i,function(d){return Math.floor(d)}),s=Ua(o,function(d,p){return d+p},0),l=He(i,function(d,p){return d-o[p]});su&&(u=l[h],c=h);++o[c],l[c]=0,++s}return He(o,function(d){return d/r})}function Eee(n,e){var t=Math.max(Ho(n),Ho(e)),r=n+e;return t>LG?r:lr(r,t)}var Ree=9007199254740991;function kC(n){var e=Math.PI*2;return(n%e+e)%e}function gv(n){return n>-PI&&n=10&&e++,e}function UC(n,e){var t=cx(n),r=Math.pow(10,t),i=n/r,a;return e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,n=a*r,t>=-20?+n.toFixed(t<0?-t:0):n}function Dee(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),i=+n[r-1],a=t-r;return a?i+a*(n[r]-i):i}function ob(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0,a=!1;if(n instanceof bn){var o=WG(n),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(a=!0,r=De({},r),u=De({},u),u.fill=s):!kh(u.fill)&&kh(s)?(a=!0,r=De({},r),u=De({},u),u.fill=FI(s)):!kh(u.stroke)&&kh(l)&&(a||(r=De({},r),u=De({},u)),u.stroke=FI(l)),r.style=u}}if(r&&r.z2==null){a||(r=De({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c!=null?c:XG)}return r}function ete(n,e,t){if(t&&t.z2==null){t=De({},t);var r=n.z2SelectLift;t.z2=n.z2+(r!=null?r:jee)}return t}function tte(n,e,t){var r=en(n.currentStates,e)>=0,i=n.style.opacity,a=r?null:Qee(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=De({},t),o=De({opacity:r?i:a.opacity*.1},o),t.style=o),t}function bA(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return $ee(this,n,e,t);if(n==="blur")return tte(this,n,t);if(n==="select")return ete(this,n,t)}return t}function YC(n){n.stateProxy=bA;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=bA),t&&(t.stateProxy=bA)}function UI(n,e){!QG(n,e)&&!n.__highByOuter&&Ws(n,YG)}function GI(n,e){!QG(n,e)&&!n.__highByOuter&&Ws(n,JG)}function kf(n,e){n.__highByOuter|=1<<(e||0),Ws(n,YG)}function Uf(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&Ws(n,JG)}function nte(n){Ws(n,XC)}function jG(n){Ws(n,ZG)}function KG(n){Ws(n,Kee)}function qG(n){Ws(n,qee)}function QG(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function $G(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(i,a){var o=VC(a),s=i==="series",l=s?n.getViewOfSeriesModel(a):n.getViewOfComponentModel(a);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){ZG(u)}),s&&t.push(a)),o.isBlured=!1}),k(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function lb(n,e,t,r){var i=r.getModel();t=t||"coordinateSystem";function a(u,c){for(var h=0;h0){var s={dataIndex:o,seriesIndex:t.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Fl(n,e,t){ZC(n,!0),Ws(n,YC),ute(n,e,t)}function lte(n){ZC(n,!1)}function Yl(n,e,t,r){r?lte(n):Fl(n,e,t)}function ute(n,e,t){var r=tn(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var HI=["emphasis","blur","select"],cte={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Gf(n,e,t,r){t=t||"itemStyle";for(var i=0;i1&&(o*=TA(p),s*=TA(p));var y=(i===a?-1:1)*TA((o*o*(s*s)-o*o*(d*d)-s*s*(f*f))/(o*o*(d*d)+s*s*(f*f)))||0,g=y*o*d/s,v=y*-s*f/o,x=(n+t)/2+S0(h)*g-x0(h)*v,S=(e+r)/2+x0(h)*g+S0(h)*v,A=YI([1,0],[(f-g)/o,(d-v)/s]),T=[(f-g)/o,(d-v)/s],w=[(-1*f-g)/o,(-1*d-v)/s],C=YI(T,w);if(fb(T,w)<=-1&&(C=Kd),fb(T,w)>=1&&(C=0),C<0){var P=Math.round(C/Kd*1e6)/1e6;C=Kd*2+P%2*Kd}c.addData(u,x,S,o,s,A,C,h,a)}var mte=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,yte=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function _te(n){var e=new zs;if(!n)return e;var t=0,r=0,i=t,a=r,o,s=zs.CMD,l=n.match(mte);if(!l)return e;for(var u=0;u=0&&(i.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var i=en(this._children,t);return i>=0&&this.replaceAt(r,i),this},e.prototype.replaceAt=function(t,r){var i=this._children,a=i[r];if(t&&t!==this&&t.parent!==this&&t!==a){i[r]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,i=this._children,a=en(i,t);return a<0?this:(i.splice(a,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,i=0;iF*F+z*z&&(P=R,E=I),{cx:P,cy:E,x0:-c,y0:-h,x1:P*(i/T-1),y1:E*(i/T-1)}}function Tte(n){var e;if(Ge(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function Cte(n,e){var t,r=Ap(e.r,0),i=Ap(e.r0||0,0),a=r>0,o=i>0;if(!(!a&&!o)){if(a||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,h=e.cy,f=!!e.clockwise,d=ZI(u-l),p=d>CA&&d%CA;if(p>$a&&(d=p),!(r>$a))n.moveTo(c,h);else if(d>CA-$a)n.moveTo(c+r*Gh(l),h+r*Uu(l)),n.arc(c,h,r,l,u,!f),i>$a&&(n.moveTo(c+i*Gh(u),h+i*Uu(u)),n.arc(c,h,i,u,l,f));else{var y=void 0,g=void 0,v=void 0,x=void 0,S=void 0,A=void 0,T=void 0,w=void 0,C=void 0,P=void 0,E=void 0,R=void 0,I=void 0,O=void 0,U=void 0,F=void 0,z=r*Gh(l),X=r*Uu(l),ne=i*Gh(u),H=i*Uu(u),j=d>$a;if(j){var $=e.cornerRadius;$&&(t=Tte($),y=t[0],g=t[1],v=t[2],x=t[3]);var le=ZI(r-i)/2;if(S=Do(le,v),A=Do(le,x),T=Do(le,y),w=Do(le,g),E=C=Ap(S,A),R=P=Ap(T,w),(C>$a||P>$a)&&(I=r*Gh(u),O=r*Uu(u),U=i*Gh(l),F=i*Uu(l),d$a){var tt=Do(v,E),ze=Do(x,E),Ie=A0(U,F,z,X,r,tt,f),Z=A0(I,O,ne,H,r,ze,f);n.moveTo(c+Ie.cx+Ie.x0,h+Ie.cy+Ie.y0),E0&&n.arc(c+Ie.cx,h+Ie.cy,tt,qr(Ie.y0,Ie.x0),qr(Ie.y1,Ie.x1),!f),n.arc(c,h,r,qr(Ie.cy+Ie.y1,Ie.cx+Ie.x1),qr(Z.cy+Z.y1,Z.cx+Z.x1),!f),ze>0&&n.arc(c+Z.cx,h+Z.cy,ze,qr(Z.y1,Z.x1),qr(Z.y0,Z.x0),!f))}else n.moveTo(c+z,h+X),n.arc(c,h,r,l,u,!f);if(!(i>$a)||!j)n.lineTo(c+ne,h+H);else if(R>$a){var tt=Do(y,R),ze=Do(g,R),Ie=A0(ne,H,I,O,i,-ze,f),Z=A0(z,X,U,F,i,-tt,f);n.lineTo(c+Ie.cx+Ie.x0,h+Ie.cy+Ie.y0),R0&&n.arc(c+Ie.cx,h+Ie.cy,ze,qr(Ie.y0,Ie.x0),qr(Ie.y1,Ie.x1),!f),n.arc(c,h,i,qr(Ie.cy+Ie.y1,Ie.cx+Ie.x1),qr(Z.cy+Z.y1,Z.cx+Z.x1),f),tt>0&&n.arc(c+Z.cx,h+Z.cy,tt,qr(Z.y1,Z.x1),qr(Z.y0,Z.x0),!f))}else n.lineTo(c+ne,h+H),n.arc(c,h,i,u,l,f)}n.closePath()}}}var Ete=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),lz=function(n){we(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Ete},e.prototype.buildPath=function(t,r){Cte(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(bn);lz.prototype.type="sector";const as=lz;var Rte=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),uz=function(n){we(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Rte},e.prototype.buildPath=function(t,r){var i=r.cx,a=r.cy,o=Math.PI*2;t.moveTo(i+r.r,a),t.arc(i,a,r.r,0,o,!1),t.moveTo(i+r.r0,a),t.arc(i,a,r.r0,0,o,!0)},e}(bn);uz.prototype.type="ring";const ag=uz;function Pte(n,e,t,r){var i=[],a=[],o=[],s=[],l,u,c,h;if(r){c=[1/0,1/0],h=[-1/0,-1/0];for(var f=0,d=n.length;f=2){if(r){var a=Pte(i,r,t,e.smoothConstraint);n.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;szu[1]){if(s=!1,a)return s;var c=Math.abs(zu[0]-Gu[1]),h=Math.abs(Gu[0]-zu[1]);Math.min(c,h)>i.len()&&(c0){var h=c.duration,f=c.delay,d=c.easing,p={duration:h,delay:f||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function ur(n,e,t,r,i,a){QC("update",n,e,t,r,i,a)}function Ci(n,e,t,r,i,a){QC("enter",n,e,t,r,i,a)}function Hp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function qI(n){return!n.isGroup}function Zte(n){return n.shape!=null}function _x(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){qI(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Zte(o)&&(s.shape=De({},o.shape)),s}var a=r(n);e.traverse(function(o){if(qI(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),ur(o,l,t,tn(o).dataIndex)}}})}function nE(n,e){return He(n,function(t){var r=t[0];r=Qy(r,e.x),r=$y(r,e.x+e.width);var i=t[1];return i=Qy(i,e.y),i=$y(i,e.y+e.height),[r,i]})}function Sz(n,e){var t=Qy(n.x,e.x),r=$y(n.x+n.width,e.x+e.width),i=Qy(n.y,e.y),a=$y(n.y+n.height,e.y+e.height);if(r>=t&&a>=i)return{x:t,y:i,width:r-t,height:a-i}}function id(n,e,t){var r=De({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(i.image=n.slice(8),bt(i,t),new Pi(r)):mx(n.replace("path://",""),r,t,"center")}function jte(n,e,t,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=EA(d,p,c,h)/f;return!(g<0||g>1)}function EA(n,e,t,r){return n*r-t*e}function Kte(n){return n<=1e-6&&n>=-1e-6}function ad(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,i=Ze(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:r,$vars:["name"]};s[a+"Index"]=o;var l=n.formatterParamsExtra;l&&k(Xt(l),function(c){Ot(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=tn(n.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:r,option:bt({content:r,formatterParams:s},i)}}function QI(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function xx(n,e){if(n)if(Ge(n))for(var t=0;t1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},i={},a=[],o=[];this._initIndexMap(e,r,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(h===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(h===1&&f===1)this._update&&this._update(c,u),i[l]=null;else if(h>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(h>1)for(var d=0;d1)for(var s=0;sy&&(y=S)}d[0]=p,d[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};lL=(e={},e[Wi+"_"+Ns]={pure:!0,appendData:a},e[Wi+"_"+od]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[go]={pure:!0,appendData:a},e[ss]={pure:!0,appendData:function(o){var s=this._data;k(o,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},e[Wa]={appendData:a},e[Ul]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;si?-this._resultLT:0},n}(),Tx="undefined",bne=typeof Uint32Array===Tx?Array:Uint32Array,Tne=typeof Uint16Array===Tx?Array:Uint16Array,Fz=typeof Int32Array===Tx?Array:Int32Array,fL=typeof Float64Array===Tx?Array:Float64Array,kz={float:fL,int:Fz,ordinal:Array,number:Array,time:fL},LA;function Qd(n){return n>65535?bne:Tne}function zh(){return[1/0,-1/0]}function Cne(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function dL(n,e,t,r,i){var a=kz[t||"float"];if(i){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new a(r),u=0;ug[1]&&(g[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=He(o,function(x){return x.property}),c=0;cv[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)a=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var i=this._chunks,a=i[e],o=[];if(!a)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,h=this.count();c=0&&l<0)&&(s=p,l=d,u=0),d===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,i=this._count;if(r===Array){e=new r(i);for(var a=0;a=h&&x<=f||isNaN(x))&&(l[u++]=y),y++}p=!0}else if(a===2){for(var g=d[i[0]],S=d[i[1]],A=e[i[1]][0],T=e[i[1]][1],v=0;v=h&&x<=f||isNaN(x))&&(w>=A&&w<=T||isNaN(w))&&(l[u++]=y),y++}p=!0}}if(!p)if(a===1)for(var v=0;v=h&&x<=f||isNaN(x))&&(l[u++]=C)}else for(var v=0;ve[R][1])&&(P=!1)}P&&(l[u++]=t.getRawIndex(v))}return uv[1]&&(v[1]=g)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),i=r._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,h,f,d=new(Qd(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var p=1;pc&&(c=h,f=A)}I>0&&Ic-p&&(l=c-p,s.length=l);for(var y=0;yh[1]&&(h[1]=v),f[d++]=x}return a._count=d,a._indices=f,a._updateGetRawIdx(),a},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,i=this._chunks,a=0,o=this.count();al&&(l=h)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],i=this._chunks,a=0;a=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,i,a){return yy(t[a],this._dimensions[a])}LA={arrayRows:e,objectRows:function(t,r,i,a){return yy(t[r],this._dimensions[a])},keyedColumns:e,original:function(t,r,i,a){var o=t&&(t.value==null?t:t.value);return yy(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,r,i,a){return t[a]}}}(),n}(),Ene=In(),Rne={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Uz=function(){function n(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Hz(this.source)))},n.prototype.getSourceDimensionIndex=function(e){return Gt(this._dimNameMap.get(e),-1)},n.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},n.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Iz(this.source),r=!Vz(e),i="",a=[],o=0,s=0;o30}var $d=pt,pl=He,Pne=typeof Int32Array=="undefined"?Array:Int32Array,Dne="e\0\0",pL=-1,Ine=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Lne=["_approximateExtent"],vL,b0,ep,tp,BA,T0,OA,Bne=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,i=!1;Gz(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,r=e),r=r||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Wa;if(l&&!i.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,i=r[e];i||(i=r[e]={});var a=i[t];return a==null&&(a=this.getVisual(t),Ge(a)?a=a.slice():$d(a)&&(a=De({},a)),i[t]=a),a},n.prototype.setItemVisual=function(e,t,r){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,$d(t)?De(i,t):i[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){$d(e)?De(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?De(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;Zee(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){k(this._graphicEls,function(r,i){r&&e&&e.call(t,r,i)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:pl(this.dimensions,this._getDimInfo,this),this.hostModel)),BA(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];Tt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=r.apply(this,arguments);return t.apply(this,[i].concat(rx(arguments)))})},n.internalField=function(){vL=function(e){var t=e._invertedIndicesMap;k(t,function(r,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){r=t[i]=new Pne(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[t]=l}}}(),n}();const Cx=Bne;function One(n,e){return lE(n,e).dimensions}function lE(n,e){aE(n)||(n=oE(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],i=ft(),a=[],o=Fne(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Vz(o),l=r===n.dimensionsDefine,u=l?Hz(n):zz(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var h=ft(c),f=new Fz(o),d=0;d0&&(r.name=i+(a-1)),a++,e.set(i,a)}}function Fne(n,e,t,r){var i=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return k(e,function(a){var o;pt(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function kne(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var NA={},Une=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(e,t){var r=[];k(NA,function(i,a){var o=i.create(e,t);r=r.concat(o||[])}),this._coordinateSystems=r},n.prototype.update=function(e,t){k(this._coordinateSystems,function(r){r.update&&r.update(e,t)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(e,t){NA[e]=t},n.get=function(e){return NA[e]},n}();const Ex=Une;var Gne=function(){function n(e){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=e}return n}();function zne(n){var e=n.get("coordinateSystem"),t=new Gne(e),r=Hne[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var Hne={cartesian2d:function(n,e,t,r){var i=n.getReferringComponents("xAxis",br).models[0],a=n.getReferringComponents("yAxis",br).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",a),Hh(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Hh(a)&&(r.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var i=n.getReferringComponents("singleAxis",br).models[0];e.coordSysDims=["single"],t.set("single",i),Hh(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var i=n.getReferringComponents("polar",br).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),Hh(a)&&(r.set("radius",a),e.firstCategoryDimIndex=0),Hh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var i=n.ecModel,a=i.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();k(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Hh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Hh(n){return n.get("type")==="category"}function Wz(n,e,t){t=t||{};var r=t.byIndex,i=t.stackedCoordDimension,a,o,s;Vne(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,h,f;if(k(a,function(x,S){Ze(x)&&(a[S]=x={name:x}),l&&!x.isExtraCoord&&(!r&&!u&&x.ordinalMeta&&(u=x),!c&&x.type!=="ordinal"&&x.type!=="time"&&(!i||i===x.coordDim)&&(c=x))}),c&&!r&&!u&&(r=!0),c){h="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,p=c.type,y=0;k(a,function(x){x.coordDim===d&&y++});var g={name:h,coordDim:d,coordDimIndex:y,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},v={name:f,coordDim:f,coordDimIndex:y+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,p),v.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(v)):(a.push(g),a.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:h}}function Vne(n){return!Gz(n.schema)}function Jl(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function Xz(n,e){return Jl(n,e)?n.getCalculationInfo("stackResultDimension"):e}function Wne(n,e){var t=n.get("coordinateSystem"),r=Ex.get(t),i;return e&&e.coordSysDims&&(i=He(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=Sne(l)}return o})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function Xne(n,e,t){var r,i;return t&&k(n,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(n[r].otherDims.itemName=0),r}function Rx(n,e,t){t=t||{};var r=e.getSourceManager(),i,a=!1;n?(a=!0,i=oE(n)):(i=r.getSource(),a=i.sourceFormat===Wa);var o=zne(e),s=Wne(e,o),l=t.useEncodeDefaulter,u=Tt(l)?l:l?on(hne,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=lE(i,c),f=Xne(h.dimensions,t.createInvertedIndices,o),d=a?null:r.getSharedDataStore(h),p=Wz(e,{schema:h,store:d}),y=new Cx(h,e);y.setCalculationInfo(p);var g=f!=null&&Yne(i)?function(v,x,S,A){return A===f?S:this.defaultDimValueGetter(v,x,S,A)}:null;return y.hasItemOption=!1,y.initData(a?i:d,null,g),y}function Yne(n){if(n.sourceFormat===Wa){var e=Jne(n.data||[]);return!Ge(rd(e))}}function Jne(n){for(var e=0;e=0&&s.push(l)}),s}}function tu(n,e){return Nt(Nt({},n,!0),e,!0)}var qne=Math.log(2);function gb(n,e,t,r,i,a){var o=r+"-"+i,s=n.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function ere(n,e,t){for(var r=t?"invTrans":"trans",i=e[r],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),h=2*u,f=c.left,d=c.top;o.push(f,d),l=l&&a&&f===a[h]&&d===a[h+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[r]=t?gL(s,o):gL(o,s))}function Yz(n){return n.nodeName.toUpperCase()==="CANVAS"}var tre=/([&<>"'])/g,nre={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ai(n){return n==null?"":(n+"").replace(tre,function(e,t){return nre[t]})}const rre={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},ire={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var e_="ZH",uE="EN",Av=uE,_y={},cE={},Jz=sn.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(e_)>-1?e_:Av}():Av;function hE(n,e){n=n.toUpperCase(),cE[n]=new jn(e),_y[n]=e}function are(n){if(Ze(n)){var e=_y[n.toUpperCase()]||{};return n===e_||n===uE?mt(e):Nt(mt(e),mt(_y[Av]),!1)}else return Nt(mt(n),mt(_y[Av]),!1)}function yb(n){return cE[n]}function ore(){return cE[Av]}hE(uE,rre);hE(e_,ire);var fE=1e3,dE=fE*60,Vp=dE*60,Na=Vp*24,yL=Na*365,Mp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},C0="{yyyy}-{MM}-{dd}",_L={year:"{yyyy}",month:"{yyyy}-{MM}",day:C0,hour:C0+" "+Mp.hour,minute:C0+" "+Mp.minute,second:C0+" "+Mp.second,millisecond:Mp.none},kA=["year","month","day","hour","minute","second","millisecond"],Zz=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function _i(n,e){return n+="","0000".substr(0,e-n.length)+n}function Sf(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function sre(n){return n===Sf(n)}function lre(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function sg(n,e,t,r){var i=la(n),a=i[pE(t)](),o=i[Af(t)]()+1,s=Math.floor((o-1)/3)+1,l=i[Px(t)](),u=i["get"+(t?"UTC":"")+"Day"](),c=i[Mv(t)](),h=(c-1)%12+1,f=i[Dx(t)](),d=i[Ix(t)](),p=i[Lx(t)](),y=r instanceof jn?r:yb(r||Jz)||ore(),g=y.getModel("time"),v=g.get("month"),x=g.get("monthAbbr"),S=g.get("dayOfWeek"),A=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,_i(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,_i(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,_i(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,A[u]).replace(/{e}/g,u+"").replace(/{HH}/g,_i(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,_i(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,_i(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,_i(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,_i(p,3)).replace(/{S}/g,p+"")}function ure(n,e,t,r,i){var a=null;if(Ze(t))a=t;else if(Tt(t))a=t(n.value,e,{level:n.level});else{var o=De({},Mp);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Ge(a)){var h=n.level==null?0:n.level>=0?n.level:a.length+n.level;h=Math.min(h,a.length-1),a=a[h]}}return sg(new Date(n.value),a,i,r)}function jz(n,e){var t=la(n),r=t[Af(e)]()+1,i=t[Px(e)](),a=t[Mv(e)](),o=t[Dx(e)](),s=t[Ix(e)](),l=t[Lx(e)](),u=l===0,c=u&&s===0,h=c&&o===0,f=h&&a===0,d=f&&i===1,p=d&&r===1;return p?"year":d?"month":f?"day":h?"hour":c?"minute":u?"second":"millisecond"}function xL(n,e,t){var r=Cn(n)?la(n):n;switch(e=e||jz(n,t),e){case"year":return r[pE(t)]();case"half-year":return r[Af(t)]()>=6?1:0;case"quarter":return Math.floor((r[Af(t)]()+1)/4);case"month":return r[Af(t)]();case"day":return r[Px(t)]();case"half-day":return r[Mv(t)]()/24;case"hour":return r[Mv(t)]();case"minute":return r[Dx(t)]();case"second":return r[Ix(t)]();case"millisecond":return r[Lx(t)]()}}function pE(n){return n?"getUTCFullYear":"getFullYear"}function Af(n){return n?"getUTCMonth":"getMonth"}function Px(n){return n?"getUTCDate":"getDate"}function Mv(n){return n?"getUTCHours":"getHours"}function Dx(n){return n?"getUTCMinutes":"getMinutes"}function Ix(n){return n?"getUTCSeconds":"getSeconds"}function Lx(n){return n?"getUTCMilliseconds":"getMilliseconds"}function cre(n){return n?"setUTCFullYear":"setFullYear"}function Kz(n){return n?"setUTCMonth":"setMonth"}function qz(n){return n?"setUTCDate":"setDate"}function Qz(n){return n?"setUTCHours":"setHours"}function $z(n){return n?"setUTCMinutes":"setMinutes"}function eH(n){return n?"setUTCSeconds":"setSeconds"}function tH(n){return n?"setUTCMilliseconds":"setMilliseconds"}function hre(n,e,t,r,i,a,o,s){var l=new xn({style:{text:n,font:e,align:t,verticalAlign:r,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function vE(n){if(!GC(n))return Ze(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function gE(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var ld=TC;function _b(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&ka(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?la(n):n;if(isNaN(+l)){if(s)return"-"}else return sg(l,r,t)}if(e==="ordinal")return Fy(n)?i(n):Cn(n)&&a(n)?n+"":"-";var u=mv(n);return a(u)?vE(u):Fy(n)?i(n):typeof n=="boolean"?n+"":"-"}var SL=["a","b","c","d","e","f","g"],UA=function(n,e){return"{"+n+(e==null?"":e)+"}"};function mE(n,e,t){Ge(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],a=0;a':'';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function dre(n,e,t){(n==="week"||n==="month"||n==="quarter"||n==="half-year"||n==="year")&&(n=`MM-dd +yyyy`);var r=la(e),i=t?"getUTC":"get",a=r[i+"FullYear"](),o=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return n=n.replace("MM",_i(o,2)).replace("M",o).replace("yyyy",a).replace("yy",_i(a%100+"",2)).replace("dd",_i(s,2)).replace("d",s).replace("hh",_i(l,2)).replace("h",l).replace("mm",_i(u,2)).replace("m",u).replace("ss",_i(c,2)).replace("s",c).replace("SSS",_i(h,3)),n}function pre(n){return n&&n.charAt(0).toUpperCase()+n.substr(1)}function Uc(n,e){return e=e||"transparent",Ze(n)?n:pt(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function AL(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var xy=k,rH=["left","right","top","bottom","width","height"],gc=[["width","left","right"],["height","top","bottom"]];function yE(n,e,t,r,i){var a=0,o=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),h=e.childAt(u+1),f=h&&h.getBoundingRect(),d,p;if(n==="horizontal"){var y=c.width+(f?-f.x+c.x:0);d=a+y,d>r||l.newline?(a=0,d=y,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(f?-f.y+c.y:0);p=o+g,p>i||l.newline?(a+=s+t,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),n==="horizontal"?a=d+t:o=p+t)})}var Pc=yE;on(yE,"vertical");on(yE,"horizontal");function Ri(n,e,t){t=ld(t||0);var r=e.width,i=e.height,a=Lt(n.left,r),o=Lt(n.top,i),s=Lt(n.right,r),l=Lt(n.bottom,i),u=Lt(n.width,r),c=Lt(n.height,i),h=t[2]+t[0],f=t[1]+t[3],d=n.aspect;switch(isNaN(u)&&(u=r-s-f-a),isNaN(c)&&(c=i-l-h-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(a)&&(a=r-s-u-f),isNaN(o)&&(o=i-l-c-h),n.left||n.right){case"center":a=r/2-u/2-t[3];break;case"right":a=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=i/2-c/2-t[0];break;case"bottom":o=i-c-h;break}a=a||0,o=o||0,isNaN(u)&&(u=r-f-a-(s||0)),isNaN(c)&&(c=i-h-o-(l||0));var p=new ln(a+t[3],o+t[0],u,c);return p.margin=t,p}function _E(n,e,t,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||n,a.x=n.x,a.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new ln(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var h=Ri(bt({width:u.width,height:u.height},e),t,r),f=o?h.x-u.x:0,d=s?h.y-u.y:0;return l==="raw"?(a.x=f,a.y=d):(a.x+=f,a.y+=d),a===n&&n.markRedraw(),!0}function vre(n,e){return n[gc[e][0]]!=null||n[gc[e][1]]!=null&&n[gc[e][2]]!=null}function wv(n){var e=n.layoutMode||n.constructor.layoutMode;return pt(e)?e:e?{type:e}:null}function Zl(n,e,t){var r=t&&t.ignoreSize;!Ge(r)&&(r=[r,r]);var i=o(gc[0],0),a=o(gc[1],1);u(gc[0],n,i),u(gc[1],n,a);function o(c,h){var f={},d=0,p={},y=0,g=2;if(xy(c,function(S){p[S]=n[S]}),xy(c,function(S){s(e,S)&&(f[S]=p[S]=e[S]),l(f,S)&&d++,l(p,S)&&y++}),r[h])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(y===g||!d)return p;if(d>=g)return f;for(var v=0;v=0;l--)s=Nt(s,i[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var i=t+"Index",a=t+"Id";return ig(this.ecModel,t,{index:this.get(i,!0),id:this.get(a,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(jn);jU(cd,jn);ix(cd);jne(cd);Kne(cd,mre);function mre(n){var e=[];return k(cd.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=He(e,function(t){return Go(t).main}),n!=="dataset"&&en(e,"dataset")<=0&&e.unshift("dataset"),e}const an=cd;var ML=In(),yre=In(),xE=function(){function n(){}return n.prototype.getColorFromPalette=function(e,t,r){var i=$n(this.get("color",!0)),a=this.get("colorLayer",!0);return aH(this,ML,i,a,e,t,r)},n.prototype.clearColorPalette=function(){xre(this,ML)},n}();function wL(n,e,t,r){var i=$n(n.get(["aria","decal","decals"]));return aH(n,yre,i,null,e,t,r)}function _re(n,e){for(var t=n.length,r=0;re)return n[r];return n[t-1]}function aH(n,e,t,r,i,a,o){a=a||n;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!r?t:_re(r,o);if(c=c||t,!(!c||!c.length)){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function xre(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var Sre=/\{@(.+?)\}/g,oH=function(){function n(){}return n.prototype.getDataParams=function(e,t){var r=this.getData(t),i=this.getRawValue(e,t),a=r.getRawIndex(e),o=r.getName(e),s=r.getRawDataItem(e),l=r.getItemVisual(e,"style"),u=l&&l[r.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,h=this.mainType,f=h==="series",d=r.userOutput&&r.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:a,data:s,dataType:t,value:i,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(e,t,r,i,a,o){t=t||"normal";var s=this.getData(r),l=this.getDataParams(e,r);if(o&&(l.value=o.interpolatedValue),i!=null&&Ge(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Tt(a))return l.status=t,l.dimensionIndex=i,a(l);if(Ze(a)){var c=mE(a,l);return c.replace(Sre,function(h,f){var d=f.length,p=f;p.charAt(0)==="["&&p.charAt(d-1)==="]"&&(p=+p.slice(1,d-1));var y=zf(s,e,p);if(o&&Ge(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(y=o.interpolatedValue[g])}return y!=null?y+"":""})}},n.prototype.getRawValue=function(e,t){return zf(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function bL(n){var e,t;return pt(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function Wp(n){return new Are(n)}var Are=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(x){return!(x>=1)&&(x=1),x}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(h||d1&&r>0?s:o}};return a;function o(){return e=n?null:l9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,i,a;if(E0(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Ul:Wa,a=[];var h=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},d=Gt(h.seriesLayoutBy,f.seriesLayoutBy)||null,p=Gt(h.sourceHeader,f.sourceHeader),y=Gt(h.dimensions,f.dimensions),g=d!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||y;i=g?[pb(s,{seriesLayoutBy:d,sourceHeader:p,dimensions:y},l)]:[]}else{var v=e;if(r){var x=this._applyTransform(t);i=x.sourceList,a=x.upstreamSignList}else{var S=v.get("source",!0);i=[pb(S,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&CL(a)}var o,s=[],l=[];return k(e,function(u){u.prepareSource();var c=u.getSource(i||0),h="";i!=null&&!c&&CL(h),s.push(c),l.push(u._getVersionSign())}),r?o=Pre(r,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[dne(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return U(n.blocks,function(i){var a=i5(i);a>=e&&(e=a+ +(r&&(!a||Zb(i)&&!i.noHeader)))}),e}return 0}function Uae(n,e,t,r){var i=e.noHeader,a=zae(i5(e)),o=[],s=e.blocks||[];Pi(!s||He(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(kt(u,l)){var c=new Eie(u[l],null);s.sort(function(p,y){return c.evaluate(p.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}U(s,function(p,y){var g=e.valueFormatter,v=r5(p)(g?Oe(Oe({},n),{valueFormatter:g}):n,p,y>0?a.html:0,r);v!=null&&o.push(v)});var h=n.renderMode==="richText"?o.join(a.richText):Kb(o.join(""),i?t:a.html);if(i)return h;var f=Jb(e.header,"ordinal",n.useUTC),d=n5(r,n.renderMode).nameStyle;return n.renderMode==="richText"?a5(n,f,d)+a.richText+h:Kb('
'+wi(f)+"
"+h,t)}function Gae(n,e,t,r){var i=n.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(A){return A=He(A)?A:[A],Ve(A,function(b,w){return Jb(b,He(d)?d[w]:d,u)})};if(!(a&&o)){var h=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),f=a?"":Jb(l,"ordinal",u),d=e.valueType,p=o?[]:c(e.value),y=!s||!a,g=!s&&a,v=n5(r,i),x=v.nameStyle,S=v.valueStyle;return i==="richText"?(s?"":h)+(a?"":a5(n,f,x))+(o?"":Wae(n,p,y,g,S)):Kb((s?"":h)+(a?"":Hae(f,!s,x))+(o?"":Vae(p,y,g,S)),t)}}function fB(n,e,t,r,i,a){if(n){var o=r5(n),s={useUTC:i,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,a)}}function zae(n){return{html:Nae[n],richText:kae[n]}}function Kb(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function Hae(n,e,t){var r=e?"margin-left:2px":"";return''+wi(n)+""}function Vae(n,e,t,r){var i=t?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return n=He(n)?n:[n],''+Ve(n,function(o){return wi(o)}).join("  ")+""}function a5(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function Wae(n,e,t,r,i){var a=[i],o=r?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(He(e)?e.join(" "):e,a)}function o5(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Yc(r)}function s5(n,e){var t=n.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var cM=function(){function n(){this.richTextStyles={},this._nextStyleNameId=Pz()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var i=r==="richText"?this._generateStyleName():null,a=ZH({color:t,type:e,renderMode:r,markerId:i});return $e(a)?a:(this.richTextStyles[i]=a.style,a.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};He(t)?U(t,function(a){return Oe(r,a)}):Oe(r,t);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+e+"}"},n}();function Xae(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=He(s),u=o5(e,t),c,h,f,d;if(o>1||l&&!o){var p=Yae(s,e,t,a,u);c=p.inlineValues,h=p.inlineValueTypes,f=p.blocks,d=p.inlineValues[0]}else if(o){var y=i.getDimensionInfo(a[0]);d=c=Kf(i,t,a[0]),h=y.type}else d=c=l?s[0]:s;var g=gE(e),v=g&&e.name||"",x=i.getName(t),S=r?v:x;return rs("section",{header:v,noHeader:r||!g,sortParam:d,blocks:[rs("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Ua(S),value:c,valueType:h})].concat(f||[])})}function Yae(n,e,t,r,i){var a=e.getData(),o=Ga(n,function(h,f,d){var p=a.getDimensionInfo(d);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?U(r,function(h){c(Kf(a,t,h),h)}):U(n,c);function c(h,f){var d=a.getDimensionInfo(f);!d||d.otherDims.tooltip===!1||(o?u.push(rs("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:h,valueType:d.type})):(s.push(h),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var _l=Ln();function Zy(n,e){return n.getName(e)||n.getId(e)}var jae="__universalTransitionEnabled",aS=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,i){this.seriesIndex=this.componentIndex,this.dataTask=iv({count:Zae,reset:Kae}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var a=_l(this).sourceManager=new Fae(this);a.prepareSource();var o=this.getInitialData(t,i);pB(o,this),this.dataTask.context.data=o,_l(this).dataBeforeProcessed=o,dB(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var i=zv(this),a=i?yd(t):{},o=this.subType;sn.hasClass(o)&&(o+="Series"),Ut(t,r.getTheme().get(this.subType)),Ut(t,this.getDefaultOption()),__(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&Ql(t,a,i)},e.prototype.mergeOption=function(t,r){t=Ut(this.option,t,!0),this.fillDataTextStyle(t.data);var i=zv(this);i&&Ql(this.option,t,i);var a=_l(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,r);pB(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,_l(this).dataBeforeProcessed=o,dB(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Xi(t))for(var r=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,i){var a=this.ecModel,o=ZE.prototype.getColorFromPalette.call(this,t,r,i);return o||(o=a.getColorFromPalette(t,r,i)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(r);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},e.prototype.isSelected=function(t,r){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(r);return(i==="all"||i[Zy(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[jae])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var i,a,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){yt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return sn.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(sn);Xr(aS,QH);Xr(aS,ZE);HG(aS,sn);function dB(n){var e=n.name;gE(n)||(n.name=Jae(n)||e)}function Jae(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return U(t,function(i){var a=e.getDimensionInfo(i);a.displayName&&r.push(a.displayName)}),r.join(" ")}function Zae(n){return n.model.getRawData().count()}function Kae(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),qae}function qae(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function pB(n,e){U(GG(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,ln($ae,e))})}function $ae(n,e){var t=qb(n);return t&&t.setOutputEnd((e||this).count()),e}function qb(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(n.uid))}return r}}const ca=aS;var Qae=Tn.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,r=e.cy,i=e.width/2,a=e.height/2;n.moveTo(t,r-a),n.lineTo(t+i,r+a),n.lineTo(t-i,r+a),n.closePath()}}),eoe=Tn.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,r=e.cy,i=e.width/2,a=e.height/2;n.moveTo(t,r-a),n.lineTo(t+i,r),n.lineTo(t,r+a),n.lineTo(t-i,r),n.closePath()}}),toe=Tn.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.x,r=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=r-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),f=Math.cos(u),d=o*.6,p=o*.7;n.moveTo(t-c,l+s),n.arc(t,l,o,Math.PI-u,Math.PI*2+u),n.bezierCurveTo(t+c-h*d,l+s+f*d,t,r-p,t,r),n.bezierCurveTo(t,r-p,t-c+h*d,l+s+f*d,t-c,l+s),n.closePath()}}),noe=Tn.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.height,r=e.width,i=e.x,a=e.y,o=r/3*2;n.moveTo(i,a),n.lineTo(i+o,a+t),n.lineTo(i,a+t/4*3),n.lineTo(i-o,a+t),n.lineTo(i,a),n.closePath()}}),roe={line:Ti,rect:xn,roundRect:xn,square:xn,circle:ho,diamond:eoe,pin:toe,arrow:noe,triangle:Qae},ioe={line:function(n,e,t,r,i){i.x1=n,i.y1=e+r/2,i.x2=n+t,i.y2=e+r/2},rect:function(n,e,t,r,i){i.x=n,i.y=e,i.width=t,i.height=r},roundRect:function(n,e,t,r,i){i.x=n,i.y=e,i.width=t,i.height=r,i.r=Math.min(t,r)/4},square:function(n,e,t,r,i){var a=Math.min(t,r);i.x=n,i.y=e,i.width=a,i.height=a},circle:function(n,e,t,r,i){i.cx=n+t/2,i.cy=e+r/2,i.r=Math.min(t,r)/2},diamond:function(n,e,t,r,i){i.cx=n+t/2,i.cy=e+r/2,i.width=t,i.height=r},pin:function(n,e,t,r,i){i.x=n+t/2,i.y=e+r/2,i.width=t,i.height=r},arrow:function(n,e,t,r,i){i.x=n+t/2,i.y=e+r/2,i.width=t,i.height=r},triangle:function(n,e,t,r,i){i.cx=n+t/2,i.cy=e+r/2,i.width=t,i.height=r}},T_={};U(roe,function(n,e){T_[e]=new n});var aoe=Tn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,e,t){var r=c_(n,e,t),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(r.y=t.y+t.height*.4),r},buildPath:function(n,e,t){var r=e.symbolType;if(r!=="none"){var i=T_[r];i||(r="rect",i=T_[r]),ioe[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(n,i.shape,t)}}});function ooe(n,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=n,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=n:t.fill=n,this.markRedraw()}}function ui(n,e,t,r,i,a,o){var s=n.indexOf("empty")===0;s&&(n=n.substr(5,1).toLowerCase()+n.substr(6));var l;return n.indexOf("image://")===0?l=RE(n.slice(8),new cn(e,t,r,i),o?"center":"cover"):n.indexOf("path://")===0?l=Vx(n.slice(7),{},new cn(e,t,r,i),o?"center":"cover"):l=new aoe({shape:{symbolType:n,x:e,y:t,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=ooe,a&&l.setColor(a),l}function qE(n){return He(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function oS(n,e){if(n!=null)return He(n)||(n=[n,n]),[Ft(n[0],e[0])||0,Ft(Vt(n[1],n[0]),e[1])||0]}var soe=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return eS(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var r=new Wt,i=ui("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);r.add(i),i.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*.8,u=ui(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);r.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(ca);const loe=soe;function sS(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var i=Kf(n,e,t[0]);return i!=null?i+"":null}else if(r){for(var a=[],o=0;o=0&&r.push(e[a])}return r.join(" ")}var uoe=function(n){be(e,n);function e(t,r,i,a){var o=n.call(this)||this;return o.updateData(t,r,i,a),o}return e.prototype._createSymbol=function(t,r,i,a,o){this.removeAll();var s=ui(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=coe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){jf(this.childAt(0))},e.prototype.downplay=function(){Jf(this.childAt(0))},e.prototype.setZ=function(t,r){var i=this.childAt(0);i.zlevel=t,i.z=r},e.prototype.setDraggable=function(t,r){var i=this.childAt(0);i.draggable=t,i.cursor=!r&&t?"move":i.cursor},e.prototype.updateData=function(t,r,i,a){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var h=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,h)}else{var f=this.childAt(0);f.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(d):hr(f,d,s,r),Nv(f)}if(this._updateCommon(t,r,l,i,a),u){var f=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Ri(f,d,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,i,a,o){var s=this.childAt(0),l=t.hostModel,u,c,h,f,d,p,y,g,v;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,h=a.selectItemStyle,f=a.focus,d=a.blurScope,y=a.labelStatesModels,g=a.hoverScale,v=a.cursorStyle,p=a.emphasisDisabled),!a||t.hasItemOption){var x=a&&a.itemModel?a.itemModel:t.getItemModel(r),S=x.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),h=x.getModel(["select","itemStyle"]).getItemStyle(),c=x.getModel(["blur","itemStyle"]).getItemStyle(),f=S.get("focus"),d=S.get("blurScope"),p=S.get("disabled"),y=Zs(x),g=S.getShallow("scale"),v=x.getShallow("cursor")}var A=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(A||0)*Math.PI/180||0);var b=oS(t.getItemVisual(r,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),v&&s.attr("cursor",v);var w=t.getItemVisual(r,"style"),C=w.fill;if(s instanceof Ii){var P=s.style;s.useStyle(Oe({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},w))}else s.__isEmptyBrush?s.useStyle(Oe({},w)):s.useStyle(w),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var E=t.getItemVisual(r,"liftZ"),R=this._z2;E!=null?R==null&&(this._z2=s.z2,s.z2+=E):R!=null&&(s.z2=R,this._z2=null);var D=o&&o.useNameLabel;Js(s,y,{labelFetcher:l,labelDataIndex:r,defaultText:B,inheritColor:C,defaultOpacity:w.opacity});function B(z){return D?t.getName(z):sS(t,z)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var k=s.ensureState("emphasis");k.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var N=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;k.scaleX=this._sizeX*N,k.scaleY=this._sizeY*N,this.setSymbolScale(1),ql(this,f,d,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,i){var a=this.childAt(0),o=rn(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Fv(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Fv(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return qE(t.getItemVisual(r,"symbolSize"))},e}(Wt);function coe(n,e){this.parent.drift(n,e)}const $E=uoe;function hM(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function vB(n){return n!=null&&!yt(n)&&(n={isIgnore:n}),n||{}}function gB(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Zs(e),cursorStyle:e.get("cursor")}}var hoe=function(){function n(e){this.group=new Wt,this._SymbolCtor=e||$E}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=vB(t);var r=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=gB(e),u={disableAnimation:s},c=t.getSymbolPoint||function(h){return e.getItemLayout(h)};a||r.removeAll(),e.diff(a).add(function(h){var f=c(h);if(hM(e,f,h,t)){var d=new o(e,h,l,u);d.setPosition(f),e.setItemGraphicEl(h,d),r.add(d)}}).update(function(h,f){var d=a.getItemGraphicEl(f),p=c(h);if(!hM(e,p,h,t)){r.remove(d);return}var y=e.getItemVisual(h,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==y)r.remove(d),d=new o(e,h,l,u),d.setPosition(p);else{d.updateData(e,h,l,u);var v={x:p[0],y:p[1]};s?d.attr(v):hr(d,v,i)}r.add(d),e.setItemGraphicEl(h,d)}).remove(function(h){var f=a.getItemGraphicEl(h);f&&f.fadeOut(function(){r.remove(f)},i)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,i){var a=e._getSymbolPoint(i);r.setPosition(a),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=gB(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=vB(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0?t=r[0]:r[1]<0&&(t=r[1]),t}function c5(n,e,t,r){var i=NaN;n.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=n.valueStart);var a=n.baseDataOffset,o=[];return o[a]=t.get(n.baseDim,r),o[1-a]=i,e.dataToPoint(o)}var h5=typeof Float32Array!="undefined",poe=h5?Float32Array:Array;function Fs(n){return He(n)?h5?new Float32Array(n):n:new poe(n)}function voe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,i){t.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function goe(n,e,t,r,i,a,o,s){for(var l=voe(n,e),u=[],c=[],h=[],f=[],d=[],p=[],y=[],g=u5(i,e,o),v=n.getLayout("points")||[],x=e.getLayout("points")||[],S=0;S=i||y<0)break;if(kc(v,x)){if(l){y+=a;continue}break}if(y===t)n[a>0?"moveTo":"lineTo"](v,x),h=v,f=x;else{var S=v-u,A=x-c;if(S*S+A*A<.5){y+=a;continue}if(o>0){for(var b=y+a,w=e[b*2],C=e[b*2+1];w===v&&C===x&&g=r||kc(w,C))d=v,p=x;else{R=w-u,D=C-c;var N=v-u,z=w-v,X=x-c,ne=C-x,H=void 0,K=void 0;if(s==="x"){H=Math.abs(N),K=Math.abs(z);var Q=R>0?1:-1;d=v-Q*H*o,p=x,B=v+Q*K*o,k=x}else if(s==="y"){H=Math.abs(X),K=Math.abs(ne);var le=D>0?1:-1;d=v,p=x-le*H*o,B=v,k=x+le*K*o}else H=Math.sqrt(N*N+X*X),K=Math.sqrt(z*z+ne*ne),E=K/(K+H),d=v-R*o*(1-E),p=x-D*o*(1-E),B=v+R*o*E,k=x+D*o*E,B=xl(B,Sl(w,v)),k=xl(k,Sl(C,x)),B=Sl(B,xl(w,v)),k=Sl(k,xl(C,x)),R=B-v,D=k-x,d=v-R*H/K,p=x-D*H/K,d=xl(d,Sl(u,v)),p=xl(p,Sl(c,x)),d=Sl(d,xl(u,v)),p=Sl(p,xl(c,x)),R=v-d,D=x-p,B=v+R*K/H,k=x+D*K/H}n.bezierCurveTo(h,f,d,p,v,x),h=B,f=k}else n.lineTo(v,x)}u=v,c=x,y+=a}return g}var f5=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),moe=function(n){be(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new f5},e.prototype.buildPath=function(t,r){var i=r.points,a=0,o=i.length/2;if(r.connectNulls){for(;o>0&&kc(i[o*2-2],i[o*2-1]);o--);for(;a=0){var A=u?(p-l)*S+l:(d-s)*S+s;return u?[t,A]:[A,t]}s=d,l=p;break;case o.C:d=a[h++],p=a[h++],y=a[h++],g=a[h++],v=a[h++],x=a[h++];var b=u?p_(s,d,y,v,t,c):p_(l,p,g,x,t,c);if(b>0)for(var w=0;w=0){var A=u?br(l,p,g,x,C):br(s,d,y,v,C);return u?[t,A]:[A,t]}}s=v,l=x;break}}},e}(Tn),yoe=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(f5),_oe=function(n){be(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new yoe},e.prototype.buildPath=function(t,r){var i=r.points,a=r.stackedOnPoints,o=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&kc(i[s*2-2],i[s*2-1]);s--);for(;oe){a?t.push(o(a,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),a=l}return t}function Coe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var i,a,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=r[o];break}}if(a){var l=e.getAxis(i),u=Ve(a.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,h=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var f=Toe(u,i==="x"?t.getWidth():t.getHeight()),d=f.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=10,y=f[0].coord-p,g=f[d-1].coord+p,v=g-y;if(v<.001)return"transparent";U(f,function(S){S.offset=(S.coord-y)/v}),f.push({offset:d?f[d-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:h[0]||"transparent"});var x=new Mg(0,0,0,0,f,!0);return x[i]=y,x[i+"2"]=g,x}}}function Eoe(n,e,t){var r=n.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(i&&Roe(a,e))){var o=e.mapDimension(a.dim),s={};return U(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Roe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function Poe(n,e){return isNaN(n)||isNaN(e)}function Doe(n){for(var e=n.length/2;e>0&&Poe(n[e*2-2],n[e*2-1]);e--);return e-1}function MB(n,e){return[n[e*2],n[e*2+1]]}function Ioe(n,e,t){for(var r=n.length/2,i=t==="x"?0:1,a,o,s=0,l=-1,u=0;u=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function g5(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var Q=y.getState("emphasis").style;Q.lineWidth=+y.style.lineWidth+1}rn(y).seriesIndex=t.seriesIndex,ql(y,ne,H,K);var le=AB(t.get("smooth")),he=t.get("smoothMonotone");if(y.setShape({smooth:le,smoothMonotone:he,connectNulls:P}),g){var re=l.getCalculationInfo("stackedOnSeries"),ce=0;g.useStyle(Pt(c.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),re&&(ce=AB(re.get("smooth"))),g.setShape({smooth:le,stackedOnSmooth:ce,smoothMonotone:he,connectNulls:P}),Zf(g,t,"areaStyle"),rn(g).seriesIndex=t.seriesIndex,ql(g,ne,H,K)}var _e=function(ge){a._changePolyState(ge)};l.eachItemGraphicEl(function(ge){ge&&(ge.onHoverStateChange=_e)}),this._polyline.onHoverStateChange=_e,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=h,this._step=D,this._valueOrigin=A,t.get("triggerLineEvent")&&(this.packEventData(t,y),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,r){rn(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,i,a){var o=t.getData(),s=Xc(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],h=l[s*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var f=t.get("zlevel")||0,d=t.get("z")||0;u=new $E(o,s),u.x=c,u.y=h,u.setZ(f,d);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=d,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else si.prototype.highlight.call(this,t,r,i,a)},e.prototype.downplay=function(t,r,i,a){var o=t.getData(),s=Xc(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else si.prototype.downplay.call(this,t,r,i,a)},e.prototype._changePolyState=function(t){var r=this._polygon;Fb(this._polyline,t),r&&Fb(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new moe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new _oe({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,r,i){var a,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):r.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");Dt(c)&&(c=c(null));var h=u.get("animationDelay")||0,f=Dt(h)?h(null):h;t.eachItemGraphicEl(function(d,p){var y=d;if(y){var g=[d.x,d.y],v=void 0,x=void 0,S=void 0;if(i)if(o){var A=i,b=r.pointToCoord(g);a?(v=A.startAngle,x=A.endAngle,S=-b[1]/180*Math.PI):(v=A.r0,x=A.r,S=b[0])}else{var w=i;a?(v=w.x,x=w.x+w.width,S=d.x):(v=w.y+w.height,x=w.y,S=d.y)}var C=x===v?0:(S-v)/(x-v);l&&(C=1-C);var P=Dt(h)?h(p):c*C+f,E=y.getSymbolPath(),R=E.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:P}),R&&R.animateFrom({style:{opacity:0}},{duration:300,delay:P}),E.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,i){var a=t.getModel("endLabel");if(g5(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Sn({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Doe(l);c>=0&&(Js(s,Zs(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:c,defaultText:function(h,f,d){return d!=null?l5(o,d):sS(o,h)},enableTextSetter:!0},Loe(a,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),f=i.hostModel,d=f.get("connectNulls"),p=s.get("precision"),y=s.get("distance")||0,g=l.getBaseAxis(),v=g.isHorizontal(),x=g.inverse,S=r.shape,A=x?v?S.x:S.y+S.height:v?S.x+S.width:S.y,b=(v?y:0)*(x?-1:1),w=(v?0:-y)*(x?-1:1),C=v?"x":"y",P=Ioe(h,A,C),E=P.range,R=E[1]-E[0],D=void 0;if(R>=1){if(R>1&&!d){var B=MB(h,E[0]);u.attr({x:B[0]+b,y:B[1]+w}),o&&(D=f.getRawValue(E[0]))}else{var B=c.getPointOn(A,C);B&&u.attr({x:B[0]+b,y:B[1]+w});var k=f.getRawValue(E[0]),N=f.getRawValue(E[1]);o&&(D=qne(i,p,k,N,P.t))}a.lastFrameIndex=E[0]}else{var z=t===1||a.lastFrameIndex>0?E[0]:0,B=MB(h,z);o&&(D=f.getRawValue(z)),u.attr({x:B[0]+b,y:B[1]+w})}if(o){var X=Zx(u);typeof X.setLabelText=="function"&&X.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,r,i,a,o,s,l){var u=this._polyline,c=this._polygon,h=t.hostModel,f=goe(this._data,t,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),d=f.current,p=f.stackedOnCurrent,y=f.next,g=f.stackedOnNext;if(o&&(d=Al(f.current,i,o,l),p=Al(f.stackedOnCurrent,i,o,l),y=Al(f.next,i,o,l),g=Al(f.stackedOnNext,i,o,l)),SB(d,y)>3e3||c&&SB(p,g)>3e3){u.stopAnimation(),u.setShape({points:y}),c&&(c.stopAnimation(),c.setShape({points:y,stackedOnPoints:g}));return}u.shape.__points=f.current,u.shape.points=d;var v={shape:{points:y}};f.current!==d&&(v.shape.__points=f.next),u.stopAnimation(),hr(u,v,h),c&&(c.setShape({points:d,stackedOnPoints:p}),c.stopAnimation(),hr(c,{shape:{stackedOnPoints:g}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var x=[],S=f.status,A=0;Ae&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),h=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(h||1),d=Math.round(s/f);if(isFinite(d)&&d>1){a==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var p=void 0;$e(a)?p=Noe[a]:Dt(a)&&(p=a),p&&e.setData(i.downSample(i.mapDimension(u.dim),1/d,p,koe))}}}}}function Uoe(n){n.registerChartView(Ooe),n.registerSeriesModel(loe),n.registerLayout(Foe("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,m5("line"))}var Goe="__ec_stack_";function nR(n){return n.get("stack")||Goe+n.seriesIndex}function rR(n){return n.dim+n.index}function y5(n,e){var t=[];return e.eachSeriesByType(n,function(r){A5(r)&&t.push(r)}),t}function zoe(n){var e={};U(n,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var h=l.getData(),f=c.dim+"_"+c.index,d=h.getDimensionIndex(h.mapDimension(c.dim)),p=h.getStore(),y=0,g=p.count();y0&&(a=a===null?s:Math.min(a,s))}t[r]=a}}return t}function _5(n){var e=zoe(n),t=[];return U(n,function(r){var i=r.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],c=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),f=Math.abs(h[1]-h[0]);s=u?c/f*u:c}else{var d=r.getData();s=Math.abs(o[1]-o[0])/d.count()}var p=Ft(r.get("barWidth"),s),y=Ft(r.get("barMaxWidth"),s),g=Ft(r.get("barMinWidth")||(M5(r)?.5:1),s),v=r.get("barGap"),x=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:y,barMinWidth:g,barGap:v,barCategoryGap:x,axisKey:rR(a),stackId:nR(r)})}),Hoe(t)}function Hoe(n){var e={};U(n,function(r,i){var a=r.axisKey,o=r.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var h=r.barMaxWidth;h&&(l[u].maxWidth=h);var f=r.barMinWidth;f&&(l[u].minWidth=f);var d=r.barGap;d!=null&&(s.gap=d);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return U(e,function(r,i){t[i]={};var a=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=jt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Ft(s,o),c=Ft(r.gap,1),h=r.remainedWidth,f=r.autoWidthCount,d=(h-u)/(f+(f-1)*c);d=Math.max(d,0),U(a,function(v){var x=v.maxWidth,S=v.minWidth;if(v.width){var A=v.width;x&&(A=Math.min(A,x)),S&&(A=Math.max(A,S)),v.width=A,h-=A+c*A,f--}else{var A=d;x&&xA&&(A=S),A!==d&&(v.width=A,h-=A+c*A,f--)}}),d=(h-u)/(f+(f-1)*c),d=Math.max(d,0);var p=0,y;U(a,function(v,x){v.width||(v.width=d),y=v,p+=v.width*(1+c)}),y&&(p-=y.width*c);var g=-p/2;U(a,function(v,x){t[i][x]=t[i][x]||{bandWidth:o,offset:g,width:v.width},g+=v.width*(1+c)})}),t}function Voe(n,e,t){if(n&&e){var r=n[rR(e)];return r!=null&&t!=null?r[nR(t)]:r}}function x5(n,e){var t=y5(n,e),r=_5(t);U(t,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=nR(i),u=r[rR(s)][l],c=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function S5(n){return{seriesType:n,plan:QE(),reset:function(e){if(A5(e)){var t=e.getData(),r=e.coordinateSystem,i=r.getBaseAxis(),a=r.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),c=t.getCalculationInfo("stackResultDimension"),h=$l(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=a.isHorizontal(),d=Woe(i,a),p=M5(e),y=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),v=t.getLayout("size"),x=t.getLayout("offset");return{progress:function(S,A){for(var b=S.count,w=p&&Fs(b*3),C=p&&l&&Fs(b*3),P=p&&Fs(b),E=r.master.getRect(),R=f?E.width:E.height,D,B=A.getStore(),k=0;(D=S.next())!=null;){var N=B.get(h?g:o,D),z=B.get(s,D),X=d,ne=void 0;h&&(ne=+N-B.get(o,D));var H=void 0,K=void 0,Q=void 0,le=void 0;if(f){var he=r.dataToPoint([N,z]);if(h){var re=r.dataToPoint([ne,z]);X=re[0]}H=X,K=he[1]+x,Q=he[0]-X,le=v,Math.abs(Q)y){x=(b+v)/2;break}A===1&&(S=w-p[0].tickValue)}x==null&&(v?v&&(x=p[p.length-1].coord):x=p[0].coord),s[d]=f.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(ca);ca.registerClass(w5);const C_=w5;var Xoe=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return eS(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,i){return i.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ou(C_.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(C_);const Yoe=Xoe;var E_="\0__throttleOriginMethod",wB="\0__throttleRate",bB="\0__throttleType";function lS(n,e,t){var r,i=0,a=0,o=null,s,l,u,c;e=e||0;function h(){a=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var d=[],p=0;p=0?h():o=setTimeout(h,-s),i=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(d){c=d},f}function bg(n,e,t,r){var i=n[e];if(i){var a=i[E_]||i,o=i[bB],s=i[wB];if(s!==t||o!==r){if(t==null||!r)return n[e]=a;i=n[e]=lS(a,t,r==="debounce"),i[E_]=a,i[bB]=r,i[wB]=t}return i}}function Hv(n,e){var t=n[e];t&&t[E_]&&(t.clear&&t.clear(),n[e]=t[E_])}var joe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),Joe=function(n){be(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new joe},e.prototype.buildPath=function(t,r){var i=r.cx,a=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,h=r.endAngle,f=r.clockwise,d=Math.PI*2,p=f?h-cMath.PI/2&&cs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var i=r.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,i,a){if(this._isOrderChangedWithinSameData(t,r,i)){var o=this._dataSort(t,i,r);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,i){var a=r.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){A_(a,t,rn(a).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(si),CB={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=n.x+n.width,a=n.y+n.height,o=dM(e.x,n.x),s=pM(e.x+e.width,i),l=dM(e.y,n.y),u=pM(e.y+e.height,a),c=si?s:o,e.y=h&&l>a?u:l,e.width=c?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var i=pM(e.r,n.r),a=dM(e.r0,n.r0);e.r=i,e.r0=a;var o=i-a<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},EB={cartesian2d:function(n,e,t,r,i,a,o,s,l){var u=new xn({shape:Oe({},r),z2:1});if(u.__dataIndex=t,u.name="item",a){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(n,e,t,r,i,a,o,s,l){var u=!i&&l?TB:os,c=new u({shape:r,z2:1});c.name="item";var h=b5(i);if(c.calculateTextPosition=Zoe(h,{isRoundCap:u===TB}),a){var f=c.shape,d=i?"r":"endAngle",p={};f[d]=i?r.r0:r.startAngle,p[d]=r[d],(s?hr:Ri)(c,{shape:p},a)}return c}};function Qoe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function RB(n,e,t,r,i,a,o,s){var l,u;a?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?hr:Ri)(t,{shape:l},e,i,null);var c=e?n.baseAxis.model:null;(o?hr:Ri)(t,{shape:u},c,i)}function PB(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function nse(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function b5(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function IB(n,e,t,r,i,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var c=n.shape,h=Fp(r.getModel("itemStyle"),c,!0);Oe(c,h),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var d=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Zs(r);Js(n,p,{labelFetcher:a,labelDataIndex:t,defaultText:sS(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var y=n.getTextContent();if(s&&y){var g=r.get(["label","position"]);n.textConfig.inside=g==="middle"?!0:null,Koe(n,g==="outside"?d:g,b5(o),r.get(["label","rotate"]))}aie(y,p,a.getRawValue(t),function(x){return l5(e,x)});var v=r.getModel(["emphasis"]);ql(n,v.get("focus"),v.get("blurScope"),v.get("disabled")),Zf(n,r),nse(i)&&(n.style.fill="none",n.style.stroke="none",U(n.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function rse(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,a)}var ise=function(){function n(){}return n}(),LB=function(n){be(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new ise},e.prototype.buildPath=function(t,r){for(var i=r.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function ase(n,e,t){for(var r=n.baseDimIdx,i=1-r,a=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,h=a.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function T5(n,e,t){if(tR(t,"cartesian2d")){var r=e,i=t.getArea();return{x:n?r.x:i.x,y:n?i.y:r.y,width:n?r.width:i.width,height:n?i.height:r.height}}else{var i=t.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:n?i.r0:a.r0,r:n?i.r:a.r,startAngle:n?a.startAngle:0,endAngle:n?a.endAngle:Math.PI*2}}}function ose(n,e,t){var r=n.type==="polar"?os:xn;return new r({shape:T5(e,t,n),silent:!0,z2:0})}const sse=$oe;function lse(n){n.registerChartView(sse),n.registerSeriesModel(Yoe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,ln(x5,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,S5("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,m5("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}function C5(n,e){function t(r,i){var a=[];return r.eachComponent({mainType:"series",subType:n,query:i},function(o){a.push(o.seriesIndex)}),a}U([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(r){e(r[0],function(i,a,o){i=Oe({},i),o.dispatchAction(Oe(i,{type:r[1],seriesIndex:t(a,i)}))})})}function qh(n,e,t,r,i){var a=n+e;t.isSilent(a)||r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c0){e=e/180*Math.PI,Ll.fromArray(n[0]),ar.fromArray(n[1]),Gr.fromArray(n[2]),Ht.sub(Bl,Ll,ar),Ht.sub(Go,Gr,ar);var t=Bl.len(),r=Go.len();if(!(t<.001||r<.001)){Bl.scale(1/t),Go.scale(1/r);var i=Bl.dot(Go),a=Math.cos(e);if(a1&&Ht.copy(Ai,Gr),Ai.toArray(n[1])}}}}function fse(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ll.fromArray(n[0]),ar.fromArray(n[1]),Gr.fromArray(n[2]),Ht.sub(Bl,ar,Ll),Ht.sub(Go,Gr,ar);var r=Bl.len(),i=Go.len();if(!(r<.001||i<.001)){Bl.scale(1/r),Go.scale(1/i);var a=Bl.dot(e),o=Math.cos(t);if(a=l)Ht.copy(Ai,Gr);else{Ai.scaleAndAdd(Go,s/Math.tan(Math.PI/2-c));var h=Gr.x!==ar.x?(Ai.x-ar.x)/(Gr.x-ar.x):(Ai.y-ar.y)/(Gr.y-ar.y);if(isNaN(h))return;h<0?Ht.copy(Ai,ar):h>1&&Ht.copy(Ai,Gr)}Ai.toArray(n[1])}}}}function NB(n,e,t,r){var i=t==="normal",a=i?n:n.ensureState(t);a.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?n.useStyle(s):a.style=s}function dse(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var i=f_(r[0],r[1]),a=f_(r[1],r[2]);if(!i||!a){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*t,s=L0([],r[1],r[0],o/i),l=L0([],r[1],r[2],o/a),u=L0([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&a&&b(-c/o,0,o);var y=n[0],g=n[o-1],v,x;S(),v<0&&w(-v,.8),x<0&&w(x,.8),S(),A(v,x,1),A(x,v,-1),S(),v<0&&C(-v),x<0&&C(x);function S(){v=y.rect[e]-r,x=i-g.rect[e]-g.rect[t]}function A(P,E,R){if(P<0){var D=Math.min(E,-P);if(D>0){b(D*R,0,o);var B=D+P;B<0&&w(-B*R,1)}else w(-P*R,1)}}function b(P,E,R){P!==0&&(u=!0);for(var D=E;D0)for(var B=0;B0;B--){var X=R[B-1]*z;b(-X,B,o)}}}function C(P){var E=P<0?-1:1;P=Math.abs(P);for(var R=Math.ceil(P/(o-1)),D=0;D0?b(R,0,D+1):b(-R,o-D-1,o),P-=R,P<=0)return}return u}function yse(n,e,t,r){return mse(n,"y","height",e,t,r)}function _se(n){var e=[];n.sort(function(y,g){return g.priority-y.priority});var t=new cn(0,0,0,0);function r(y){if(!y.ignore){var g=y.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}y.ignore=!0}for(var i=0;it?v:g,b=Math.abs(S.label.y-t);if(b>=A.maxY){var w=S.label.x-e-S.len2*i,C=r+S.len,P=Math.abs(w)n.unconstrainedWidth?null:d:null;r.setStyle("width",p)}var y=r.getBoundingRect();a.width=y.width;var g=(r.style.margin||0)+2.1;a.height=y.height+g,a.y-=(a.height-h)/2}}}function vM(n){return n.position==="center"}function Ase(n){var e=n.getData(),t=[],r,i,a=!1,o=(n.get("minShowLabelAngle")||0)*xse,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,h=s.y,f=s.height;function d(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var C in w.states)if(w.states[C].ignore===!1)return!0;return!1}e.each(function(w){var C=e.getItemGraphicEl(w),P=C.shape,E=C.getTextContent(),R=C.getTextGuideLine(),D=e.getItemModel(w),B=D.getModel("label"),k=B.get("position")||D.get(["emphasis","label","position"]),N=B.get("distanceToLabelLine"),z=B.get("alignTo"),X=Ft(B.get("edgeDistance"),u),ne=B.get("bleedMargin"),H=D.getModel("labelLine"),K=H.get("length");K=Ft(K,u);var Q=H.get("length2");if(Q=Ft(Q,u),Math.abs(P.endAngle-P.startAngle)0?"right":"left":he>0?"left":"right"}var Pe=Math.PI,me=0,et=B.get("rotate");if(En(et))me=et*(Pe/180);else if(k==="center")me=0;else if(et==="radial"||et===!0){var Xe=he<0?-le+Pe:-le;me=Xe}else if(et==="tangential"&&k!=="outside"&&k!=="outer"){var V=Math.atan2(he,re);V<0&&(V=Pe*2+V);var G=re>0;G&&(V=Pe+V),me=V-Pe}if(a=!!me,E.x=ce,E.y=_e,E.rotation=me,E.setStyle({verticalAlign:"middle"}),Ye){E.setStyle({align:Be});var Re=E.states.select;Re&&(Re.x+=E.x,Re.y+=E.y)}else{var de=E.getBoundingRect().clone();de.applyTransform(E.getComputedTransform());var Fe=(E.style.margin||0)+2.1;de.y-=Fe/2,de.height+=Fe,t.push({label:E,labelLine:R,position:k,len:K,len2:Q,minTurnAngle:H.get("minTurnAngle"),maxSurfaceAngle:H.get("maxSurfaceAngle"),surfaceNormal:new Ht(he,re),linePoints:ge,textAlign:Be,labelDistance:N,labelAlignTo:z,edgeDistance:X,bleedMargin:ne,rect:de,unconstrainedWidth:de.width,labelStyleWidth:E.style.width})}C.setTextConfig({inside:Ye})}}),!a&&n.get("avoidLabelOverlap")&&Sse(t,r,i,l,u,f,c,h);for(var y=0;y0){for(var c=o.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h=a.r0}},e.type="pie",e}(si);const bse=wse;function iR(n,e,t){e=He(e)&&{coordDimensions:e}||Oe({encodeDefine:n.getEncode()},e);var r=n.getSource(),i=NE(r,e).dimensions,a=new $x(i,n);return a.initData(r,t),a}var Tse=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const L5=Tse;var Cse=Ln(),Ese=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new L5(ut(this.getData,this),ut(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return iR(this,{coordDimensions:["value"],encodeDefaulter:ln(SH,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),i=Cse(r),a=i.seats;if(!a){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Ez(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){__(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(ca);const Rse=Ese;function Pse(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(i){var a=r.mapDimension("value"),o=r.get(a,i);return!(En(o)&&!isNaN(o)&&o<0)})}}}function Dse(n){n.registerChartView(bse),n.registerSeriesModel(Rse),C5("pie",n.registerAction),n.registerLayout(ln(cse,"pie")),n.registerProcessor(P5("pie")),n.registerProcessor(Pse("pie"))}var $h=function(){function n(e,t){this.target=e,this.topTarget=t&&t.topTarget}return n}(),Ise=function(){function n(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new $h(t,e),"dragstart",e.event))},n.prototype._drag=function(e){var t=this._draggingTarget;if(t){var r=e.offsetX,i=e.offsetY,a=r-this._x,o=i-this._y;this._x=r,this._y=i,t.drift(a,o,e),this.handler.dispatchToElement(new $h(t,e),"drag",e.event);var s=this.handler.findHover(r,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new $h(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new $h(s,e),"dragenter",e.event))}},n.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new $h(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new $h(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},n}();const Lse=Ise;var Bse=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gM=[],Ose=un.browser.firefox&&+un.browser.version.split(".")[0]<39;function Qb(n,e,t,r){return t=t||{},r?UB(n,e,t):Ose&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):UB(n,e,t),t}function UB(n,e,t){if(un.domSupported&&n.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(UH(n)){var a=n.getBoundingClientRect();t.zrX=r-a.left,t.zrY=i-a.top;return}else if(Yb(gM,n,r,i)){t.zrX=gM[0],t.zrY=gM[1];return}}t.zrX=t.zrY=0}function aR(n){return n||window.event}function Ca(n,e,t){if(e=aR(e),e.zrX!=null)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Qb(n,o,e,t)}else{Qb(n,e,e,t);var a=Fse(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Bse.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Fse(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var i=Math.abs(r!==0?r:t),a=r>0?-1:r<0?1:t>0?-1:1;return 3*i*a}function eT(n,e,t,r){n.addEventListener(e,t,r)}function Nse(n,e,t,r){n.removeEventListener(e,t,r)}var Xs=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function GB(n){return n.which===2||n.which===3}var kse=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var i=e.touches;if(i){for(var a={points:[],touches:[],target:t,event:e},o=0,s=i.length;o1&&r&&r.length>1){var a=zB(r)/zB(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=Use(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}},B5="silent";function Gse(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:zse}}function zse(){Xs(this.event)}var Hse=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(go),fp=function(){function n(e,t){this.x=e,this.y=t}return n}(),Vse=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],yM=new cn(0,0,0,0),O5=function(n){be(e,n);function e(t,r,i,a,o){var s=n.call(this)||this;return s._hovered=new fp(0,0),s.storage=t,s.painter=r,s.painterRoot=a,s._pointerSize=o,i=i||new Hse,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Lse(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(U(Vse,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,i=t.zrY,a=F5(this,r,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new fp(r,i):this.findHover(r,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new fp(0,0)},e.prototype.dispatch=function(t,r){var i=this[t];i&&i.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,i){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+r,s=Gse(r,t,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(r,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,i){var a=this.storage.getDisplayList(),o=new fp(t,r);if(HB(a,o,t,r,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new cn(t-u,r-u,l,l),h=a.length-1;h>=0;h--){var f=a[h];f!==i&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(yM.copy(f.getBoundingRect()),f.transform&&yM.applyTransform(f.transform),yM.intersect(c)&&s.push(f))}if(s.length)for(var d=4,p=Math.PI/12,y=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,n,e)}});function Wse(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return i?B5:!0}return!1}function HB(n,e,t,r,i){for(var a=n.length-1;a>=0;a--){var o=n[a],s=void 0;if(o!==i&&!o.ignore&&(s=Wse(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==B5)){e.target=o;break}}}function F5(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Xse=O5;var N5=32,dp=7;function Yse(n){for(var e=0;n>=N5;)e|=n&1,n>>=1;return n+e}function VB(n,e,t,r){var i=e+1;if(i===t)return 1;if(r(n[i++],n[e])<0){for(;i=0;)i++;return i-e}function jse(n,e,t){for(t--;e>>1,i(a,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=a}}function _M(n,e,t,r,i,a){var o=0,s=0,l=1;if(a(n,e[t+i])>0){for(s=r-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(n,e[t+c])>0?o=c+1:l=c}return l}function xM(n,e,t,r,i,a){var o=0,s=0,l=1;if(a(n,e[t+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=r-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(n,e[t+c])<0?l=c:o=c+1}return l}function Jse(n,e){var t=dp,r,i,a=0;n.length;var o=[];r=[],i=[];function s(d,p){r[a]=d,i[a]=p,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]i[d+1])break;c(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]=dp||C>=dp);if(P)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),p===1){for(v=0;v=0;v--)n[w+v]=n[b+v];n[A]=o[S];return}for(var C=t;;){var P=0,E=0,R=!1;do if(e(o[S],n[x])<0){if(n[A--]=n[x--],P++,E=0,--p===0){R=!0;break}}else if(n[A--]=o[S--],E++,P=0,--g===1){R=!0;break}while((P|E)=0;v--)n[w+v]=n[b+v];if(p===0){R=!0;break}}if(n[A--]=o[S--],--g===1){R=!0;break}if(E=g-_M(n[x],o,0,g,g-1,e),E!==0){for(A-=E,S-=E,g-=E,w=A+1,b=S+1,v=0;v=dp||E>=dp);if(R)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),g===1){for(A-=p,x-=p,w=A+1,b=x+1,v=p-1;v>=0;v--)n[w+v]=n[b+v];n[A]=o[S]}else{if(g===0)throw new Error;for(b=A-(g-1),v=0;vs&&(l=s),WB(n,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),i-=a,t+=a}while(i!==0);o.forceMergeRuns()}}var XB=!1;function SM(){XB||(XB=!0)}function YB(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var Zse=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=YB}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(SM(),c.z=0),isNaN(c.z2)&&(SM(),c.z2=0),isNaN(c.zlevel)&&(SM(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(i,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Kse=Zse;var k5;k5=un.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const jB=k5;function Sf(){return new Date().getTime()}var qse=function(n){be(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,i=t.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Sf()-this._pausedTime,i=r-this._time,a=this._head;a;){var o=a.next,s=a.step(r,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=r,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(jB(r),!t._paused&&t.update())}jB(r)},e.prototype.start=function(){this._running||(this._time=Sf(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Sf(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Sf()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var i=new cE(t,r.loop);return this.addAnimator(i),i},e}(go);const $se=qse;var Qse=300,AM=un.domSupported,MM=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Ve(n,function(i){var a=i.replace("mouse","pointer");return t.hasOwnProperty(a)?a:i});return{mouse:n,touch:e,pointer:r}}(),JB={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ZB=!1;function tT(n){var e=n.pointerType;return e==="pen"||e==="touch"}function ele(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function wM(n){n&&(n.zrByTouch=!0)}function tle(n,e){return Ca(n.dom,new nle(n,e),!0)}function U5(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var nle=function(){function n(e,t){this.stopPropagation=Fr,this.stopImmediatePropagation=Fr,this.preventDefault=Fr,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),to={mousedown:function(n){n=Ca(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=Ca(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=Ca(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=Ca(this.dom,n);var e=n.toElement||n.relatedTarget;U5(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){ZB=!0,n=Ca(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){ZB||(n=Ca(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=Ca(this.dom,n),wM(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),to.mousemove.call(this,n),to.mousedown.call(this,n)},touchmove:function(n){n=Ca(this.dom,n),wM(n),this.handler.processGesture(n,"change"),to.mousemove.call(this,n)},touchend:function(n){n=Ca(this.dom,n),wM(n),this.handler.processGesture(n,"end"),to.mouseup.call(this,n),+new Date-+this.__lastTouchMoment1||t>0&&!n.noHeader;return k(n.blocks,function(i){var a=hH(i);a>=e&&(e=a+ +(r&&(!a||xb(i)&&!i.noHeader)))}),e}return 0}function Ore(n,e,t,r){var i=e.noHeader,a=Fre(hH(e)),o=[],s=e.blocks||[];Ei(!s||Ge(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ot(u,l)){var c=new wne(u[l],null);s.sort(function(p,y){return c.evaluate(p.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}k(s,function(p,y){var g=e.valueFormatter,v=cH(p)(g?De(De({},n),{valueFormatter:g}):n,p,y>0?a.html:0,r);v!=null&&o.push(v)});var h=n.renderMode==="richText"?o.join(a.richText):Sb(o.join(""),i?t:a.html);if(i)return h;var f=_b(e.header,"ordinal",n.useUTC),d=uH(r,n.renderMode).nameStyle;return n.renderMode==="richText"?fH(n,f,d)+a.richText+h:Sb('
'+Ai(f)+"
"+h,t)}function Nre(n,e,t,r){var i=n.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(A){return A=Ge(A)?A:[A],He(A,function(T,w){return _b(T,Ge(d)?d[w]:d,u)})};if(!(a&&o)){var h=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),f=a?"":_b(l,"ordinal",u),d=e.valueType,p=o?[]:c(e.value),y=!s||!a,g=!s&&a,v=uH(r,i),x=v.nameStyle,S=v.valueStyle;return i==="richText"?(s?"":h)+(a?"":fH(n,f,x))+(o?"":Gre(n,p,y,g,S)):Sb((s?"":h)+(a?"":kre(f,!s,x))+(o?"":Ure(p,y,g,S)),t)}}function EL(n,e,t,r,i,a){if(n){var o=cH(n),s={useUTC:i,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,a)}}function Fre(n){return{html:Lre[n],richText:Bre[n]}}function Sb(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function kre(n,e,t){var r=e?"margin-left:2px":"";return''+Ai(n)+""}function Ure(n,e,t,r){var i=t?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return n=Ge(n)?n:[n],''+He(n,function(o){return Ai(o)}).join("  ")+""}function fH(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function Gre(n,e,t,r,i){var a=[i],o=r?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(Ge(e)?e.join(" "):e,a)}function dH(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Uc(r)}function pH(n,e){var t=n.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var GA=function(){function n(){this.richTextStyles={},this._nextStyleNameId=FG()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var i=r==="richText"?this._generateStyleName():null,a=nH({color:t,type:e,renderMode:r,markerId:i});return Ze(a)?a:(this.richTextStyles[i]=a.style,a.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};Ge(t)?k(t,function(a){return De(r,a)}):De(r,t);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+e+"}"},n}();function zre(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=Ge(s),u=dH(e,t),c,h,f,d;if(o>1||l&&!o){var p=Hre(s,e,t,a,u);c=p.inlineValues,h=p.inlineValueTypes,f=p.blocks,d=p.inlineValues[0]}else if(o){var y=i.getDimensionInfo(a[0]);d=c=zf(i,t,a[0]),h=y.type}else d=c=l?s[0]:s;var g=zC(e),v=g&&e.name||"",x=i.getName(t),S=r?v:x;return ns("section",{header:v,noHeader:r||!g,sortParam:d,blocks:[ns("nameValue",{markerType:"item",markerColor:u,name:S,noName:!ka(S),value:c,valueType:h})].concat(f||[])})}function Hre(n,e,t,r,i){var a=e.getData(),o=Ua(n,function(h,f,d){var p=a.getDimensionInfo(d);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?k(r,function(h){c(zf(a,t,h),h)}):k(n,c);function c(h,f){var d=a.getDimensionInfo(f);!d||d.otherDims.tooltip===!1||(o?u.push(ns("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:h,valueType:d.type})):(s.push(h),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var vl=In();function R0(n,e){return n.getName(e)||n.getId(e)}var Vre="__universalTransitionEnabled",Bx=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,i){this.seriesIndex=this.componentIndex,this.dataTask=Wp({count:Xre,reset:Yre}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var a=vl(this).sourceManager=new Ire(this);a.prepareSource();var o=this.getInitialData(t,i);PL(o,this),this.dataTask.context.data=o,vl(this).dataBeforeProcessed=o,RL(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var i=wv(this),a=i?ud(t):{},o=this.subType;an.hasClass(o)&&(o+="Series"),Nt(t,r.getTheme().get(this.subType)),Nt(t,this.getDefaultOption()),Zy(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&Zl(t,a,i)},e.prototype.mergeOption=function(t,r){t=Nt(this.option,t,!0),this.fillDataTextStyle(t.data);var i=wv(this);i&&Zl(this.option,t,i);var a=vl(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,r);PL(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,vl(this).dataBeforeProcessed=o,RL(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,i){var a=this.ecModel,o=xE.prototype.getColorFromPalette.call(this,t,r,i);return o||(o=a.getColorFromPalette(t,r,i)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(r);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},e.prototype.isSelected=function(t,r){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(r);return(i==="all"||i[R0(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Vre])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var i,a,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){pt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return an.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(an);Vr(Bx,oH);Vr(Bx,xE);jU(Bx,an);function RL(n){var e=n.name;zC(n)||(n.name=Wre(n)||e)}function Wre(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return k(t,function(i){var a=e.getDimensionInfo(i);a.displayName&&r.push(a.displayName)}),r.join(" ")}function Xre(n){return n.model.getRawData().count()}function Yre(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),Jre}function Jre(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function PL(n,e){k(JU(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,on(Zre,e))})}function Zre(n,e){var t=Ab(n);return t&&t.setOutputEnd((e||this).count()),e}function Ab(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(n.uid))}return r}}const ua=Bx;var jre=bn.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,r=e.cy,i=e.width/2,a=e.height/2;n.moveTo(t,r-a),n.lineTo(t+i,r+a),n.lineTo(t-i,r+a),n.closePath()}}),Kre=bn.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,r=e.cy,i=e.width/2,a=e.height/2;n.moveTo(t,r-a),n.lineTo(t+i,r),n.lineTo(t,r+a),n.lineTo(t-i,r),n.closePath()}}),qre=bn.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.x,r=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=r-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),f=Math.cos(u),d=o*.6,p=o*.7;n.moveTo(t-c,l+s),n.arc(t,l,o,Math.PI-u,Math.PI*2+u),n.bezierCurveTo(t+c-h*d,l+s+f*d,t,r-p,t,r),n.bezierCurveTo(t,r-p,t-c+h*d,l+s+f*d,t-c,l+s),n.closePath()}}),Qre=bn.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.height,r=e.width,i=e.x,a=e.y,o=r/3*2;n.moveTo(i,a),n.lineTo(i+o,a+t),n.lineTo(i,a+t/4*3),n.lineTo(i-o,a+t),n.lineTo(i,a),n.closePath()}}),$re={line:wi,rect:_n,roundRect:_n,square:_n,circle:co,diamond:Kre,pin:qre,arrow:Qre,triangle:jre},eie={line:function(n,e,t,r,i){i.x1=n,i.y1=e+r/2,i.x2=n+t,i.y2=e+r/2},rect:function(n,e,t,r,i){i.x=n,i.y=e,i.width=t,i.height=r},roundRect:function(n,e,t,r,i){i.x=n,i.y=e,i.width=t,i.height=r,i.r=Math.min(t,r)/4},square:function(n,e,t,r,i){var a=Math.min(t,r);i.x=n,i.y=e,i.width=a,i.height=a},circle:function(n,e,t,r,i){i.cx=n+t/2,i.cy=e+r/2,i.r=Math.min(t,r)/2},diamond:function(n,e,t,r,i){i.cx=n+t/2,i.cy=e+r/2,i.width=t,i.height=r},pin:function(n,e,t,r,i){i.x=n+t/2,i.y=e+r/2,i.width=t,i.height=r},arrow:function(n,e,t,r,i){i.x=n+t/2,i.y=e+r/2,i.width=t,i.height=r},triangle:function(n,e,t,r,i){i.cx=n+t/2,i.cy=e+r/2,i.width=t,i.height=r}},t_={};k($re,function(n,e){t_[e]=new n});var tie=bn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,e,t){var r=Uy(n,e,t),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(r.y=t.y+t.height*.4),r},buildPath:function(n,e,t){var r=e.symbolType;if(r!=="none"){var i=t_[r];i||(r="rect",i=t_[r]),eie[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(n,i.shape,t)}}});function nie(n,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=n,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=n:t.fill=n,this.markRedraw()}}function si(n,e,t,r,i,a,o){var s=n.indexOf("empty")===0;s&&(n=n.substr(5,1).toLowerCase()+n.substr(6));var l;return n.indexOf("image://")===0?l=eE(n.slice(8),new ln(e,t,r,i),o?"center":"cover"):n.indexOf("path://")===0?l=mx(n.slice(7),{},new ln(e,t,r,i),o?"center":"cover"):l=new tie({shape:{symbolType:n,x:e,y:t,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=nie,a&&l.setColor(a),l}function AE(n){return Ge(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function Ox(n,e){if(n!=null)return Ge(n)||(n=[n,n]),[Lt(n[0],e[0])||0,Lt(Gt(n[1],n[0]),e[1])||0]}var rie=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return Rx(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var r=new zt,i=si("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);r.add(i),i.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*.8,u=si(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);r.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(ua);const iie=rie;function Nx(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var i=zf(n,e,t[0]);return i!=null?i+"":null}else if(r){for(var a=[],o=0;o=0&&r.push(e[a])}return r.join(" ")}var aie=function(n){we(e,n);function e(t,r,i,a){var o=n.call(this)||this;return o.updateData(t,r,i,a),o}return e.prototype._createSymbol=function(t,r,i,a,o){this.removeAll();var s=si(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=oie,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){kf(this.childAt(0))},e.prototype.downplay=function(){Uf(this.childAt(0))},e.prototype.setZ=function(t,r){var i=this.childAt(0);i.zlevel=t,i.z=r},e.prototype.setDraggable=function(t,r){var i=this.childAt(0);i.draggable=t,i.cursor=!r&&t?"move":i.cursor},e.prototype.updateData=function(t,r,i,a){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var h=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,h)}else{var f=this.childAt(0);f.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(d):ur(f,d,s,r),xv(f)}if(this._updateCommon(t,r,l,i,a),u){var f=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Ci(f,d,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,i,a,o){var s=this.childAt(0),l=t.hostModel,u,c,h,f,d,p,y,g,v;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,h=a.selectItemStyle,f=a.focus,d=a.blurScope,y=a.labelStatesModels,g=a.hoverScale,v=a.cursorStyle,p=a.emphasisDisabled),!a||t.hasItemOption){var x=a&&a.itemModel?a.itemModel:t.getItemModel(r),S=x.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),h=x.getModel(["select","itemStyle"]).getItemStyle(),c=x.getModel(["blur","itemStyle"]).getItemStyle(),f=S.get("focus"),d=S.get("blurScope"),p=S.get("disabled"),y=Ys(x),g=S.getShallow("scale"),v=x.getShallow("cursor")}var A=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(A||0)*Math.PI/180||0);var T=Ox(t.getItemVisual(r,"symbolOffset"),i);T&&(s.x=T[0],s.y=T[1]),v&&s.attr("cursor",v);var w=t.getItemVisual(r,"style"),C=w.fill;if(s instanceof Pi){var P=s.style;s.useStyle(De({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},w))}else s.__isEmptyBrush?s.useStyle(De({},w)):s.useStyle(w),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var E=t.getItemVisual(r,"liftZ"),R=this._z2;E!=null?R==null&&(this._z2=s.z2,s.z2+=E):R!=null&&(s.z2=R,this._z2=null);var I=o&&o.useNameLabel;Xs(s,y,{labelFetcher:l,labelDataIndex:r,defaultText:O,inheritColor:C,defaultOpacity:w.opacity});function O(z){return I?t.getName(z):Nx(t,z)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var U=s.ensureState("emphasis");U.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var F=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;U.scaleX=this._sizeX*F,U.scaleY=this._sizeY*F,this.setSymbolScale(1),Yl(this,f,d,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,i){var a=this.childAt(0),o=tn(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&_v(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();_v(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return AE(t.getItemVisual(r,"symbolSize"))},e}(zt);function oie(n,e){this.parent.drift(n,e)}const ME=aie;function zA(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function DL(n){return n!=null&&!pt(n)&&(n={isIgnore:n}),n||{}}function IL(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Ys(e),cursorStyle:e.get("cursor")}}var sie=function(){function n(e){this.group=new zt,this._SymbolCtor=e||ME}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=DL(t);var r=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=IL(e),u={disableAnimation:s},c=t.getSymbolPoint||function(h){return e.getItemLayout(h)};a||r.removeAll(),e.diff(a).add(function(h){var f=c(h);if(zA(e,f,h,t)){var d=new o(e,h,l,u);d.setPosition(f),e.setItemGraphicEl(h,d),r.add(d)}}).update(function(h,f){var d=a.getItemGraphicEl(f),p=c(h);if(!zA(e,p,h,t)){r.remove(d);return}var y=e.getItemVisual(h,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==y)r.remove(d),d=new o(e,h,l,u),d.setPosition(p);else{d.updateData(e,h,l,u);var v={x:p[0],y:p[1]};s?d.attr(v):ur(d,v,i)}r.add(d),e.setItemGraphicEl(h,d)}).remove(function(h){var f=a.getItemGraphicEl(h);f&&f.fadeOut(function(){r.remove(f)},i)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,i){var a=e._getSymbolPoint(i);r.setPosition(a),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=IL(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=DL(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0?t=r[0]:r[1]<0&&(t=r[1]),t}function mH(n,e,t,r){var i=NaN;n.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=n.valueStart);var a=n.baseDataOffset,o=[];return o[a]=t.get(n.baseDim,r),o[1-a]=i,e.dataToPoint(o)}var yH=typeof Float32Array!="undefined",cie=yH?Float32Array:Array;function Ls(n){return Ge(n)?yH?new Float32Array(n):n:new cie(n)}function hie(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,i){t.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function fie(n,e,t,r,i,a,o,s){for(var l=hie(n,e),u=[],c=[],h=[],f=[],d=[],p=[],y=[],g=gH(i,e,o),v=n.getLayout("points")||[],x=e.getLayout("points")||[],S=0;S=i||y<0)break;if(Dc(v,x)){if(l){y+=a;continue}break}if(y===t)n[a>0?"moveTo":"lineTo"](v,x),h=v,f=x;else{var S=v-u,A=x-c;if(S*S+A*A<.5){y+=a;continue}if(o>0){for(var T=y+a,w=e[T*2],C=e[T*2+1];w===v&&C===x&&g=r||Dc(w,C))d=v,p=x;else{R=w-u,I=C-c;var F=v-u,z=w-v,X=x-c,ne=C-x,H=void 0,j=void 0;if(s==="x"){H=Math.abs(F),j=Math.abs(z);var $=R>0?1:-1;d=v-$*H*o,p=x,O=v+$*j*o,U=x}else if(s==="y"){H=Math.abs(X),j=Math.abs(ne);var le=I>0?1:-1;d=v,p=x-le*H*o,O=v,U=x+le*j*o}else H=Math.sqrt(F*F+X*X),j=Math.sqrt(z*z+ne*ne),E=j/(j+H),d=v-R*o*(1-E),p=x-I*o*(1-E),O=v+R*o*E,U=x+I*o*E,O=gl(O,ml(w,v)),U=gl(U,ml(C,x)),O=ml(O,gl(w,v)),U=ml(U,gl(C,x)),R=O-v,I=U-x,d=v-R*H/j,p=x-I*H/j,d=gl(d,ml(u,v)),p=gl(p,ml(c,x)),d=ml(d,gl(u,v)),p=ml(p,gl(c,x)),R=v-d,I=x-p,O=v+R*j/H,U=x+I*j/H}n.bezierCurveTo(h,f,d,p,v,x),h=O,f=U}else n.lineTo(v,x)}u=v,c=x,y+=a}return g}var _H=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),die=function(n){we(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _H},e.prototype.buildPath=function(t,r){var i=r.points,a=0,o=i.length/2;if(r.connectNulls){for(;o>0&&Dc(i[o*2-2],i[o*2-1]);o--);for(;a=0){var A=u?(p-l)*S+l:(d-s)*S+s;return u?[t,A]:[A,t]}s=d,l=p;break;case o.C:d=a[h++],p=a[h++],y=a[h++],g=a[h++],v=a[h++],x=a[h++];var T=u?Vy(s,d,y,v,t,c):Vy(l,p,g,x,t,c);if(T>0)for(var w=0;w=0){var A=u?Mr(l,p,g,x,C):Mr(s,d,y,v,C);return u?[t,A]:[A,t]}}s=v,l=x;break}}},e}(bn),pie=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(_H),vie=function(n){we(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new pie},e.prototype.buildPath=function(t,r){var i=r.points,a=r.stackedOnPoints,o=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Dc(i[s*2-2],i[s*2-1]);s--);for(;oe){a?t.push(o(a,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),a=l}return t}function Mie(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var i,a,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=r[o];break}}if(a){var l=e.getAxis(i),u=He(a.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,h=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var f=Aie(u,i==="x"?t.getWidth():t.getHeight()),d=f.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=10,y=f[0].coord-p,g=f[d-1].coord+p,v=g-y;if(v<.001)return"transparent";k(f,function(S){S.offset=(S.coord-y)/v}),f.push({offset:d?f[d-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:h[0]||"transparent"});var x=new og(0,0,0,0,f,!0);return x[i]=y,x[i+"2"]=g,x}}}function wie(n,e,t){var r=n.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(i&&bie(a,e))){var o=e.mapDimension(a.dim),s={};return k(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function bie(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function Tie(n,e){return isNaN(n)||isNaN(e)}function Cie(n){for(var e=n.length/2;e>0&&Tie(n[e*2-2],n[e*2-1]);e--);return e-1}function UL(n,e){return[n[e*2],n[e*2+1]]}function Eie(n,e,t){for(var r=n.length/2,i=t==="x"?0:1,a,o,s=0,l=-1,u=0;u=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function MH(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var $=y.getState("emphasis").style;$.lineWidth=+y.style.lineWidth+1}tn(y).seriesIndex=t.seriesIndex,Yl(y,ne,H,j);var le=kL(t.get("smooth")),ce=t.get("smoothMonotone");if(y.setShape({smooth:le,smoothMonotone:ce,connectNulls:P}),g){var ie=l.getCalculationInfo("stackedOnSeries"),he=0;g.useStyle(bt(c.getAreaStyle(),{fill:U,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ie&&(he=kL(ie.get("smooth"))),g.setShape({smooth:le,stackedOnSmooth:he,smoothMonotone:ce,connectNulls:P}),Gf(g,t,"areaStyle"),tn(g).seriesIndex=t.seriesIndex,Yl(g,ne,H,j)}var Se=function(ve){a._changePolyState(ve)};l.eachItemGraphicEl(function(ve){ve&&(ve.onHoverStateChange=Se)}),this._polyline.onHoverStateChange=Se,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=h,this._step=I,this._valueOrigin=A,t.get("triggerLineEvent")&&(this.packEventData(t,y),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,r){tn(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,i,a){var o=t.getData(),s=kc(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],h=l[s*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var f=t.get("zlevel")||0,d=t.get("z")||0;u=new ME(o,s),u.x=c,u.y=h,u.setZ(f,d);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=d,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ai.prototype.highlight.call(this,t,r,i,a)},e.prototype.downplay=function(t,r,i,a){var o=t.getData(),s=kc(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ai.prototype.downplay.call(this,t,r,i,a)},e.prototype._changePolyState=function(t){var r=this._polygon;sb(this._polyline,t),r&&sb(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new die({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new vie({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,r,i){var a,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):r.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");Tt(c)&&(c=c(null));var h=u.get("animationDelay")||0,f=Tt(h)?h(null):h;t.eachItemGraphicEl(function(d,p){var y=d;if(y){var g=[d.x,d.y],v=void 0,x=void 0,S=void 0;if(i)if(o){var A=i,T=r.pointToCoord(g);a?(v=A.startAngle,x=A.endAngle,S=-T[1]/180*Math.PI):(v=A.r0,x=A.r,S=T[0])}else{var w=i;a?(v=w.x,x=w.x+w.width,S=d.x):(v=w.y+w.height,x=w.y,S=d.y)}var C=x===v?0:(S-v)/(x-v);l&&(C=1-C);var P=Tt(h)?h(p):c*C+f,E=y.getSymbolPath(),R=E.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:P}),R&&R.animateFrom({style:{opacity:0}},{duration:300,delay:P}),E.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,i){var a=t.getModel("endLabel");if(MH(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new xn({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Cie(l);c>=0&&(Xs(s,Ys(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:c,defaultText:function(h,f,d){return d!=null?vH(o,d):Nx(o,h)},enableTextSetter:!0},Rie(a,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),f=i.hostModel,d=f.get("connectNulls"),p=s.get("precision"),y=s.get("distance")||0,g=l.getBaseAxis(),v=g.isHorizontal(),x=g.inverse,S=r.shape,A=x?v?S.x:S.y+S.height:v?S.x+S.width:S.y,T=(v?y:0)*(x?-1:1),w=(v?0:-y)*(x?-1:1),C=v?"x":"y",P=Eie(h,A,C),E=P.range,R=E[1]-E[0],I=void 0;if(R>=1){if(R>1&&!d){var O=UL(h,E[0]);u.attr({x:O[0]+T,y:O[1]+w}),o&&(I=f.getRawValue(E[0]))}else{var O=c.getPointOn(A,C);O&&u.attr({x:O[0]+T,y:O[1]+w});var U=f.getRawValue(E[0]),F=f.getRawValue(E[1]);o&&(I=Jee(i,p,U,F,P.t))}a.lastFrameIndex=E[0]}else{var z=t===1||a.lastFrameIndex>0?E[0]:0,O=UL(h,z);o&&(I=f.getRawValue(z)),u.attr({x:O[0]+T,y:O[1]+w})}if(o){var X=Mx(u);typeof X.setLabelText=="function"&&X.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,r,i,a,o,s,l){var u=this._polyline,c=this._polygon,h=t.hostModel,f=fie(this._data,t,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),d=f.current,p=f.stackedOnCurrent,y=f.next,g=f.stackedOnNext;if(o&&(d=yl(f.current,i,o,l),p=yl(f.stackedOnCurrent,i,o,l),y=yl(f.next,i,o,l),g=yl(f.stackedOnNext,i,o,l)),FL(d,y)>3e3||c&&FL(p,g)>3e3){u.stopAnimation(),u.setShape({points:y}),c&&(c.stopAnimation(),c.setShape({points:y,stackedOnPoints:g}));return}u.shape.__points=f.current,u.shape.points=d;var v={shape:{points:y}};f.current!==d&&(v.shape.__points=f.next),u.stopAnimation(),ur(u,v,h),c&&(c.setShape({points:d,stackedOnPoints:p}),c.stopAnimation(),ur(c,{shape:{stackedOnPoints:g}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var x=[],S=f.status,A=0;Ae&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),h=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(h||1),d=Math.round(s/f);if(isFinite(d)&&d>1){a==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var p=void 0;Ze(a)?p=Lie[a]:Tt(a)&&(p=a),p&&e.setData(i.downSample(i.mapDimension(u.dim),1/d,p,Bie))}}}}}function Oie(n){n.registerChartView(Die),n.registerSeriesModel(iie),n.registerLayout(Iie("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,wH("line"))}var Nie="__ec_stack_";function CE(n){return n.get("stack")||Nie+n.seriesIndex}function EE(n){return n.dim+n.index}function bH(n,e){var t=[];return e.eachSeriesByType(n,function(r){RH(r)&&t.push(r)}),t}function Fie(n){var e={};k(n,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var h=l.getData(),f=c.dim+"_"+c.index,d=h.getDimensionIndex(h.mapDimension(c.dim)),p=h.getStore(),y=0,g=p.count();y0&&(a=a===null?s:Math.min(a,s))}t[r]=a}}return t}function TH(n){var e=Fie(n),t=[];return k(n,function(r){var i=r.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],c=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),f=Math.abs(h[1]-h[0]);s=u?c/f*u:c}else{var d=r.getData();s=Math.abs(o[1]-o[0])/d.count()}var p=Lt(r.get("barWidth"),s),y=Lt(r.get("barMaxWidth"),s),g=Lt(r.get("barMinWidth")||(PH(r)?.5:1),s),v=r.get("barGap"),x=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:y,barMinWidth:g,barGap:v,barCategoryGap:x,axisKey:EE(a),stackId:CE(r)})}),kie(t)}function kie(n){var e={};k(n,function(r,i){var a=r.axisKey,o=r.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var h=r.barMaxWidth;h&&(l[u].maxWidth=h);var f=r.barMinWidth;f&&(l[u].minWidth=f);var d=r.barGap;d!=null&&(s.gap=d);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return k(e,function(r,i){t[i]={};var a=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Xt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Lt(s,o),c=Lt(r.gap,1),h=r.remainedWidth,f=r.autoWidthCount,d=(h-u)/(f+(f-1)*c);d=Math.max(d,0),k(a,function(v){var x=v.maxWidth,S=v.minWidth;if(v.width){var A=v.width;x&&(A=Math.min(A,x)),S&&(A=Math.max(A,S)),v.width=A,h-=A+c*A,f--}else{var A=d;x&&xA&&(A=S),A!==d&&(v.width=A,h-=A+c*A,f--)}}),d=(h-u)/(f+(f-1)*c),d=Math.max(d,0);var p=0,y;k(a,function(v,x){v.width||(v.width=d),y=v,p+=v.width*(1+c)}),y&&(p-=y.width*c);var g=-p/2;k(a,function(v,x){t[i][x]=t[i][x]||{bandWidth:o,offset:g,width:v.width},g+=v.width*(1+c)})}),t}function Uie(n,e,t){if(n&&e){var r=n[EE(e)];return r!=null&&t!=null?r[CE(t)]:r}}function CH(n,e){var t=bH(n,e),r=TH(t);k(t,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=CE(i),u=r[EE(s)][l],c=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function EH(n){return{seriesType:n,plan:wE(),reset:function(e){if(RH(e)){var t=e.getData(),r=e.coordinateSystem,i=r.getBaseAxis(),a=r.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),c=t.getCalculationInfo("stackResultDimension"),h=Jl(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=a.isHorizontal(),d=Gie(i,a),p=PH(e),y=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),v=t.getLayout("size"),x=t.getLayout("offset");return{progress:function(S,A){for(var T=S.count,w=p&&Ls(T*3),C=p&&l&&Ls(T*3),P=p&&Ls(T),E=r.master.getRect(),R=f?E.width:E.height,I,O=A.getStore(),U=0;(I=S.next())!=null;){var F=O.get(h?g:o,I),z=O.get(s,I),X=d,ne=void 0;h&&(ne=+F-O.get(o,I));var H=void 0,j=void 0,$=void 0,le=void 0;if(f){var ce=r.dataToPoint([F,z]);if(h){var ie=r.dataToPoint([ne,z]);X=ie[0]}H=X,j=ce[1]+x,$=ce[0]-X,le=v,Math.abs($)y){x=(T+v)/2;break}A===1&&(S=w-p[0].tickValue)}x==null&&(v?v&&(x=p[p.length-1].coord):x=p[0].coord),s[d]=f.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(ua);ua.registerClass(DH);const n_=DH;var zie=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Rx(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,i){return i.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=tu(n_.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(n_);const Hie=zie;var r_="\0__throttleOriginMethod",GL="\0__throttleRate",zL="\0__throttleType";function Fx(n,e,t){var r,i=0,a=0,o=null,s,l,u,c;e=e||0;function h(){a=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var d=[],p=0;p=0?h():o=setTimeout(h,-s),i=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(d){c=d},f}function lg(n,e,t,r){var i=n[e];if(i){var a=i[r_]||i,o=i[zL],s=i[GL];if(s!==t||o!==r){if(t==null||!r)return n[e]=a;i=n[e]=Fx(a,t,r==="debounce"),i[r_]=a,i[zL]=r,i[GL]=t}return i}}function bv(n,e){var t=n[e];t&&t[r_]&&(t.clear&&t.clear(),n[e]=t[r_])}var Vie=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),Wie=function(n){we(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new Vie},e.prototype.buildPath=function(t,r){var i=r.cx,a=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,h=r.endAngle,f=r.clockwise,d=Math.PI*2,p=f?h-cMath.PI/2&&cs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var i=r.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,i,a){if(this._isOrderChangedWithinSameData(t,r,i)){var o=this._dataSort(t,i,r);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,i){var a=r.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){qy(a,t,tn(a).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(ai),VL={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=n.x+n.width,a=n.y+n.height,o=VA(e.x,n.x),s=WA(e.x+e.width,i),l=VA(e.y,n.y),u=WA(e.y+e.height,a),c=si?s:o,e.y=h&&l>a?u:l,e.width=c?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var i=WA(e.r,n.r),a=VA(e.r0,n.r0);e.r=i,e.r0=a;var o=i-a<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},WL={cartesian2d:function(n,e,t,r,i,a,o,s,l){var u=new _n({shape:De({},r),z2:1});if(u.__dataIndex=t,u.name="item",a){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(n,e,t,r,i,a,o,s,l){var u=!i&&l?HL:as,c=new u({shape:r,z2:1});c.name="item";var h=IH(i);if(c.calculateTextPosition=Xie(h,{isRoundCap:u===HL}),a){var f=c.shape,d=i?"r":"endAngle",p={};f[d]=i?r.r0:r.startAngle,p[d]=r[d],(s?ur:Ci)(c,{shape:p},a)}return c}};function jie(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function XL(n,e,t,r,i,a,o,s){var l,u;a?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ur:Ci)(t,{shape:l},e,i,null);var c=e?n.baseAxis.model:null;(o?ur:Ci)(t,{shape:u},c,i)}function YL(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Qie(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function IH(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function ZL(n,e,t,r,i,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var c=n.shape,h=wp(r.getModel("itemStyle"),c,!0);De(c,h),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var d=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Ys(r);Xs(n,p,{labelFetcher:a,labelDataIndex:t,defaultText:Nx(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var y=n.getTextContent();if(s&&y){var g=r.get(["label","position"]);n.textConfig.inside=g==="middle"?!0:null,Yie(n,g==="outside"?d:g,IH(o),r.get(["label","rotate"]))}tne(y,p,a.getRawValue(t),function(x){return vH(e,x)});var v=r.getModel(["emphasis"]);Yl(n,v.get("focus"),v.get("blurScope"),v.get("disabled")),Gf(n,r),Qie(i)&&(n.style.fill="none",n.style.stroke="none",k(n.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function $ie(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,a)}var eae=function(){function n(){}return n}(),jL=function(n){we(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new eae},e.prototype.buildPath=function(t,r){for(var i=r.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function tae(n,e,t){for(var r=n.baseDimIdx,i=1-r,a=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,h=a.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function LH(n,e,t){if(TE(t,"cartesian2d")){var r=e,i=t.getArea();return{x:n?r.x:i.x,y:n?i.y:r.y,width:n?r.width:i.width,height:n?i.height:r.height}}else{var i=t.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:n?i.r0:a.r0,r:n?i.r:a.r,startAngle:n?a.startAngle:0,endAngle:n?a.endAngle:Math.PI*2}}}function nae(n,e,t){var r=n.type==="polar"?as:_n;return new r({shape:LH(e,t,n),silent:!0,z2:0})}const rae=Zie;function iae(n){n.registerChartView(rae),n.registerSeriesModel(Hie),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,on(CH,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,EH("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,wH("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}function BH(n,e){function t(r,i){var a=[];return r.eachComponent({mainType:"series",subType:n,query:i},function(o){a.push(o.seriesIndex)}),a}k([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(r){e(r[0],function(i,a,o){i=De({},i),o.dispatchAction(De(i,{type:r[1],seriesIndex:t(a,i)}))})})}function Vh(n,e,t,r,i){var a=n+e;t.isSilent(a)||r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c0){e=e/180*Math.PI,El.fromArray(n[0]),ir.fromArray(n[1]),kr.fromArray(n[2]),Ut.sub(Rl,El,ir),Ut.sub(Uo,kr,ir);var t=Rl.len(),r=Uo.len();if(!(t<.001||r<.001)){Rl.scale(1/t),Uo.scale(1/r);var i=Rl.dot(Uo),a=Math.cos(e);if(a1&&Ut.copy(xi,kr),xi.toArray(n[1])}}}}function lae(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,El.fromArray(n[0]),ir.fromArray(n[1]),kr.fromArray(n[2]),Ut.sub(Rl,ir,El),Ut.sub(Uo,kr,ir);var r=Rl.len(),i=Uo.len();if(!(r<.001||i<.001)){Rl.scale(1/r),Uo.scale(1/i);var a=Rl.dot(e),o=Math.cos(t);if(a=l)Ut.copy(xi,kr);else{xi.scaleAndAdd(Uo,s/Math.tan(Math.PI/2-c));var h=kr.x!==ir.x?(xi.x-ir.x)/(kr.x-ir.x):(xi.y-ir.y)/(kr.y-ir.y);if(isNaN(h))return;h<0?Ut.copy(xi,ir):h>1&&Ut.copy(xi,kr)}xi.toArray(n[1])}}}}function $L(n,e,t,r){var i=t==="normal",a=i?n:n.ensureState(t);a.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?n.useStyle(s):a.style=s}function uae(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var i=zy(r[0],r[1]),a=zy(r[1],r[2]);if(!i||!a){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*t,s=cy([],r[1],r[0],o/i),l=cy([],r[1],r[2],o/a),u=cy([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&a&&T(-c/o,0,o);var y=n[0],g=n[o-1],v,x;S(),v<0&&w(-v,.8),x<0&&w(x,.8),S(),A(v,x,1),A(x,v,-1),S(),v<0&&C(-v),x<0&&C(x);function S(){v=y.rect[e]-r,x=i-g.rect[e]-g.rect[t]}function A(P,E,R){if(P<0){var I=Math.min(E,-P);if(I>0){T(I*R,0,o);var O=I+P;O<0&&w(-O*R,1)}else w(-P*R,1)}}function T(P,E,R){P!==0&&(u=!0);for(var I=E;I0)for(var O=0;O0;O--){var X=R[O-1]*z;T(-X,O,o)}}}function C(P){var E=P<0?-1:1;P=Math.abs(P);for(var R=Math.ceil(P/(o-1)),I=0;I0?T(R,0,I+1):T(-R,o-I-1,o),P-=R,P<=0)return}return u}function pae(n,e,t,r){return dae(n,"y","height",e,t,r)}function vae(n){var e=[];n.sort(function(y,g){return g.priority-y.priority});var t=new ln(0,0,0,0);function r(y){if(!y.ignore){var g=y.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}y.ignore=!0}for(var i=0;it?v:g,T=Math.abs(S.label.y-t);if(T>=A.maxY){var w=S.label.x-e-S.len2*i,C=r+S.len,P=Math.abs(w)n.unconstrainedWidth?null:d:null;r.setStyle("width",p)}var y=r.getBoundingRect();a.width=y.width;var g=(r.style.margin||0)+2.1;a.height=y.height+g,a.y-=(a.height-h)/2}}}function XA(n){return n.position==="center"}function yae(n){var e=n.getData(),t=[],r,i,a=!1,o=(n.get("minShowLabelAngle")||0)*gae,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,h=s.y,f=s.height;function d(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var C in w.states)if(w.states[C].ignore===!1)return!0;return!1}e.each(function(w){var C=e.getItemGraphicEl(w),P=C.shape,E=C.getTextContent(),R=C.getTextGuideLine(),I=e.getItemModel(w),O=I.getModel("label"),U=O.get("position")||I.get(["emphasis","label","position"]),F=O.get("distanceToLabelLine"),z=O.get("alignTo"),X=Lt(O.get("edgeDistance"),u),ne=O.get("bleedMargin"),H=I.getModel("labelLine"),j=H.get("length");j=Lt(j,u);var $=H.get("length2");if($=Lt($,u),Math.abs(P.endAngle-P.startAngle)0?"right":"left":ce>0?"left":"right"}var Pe=Math.PI,_e=0,et=O.get("rotate");if(Cn(et))_e=et*(Pe/180);else if(U==="center")_e=0;else if(et==="radial"||et===!0){var Je=ce<0?-le+Pe:-le;_e=Je}else if(et==="tangential"&&U!=="outside"&&U!=="outer"){var W=Math.atan2(ce,ie);W<0&&(W=Pe*2+W);var G=ie>0;G&&(W=Pe+W),_e=W-Pe}if(a=!!_e,E.x=he,E.y=Se,E.rotation=_e,E.setStyle({verticalAlign:"middle"}),Ye){E.setStyle({align:Oe});var Le=E.states.select;Le&&(Le.x+=E.x,Le.y+=E.y)}else{var de=E.getBoundingRect().clone();de.applyTransform(E.getComputedTransform());var Ne=(E.style.margin||0)+2.1;de.y-=Ne/2,de.height+=Ne,t.push({label:E,labelLine:R,position:U,len:j,len2:$,minTurnAngle:H.get("minTurnAngle"),maxSurfaceAngle:H.get("maxSurfaceAngle"),surfaceNormal:new Ut(ce,ie),linePoints:ve,textAlign:Oe,labelDistance:F,labelAlignTo:z,edgeDistance:X,bleedMargin:ne,rect:de,unconstrainedWidth:de.width,labelStyleWidth:E.style.width})}C.setTextConfig({inside:Ye})}}),!a&&n.get("avoidLabelOverlap")&&mae(t,r,i,l,u,f,c,h);for(var y=0;y0){for(var c=o.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h=a.r0}},e.type="pie",e}(ai);const Sae=xae;function RE(n,e,t){e=Ge(e)&&{coordDimensions:e}||De({encodeDefine:n.getEncode()},e);var r=n.getSource(),i=lE(r,e).dimensions,a=new Cx(i,n);return a.initData(r,t),a}var Aae=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const GH=Aae;var Mae=In(),wae=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new GH(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return RE(this,{coordDimensions:["value"],encodeDefaulter:on(Ez,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),i=Mae(r),a=i.seats;if(!a){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),a=i.seats=OG(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Zy(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(ua);const bae=wae;function Tae(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(i){var a=r.mapDimension("value"),o=r.get(a,i);return!(Cn(o)&&!isNaN(o)&&o<0)})}}}function Cae(n){n.registerChartView(Sae),n.registerSeriesModel(bae),BH("pie",n.registerAction),n.registerLayout(on(oae,"pie")),n.registerProcessor(FH("pie")),n.registerProcessor(Tae("pie"))}var Wh=function(){function n(e,t){this.target=e,this.topTarget=t&&t.topTarget}return n}(),Eae=function(){function n(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Wh(t,e),"dragstart",e.event))},n.prototype._drag=function(e){var t=this._draggingTarget;if(t){var r=e.offsetX,i=e.offsetY,a=r-this._x,o=i-this._y;this._x=r,this._y=i,t.drift(a,o,e),this.handler.dispatchToElement(new Wh(t,e),"drag",e.event);var s=this.handler.findHover(r,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Wh(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Wh(s,e),"dragenter",e.event))}},n.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Wh(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Wh(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},n}();const Rae=Eae;var Pae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,YA=[],Dae=sn.browser.firefox&&+sn.browser.version.split(".")[0]<39;function wb(n,e,t,r){return t=t||{},r?tB(n,e,t):Dae&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):tB(n,e,t),t}function tB(n,e,t){if(sn.domSupported&&n.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(Yz(n)){var a=n.getBoundingClientRect();t.zrX=r-a.left,t.zrY=i-a.top;return}else if(mb(YA,n,r,i)){t.zrX=YA[0],t.zrY=YA[1];return}}t.zrX=t.zrY=0}function PE(n){return n||window.event}function Ta(n,e,t){if(e=PE(e),e.zrX!=null)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&wb(n,o,e,t)}else{wb(n,e,e,t);var a=Iae(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Pae.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Iae(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var i=Math.abs(r!==0?r:t),a=r>0?-1:r<0?1:t>0?-1:1;return 3*i*a}function bb(n,e,t,r){n.addEventListener(e,t,r)}function Lae(n,e,t,r){n.removeEventListener(e,t,r)}var Hs=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function nB(n){return n.which===2||n.which===3}var Bae=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var i=e.touches;if(i){for(var a={points:[],touches:[],target:t,event:e},o=0,s=i.length;o1&&r&&r.length>1){var a=rB(r)/rB(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=Oae(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}},zH="silent";function Nae(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Fae}}function Fae(){Hs(this.event)}var kae=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(vo),np=function(){function n(e,t){this.x=e,this.y=t}return n}(),Uae=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ZA=new ln(0,0,0,0),HH=function(n){we(e,n);function e(t,r,i,a,o){var s=n.call(this)||this;return s._hovered=new np(0,0),s.storage=t,s.painter=r,s.painterRoot=a,s._pointerSize=o,i=i||new kae,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Rae(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(k(Uae,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,i=t.zrY,a=VH(this,r,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new np(r,i):this.findHover(r,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new np(0,0)},e.prototype.dispatch=function(t,r){var i=this[t];i&&i.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,i){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+r,s=Nae(r,t,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(r,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,i){var a=this.storage.getDisplayList(),o=new np(t,r);if(iB(a,o,t,r,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new ln(t-u,r-u,l,l),h=a.length-1;h>=0;h--){var f=a[h];f!==i&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(ZA.copy(f.getBoundingRect()),f.transform&&ZA.applyTransform(f.transform),ZA.intersect(c)&&s.push(f))}if(s.length)for(var d=4,p=Math.PI/12,y=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,n,e)}});function Gae(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return i?zH:!0}return!1}function iB(n,e,t,r,i){for(var a=n.length-1;a>=0;a--){var o=n[a],s=void 0;if(o!==i&&!o.ignore&&(s=Gae(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==zH)){e.target=o;break}}}function VH(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const zae=HH;var WH=32,rp=7;function Hae(n){for(var e=0;n>=WH;)e|=n&1,n>>=1;return n+e}function aB(n,e,t,r){var i=e+1;if(i===t)return 1;if(r(n[i++],n[e])<0){for(;i=0;)i++;return i-e}function Vae(n,e,t){for(t--;e>>1,i(a,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=a}}function jA(n,e,t,r,i,a){var o=0,s=0,l=1;if(a(n,e[t+i])>0){for(s=r-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(n,e[t+c])>0?o=c+1:l=c}return l}function KA(n,e,t,r,i,a){var o=0,s=0,l=1;if(a(n,e[t+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=r-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(n,e[t+c])<0?l=c:o=c+1}return l}function Wae(n,e){var t=rp,r,i,a=0;n.length;var o=[];r=[],i=[];function s(d,p){r[a]=d,i[a]=p,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]i[d+1])break;c(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]=rp||C>=rp);if(P)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),p===1){for(v=0;v=0;v--)n[w+v]=n[T+v];n[A]=o[S];return}for(var C=t;;){var P=0,E=0,R=!1;do if(e(o[S],n[x])<0){if(n[A--]=n[x--],P++,E=0,--p===0){R=!0;break}}else if(n[A--]=o[S--],E++,P=0,--g===1){R=!0;break}while((P|E)=0;v--)n[w+v]=n[T+v];if(p===0){R=!0;break}}if(n[A--]=o[S--],--g===1){R=!0;break}if(E=g-jA(n[x],o,0,g,g-1,e),E!==0){for(A-=E,S-=E,g-=E,w=A+1,T=S+1,v=0;v=rp||E>=rp);if(R)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),g===1){for(A-=p,x-=p,w=A+1,T=x+1,v=p-1;v>=0;v--)n[w+v]=n[T+v];n[A]=o[S]}else{if(g===0)throw new Error;for(T=A-(g-1),v=0;vs&&(l=s),oB(n,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),i-=a,t+=a}while(i!==0);o.forceMergeRuns()}}var sB=!1;function qA(){sB||(sB=!0)}function lB(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var Xae=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=lB}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(qA(),c.z=0),isNaN(c.z2)&&(qA(),c.z2=0),isNaN(c.zlevel)&&(qA(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(i,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Yae=Xae;var XH;XH=sn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const uB=XH;function df(){return new Date().getTime()}var Jae=function(n){we(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,i=t.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=df()-this._pausedTime,i=r-this._time,a=this._head;a;){var o=a.next,s=a.step(r,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=r,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(uB(r),!t._paused&&t.update())}uB(r)},e.prototype.start=function(){this._running||(this._time=df(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=df(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=df()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var i=new OC(t,r.loop);return this.addAnimator(i),i},e}(vo);const Zae=Jae;var jae=300,QA=sn.domSupported,$A=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=He(n,function(i){var a=i.replace("mouse","pointer");return t.hasOwnProperty(a)?a:i});return{mouse:n,touch:e,pointer:r}}(),cB={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},hB=!1;function Tb(n){var e=n.pointerType;return e==="pen"||e==="touch"}function Kae(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function eM(n){n&&(n.zrByTouch=!0)}function qae(n,e){return Ta(n.dom,new Qae(n,e),!0)}function YH(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var Qae=function(){function n(e,t){this.stopPropagation=Br,this.stopImmediatePropagation=Br,this.preventDefault=Br,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),eo={mousedown:function(n){n=Ta(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=Ta(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=Ta(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=Ta(this.dom,n);var e=n.toElement||n.relatedTarget;YH(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){hB=!0,n=Ta(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){hB||(n=Ta(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=Ta(this.dom,n),eM(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),eo.mousemove.call(this,n),eo.mousedown.call(this,n)},touchmove:function(n){n=Ta(this.dom,n),eM(n),this.handler.processGesture(n,"change"),eo.mousemove.call(this,n)},touchend:function(n){n=Ta(this.dom,n),eM(n),this.handler.processGesture(n,"end"),eo.mouseup.call(this,n),+new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t=0;l--)a[l]&&!Ov(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[i]=a}}),delete t[$B],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var i=this._componentsMap.get(t);if(i){var a=i[r||0];if(a)return a;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function Ele(n,e){return n.join(",")===e.join(",")}const Rle=wle;var $a=U,Vv=yt,nO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function TM(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=nO.length;t=0;g--){var v=n[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,d)),p>=0){var x=v.data.getByRawIndex(v.stackResultDimension,p);if(l==="all"||l==="positive"&&x>0||l==="negative"&&x<0||l==="samesign"&&f>=0&&x>0||l==="samesign"&&f<=0&&x<0){f=Ine(f,x),y=x;break}}}return r[0]=f,r[1]=y,r})})}var oR=function(){function n(){this.group=new Wt,this.uid=gd("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,i){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,i){},n.prototype.updateLayout=function(e,t,r,i){},n.prototype.updateVisual=function(e,t,r,i){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();nE(oR);Px(oR);const tr=oR;var sO=Ln(),lO={itemStyle:Yf(mH,!0),lineStyle:Yf(gH,!0)},Ule={lineStyle:"stroke",itemStyle:"fill"};function j5(n,e){var t=n.visualStyleMapper||lO[e];return t||lO.itemStyle}function J5(n,e){var t=n.visualDrawType||Ule[e];return t||"fill"}var Gle={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=n.getModel(r),a=j5(n,r),o=a(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=J5(n,r),u=o[l],c=Dt(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||h){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Dt(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||Dt(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(d,p){var y=n.getDataParams(p),g=Oe({},o);g[l]=c(y),d.setItemVisual(p,"style",g)}}}},gp=new Kn,zle={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=j5(n,r),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){gp.option=l[r];var u=i(gp),c=o.ensureUniqueItemVisual(s,"style");Oe(c,u),gp.option.decal&&(o.setItemVisual(s,"decal",gp.option.decal),gp.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Hle={performRawSeries:!0,overallReset:function(n){var e=gt();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+r,a=e.get(i);a||(a={},e.set(i,a)),sO(t).scope=a}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),i={},a=t.getData(),o=sO(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=J5(t,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],h=a.getItemVisual(c,"colorFromPalette");if(h){var f=a.ensureUniqueItemVisual(c,"style"),d=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(d,o,p)}})}})}},t0=Math.PI;function Vle(n,e){e=e||{},Pt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Wt,r=new xn({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var i=new Sn({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new xn({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new zx({shape:{startAngle:-t0/2,endAngle:-t0/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:t0*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:t0*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var Wle=function(){function n(e,t,r,i){this._stageTaskMap=gt(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),i=r.context,a=!t&&r.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=a?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&a>=r.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=gt();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;r.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(i,i.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;U(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Pi(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,t,r),i.overallReset&&this._createOverallStageTask(i,a,t,r)},this)},n.prototype.prepareView=function(e,t,r,i){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=r,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,i){i=i||{};var a=!1,o=this;U(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),h=c.seriesTaskMap,f=c.overallTask;if(f){var d,p=f.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),d=!0)}),d&&f.dirty(),o.updatePayload(f,r);var y=o.getPerformArgs(f,i.block);p.each(function(g){g.perform(y)}),f.perform(y)&&(a=!0)}else h&&h.each(function(g,v){s(i,g)&&g.dirty();var x=o.getPerformArgs(g,i.block);x.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(x)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,i){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=gt(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(h){var f=h.uid,d=s.set(f,o&&o.get(f)||iv({plan:Zle,reset:Kle,count:$le}));d.context={model:h,ecModel:r,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(h,d)}},n.prototype._createOverallStageTask=function(e,t,r,i){var a=this,o=t.overallTask=t.overallTask||iv({reset:Xle});o.context={ecModel:r,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=gt(),u=e.seriesType,c=e.getTargetSeries,h=!0,f=!1,d="";Pi(!e.createOnAllSeries,d),u?r.eachRawSeriesByType(u,p):c?c(r,i).each(p):(h=!1,U(r.getSeries(),p));function p(y){var g=y.uid,v=l.set(g,s&&s.get(g)||(f=!0,iv({reset:Yle,onDirty:Jle})));v.context={model:y,overallProgress:h},v.agent=o,v.__block=h,a._pipe(y,v)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},n.wrapStageHandler=function(e,t){return Dt(e)&&(e={overallReset:e,seriesType:Qle(e)}),e.uid=gd("stageHandler"),t&&(e.visualType=t),e},n}();function Xle(n){n.overallReset(n.ecModel,n.api,n.payload)}function Yle(n){return n.overallProgress&&jle}function jle(){this.agent.dirty(),this.getDownstream().dirty()}function Jle(){this.agent&&this.agent.dirty()}function Zle(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function Kle(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=er(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?Ve(e,function(t,r){return Z5(r)}):qle}var qle=Z5(0);function Z5(n){return function(e,t){var r=t.data,i=t.resetDefines[n];if(i&&i.dataEach)for(var a=e.start;a0&&d===u.length-f.length){var p=u.slice(0,d);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:i}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,a=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,a));function c(h,f,d,p){return h[d]==null||f[p||d]===h[d]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),aT=["symbol","symbolSize","symbolRotate","symbolOffset"],fO=aT.concat(["symbolKeepAspect"]),rue={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&Tc(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function dO(n,e,t){for(var r=e.type==="radial"?hue(n,e,t):cue(n,e,t),i=e.colorStops,a=0;a0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:En(n)?[n]:He(n)?n:null}function sR(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&due(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var i=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;i&&i!==1&&(t=Ve(t,function(a){return a/i}),r/=i)}return[t,r]}var pue=new Ws(!0);function D_(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function vO(n){return typeof n=="string"&&n!=="none"}function I_(n){var e=n.fill;return e!=null&&e!=="none"}function gO(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function mO(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function yO(n,e,t){var r=rE(e.image,e.__image,t);if(Dx(r)){var i=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Jp),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function vue(n,e,t,r){var i,a=D_(t),o=I_(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||pue,h=e.__dirty;if(!r){var f=t.fill,d=t.stroke,p=o&&!!f.colorStops,y=a&&!!d.colorStops,g=o&&!!f.image,v=a&&!!d.image,x=void 0,S=void 0,A=void 0,b=void 0,w=void 0;(p||y)&&(w=e.getBoundingRect()),p&&(x=h?dO(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=x),y&&(S=h?dO(n,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),g&&(A=h||!e.__canvasFillPattern?yO(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=A),v&&(b=h||!e.__canvasStrokePattern?yO(n,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=A),p?n.fillStyle=x:g&&(A?n.fillStyle=A:o=!1),y?n.strokeStyle=S:v&&(b?n.strokeStyle=b:a=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var P,E;n.setLineDash&&t.lineDash&&(i=sR(e),P=i[0],E=i[1]);var R=!0;(u||h&cf)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),R=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),R&&c.rebuildPath(n,l?s:1),P&&(n.setLineDash(P),n.lineDashOffset=E),r||(t.strokeFirst?(a&&mO(n,t),o&&gO(n,t)):(o&&gO(n,t),a&&mO(n,t))),P&&n.setLineDash([])}function gue(n,e,t){var r=e.__image=rE(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var i=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,i,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,h=o-u,f=s-c;n.drawImage(r,u,c,h,f,i,a,o,s)}else n.drawImage(r,i,a,o,s)}}function mue(n,e,t){var r,i=t.text;if(i!=null&&(i+=""),i){n.font=t.font||Zl,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var a=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=sR(e),a=r[0],o=r[1]),a&&(n.setLineDash(a),n.lineDashOffset=o),t.strokeFirst?(D_(t)&&n.strokeText(i,t.x,t.y),I_(t)&&n.fillText(i,t.x,t.y)):(I_(t)&&n.fillText(i,t.x,t.y),D_(t)&&n.strokeText(i,t.x,t.y)),a&&n.setLineDash([])}}var _O=["shadowBlur","shadowOffsetX","shadowOffsetY"],xO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function n4(n,e,t,r,i){var a=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){Vi(n,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?Oc.opacity:o}(r||e.blend!==t.blend)&&(a||(Vi(n,i),a=!0),n.globalCompositeOperation=e.blend||Oc.blend);for(var s=0;s<_O.length;s++){var l=_O[s];(r||e[l]!==t[l])&&(a||(Vi(n,i),a=!0),n[l]=n.dpr*(e[l]||0))}return(r||e.shadowColor!==t.shadowColor)&&(a||(Vi(n,i),a=!0),n.shadowColor=e.shadowColor||Oc.shadowColor),a}function SO(n,e,t,r,i){var a=Xv(e,i.inHover),o=r?null:t&&Xv(t,i.inHover)||{};if(a===o)return!1;var s=n4(n,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(Vi(n,i),s=!0),vO(a.fill)&&(n.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(Vi(n,i),s=!0),vO(a.stroke)&&(n.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(Vi(n,i),s=!0),n.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);n.lineWidth!==u&&(s||(Vi(n,i),s=!0),n.lineWidth=u)}for(var c=0;c0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,i){if(!this[ei]){if(this._disposed){this.id;return}var a,o,s;if(yt(r)&&(i=r.lazyUpdate,a=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ei]=!0,!this._model||r){var l=new Rle(this._api),u=this._theme,c=this._model=new V5;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},lT);var h={seriesTransition:s,optionChanged:!0};if(i)this[Ui]={silent:a,updateParams:h},this[ei]=!1,this.getZr().wakeUp();else{try{ef(this),Ml.update.call(this,null,h)}catch(f){throw this[Ui]=null,this[ei]=!1,f}this._ssr||this._zr.flush(),this[Ui]=null,this[ei]=!1,mp.call(this,a),yp.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||un.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(un.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return U(r,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,i=this._model,a=[],o=this;U(r,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return U(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(N_[i]){var l=s,u=s,c=-s,h=-s,f=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();U(Uc,function(S,A){if(S.group===i){var b=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(Mt(t)),w=S.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),c=o(w.right,c),h=o(w.bottom,h),f.push({dom:b,left:w.left,top:w.top})}}),l*=d,u*=d,c*=d,h*=d;var p=c-l,y=h-u,g=Kl.createCanvas(),v=rT(g,{renderer:r?"svg":"canvas"});if(v.resize({width:p,height:y}),r){var x="";return U(f,function(S){var A=S.left-l,b=S.top-u;x+=''+S.dom+""}),v.painter.getSvgRoot().innerHTML=x,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}else return t.connectedBackgroundColor&&v.add(new xn({shape:{x:0,y:0,width:p,height:y},style:{fill:t.connectedBackgroundColor}})),U(f,function(S){var A=new Ii({style:{x:S.left*d-l,y:S.top*d-u,image:S.dom}});v.add(A)}),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return IM(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return IM(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var i=this._model,a,o=$p(i,t);return U(o,function(s,l){l.indexOf("Models")>=0&&U(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(r);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(r,u))}},this)},this),!!a},e.prototype.getVisual=function(t,r){var i=this._model,a=$p(i,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?e4(s,l,r):t4(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;U(Vue,function(r){var i=function(a){var o=t.getModel(),s=a.target,l,u=r==="globalout";if(u?l={}:s&&bc(s,function(p){var y=rn(p);if(y&&y.dataIndex!=null){var g=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return l=g&&g.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return l=Oe({},y.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var f=c&&h!=null&&o.getComponent(c,h),d=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=a,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:d},t.trigger(r,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(r,i,t)}),U(av,function(r,i){t._messageCenter.on(i,function(a){this.trigger(i,a)},t)}),U(["selectchanged"],function(r){t._messageCenter.on(r,function(i){this.trigger(r,i)},t)}),use(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&Fz(this.getDom(),cR,"");var r=this,i=r._api,a=r._model;U(r._componentsViews,function(o){o.dispose(a,i)}),U(r._chartsViews,function(o){o.dispose(a,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Uc[r.id]},e.prototype.resize=function(t){if(!this[ei]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),a=t&&t.silent;this[Ui]&&(a==null&&(a=this[Ui].silent),i=!0,this[Ui]=null),this[ei]=!0;try{i&&ef(this),Ml.update.call(this,{type:"resize",animation:Oe({duration:0},t&&t.animation)})}catch(o){throw this[ei]=!1,o}this[ei]=!1,mp.call(this,a),yp.call(this,a)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(yt(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!uT[t]){var i=uT[t](this._api,r),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=Oe({},t);return r.type=av[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(yt(r)||(r={silent:!!r}),!!O_[t.type]&&this._model){if(this[ei]){this._pendingActions.push(t);return}var i=r.silent;BM.call(this,t,i);var a=r.flush;a?this._zr.flush():a!==!1&&un.browser.weChat&&this._throttledZrFlush(),mp.call(this,i),yp.call(this,i)}},e.prototype.updateLabelLayout=function(){no.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(r);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){ef=function(h){var f=h._scheduler;f.restorePipelines(h._model),f.prepareStageTasks(),DM(h,!0),DM(h,!1),f.plan()},DM=function(h,f){for(var d=h._model,p=h._scheduler,y=f?h._componentsViews:h._chartsViews,g=f?h._componentsMap:h._chartsMap,v=h._zr,x=h._api,S=0;Sf.get("hoverLayerThreshold")&&!un.node&&!un.worker&&f.eachSeries(function(g){if(!g.preventUsingHoverLayer){var v=h._chartsMap[g.__viewId];v.__alive&&v.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}function o(h,f){var d=h.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=d)})}function s(h,f){if(!h.preventAutoZ){var d=h.get("z")||0,p=h.get("zlevel")||0;f.eachRendered(function(y){return l(y,d,p,-1/0),!0})}}function l(h,f,d,p){var y=h.getTextContent(),g=h.getTextGuideLine(),v=h.isGroup;if(v)for(var x=h.childrenRef(),S=0;S0?{duration:y,delay:d.get("delay"),easing:d.get("easing")}:null;f.eachRendered(function(v){if(v.states&&v.states.emphasis){if(nv(v))return;if(v instanceof Tn&&mre(v),v.__dirty){var x=v.prevStates;x&&v.useStates(x)}if(p){v.stateTransition=g;var S=v.getTextContent(),A=v.getTextGuideLine();S&&(S.stateTransition=g),A&&(A.stateTransition=g)}v.__dirty&&i(v)}})}LO=function(h){return new(function(f){be(d,f);function d(){return f!==null&&f.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(p){for(;p;){var y=p.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);p=p.parent}},d.prototype.enterEmphasis=function(p,y){jf(p,y),Aa(h)},d.prototype.leaveEmphasis=function(p,y){Jf(p,y),Aa(h)},d.prototype.enterBlur=function(p){ore(p),Aa(h)},d.prototype.leaveBlur=function(p){Hz(p),Aa(h)},d.prototype.enterSelect=function(p){Vz(p),Aa(h)},d.prototype.leaveSelect=function(p){Wz(p),Aa(h)},d.prototype.getModel=function(){return h.getModel()},d.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},d.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},d}(W5))(h)},_4=function(h){function f(d,p){for(var y=0;y=0)){OO.push(t);var a=$5.wrapStageHandler(t,i);a.__prio=e,a.__raw=t,n.push(a)}}function gR(n,e){uT[n]=e}function $ue(n){IG({createCanvas:n})}function T4(n,e,t){var r=u4("registerMap");r&&r(n,e,t)}function Que(n){var e=u4("getMap");return e&&e(n)}var C4=Lae;su(lR,Gle);su(uS,zle);su(uS,Hle);su(lR,rue);su(uS,iue);su(f4,bue);dR(Y5);pR(Iue,Nle);gR("default",Vle);yo({type:Fc,event:Fc,update:Fc},Fr);yo({type:k0,event:k0,update:k0},Fr);yo({type:Qp,event:Qp,update:Qp},Fr);yo({type:U0,event:U0,update:U0},Fr);yo({type:ev,event:ev,update:ev},Fr);fR("light",eue);fR("dark",tue);var ece={},FO=[],tce={registerPreprocessor:dR,registerProcessor:pR,registerPostInit:A4,registerPostUpdate:M4,registerUpdateLifecycle:cS,registerAction:yo,registerCoordinateSystem:w4,registerLayout:b4,registerVisual:su,registerTransform:C4,registerLoading:gR,registerMap:T4,registerImpl:Cue,PRIORITY:d4,ComponentModel:sn,ComponentView:tr,SeriesModel:ca,ChartView:si,registerComponentModel:function(n){sn.registerClass(n)},registerComponentView:function(n){tr.registerClass(n)},registerSeriesModel:function(n){ca.registerClass(n)},registerChartView:function(n){si.registerClass(n)},registerSubTypeDefaulter:function(n,e){sn.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){G5(n,e)}};function Wr(n){if(He(n)){U(n,function(e){Wr(e)});return}nn(FO,n)>=0||(FO.push(n),Dt(n)&&(n={install:n}),n.install(tce))}var nce=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(sn);const rce=nce;var Tg=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),cT=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Cr).models[0]},e.type="cartesian2dAxis",e}(sn);Xr(cT,Tg);var E4={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},ice=Ut({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},E4),mR=Ut({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},E4),ace=Ut({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},mR),oce=Pt({logBase:10},mR);const R4={category:ice,value:mR,time:ace,log:oce};var sce=0,lce=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++sce}return n.createByAxisModel=function(e){var t=e.option,r=t.data,i=r&&Ve(r,uce);return new n({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!$e(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=gt(this.categories))},n}();function uce(n){return yt(n)&&n.value!=null?n.value:n+""}const hT=lce;var cce={value:1,category:1,time:1,log:1};function Yv(n,e,t,r){U(cce,function(i,a){var o=Ut(Ut({},R4[a],!0),r,!0),s=function(l){be(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var f=zv(this),d=f?yd(c):{},p=h.getTheme();Ut(c,p.get(a+"Axis")),Ut(c,this.getDefaultOption()),c.type=NO(c),f&&Ql(c,d,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=hT.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",NO)}function NO(n){return n.type||(n.data?"category":"value")}var P4=function(){function n(e){this._setting=e||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(e){return this._setting[e]},n.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(P4);const Ks=P4;function fT(n){return n.type==="interval"||n.type==="log"}function hce(n,e,t,r){var i={},a=n[1]-n[0],o=i.interval=pE(a/e,!0);t!=null&&or&&(o=i.interval=r);var s=i.intervalPrecision=D4(o),l=i.niceTickExtent=[cr(Math.ceil(n[0]/o)*o,s),cr(Math.floor(n[1]/o)*o,s)];return fce(l,n),i}function FM(n){var e=Math.pow(10,Fx(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,cr(t*e)}function D4(n){return Vo(n)+2}function kO(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function fce(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),kO(n,0,e),kO(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function hS(n,e){return n>=e[0]&&n<=e[1]}function fS(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function dS(n,e){return n*(e[1]-e[0])+e[0]}var I4=function(n){be(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new hT({})),He(i)&&(i=new hT({categories:Ve(i,function(a){return yt(a)?a.value:a})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:$e(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),hS(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),fS(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(dS(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,i=r[0];i<=r[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Ks);Ks.registerClass(I4);const yR=I4;var Ku=cr,L4=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return hS(t,this._extent)},e.prototype.normalize=function(t){return fS(t,this._extent)},e.prototype.scale=function(t){return dS(t,this._extent)},e.prototype.setExtent=function(t,r){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(r)||(i[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=D4(t)},e.prototype.getTicks=function(t){var r=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(t?s.push({value:Ku(c+r,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&d>>1;n[i][1]i&&(this._approxInterval=i);var s=o0.length,l=Math.min(dce(o0,this._approxInterval,0,s),s-1);this._interval=o0[l][1],this._minLevelUnit=o0[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return En(t)?t:+ua(t)},e.prototype.contain=function(t){return hS(this.parse(t),this._extent)},e.prototype.normalize=function(t){return fS(this.parse(t),this._extent)},e.prototype.scale=function(t){return dS(t,this._extent)},e.type="time",e}(eu),o0=[["second",zE],["minute",HE],["hour",rv],["quarter-day",rv*6],["half-day",rv*12],["day",Na*1.2],["half-week",Na*3.5],["week",Na*7],["month",Na*31],["quarter",Na*95],["half-year",nB/2],["year",nB]];function pce(n,e,t,r){var i=ua(e),a=ua(t),o=function(p){return iB(i,p,r)===iB(a,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},h=function(){return c()&&o("minute")},f=function(){return h()&&o("second")},d=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return f();case"millisecond":return d()}}function vce(n,e){return n/=Na,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function gce(n){var e=30*Na;return n/=e,n>6?6:n>3?3:n>2?2:1}function mce(n){return n/=rv,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function UO(n,e){return n/=e?HE:zE,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function yce(n){return pE(n,!0)}function _ce(n,e,t){var r=new Date(n);switch(Rf(e)){case"year":case"month":r[VH(t)](0);case"day":r[WH(t)](1);case"hour":r[XH(t)](0);case"minute":r[YH(t)](0);case"second":r[jH(t)](0),r[JH(t)](0)}return r.getTime()}function xce(n,e,t,r){var i=1e4,a=zH,o=0;function s(R,D,B,k,N,z,X){for(var ne=new Date(D),H=D,K=ne[k]();H1&&z===0&&B.unshift({value:B[0].value-H})}}for(var z=0;z=r[0]&&x<=r[1]&&h++)}var S=(r[1]-r[0])/e;if(h>S*1.5&&f>S/1.5||(u.push(g),h>S||n===a[d]))break}c=[]}}}for(var A=Zn(Ve(u,function(R){return Zn(R,function(D){return D.value>=r[0]&&D.value<=r[1]&&!D.notAdd})}),function(R){return R.length>0}),b=[],w=A.length-1,d=0;d0;)a*=10;var s=[cr(Mce(r[0]/a)*a),cr(Ace(r[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){ov.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Qa(t)/Qa(this.base),hS(t,this._extent)},e.prototype.normalize=function(t){return t=Qa(t)/Qa(this.base),fS(t,this._extent)},e.prototype.scale=function(t){return t=dS(t,this._extent),s0(this.base,t)},e.type="log",e}(Ks),F4=_R.prototype;F4.getMinorTicks=ov.getMinorTicks;F4.getLabel=ov.getLabel;function l0(n,e){return Sce(n,Vo(e))}Ks.registerClass(_R);const wce=_R;var bce=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,d=this._determinedMax;return f!=null&&(s=f,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},n.prototype.modifyDataMinMax=function(e,t){this[Cce[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=Tce[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),Tce={min:"_determinedMin",max:"_determinedMax"},Cce={min:"_dataMin",max:"_dataMax"};function N4(n,e,t){var r=n.rawExtentInfo;return r||(r=new bce(n,e,t),n.rawExtentInfo=r,r)}function u0(n,e){return e==null?null:Ev(e)?NaN:n.parse(e)}function k4(n,e){var t=n.type,r=N4(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var i=r.min,a=r.max,o=e.ecModel;if(o&&t==="time"){var s=y5("bar",o),l=!1;if(U(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=_5(s),c=Ece(i,a,e,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function Ece(n,e,t,r){var i=t.axis.getExtent(),a=i[1]-i[0],o=Voe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;U(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;U(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,h=1-(s+l)/a,f=c/h-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function qf(n,e){var t=e,r=k4(n,t),i=r.extent,a=t.get("splitNumber");n instanceof wce&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(i[0],i[1]),n.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function pS(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new yR({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new O4({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(Ks.getClass(e)||eu)}}function Rce(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function Cg(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(i,a){return n.scale.getFormattedLabel(i,a,r)}}(e):$e(e)?function(r){return function(i){var a=n.scale.getLabel(i),o=r.replace("{value}",a!=null?a:"");return o}}(e):Dt(e)?function(r){return function(i,a){return t!=null&&(a=i.value-t),r(xR(n,i),a,i.level!=null?{level:i.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function xR(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function Pce(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,i,a=t.getExtent();t instanceof yR?i=t.count():(r=t.getTicks(),i=r.length);var o=n.getLabelModel(),s=Cg(n),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;cn[1]&&(n[1]=i[1])})}var Lce=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return Ve(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Zn(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const Bce=Lce;var dT=["x","y"];function zO(n){return n.type==="interval"||n.type==="time"}var Oce=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dT,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!zO(t)||!zO(r))){var i=t.getExtent(),a=r.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,h=(s[1]-o[1])/u,f=o[0]-i[0]*c,d=o[1]-a[0]*h,p=this._transform=[c,0,0,h,f,d];this._invTransform=hd([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var i=this.dataToPoint(t),a=this.dataToPoint(r),o=this.getArea(),s=new cn(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,i){i=i||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Nr(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,r)),i[1]=l.toGlobalCoord(l.dataToCoord(o,r)),i},e.prototype.clampData=function(t,r){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(t[0]),u=a.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var i=[];if(this._invTransform)return Nr(i,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(t[0]),r),i[1]=o.coordToData(o.toLocalCoord(t[1]),r),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),a=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-i,s=Math.max(r[0],r[1])-a;return new cn(i,a,o,s)},e}(Bce),jv=Ln();function Fce(n){return n.type==="category"?kce(n):Gce(n)}function Nce(n,e){return n.type==="category"?Uce(n,e):{ticks:Ve(n.scale.getTicks(),function(t){return t.value})}}function kce(n){var e=n.getLabelModel(),t=G4(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function G4(n,e){var t=z4(n,"labels"),r=SR(e),i=H4(t,r);if(i)return i;var a,o;return Dt(r)?a=X4(n,r):(o=r==="auto"?zce(n):r,a=W4(n,o)),V4(t,r,{labels:a,labelCategoryInterval:o})}function Uce(n,e){var t=z4(n,"ticks"),r=SR(e),i=H4(t,r);if(i)return i;var a,o;if((!e.get("show")||n.scale.isBlank())&&(a=[]),Dt(r))a=X4(n,r,!0);else if(r==="auto"){var s=G4(n,n.getLabelModel());o=s.labelCategoryInterval,a=Ve(s.labels,function(l){return l.tickValue})}else o=r,a=W4(n,o,!0);return V4(t,r,{ticks:a,tickCategoryInterval:o})}function Gce(n){var e=n.scale.getTicks(),t=Cg(n);return{labels:Ve(e,function(r,i){return{level:r.level,formattedLabel:t(r,i),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function z4(n,e){return jv(n)[e]||(jv(n)[e]=[])}function H4(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),f=0,d=0;l<=a[1];l+=s){var p=0,y=0,g=xg(t({value:l}),e.font,"center","top");p=g.width*1.3,y=g.height*1.3,f=Math.max(f,p,7),d=Math.max(d,y,7)}var v=f/c,x=d/h;isNaN(v)&&(v=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(v,x))),A=jv(n.model),b=n.getExtent(),w=A.lastAutoInterval,C=A.lastTickCount;return w!=null&&C!=null&&Math.abs(w-S)<=1&&Math.abs(C-o)<=1&&w>S&&A.axisExtent0===b[0]&&A.axisExtent1===b[1]?S=w:(A.lastTickCount=o,A.lastAutoInterval=S,A.axisExtent0=b[0],A.axisExtent1=b[1]),S}function Vce(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function W4(n,e,t){var r=Cg(n),i=n.scale,a=i.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=U4(n),f=o.get("showMinLabel")||h,d=o.get("showMaxLabel")||h;f&&u!==a[0]&&y(a[0]);for(var p=u;p<=a[1];p+=l)y(p);d&&p-l!==a[1]&&y(a[1]);function y(g){var v={value:g};s.push(t?g:{formattedLabel:r(v),rawLabel:i.getLabel(v),tickValue:g})}return s}function X4(n,e,t){var r=n.scale,i=Cg(n),a=[];return U(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&a.push(t?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var HO=[0,1],Wce=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=r&&e<=i},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return fE(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(r=r.slice(),VO(r,i.count())),zn(e,HO,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),VO(r,i.count()));var a=zn(e,r,HO,t);return this.scale.scale(a)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=Nce(this,t),i=r.ticks,a=Ve(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return Xce(this,a,o,e.clamp),a},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),i=Ve(r,function(a){return Ve(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},n.prototype.getViewLabels=function(){return Fce(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/r},n.prototype.calculateCategoryInterval=function(){return Hce(this)},n}();function VO(n,e){var t=n[1]-n[0],r=e,i=t/r/2;n[0]+=i,n[1]-=i}function Xce(n,e,t,r){var i=e.length;if(!n.onBand||t||!i)return;var a=n.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;U(e,function(d){d.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var h=a[0]>a[1];f(e[0].coord,a[0])&&(r?e[0].coord=a[0]:e.shift()),r&&f(a[0],e[0].coord)&&e.unshift({coord:a[0]}),f(a[1],o.coord)&&(r?o.coord=a[1]:e.pop()),r&&f(o.coord,a[1])&&e.push({coord:a[1]});function f(d,p){return d=cr(d),p=cr(p),h?d>p:dr[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(_o);const jce=Yce;function pT(n,e,t){t=t||{};var r=n.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,p=u==="x"?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(o){var y=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(y,p[1]),p[0])}a.position=[u==="y"?p[f[l]]:h[0],u==="x"?p[f[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),zs(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-v:v,a.z2=1,a}function WO(n){return n.get("coordinateSystem")==="cartesian2d"}function XO(n){var e={xAxisModel:null,yAxisModel:null};return U(e,function(t,r){var i=r.replace(/Model$/,""),a=n.getReferringComponents(i,Cr).models[0];e[r]=a}),e}var NM=Math.log;function Y4(n,e,t){var r=eu.prototype,i=r.getTicks.call(t),a=r.getTicks.call(t,!0),o=i.length-1,s=r.getInterval.call(t),l=k4(n,e),u=l.extent,c=l.fixMin,h=l.fixMax;if(n.type==="log"){var f=NM(n.base);u=[NM(u[0])/f,NM(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:h});var d=r.getExtent.call(n);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var p=r.getInterval.call(n),y=u[0],g=u[1];if(c&&h)p=(g-y)/o;else if(c)for(g=u[0]+p*o;gu[0]&&isFinite(y)&&isFinite(u[0]);)p=FM(p),y=u[1]-p*o;else{var v=n.getTicks().length-1;v>o&&(p=FM(p));var x=p*o;g=Math.ceil(u[1]/p)*p,y=cr(g-x),y<0&&u[0]>=0?(y=0,g=cr(x)):g>0&&u[1]<=0&&(g=0,y=-cr(x))}var S=(i[0].value-a[0].value)/s,A=(i[o].value-a[o].value)/s;r.setExtent.call(n,y+p*S,g+p*A),r.setInterval.call(n,p),(S||A)&&r.setNiceExtent.call(n,y+p,g-p)}var Jce=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dT,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=jt(o),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var f=+l[h],d=o[f],p=d.model,y=d.scale;fT(y)&&p.get("alignTicks")&&p.get("interval")==null?c.push(d):(qf(y,p),fT(y)&&(s=d))}c.length&&(s||(s=c.pop(),qf(s.scale,s.model)),U(c,function(g){Y4(g.scale,g.model,s.scale)}))}}i(r.x),i(r.y);var a={};U(r.x,function(o){YO(r,"y",o,a)}),U(r.y,function(o){YO(r,"x",o,a)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var i=e.getBoxLayoutParams(),a=!r&&e.get("containLabel"),o=Di(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(U(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Pce(u);if(c){var h=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[h]-=c[h]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),U(this._coordsList,function(u){u.calcAffineTransform()});function l(){U(s,function(u){var c=u.isHorizontal(),h=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(h[f],h[1-f]),Zce(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}yt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Lv(i-Ol)?(o=r>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),JO={axisLine:function(n,e,t,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&n.handleAutoShown&&(i=n.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=r.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Nr(s,s,o),Nr(l,l,o));var c=Oe({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Ti({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});kv(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var f=e.get(["axisLine","symbol"]);if(f!=null){var d=e.get(["axisLine","symbolSize"]);$e(f)&&(f=[f,f]),($e(d)||En(d))&&(d=[d,d]);var p=oS(e.get(["axisLine","symbolOffset"])||0,d),y=d[0],g=d[1];U([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(v,x){if(f[x]!=="none"&&f[x]!=null){var S=ui(f[x],-y/2,-g/2,y,g,c.stroke,!0),A=v.r+v.offset,b=u?l:s;S.attr({rotation:v.rotate,x:b[0]+A*Math.cos(n.rotation),y:b[1]-A*Math.sin(n.rotation),silent:!0,z2:11}),t.add(S)}})}}},axisTickLabel:function(n,e,t,r){var i=Qce(t,r,e,n),a=the(t,r,e,n);if($ce(e,a,i),ehe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=gse(Ve(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));_se(o)}},axisName:function(n,e,t,r){var i=zs(n.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,KO(a)?n.labelOffset+o*l:0],f,d=e.get("nameRotate");d!=null&&(d=d*Ol/180);var p;KO(a)?f=Gc.innerTextLayout(n.rotation,d!=null?d:n.rotation,o):(f=qce(n.rotation,a,d||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var y=s.getFont(),g=e.get("nameTruncate",!0)||{},v=g.ellipsis,x=zs(n.nameTruncateMaxWidth,g.maxWidth,p),S=new Sn({x:h[0],y:h[1],rotation:f.rotation,silent:Gc.isLabelSilent(e),style:gr(s,{text:i,font:y,overflow:"truncate",width:x,ellipsis:v,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(pd({el:S,componentModel:e,itemName:i}),S.__fullText=i,S.anid="name",e.get("triggerEvent")){var A=Gc.makeAxisEventDataBase(e);A.targetType="axisName",A.name=i,rn(S).eventData=A}r.add(S),S.updateTransform(),t.add(S),S.decomposeTransform()}}};function qce(n,e,t,r){var i=dE(t-n),a,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return Lv(i-Ol/2)?(o=l?"bottom":"top",a="center"):Lv(i-Ol*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iOl/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function $ce(n,e,t){if(!U4(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),i=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],h=t[t.length-1],f=t[t.length-2];r===!1?(Ma(a),Ma(u)):ZO(a,o)&&(r?(Ma(o),Ma(c)):(Ma(a),Ma(u))),i===!1?(Ma(s),Ma(h)):ZO(l,s)&&(i?(Ma(l),Ma(f)):(Ma(s),Ma(h)))}}function Ma(n){n&&(n.ignore=!0)}function ZO(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var i=_g([]);return au(i,i,-n.rotation),t.applyTransform(Zo([],i,n.getLocalTransform())),r.applyTransform(Zo([],i,e.getLocalTransform())),t.intersect(r)}}function KO(n){return n==="middle"||n==="center"}function j4(n,e,t,r,i){for(var a=[],o=[],s=[],l=0;l=0||n===e}function she(n){var e=AR(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,i=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=vT(t);a==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var y=l;p.color!=null&&(y=Pt({color:p.color},l));var g=Ut(Mt(p),{boundaryGap:t,splitNumber:r,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:y,triggerEvent:f},!1);if($e(c)){var v=g.name;g.name=c.replace("{value}",v!=null?v:"")}else Dt(c)&&(g.name=c(g.name,g));var x=new Kn(g,null,this.ecModel);return Xr(x,Tg.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ut({lineStyle:{color:"#bbb"}},_p.axisLine),axisLabel:c0(_p.axisLabel,!1),axisTick:c0(_p.axisTick,!1),splitLine:c0(_p.splitLine,!0),splitArea:c0(_p.splitArea,!0),indicator:[]},e}(sn);const bhe=whe;var The=["axisLine","axisTickLabel","axisName"],Che=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=this.group;a.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes(),a=Ve(i,function(o){var s=o.model.get("showName")?o.name:"",l=new tu(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});U(a,function(o){U(The,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var a=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),h=s.get("show"),f=l.get("color"),d=u.get("color"),p=He(f)?f:[f],y=He(d)?d:[d],g=[],v=[];function x(z,X,ne){var H=ne%X.length;return z[H]=z[H]||[],H}if(a==="circle")for(var S=i[0].getTicksCoords(),A=r.cx,b=r.cy,w=0;w3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;GM(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(a),f=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);GM(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!nF(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;GM(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(go);function GM(n,e,t,r,i){n.pointerChecker&&n.pointerChecker(r,i.originX,i.originY)&&(Xs(r.event),q4(n,e,t,r,i))}function q4(n,e,t,r,i){i.isAvailableBehavior=ut(j0,null,t,r),n.trigger(e,i)}function j0(n,e,t){var r=t[n];return!n||r&&(!$e(r)||e.event[r+"Key"])}const $4=Fhe;function Nhe(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function khe(n,e,t,r){var i=n.target,a=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Uhe={axisPointer:1,tooltip:1,brush:1};function Q4(n,e,t){var r=e.getComponentByElement(n.topTarget),i=r&&r.coordinateSystem;return r&&r!==t&&!Uhe.hasOwnProperty(r.mainType)&&i&&i.model!==t}function eV(n){if($e(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var zM,U_={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},rF=jt(U_),G_={"alignment-baseline":"textBaseline","stop-color":"stopColor"},iF=jt(G_),Ghe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=eV(e);this._defsUsePending=[];var i=new Wt;this._root=i;var a=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Qi(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;Vhe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,h;if(o){var f=vS(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(h=nV(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var d=i;i=new Wt,i.add(d),d.scaleX=d.scaleY=h.scale,d.x=h.x,d.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new xn({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:h,named:a}},n.prototype._parseNode=function(e,t,r,i,a,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!a){var c=zM[s];if(c&&kt(zM,s)){l=c.call(this,e,t);var h=e.getAttribute("name");if(h){var f={name:h,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var d=aF[s];if(d&&kt(aF,s)){var p=d.call(this,e),y=e.getAttribute("id");y&&(this._defs[y]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},n.prototype._parseText=function(e,t){var r=new Iv({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});wa(t,r),Qi(e,r,this._defsUsePending,!1,!1),zhe(r,t);var i=r.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,r.scaleX*=a/9,r.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){zM={g:function(e,t){var r=new Wt;return wa(t,r),Qi(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new xn;return wa(t,r),Qi(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new ho;return wa(t,r),Qi(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new Ti;return wa(t,r),Qi(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Gx;return wa(t,r),Qi(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),i;r&&(i=lF(r));var a=new ss({shape:{points:i||[]},silent:!0});return wa(t,a),Qi(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,t){var r=e.getAttribute("points"),i;r&&(i=lF(r));var a=new Va({shape:{points:i||[]},silent:!0});return wa(t,a),Qi(e,a,this._defsUsePending,!1,!1),a},image:function(e,t){var r=new Ii;return wa(t,r),Qi(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new Wt;return wa(t,s),Qi(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),i=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Wt;return wa(t,s),Qi(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",i=Kz(r);return wa(t,i),Qi(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),n}(),aF={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),i=parseInt(n.getAttribute("y2")||"0",10),a=new Mg(e,t,r,i);return oF(n,a),sF(n,a),a},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),i=new bE(e,t,r);return oF(n,i),sF(n,i),i}};function oF(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function sF(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var a={};tV(t,a,a);var o=a.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function wa(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Pt(e.__inheritedStyle,n.__inheritedStyle))}function lF(n){for(var e=vS(n),t=[],r=0;r0;a-=2){var o=r[a],s=r[a-1],l=vS(o);switch(i=i||za(),s){case"translate":Hs(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":iE(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":au(i,i,-parseFloat(l[0])*HM);break;case"skewX":var u=Math.tan(parseFloat(l[0])*HM);Zo(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*HM);Zo(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var cF=/([^\s:;]+)\s*:\s*([^:;]+)/g;function tV(n,e,t){var r=n.getAttribute("style");if(r){cF.lastIndex=0;for(var i;(i=cF.exec(r))!=null;){var a=i[1],o=kt(U_,a)?U_[a]:null;o&&(e[o]=i[2]);var s=kt(G_,a)?G_[a]:null;s&&(t[s]=i[2])}}}function jhe(n,e,t){for(var r=0;ri&&(r=o,i=l)}if(r)return qhe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return U(o,function(s){s.type==="polygon"?dF(s.exterior,i,a,t):U(s.points,function(l){dF(l,i,a,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),r=new cn(i[0],i[1],a[0]-i[0],a[1]-i[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,r.push([s/t,l/t])}return r}function mT(n,e){return n=rfe(n),Ve(Zn(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,i=t.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new pF(o[0],o.slice(1)));break;case"MultiPolygon":U(i.coordinates,function(l){l[0]&&a.push(new pF(l[0],l.slice(1)))});break;case"LineString":a.push(new vF([i.coordinates]));break;case"MultiLineString":a.push(new vF(i.coordinates))}var s=new iV(r[e||"name"],a,r.cp);return s.properties=r,s})}var yT=[126,25],gF="南海诸岛",oc=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var qu=0;qu0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,i)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=gt(),r=gt(),i=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(d,p){return p&&(d=p(d)),d&&[d[0]*a.scaleX+a.x,d[1]*a.scaleY+a.y]}function h(d){for(var p=[],y=!u&&l&&l.project,g=0;g=0)&&(f=i);var d=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Js(e,Zs(r),{labelFetcher:f,labelDataIndex:h,defaultText:t},d);var p=e.getTextContent();if(p&&(oV(p).ignore=p.ignore,e.textConfig&&o)){var y=e.getBoundingRect().clone();e.textConfig.layoutRect=y,e.textConfig.position=[(o[0]-y.x)/y.width*100+"%",(o[1]-y.y)/y.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function xF(n,e,t,r,i,a){n.data?n.data.setItemGraphicEl(a,e):rn(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:r&&r.option||{}}}function SF(n,e,t,r,i){n.data||pd({el:e,componentModel:i,itemName:t,itemTooltipOption:r.get("tooltip")})}function AF(n,e,t,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var a=r.getModel("emphasis"),o=a.get("focus");return ql(e,o,a.get("blurScope"),a.get("disabled")),n.isGeo&&vre(e,i,t),o}function MF(n,e,t){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),U(n,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(ca);const xfe=_fe;function Sfe(n,e){var t={};return U(n,function(r){r.each(r.mapDimension("value"),function(i,a){var o="ec-"+r.getName(a);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),n[0].map(n[0].mapDimension("value"),function(r,i){for(var a="ec-"+n[0].getName(i),o=0,s=1/0,l=-1/0,u=t[a].length,c=0;c1?(A.width=S,A.height=S/g):(A.height=S,A.width=S*g),A.y=x[1]-A.height/2,A.x=x[0]-A.width/2;else{var b=n.getBoxLayoutParams();b.aspect=g,A=Di(b,{width:p,height:y})}this.setViewRect(A.x,A.y,A.width,A.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function Tfe(n,e){U(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var Cfe=function(){function n(){this.dimensions=uV}return n.prototype.create=function(e,t){var r=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new CF(l+s,l,Oe({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=EF,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var a={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),U(a,function(o,s){var l=Ve(o,function(c){return c.get("nameMap")}),u=new CF(s,s,Oe({nameMap:OG(l)},i(o[0])));u.zoomLimit=zs.apply(null,Ve(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=EF,u.resize(o[0],t),U(o,function(c){c.coordinateSystem=u,Tfe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,i){for(var a=(e||[]).slice(),o=gt(),s=0;s=0;a--)r[a]==null&&(delete t[e[a]],e.pop())}function XM(n,e){var t=n.visual,r=[];yt(t)?Zv(t,function(a){r.push(a)}):t!=null&&r.push(t);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(n.type)&&(r[1]=r[0]),fV(n,r)}function f0(n){return{applyVisual:function(e,t,r){var i=this.mapValueToVisual(e);r("color",n(t("color"),i))},_normalizedToVisual:_T([0,1])}}function PF(n){var e=this.option.visual;return e[Math.round(zn(n,[0,1],[0,e.length-1],!0))]||{}}function Sp(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function kp(n){var e=this.option.visual;return e[this.option.loop&&n!==z_?n%e.length:n]}function sc(){return this.option.visual[0]}function _T(n){return{linear:function(e){return zn(e,n,this.option.visual,!0)},category:kp,piecewise:function(e,t){var r=xT.call(this,t);return r==null&&(r=zn(e,n,this.option.visual,!0)),r},fixed:sc}}function xT(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=bR.findPieceIndex(n,t),i=t[r];if(i&&i.visual)return i.visual[this.type]}}function fV(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=Ve(e,function(t){var r=Ei(t);return r||[0,0,0,1]})),e}var Gfe={linear:function(n){return zn(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=bR.findPieceIndex(n,e,!0);if(t!=null)return zn(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e==null?z_:e},fixed:Fr};function d0(n,e,t){return n?e<=t:eWfe)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!YM(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function YM(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const jfe=Xfe;var Jfe=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Ut(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var i=t.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){U(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],i=Zn(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);U(i,function(a){t.push("dim"+a.get("dim")),r.push(a.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(sn);const Zfe=Jfe;var Kfe=function(n){be(e,n);function e(t,r,i,a,o){var s=n.call(this,t,r,i)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(_o);const qfe=Kfe;function rh(n,e,t,r,i,a){n=n||0;var o=t[1]-t[0];if(i!=null&&(i=nf(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=nf(s,[0,o]),i=a=nf(s,[i,a]),r=0}e[0]=nf(e[0],t),e[1]=nf(e[1],t);var l=jM(e,r);e[r]+=n;var u=i||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=nf(e[r],c);var h;return h=jM(e,r),i!=null&&(h.sign!==l.sign||h.spana&&(e[1-r]=e[r]+h.sign*a),e}function jM(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function nf(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var JM=U,dV=Math.min,pV=Math.max,DF=Math.floor,$fe=Math.ceil,IF=cr,Qfe=Math.PI,ede=function(){function n(e,t,r){this.type="parallel",this._axesMap=gt(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var i=e.dimensions,a=e.parallelAxisIndex;JM(i,function(o,s){var l=a[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new qfe(o,pS(u),[0,0],u.get("type"),l)),h=c.type==="category";c.onBand=h&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,i=t.layoutBase,a=t.pixelDimIndex,o=e[1-a],s=e[a];return o>=r&&o<=r+t.axisLength&&s>=i&&s<=i+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var i=r.getData();JM(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),qf(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=Di(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],i=["width","height"],a=e.get("layout"),o=a==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,c=p0(e.get("axisExpandWidth"),l),h=p0(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,d=e.get("axisExpandWindow"),p;if(d)p=p0(d[1]-d[0],l),d[1]=d[0]+p;else{p=p0(c*(h-1),l);var y=e.get("axisExpandCenter")||DF(u/2);d=[c*y-p/2],d[1]=d[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var v=[DF(IF(d[0]/c,1))+1,$fe(IF(d[1]/c,1))-1],x=g/c*d[0];return{layout:a,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[i[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:d,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:x}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),JM(r,function(o,s){var l=(i.axisExpandable?nde:tde)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Qfe/2,vertical:0},h=[u[a].x+e.x,u[a].y+e.y],f=c[a],d=za();au(d,d,f),Hs(d,d,h),this._axesLayout[o]={position:h,rotation:f,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,i){r==null&&(r=0),i==null&&(i=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];U(o,function(g){s.push(e.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),c=r;ca*(1-h[0])?(u="jump",l=s-a*(1-h[2])):(l=s-a*h[1])>=0&&(l=s-a*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?rh(l,i,o,"all"):u="none";else{var d=i[1]-i[0],p=o[1]*s/d;i=[pV(0,p-d/2)],i[1]=dV(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:u}},n}();function p0(n,e){return dV(pV(n,e[0]),e[1])}function tde(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function nde(n,e){var t=e.layoutLength,r=e.axisExpandWidth,i=e.axisCount,a=e.axisCollapseWidth,o=e.winInnerIndices,s,l=a,u=!1,c;return n=0;i--)Ho(r[i])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var a=0,o=r.length;aude}function SV(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function AV(n,e,t,r){var i=new Wt;return i.add(new xn({name:"main",style:RR(t),silent:!0,draggable:!0,cursor:"move",drift:ln(FF,n,e,i,["n","s","w","e"]),ondragend:ln(Jc,e,{isEnd:!0})})),U(r,function(a){i.add(new xn({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ln(FF,n,e,i,a),ondragend:ln(Jc,e,{isEnd:!0})}))}),i}function MV(n,e,t,r){var i=r.brushStyle.lineWidth||0,a=$f(i,cde),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,c=t[0][1],h=t[1][1],f=c-a+i/2,d=h-a+i/2,p=c-o,y=h-s,g=p+i,v=y+i;bs(n,e,"main",o,s,p,y),r.transformable&&(bs(n,e,"w",l,u,a,v),bs(n,e,"e",f,u,a,v),bs(n,e,"n",l,u,g,a),bs(n,e,"s",l,d,g,a),bs(n,e,"nw",l,u,a,a),bs(n,e,"ne",f,u,a,a),bs(n,e,"sw",l,d,a,a),bs(n,e,"se",f,d,a,a))}function AT(n,e){var t=e.__brushOption,r=t.transformable,i=e.childAt(0);i.useStyle(RR(t)),i.attr({silent:!r,cursor:r?"move":"default"}),U([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?MT(n,a[0]):mde(n,a);o&&o.attr({silent:!r,invisible:!r,cursor:r?fde[s]+"-resize":null})})}function bs(n,e,t,r,i,a,o){var s=e.childOfName(t);s&&s.setShape(_de(PR(n,e,[[r,i],[r+a,i+o]])))}function RR(n){return Pt({strokeNoScale:!0},n.brushStyle)}function wV(n,e,t,r){var i=[Kv(n,t),Kv(e,r)],a=[$f(n,t),$f(e,r)];return[[i[0],a[0]],[i[1],a[1]]]}function gde(n){return Vl(n.group)}function MT(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Wx(t[e],gde(n));return r[i]}function mde(n,e){var t=[MT(n,e[0]),MT(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function FF(n,e,t,r,i,a){var o=t.__brushOption,s=n.toRectRange(o.range),l=bV(e,i,a);U(r,function(u){var c=hde[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(wV(s[0][0],s[1][0],s[0][1],s[1][1])),TR(e,t),Jc(e,{isEnd:!1})}function yde(n,e,t,r){var i=e.__brushOption.range,a=bV(n,t,r);U(i,function(o){o[0]+=a[0],o[1]+=a[1]}),TR(n,e),Jc(n,{isEnd:!1})}function bV(n,e,t){var r=n.group,i=r.transformCoordToLocal(e,t),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function PR(n,e,t){var r=xV(n,e);return r&&r!==jc?r.clipPath(t,n._transform):Mt(t)}function _de(n){var e=Kv(n[0][0],n[1][0]),t=Kv(n[0][1],n[1][1]),r=$f(n[0][0],n[1][0]),i=$f(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:i-t}}function xde(n,e,t){if(!(!n._brushType||Ade(n,e.offsetX,e.offsetY))){var r=n._zr,i=n._covers,a=ER(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var gS={lineX:UF(0),lineY:UF(1),rect:{createCover:function(n,e){function t(r){return r}return AV({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=SV(n);return wV(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){MV(n,e,t,r)},updateCommon:AT,contain:bT},polygon:{createCover:function(n,e){var t=new Wt;return t.add(new Va({name:"main",style:RR(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new ss({name:"main",draggable:!0,drift:ln(yde,n,e),ondragend:ln(Jc,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:PR(n,e,t)})},updateCommon:AT,contain:bT}};function UF(n){return{createCover:function(e,t){return AV({toRectRange:function(r){var i=[r,[0,100]];return n&&i.reverse(),i},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=SV(e),r=Kv(t[0][n],t[1][n]),i=$f(t[0][n],t[1][n]);return[r,i]},updateCoverShape:function(e,t,r,i){var a,o=xV(e,t);if(o!==jc&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(n);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,a];n&&l.reverse(),MV(e,t,l,i)},updateCommon:AT,contain:bT}}const CV=pde;function EV(n){return n=DR(n),function(e){return DE(e,n)}}function RV(n,e){return n=DR(n),function(t){var r=e!=null?e:t,i=r?n.width:n.height,a=r?n.x:n.y;return[a,a+(i||0)]}}function PV(n,e,t){var r=DR(n);return function(i,a){return r.contain(a[0],a[1])&&!Q4(i,e,t)}}function DR(n){return cn.create(n)}var Mde=["axisLine","axisTickLabel","axisName"],wde=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new CV(r.getZr())).on("brush",ut(this._onBrush,this))},e.prototype.render=function(t,r,i,a){if(!bde(t,r,a)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Wt,this.group.add(this._axisGroup),!!t.get("show")){var s=Cde(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,h=t.axis.dim,f=l.getAxisLayout(h),d=Oe({strokeContainThreshold:c},f),p=new tu(t,d);U(Mde,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,u,t,s,c,i),Xx(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),h=cn.create({x:l[0],y:-o/2,width:u,height:o});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:EV(h),isTargetByCursor:PV(h,s,a),getLinearBrushOtherExtent:RV(h,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Tde(i))},e.prototype._onBrush=function(t){var r=t.areas,i=this.axisModel,a=i.axis,o=Ve(r,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(tr);function bde(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Tde(n){var e=n.axis;return Ve(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Cde(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Ede=wde;var Rde={type:"axisAreaSelect",event:"axisAreaSelected"};function Pde(n){n.registerAction(Rde,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var Dde={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Ide(n){n.registerComponentView(jfe),n.registerComponentModel(Zfe),n.registerCoordinateSystem("parallel",ode),n.registerPreprocessor(zfe),n.registerComponentModel(LF),n.registerComponentView(Ede),Yv(n,"parallel",LF,Dde),Pde(n)}var Lde=["itemStyle","borderWidth"],GF=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],ZM=new ho,Bde=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),h=l.master.getRect(),f={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:c,valueDim:GF[+c],categoryDim:GF[1-+c]};return o.diff(s).add(function(d){if(o.hasValue(d)){var p=HF(o,d),y=zF(o,d,p,f),g=VF(o,f,y);o.setItemGraphicEl(d,g),a.add(g),XF(g,f,y)}}).update(function(d,p){var y=s.getItemGraphicEl(p);if(!o.hasValue(d)){a.remove(y);return}var g=HF(o,d),v=zF(o,d,g,f),x=FV(o,v);y&&x!==y.__pictorialShapeStr&&(a.remove(y),o.setItemGraphicEl(d,null),y=null),y?zde(y,f,v):y=VF(o,f,v,!0),o.setItemGraphicEl(d,y),y.__pictorialSymbolMeta=v,a.add(y),XF(y,f,v)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&WF(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var i=this.group,a=this._data;t.get("animation")?a&&a.eachItemGraphicEl(function(o){WF(a,rn(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(si);function zF(n,e,t,r){var i=n.getItemLayout(e),a=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),f={dataIndex:e,layout:i,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Ode(t,a,i,r,f),Fde(n,e,i,a,o,f.boundingLength,f.pxSign,c,r,f),Nde(t,f.symbolScale,u,r,f);var d=f.symbolSize,p=oS(t.get("symbolOffset"),d);return kde(t,d,i,a,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Ode(n,e,t,r,i){var a=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[a.wh]<=0),c;if(He(o)){var h=[KM(s,o[0])-l,KM(s,o[1])-l];h[1]0?1:-1}function KM(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Fde(n,e,t,r,i,a,o,s,l,u){var c=l.valueDim,h=l.categoryDim,f=Math.abs(t[h.wh]),d=n.getItemVisual(e,"symbolSize"),p;He(d)?p=d.slice():d==null?p=["100%","100%"]:p=[d,d],p[h.index]=Ft(p[h.index],f),p[c.index]=Ft(p[c.index],r?f:Math.abs(a)),u.symbolSize=p;var y=u.symbolScale=[p[0]/s,p[1]/s];y[c.index]*=(l.isHorizontal?-1:1)*o}function Nde(n,e,t,r,i){var a=n.get(Lde)||0;a&&(ZM.attr({scaleX:e[0],scaleY:e[1],rotation:t}),ZM.updateTransform(),a/=ZM.getLineScale(),a*=e[r.valueDim.index]),i.valueLineWidth=a||0}function kde(n,e,t,r,i,a,o,s,l,u,c,h){var f=c.categoryDim,d=c.valueDim,p=h.pxSign,y=Math.max(e[d.index]+s,0),g=y;if(r){var v=Math.abs(l),x=zs(n.get("symbolMargin"),"15%")+"",S=!1;x.lastIndexOf("!")===x.length-1&&(S=!0,x=x.slice(0,x.length-1));var A=Ft(x,e[d.index]),b=Math.max(y+A*2,0),w=S?0:A*2,C=vE(r),P=C?r:YF((v+w)/b),E=v-P*y;A=E/2/(S?P:Math.max(P-1,1)),b=y+A*2,w=S?0:A*2,!C&&r!=="fixed"&&(P=u?YF((Math.abs(u)+w)/b):0),g=P*b-w,h.repeatTimes=P,h.symbolMargin=A}var R=p*(g/2),D=h.pathPosition=[];D[f.index]=t[f.wh]/2,D[d.index]=o==="start"?R:o==="end"?l-R:l/2,a&&(D[0]+=a[0],D[1]+=a[1]);var B=h.bundlePosition=[];B[f.index]=t[f.xy],B[d.index]=t[d.xy];var k=h.barRectShape=Oe({},t);k[d.wh]=p*Math.max(Math.abs(t[d.wh]),Math.abs(D[d.index]+R)),k[f.wh]=t[f.wh];var N=h.clipShape={};N[f.xy]=-t[f.xy],N[f.wh]=c.ecSize[f.wh],N[d.xy]=0,N[d.wh]=t[d.wh]}function DV(n){var e=n.symbolPatternSize,t=ui(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function IV(n,e,t,r){var i=n.__pictorialBundle,a=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,h=a[e.valueDim.index]+o+t.symbolMargin*2;for(IR(n,function(y){y.__pictorialAnimationIndex=c,y.__pictorialRepeatTimes=u,c0:v<0)&&(x=u-1-y),g[l.index]=h*(x-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function LV(n,e,t,r){var i=n.__pictorialBundle,a=n.__pictorialMainPath;a?Df(a,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(a=n.__pictorialMainPath=DV(t),i.add(a),Df(a,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function BV(n,e,t){var r=Oe({},e.barRectShape),i=n.__pictorialBarRect;i?Df(i,null,{shape:r},e,t):(i=n.__pictorialBarRect=new xn({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,n.add(i))}function OV(n,e,t,r){if(t.symbolClip){var i=n.__pictorialClipPath,a=Oe({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)hr(i,{shape:a},s,l);else{a[o.wh]=0,i=new xn({shape:a}),n.__pictorialBundle.setClipPath(i),n.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],jx[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function HF(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Ude,t.isAnimationEnabled=Gde,t}function Ude(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Gde(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function VF(n,e,t,r){var i=new Wt,a=new Wt;return i.add(a),i.__pictorialBundle=a,a.x=t.bundlePosition[0],a.y=t.bundlePosition[1],t.symbolRepeat?IV(i,e,t):LV(i,e,t),BV(i,t,r),OV(i,e,t,r),i.__pictorialShapeStr=FV(n,t),i.__pictorialSymbolMeta=t,i}function zde(n,e,t){var r=t.animationModel,i=t.dataIndex,a=n.__pictorialBundle;hr(a,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,i),t.symbolRepeat?IV(n,e,t,!0):LV(n,e,t,!0),BV(n,t,!0),OV(n,e,t,!0)}function WF(n,e,t,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];IR(r,function(o){a.push(o)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),U(a,function(o){Fv(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function FV(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function IR(n,e,t){U(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Df(n,e,t,r,i,a){e&&n.attr(e),r.symbolClip&&!i?t&&n.attr(t):t&&jx[i?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,a)}function XF(n,e,t){var r=t.dataIndex,i=t.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),h=a.get("blurScope"),f=a.get("scale");IR(n,function(y){if(y instanceof Ii){var g=y.style;y.useStyle(Oe({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else y.useStyle(t.style);var v=y.ensureState("emphasis");v.style=o,f&&(v.scaleX=y.scaleX*1.1,v.scaleY=y.scaleY*1.1),y.ensureState("blur").style=s,y.ensureState("select").style=l,u&&(y.cursor=u),y.z2=t.z2});var d=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Js(p,Zs(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:sS(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:d}),ql(n,c,h,a.get("disabled"))}function YF(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Hde=Bde;var Vde=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=ou(C_.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(C_);const Wde=Vde;function Xde(n){n.registerChartView(Hde),n.registerSeriesModel(Wde),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,ln(x5,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,S5("pictorialBar"))}function Yde(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||kt(n,"text")))}function jde(n,e,t){var r=n,i,a,o;if(e==="text")o=r;else{o={},kt(r,"text")&&(o.text=r.text),kt(r,"rich")&&(o.rich=r.rich),kt(r,"textFill")&&(o.fill=r.textFill),kt(r,"textStroke")&&(o.stroke=r.textStroke),kt(r,"fontFamily")&&(o.fontFamily=r.fontFamily),kt(r,"fontSize")&&(o.fontSize=r.fontSize),kt(r,"fontStyle")&&(o.fontStyle=r.fontStyle),kt(r,"fontWeight")&&(o.fontWeight=r.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=kt(r,"textPosition");t?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),kt(r,"textPosition")&&(i.position=r.textPosition),kt(r,"textOffset")&&(i.offset=r.textOffset),kt(r,"textRotation")&&(i.rotation=r.textRotation),kt(r,"textDistance")&&(i.distance=r.textDistance)}return jF(o,n),U(o.rich,function(l){jF(l,l)}),{textConfig:i,textContent:a}}function jF(n,e){e&&(e.font=e.textFont||e.font,kt(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),kt(e,"textAlign")&&(n.align=e.textAlign),kt(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),kt(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),kt(e,"textWidth")&&(n.width=e.textWidth),kt(e,"textHeight")&&(n.height=e.textHeight),kt(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),kt(e,"textPadding")&&(n.padding=e.textPadding),kt(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),kt(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),kt(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),kt(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),kt(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),kt(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),kt(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}var NV={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},JF=jt(NV);Ga(ns,function(n,e){return n[e]=1,n},{});ns.join(", ");var H_=["","style","shape","extra"],Qf=Ln();function LR(n,e,t,r,i){var a=n+"Animation",o=TE(n,r,i)||{},s=Qf(e).userDuring;return o.duration>0&&(o.during=s?ut(Qde,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),Oe(o,t[a]),o}function qM(n,e,t,r){r=r||{};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Qf(n),u=e.style;l.userDuring=e.during;var c={},h={};if(tpe(n,e,h),KF("shape",e,h),KF("extra",e,h),!a&&s&&(epe(n,e,c),ZF("shape",n,e,c),ZF("extra",n,e,c),npe(n,e,u,c)),h.style=u,Zde(n,h,o),qde(n,e),s)if(a){var f={};U(H_,function(p){var y=p?e[p]:e;y&&y.enterFrom&&(p&&(f[p]=f[p]||{}),Oe(p?f[p]:f,y.enterFrom))});var d=LR("enter",n,e,t,i);d.duration>0&&n.animateFrom(f,d)}else Kde(n,e,i||0,t,c);kV(n,e),u?n.dirty():n.markRedraw()}function kV(n,e){for(var t=Qf(n).leaveToProps,r=0;r0&&n.animateFrom(i,a)}}function qde(n,e){kt(e,"silent")&&(n.silent=e.silent),kt(e,"ignore")&&(n.ignore=e.ignore),n instanceof Vs&&kt(e,"invisible")&&(n.invisible=e.invisible),n instanceof Tn&&kt(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var Bo={},$de={setTransform:function(n,e){return Bo.el[n]=e,this},getTransform:function(n){return Bo.el[n]},setShape:function(n,e){var t=Bo.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=Bo.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=Bo.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=Bo.el.style;if(e)return e[n]},setExtra:function(n,e){var t=Bo.el.extra||(Bo.el.extra={});return t[n]=e,this},getExtra:function(n){var e=Bo.el.extra;if(e)return e[n]}};function Qde(){var n=this,e=n.el;if(e){var t=Qf(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}Bo.el=e,r($de)}}function ZF(n,e,t,r){var i=t[n];if(i){var a=e[n],o;if(a){var s=t.transition,l=i.transition;if(l)if(!o&&(o=r[n]={}),zc(l))Oe(o,a);else for(var u=er(l),c=0;c=0){!o&&(o=r[n]={});for(var d=jt(a),c=0;c=0)){var f=n.getAnimationStyleProps(),d=f?f.style:null;if(d){!a&&(a=r.style={});for(var p=jt(t),u=0;us)return!0;if(o){var l=AR(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,i,a){},n.prototype.createPointerEl=function(e,t,r,i){var a=t.pointer;if(a){var o=uc(e).pointerEl=new jx[a.type](qF(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,i){if(t.label){var a=uc(e).labelEl=new Sn(qF(t.label));e.add(a),QF(a,i)}},n.prototype.updatePointerEl=function(e,t,r){var i=uc(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),r(i,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,i){var a=uc(e).labelEl;a&&(a.setStyle(t.label.style),r(a,{x:t.label.x,y:t.label.y}),QF(a,i))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=dd(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Xs(u.event)},onmousedown:$M(this._onHandleDragMove,this,0,0),drift:$M(this._onHandleDragMove,this),ondragend:$M(this._onHandleDragEnd,this)}),r.add(i)),eN(i,t,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");He(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,bg(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){$F(this._axisPointerModel,!t&&this._moveAnimation,this._handle,QM(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(QM(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(QM(i)),uc(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,i=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Hv(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function $F(n,e,t,r){GV(uc(t).lastProp,r)||(uc(t).lastProp=r,e?hr(t,r,n):(t.stopAnimation(),t.attr(r)))}function GV(n,e){if(yt(n)&&yt(e)){var t=!0;return U(e,function(r,i){t=t&&GV(n[i],r)}),!!t}else return n===e}function QF(n,e){n[e.get(["label","show"])?"show":"hide"]()}function QM(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function eN(n,e,t){var r=e.get("z"),i=e.get("zlevel");n&&n.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),i!=null&&(a.zlevel=i),a.silent=t)})}const zV=ope;function HV(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function VV(n,e,t,r,i){var a=t.get("value"),o=WV(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=md(s.get("padding")||0),u=s.getFont(),c=xg(o,u),h=i.position,f=c.width+l[1]+l[3],d=c.height+l[0]+l[2],p=i.align;p==="right"&&(h[0]-=f),p==="center"&&(h[0]-=f/2);var y=i.verticalAlign;y==="bottom"&&(h[1]-=d),y==="middle"&&(h[1]-=d/2),spe(h,f,d,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),n.label={x:h[0],y:h[1],style:gr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function spe(n,e,t,r){var i=r.getWidth(),a=r.getHeight();n[0]=Math.min(n[0]+e,i)-e,n[1]=Math.min(n[1]+t,a)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function WV(n,e,t,r,i){n=e.scale.parse(n);var a=e.scale.getLabel({value:n},{precision:i.precision}),o=i.formatter;if(o){var s={value:xR(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};U(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),$e(o)?a=o.replace("{value}",a):Dt(o)&&(a=o(s))}return a}function XV(n,e,t){var r=za();return au(r,r,t.rotation),Hs(r,r,t.position),uo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function lpe(n,e,t,r,i,a){var o=tu.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),VV(e,r,i,a,{position:XV(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function YV(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function upe(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function tN(n,e,t,r,i,a){return{cx:n,cy:e,r0:t,r,startAngle:i,endAngle:a,clockwise:!0}}var cpe=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=nN(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=HV(a),d=hpe[u](s,h,c);d.style=f,t.graphicKey=d.type,t.pointer=d}var p=pT(l.model,i);lpe(r,t,p,i,a,o)},e.prototype.getHandleTransform=function(t,r,i){var a=pT(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=XV(r.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=nN(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,h=[t.x,t.y];h[c]+=r[c],h[c]=Math.min(l[1],h[c]),h[c]=Math.max(l[0],h[c]);var f=(u[1]+u[0])/2,d=[f,f];d[c]=h[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:d,tooltipOption:p[c]}},e}(zV);function nN(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var hpe={line:function(n,e,t){var r=YV([e,t[0]],[e,t[1]],rN(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:upe([e-r/2,t[0]],[r,i],rN(n))}}};function rN(n){return n.dim==="x"?0:1}const fpe=cpe;var dpe=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(sn);const ppe=dpe;var Ns=Ln(),vpe=U;function jV(n,e,t){if(!un.node){var r=e.getZr();Ns(r).records||(Ns(r).records={}),gpe(r,e);var i=Ns(r).records[n]||(Ns(r).records[n]={});i.handler=t}}function gpe(n,e){if(Ns(n).initialized)return;Ns(n).initialized=!0,t("click",ln(iN,"click")),t("mousemove",ln(iN,"mousemove")),t("globalout",ype);function t(r,i){n.on(r,function(a){var o=_pe(e);vpe(Ns(n).records,function(s){s&&i(s,a,o.dispatchAction)}),mpe(o.pendings,e)})}}function mpe(n,e){var t=n.showTip.length,r=n.hideTip.length,i;t?i=n.showTip[t-1]:r&&(i=n.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function ype(n,e,t){n.handler("leave",null,t)}function iN(n,e,t,r){e.handler(n,t,r)}function _pe(n){var e={showTip:[],hideTip:[]},t=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function CT(n,e){if(!un.node){var t=e.getZr(),r=(Ns(t).records||{})[n];r&&(Ns(t).records[n]=null)}}var xpe=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=r.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";jV("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){CT("axisPointer",r)},e.prototype.dispose=function(t,r){CT("axisPointer",r)},e.type="axisPointer",e}(tr);const Spe=xpe;function JV(n,e){var t=[],r=n.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Xc(a,n);if(o==null||o<0||He(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,f=u.dim,d=h==="x"||h==="radius"?1:0,p=a.mapDimension(f),y=[];y[d]=a.get(p,o),y[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(y)||[]}else t=l.dataToPoint(a.getValues(Ve(l.dimensions,function(v){return a.mapDimension(v)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var aN=Ln();function Ape(n,e,t){var r=n.currTrigger,i=[n.x,n.y],a=n,o=n.dispatchAction||ut(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){J0(i)&&(i=JV({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=J0(i),u=a.axesInfo,c=s.axesInfo,h=r==="leave"||J0(i),f={},d={},p={list:[],map:{}},y={showPointer:ln(wpe,d),showTooltip:ln(bpe,p)};U(s.coordSysMap,function(v,x){var S=l||v.containPoint(i);U(s.coordSysAxesInfo[x],function(A,b){var w=A.axis,C=Rpe(u,A);if(!h&&S&&(!u||C)){var P=C&&C.value;P==null&&!l&&(P=w.pointToData(i)),P!=null&&oN(A,P,y,!1,f)}})});var g={};return U(c,function(v,x){var S=v.linkGroup;S&&!d[x]&&U(S.axesInfo,function(A,b){var w=d[b];if(A!==v&&w){var C=w.value;S.mapper&&(C=v.axis.scale.parse(S.mapper(C,sN(A),sN(v)))),g[v.key]=C}})}),U(g,function(v,x){oN(c[x],v,y,!0,f)}),Tpe(d,c,f),Cpe(p,i,n,o),Epe(c,o,t),f}}function oN(n,e,t,r,i){var a=n.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=Mpe(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Oe(i,s[0]),!r&&n.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function Mpe(n,e){var t=e.axis,r=t.dim,i=n,a=[],o=Number.MAX_VALUE,s=-1;return U(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),h,f;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,n,t);f=d.dataIndices,h=d.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;h=l.getData().get(c[0],f[0])}if(!(h==null||!isFinite(h))){var p=n-h,y=Math.abs(p);y<=o&&((y=0&&s<0)&&(o=y,s=p,i=h,a.length=0),U(f,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function wpe(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function bpe(n,e,t,r){var i=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Jv(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Tpe(n,e,t){var r=t.axesInfo=[];U(e,function(i,a){var o=i.axisPointerModel.option,s=n[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function Cpe(n,e,t,r){if(J0(e)||!n.list.length){r({type:"hideTip"});return}var i=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:n.list})}function Epe(n,e,t){var r=t.getZr(),i="axisPointerLastHighlights",a=aN(r)[i]||{},o=aN(r)[i]={};U(n,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&U(h.seriesDataIndices,function(f){var d=f.seriesIndex+" | "+f.dataIndex;o[d]=f})});var s=[],l=[];U(a,function(u,c){!o[c]&&l.push(u)}),U(o,function(u,c){!a[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Rpe(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function sN(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function J0(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function BR(n){Eg.registerAxisPointerClass("CartesianAxisPointer",fpe),n.registerComponentModel(ppe),n.registerComponentView(Spe),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!He(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=nhe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ape)}function Ppe(n){Wr(mhe),Wr(BR)}var Dpe=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),h=s.dataToCoord(r),f=a.get("type");if(f&&f!=="none"){var d=HV(a),p=Lpe[f](s,l,h,c);p.style=d,t.graphicKey=p.type,t.pointer=p}var y=a.get(["label","margin"]),g=Ipe(r,i,a,l,y);VV(t,i,a,o,g)},e}(zV);function Ipe(n,e,t,r,i){var a=e.axis,o=a.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,h;if(a.dim==="radius"){var f=za();au(f,f,s),Hs(f,f,[r.cx,r.cy]),u=uo([o,-i],f);var d=e.getModel("axisLabel").get("rotate")||0,p=tu.innerTextLayout(s,d*Math.PI/180,-1);c=p.textAlign,h=p.textVerticalAlign}else{var y=l[1];u=r.coordToPoint([y+i,o]);var g=r.cx,v=r.cy;c=Math.abs(u[0]-g)/y<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-v)/y<.3?"middle":u[1]>v?"top":"bottom"}return{position:u,align:c,verticalAlign:h}}var Lpe={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:YV(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var i=Math.max(1,n.getBandWidth()),a=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:tN(e.cx,e.cy,r[0],r[1],(-t-i/2)*a,(-t+i/2)*a)}:{type:"Sector",shape:tN(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}};const Bpe=Dpe;var Ope=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,i=this.ecModel;return i.eachComponent(t,function(a){a.getCoordSysModel()===this&&(r=a)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(sn);const Fpe=Ope;var OR=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Cr).models[0]},e.type="polarAxis",e}(sn);Xr(OR,Tg);var Npe=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(OR),kpe=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(OR),FR=function(n){be(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(_o);FR.prototype.dataToRadius=_o.prototype.dataToCoord;FR.prototype.radiusToData=_o.prototype.coordToData;const Upe=FR;var Gpe=Ln(),NR=function(n){be(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),i=t.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=xg(s==null?"":s+"",r.getFont(),"center","top"),h=Math.max(c.height,7),f=h/u;isNaN(f)&&(f=1/0);var d=Math.max(0,Math.floor(f)),p=Gpe(t.model),y=p.lastAutoInterval,g=p.lastTickCount;return y!=null&&g!=null&&Math.abs(y-d)<=1&&Math.abs(g-o)<=1&&y>d?d=y:(p.lastTickCount=o,p.lastAutoInterval=d),d},e}(_o);NR.prototype.dataToAngle=_o.prototype.dataToCoord;NR.prototype.angleToData=_o.prototype.coordToData;const zpe=NR;var ZV=["radius","angle"],Hpe=function(){function n(e){this.dimensions=ZV,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Upe,this._angleAxis=new zpe,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===e&&t.push(r),i.scale.type===e&&t.push(i),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,i=Math.cos(r)*t+this.cx,a=-Math.sin(r)*t+this.cy;return[i,a]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var i=e.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,h=this.r,f=this.r0;return c<=h*h&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var i=lN(t);return i===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var i=lN(t);return i===this?this.pointToData(r):null},n}();function lN(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const Vpe=Hpe;function Wpe(n,e,t){var r=e.get("center"),i=t.getWidth(),a=t.getHeight();n.cx=Ft(r[0],i),n.cy=Ft(r[1],a);var o=n.getRadiusAxis(),s=Math.min(i,a)/2,l=e.get("radius");l==null?l=[0,"100%"]:He(l)||(l=[0,l]);var u=[Ft(l[0],s),Ft(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Xpe(n,e){var t=this,r=t.getAngleAxis(),i=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();U(k_(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),U(k_(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),qf(r.scale,r.model),qf(i.scale,i.model),r.type==="category"&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function Ype(n){return n.mainType==="angleAxis"}function uN(n,e){if(n.type=e.get("type"),n.scale=pS(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Ype(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var jpe={dimensions:ZV,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,i){var a=new Vpe(i+"");a.update=Xpe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");uN(o,l),uN(s,u),Wpe(a,r,e),t.push(a),r.coordinateSystem=a,a.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",Cr).models[0];r.coordinateSystem=i.coordinateSystem}}),t}};const Jpe=jpe;var Zpe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function v0(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),i=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function g0(n){var e=n.getRadiusAxis();return e.inverse?0:1}function cN(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Kpe=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Ve(i.getViewLabels(),function(c){c=Mt(c);var h=i.scale,f=h.type==="ordinal"?h.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(f),c});cN(u),cN(s),U(Zpe,function(c){t.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&qpe[c](this.group,t,a,s,l,o,u)},this)}},e.type="angleAxis",e}(Eg),qpe={axisLine:function(n,e,t,r,i,a){var o=e.getModel(["axisLine","lineStyle"]),s=g0(t),l=s?0:1,u;a[l]===0?u=new ho({shape:{cx:t.cx,cy:t.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Ag({shape:{cx:t.cx,cy:t.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,i,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[g0(t)],u=Ve(r,function(c){return new Ti({shape:v0(t,[l,l+s],c.coord)})});n.add(Fa(u,{style:Pt(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,i,a){if(i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[g0(t)],c=[],h=0;hv?"left":"right",A=Math.abs(g[1]-x)/y<.3?"middle":g[1]>x?"top":"bottom";if(s&&s[p]){var b=s[p];yt(b)&&b.textStyle&&(d=new Kn(b.textStyle,l,l.ecModel))}var w=new Sn({silent:tu.isLabelSilent(e),style:gr(d,{x:g[0],y:g[1],fill:d.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:S,verticalAlign:A})});if(n.add(w),c){var C=tu.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=h.rawLabel,rn(w).eventData=C}},this)},splitLine:function(n,e,t,r,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h=0?"p":"n",k=C;b&&(r[c][D]||(r[c][D]={p:C,n:C}),k=r[c][D][B]);var N=void 0,z=void 0,X=void 0,ne=void 0;if(p.dim==="radius"){var H=p.dataToCoord(R)-C,K=l.dataToCoord(D);Math.abs(H)=ne})}}})}function ove(n){var e={};U(n,function(r,i){var a=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=qV(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),h=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=h.stacks;e[l]=h;var d=KV(r);f[d]||h.autoWidthCount++,f[d]=f[d]||{width:0,maxWidth:0};var p=Ft(r.get("barWidth"),c),y=Ft(r.get("barMaxWidth"),c),g=r.get("barGap"),v=r.get("barCategoryGap");p&&!f[d].width&&(p=Math.min(h.remainedWidth,p),f[d].width=p,h.remainedWidth-=p),y&&(f[d].maxWidth=y),g!=null&&(h.gap=g),v!=null&&(h.categoryGap=v)});var t={};return U(e,function(r,i){t[i]={};var a=r.stacks,o=r.bandWidth,s=Ft(r.categoryGap,o),l=Ft(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),U(a,function(y,g){var v=y.maxWidth;v&&v+r.start.y&&(p=p+"-"+r.end.y);var y=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:p},v=this._formatterLabel(y,g),x=new Sn({z2:30,style:gr(o,{text:v})});x.attr(this._yearTextPositionControl(x,d[l],i,l,s)),a.add(x)}},e.prototype._monthTextPositionControl=function(t,r,i,a,o){var s="left",l="top",u=t[0],c=t[1];return i==="horizontal"?(c=c+o,r&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,i,a){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||$e(s))&&(s&&(r=jb(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,d=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",y=0;y=i.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var i=Math.floor(t[1].time/ew)-Math.floor(t[0].time/ew)+1,a=new Date(t[0].time),o=a.getDate(),s=t[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-t[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-t[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+t[0].day+6)/7),h=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:c,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var i=this._getRangeInfo(r);if(e>i.weeks||e===0&&ti.lweek)return null;var a=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(i){var a=new n(i);r.push(a),i.coordinateSystem=a}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function fN(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const gve=vve;function mve(n){n.registerComponentModel(fve),n.registerComponentView(pve),n.registerCoordinateSystem("calendar",gve)}function yve(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function dN(n,e){var t;return U(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function _ve(n,e,t){var r=Oe({},t),i=n[e],a=t.$action||"merge";a==="merge"?i?(Ut(i,r,!0),Ql(i,r,{ignoreSize:!0}),qH(t,i),m0(t,i),m0(t,i,"shape"),m0(t,i,"style"),m0(t,i,"extra"),t.clipPath=i.clipPath):n[e]=r:a==="replace"?n[e]=r:a==="remove"&&i&&(n[e]=null)}var $V=["transition","enterFrom","leaveTo"],xve=$V.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function m0(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?$V:xve,i=0;i=0;c--){var h=i[c],f=ai(h.id,null),d=f!=null?o.get(f):null;if(d){var p=d.parent,v=Da(p),x=p===a?{width:s,height:l}:{width:v.width,height:v.height},S={},A=JE(d,h,x,null,{hv:h.hv,boundingMode:h.bounding},S);if(!Da(d).isNew&&A){for(var b=h.transition,w={},C=0;C=0)?w[P]=E:d[P]=E}hr(d,w,t,0)}else d.attr(S)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(i){Z0(i,Da(i).option,r,t._lastGraphicModel)}),this._elMap=gt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(tr);function ET(n){var e=kt(pN,n)?pN[n]:EE(n),t=new e({});return Da(t).type=n,t}function vN(n,e,t,r){var i=ET(t);return e.add(i),r.set(n,i),Da(i).id=n,Da(i).isNew=!0,i}function Z0(n,e,t,r){var i=n&&n.parent;i&&(n.type==="group"&&n.traverse(function(a){Z0(a,e,t,r)}),Jde(n,e,r),t.removeKey(Da(n).id))}function gN(n,e,t,r){n.isGroup||U([["cursor",Vs.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(i){var a=i[0];kt(e,a)?n[a]=Vt(e[a],i[1]):n[a]==null&&(n[a]=i[1])}),U(jt(e),function(i){if(i.indexOf("on")===0){var a=e[i];n[i]=Dt(a)?a:null}}),kt(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function wve(n){return n=Oe({},n),U(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(KH),function(e){delete n[e]}),n}function bve(n,e,t){var r=rn(n).eventData;!n.silent&&!n.ignore&&!r&&(r=rn(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function Tve(n){n.registerComponentModel(Ave),n.registerComponentView(Mve),n.registerPreprocessor(function(e){var t=e.graphic;He(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var mN=["x","y","radius","angle","single"],Cve=["cartesian2d","polar","singleAxis"];function Eve(n){var e=n.get("coordinateSystem");return nn(Cve,e)>=0}function Fl(n){return n+"Axis"}function Rve(n,e){var t=gt(),r=[],i=gt();n.eachComponent({mainType:"dataZoom",query:e},function(c){i.get(c.uid)||s(c)});var a;do a=!1,n.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),r.push(c),u(c)}function l(c){var h=!1;return c.eachTargetAxis(function(f,d){var p=t.get(f);p&&p[d]&&(h=!0)}),h}function u(c){c.eachTargetAxis(function(h,f){(t.get(h)||t.set(h,[]))[f]=!0})}return r}function QV(n){var e=n.ecModel,t={infoList:[],infoMap:gt()};return n.eachTargetAxis(function(r,i){var a=e.getComponent(Fl(r),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(a)}}}),t}var tw=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Pve=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,i){var a=yN(t);this.settledOption=a,this.mergeDefaultAndTheme(t,i),this._doInit(a)},e.prototype.mergeOption=function(t){var r=yN(t);Ut(this.option,t,!0),Ut(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;U([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(r[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=gt(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return U(mN,function(i){var a=this.getReferringComponents(Fl(i),Jne);if(a.specified){r=!0;var o=new tw;U(a.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var i=this.ecModel,a=!0;if(a){var o=r==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var h=u[0];if(h){var f=new tw;if(f.add(h.componentIndex),t.set(c,f),a=!1,c==="x"||c==="y"){var d=h.getReferringComponents("grid",Cr).models[0];d&&U(u,function(p){h.componentIndex!==p.componentIndex&&d===p.getReferringComponents("grid",Cr).models[0]&&f.add(p.componentIndex)})}}}a&&U(mN,function(u){if(a){var c=i.findComponents({mainType:Fl(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var h=new tw;h.add(c[0].componentIndex),t.set(u,h),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,i=this.get("rangeMode");U([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":i?r[o]=i[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,i){t==null&&(t=this.ecModel.getComponent(Fl(r),i))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(i,a){U(i.indexList,function(o){t.call(r,a,o)})})},e.prototype.getAxisProxy=function(t,r){var i=this.getAxisModel(t,r);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[r])return this.ecModel.getComponent(Fl(t),r)},e.prototype.setRawRange=function(t){var r=this.option,i=this.settledOption;U([["start","startValue"],["end","endValue"]],function(a){(t[a[0]]!=null||t[a[1]]!=null)&&(r[a[0]]=i[a[0]]=t[a[0]],r[a[1]]=i[a[1]]=t[a[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;U(["start","startValue","end","endValue"],function(i){r[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(S&&!A&&!b)return!0;S&&(g=!0),A&&(p=!0),b&&(y=!0)}return g&&p&&y})}else hf(c,function(d){if(a==="empty")l.setData(u=u.map(d,function(y){return s(y)?y:NaN}));else{var p={};p[d]=o,u.selectRange(p)}});hf(c,function(d){u.setApproximateExtent(o,d)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;hf(["min","max"],function(i){var a=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=zn(r[0]+o,r,[0,100],!0):a!=null&&(o=zn(a,[0,100],r,!0)-r[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var i=fE(r,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;t[0]!==0&&a.setDeterminedMinMax("min",+r[0].toFixed(i)),t[1]!==100&&a.setDeterminedMinMax("max",+r[1].toFixed(i)),a.freeze()}},n}();function Nve(n,e,t){var r=[1/0,-1/0];hf(t,function(o){Ice(r,o.getData(),e)});var i=n.getAxisModel(),a=N4(i.axis.scale,i,r).calculate();return[a.min,a.max]}const kve=Fve;var Uve={getTargetSeries:function(n){function e(i){n.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=n.getComponent(Fl(o),s);i(o,s,l,a)})})}e(function(i,a,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new kve(i,a,s,n),t.push(o.__dzAxisProxy))});var r=gt();return U(t,function(i){U(i.getTargetSeriesModels(),function(a){r.set(a.uid,a)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).reset(t)}),t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),a=r.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const Gve=Uve;function zve(n){n.registerAction("dataZoom",function(e,t){var r=Rve(t,e);U(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var xN=!1;function UR(n){xN||(xN=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,Gve),zve(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Hve(n){n.registerComponentModel(Ive),n.registerComponentView(Ove),UR(n)}var ao=function(){function n(){}return n}(),eW={};function Ap(n,e){eW[n]=e}function tW(n){return eW[n]}var Vve=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;U(this.option.feature,function(r,i){var a=tW(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(t)),Ut(r,a.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(sn);const Wve=Vve;function Xve(n,e,t){var r=e.getBoxLayoutParams(),i=e.get("padding"),a={width:t.getWidth(),height:t.getHeight()},o=Di(r,a,i);Nc(e.get("orient"),n,e.get("itemGap"),o.width,o.height),JE(n,r,a,i)}function nW(n,e){var t=md(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new xn({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var Yve=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,a){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),h=[];U(u,function(p,y){h.push(y)}),new IE(this._featureNames||[],h).add(f).update(f).remove(ln(f,null)).execute(),this._featureNames=h;function f(p,y){var g=h[p],v=h[y],x=u[g],S=new Kn(x,t,t.ecModel),A;if(a&&a.newTitle!=null&&a.featureName===g&&(x.title=a.newTitle),g&&!v){if(jve(g))A={onclick:S.option.onclick,featureName:g};else{var b=tW(g);if(!b)return;A=new b}c[g]=A}else if(A=c[v],!A)return;A.uid=gd("toolbox-feature"),A.model=S,A.ecModel=r,A.api=i;var w=A instanceof ao;if(!g&&v){w&&A.dispose&&A.dispose(r,i);return}if(!S.get("show")||w&&A.unusable){w&&A.remove&&A.remove(r,i);return}d(S,A,g),S.setIconStatus=function(C,P){var E=this.option,R=this.iconPaths;E.iconStatus=E.iconStatus||{},E.iconStatus[C]=P,R[C]&&(P==="emphasis"?jf:Jf)(R[C])},A instanceof ao&&A.render&&A.render(S,r,i,a)}function d(p,y,g){var v=p.getModel("iconStyle"),x=p.getModel(["emphasis","iconStyle"]),S=y instanceof ao&&y.getIcons?y.getIcons():p.get("icon"),A=p.get("title")||{},b,w;$e(S)?(b={},b[g]=S):b=S,$e(A)?(w={},w[g]=A):w=A;var C=p.iconPaths={};U(b,function(P,E){var R=dd(P,{},{x:-s/2,y:-s/2,width:s,height:s});R.setStyle(v.getItemStyle());var D=R.ensureState("emphasis");D.style=x.getItemStyle();var B=new Sn({style:{text:w[E],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null},ignore:!0});R.setTextContent(B),pd({el:R,componentModel:t,itemName:E,formatterParamsExtra:{title:w[E]}}),R.__title=w[E],R.on("mouseover",function(){var k=x.getItemStyle(),N=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";B.setStyle({fill:x.get("textFill")||k.fill||k.stroke||"#000",backgroundColor:x.get("textBackgroundColor")}),R.setTextConfig({position:x.get("textPosition")||N}),B.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",E])!=="emphasis"&&i.leaveEmphasis(this),B.hide()}),(p.get(["iconStatus",E])==="emphasis"?jf:Jf)(R),o.add(R),R.on("click",ut(y.onclick,y,r,i,E)),C[E]=R})}Xve(o,t,i),o.add(nW(o.getBoundingRect(),t)),l||o.eachChild(function(p){var y=p.__title,g=p.ensureState("emphasis"),v=g.textConfig||(g.textConfig={}),x=p.getTextContent(),S=x&&x.ensureState("emphasis");if(S&&!Dt(S)&&y){var A=S.style||(S.style={}),b=xg(y,Sn.makeFont(A)),w=p.x+o.x,C=p.y+o.y+s,P=!1;C+b.height>i.getHeight()&&(v.position="top",P=!0);var E=P?-5-b.height:s+10;w+b.width/2>i.getWidth()?(v.position=["100%",E],A.align="right"):w-b.width/2<0&&(v.position=[0,E],A.align="left")}})},e.prototype.updateView=function(t,r,i,a){U(this._features,function(o){o instanceof ao&&o.updateView&&o.updateView(o.model,r,i,a)})},e.prototype.remove=function(t,r){U(this._features,function(i){i instanceof ao&&i.remove&&i.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){U(this._features,function(i){i instanceof ao&&i.dispose&&i.dispose(t,r)})},e.type="toolbox",e}(tr);function jve(n){return n.indexOf("my")===0}const Jve=Yve;var Zve=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var i=this.model,a=i.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=un.browser;if(Dt(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),d=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];d&&(p=window.atob(p));var y=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,v=new Uint8Array(g);g--;)v[g]=p.charCodeAt(g);var x=new Blob([v]);window.navigator.msSaveOrOpenBlob(x,y)}else{var S=document.createElement("iframe");document.body.appendChild(S);var A=S.contentWindow,b=A.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),A.focus(),b.execCommand("SaveAs",!0,y),document.body.removeChild(S)}}else{var w=i.get("lang"),C='',P=window.open();P.document.write(C),P.document.title=a}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(ao);const Kve=Zve;var SN="__ec_magicType_stack__",qve=[["line","bar"],["stack"]],$ve=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),i={};return U(t.get("type"),function(a){r[a]&&(i[a]=r[a])}),i},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,i){var a=this.model,o=a.get(["seriesIndex",i]);if(AN[i]){var s={series:[]},l=function(h){var f=h.subType,d=h.id,p=AN[i](f,d,h,a);p&&(Pt(p,h.option),s.series.push(p));var y=h.coordinateSystem;if(y&&y.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=y.getAxesByScale("ordinal")[0];if(g){var v=g.dim,x=v+"Axis",S=h.getReferringComponents(x,Cr).models[0],A=S.componentIndex;s[x]=s[x]||[];for(var b=0;b<=A;b++)s[x][A]=s[x][A]||{};s[x][A].boundaryGap=i==="bar"}}};U(qve,function(h){nn(h,i)>=0&&U(h,function(f){a.setIconStatus(f,"normal")})}),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Ut({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(ao),AN={line:function(n,e,t,r){if(n==="bar")return Ut({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Ut({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var i=t.get("stack")===SN;if(n==="line"||n==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),Ut({id:e,stack:i?"":SN},r.get(["option","stack"])||{},!0)}};yo({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const Qve=$ve;var mS=new Array(60).join("-"),ed=" ";function ege(n){var e={},t=[],r=[];return n.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function tge(n){var e=[];return U(n,function(t,r){var i=t.categoryAxis,a=t.valueAxis,o=a.dim,s=[" "].concat(Ve(t.series,function(d){return d.name})),l=[i.model.getCategories()];U(t.series,function(d){var p=d.getRawData();l.push(d.getRawData().mapArray(p.mapDimension(o),function(y){return y}))});for(var u=[s.join(ed)],c=0;c0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t=0;l--)a[l]&&!yv(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[i]=a}}),delete t[pB],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var i=this._componentsMap.get(t);if(i){var a=i[r||0];if(a)return a;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function woe(n,e){return n.join(",")===e.join(",")}const boe=xoe;var qa=k,Tv=pt,yB=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function nM(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=yB.length;t=0;g--){var v=n[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,d)),p>=0){var x=v.data.getByRawIndex(v.stackResultDimension,p);if(l==="all"||l==="positive"&&x>0||l==="negative"&&x<0||l==="samesign"&&f>=0&&x>0||l==="samesign"&&f<=0&&x<0){f=Eee(f,x),y=x;break}}}return r[0]=f,r[1]=y,r})})}var DE=function(){function n(){this.group=new zt,this.uid=sd("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,i){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,i){},n.prototype.updateLayout=function(e,t,r,i){},n.prototype.updateVisual=function(e,t,r,i){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();CC(DE);ix(DE);const er=DE;var MB=In(),wB={itemStyle:Ff(wz,!0),lineStyle:Ff(Mz,!0)},Ooe={lineStyle:"stroke",itemStyle:"fill"};function e5(n,e){var t=n.visualStyleMapper||wB[e];return t||wB.itemStyle}function t5(n,e){var t=n.visualDrawType||Ooe[e];return t||"fill"}var Noe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=n.getModel(r),a=e5(n,r),o=a(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=t5(n,r),u=o[l],c=Tt(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||h){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Tt(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||Tt(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(d,p){var y=n.getDataParams(p),g=De({},o);g[l]=c(y),d.setItemVisual(p,"style",g)}}}},op=new jn,Foe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=e5(n,r),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){op.option=l[r];var u=i(op),c=o.ensureUniqueItemVisual(s,"style");De(c,u),op.option.decal&&(o.setItemVisual(s,"decal",op.option.decal),op.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},koe={performRawSeries:!0,overallReset:function(n){var e=ft();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+r,a=e.get(i);a||(a={},e.set(i,a)),MB(t).scope=a}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),i={},a=t.getData(),o=MB(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=t5(t,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],h=a.getItemVisual(c,"colorFromPalette");if(h){var f=a.ensureUniqueItemVisual(c,"style"),d=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(d,o,p)}})}})}},O0=Math.PI;function Uoe(n,e){e=e||{},bt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new zt,r=new _n({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var i=new xn({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new _n({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new vx({shape:{startAngle:-O0/2,endAngle:-O0/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:O0*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:O0*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var Goe=function(){function n(e,t,r,i){this._stageTaskMap=ft(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),i=r.context,a=!t&&r.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=a?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&a>=r.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ft();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;r.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(i,i.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;k(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Ei(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,t,r),i.overallReset&&this._createOverallStageTask(i,a,t,r)},this)},n.prototype.prepareView=function(e,t,r,i){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=r,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,i){i=i||{};var a=!1,o=this;k(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),h=c.seriesTaskMap,f=c.overallTask;if(f){var d,p=f.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),d=!0)}),d&&f.dirty(),o.updatePayload(f,r);var y=o.getPerformArgs(f,i.block);p.each(function(g){g.perform(y)}),f.perform(y)&&(a=!0)}else h&&h.each(function(g,v){s(i,g)&&g.dirty();var x=o.getPerformArgs(g,i.block);x.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(x)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,i){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ft(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(h){var f=h.uid,d=s.set(f,o&&o.get(f)||Wp({plan:Xoe,reset:Yoe,count:Zoe}));d.context={model:h,ecModel:r,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(h,d)}},n.prototype._createOverallStageTask=function(e,t,r,i){var a=this,o=t.overallTask=t.overallTask||Wp({reset:zoe});o.context={ecModel:r,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ft(),u=e.seriesType,c=e.getTargetSeries,h=!0,f=!1,d="";Ei(!e.createOnAllSeries,d),u?r.eachRawSeriesByType(u,p):c?c(r,i).each(p):(h=!1,k(r.getSeries(),p));function p(y){var g=y.uid,v=l.set(g,s&&s.get(g)||(f=!0,Wp({reset:Hoe,onDirty:Woe})));v.context={model:y,overallProgress:h},v.agent=o,v.__block=h,a._pipe(y,v)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},n.wrapStageHandler=function(e,t){return Tt(e)&&(e={overallReset:e,seriesType:joe(e)}),e.uid=sd("stageHandler"),t&&(e.visualType=t),e},n}();function zoe(n){n.overallReset(n.ecModel,n.api,n.payload)}function Hoe(n){return n.overallProgress&&Voe}function Voe(){this.agent.dirty(),this.getDownstream().dirty()}function Woe(){this.agent&&this.agent.dirty()}function Xoe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function Yoe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=$n(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?He(e,function(t,r){return n5(r)}):Joe}var Joe=n5(0);function n5(n){return function(e,t){var r=t.data,i=t.resetDefines[n];if(i&&i.dataEach)for(var a=e.start;a0&&d===u.length-f.length){var p=u.slice(0,d);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:i}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,a=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,a));function c(h,f,d,p){return h[d]==null||f[p||d]===h[d]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),Pb=["symbol","symbolSize","symbolRotate","symbolOffset"],EB=Pb.concat(["symbolKeepAspect"]),$oe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&_c(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function RB(n,e,t){for(var r=e.type==="radial"?sse(n,e,t):ose(n,e,t),i=e.colorStops,a=0;a0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:Cn(n)?[n]:Ge(n)?n:null}function IE(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&use(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var i=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;i&&i!==1&&(t=He(t,function(a){return a/i}),r/=i)}return[t,r]}var cse=new zs(!0);function o_(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function DB(n){return typeof n=="string"&&n!=="none"}function s_(n){var e=n.fill;return e!=null&&e!=="none"}function IB(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function LB(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function BB(n,e,t){var r=EC(e.image,e.__image,t);if(ax(r)){var i=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Bp),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function hse(n,e,t,r){var i,a=o_(t),o=s_(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||cse,h=e.__dirty;if(!r){var f=t.fill,d=t.stroke,p=o&&!!f.colorStops,y=a&&!!d.colorStops,g=o&&!!f.image,v=a&&!!d.image,x=void 0,S=void 0,A=void 0,T=void 0,w=void 0;(p||y)&&(w=e.getBoundingRect()),p&&(x=h?RB(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=x),y&&(S=h?RB(n,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),g&&(A=h||!e.__canvasFillPattern?BB(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=A),v&&(T=h||!e.__canvasStrokePattern?BB(n,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=A),p?n.fillStyle=x:g&&(A?n.fillStyle=A:o=!1),y?n.strokeStyle=S:v&&(T?n.strokeStyle=T:a=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var P,E;n.setLineDash&&t.lineDash&&(i=IE(e),P=i[0],E=i[1]);var R=!0;(u||h&tf)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),R=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),R&&c.rebuildPath(n,l?s:1),P&&(n.setLineDash(P),n.lineDashOffset=E),r||(t.strokeFirst?(a&&LB(n,t),o&&IB(n,t)):(o&&IB(n,t),a&&LB(n,t))),P&&n.setLineDash([])}function fse(n,e,t){var r=e.__image=EC(t.image,e.__image,e,e.onload);if(!(!r||!ax(r))){var i=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,i,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,h=o-u,f=s-c;n.drawImage(r,u,c,h,f,i,a,o,s)}else n.drawImage(r,i,a,o,s)}}function dse(n,e,t){var r,i=t.text;if(i!=null&&(i+=""),i){n.font=t.font||Wl,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var a=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=IE(e),a=r[0],o=r[1]),a&&(n.setLineDash(a),n.lineDashOffset=o),t.strokeFirst?(o_(t)&&n.strokeText(i,t.x,t.y),s_(t)&&n.fillText(i,t.x,t.y)):(s_(t)&&n.fillText(i,t.x,t.y),o_(t)&&n.strokeText(i,t.x,t.y)),a&&n.setLineDash([])}}var OB=["shadowBlur","shadowOffsetX","shadowOffsetY"],NB=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function u5(n,e,t,r,i){var a=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){zi(n,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?Ec.opacity:o}(r||e.blend!==t.blend)&&(a||(zi(n,i),a=!0),n.globalCompositeOperation=e.blend||Ec.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,i){if(!this[Qr]){if(this._disposed){this.id;return}var a,o,s;if(pt(r)&&(i=r.lazyUpdate,a=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[Qr]=!0,!this._model||r){var l=new boe(this._api),u=this._theme,c=this._model=new KH;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Lb);var h={seriesTransition:s,optionChanged:!0};if(i)this[Fi]={silent:a,updateParams:h},this[Qr]=!1,this.getZr().wakeUp();else{try{Yh(this),_l.update.call(this,null,h)}catch(f){throw this[Fi]=null,this[Qr]=!1,f}this._ssr||this._zr.flush(),this[Fi]=null,this[Qr]=!1,sp.call(this,a),lp.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||sn.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(sn.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return k(r,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,i=this._model,a=[],o=this;k(r,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return k(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(f_[i]){var l=s,u=s,c=-s,h=-s,f=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();k(Ic,function(S,A){if(S.group===i){var T=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(mt(t)),w=S.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),c=o(w.right,c),h=o(w.bottom,h),f.push({dom:T,left:w.left,top:w.top})}}),l*=d,u*=d,c*=d,h*=d;var p=c-l,y=h-u,g=Xl.createCanvas(),v=Eb(g,{renderer:r?"svg":"canvas"});if(v.resize({width:p,height:y}),r){var x="";return k(f,function(S){var A=S.left-l,T=S.top-u;x+=''+S.dom+""}),v.painter.getSvgRoot().innerHTML=x,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}else return t.connectedBackgroundColor&&v.add(new _n({shape:{x:0,y:0,width:p,height:y},style:{fill:t.connectedBackgroundColor}})),k(f,function(S){var A=new Pi({style:{x:S.left*d-l,y:S.top*d-u,image:S.dom}});v.add(A)}),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return lM(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return lM(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var i=this._model,a,o=kp(i,t);return k(o,function(s,l){l.indexOf("Models")>=0&&k(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(r);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(r,u))}},this)},this),!!a},e.prototype.getVisual=function(t,r){var i=this._model,a=kp(i,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?s5(s,l,r):l5(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;k(Use,function(r){var i=function(a){var o=t.getModel(),s=a.target,l,u=r==="globalout";if(u?l={}:s&&yc(s,function(p){var y=tn(p);if(y&&y.dataIndex!=null){var g=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return l=g&&g.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return l=De({},y.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var f=c&&h!=null&&o.getComponent(c,h),d=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=a,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:d},t.trigger(r,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(r,i,t)}),k(Xp,function(r,i){t._messageCenter.on(i,function(a){this.trigger(i,a)},t)}),k(["selectchanged"],function(r){t._messageCenter.on(r,function(i){this.trigger(r,i)},t)}),aae(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&VG(this.getDom(),OE,"");var r=this,i=r._api,a=r._model;k(r._componentsViews,function(o){o.dispose(a,i)}),k(r._chartsViews,function(o){o.dispose(a,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Ic[r.id]},e.prototype.resize=function(t){if(!this[Qr]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),a=t&&t.silent;this[Fi]&&(a==null&&(a=this[Fi].silent),i=!0,this[Fi]=null),this[Qr]=!0;try{i&&Yh(this),_l.update.call(this,{type:"resize",animation:De({duration:0},t&&t.animation)})}catch(o){throw this[Qr]=!1,o}this[Qr]=!1,sp.call(this,a),lp.call(this,a)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(pt(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!Bb[t]){var i=Bb[t](this._api,r),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=De({},t);return r.type=Xp[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(pt(r)||(r={silent:!!r}),!!c_[t.type]&&this._model){if(this[Qr]){this._pendingActions.push(t);return}var i=r.silent;cM.call(this,t,i);var a=r.flush;a?this._zr.flush():a!==!1&&sn.browser.weChat&&this._throttledZrFlush(),sp.call(this,i),lp.call(this,i)}},e.prototype.updateLabelLayout=function(){to.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(r);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Yh=function(h){var f=h._scheduler;f.restorePipelines(h._model),f.prepareStageTasks(),sM(h,!0),sM(h,!1),f.plan()},sM=function(h,f){for(var d=h._model,p=h._scheduler,y=f?h._componentsViews:h._chartsViews,g=f?h._componentsMap:h._chartsMap,v=h._zr,x=h._api,S=0;Sf.get("hoverLayerThreshold")&&!sn.node&&!sn.worker&&f.eachSeries(function(g){if(!g.preventUsingHoverLayer){var v=h._chartsMap[g.__viewId];v.__alive&&v.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}function o(h,f){var d=h.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=d)})}function s(h,f){if(!h.preventAutoZ){var d=h.get("z")||0,p=h.get("zlevel")||0;f.eachRendered(function(y){return l(y,d,p,-1/0),!0})}}function l(h,f,d,p){var y=h.getTextContent(),g=h.getTextGuideLine(),v=h.isGroup;if(v)for(var x=h.childrenRef(),S=0;S0?{duration:y,delay:d.get("delay"),easing:d.get("easing")}:null;f.eachRendered(function(v){if(v.states&&v.states.emphasis){if(Hp(v))return;if(v instanceof bn&&dte(v),v.__dirty){var x=v.prevStates;x&&v.useStates(x)}if(p){v.stateTransition=g;var S=v.getTextContent(),A=v.getTextGuideLine();S&&(S.stateTransition=g),A&&(A.stateTransition=g)}v.__dirty&&i(v)}})}jB=function(h){return new(function(f){we(d,f);function d(){return f!==null&&f.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(p){for(;p;){var y=p.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);p=p.parent}},d.prototype.enterEmphasis=function(p,y){kf(p,y),Sa(h)},d.prototype.leaveEmphasis=function(p,y){Uf(p,y),Sa(h)},d.prototype.enterBlur=function(p){nte(p),Sa(h)},d.prototype.leaveBlur=function(p){jG(p),Sa(h)},d.prototype.enterSelect=function(p){KG(p),Sa(h)},d.prototype.leaveSelect=function(p){qG(p),Sa(h)},d.prototype.getModel=function(){return h.getModel()},d.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},d.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},d}(qH))(h)},T5=function(h){function f(d,p){for(var y=0;y=0)){qB.push(t);var a=a5.wrapStageHandler(t,i);a.__prio=e,a.__raw=t,n.push(a)}}function zE(n,e){Bb[n]=e}function Zse(n){UU({createCanvas:n})}function L5(n,e,t){var r=g5("registerMap");r&&r(n,e,t)}function jse(n){var e=g5("getMap");return e&&e(n)}var B5=Rre;nu(LE,Noe);nu(kx,Foe);nu(kx,koe);nu(LE,$oe);nu(kx,ese);nu(_5,Sse);kE($H);UE(Ese,Loe);zE("default",Uoe);mo({type:Rc,event:Rc,update:Rc},Br);mo({type:vy,event:vy,update:vy},Br);mo({type:Up,event:Up,update:Up},Br);mo({type:gy,event:gy,update:gy},Br);mo({type:Gp,event:Gp,update:Gp},Br);FE("light",Koe);FE("dark",qoe);var Kse={},QB=[],qse={registerPreprocessor:kE,registerProcessor:UE,registerPostInit:R5,registerPostUpdate:P5,registerUpdateLifecycle:Ux,registerAction:mo,registerCoordinateSystem:D5,registerLayout:I5,registerVisual:nu,registerTransform:B5,registerLoading:zE,registerMap:L5,registerImpl:Mse,PRIORITY:x5,ComponentModel:an,ComponentView:er,SeriesModel:ua,ChartView:ai,registerComponentModel:function(n){an.registerClass(n)},registerComponentView:function(n){er.registerClass(n)},registerSeriesModel:function(n){ua.registerClass(n)},registerChartView:function(n){ai.registerClass(n)},registerSubTypeDefaulter:function(n,e){an.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){JH(n,e)}};function Hr(n){if(Ge(n)){k(n,function(e){Hr(e)});return}en(QB,n)>=0||(QB.push(n),Tt(n)&&(n={install:n}),n.install(qse))}var Qse=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(an);const $se=Qse;var ug=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),Ob=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",br).models[0]},e.type="cartesian2dAxis",e}(an);Vr(Ob,ug);var O5={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},ele=Nt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},O5),HE=Nt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},O5),tle=Nt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},HE),nle=bt({logBase:10},HE);const N5={category:ele,value:HE,time:tle,log:nle};var rle=0,ile=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++rle}return n.createByAxisModel=function(e){var t=e.option,r=t.data,i=r&&He(r,ale);return new n({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!Ze(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},n}();function ale(n){return pt(n)&&n.value!=null?n.value:n+""}const Nb=ile;var ole={value:1,category:1,time:1,log:1};function Rv(n,e,t,r){k(ole,function(i,a){var o=Nt(Nt({},N5[a],!0),r,!0),s=function(l){we(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var f=wv(this),d=f?ud(c):{},p=h.getTheme();Nt(c,p.get(a+"Axis")),Nt(c,this.getDefaultOption()),c.type=$B(c),f&&Zl(c,d,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Nb.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",$B)}function $B(n){return n.type||(n.data?"category":"value")}var F5=function(){function n(e){this._setting=e||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(e){return this._setting[e]},n.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();ix(F5);const Js=F5;function Fb(n){return n.type==="interval"||n.type==="log"}function sle(n,e,t,r){var i={},a=n[1]-n[0],o=i.interval=UC(a/e,!0);t!=null&&or&&(o=i.interval=r);var s=i.intervalPrecision=k5(o),l=i.niceTickExtent=[lr(Math.ceil(n[0]/o)*o,s),lr(Math.floor(n[1]/o)*o,s)];return lle(l,n),i}function fM(n){var e=Math.pow(10,cx(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,lr(t*e)}function k5(n){return Ho(n)+2}function eO(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function lle(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),eO(n,0,e),eO(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Gx(n,e){return n>=e[0]&&n<=e[1]}function zx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Hx(n,e){return n*(e[1]-e[0])+e[0]}var U5=function(n){we(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new Nb({})),Ge(i)&&(i=new Nb({categories:He(i,function(a){return pt(a)?a.value:a})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:Ze(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Gx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),zx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Hx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,i=r[0];i<=r[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Js);Js.registerClass(U5);const VE=U5;var Xu=lr,G5=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Gx(t,this._extent)},e.prototype.normalize=function(t){return zx(t,this._extent)},e.prototype.scale=function(t){return Hx(t,this._extent)},e.prototype.setExtent=function(t,r){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(r)||(i[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=k5(t)},e.prototype.getTicks=function(t){var r=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(t?s.push({value:Xu(c+r,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&d>>1;n[i][1]i&&(this._approxInterval=i);var s=G0.length,l=Math.min(ule(G0,this._approxInterval,0,s),s-1);this._interval=G0[l][1],this._minLevelUnit=G0[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Cn(t)?t:+la(t)},e.prototype.contain=function(t){return Gx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return zx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Hx(t,this._extent)},e.type="time",e}(jl),G0=[["second",fE],["minute",dE],["hour",Vp],["quarter-day",Vp*6],["half-day",Vp*12],["day",Na*1.2],["half-week",Na*3.5],["week",Na*7],["month",Na*31],["quarter",Na*95],["half-year",yL/2],["year",yL]];function cle(n,e,t,r){var i=la(e),a=la(t),o=function(p){return xL(i,p,r)===xL(a,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},h=function(){return c()&&o("minute")},f=function(){return h()&&o("second")},d=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return f();case"millisecond":return d()}}function hle(n,e){return n/=Na,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function fle(n){var e=30*Na;return n/=e,n>6?6:n>3?3:n>2?2:1}function dle(n){return n/=Vp,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function tO(n,e){return n/=e?dE:fE,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function ple(n){return UC(n,!0)}function vle(n,e,t){var r=new Date(n);switch(Sf(e)){case"year":case"month":r[Kz(t)](0);case"day":r[qz(t)](1);case"hour":r[Qz(t)](0);case"minute":r[$z(t)](0);case"second":r[eH(t)](0),r[tH(t)](0)}return r.getTime()}function gle(n,e,t,r){var i=1e4,a=Zz,o=0;function s(R,I,O,U,F,z,X){for(var ne=new Date(I),H=I,j=ne[U]();H1&&z===0&&O.unshift({value:O[0].value-H})}}for(var z=0;z=r[0]&&x<=r[1]&&h++)}var S=(r[1]-r[0])/e;if(h>S*1.5&&f>S/1.5||(u.push(g),h>S||n===a[d]))break}c=[]}}}for(var A=Zn(He(u,function(R){return Zn(R,function(I){return I.value>=r[0]&&I.value<=r[1]&&!I.notAdd})}),function(R){return R.length>0}),T=[],w=A.length-1,d=0;d0;)a*=10;var s=[lr(_le(r[0]/a)*a),lr(yle(r[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Yp.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Qa(t)/Qa(this.base),Gx(t,this._extent)},e.prototype.normalize=function(t){return t=Qa(t)/Qa(this.base),zx(t,this._extent)},e.prototype.scale=function(t){return t=Hx(t,this._extent),z0(this.base,t)},e.type="log",e}(Js),V5=WE.prototype;V5.getMinorTicks=Yp.getMinorTicks;V5.getLabel=Yp.getLabel;function H0(n,e){return mle(n,Ho(e))}Js.registerClass(WE);const xle=WE;var Sle=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,d=this._determinedMax;return f!=null&&(s=f,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},n.prototype.modifyDataMinMax=function(e,t){this[Mle[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=Ale[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),Ale={min:"_determinedMin",max:"_determinedMax"},Mle={min:"_dataMin",max:"_dataMax"};function W5(n,e,t){var r=n.rawExtentInfo;return r||(r=new Sle(n,e,t),n.rawExtentInfo=r,r)}function V0(n,e){return e==null?null:hv(e)?NaN:n.parse(e)}function X5(n,e){var t=n.type,r=W5(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var i=r.min,a=r.max,o=e.ecModel;if(o&&t==="time"){var s=bH("bar",o),l=!1;if(k(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=TH(s),c=wle(i,a,e,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function wle(n,e,t,r){var i=t.axis.getExtent(),a=i[1]-i[0],o=Uie(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;k(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;k(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,h=1-(s+l)/a,f=c/h-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Hf(n,e){var t=e,r=X5(n,t),i=r.extent,a=t.get("splitNumber");n instanceof xle&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(i[0],i[1]),n.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Vx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new VE({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new H5({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(Js.getClass(e)||jl)}}function ble(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function cg(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(i,a){return n.scale.getFormattedLabel(i,a,r)}}(e):Ze(e)?function(r){return function(i){var a=n.scale.getLabel(i),o=r.replace("{value}",a!=null?a:"");return o}}(e):Tt(e)?function(r){return function(i,a){return t!=null&&(a=i.value-t),r(XE(n,i),a,i.level!=null?{level:i.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function XE(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function Tle(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,i,a=t.getExtent();t instanceof VE?i=t.count():(r=t.getTicks(),i=r.length);var o=n.getLabelModel(),s=cg(n),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;cn[1]&&(n[1]=i[1])})}var Rle=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return He(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Zn(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const Ple=Rle;var kb=["x","y"];function rO(n){return n.type==="interval"||n.type==="time"}var Dle=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=kb,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!rO(t)||!rO(r))){var i=t.getExtent(),a=r.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,h=(s[1]-o[1])/u,f=o[0]-i[0]*c,d=o[1]-a[0]*h,p=this._transform=[c,0,0,h,f,d];this._invTransform=nd([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var i=this.dataToPoint(t),a=this.dataToPoint(r),o=this.getArea(),s=new ln(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,i){i=i||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Or(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,r)),i[1]=l.toGlobalCoord(l.dataToCoord(o,r)),i},e.prototype.clampData=function(t,r){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(t[0]),u=a.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var i=[];if(this._invTransform)return Or(i,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(t[0]),r),i[1]=o.coordToData(o.toLocalCoord(t[1]),r),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),a=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-i,s=Math.max(r[0],r[1])-a;return new ln(i,a,o,s)},e}(Ple),Pv=In();function Ile(n){return n.type==="category"?Ble(n):Nle(n)}function Lle(n,e){return n.type==="category"?Ole(n,e):{ticks:He(n.scale.getTicks(),function(t){return t.value})}}function Ble(n){var e=n.getLabelModel(),t=J5(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function J5(n,e){var t=Z5(n,"labels"),r=YE(e),i=j5(t,r);if(i)return i;var a,o;return Tt(r)?a=Q5(n,r):(o=r==="auto"?Fle(n):r,a=q5(n,o)),K5(t,r,{labels:a,labelCategoryInterval:o})}function Ole(n,e){var t=Z5(n,"ticks"),r=YE(e),i=j5(t,r);if(i)return i;var a,o;if((!e.get("show")||n.scale.isBlank())&&(a=[]),Tt(r))a=Q5(n,r,!0);else if(r==="auto"){var s=J5(n,n.getLabelModel());o=s.labelCategoryInterval,a=He(s.labels,function(l){return l.tickValue})}else o=r,a=q5(n,o,!0);return K5(t,r,{ticks:a,tickCategoryInterval:o})}function Nle(n){var e=n.scale.getTicks(),t=cg(n);return{labels:He(e,function(r,i){return{level:r.level,formattedLabel:t(r,i),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function Z5(n,e){return Pv(n)[e]||(Pv(n)[e]=[])}function j5(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),f=0,d=0;l<=a[1];l+=s){var p=0,y=0,g=rg(t({value:l}),e.font,"center","top");p=g.width*1.3,y=g.height*1.3,f=Math.max(f,p,7),d=Math.max(d,y,7)}var v=f/c,x=d/h;isNaN(v)&&(v=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(v,x))),A=Pv(n.model),T=n.getExtent(),w=A.lastAutoInterval,C=A.lastTickCount;return w!=null&&C!=null&&Math.abs(w-S)<=1&&Math.abs(C-o)<=1&&w>S&&A.axisExtent0===T[0]&&A.axisExtent1===T[1]?S=w:(A.lastTickCount=o,A.lastAutoInterval=S,A.axisExtent0=T[0],A.axisExtent1=T[1]),S}function Ule(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function q5(n,e,t){var r=cg(n),i=n.scale,a=i.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Y5(n),f=o.get("showMinLabel")||h,d=o.get("showMaxLabel")||h;f&&u!==a[0]&&y(a[0]);for(var p=u;p<=a[1];p+=l)y(p);d&&p-l!==a[1]&&y(a[1]);function y(g){var v={value:g};s.push(t?g:{formattedLabel:r(v),rawLabel:i.getLabel(v),tickValue:g})}return s}function Q5(n,e,t){var r=n.scale,i=cg(n),a=[];return k(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&a.push(t?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var iO=[0,1],Gle=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=r&&e<=i},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return FC(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(r=r.slice(),aO(r,i.count())),Gn(e,iO,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),aO(r,i.count()));var a=Gn(e,r,iO,t);return this.scale.scale(a)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=Lle(this,t),i=r.ticks,a=He(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return zle(this,a,o,e.clamp),a},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),i=He(r,function(a){return He(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},n.prototype.getViewLabels=function(){return Ile(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/r},n.prototype.calculateCategoryInterval=function(){return kle(this)},n}();function aO(n,e){var t=n[1]-n[0],r=e,i=t/r/2;n[0]+=i,n[1]-=i}function zle(n,e,t,r){var i=e.length;if(!n.onBand||t||!i)return;var a=n.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;k(e,function(d){d.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var h=a[0]>a[1];f(e[0].coord,a[0])&&(r?e[0].coord=a[0]:e.shift()),r&&f(a[0],e[0].coord)&&e.unshift({coord:a[0]}),f(a[1],o.coord)&&(r?o.coord=a[1]:e.pop()),r&&f(o.coord,a[1])&&e.push({coord:a[1]});function f(d,p){return d=lr(d),p=lr(p),h?d>p:dr[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(yo);const Vle=Hle;function Ub(n,e,t){t=t||{};var r=n.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,p=u==="x"?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(o){var y=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(y,p[1]),p[0])}a.position=[u==="y"?p[f[l]]:h[0],u==="x"?p[f[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ks(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-v:v,a.z2=1,a}function oO(n){return n.get("coordinateSystem")==="cartesian2d"}function sO(n){var e={xAxisModel:null,yAxisModel:null};return k(e,function(t,r){var i=r.replace(/Model$/,""),a=n.getReferringComponents(i,br).models[0];e[r]=a}),e}var dM=Math.log;function $5(n,e,t){var r=jl.prototype,i=r.getTicks.call(t),a=r.getTicks.call(t,!0),o=i.length-1,s=r.getInterval.call(t),l=X5(n,e),u=l.extent,c=l.fixMin,h=l.fixMax;if(n.type==="log"){var f=dM(n.base);u=[dM(u[0])/f,dM(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:h});var d=r.getExtent.call(n);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var p=r.getInterval.call(n),y=u[0],g=u[1];if(c&&h)p=(g-y)/o;else if(c)for(g=u[0]+p*o;gu[0]&&isFinite(y)&&isFinite(u[0]);)p=fM(p),y=u[1]-p*o;else{var v=n.getTicks().length-1;v>o&&(p=fM(p));var x=p*o;g=Math.ceil(u[1]/p)*p,y=lr(g-x),y<0&&u[0]>=0?(y=0,g=lr(x)):g>0&&u[1]<=0&&(g=0,y=-lr(x))}var S=(i[0].value-a[0].value)/s,A=(i[o].value-a[o].value)/s;r.setExtent.call(n,y+p*S,g+p*A),r.setInterval.call(n,p),(S||A)&&r.setNiceExtent.call(n,y+p,g-p)}var Wle=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kb,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=Xt(o),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var f=+l[h],d=o[f],p=d.model,y=d.scale;Fb(y)&&p.get("alignTicks")&&p.get("interval")==null?c.push(d):(Hf(y,p),Fb(y)&&(s=d))}c.length&&(s||(s=c.pop(),Hf(s.scale,s.model)),k(c,function(g){$5(g.scale,g.model,s.scale)}))}}i(r.x),i(r.y);var a={};k(r.x,function(o){lO(r,"y",o,a)}),k(r.y,function(o){lO(r,"x",o,a)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var i=e.getBoxLayoutParams(),a=!r&&e.get("containLabel"),o=Ri(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(k(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Tle(u);if(c){var h=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[h]-=c[h]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),k(this._coordsList,function(u){u.calcAffineTransform()});function l(){k(s,function(u){var c=u.isHorizontal(),h=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(h[f],h[1-f]),Xle(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}pt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):gv(i-Pl)?(o=r>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),cO={axisLine:function(n,e,t,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&n.handleAutoShown&&(i=n.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=r.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Or(s,s,o),Or(l,l,o));var c=De({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new wi({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});Sv(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var f=e.get(["axisLine","symbol"]);if(f!=null){var d=e.get(["axisLine","symbolSize"]);Ze(f)&&(f=[f,f]),(Ze(d)||Cn(d))&&(d=[d,d]);var p=Ox(e.get(["axisLine","symbolOffset"])||0,d),y=d[0],g=d[1];k([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(v,x){if(f[x]!=="none"&&f[x]!=null){var S=si(f[x],-y/2,-g/2,y,g,c.stroke,!0),A=v.r+v.offset,T=u?l:s;S.attr({rotation:v.rotate,x:T[0]+A*Math.cos(n.rotation),y:T[1]-A*Math.sin(n.rotation),silent:!0,z2:11}),t.add(S)}})}}},axisTickLabel:function(n,e,t,r){var i=jle(t,r,e,n),a=qle(t,r,e,n);if(Zle(e,a,i),Kle(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=fae(He(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));vae(o)}},axisName:function(n,e,t,r){var i=ks(n.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,fO(a)?n.labelOffset+o*l:0],f,d=e.get("nameRotate");d!=null&&(d=d*Pl/180);var p;fO(a)?f=Lc.innerTextLayout(n.rotation,d!=null?d:n.rotation,o):(f=Jle(n.rotation,a,d||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var y=s.getFont(),g=e.get("nameTruncate",!0)||{},v=g.ellipsis,x=ks(n.nameTruncateMaxWidth,g.maxWidth,p),S=new xn({x:h[0],y:h[1],rotation:f.rotation,silent:Lc.isLabelSilent(e),style:pr(s,{text:i,font:y,overflow:"truncate",width:x,ellipsis:v,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(ad({el:S,componentModel:e,itemName:i}),S.__fullText=i,S.anid="name",e.get("triggerEvent")){var A=Lc.makeAxisEventDataBase(e);A.targetType="axisName",A.name=i,tn(S).eventData=A}r.add(S),S.updateTransform(),t.add(S),S.decomposeTransform()}}};function Jle(n,e,t,r){var i=kC(t-n),a,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return gv(i-Pl/2)?(o=l?"bottom":"top",a="center"):gv(i-Pl*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iPl/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function Zle(n,e,t){if(!Y5(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),i=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],h=t[t.length-1],f=t[t.length-2];r===!1?(Aa(a),Aa(u)):hO(a,o)&&(r?(Aa(o),Aa(c)):(Aa(a),Aa(u))),i===!1?(Aa(s),Aa(h)):hO(l,s)&&(i?(Aa(l),Aa(f)):(Aa(s),Aa(h)))}}function Aa(n){n&&(n.ignore=!0)}function hO(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var i=ng([]);return eu(i,i,-n.rotation),t.applyTransform(Zo([],i,n.getLocalTransform())),r.applyTransform(Zo([],i,e.getLocalTransform())),t.intersect(r)}}function fO(n){return n==="middle"||n==="center"}function e4(n,e,t,r,i){for(var a=[],o=[],s=[],l=0;l=0||n===e}function rue(n){var e=JE(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,i=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=Gb(t);a==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var y=l;p.color!=null&&(y=bt({color:p.color},l));var g=Nt(mt(p),{boundaryGap:t,splitNumber:r,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:y,triggerEvent:f},!1);if(Ze(c)){var v=g.name;g.name=c.replace("{value}",v!=null?v:"")}else Tt(c)&&(g.name=c(g.name,g));var x=new jn(g,null,this.ecModel);return Vr(x,ug.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Nt({lineStyle:{color:"#bbb"}},up.axisLine),axisLabel:W0(up.axisLabel,!1),axisTick:W0(up.axisTick,!1),splitLine:W0(up.splitLine,!0),splitArea:W0(up.splitArea,!0),indicator:[]},e}(an);const Sue=xue;var Aue=["axisLine","axisTickLabel","axisName"],Mue=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=this.group;a.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes(),a=He(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Kl(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});k(a,function(o){k(Aue,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var a=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),h=s.get("show"),f=l.get("color"),d=u.get("color"),p=Ge(f)?f:[f],y=Ge(d)?d:[d],g=[],v=[];function x(z,X,ne){var H=ne%X.length;return z[H]=z[H]||[],H}if(a==="circle")for(var S=i[0].getTicksCoords(),A=r.cx,T=r.cy,w=0;w3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;gM(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(a),f=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);gM(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!yO(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;gM(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(vo);function gM(n,e,t,r,i){n.pointerChecker&&n.pointerChecker(r,i.originX,i.originY)&&(Hs(r.event),i4(n,e,t,r,i))}function i4(n,e,t,r,i){i.isAvailableBehavior=at(wy,null,t,r),n.trigger(e,i)}function wy(n,e,t){var r=t[n];return!n||r&&(!Ze(r)||e.event[r+"Key"])}const a4=Iue;function Lue(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function Bue(n,e,t,r){var i=n.target,a=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Oue={axisPointer:1,tooltip:1,brush:1};function o4(n,e,t){var r=e.getComponentByElement(n.topTarget),i=r&&r.coordinateSystem;return r&&r!==t&&!Oue.hasOwnProperty(r.mainType)&&i&&i.model!==t}function s4(n){if(Ze(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mM,p_={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},_O=Xt(p_),v_={"alignment-baseline":"textBaseline","stop-color":"stopColor"},xO=Xt(v_),Nue=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=s4(e);this._defsUsePending=[];var i=new zt;this._root=i;var a=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),qi(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;Uue(this._defs,this._defsUsePending),this._defsUsePending=[];var c,h;if(o){var f=Wx(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(h=u4(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var d=i;i=new zt,i.add(d),d.scaleX=d.scaleY=h.scale,d.x=h.x,d.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new _n({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:h,named:a}},n.prototype._parseNode=function(e,t,r,i,a,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!a){var c=mM[s];if(c&&Ot(mM,s)){l=c.call(this,e,t);var h=e.getAttribute("name");if(h){var f={name:h,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var d=SO[s];if(d&&Ot(SO,s)){var p=d.call(this,e),y=e.getAttribute("id");y&&(this._defs[y]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},n.prototype._parseText=function(e,t){var r=new vv({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ma(t,r),qi(e,r,this._defsUsePending,!1,!1),Fue(r,t);var i=r.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,r.scaleX*=a/9,r.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mM={g:function(e,t){var r=new zt;return Ma(t,r),qi(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new _n;return Ma(t,r),qi(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new co;return Ma(t,r),qi(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new wi;return Ma(t,r),qi(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new px;return Ma(t,r),qi(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),i;r&&(i=wO(r));var a=new os({shape:{points:i||[]},silent:!0});return Ma(t,a),qi(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,t){var r=e.getAttribute("points"),i;r&&(i=wO(r));var a=new Ha({shape:{points:i||[]},silent:!0});return Ma(t,a),qi(e,a,this._defsUsePending,!1,!1),a},image:function(e,t){var r=new Pi;return Ma(t,r),qi(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new zt;return Ma(t,s),qi(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),i=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new zt;return Ma(t,s),qi(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",i=rz(r);return Ma(t,i),qi(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),n}(),SO={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),i=parseInt(n.getAttribute("y2")||"0",10),a=new og(e,t,r,i);return AO(n,a),MO(n,a),a},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),i=new KC(e,t,r);return AO(n,i),MO(n,i),i}};function AO(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function MO(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var a={};l4(t,a,a);var o=a.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function Ma(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),bt(e.__inheritedStyle,n.__inheritedStyle))}function wO(n){for(var e=Wx(n),t=[],r=0;r0;a-=2){var o=r[a],s=r[a-1],l=Wx(o);switch(i=i||Ga(),s){case"translate":Us(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":RC(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":eu(i,i,-parseFloat(l[0])*yM);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yM);Zo(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yM);Zo(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var TO=/([^\s:;]+)\s*:\s*([^:;]+)/g;function l4(n,e,t){var r=n.getAttribute("style");if(r){TO.lastIndex=0;for(var i;(i=TO.exec(r))!=null;){var a=i[1],o=Ot(p_,a)?p_[a]:null;o&&(e[o]=i[2]);var s=Ot(v_,a)?v_[a]:null;s&&(t[s]=i[2])}}}function Vue(n,e,t){for(var r=0;r<_O.length;r++){var i=_O[r],a=n.getAttribute(i);a!=null&&(e[p_[i]]=a)}for(var r=0;ri&&(r=o,i=l)}if(r)return Jue(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return k(o,function(s){s.type==="polygon"?RO(s.exterior,i,a,t):k(s.points,function(l){RO(l,i,a,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),r=new ln(i[0],i[1],a[0]-i[0],a[1]-i[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,r.push([s/t,l/t])}return r}function Hb(n,e){return n=$ue(n),He(Zn(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,i=t.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new PO(o[0],o.slice(1)));break;case"MultiPolygon":k(i.coordinates,function(l){l[0]&&a.push(new PO(l[0],l.slice(1)))});break;case"LineString":a.push(new DO([i.coordinates]));break;case"MultiLineString":a.push(new DO(i.coordinates))}var s=new h4(r[e||"name"],a,r.cp);return s.properties=r,s})}var Vb=[126,25],IO="南海诸岛",ec=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Yu=0;Yu0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,i)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ft(),r=ft(),i=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(d,p){return p&&(d=p(d)),d&&[d[0]*a.scaleX+a.x,d[1]*a.scaleY+a.y]}function h(d){for(var p=[],y=!u&&l&&l.project,g=0;g=0)&&(f=i);var d=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Xs(e,Ys(r),{labelFetcher:f,labelDataIndex:h,defaultText:t},d);var p=e.getTextContent();if(p&&(d4(p).ignore=p.ignore,e.textConfig&&o)){var y=e.getBoundingRect().clone();e.textConfig.layoutRect=y,e.textConfig.position=[(o[0]-y.x)/y.width*100+"%",(o[1]-y.y)/y.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function NO(n,e,t,r,i,a){n.data?n.data.setItemGraphicEl(a,e):tn(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:r&&r.option||{}}}function FO(n,e,t,r,i){n.data||ad({el:e,componentModel:i,itemName:t,itemTooltipOption:r.get("tooltip")})}function kO(n,e,t,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var a=r.getModel("emphasis"),o=a.get("focus");return Yl(e,o,a.get("blurScope"),a.get("disabled")),n.isGeo&&hte(e,i,t),o}function UO(n,e,t){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),k(n,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(ua);const gce=vce;function mce(n,e){var t={};return k(n,function(r){r.each(r.mapDimension("value"),function(i,a){var o="ec-"+r.getName(a);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),n[0].map(n[0].mapDimension("value"),function(r,i){for(var a="ec-"+n[0].getName(i),o=0,s=1/0,l=-1/0,u=t[a].length,c=0;c1?(A.width=S,A.height=S/g):(A.height=S,A.width=S*g),A.y=x[1]-A.height/2,A.x=x[0]-A.width/2;else{var T=n.getBoxLayoutParams();T.aspect=g,A=Ri(T,{width:p,height:y})}this.setViewRect(A.x,A.y,A.width,A.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function Ace(n,e){k(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var Mce=function(){function n(){this.dimensions=g4}return n.prototype.create=function(e,t){var r=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new VO(l+s,l,De({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=WO,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var a={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),k(a,function(o,s){var l=He(o,function(c){return c.get("nameMap")}),u=new VO(s,s,De({nameMap:HU(l)},i(o[0])));u.zoomLimit=ks.apply(null,He(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=WO,u.resize(o[0],t),k(o,function(c){c.coordinateSystem=u,Ace(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,i){for(var a=(e||[]).slice(),o=ft(),s=0;s=0;a--)r[a]==null&&(delete t[e[a]],e.pop())}function SM(n,e){var t=n.visual,r=[];pt(t)?Iv(t,function(a){r.push(a)}):t!=null&&r.push(t);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(n.type)&&(r[1]=r[0]),_4(n,r)}function Y0(n){return{applyVisual:function(e,t,r){var i=this.mapValueToVisual(e);r("color",n(t("color"),i))},_normalizedToVisual:Wb([0,1])}}function YO(n){var e=this.option.visual;return e[Math.round(Gn(n,[0,1],[0,e.length-1],!0))]||{}}function hp(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function Tp(n){var e=this.option.visual;return e[this.option.loop&&n!==g_?n%e.length:n]}function tc(){return this.option.visual[0]}function Wb(n){return{linear:function(e){return Gn(e,n,this.option.visual,!0)},category:Tp,piecewise:function(e,t){var r=Xb.call(this,t);return r==null&&(r=Gn(e,n,this.option.visual,!0)),r},fixed:tc}}function Xb(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=KE.findPieceIndex(n,t),i=t[r];if(i&&i.visual)return i.visual[this.type]}}function _4(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=He(e,function(t){var r=Ti(t);return r||[0,0,0,1]})),e}var Nce={linear:function(n){return Gn(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=KE.findPieceIndex(n,e,!0);if(t!=null)return Gn(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e==null?g_:e},fixed:Br};function J0(n,e,t){return n?e<=t:eGce)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!AM(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function AM(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const Vce=zce;var Wce=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Nt(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var i=t.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){k(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],i=Zn(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);k(i,function(a){t.push("dim"+a.get("dim")),r.push(a.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(an);const Xce=Wce;var Yce=function(n){we(e,n);function e(t,r,i,a,o){var s=n.call(this,t,r,i)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(yo);const Jce=Yce;function Kc(n,e,t,r,i,a){n=n||0;var o=t[1]-t[0];if(i!=null&&(i=Zh(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Zh(s,[0,o]),i=a=Zh(s,[i,a]),r=0}e[0]=Zh(e[0],t),e[1]=Zh(e[1],t);var l=MM(e,r);e[r]+=n;var u=i||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Zh(e[r],c);var h;return h=MM(e,r),i!=null&&(h.sign!==l.sign||h.spana&&(e[1-r]=e[r]+h.sign*a),e}function MM(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Zh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var wM=k,x4=Math.min,S4=Math.max,JO=Math.floor,Zce=Math.ceil,ZO=lr,jce=Math.PI,Kce=function(){function n(e,t,r){this.type="parallel",this._axesMap=ft(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var i=e.dimensions,a=e.parallelAxisIndex;wM(i,function(o,s){var l=a[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Jce(o,Vx(u),[0,0],u.get("type"),l)),h=c.type==="category";c.onBand=h&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,i=t.layoutBase,a=t.pixelDimIndex,o=e[1-a],s=e[a];return o>=r&&o<=r+t.axisLength&&s>=i&&s<=i+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var i=r.getData();wM(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Hf(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=Ri(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],i=["width","height"],a=e.get("layout"),o=a==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,c=Z0(e.get("axisExpandWidth"),l),h=Z0(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,d=e.get("axisExpandWindow"),p;if(d)p=Z0(d[1]-d[0],l),d[1]=d[0]+p;else{p=Z0(c*(h-1),l);var y=e.get("axisExpandCenter")||JO(u/2);d=[c*y-p/2],d[1]=d[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var v=[JO(ZO(d[0]/c,1))+1,Zce(ZO(d[1]/c,1))-1],x=g/c*d[0];return{layout:a,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[i[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:d,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:x}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),wM(r,function(o,s){var l=(i.axisExpandable?Qce:qce)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:jce/2,vertical:0},h=[u[a].x+e.x,u[a].y+e.y],f=c[a],d=Ga();eu(d,d,f),Us(d,d,h),this._axesLayout[o]={position:h,rotation:f,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,i){r==null&&(r=0),i==null&&(i=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];k(o,function(g){s.push(e.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),c=r;ca*(1-h[0])?(u="jump",l=s-a*(1-h[2])):(l=s-a*h[1])>=0&&(l=s-a*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?Kc(l,i,o,"all"):u="none";else{var d=i[1]-i[0],p=o[1]*s/d;i=[S4(0,p-d/2)],i[1]=x4(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:u}},n}();function Z0(n,e){return x4(S4(n,e[0]),e[1])}function qce(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function Qce(n,e){var t=e.layoutLength,r=e.axisExpandWidth,i=e.axisCount,a=e.axisCollapseWidth,o=e.winInnerIndices,s,l=a,u=!1,c;return n=0;i--)zo(r[i])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var a=0,o=r.length;aahe}function E4(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function R4(n,e,t,r){var i=new zt;return i.add(new _n({name:"main",style:eR(t),silent:!0,draggable:!0,cursor:"move",drift:on(QO,n,e,i,["n","s","w","e"]),ondragend:on(zc,e,{isEnd:!0})})),k(r,function(a){i.add(new _n({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:on(QO,n,e,i,a),ondragend:on(zc,e,{isEnd:!0})}))}),i}function P4(n,e,t,r){var i=r.brushStyle.lineWidth||0,a=Vf(i,ohe),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,c=t[0][1],h=t[1][1],f=c-a+i/2,d=h-a+i/2,p=c-o,y=h-s,g=p+i,v=y+i;As(n,e,"main",o,s,p,y),r.transformable&&(As(n,e,"w",l,u,a,v),As(n,e,"e",f,u,a,v),As(n,e,"n",l,u,g,a),As(n,e,"s",l,d,g,a),As(n,e,"nw",l,u,a,a),As(n,e,"ne",f,u,a,a),As(n,e,"sw",l,d,a,a),As(n,e,"se",f,d,a,a))}function Jb(n,e){var t=e.__brushOption,r=t.transformable,i=e.childAt(0);i.useStyle(eR(t)),i.attr({silent:!r,cursor:r?"move":"default"}),k([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?Zb(n,a[0]):dhe(n,a);o&&o.attr({silent:!r,invisible:!r,cursor:r?lhe[s]+"-resize":null})})}function As(n,e,t,r,i,a,o){var s=e.childOfName(t);s&&s.setShape(vhe(tR(n,e,[[r,i],[r+a,i+o]])))}function eR(n){return bt({strokeNoScale:!0},n.brushStyle)}function D4(n,e,t,r){var i=[Lv(n,t),Lv(e,r)],a=[Vf(n,t),Vf(e,r)];return[[i[0],a[0]],[i[1],a[1]]]}function fhe(n){return kl(n.group)}function Zb(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=yx(t[e],fhe(n));return r[i]}function dhe(n,e){var t=[Zb(n,e[0]),Zb(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function QO(n,e,t,r,i,a){var o=t.__brushOption,s=n.toRectRange(o.range),l=I4(e,i,a);k(r,function(u){var c=she[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(D4(s[0][0],s[1][0],s[0][1],s[1][1])),qE(e,t),zc(e,{isEnd:!1})}function phe(n,e,t,r){var i=e.__brushOption.range,a=I4(n,t,r);k(i,function(o){o[0]+=a[0],o[1]+=a[1]}),qE(n,e),zc(n,{isEnd:!1})}function I4(n,e,t){var r=n.group,i=r.transformCoordToLocal(e,t),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function tR(n,e,t){var r=C4(n,e);return r&&r!==Gc?r.clipPath(t,n._transform):mt(t)}function vhe(n){var e=Lv(n[0][0],n[1][0]),t=Lv(n[0][1],n[1][1]),r=Vf(n[0][0],n[1][0]),i=Vf(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:i-t}}function ghe(n,e,t){if(!(!n._brushType||yhe(n,e.offsetX,e.offsetY))){var r=n._zr,i=n._covers,a=$E(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var Xx={lineX:tN(0),lineY:tN(1),rect:{createCover:function(n,e){function t(r){return r}return R4({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=E4(n);return D4(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){P4(n,e,t,r)},updateCommon:Jb,contain:Kb},polygon:{createCover:function(n,e){var t=new zt;return t.add(new Ha({name:"main",style:eR(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new os({name:"main",draggable:!0,drift:on(phe,n,e),ondragend:on(zc,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:tR(n,e,t)})},updateCommon:Jb,contain:Kb}};function tN(n){return{createCover:function(e,t){return R4({toRectRange:function(r){var i=[r,[0,100]];return n&&i.reverse(),i},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=E4(e),r=Lv(t[0][n],t[1][n]),i=Vf(t[0][n],t[1][n]);return[r,i]},updateCoverShape:function(e,t,r,i){var a,o=C4(e,t);if(o!==Gc&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(n);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,a];n&&l.reverse(),P4(e,t,l,i)},updateCommon:Jb,contain:Kb}}const B4=che;function O4(n){return n=nR(n),function(e){return nE(e,n)}}function N4(n,e){return n=nR(n),function(t){var r=e!=null?e:t,i=r?n.width:n.height,a=r?n.x:n.y;return[a,a+(i||0)]}}function F4(n,e,t){var r=nR(n);return function(i,a){return r.contain(a[0],a[1])&&!o4(i,e,t)}}function nR(n){return ln.create(n)}var _he=["axisLine","axisTickLabel","axisName"],xhe=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new B4(r.getZr())).on("brush",at(this._onBrush,this))},e.prototype.render=function(t,r,i,a){if(!She(t,r,a)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new zt,this.group.add(this._axisGroup),!!t.get("show")){var s=Mhe(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,h=t.axis.dim,f=l.getAxisLayout(h),d=De({strokeContainThreshold:c},f),p=new Kl(t,d);k(_he,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,u,t,s,c,i),_x(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),h=ln.create({x:l[0],y:-o/2,width:u,height:o});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:O4(h),isTargetByCursor:F4(h,s,a),getLinearBrushOtherExtent:N4(h,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Ahe(i))},e.prototype._onBrush=function(t){var r=t.areas,i=this.axisModel,a=i.axis,o=He(r,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(er);function She(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Ahe(n){var e=n.axis;return He(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Mhe(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const whe=xhe;var bhe={type:"axisAreaSelect",event:"axisAreaSelected"};function The(n){n.registerAction(bhe,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var Che={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Ehe(n){n.registerComponentView(Vce),n.registerComponentModel(Xce),n.registerCoordinateSystem("parallel",nhe),n.registerPreprocessor(Fce),n.registerComponentModel(jO),n.registerComponentView(whe),Rv(n,"parallel",jO,Che),The(n)}var Rhe=["itemStyle","borderWidth"],nN=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],bM=new co,Phe=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),h=l.master.getRect(),f={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:c,valueDim:nN[+c],categoryDim:nN[1-+c]};return o.diff(s).add(function(d){if(o.hasValue(d)){var p=iN(o,d),y=rN(o,d,p,f),g=aN(o,f,y);o.setItemGraphicEl(d,g),a.add(g),sN(g,f,y)}}).update(function(d,p){var y=s.getItemGraphicEl(p);if(!o.hasValue(d)){a.remove(y);return}var g=iN(o,d),v=rN(o,d,g,f),x=V4(o,v);y&&x!==y.__pictorialShapeStr&&(a.remove(y),o.setItemGraphicEl(d,null),y=null),y?Fhe(y,f,v):y=aN(o,f,v,!0),o.setItemGraphicEl(d,y),y.__pictorialSymbolMeta=v,a.add(y),sN(y,f,v)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&oN(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var i=this.group,a=this._data;t.get("animation")?a&&a.eachItemGraphicEl(function(o){oN(a,tn(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(ai);function rN(n,e,t,r){var i=n.getItemLayout(e),a=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),f={dataIndex:e,layout:i,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Dhe(t,a,i,r,f),Ihe(n,e,i,a,o,f.boundingLength,f.pxSign,c,r,f),Lhe(t,f.symbolScale,u,r,f);var d=f.symbolSize,p=Ox(t.get("symbolOffset"),d);return Bhe(t,d,i,a,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Dhe(n,e,t,r,i){var a=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[a.wh]<=0),c;if(Ge(o)){var h=[TM(s,o[0])-l,TM(s,o[1])-l];h[1]0?1:-1}function TM(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Ihe(n,e,t,r,i,a,o,s,l,u){var c=l.valueDim,h=l.categoryDim,f=Math.abs(t[h.wh]),d=n.getItemVisual(e,"symbolSize"),p;Ge(d)?p=d.slice():d==null?p=["100%","100%"]:p=[d,d],p[h.index]=Lt(p[h.index],f),p[c.index]=Lt(p[c.index],r?f:Math.abs(a)),u.symbolSize=p;var y=u.symbolScale=[p[0]/s,p[1]/s];y[c.index]*=(l.isHorizontal?-1:1)*o}function Lhe(n,e,t,r,i){var a=n.get(Rhe)||0;a&&(bM.attr({scaleX:e[0],scaleY:e[1],rotation:t}),bM.updateTransform(),a/=bM.getLineScale(),a*=e[r.valueDim.index]),i.valueLineWidth=a||0}function Bhe(n,e,t,r,i,a,o,s,l,u,c,h){var f=c.categoryDim,d=c.valueDim,p=h.pxSign,y=Math.max(e[d.index]+s,0),g=y;if(r){var v=Math.abs(l),x=ks(n.get("symbolMargin"),"15%")+"",S=!1;x.lastIndexOf("!")===x.length-1&&(S=!0,x=x.slice(0,x.length-1));var A=Lt(x,e[d.index]),T=Math.max(y+A*2,0),w=S?0:A*2,C=GC(r),P=C?r:lN((v+w)/T),E=v-P*y;A=E/2/(S?P:Math.max(P-1,1)),T=y+A*2,w=S?0:A*2,!C&&r!=="fixed"&&(P=u?lN((Math.abs(u)+w)/T):0),g=P*T-w,h.repeatTimes=P,h.symbolMargin=A}var R=p*(g/2),I=h.pathPosition=[];I[f.index]=t[f.wh]/2,I[d.index]=o==="start"?R:o==="end"?l-R:l/2,a&&(I[0]+=a[0],I[1]+=a[1]);var O=h.bundlePosition=[];O[f.index]=t[f.xy],O[d.index]=t[d.xy];var U=h.barRectShape=De({},t);U[d.wh]=p*Math.max(Math.abs(t[d.wh]),Math.abs(I[d.index]+R)),U[f.wh]=t[f.wh];var F=h.clipShape={};F[f.xy]=-t[f.xy],F[f.wh]=c.ecSize[f.wh],F[d.xy]=0,F[d.wh]=t[d.wh]}function k4(n){var e=n.symbolPatternSize,t=si(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function U4(n,e,t,r){var i=n.__pictorialBundle,a=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,h=a[e.valueDim.index]+o+t.symbolMargin*2;for(rR(n,function(y){y.__pictorialAnimationIndex=c,y.__pictorialRepeatTimes=u,c0:v<0)&&(x=u-1-y),g[l.index]=h*(x-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function G4(n,e,t,r){var i=n.__pictorialBundle,a=n.__pictorialMainPath;a?Mf(a,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(a=n.__pictorialMainPath=k4(t),i.add(a),Mf(a,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function z4(n,e,t){var r=De({},e.barRectShape),i=n.__pictorialBarRect;i?Mf(i,null,{shape:r},e,t):(i=n.__pictorialBarRect=new _n({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,n.add(i))}function H4(n,e,t,r){if(t.symbolClip){var i=n.__pictorialClipPath,a=De({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)ur(i,{shape:a},s,l);else{a[o.wh]=0,i=new _n({shape:a}),n.__pictorialBundle.setClipPath(i),n.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],Sx[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function iN(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Ohe,t.isAnimationEnabled=Nhe,t}function Ohe(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Nhe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function aN(n,e,t,r){var i=new zt,a=new zt;return i.add(a),i.__pictorialBundle=a,a.x=t.bundlePosition[0],a.y=t.bundlePosition[1],t.symbolRepeat?U4(i,e,t):G4(i,e,t),z4(i,t,r),H4(i,e,t,r),i.__pictorialShapeStr=V4(n,t),i.__pictorialSymbolMeta=t,i}function Fhe(n,e,t){var r=t.animationModel,i=t.dataIndex,a=n.__pictorialBundle;ur(a,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,i),t.symbolRepeat?U4(n,e,t,!0):G4(n,e,t,!0),z4(n,t,!0),H4(n,e,t,!0)}function oN(n,e,t,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];rR(r,function(o){a.push(o)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),k(a,function(o){_v(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function V4(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function rR(n,e,t){k(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Mf(n,e,t,r,i,a){e&&n.attr(e),r.symbolClip&&!i?t&&n.attr(t):t&&Sx[i?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,a)}function sN(n,e,t){var r=t.dataIndex,i=t.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),h=a.get("blurScope"),f=a.get("scale");rR(n,function(y){if(y instanceof Pi){var g=y.style;y.useStyle(De({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else y.useStyle(t.style);var v=y.ensureState("emphasis");v.style=o,f&&(v.scaleX=y.scaleX*1.1,v.scaleY=y.scaleY*1.1),y.ensureState("blur").style=s,y.ensureState("select").style=l,u&&(y.cursor=u),y.z2=t.z2});var d=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Xs(p,Ys(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Nx(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:d}),Yl(n,c,h,a.get("disabled"))}function lN(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const khe=Phe;var Uhe=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=tu(n_.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(n_);const Ghe=Uhe;function zhe(n){n.registerChartView(khe),n.registerSeriesModel(Ghe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,on(CH,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,EH("pictorialBar"))}function Hhe(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||Ot(n,"text")))}function Vhe(n,e,t){var r=n,i,a,o;if(e==="text")o=r;else{o={},Ot(r,"text")&&(o.text=r.text),Ot(r,"rich")&&(o.rich=r.rich),Ot(r,"textFill")&&(o.fill=r.textFill),Ot(r,"textStroke")&&(o.stroke=r.textStroke),Ot(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Ot(r,"fontSize")&&(o.fontSize=r.fontSize),Ot(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Ot(r,"fontWeight")&&(o.fontWeight=r.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Ot(r,"textPosition");t?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),Ot(r,"textPosition")&&(i.position=r.textPosition),Ot(r,"textOffset")&&(i.offset=r.textOffset),Ot(r,"textRotation")&&(i.rotation=r.textRotation),Ot(r,"textDistance")&&(i.distance=r.textDistance)}return uN(o,n),k(o.rich,function(l){uN(l,l)}),{textConfig:i,textContent:a}}function uN(n,e){e&&(e.font=e.textFont||e.font,Ot(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),Ot(e,"textAlign")&&(n.align=e.textAlign),Ot(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),Ot(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),Ot(e,"textWidth")&&(n.width=e.textWidth),Ot(e,"textHeight")&&(n.height=e.textHeight),Ot(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),Ot(e,"textPadding")&&(n.padding=e.textPadding),Ot(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),Ot(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),Ot(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),Ot(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),Ot(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),Ot(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),Ot(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}var W4={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},cN=Xt(W4);Ua(ts,function(n,e){return n[e]=1,n},{});ts.join(", ");var m_=["","style","shape","extra"],Wf=In();function iR(n,e,t,r,i){var a=n+"Animation",o=qC(n,r,i)||{},s=Wf(e).userDuring;return o.duration>0&&(o.during=s?at(jhe,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),De(o,t[a]),o}function CM(n,e,t,r){r=r||{};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Wf(n),u=e.style;l.userDuring=e.during;var c={},h={};if(qhe(n,e,h),fN("shape",e,h),fN("extra",e,h),!a&&s&&(Khe(n,e,c),hN("shape",n,e,c),hN("extra",n,e,c),Qhe(n,e,u,c)),h.style=u,Xhe(n,h,o),Jhe(n,e),s)if(a){var f={};k(m_,function(p){var y=p?e[p]:e;y&&y.enterFrom&&(p&&(f[p]=f[p]||{}),De(p?f[p]:f,y.enterFrom))});var d=iR("enter",n,e,t,i);d.duration>0&&n.animateFrom(f,d)}else Yhe(n,e,i||0,t,c);X4(n,e),u?n.dirty():n.markRedraw()}function X4(n,e){for(var t=Wf(n).leaveToProps,r=0;r0&&n.animateFrom(i,a)}}function Jhe(n,e){Ot(e,"silent")&&(n.silent=e.silent),Ot(e,"ignore")&&(n.ignore=e.ignore),n instanceof Gs&&Ot(e,"invisible")&&(n.invisible=e.invisible),n instanceof bn&&Ot(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var Lo={},Zhe={setTransform:function(n,e){return Lo.el[n]=e,this},getTransform:function(n){return Lo.el[n]},setShape:function(n,e){var t=Lo.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=Lo.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=Lo.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=Lo.el.style;if(e)return e[n]},setExtra:function(n,e){var t=Lo.el.extra||(Lo.el.extra={});return t[n]=e,this},getExtra:function(n){var e=Lo.el.extra;if(e)return e[n]}};function jhe(){var n=this,e=n.el;if(e){var t=Wf(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}Lo.el=e,r(Zhe)}}function hN(n,e,t,r){var i=t[n];if(i){var a=e[n],o;if(a){var s=t.transition,l=i.transition;if(l)if(!o&&(o=r[n]={}),Bc(l))De(o,a);else for(var u=$n(l),c=0;c=0){!o&&(o=r[n]={});for(var d=Xt(a),c=0;c=0)){var f=n.getAnimationStyleProps(),d=f?f.style:null;if(d){!a&&(a=r.style={});for(var p=Xt(t),u=0;us)return!0;if(o){var l=JE(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,i,a){},n.prototype.createPointerEl=function(e,t,r,i){var a=t.pointer;if(a){var o=rc(e).pointerEl=new Sx[a.type](dN(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,i){if(t.label){var a=rc(e).labelEl=new xn(dN(t.label));e.add(a),vN(a,i)}},n.prototype.updatePointerEl=function(e,t,r){var i=rc(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),r(i,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,i){var a=rc(e).labelEl;a&&(a.setStyle(t.label.style),r(a,{x:t.label.x,y:t.label.y}),vN(a,i))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=id(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Hs(u.event)},onmousedown:EM(this._onHandleDragMove,this,0,0),drift:EM(this._onHandleDragMove,this),ondragend:EM(this._onHandleDragEnd,this)}),r.add(i)),gN(i,t,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Ge(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,lg(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){pN(this._axisPointerModel,!t&&this._moveAnimation,this._handle,RM(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(RM(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(RM(i)),rc(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,i=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),bv(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function pN(n,e,t,r){J4(rc(t).lastProp,r)||(rc(t).lastProp=r,e?ur(t,r,n):(t.stopAnimation(),t.attr(r)))}function J4(n,e){if(pt(n)&&pt(e)){var t=!0;return k(e,function(r,i){t=t&&J4(n[i],r)}),!!t}else return n===e}function vN(n,e){n[e.get(["label","show"])?"show":"hide"]()}function RM(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function gN(n,e,t){var r=e.get("z"),i=e.get("zlevel");n&&n.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),i!=null&&(a.zlevel=i),a.silent=t)})}const Z4=nfe;function j4(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function K4(n,e,t,r,i){var a=t.get("value"),o=q4(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=ld(s.get("padding")||0),u=s.getFont(),c=rg(o,u),h=i.position,f=c.width+l[1]+l[3],d=c.height+l[0]+l[2],p=i.align;p==="right"&&(h[0]-=f),p==="center"&&(h[0]-=f/2);var y=i.verticalAlign;y==="bottom"&&(h[1]-=d),y==="middle"&&(h[1]-=d/2),rfe(h,f,d,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),n.label={x:h[0],y:h[1],style:pr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function rfe(n,e,t,r){var i=r.getWidth(),a=r.getHeight();n[0]=Math.min(n[0]+e,i)-e,n[1]=Math.min(n[1]+t,a)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function q4(n,e,t,r,i){n=e.scale.parse(n);var a=e.scale.getLabel({value:n},{precision:i.precision}),o=i.formatter;if(o){var s={value:XE(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};k(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),Ze(o)?a=o.replace("{value}",a):Tt(o)&&(a=o(s))}return a}function Q4(n,e,t){var r=Ga();return eu(r,r,t.rotation),Us(r,r,t.position),lo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function ife(n,e,t,r,i,a){var o=Kl.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),K4(e,r,i,a,{position:Q4(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function $4(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function afe(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function mN(n,e,t,r,i,a){return{cx:n,cy:e,r0:t,r,startAngle:i,endAngle:a,clockwise:!0}}var ofe=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=yN(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=j4(a),d=sfe[u](s,h,c);d.style=f,t.graphicKey=d.type,t.pointer=d}var p=Ub(l.model,i);ife(r,t,p,i,a,o)},e.prototype.getHandleTransform=function(t,r,i){var a=Ub(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Q4(r.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=yN(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,h=[t.x,t.y];h[c]+=r[c],h[c]=Math.min(l[1],h[c]),h[c]=Math.max(l[0],h[c]);var f=(u[1]+u[0])/2,d=[f,f];d[c]=h[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:d,tooltipOption:p[c]}},e}(Z4);function yN(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var sfe={line:function(n,e,t){var r=$4([e,t[0]],[e,t[1]],_N(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:afe([e-r/2,t[0]],[r,i],_N(n))}}};function _N(n){return n.dim==="x"?0:1}const lfe=ofe;var ufe=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(an);const cfe=ufe;var Bs=In(),hfe=k;function eV(n,e,t){if(!sn.node){var r=e.getZr();Bs(r).records||(Bs(r).records={}),ffe(r,e);var i=Bs(r).records[n]||(Bs(r).records[n]={});i.handler=t}}function ffe(n,e){if(Bs(n).initialized)return;Bs(n).initialized=!0,t("click",on(xN,"click")),t("mousemove",on(xN,"mousemove")),t("globalout",pfe);function t(r,i){n.on(r,function(a){var o=vfe(e);hfe(Bs(n).records,function(s){s&&i(s,a,o.dispatchAction)}),dfe(o.pendings,e)})}}function dfe(n,e){var t=n.showTip.length,r=n.hideTip.length,i;t?i=n.showTip[t-1]:r&&(i=n.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function pfe(n,e,t){n.handler("leave",null,t)}function xN(n,e,t,r){e.handler(n,t,r)}function vfe(n){var e={showTip:[],hideTip:[]},t=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function Qb(n,e){if(!sn.node){var t=e.getZr(),r=(Bs(t).records||{})[n];r&&(Bs(t).records[n]=null)}}var gfe=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var a=r.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";eV("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){Qb("axisPointer",r)},e.prototype.dispose=function(t,r){Qb("axisPointer",r)},e.type="axisPointer",e}(er);const mfe=gfe;function tV(n,e){var t=[],r=n.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=kc(a,n);if(o==null||o<0||Ge(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,f=u.dim,d=h==="x"||h==="radius"?1:0,p=a.mapDimension(f),y=[];y[d]=a.get(p,o),y[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(y)||[]}else t=l.dataToPoint(a.getValues(He(l.dimensions,function(v){return a.mapDimension(v)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var SN=In();function yfe(n,e,t){var r=n.currTrigger,i=[n.x,n.y],a=n,o=n.dispatchAction||at(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){by(i)&&(i=tV({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=by(i),u=a.axesInfo,c=s.axesInfo,h=r==="leave"||by(i),f={},d={},p={list:[],map:{}},y={showPointer:on(xfe,d),showTooltip:on(Sfe,p)};k(s.coordSysMap,function(v,x){var S=l||v.containPoint(i);k(s.coordSysAxesInfo[x],function(A,T){var w=A.axis,C=bfe(u,A);if(!h&&S&&(!u||C)){var P=C&&C.value;P==null&&!l&&(P=w.pointToData(i)),P!=null&&AN(A,P,y,!1,f)}})});var g={};return k(c,function(v,x){var S=v.linkGroup;S&&!d[x]&&k(S.axesInfo,function(A,T){var w=d[T];if(A!==v&&w){var C=w.value;S.mapper&&(C=v.axis.scale.parse(S.mapper(C,MN(A),MN(v)))),g[v.key]=C}})}),k(g,function(v,x){AN(c[x],v,y,!0,f)}),Afe(d,c,f),Mfe(p,i,n,o),wfe(c,o,t),f}}function AN(n,e,t,r,i){var a=n.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=_fe(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&De(i,s[0]),!r&&n.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function _fe(n,e){var t=e.axis,r=t.dim,i=n,a=[],o=Number.MAX_VALUE,s=-1;return k(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),h,f;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,n,t);f=d.dataIndices,h=d.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;h=l.getData().get(c[0],f[0])}if(!(h==null||!isFinite(h))){var p=n-h,y=Math.abs(p);y<=o&&((y=0&&s<0)&&(o=y,s=p,i=h,a.length=0),k(f,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function xfe(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function Sfe(n,e,t,r){var i=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Dv(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Afe(n,e,t){var r=t.axesInfo=[];k(e,function(i,a){var o=i.axisPointerModel.option,s=n[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function Mfe(n,e,t,r){if(by(e)||!n.list.length){r({type:"hideTip"});return}var i=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:n.list})}function wfe(n,e,t){var r=t.getZr(),i="axisPointerLastHighlights",a=SN(r)[i]||{},o=SN(r)[i]={};k(n,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&k(h.seriesDataIndices,function(f){var d=f.seriesIndex+" | "+f.dataIndex;o[d]=f})});var s=[],l=[];k(a,function(u,c){!o[c]&&l.push(u)}),k(o,function(u,c){!a[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function bfe(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function MN(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function by(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function aR(n){hg.registerAxisPointerClass("CartesianAxisPointer",lfe),n.registerComponentModel(cfe),n.registerComponentView(mfe),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Ge(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=Qle(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},yfe)}function Tfe(n){Hr(due),Hr(aR)}var Cfe=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),h=s.dataToCoord(r),f=a.get("type");if(f&&f!=="none"){var d=j4(a),p=Rfe[f](s,l,h,c);p.style=d,t.graphicKey=p.type,t.pointer=p}var y=a.get(["label","margin"]),g=Efe(r,i,a,l,y);K4(t,i,a,o,g)},e}(Z4);function Efe(n,e,t,r,i){var a=e.axis,o=a.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,h;if(a.dim==="radius"){var f=Ga();eu(f,f,s),Us(f,f,[r.cx,r.cy]),u=lo([o,-i],f);var d=e.getModel("axisLabel").get("rotate")||0,p=Kl.innerTextLayout(s,d*Math.PI/180,-1);c=p.textAlign,h=p.textVerticalAlign}else{var y=l[1];u=r.coordToPoint([y+i,o]);var g=r.cx,v=r.cy;c=Math.abs(u[0]-g)/y<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-v)/y<.3?"middle":u[1]>v?"top":"bottom"}return{position:u,align:c,verticalAlign:h}}var Rfe={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:$4(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var i=Math.max(1,n.getBandWidth()),a=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:mN(e.cx,e.cy,r[0],r[1],(-t-i/2)*a,(-t+i/2)*a)}:{type:"Sector",shape:mN(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}};const Pfe=Cfe;var Dfe=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,i=this.ecModel;return i.eachComponent(t,function(a){a.getCoordSysModel()===this&&(r=a)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(an);const Ife=Dfe;var oR=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",br).models[0]},e.type="polarAxis",e}(an);Vr(oR,ug);var Lfe=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(oR),Bfe=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(oR),sR=function(n){we(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(yo);sR.prototype.dataToRadius=yo.prototype.dataToCoord;sR.prototype.radiusToData=yo.prototype.coordToData;const Ofe=sR;var Nfe=In(),lR=function(n){we(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),i=t.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=rg(s==null?"":s+"",r.getFont(),"center","top"),h=Math.max(c.height,7),f=h/u;isNaN(f)&&(f=1/0);var d=Math.max(0,Math.floor(f)),p=Nfe(t.model),y=p.lastAutoInterval,g=p.lastTickCount;return y!=null&&g!=null&&Math.abs(y-d)<=1&&Math.abs(g-o)<=1&&y>d?d=y:(p.lastTickCount=o,p.lastAutoInterval=d),d},e}(yo);lR.prototype.dataToAngle=yo.prototype.dataToCoord;lR.prototype.angleToData=yo.prototype.coordToData;const Ffe=lR;var nV=["radius","angle"],kfe=function(){function n(e){this.dimensions=nV,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Ofe,this._angleAxis=new Ffe,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===e&&t.push(r),i.scale.type===e&&t.push(i),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,i=Math.cos(r)*t+this.cx,a=-Math.sin(r)*t+this.cy;return[i,a]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var i=e.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,h=this.r,f=this.r0;return c<=h*h&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var i=wN(t);return i===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var i=wN(t);return i===this?this.pointToData(r):null},n}();function wN(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const Ufe=kfe;function Gfe(n,e,t){var r=e.get("center"),i=t.getWidth(),a=t.getHeight();n.cx=Lt(r[0],i),n.cy=Lt(r[1],a);var o=n.getRadiusAxis(),s=Math.min(i,a)/2,l=e.get("radius");l==null?l=[0,"100%"]:Ge(l)||(l=[0,l]);var u=[Lt(l[0],s),Lt(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function zfe(n,e){var t=this,r=t.getAngleAxis(),i=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();k(d_(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),k(d_(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Hf(r.scale,r.model),Hf(i.scale,i.model),r.type==="category"&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function Hfe(n){return n.mainType==="angleAxis"}function bN(n,e){if(n.type=e.get("type"),n.scale=Vx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Hfe(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Vfe={dimensions:nV,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,i){var a=new Ufe(i+"");a.update=zfe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");bN(o,l),bN(s,u),Gfe(a,r,e),t.push(a),r.coordinateSystem=a,a.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",br).models[0];r.coordinateSystem=i.coordinateSystem}}),t}};const Wfe=Vfe;var Xfe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function j0(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),i=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function K0(n){var e=n.getRadiusAxis();return e.inverse?0:1}function TN(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Yfe=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=He(i.getViewLabels(),function(c){c=mt(c);var h=i.scale,f=h.type==="ordinal"?h.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(f),c});TN(u),TN(s),k(Xfe,function(c){t.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&Jfe[c](this.group,t,a,s,l,o,u)},this)}},e.type="angleAxis",e}(hg),Jfe={axisLine:function(n,e,t,r,i,a){var o=e.getModel(["axisLine","lineStyle"]),s=K0(t),l=s?0:1,u;a[l]===0?u=new co({shape:{cx:t.cx,cy:t.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new ag({shape:{cx:t.cx,cy:t.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,i,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[K0(t)],u=He(r,function(c){return new wi({shape:j0(t,[l,l+s],c.coord)})});n.add(Oa(u,{style:bt(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,i,a){if(i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[K0(t)],c=[],h=0;hv?"left":"right",A=Math.abs(g[1]-x)/y<.3?"middle":g[1]>x?"top":"bottom";if(s&&s[p]){var T=s[p];pt(T)&&T.textStyle&&(d=new jn(T.textStyle,l,l.ecModel))}var w=new xn({silent:Kl.isLabelSilent(e),style:pr(d,{x:g[0],y:g[1],fill:d.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:S,verticalAlign:A})});if(n.add(w),c){var C=Kl.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=h.rawLabel,tn(w).eventData=C}},this)},splitLine:function(n,e,t,r,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h=0?"p":"n",U=C;T&&(r[c][I]||(r[c][I]={p:C,n:C}),U=r[c][I][O]);var F=void 0,z=void 0,X=void 0,ne=void 0;if(p.dim==="radius"){var H=p.dataToCoord(R)-C,j=l.dataToCoord(I);Math.abs(H)=ne})}}})}function nde(n){var e={};k(n,function(r,i){var a=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=iV(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),h=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=h.stacks;e[l]=h;var d=rV(r);f[d]||h.autoWidthCount++,f[d]=f[d]||{width:0,maxWidth:0};var p=Lt(r.get("barWidth"),c),y=Lt(r.get("barMaxWidth"),c),g=r.get("barGap"),v=r.get("barCategoryGap");p&&!f[d].width&&(p=Math.min(h.remainedWidth,p),f[d].width=p,h.remainedWidth-=p),y&&(f[d].maxWidth=y),g!=null&&(h.gap=g),v!=null&&(h.categoryGap=v)});var t={};return k(e,function(r,i){t[i]={};var a=r.stacks,o=r.bandWidth,s=Lt(r.categoryGap,o),l=Lt(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),k(a,function(y,g){var v=y.maxWidth;v&&v+r.start.y&&(p=p+"-"+r.end.y);var y=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:p},v=this._formatterLabel(y,g),x=new xn({z2:30,style:pr(o,{text:v})});x.attr(this._yearTextPositionControl(x,d[l],i,l,s)),a.add(x)}},e.prototype._monthTextPositionControl=function(t,r,i,a,o){var s="left",l="top",u=t[0],c=t[1];return i==="horizontal"?(c=c+o,r&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,i,a){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||Ze(s))&&(s&&(r=yb(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,d=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",y=0;y=i.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var i=Math.floor(t[1].time/PM)-Math.floor(t[0].time/PM)+1,a=new Date(t[0].time),o=a.getDate(),s=t[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-t[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-t[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+t[0].day+6)/7),h=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:c,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var i=this._getRangeInfo(r);if(e>i.weeks||e===0&&ti.lweek)return null;var a=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(i){var a=new n(i);r.push(a),i.coordinateSystem=a}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function EN(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const fde=hde;function dde(n){n.registerComponentModel(lde),n.registerComponentView(cde),n.registerCoordinateSystem("calendar",fde)}function pde(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function RN(n,e){var t;return k(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function vde(n,e,t){var r=De({},t),i=n[e],a=t.$action||"merge";a==="merge"?i?(Nt(i,r,!0),Zl(i,r,{ignoreSize:!0}),iH(t,i),q0(t,i),q0(t,i,"shape"),q0(t,i,"style"),q0(t,i,"extra"),t.clipPath=i.clipPath):n[e]=r:a==="replace"?n[e]=r:a==="remove"&&i&&(n[e]=null)}var aV=["transition","enterFrom","leaveTo"],gde=aV.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function q0(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?aV:gde,i=0;i=0;c--){var h=i[c],f=ri(h.id,null),d=f!=null?o.get(f):null;if(d){var p=d.parent,v=Pa(p),x=p===a?{width:s,height:l}:{width:v.width,height:v.height},S={},A=_E(d,h,x,null,{hv:h.hv,boundingMode:h.bounding},S);if(!Pa(d).isNew&&A){for(var T=h.transition,w={},C=0;C=0)?w[P]=E:d[P]=E}ur(d,w,t,0)}else d.attr(S)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(i){Ty(i,Pa(i).option,r,t._lastGraphicModel)}),this._elMap=ft()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(er);function $b(n){var e=Ot(PN,n)?PN[n]:$C(n),t=new e({});return Pa(t).type=n,t}function DN(n,e,t,r){var i=$b(t);return e.add(i),r.set(n,i),Pa(i).id=n,Pa(i).isNew=!0,i}function Ty(n,e,t,r){var i=n&&n.parent;i&&(n.type==="group"&&n.traverse(function(a){Ty(a,e,t,r)}),Whe(n,e,r),t.removeKey(Pa(n).id))}function IN(n,e,t,r){n.isGroup||k([["cursor",Gs.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(i){var a=i[0];Ot(e,a)?n[a]=Gt(e[a],i[1]):n[a]==null&&(n[a]=i[1])}),k(Xt(e),function(i){if(i.indexOf("on")===0){var a=e[i];n[i]=Tt(a)?a:null}}),Ot(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function xde(n){return n=De({},n),k(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(rH),function(e){delete n[e]}),n}function Sde(n,e,t){var r=tn(n).eventData;!n.silent&&!n.ignore&&!r&&(r=tn(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function Ade(n){n.registerComponentModel(yde),n.registerComponentView(_de),n.registerPreprocessor(function(e){var t=e.graphic;Ge(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var LN=["x","y","radius","angle","single"],Mde=["cartesian2d","polar","singleAxis"];function wde(n){var e=n.get("coordinateSystem");return en(Mde,e)>=0}function Dl(n){return n+"Axis"}function bde(n,e){var t=ft(),r=[],i=ft();n.eachComponent({mainType:"dataZoom",query:e},function(c){i.get(c.uid)||s(c)});var a;do a=!1,n.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),r.push(c),u(c)}function l(c){var h=!1;return c.eachTargetAxis(function(f,d){var p=t.get(f);p&&p[d]&&(h=!0)}),h}function u(c){c.eachTargetAxis(function(h,f){(t.get(h)||t.set(h,[]))[f]=!0})}return r}function oV(n){var e=n.ecModel,t={infoList:[],infoMap:ft()};return n.eachTargetAxis(function(r,i){var a=e.getComponent(Dl(r),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(a)}}}),t}var DM=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Tde=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,i){var a=BN(t);this.settledOption=a,this.mergeDefaultAndTheme(t,i),this._doInit(a)},e.prototype.mergeOption=function(t){var r=BN(t);Nt(this.option,t,!0),Nt(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;k([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(r[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ft(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return k(LN,function(i){var a=this.getReferringComponents(Dl(i),Wee);if(a.specified){r=!0;var o=new DM;k(a.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var i=this.ecModel,a=!0;if(a){var o=r==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var h=u[0];if(h){var f=new DM;if(f.add(h.componentIndex),t.set(c,f),a=!1,c==="x"||c==="y"){var d=h.getReferringComponents("grid",br).models[0];d&&k(u,function(p){h.componentIndex!==p.componentIndex&&d===p.getReferringComponents("grid",br).models[0]&&f.add(p.componentIndex)})}}}a&&k(LN,function(u){if(a){var c=i.findComponents({mainType:Dl(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var h=new DM;h.add(c[0].componentIndex),t.set(u,h),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,i=this.get("rangeMode");k([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":i?r[o]=i[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,i){t==null&&(t=this.ecModel.getComponent(Dl(r),i))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(i,a){k(i.indexList,function(o){t.call(r,a,o)})})},e.prototype.getAxisProxy=function(t,r){var i=this.getAxisModel(t,r);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[r])return this.ecModel.getComponent(Dl(t),r)},e.prototype.setRawRange=function(t){var r=this.option,i=this.settledOption;k([["start","startValue"],["end","endValue"]],function(a){(t[a[0]]!=null||t[a[1]]!=null)&&(r[a[0]]=i[a[0]]=t[a[0]],r[a[1]]=i[a[1]]=t[a[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;k(["start","startValue","end","endValue"],function(i){r[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(S&&!A&&!T)return!0;S&&(g=!0),A&&(p=!0),T&&(y=!0)}return g&&p&&y})}else nf(c,function(d){if(a==="empty")l.setData(u=u.map(d,function(y){return s(y)?y:NaN}));else{var p={};p[d]=o,u.selectRange(p)}});nf(c,function(d){u.setApproximateExtent(o,d)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;nf(["min","max"],function(i){var a=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Gn(r[0]+o,r,[0,100],!0):a!=null&&(o=Gn(a,[0,100],r,!0)-r[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var i=FC(r,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;t[0]!==0&&a.setDeterminedMinMax("min",+r[0].toFixed(i)),t[1]!==100&&a.setDeterminedMinMax("max",+r[1].toFixed(i)),a.freeze()}},n}();function Lde(n,e,t){var r=[1/0,-1/0];nf(t,function(o){Ele(r,o.getData(),e)});var i=n.getAxisModel(),a=W5(i.axis.scale,i,r).calculate();return[a.min,a.max]}const Bde=Ide;var Ode={getTargetSeries:function(n){function e(i){n.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=n.getComponent(Dl(o),s);i(o,s,l,a)})})}e(function(i,a,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Bde(i,a,s,n),t.push(o.__dzAxisProxy))});var r=ft();return k(t,function(i){k(i.getTargetSeriesModels(),function(a){r.set(a.uid,a)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).reset(t)}),t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),a=r.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const Nde=Ode;function Fde(n){n.registerAction("dataZoom",function(e,t){var r=bde(t,e);k(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var NN=!1;function cR(n){NN||(NN=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,Nde),Fde(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function kde(n){n.registerComponentModel(Ede),n.registerComponentView(Dde),cR(n)}var io=function(){function n(){}return n}(),sV={};function fp(n,e){sV[n]=e}function lV(n){return sV[n]}var Ude=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;k(this.option.feature,function(r,i){var a=lV(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(t)),Nt(r,a.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(an);const Gde=Ude;function zde(n,e,t){var r=e.getBoxLayoutParams(),i=e.get("padding"),a={width:t.getWidth(),height:t.getHeight()},o=Ri(r,a,i);Pc(e.get("orient"),n,e.get("itemGap"),o.width,o.height),_E(n,r,a,i)}function uV(n,e){var t=ld(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new _n({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var Hde=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,a){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),h=[];k(u,function(p,y){h.push(y)}),new rE(this._featureNames||[],h).add(f).update(f).remove(on(f,null)).execute(),this._featureNames=h;function f(p,y){var g=h[p],v=h[y],x=u[g],S=new jn(x,t,t.ecModel),A;if(a&&a.newTitle!=null&&a.featureName===g&&(x.title=a.newTitle),g&&!v){if(Vde(g))A={onclick:S.option.onclick,featureName:g};else{var T=lV(g);if(!T)return;A=new T}c[g]=A}else if(A=c[v],!A)return;A.uid=sd("toolbox-feature"),A.model=S,A.ecModel=r,A.api=i;var w=A instanceof io;if(!g&&v){w&&A.dispose&&A.dispose(r,i);return}if(!S.get("show")||w&&A.unusable){w&&A.remove&&A.remove(r,i);return}d(S,A,g),S.setIconStatus=function(C,P){var E=this.option,R=this.iconPaths;E.iconStatus=E.iconStatus||{},E.iconStatus[C]=P,R[C]&&(P==="emphasis"?kf:Uf)(R[C])},A instanceof io&&A.render&&A.render(S,r,i,a)}function d(p,y,g){var v=p.getModel("iconStyle"),x=p.getModel(["emphasis","iconStyle"]),S=y instanceof io&&y.getIcons?y.getIcons():p.get("icon"),A=p.get("title")||{},T,w;Ze(S)?(T={},T[g]=S):T=S,Ze(A)?(w={},w[g]=A):w=A;var C=p.iconPaths={};k(T,function(P,E){var R=id(P,{},{x:-s/2,y:-s/2,width:s,height:s});R.setStyle(v.getItemStyle());var I=R.ensureState("emphasis");I.style=x.getItemStyle();var O=new xn({style:{text:w[E],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null},ignore:!0});R.setTextContent(O),ad({el:R,componentModel:t,itemName:E,formatterParamsExtra:{title:w[E]}}),R.__title=w[E],R.on("mouseover",function(){var U=x.getItemStyle(),F=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";O.setStyle({fill:x.get("textFill")||U.fill||U.stroke||"#000",backgroundColor:x.get("textBackgroundColor")}),R.setTextConfig({position:x.get("textPosition")||F}),O.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",E])!=="emphasis"&&i.leaveEmphasis(this),O.hide()}),(p.get(["iconStatus",E])==="emphasis"?kf:Uf)(R),o.add(R),R.on("click",at(y.onclick,y,r,i,E)),C[E]=R})}zde(o,t,i),o.add(uV(o.getBoundingRect(),t)),l||o.eachChild(function(p){var y=p.__title,g=p.ensureState("emphasis"),v=g.textConfig||(g.textConfig={}),x=p.getTextContent(),S=x&&x.ensureState("emphasis");if(S&&!Tt(S)&&y){var A=S.style||(S.style={}),T=rg(y,xn.makeFont(A)),w=p.x+o.x,C=p.y+o.y+s,P=!1;C+T.height>i.getHeight()&&(v.position="top",P=!0);var E=P?-5-T.height:s+10;w+T.width/2>i.getWidth()?(v.position=["100%",E],A.align="right"):w-T.width/2<0&&(v.position=[0,E],A.align="left")}})},e.prototype.updateView=function(t,r,i,a){k(this._features,function(o){o instanceof io&&o.updateView&&o.updateView(o.model,r,i,a)})},e.prototype.remove=function(t,r){k(this._features,function(i){i instanceof io&&i.remove&&i.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){k(this._features,function(i){i instanceof io&&i.dispose&&i.dispose(t,r)})},e.type="toolbox",e}(er);function Vde(n){return n.indexOf("my")===0}const Wde=Hde;var Xde=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var i=this.model,a=i.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=sn.browser;if(Tt(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),d=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];d&&(p=window.atob(p));var y=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,v=new Uint8Array(g);g--;)v[g]=p.charCodeAt(g);var x=new Blob([v]);window.navigator.msSaveOrOpenBlob(x,y)}else{var S=document.createElement("iframe");document.body.appendChild(S);var A=S.contentWindow,T=A.document;T.open("image/svg+xml","replace"),T.write(p),T.close(),A.focus(),T.execCommand("SaveAs",!0,y),document.body.removeChild(S)}}else{var w=i.get("lang"),C='',P=window.open();P.document.write(C),P.document.title=a}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(io);const Yde=Xde;var FN="__ec_magicType_stack__",Jde=[["line","bar"],["stack"]],Zde=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),i={};return k(t.get("type"),function(a){r[a]&&(i[a]=r[a])}),i},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,i){var a=this.model,o=a.get(["seriesIndex",i]);if(kN[i]){var s={series:[]},l=function(h){var f=h.subType,d=h.id,p=kN[i](f,d,h,a);p&&(bt(p,h.option),s.series.push(p));var y=h.coordinateSystem;if(y&&y.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=y.getAxesByScale("ordinal")[0];if(g){var v=g.dim,x=v+"Axis",S=h.getReferringComponents(x,br).models[0],A=S.componentIndex;s[x]=s[x]||[];for(var T=0;T<=A;T++)s[x][A]=s[x][A]||{};s[x][A].boundaryGap=i==="bar"}}};k(Jde,function(h){en(h,i)>=0&&k(h,function(f){a.setIconStatus(f,"normal")})}),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Nt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(io),kN={line:function(n,e,t,r){if(n==="bar")return Nt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Nt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var i=t.get("stack")===FN;if(n==="line"||n==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),Nt({id:e,stack:i?"":FN},r.get(["option","stack"])||{},!0)}};mo({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const jde=Zde;var Yx=new Array(60).join("-"),Xf=" ";function Kde(n){var e={},t=[],r=[];return n.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function qde(n){var e=[];return k(n,function(t,r){var i=t.categoryAxis,a=t.valueAxis,o=a.dim,s=[" "].concat(He(t.series,function(d){return d.name})),l=[i.model.getCategories()];k(t.series,function(d){var p=d.getRawData();l.push(d.getRawData().mapArray(p.mapDimension(o),function(y){return y}))});for(var u=[s.join(Xf)],c=0;c=0)return!0}var RT=new RegExp("["+ed+"]+","g");function age(n){for(var e=n.split(/\n+/g),t=V_(e.shift()).split(RT),r=[],i=Ve(t,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=t[a];if(o[i])break}if(a<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function fge(n){var e=GR(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return rW(t,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){r[a]=i;break}}),r}function dge(n){iW(n).snapshots=null}function pge(n){return GR(n).length}function GR(n){var e=iW(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var vge=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){dge(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(ao);yo({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const gge=vge;var mge=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],yge=function(){function n(e,t,r){var i=this;this._targetInfoList=[];var a=MN(t,e);U(_ge,function(o,s){(!r||!r.include||nn(r.include,s)>=0)&&o(a,i._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,i,a){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var o=nw[r.brushType](0,a,i);r.__rangeOffset={offset:CN[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){U(e,function(i){var a=this.findTargetInfo(i,t);a&&a!==!0&&U(a.coordSyses,function(o){var s=nw[i.brushType](1,o,i.range,!0);r(i,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){U(e,function(r){var i=this.findTargetInfo(r,t);if(r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var a=nw[r.brushType](0,i.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?CN[r.brushType](a.values,o.offset,xge(a.xyMinMax,o.xyMinMax)):a.values}},this)},n.prototype.makePanelOpts=function(e,t){return Ve(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:EV(i),isTargetByCursor:PV(i,e,r.coordSysModel),getLinearBrushOtherExtent:RV(i)}})},n.prototype.controlSeries=function(e,t,r){var i=this.findTargetInfo(e,r);return i===!0||i&&nn(i.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,i=MN(t,e),a=0;an[1]&&n.reverse(),n}function MN(n,e){return $p(n,e,{includeMainTypes:mge})}var _ge={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,i=n.gridModels,a=gt(),o={},s={};!t&&!r&&!i||(U(t,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),U(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),U(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];U(u.getCartesians(),function(h,f){(nn(t,h.getAxis("x").model)>=0||nn(r,h.getAxis("y").model)>=0)&&c.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:bN.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){U(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:bN.geo})})}},wN=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,i=n.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],bN={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Vl(n)),e}},nw={lineX:ln(TN,0),lineY:ln(TN,1),rect:function(n,e,t,r){var i=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),a=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[PT([i[0],a[0]]),PT([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var i=[[1/0,-1/0],[1/0,-1/0]],a=Ve(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function TN(n,e,t,r){var i=t.getAxis(["x","y"][n]),a=PT(Ve([0,1],function(s){return e?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),o=[];return o[n]=a,o[1-n]=[NaN,NaN],{values:a,xyMinMax:o}}var CN={lineX:ln(EN,0),lineY:ln(EN,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return Ve(n,function(r,i){return[r[0]-t[0]*e[i][0],r[1]-t[1]*e[i][1]]})}};function EN(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function xge(n,e){var t=RN(n),r=RN(e),i=[t[0]/r[0],t[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function RN(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const aW=yge;var DT=U,Sge=Vne("toolbox-dataZoom_"),Age=function(n){be(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,a){this._brushController||(this._brushController=new CV(i.getZr()),this._brushController.on("brush",ut(this._onBrush,this)).mount()),bge(t,r,this,a,i),wge(t,r)},e.prototype.onclick=function(t,r,i){Mge[i].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new aW(zR(this.model),a,{include:["grid"]});o.matchOutputRanges(r,a,function(u,c,h){if(h.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",h,c[0]),s("y",h,c[1])):s({lineX:"x",lineY:"y"}[f],h,c)}}),hge(a,i),this._dispatchZoomAction(i);function s(u,c,h){var f=c.getAxis(u),d=f.model,p=l(u,d,a),y=p.findRepresentativeAxisProxy(d).getMinMaxSpan();(y.minValueSpan!=null||y.maxValueSpan!=null)&&(h=rh(0,h.slice(),f.scale.getExtent(),0,y.minValueSpan,y.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,c,h){var f;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var p=d.getAxisModel(u,c.componentIndex);p&&(f=d)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];DT(t,function(i,a){r.push(Mt(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(ao),Mge={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(fge(this.ecModel))}};function zR(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function wge(n,e){n.setIconStatus("back",pge(e)>1?"emphasis":"normal")}function bge(n,e,t,r,i){var a=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(a=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=a,n.setIconStatus("zoom",a?"emphasis":"normal");var o=new aW(zR(n),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}gle("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),i=[],a=zR(r),o=$p(n,a);DT(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),DT(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var h=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:Sge+u+h};f[c]=h,i.push(f)}return i});const Tge=Age;function Cge(n){n.registerComponentModel(Wve),n.registerComponentView(Jve),Ap("saveAsImage",Kve),Ap("magicType",Qve),Ap("dataView",cge),Ap("dataZoom",Tge),Ap("restore",gge),Wr(Hve)}var Ege=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(sn);const Rge=Ege;function oW(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function sW(n){if(un.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=o+i,f=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2)*100)/100;s+=";"+a+":-"+d+"px";var p=e+" solid "+i+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Fge(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,i="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,i+=un.transformSupported?","+HR+r:",left"+r+",top"+r),Ige+":"+i}function PN(n,e,t){var r=n.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!un.transformSupported)return t?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=un.transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return t?"top:0;left:0;"+HR+":"+o+";":[["top",0],["left",0],[lW,o]]}function Nge(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var i=n.get("textShadowColor"),a=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return i&&a&&e.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),U(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function kge(n,e,t){var r=[],i=n.get("transitionDuration"),a=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),h=s5(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&i&&r.push(Fge(i,t)),a&&r.push("background-color:"+a),U(["width","color","radius"],function(d){var p="border-"+d,y=XE(p),g=n.get(y);g!=null&&r.push(p+":"+g+(d==="color"?"":"px"))}),r.push(Nge(c)),h!=null&&r.push("padding:"+md(h).join("px ")+"px"),r.join(";")+";"}function DN(n,e,t,r,i){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&nae(n,o,document.body,r,i)}else{n[0]=r,n[1]=i;var s=a&&a.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var Uge=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,un.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;DN(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();Ca(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Dge(t,"position"),i=t.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative");var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,a=this._styleCoord;r.innerHTML?i.cssText=Lge+kge(e,!this._firstShow,this._longHide)+PN(a[0],a[1],!0)+("border-color:"+Yc(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if($e(a)&&r.get("trigger")==="item"&&!oW(r)&&(s=Oge(r,i,a)),$e(e))o.innerHTML=e+s;else if(e){o.innerHTML="",He(e)||(e=[e]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,i=this._api,a=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,r,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,i,a){if(!(a.from===this.uid||un.node||!i.getDom())){var o=BN(a,i);this._ticket="";var s=a.dataByCoordSys,l=Jge(a,r,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=Vge;c.x=a.x,c.y=a.y,c.update(),rn(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,i,a))return;var h=JV(a,r),f=h.point[0],d=h.point[1];f!=null&&d!=null&&this._tryShow({offsetX:f,offsetY:d,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(BN(a,i))},e.prototype._manuallyAxisShowTip=function(t,r,i,a){var o=a.seriesIndex,s=a.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),h=Mp([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,r){var i=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){this._lastDataByCoordSys=null;var s,l;bc(i,function(u){if(rn(u).dataIndex!=null)return s=u,!0;if(rn(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var i=t.get("showDelay");r=ut(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(t,r){var i=this._ecModel,a=this._tooltipModel,o=[r.offsetX,r.offsetY],s=Mp([r.tooltipOption],a),l=this._renderMode,u=[],c=rs("section",{blocks:[],noHeader:!0}),h=[],f=new cM;U(t,function(x){U(x.dataByAxis,function(S){var A=i.getComponent(S.axisDim+"Axis",S.axisIndex),b=S.value;if(!(!A||b==null)){var w=WV(b,A.axis,i,S.seriesDataIndices,S.valueLabelOpt),C=rs("section",{header:w,noHeader:!Ua(w),sortBlocks:!0,blocks:[]});c.blocks.push(C),U(S.seriesDataIndices,function(P){var E=i.getSeriesByIndex(P.seriesIndex),R=P.dataIndexInside,D=E.getDataParams(R);if(!(D.dataIndex<0)){D.axisDim=S.axisDim,D.axisIndex=S.axisIndex,D.axisType=S.axisType,D.axisId=S.axisId,D.axisValue=xR(A.axis,{value:b}),D.axisValueLabel=w,D.marker=f.makeTooltipMarker("item",Yc(D.color),l);var B=uB(E.formatTooltip(R,!0,null)),k=B.frag;if(k){var N=Mp([E],a).get("valueFormatter");C.blocks.push(N?Oe({valueFormatter:N},k):k)}B.text&&h.push(B.text),u.push(D)}})}})}),c.blocks.reverse(),h.reverse();var d=r.position,p=s.get("order"),y=fB(c,f,l,p,i.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var g=l==="richText"?` +`),meta:e.meta}}function y_(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function epe(n){var e=n.slice(0,n.indexOf(` +`));if(e.indexOf(Xf)>=0)return!0}var eT=new RegExp("["+Xf+"]+","g");function tpe(n){for(var e=n.split(/\n+/g),t=y_(e.shift()).split(eT),r=[],i=He(t,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=t[a];if(o[i])break}if(a<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function lpe(n){var e=hR(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return cV(t,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){r[a]=i;break}}),r}function upe(n){hV(n).snapshots=null}function cpe(n){return hR(n).length}function hR(n){var e=hV(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var hpe=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){upe(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(io);mo({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const fpe=hpe;var dpe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ppe=function(){function n(e,t,r){var i=this;this._targetInfoList=[];var a=UN(t,e);k(vpe,function(o,s){(!r||!r.include||en(r.include,s)>=0)&&o(a,i._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,i,a){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var o=IM[r.brushType](0,a,i);r.__rangeOffset={offset:VN[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){k(e,function(i){var a=this.findTargetInfo(i,t);a&&a!==!0&&k(a.coordSyses,function(o){var s=IM[i.brushType](1,o,i.range,!0);r(i,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){k(e,function(r){var i=this.findTargetInfo(r,t);if(r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var a=IM[r.brushType](0,i.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?VN[r.brushType](a.values,o.offset,gpe(a.xyMinMax,o.xyMinMax)):a.values}},this)},n.prototype.makePanelOpts=function(e,t){return He(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:O4(i),isTargetByCursor:F4(i,e,r.coordSysModel),getLinearBrushOtherExtent:N4(i)}})},n.prototype.controlSeries=function(e,t,r){var i=this.findTargetInfo(e,r);return i===!0||i&&en(i.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,i=UN(t,e),a=0;an[1]&&n.reverse(),n}function UN(n,e){return kp(n,e,{includeMainTypes:dpe})}var vpe={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,i=n.gridModels,a=ft(),o={},s={};!t&&!r&&!i||(k(t,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),k(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),k(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];k(u.getCartesians(),function(h,f){(en(t,h.getAxis("x").model)>=0||en(r,h.getAxis("y").model)>=0)&&c.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:zN.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){k(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:zN.geo})})}},GN=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,i=n.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],zN={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(kl(n)),e}},IM={lineX:on(HN,0),lineY:on(HN,1),rect:function(n,e,t,r){var i=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),a=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[tT([i[0],a[0]]),tT([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var i=[[1/0,-1/0],[1/0,-1/0]],a=He(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function HN(n,e,t,r){var i=t.getAxis(["x","y"][n]),a=tT(He([0,1],function(s){return e?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),o=[];return o[n]=a,o[1-n]=[NaN,NaN],{values:a,xyMinMax:o}}var VN={lineX:on(WN,0),lineY:on(WN,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return He(n,function(r,i){return[r[0]-t[0]*e[i][0],r[1]-t[1]*e[i][1]]})}};function WN(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function gpe(n,e){var t=XN(n),r=XN(e),i=[t[0]/r[0],t[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function XN(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const fV=ppe;var nT=k,mpe=Uee("toolbox-dataZoom_"),ype=function(n){we(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,a){this._brushController||(this._brushController=new B4(i.getZr()),this._brushController.on("brush",at(this._onBrush,this)).mount()),Spe(t,r,this,a,i),xpe(t,r)},e.prototype.onclick=function(t,r,i){_pe[i].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new fV(fR(this.model),a,{include:["grid"]});o.matchOutputRanges(r,a,function(u,c,h){if(h.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",h,c[0]),s("y",h,c[1])):s({lineX:"x",lineY:"y"}[f],h,c)}}),spe(a,i),this._dispatchZoomAction(i);function s(u,c,h){var f=c.getAxis(u),d=f.model,p=l(u,d,a),y=p.findRepresentativeAxisProxy(d).getMinMaxSpan();(y.minValueSpan!=null||y.maxValueSpan!=null)&&(h=Kc(0,h.slice(),f.scale.getExtent(),0,y.minValueSpan,y.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,c,h){var f;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var p=d.getAxisModel(u,c.componentIndex);p&&(f=d)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];nT(t,function(i,a){r.push(mt(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(io),_pe={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(lpe(this.ecModel))}};function fR(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function xpe(n,e){n.setIconStatus("back",cpe(e)>1?"emphasis":"normal")}function Spe(n,e,t,r,i){var a=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(a=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=a,n.setIconStatus("zoom",a?"emphasis":"normal");var o=new fV(fR(n),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}foe("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),i=[],a=fR(r),o=kp(n,a);nT(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),nT(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var h=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:mpe+u+h};f[c]=h,i.push(f)}return i});const Ape=ype;function Mpe(n){n.registerComponentModel(Gde),n.registerComponentView(Wde),fp("saveAsImage",Yde),fp("magicType",jde),fp("dataView",ope),fp("dataZoom",Ape),fp("restore",fpe),Hr(kde)}var wpe=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(an);const bpe=wpe;function dV(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function pV(n){if(sn.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=o+i,f=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2)*100)/100;s+=";"+a+":-"+d+"px";var p=e+" solid "+i+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Ipe(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,i="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,i+=sn.transformSupported?","+dR+r:",left"+r+",top"+r),Epe+":"+i}function YN(n,e,t){var r=n.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!sn.transformSupported)return t?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=sn.transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return t?"top:0;left:0;"+dR+":"+o+";":[["top",0],["left",0],[vV,o]]}function Lpe(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var i=n.get("textShadowColor"),a=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return i&&a&&e.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),k(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Bpe(n,e,t){var r=[],i=n.get("transitionDuration"),a=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),h=pH(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&i&&r.push(Ipe(i,t)),a&&r.push("background-color:"+a),k(["width","color","radius"],function(d){var p="border-"+d,y=gE(p),g=n.get(y);g!=null&&r.push(p+":"+g+(d==="color"?"":"px"))}),r.push(Lpe(c)),h!=null&&r.push("padding:"+ld(h).join("px ")+"px"),r.join(";")+";"}function JN(n,e,t,r,i){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&Qne(n,o,document.body,r,i)}else{n[0]=r,n[1]=i;var s=a&&a.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var Ope=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,sn.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;JN(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();Ta(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Cpe(t,"position"),i=t.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative");var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,a=this._styleCoord;r.innerHTML?i.cssText=Rpe+Bpe(e,!this._firstShow,this._longHide)+YN(a[0],a[1],!0)+("border-color:"+Uc(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Ze(a)&&r.get("trigger")==="item"&&!dV(r)&&(s=Dpe(r,i,a)),Ze(e))o.innerHTML=e+s;else if(e){o.innerHTML="",Ge(e)||(e=[e]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,i=this._api,a=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,r,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,i,a){if(!(a.from===this.uid||sn.node||!i.getDom())){var o=KN(a,i);this._ticket="";var s=a.dataByCoordSys,l=Wpe(a,r,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=Upe;c.x=a.x,c.y=a.y,c.update(),tn(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,i,a))return;var h=tV(a,r),f=h.point[0],d=h.point[1];f!=null&&d!=null&&this._tryShow({offsetX:f,offsetY:d,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(KN(a,i))},e.prototype._manuallyAxisShowTip=function(t,r,i,a){var o=a.seriesIndex,s=a.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),h=dp([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,r){var i=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){this._lastDataByCoordSys=null;var s,l;yc(i,function(u){if(tn(u).dataIndex!=null)return s=u,!0;if(tn(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var i=t.get("showDelay");r=at(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(t,r){var i=this._ecModel,a=this._tooltipModel,o=[r.offsetX,r.offsetY],s=dp([r.tooltipOption],a),l=this._renderMode,u=[],c=ns("section",{blocks:[],noHeader:!0}),h=[],f=new GA;k(t,function(x){k(x.dataByAxis,function(S){var A=i.getComponent(S.axisDim+"Axis",S.axisIndex),T=S.value;if(!(!A||T==null)){var w=q4(T,A.axis,i,S.seriesDataIndices,S.valueLabelOpt),C=ns("section",{header:w,noHeader:!ka(w),sortBlocks:!0,blocks:[]});c.blocks.push(C),k(S.seriesDataIndices,function(P){var E=i.getSeriesByIndex(P.seriesIndex),R=P.dataIndexInside,I=E.getDataParams(R);if(!(I.dataIndex<0)){I.axisDim=S.axisDim,I.axisIndex=S.axisIndex,I.axisType=S.axisType,I.axisId=S.axisId,I.axisValue=XE(A.axis,{value:T}),I.axisValueLabel=w,I.marker=f.makeTooltipMarker("item",Uc(I.color),l);var O=bL(E.formatTooltip(R,!0,null)),U=O.frag;if(U){var F=dp([E],a).get("valueFormatter");C.blocks.push(F?De({valueFormatter:F},U):U)}O.text&&h.push(O.text),u.push(I)}})}})}),c.blocks.reverse(),h.reverse();var d=r.position,p=s.get("order"),y=EL(c,f,l,p,i.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var g=l==="richText"?` -`:"
",v=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,v,u,Math.random()+"",o[0],o[1],d,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,i){var a=this._ecModel,o=rn(r),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,h=o.dataType,f=u.getData(h),d=this._renderMode,p=t.positionDefault,y=Mp([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=y.get("trigger");if(!(g!=null&&g!=="item")){var v=u.getDataParams(c,h),x=new cM;v.marker=x.makeTooltipMarker("item",Yc(v.color),d);var S=uB(u.formatTooltip(c,!1,h)),A=y.get("order"),b=y.get("valueFormatter"),w=S.frag,C=w?fB(b?Oe({valueFormatter:b},w):w,x,d,A,a.get("useUTC"),y.get("textStyle")):S.text,P="item_"+u.name+"_"+c;this._showOrMove(y,function(){this._showTooltipContent(y,C,v,P,t.offsetX,t.offsetY,t.position,t.target,x)}),i({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,i){var a=rn(r),o=a.tooltipConfig,s=o.option||{};if($e(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var h=t.positionDefault,f=Mp(u,this._tooltipModel,h?{position:h}:null),d=f.get("content"),p=Math.random()+"",y=new cM;this._showOrMove(f,function(){var g=Mt(f.get("formatterParams")||{});this._showTooltipContent(f,d,g,p,t.offsetX,t.offsetY,t.position,r,y)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,i,a,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var d=r,p=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),y=p.color;if(f)if($e(f)){var g=t.ecModel.get("useUTC"),v=He(i)?i[0]:i,x=v&&v.axisType&&v.axisType.indexOf("time")>=0;d=f,x&&(d=wg(v.axisValue,d,g)),d=YE(d,i,!0)}else if(Dt(f)){var S=ut(function(A,b){A===this._ticket&&(h.setContent(b,c,t,y,l),this._updatePosition(t,l,o,s,h,i,u))},this);this._ticket=a,d=f(i,a,S)}else d=f;h.setContent(d,c,t,y,l),h.show(t,y),this._updatePosition(t,l,o,s,h,i,u)}},e.prototype._getNearestPoint=function(t,r,i,a){if(i==="axis"||He(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!He(r))return{color:a||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var h=o.getSize(),f=t.get("align"),d=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),Dt(r)&&(r=r([i,a],s,o.el,p,{viewSize:[u,c],contentSize:h.slice()})),He(r))i=Ft(r[0],u),a=Ft(r[1],c);else if(yt(r)){var y=r;y.width=h[0],y.height=h[1];var g=Di(y,{width:u,height:c});i=g.x,a=g.y,f=null,d=null}else if($e(r)&&l){var v=jge(r,p,h,t.get("borderWidth"));i=v[0],a=v[1]}else{var v=Xge(i,a,o,u,c,f?null:20,d?null:20);i=v[0],a=v[1]}if(f&&(i-=ON(f)?h[0]/2:f==="right"?h[0]:0),d&&(a-=ON(d)?h[1]/2:d==="bottom"?h[1]:0),oW(t)){var v=Yge(i,a,o,u,c);i=v[0],a=v[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===t.length;return o&&U(i,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},h=c.dataByAxis||[];o=o&&u.length===h.length,o&&U(u,function(f,d){var p=h[d]||{},y=f.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&y.length===g.length,o&&U(y,function(v,x){var S=g[x];o=o&&v.seriesIndex===S.seriesIndex&&v.dataIndex===S.dataIndex}),a&&U(f.seriesDataIndices,function(v){var x=v.seriesIndex,S=r[x],A=a[x];S&&A&&A.data!==S.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){un.node||!r.getDom()||(Hv(this,"_updatePosition"),this._tooltipContent.dispose(),CT("itemTooltip",r))},e.type="tooltip",e}(tr);function Mp(n,e,t){var r=e.ecModel,i;t?(i=new Kn(t,r,r),i=new Kn(e.option,i,r)):i=e;for(var a=n.length-1;a>=0;a--){var o=n[a];o&&(o instanceof Kn&&(o=o.get("tooltip",!0)),$e(o)&&(o={formatter:o}),o&&(i=new Kn(o,i,r)))}return i}function BN(n,e){return n.dispatchAction||ut(e.dispatchAction,e)}function Xge(n,e,t,r,i,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(n+l+a+2>r?n-=l+a:n+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[n,e]}function Yge(n,e,t,r,i){var a=t.getSize(),o=a[0],s=a[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,i)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function jge(n,e,t,r){var i=t[0],a=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+o;break;case"left":s=e.x-i-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function ON(n){return n==="center"||n==="middle"}function Jge(n,e,t){var r=mE(n).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var a=Sg(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=rn(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const Zge=Wge;function Kge(n){Wr(BR),n.registerComponentModel(Rge),n.registerComponentView(Zge),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Fr),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Fr)}var FN=U;function NN(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function kN(n,e,t){var r={};return FN(e,function(a){var o=r[a]=i();FN(n[a],function(s,l){if(Wi.isValidType(l)){var u={type:l,visual:s};t&&t(u,a),o[l]=new Wi(u),l==="opacity"&&(u=Mt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Wi(u))}})}),r;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function qge(n,e,t){var r;U(t,function(i){e.hasOwnProperty(i)&&NN(e[i])&&(r=!0)}),r&&U(t,function(i){e.hasOwnProperty(i)&&NN(e[i])?n[i]=Mt(e[i]):delete n[i]})}function $ge(n,e,t,r){var i={};return U(n,function(a){var o=Wi.prepareVisualTypes(e[a]);i[a]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(b){return e4(s,h,b)}function c(b,w){aue(s,h,b,w)}for(var h,f=s.getStore();(h=o.next())!=null;){var d=s.getRawDataItem(h);if(!(d&&d.visualMap===!1))for(var p=r!=null?f.get(l,h):h,y=t(p),g=e[y],v=i[y],x=0,S=v.length;x=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],i=t.axisType,a=this._names=[],o;i==="category"?(o=[],U(r,function(u,c){var h=ai(fd(u),""),f;yt(u)?(f=Mt(u),f.value=c):f=c,o.push(f),a.push(h)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new $x([{name:"value",type:s}],this);l.initData(o,a)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(sn);const UN=nme;var cW=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=ou(UN.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(UN);Xr(cW,QH.prototype);const rme=cW;var ime=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(tr);const ame=ime;var ome=function(n){be(e,n);function e(t,r,i,a){var o=n.call(this,t,r,i)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(_o);const sme=ome;var rw=Math.PI,GN=Ln(),lme=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,i){if(this.model=t,this.api=i,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return rs("nameValue",{noName:!0,value:c})},U(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,t)},this),this._renderAxisLabel(a,s,l,t),this._position(a,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var i=t.get(["label","position"]),a=t.get("orient"),o=cme(t,r),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:rw/2},h=a==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),d=f.get("show",!0),p=d?f.get("itemSize"):0,y=d?f.get("itemGap"):0,g=p+y,v=t.get(["label","rotate"])||0;v=v*rw/180;var x,S,A,b=f.get("position",!0),w=d&&f.get("showPlayBtn",!0),C=d&&f.get("showPrevBtn",!0),P=d&&f.get("showNextBtn",!0),E=0,R=h;b==="left"||b==="bottom"?(w&&(x=[0,0],E+=g),C&&(S=[E,0],E+=g),P&&(A=[R-p,0],R-=g)):(w&&(x=[R-p,0],R-=g),C&&(S=[0,0],E+=g),P&&(A=[R-p,0],R-=g));var D=[E,R];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:h,orient:a,rotation:c[a],labelRotation:v,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[a],playPosition:x,prevBtnPosition:S,nextBtnPosition:A,axisExtent:D,controlSize:p,controlGap:y}},e.prototype._position=function(t,r){var i=this._mainGroup,a=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=za(),l=o.x,u=o.y+o.height;Hs(s,s,[-l,-u]),au(s,s,-rw/2),Hs(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=x(o),h=x(i.getBoundingRect()),f=x(a.getBoundingRect()),d=[i.x,i.y],p=[a.x,a.y];p[0]=d[0]=c[0][0];var y=t.labelPosOpt;if(y==null||$e(y)){var g=y==="+"?0:1;S(d,h,c,1,g),S(p,f,c,1,1-g)}else{var g=y>=0?0:1;S(d,h,c,1,g),p[1]=d[1]+y}i.setPosition(d),a.setPosition(p),i.rotation=a.rotation=t.rotation,v(i),v(a);function v(A){A.originX=c[0][0]-A.x,A.originY=c[1][0]-A.y}function x(A){return[[A.x,A.x+A.width],[A.y,A.y+A.height]]}function S(A,b,w,C,P){A[C]+=w[C][P]-b[C][P]}},e.prototype._createAxis=function(t,r){var i=r.getData(),a=r.get("axisType"),o=ume(r,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new sme("value",o,t.axisExtent,a);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Wt;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Ti({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Oe({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new Ti({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Pt({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],U(l,function(u){var c=i.dataToCoord(u.value),h=s.getItemModel(u.value),f=h.getModel("itemStyle"),d=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),y={x:c,y:0,onclick:ut(o._changeTimeline,o,u.value)},g=zN(h,f,r,y);g.ensureState("emphasis").style=d.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Hl(g);var v=rn(g);h.get("tooltip")?(v.dataIndex=u.value,v.dataModel=a):v.dataIndex=v.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,r,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],U(u,function(c){var h=c.tickValue,f=l.getItemModel(h),d=f.getModel("label"),p=f.getModel(["emphasis","label"]),y=f.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),v=new Sn({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:ut(o._changeTimeline,o,h),silent:!1,style:gr(d,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});v.ensureState("emphasis").style=gr(p),v.ensureState("progress").style=gr(y),r.add(v),Hl(v),GN(v).dataIndex=h,o._tickLabels.push(v)})}},e.prototype._renderControl=function(t,r,i,a){var o=t.controlSize,s=t.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),h=a.get("inverse",!0);f(t.nextBtnPosition,"next",ut(this._changeTimeline,this,h?"-":"+")),f(t.prevBtnPosition,"prev",ut(this._changeTimeline,this,h?"+":"-")),f(t.playPosition,c?"stop":"play",ut(this._handlePlayClick,this,!c),!0);function f(d,p,y,g){if(d){var v=co(Vt(a.get(["controlStyle",p+"BtnSize"]),o),o),x=[0,-v/2,v,v],S=hme(a,p+"Icon",x,{x:d[0],y:d[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:y});S.ensureState("emphasis").style=u,r.add(S),Hl(S)}}},e.prototype._renderCurrentPointer=function(t,r,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(h){h.draggable=!0,h.drift=ut(u._handlePointerDrag,u),h.ondragend=ut(u._handlePointerDragend,u),HN(h,u._progressLine,s,i,a,!0)},onUpdate:function(h){HN(h,u._progressLine,s,i,a)}};this._currentPointer=zN(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var i=this._toAxisCoord(t)[0],a=this._axis,o=Ho(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(sn);const IT=yme;var rf=ln,LT=U,y0=Wt,_me=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new y0),this.group.add(this._selectorGroup=new y0),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,i,l,s,u);var c=t.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},f=t.get("padding"),d=Di(c,h,f),p=this.layoutInner(t,o,d,a,l,u),y=Di(Pt({width:p.width,height:p.height},c),h,f);this.group.x=y.x-p.x,this.group.y=y.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=nW(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,i,a,o,s,l){var u=this.getContentGroup(),c=gt(),h=r.get("selectedMode"),f=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&f.push(d.id)}),LT(r.getData(),function(d,p){var y=d.get("name");if(!this.newlineDisabled&&(y===""||y===` -`)){var g=new y0;g.newline=!0,u.add(g);return}var v=i.getSeriesByName(y)[0];if(!c.get(y))if(v){var x=v.getData(),S=x.getVisual("legendLineStyle")||{},A=x.getVisual("legendIcon"),b=x.getVisual("style"),w=this._createItem(v,y,p,d,r,t,S,b,A,h,a);w.on("click",rf(WN,y,null,a,f)).on("mouseover",rf(BT,v.name,null,a,f)).on("mouseout",rf(OT,v.name,null,a,f)),c.set(y,!0)}else i.eachRawSeries(function(C){if(!c.get(y)&&C.legendVisualProvider){var P=C.legendVisualProvider;if(!P.containName(y))return;var E=P.indexOfName(y),R=P.getItemVisual(E,"style"),D=P.getItemVisual(E,"legendIcon"),B=Ei(R.fill);B&&B[3]===0&&(B[3]=.2,R=Oe(Oe({},R),{fill:lo(B,"rgba")}));var k=this._createItem(C,y,p,d,r,t,{},R,D,h,a);k.on("click",rf(WN,null,y,a,f)).on("mouseover",rf(BT,null,y,a,f)).on("mouseout",rf(OT,null,y,a,f)),c.set(y,!0)}},this)},this),o&&this._createSelector(o,r,a,s,l)},e.prototype._createSelector=function(t,r,i,a,o){var s=this.getSelectorGroup();LT(t,function(u){var c=u.type,h=new Sn({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var f=r.getModel("selectorLabel"),d=r.getModel(["emphasis","selectorLabel"]);Js(h,{normal:f,emphasis:d},{defaultText:u.title}),Hl(h)})},e.prototype._createItem=function(t,r,i,a,o,s,l,u,c,h,f){var d=t.visualDrawType,p=o.get("itemWidth"),y=o.get("itemHeight"),g=o.isSelected(r),v=a.get("symbolRotate"),x=a.get("symbolKeepAspect"),S=a.get("icon");c=S||c||"roundRect";var A=xme(c,a,l,u,d,g,f),b=new y0,w=a.getModel("textStyle");if(Dt(t.getLegendIcon)&&(!S||S==="inherit"))b.add(t.getLegendIcon({itemWidth:p,itemHeight:y,icon:c,iconRotate:v,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:x}));else{var C=S==="inherit"&&t.getData().getVisual("symbol")?v==="inherit"?t.getData().getVisual("symbolRotate"):v:0;b.add(Sme({itemWidth:p,itemHeight:y,icon:c,iconRotate:C,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:x}))}var P=s==="left"?p+5:-5,E=s,R=o.get("formatter"),D=r;$e(R)&&R?D=R.replace("{name}",r!=null?r:""):Dt(R)&&(D=R(r));var B=g?w.getTextColor():a.get("inactiveColor");b.add(new Sn({style:gr(w,{text:D,x:P,y:y/2,fill:B,align:E,verticalAlign:"middle"},{inheritColor:B})}));var k=new xn({shape:b.getBoundingRect(),invisible:!0}),N=a.getModel("tooltip");return N.get("show")&&pd({el:k,componentModel:o,itemName:r,itemTooltipOption:N.option}),b.add(k),b.eachChild(function(z){z.silent=!0}),k.silent=!h,this.getContentGroup().add(b),Hl(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(t,r,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Nc(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Nc("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),d=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),y=t.getOrient().index,g=y===0?"width":"height",v=y===0?"height":"width",x=y===0?"y":"x";s==="end"?d[y]+=c[g]+p:h[y]+=f[g]+p,d[1-y]+=c[v]/2-f[v]/2,u.x=d[0],u.y=d[1],l.x=h[0],l.y=h[1];var S={x:0,y:0};return S[g]=c[g]+p+f[g],S[v]=Math.max(c[v],f[v]),S[x]=Math.min(0,f[x]+d[1-y]),S}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(tr);function xme(n,e,t,r,i,a,o){function s(g,v){g.lineWidth==="auto"&&(g.lineWidth=v.lineWidth>0?2:0),LT(g,function(x,S){g[S]==="inherit"&&(g[S]=v[S])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?r.decal:L_(h,o),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),d=f.getLineStyle();if(s(d,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),!a){var p=e.get("inactiveBorderWidth"),y=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&y?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=f.get("inactiveColor"),d.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function Sme(n){var e=n.icon||"roundRect",t=ui(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function WN(n,e,t,r){OT(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n!=null?n:e}),BT(n,e,t,r)}function hW(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,i=e.length;ri[o],g=[-d.x,-d.y];r||(g[a]=c[u]);var v=[0,0],x=[-p.x,-p.y],S=Vt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(y){var A=t.get("pageButtonPosition",!0);A==="end"?x[a]+=i[o]-p[o]:v[a]+=p[o]+S}x[1-a]+=d[s]/2-p[s]/2,c.setPosition(g),h.setPosition(v),f.setPosition(x);var b={x:0,y:0};if(b[o]=y?i[o]:d[o],b[s]=Math.max(d[s],p[s]),b[l]=Math.min(0,p[l]+x[1-a]),h.__rectSize=i[o],y){var w={x:0,y:0};w[o]=Math.max(i[o]-p[o]-S,0),w[s]=b[s],h.setClipPath(new xn({shape:w})),h.__rectSize=w[o]}else f.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(t);return C.pageIndex!=null&&hr(c,{x:C.contentPosition[0],y:C.contentPosition[1]},y?t:null),this._updatePageInfoView(t,C),b},e.prototype._pageGo=function(t,r,i){var a=this._getPageInfo(r)[t];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var i=this._controllerGroup;U(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",f=r[h]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),d.cursor=f?"pointer":"default")});var a=i.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;a&&o&&a.setStyle("text",$e(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=iw[o],l=aw[o],u=this._findTargetItemIndex(r),c=i.children(),h=c[u],f=c.length,d=f?1:0,p={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var y=A(h);p.contentPosition[o]=-y.s;for(var g=u+1,v=y,x=y,S=null;g<=f;++g)S=A(c[g]),(!S&&x.e>v.s+a||S&&!b(S,v.s))&&(x.i>v.i?v=x:v=S,v&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=v.i),++p.pageCount)),x=S;for(var g=u-1,v=y,x=y,S=null;g>=-1;--g)S=A(c[g]),(!S||!b(x,S.s))&&v.i=C&&w.s<=C+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(r=s)}),r!=null?r:a},e.type="legend.scroll",e}(fW);const Cme=Tme;function Eme(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(r)})})}function Rme(n){Wr(dW),n.registerComponentModel(bme),n.registerComponentView(Cme),Eme(n)}function Pme(n){Wr(dW),Wr(Rme)}var Dme=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=ou(qv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(qv);const Ime=Dme;var VR=Ln();function Lme(n,e,t){VR(n).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function Bme(n,e){for(var t=VR(n).coordSysRecordMap,r=t.keys(),i=0;ir[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Ume(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=VR(t),i=r.coordSysRecordMap||(r.coordSysRecordMap=gt());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=QV(a);U(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,Ome(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=gt());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){pW(i,a);return}var c=kme(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),bg(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Gme=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,i){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Lme(i,t,{pan:ut(ow.pan,this),zoom:ut(ow.zoom,this),scrollMove:ut(ow.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Bme(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(kR),ow={zoom:function(n,e,t,r){var i=this.range,a=i.slice(),o=n.axisModels[0];if(o){var s=sw[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/r.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(rh(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:jN(function(n,e,t,r,i,a){var o=sw[r]([a.oldX,a.oldY],[a.newX,a.newY],e,i,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:jN(function(n,e,t,r,i,a){var o=sw[r]([0,0],[a.scrollDelta,a.scrollDelta],e,i,t);return o.signal*(n[1]-n[0])*a.scrollDelta})};function jN(n){return function(e,t,r,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,i);if(rh(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var sw={grid:function(n,e,t,r,i){var a=t.axis,o={},s=i.model.coordinateSystem.getRect();return n=n||[0,0],a.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(n,e,t,r,i){var a=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(n,e,t,r,i){var a=t.axis,o=i.model.coordinateSystem.getRect(),s={};return n=n||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const zme=Gme;function Hme(n){UR(n),n.registerComponentModel(Ime),n.registerComponentView(zme),Ume(n)}var Vme=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ou(qv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(qv);const Wme=Vme;var bp=xn,JN=7,Xme=1,lw=30,Yme=7,Tp="horizontal",ZN="vertical",jme=5,Jme=["line","bar","candlestick","scatter"],Zme={easing:"cubicOut",duration:100,delay:0},Kme=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=ut(this._onBrush,this),this._onBrushEnd=ut(this._onBrushEnd,this)},e.prototype.render=function(t,r,i,a){if(n.prototype.render.apply(this,arguments),bg(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Hv(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Wt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,i=t.get("brushSelect"),a=i?Yme:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Tp?{right:s.width-o.x-o.width,top:s.height-lw-JN-a,width:o.width,height:lw}:{right:JN,top:o.y,width:lw,height:o.height},u=yd(t.option);U(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var c=Di(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===ZN&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Tp&&!o?{scaleY:l?1:-1,scaleX:1}:i===Tp&&o?{scaleY:l?1:-1,scaleX:-1}:i===ZN&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,a=t.get("brushSelect");i.add(new bp({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new bp({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:ut(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,i=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var h=o.getDataExtent(l),f=(h[1]-h[0])*.3;h=[h[0]-f,h[1]+f];var d=[0,r[1]],p=[0,r[0]],y=[[r[0],0],[0,0]],g=[],v=p[1]/(o.count()-1),x=0,S=Math.round(o.count()/r[0]),A;o.each([l],function(E,R){if(S>0&&R%S){x+=v;return}var D=E==null||isNaN(E)||E==="",B=D?0:zn(E,h,d,!0);D&&!A&&R?(y.push([y[y.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&A&&(y.push([x,0]),g.push([x,0])),y.push([x,B]),g.push([x,B]),x+=v,A=D}),u=this._shadowPolygonPts=y,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var b=this.dataZoomModel;function w(E){var R=b.getModel(E?"selectedDataBackground":"dataBackground"),D=new Wt,B=new ss({shape:{points:u},segmentIgnoreThreshold:1,style:R.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new Va({shape:{points:c},segmentIgnoreThreshold:1,style:R.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(B),D.add(k),D}for(var C=0;C<3;C++){var P=w(C===1);this._displayables.sliderGroup.add(P),this._displayables.dataShadowSegs.push(P)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var i,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();U(l,function(u){if(!i&&!(r!==!0&&nn(Jme,u.get("type"))<0)){var c=a.getComponent(Fl(o),s).axis,h=qme(o),f,d=u.coordinateSystem;h!=null&&d.getOtherAxis&&(f=d.getOtherAxis(c).inverse),h=u.getData().mapDimension(h),i={thisAxis:c,series:u,thisDim:o,otherDim:h,otherAxisInverse:f}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,i=r.handles=[null,null],a=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,h=l.get("brushSelect"),f=r.filler=new bp({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new bp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Xme,fill:"rgba(0,0,0,0)"}})),U([0,1],function(S){var A=l.get("handleIcon");!T_[A]&&A.indexOf("path://")<0&&A.indexOf("image://")<0&&(A="path://"+A);var b=ui(A,-1,0,2,2,null,!0);b.attr({cursor:KN(this._orient),draggable:!0,drift:ut(this._onDragMove,this,S),ondragend:ut(this._onDragEnd,this),onmouseover:ut(this._showDataInfo,this,!0),onmouseout:ut(this._showDataInfo,this,!1),z2:5});var w=b.getBoundingRect(),C=l.get("handleSize");this._handleHeight=Ft(C,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Hl(b);var P=l.get("handleColor");P!=null&&(b.style.fill=P),o.add(i[S]=b);var E=l.getModel("textStyle");t.add(a[S]=new Sn({silent:!0,invisible:!0,style:gr(E,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:E.getTextColor(),font:E.getFont()}),z2:10}))},this);var d=f;if(h){var p=Ft(l.get("moveHandleSize"),s[1]),y=r.moveHandle=new xn({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,v=r.moveHandleIcon=ui(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);v.silent=!0,v.y=s[1]+p/2-.5,y.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var x=Math.min(s[1]/2,Math.max(p,10));d=r.moveZone=new xn({invisible:!0,shape:{y:s[1]-x,height:p+x}}),d.on("mouseover",function(){u.enterEmphasis(y)}).on("mouseout",function(){u.leaveEmphasis(y)}),o.add(y),o.add(v),o.add(d)}d.attr({draggable:!0,cursor:KN(this._orient),drift:ut(this._onDragMove,this,"all"),ondragstart:ut(this._showDataInfo,this,!0),ondragend:ut(this._onDragEnd,this),onmouseover:ut(this._showDataInfo,this,!0),onmouseout:ut(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[zn(t[0],[0,100],r,!0),zn(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];rh(r,a,o,i.get("zoomLock")?"all":t,s.minSpan!=null?zn(s.minSpan,l,o,!0):null,s.maxSpan!=null?zn(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ho([zn(a[0],o,l,!0),zn(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,i=this._handleEnds,a=Ho(i.slice()),o=this._size;U([0,1],function(d){var p=r.handles[d],y=this._handleHeight;p.attr({scaleX:y/2,scaleY:y/2,x:i[d]+(d?-1:1),y:o[1]/2-y/2})},this),r.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cr[0]||i[1]<0||i[1]>r[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,i=t.offsetY;this._brushStart=new Ht(r,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ho([zn(i.x,o,s,!0),zn(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Xs(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new bp({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Zme:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=QV(this.dataZoomModel).infoList;if(!t&&r.length){var i=r[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(kR);function qme(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function KN(n){return n==="vertical"?"ns-resize":"ew-resize"}const $me=Kme;function Qme(n){n.registerComponentModel(Wme),n.registerComponentView($me),UR(n)}function eye(n){Wr(Hme),Wr(Qme)}var tye={get:function(n,e,t){var r=Mt((nye[n]||{})[e]);return t&&He(r)?r[r.length-1]:r}},nye={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const vW=tye;var qN=Wi.mapVisual,rye=Wi.eachVisual,iye=He,$N=U,aye=Ho,oye=zn,sye=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,r){var i=this.option;!r&&qge(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=ut(t,this),this.controllerVisuals=kN(this.option.controller,r,t),this.targetVisuals=kN(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,a){r.push(a)}):r=er(t),r},e.prototype.eachTargetSeries=function(t,r){U(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&t.call(r,a)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(i){i===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],He(t)&&(t=t.slice(),u=!0);var c=r?t:u?[h(t[0]),h(t[1])]:h(t);if($e(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Dt(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+c[1]:t[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function h(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=aye([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var i=t.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},a=r.target||(r.target={}),o=r.controller||(r.controller={});Ut(a,i),Ut(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(h){iye(r.color)&&!h.inRange&&(h.inRange={color:r.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,f,d){var p=h[f],y=h[d];p&&!y&&(y=h[d]={},$N(p,function(g,v){if(Wi.isValidType(v)){var x=vW.get(v,"inactive",s);x!=null&&(y[v]=x,v==="color"&&!y.hasOwnProperty("opacity")&&!y.hasOwnProperty("colorAlpha")&&(y.opacity=[0,0]))}}))}function c(h){var f=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,d=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),y=this.getItemSymbol(),g=y||"roundRect";$N(this.stateList,function(v){var x=this.itemSize,S=h[v];S||(S=h[v]={color:s?p:[p]}),S.symbol==null&&(S.symbol=f&&Mt(f)||(s?g:[g])),S.symbolSize==null&&(S.symbolSize=d&&Mt(d)||(s?x[0]:[x[0],x[0]])),S.symbol=qN(S.symbol,function(w){return w==="none"?g:w});var A=S.symbolSize;if(A!=null){var b=-1/0;rye(A,function(w){w>b&&(b=w)}),S.symbolSize=qN(A,function(w){return oye(w,[0,b],[0,x[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(sn);const W_=sye;var QN=[20,140],lye=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=QN[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=QN[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):He(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),U(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=Ho((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=i[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&a.push(l)},this),r.push({seriesId:i.id,dataIndex:a})},this),r},e.prototype.getVisualMeta=function(t){var r=e3(this,"outOfRange",this.getExtent()),i=e3(this,"inRange",this.option.range.slice()),a=[];function o(d,p){a.push({value:d,color:t(d,p)})}for(var s=0,l=0,u=i.length,c=r.length;lt[1])break;a.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return a.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),a},e.prototype._createBarPoints=function(t,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,i=this.visualMapModel.get("inverse");return new Wt(r==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();hye([0,1],function(c){var h=o[c];h.setStyle("fill",r.handlesColor[c]),h.y=t[c];var f=Oo(t[c],[0,l[1]],u,!0),d=this.getControllerVisual(f,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=uo(i.handleLabelPoints[c],Vl(h,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,h=c.indicator;if(h){h.attr("invisible",!1);var f={convertOpacityToAlpha:!0},d=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),y=Oo(t,s,u,!0),g=l[0]-p/2,v={x:h.x,y:h.y};h.y=y,h.x=g;var x=uo(c.indicatorLabelPoint,Vl(h,this.group)),S=c.indicatorLabel;S.attr("invisible",!1);var A=this._applyTransform("left",c.mainGroup),b=this._orient,w=b==="horizontal";S.setStyle({text:(i||"")+o.formatValueText(r),verticalAlign:w?A:"middle",align:w?"center":A});var C={x:g,y,style:{fill:d}},P={style:{x:x[0],y:x[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var E={duration:100,easing:"cubicInOut",additive:!0};h.x=v.x,h.y=v.y,h.animateTo(C,E),S.animateTo(P,E)}else h.attr(C),S.attr(P);this._firstShowIndicator=!1;var R=this._shapes.handleLabels;if(R)for(var D=0;Do[1]&&(h[1]=1/0),r&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,d=[];(r||i3(i))&&(d=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var p=Yne(f,d);this._dispatchHighDown("downplay",K0(p[0],i)),this._dispatchHighDown("highlight",K0(p[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(bc(t.target,function(l){var u=rn(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(r.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i=0&&(a.dimension=o,r.push(a))}}),n.getData().setVisual("visualMeta",r)}}];function xye(n,e,t,r){for(var i=e.targetVisuals[r],a=Wi.prepareVisualTypes(i),o={color:t4(n.getData(),"color")},s=0,l=a.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(mye,yye),U(_ye,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(Sye))}function Aye(n){n.registerComponentModel(uye),n.registerComponentView(gye),yW(n)}var Mye=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],wye[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Mt(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Ve(this._pieceList,function(l){return l=Mt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},i=Wi.listVisualTypes(),a=this.isCategory();U(t.pieces,function(s){U(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),U(r,function(s,l){var u=!1;U(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&U(this.stateList,function(c){(t[c]||(t[c]={}))[l]=vW.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var i=this.option,a=this._pieceList,o=(r?i:t).selected||{};if(i.selected=o,U(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;U(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Mt(t)},e.prototype.getValueState=function(t){var r=Wi.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Wi.findPieceIndex(l,i);c===t&&o.push(u)},this),r.push({seriesId:a.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var i=t.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],i=["",""],a=this;function o(c,h){var f=a.getRepresentValue({interval:c});h||(h=a.getValueState(f));var d=t(f,h);c[0]===-1/0?i[0]=d:c[1]===1/0?i[1]=d:r.push({value:c[0],color:d},{value:c[1],color:d})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return U(s,function(c){var h=c.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:r,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=ou(W_.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(W_),wye={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(t)!==a&&t<5;)t++;e.precision=t,a=+a.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function l3(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const bye=Mye;var Tye=function(n){be(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,i=r.get("textGap"),a=r.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),h=c.endsText,f=zs(r.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,f,l),U(c.viewPieceList,function(d){var p=d.piece,y=new Wt;y.onclick=ut(this._onItemClick,this,p),this._enableHoverLink(y,d.indexInModelPieceList);var g=r.getRepresentValue(p);if(this._createItemSymbol(y,g,[0,0,u[0],u[1]]),f){var v=this.visualMapModel.getValueState(g);y.add(new Sn({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:v==="outOfRange"?.5:1}}))}t.add(y)},this),h&&this._renderEndsText(t,h[1],u,f,l),Nc(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var i=this;t.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:K0(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return mW(t,this.api,t.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,r,i,a,o){if(r){var s=new Wt,l=this.visualMapModel.textStyleModel;s.add(new Sn({style:gr(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=Ve(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),a=t.get("orient"),o=t.get("inverse");return(a==="horizontal"?o:!o)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},e.prototype._createItemSymbol=function(t,r,i){t.add(ui(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,i=r.option,a=i.selectedMode;if(a){var o=Mt(i.selected),s=r.getSelectedMapKey(t);a==="single"||a===!0?(o[s]=!0,U(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(gW);const Cye=Tye;function Eye(n){n.registerComponentModel(bye),n.registerComponentView(Cye),yW(n)}function Rye(n){Wr(Aye),Wr(Eye)}var Pye={label:{enabled:!0},decal:{show:!1}},u3=Ln(),Dye={};function Iye(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Mt(Pye);Ut(r.label,n.getLocaleModel().get("aria"),!1),Ut(t.option,r,!1),i(),a();function i(){var u=t.getModel("decal"),c=u.get("show");if(c){var h=gt();n.eachSeries(function(f){if(!f.isColorBySeries()){var d=h.get(f.type);d||(d={},h.set(f.type,d)),u3(f).scope=d}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(Dt(f.enableAriaDecal)){f.enableAriaDecal();return}var d=f.getData();if(f.isColorBySeries()){var x=lB(f.ecModel,f.name,Dye,n.getSeriesCount()),S=d.getVisual("decal");d.setVisual("decal",A(S,x))}else{var p=f.getRawData(),y={},g=u3(f).scope;d.each(function(b){var w=d.getRawIndex(b);y[w]=b});var v=p.count();p.each(function(b){var w=y[b],C=p.getName(b)||b+"",P=lB(f.ecModel,C,g,v),E=d.getItemVisual(w,"decal");d.setItemVisual(w,"decal",A(E,P))})}function A(b,w){var C=b?Oe(Oe({},w),b):w;return C.dirty=!0,C}})}}function a(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=Pt(c.option,u),!!c.get("enabled")){var h=e.getZr().dom;if(c.get("description")){h.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),d=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,y=Math.min(f,p),g;if(!(f<1)){var v=s();if(v){var x=c.get(["general","withTitle"]);g=o(x,{title:v})}else g=c.get(["general","withoutTitle"]);var S=[],A=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(A,{seriesCount:f}),n.eachSeries(function(P,E){if(E1?c.get(["series","multiple",B]):c.get(["series","single",B]),R=o(R,{seriesId:P.seriesIndex,seriesName:P.get("name"),seriesType:l(P.subType)});var k=P.getData();if(k.count()>d){var N=c.get(["data","partialData"]);R+=o(N,{displayCnt:d})}else R+=c.get(["data","allData"]);for(var z=c.get(["data","separator","middle"]),X=c.get(["data","separator","end"]),ne=[],H=0;H=$u:-u>=$u),d=u>0?u%$u:u%$u+$u,p=!1;f?p=!0:Il(h)?p=!1:p=d>=_W==!!c;var y=e+r*hw(o),g=t+i*cw(o);this._start&&this._add("M",y,g);var v=Math.round(a*qye);if(f){var x=1/this._p,S=(c?1:-1)*($u-x);this._add("A",r,i,v,1,+c,e+r*hw(o+S),t+i*cw(o+S)),x>.01&&this._add("A",r,i,v,0,+c,y,g)}else{var A=e+r*hw(s),b=t+i*cw(s);this._add("A",r,i,v,+p,+c,A,b)}},n.prototype.rect=function(e,t,r,i){this._add("M",e,t),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,i,a,o,s,l,u){for(var c=[],h=this._p,f=1;f"}function s0e(n){return""}function WR(n,e){e=e||{};var t=e.newline?` -`:"";function r(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return o0e(o,s)+(o!=="style"?wi(l):l||"")+(a?""+t+Ve(a,function(u){return r(u)}).join(t)+t:"")+s0e(o)}return r(n)}function l0e(n,e,t){t=t||{};var r=t.newline?` -`:"",i=" {"+r,a=r+"}",o=Ve(jt(n),function(l){return l+i+Ve(jt(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+a}).join(r),s=Ve(jt(e),function(l){return"@keyframes "+l+i+Ve(jt(e[l]),function(u){return u+i+Ve(jt(e[l][u]),function(c){var h=e[l][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?"":[""].join(r)}function NT(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function c3(n,e,t,r){return Er("svg","root",{width:n,height:e,xmlns:SW,"xmlns:xlink":AW,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var h3={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},lc="transform-origin";function u0e(n,e,t){var r=Oe({},n.shape);Oe(r,e),n.buildPath(t,r);var i=new xW;return i.reset(hz(n)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function c0e(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[lc]=t+"px "+r+"px")}var h0e={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function wW(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function f0e(n,e,t){var r=n.shape.paths,i={},a,o;if(U(r,function(l){var u=NT(t.zrId);u.animation=!0,yS(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,f=jt(c),d=f.length;if(d){o=f[d-1];var p=c[o];for(var y in p){var g=p[y];i[y]=i[y]||{d:""},i[y].d+=g.d||""}for(var v in h){var x=h[v].animation;x.indexOf(o)>=0&&(a=x)}}}),!!a){e.d=!1;var s=wW(i,t);return a.replace(o,s)}}function f3(n){return $e(n)?h3[n]?"cubic-bezier("+h3[n]+")":sE(n)?n:"":""}function yS(n,e,t,r){var i=n.animators,a=i.length,o=[];if(n instanceof Hx){var s=f0e(n,e,t);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var Be=wW(C,t);return Be+" "+x[0]+" both"}}for(var g in l){var s=y(l[g]);s&&o.push(s)}if(o.length){var v=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+v]={animation:o.join(",")},e.class=v}}var $v=Math.round;function bW(n){return n&&$e(n.src)}function TW(n){return n&&Dt(n.toDataURL)}function XR(n,e,t,r){r0e(function(i,a){var o=i==="fill"||i==="stroke";o&&cz(a)?EW(e,n,i,r):o&&uE(a)?RW(t,n,i,r):n[i]=a},e,t,!1),_0e(t,n,r)}function d3(n){return Il(n[0]-1)&&Il(n[1])&&Il(n[2])&&Il(n[3]-1)}function d0e(n){return Il(n[4])&&Il(n[5])}function YR(n,e,t){if(e&&!(d0e(e)&&d3(e))){var r=t?10:1e4;n.transform=d3(e)?"translate("+$v(e[4]*r)/r+" "+$v(e[5]*r)/r+")":Ite(e)}}function p3(n,e,t){for(var r=n.points,i=[],a=0;aa?(p=t[l+1]==null?null:t[l+1].elm,IW(n,p,t,i,l)):X_(n,e,r,a))}function ff(n,e){var t=e.elm=n.elm,r=n.children,i=e.children;n!==e&&(jR(n,e),kT(e.text)?No(r)&&No(i)?r!==i&&w0e(t,r,i):No(i)?(No(n.text)&&fw(t,""),IW(t,null,i,0,i.length-1)):No(r)?X_(t,r,0,r.length-1):No(n.text)&&fw(t,""):n.text!==e.text&&(No(r)&&X_(t,r,0,r.length-1),fw(t,e.text)))}function b0e(n,e){if(Up(n,e))ff(n,e);else{var t=n.elm,r=PW(t);Qv(e),r!==null&&(hc(r,e.elm,DW(t)),X_(r,[n],0,0))}return e}var T0e=0,C0e=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=S3(),this.configLayer=S3(),this.storage=t,this._opts=r=Oe({},r),this.root=e,this._id="zr"+T0e++,this._oldVNode=c3(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=MW("svg");jR(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",b0e(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return g3(e,NT(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,i=this._height,a=NT(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress;var o=[],s=this._bgVNode=E0e(r,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Er("g","main",{},[]);this._paintList(t,a,l?l.children:o),l&&o.push(l);var u=Ve(jt(a.defs),function(f){return a.defs[f]});if(u.length&&o.push(Er("defs","defs",{},u)),e.animation){var c=l0e(a.cssNodes,a.cssAnims,{newline:!0});if(c){var h=Er("style","stl",{},[],c);o.push(h)}}return c3(r,i,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},WR(this.renderToVNode({animation:Vt(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Vt(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var i=e.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[y]===l[y]);y--);for(var g=p-1;g>y;g--)o--,s=a[o-1];for(var v=y+1;v{i==null||i.resize()},{wait:200});Y.useEffect(()=>(o(),()=>{l()}),[]),Y.useEffect(()=>{if(!e)return s(n),()=>{l()}},[e,n]);const o=(c=t)=>{const h=r==null?void 0:r.current;h&&(i=Kye.init(h,c),window.addEventListener("resize",a))},s=c=>{!i&&(o(),!i)||(i==null||i.clear(),i==null||i.setOption(c))},l=()=>{i&&(window.removeEventListener("resize",a),i.dispose(),i=null)};return{chartRef:r,getInstance:()=>(i||o(),i)}}const dw=({loading:n,options:e,height:t="100%"})=>{const{chartRef:r}=D0e(e,n);return ee.jsx("div",{ref:r,style:{width:"100%",height:t}})},I0e=w3(({token:n})=>({flex:{display:"flex",".flex-title":{color:n.colorPrimary},".card-left":{flex:1,".card-count":{display:"flex",alignItems:"center"}},".card-right":{width:"40%"}}})),{Text:pw,Title:of}=UT,L0e=()=>{const{styles:n}=I0e(),e=b3(),[t,r]=Y.useState(!0);return Y.useEffect(()=>{setTimeout(()=>{r(!1)},1500)},[]),ee.jsxs(ee.Fragment,{children:[ee.jsx(Fo,{span:8,children:ee.jsx(b1,{loading:t,children:ee.jsxs("div",{className:_0(n.flex),children:[ee.jsxs("div",{className:"card-left",children:[ee.jsx(pw,{strong:!0,children:jn("活跃用户数量")}),ee.jsxs(of,{className:"count",level:5,style:{margin:"8px 0"},children:[ee.jsx(x0,{size:20,style:{marginRight:"4px",color:e.colorPrimary},name:"solar"}),"+2.6%"]}),ee.jsx(of,{level:2,style:{margin:0},children:ee.jsx(w1,{start:0,end:122,duration:3})})]}),ee.jsx("div",{className:"card-right",children:ee.jsx(dw,{loading:t,options:{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"30%",right:"0%",bottom:"0%",top:"40%",containLabel:!0},xAxis:[{show:!1,type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{show:!1,type:"value"}],series:[{name:"Direct",type:"bar",barWidth:"40%",itemStyle:{color:e.colorPrimary},data:[10,52,200,334,390,330,220]}]}})})]})})}),ee.jsx(Fo,{span:8,children:ee.jsx(b1,{loading:t,children:ee.jsxs("div",{className:_0(n.flex),children:[ee.jsxs("div",{className:"card-left",children:[ee.jsx(pw,{strong:!0,children:jn("总下载量")}),ee.jsxs(of,{className:"count",level:5,style:{margin:"8px 0"},children:[ee.jsx(x0,{size:20,style:{marginRight:"4px",color:e.colorError,transform:"rotate(180deg)"},name:"solar"}),"-2.6%"]}),ee.jsx(of,{level:2,style:{margin:0},children:ee.jsx(w1,{start:0,end:1322,duration:3})})]}),ee.jsx("div",{className:"card-right",children:ee.jsx(dw,{loading:t,options:{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"30%",right:"0%",bottom:"0%",top:"40%",containLabel:!0},xAxis:[{show:!1,type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{show:!1,type:"value"}],series:[{name:"Direct",type:"bar",barWidth:"40%",itemStyle:{color:e.colorPrimary},data:[200,334,390,30,120,132,220]}]}})})]})})}),ee.jsx(Fo,{span:8,children:ee.jsx(b1,{loading:t,children:ee.jsxs("div",{className:_0(n.flex),children:[ee.jsxs("div",{className:"card-left",children:[ee.jsx(pw,{strong:!0,children:jn("总安装数量")}),ee.jsxs(of,{className:"count",level:5,style:{margin:"8px 0"},children:[ee.jsx(x0,{size:20,style:{marginRight:"4px",color:e.colorPrimary},name:"solar"}),"+5.6%"]}),ee.jsx(of,{level:2,style:{margin:0},children:ee.jsx(w1,{start:0,end:12322,duration:3})})]}),ee.jsx("div",{className:"card-right",children:ee.jsx(dw,{loading:t,options:{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"30%",right:"0%",bottom:"0%",top:"40%",containLabel:!0},xAxis:[{show:!1,type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{show:!1,type:"value"}],series:[{name:"Direct",type:"bar",barWidth:"40%",itemStyle:{color:e.colorPrimary},data:[10,52,100,34,90,100,120]}]}})})]})})})]})},B0e=[{title:jn("文章标题"),key:"title",search:!0,render:(n,e)=>{const{title:t,article_id:r}=e;return ee.jsx("a",{href:`https://juejin.cn/post/${r}`,target:"_blank",rel:"noreferrer",children:t})}},{title:jn("简介"),key:"brief_content",render:(n,e)=>{const{brief_content:t}=e;return t}},{title:jn("阅读数"),width:"120px",key:"view_count",render:(n,e)=>{const{view_count:t}=e;return t}},{title:jn("点赞数"),key:"digg_count",width:"120px",sort:!0,render:(n,e)=>{const{digg_count:t}=e;return t}},{title:jn("收藏数"),key:"collect_count",width:"90px",render:(n,e)=>{const{collect_count:t}=e;return t}}];function O0e(){return ee.jsx(A3,{children:ee.jsx(i6,{api:o9,title:jn("我的掘金文章"),fields:B0e,rowKey:"sort_id"})})}const F0e="/react-antd-admin-pnpm/assets/cover_1-7d839a8b.jpg",N0e="/react-antd-admin-pnpm/assets/cover_2-8c995632.jpg",k0e="/react-antd-admin-pnpm/assets/cover_3-10dbb9dd.jpg",U0e="/react-antd-admin-pnpm/assets/cover_4-c88be22d.jpg",{Title:Cp,Text:Lo}=UT,G0e=()=>{const[n,e]=Y.useState(1),t=b3();return ee.jsxs(p9,{sliderConfig:{dots:!0,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:4e3,afterChange:r=>{e(r+1)}},children:[ee.jsxs("div",{className:"image-box",children:[ee.jsx("img",{src:F0e,alt:""}),ee.jsxs("div",{className:"img-info",children:[ee.jsx(ti,{run:n===1,delay:100,children:ee.jsx(Lo,{ellipsis:!0,style:{fontWeight:"bold",color:t.colorPrimary},type:"success",children:jn("作者:Gbeata")})}),ee.jsx(ti,{run:n===1,delay:200,children:ee.jsx(Cp,{style:{color:"white",margin:"8px 0"},ellipsis:!0,level:4,color:"white",children:jn("还没有想清楚如何介绍自己和系统之前,就请允许我使用这些文字占位吧~")})}),ee.jsx(ti,{run:n===1,delay:300,children:ee.jsx(Lo,{ellipsis:!0,style:{color:"white"},children:jn("详细介绍下自己吧:我是一个小前端呀小前端,小前端啊小前端")})})]})]}),ee.jsxs("div",{className:"image-box",children:[ee.jsx("img",{src:N0e,alt:""}),ee.jsxs("div",{className:"img-info",children:[ee.jsx(ti,{run:n===2,delay:100,children:ee.jsx(Lo,{ellipsis:!0,style:{fontWeight:"bold",color:t.colorPrimary},type:"success",children:jn("作者:Gbeata")})}),ee.jsx(ti,{run:n===2,delay:200,children:ee.jsx(Cp,{style:{color:"white",margin:"8px 0"},ellipsis:!0,level:4,color:"white",children:jn("还没有想清楚如何介绍自己和系统之前,就请允许我使用这些文字占位吧~")})}),ee.jsx(ti,{run:n===2,delay:300,children:ee.jsx(Lo,{ellipsis:!0,style:{color:"white"},children:jn("详细介绍下自己吧:我是一个小前端呀小前端,小前端啊小前端")})})]})]}),ee.jsxs("div",{className:"image-box",children:[ee.jsx("img",{src:k0e,alt:""}),ee.jsxs("div",{className:"img-info",children:[ee.jsx(ti,{run:n===3,delay:100,children:ee.jsx(Lo,{ellipsis:!0,style:{fontWeight:"bold",color:t.colorPrimary},type:"success",children:jn("作者:Gbeata")})}),ee.jsx(ti,{run:n===3,delay:200,children:ee.jsx(Cp,{style:{color:"white",margin:"8px 0"},ellipsis:!0,level:4,color:"white",children:jn("还没有想清楚如何介绍自己和系统之前,就请允许我使用这些文字占位吧~")})}),ee.jsx(ti,{run:n===3,delay:300,children:ee.jsx(Lo,{ellipsis:!0,style:{color:"white"},children:jn("详细介绍下自己吧:我是一个小前端呀小前端,小前端啊小前端")})})]})]}),ee.jsxs("div",{className:"image-box",children:[ee.jsx("img",{src:U0e,alt:""}),ee.jsxs("div",{className:"img-info",children:[ee.jsx(ti,{run:n===4,delay:100,children:ee.jsx(Lo,{ellipsis:!0,style:{fontWeight:"bold",color:t.colorPrimary},type:"success",children:jn("作者:Gbeata")})}),ee.jsx(ti,{run:n===4,delay:200,children:ee.jsx(Cp,{style:{color:"white",margin:"8px 0"},ellipsis:!0,level:4,color:"white",children:jn("还没有想清楚如何介绍自己和系统之前,就请允许我使用这些文字占位吧~")})}),ee.jsx(ti,{run:n===4,delay:300,children:ee.jsx(Lo,{ellipsis:!0,style:{color:"white"},children:jn("详细介绍下自己吧:我是一个小前端呀小前端,小前端啊小前端")})})]})]}),ee.jsxs("div",{className:"image-box",children:[ee.jsx("img",{src:l9,alt:""}),ee.jsxs("div",{className:"img-info",children:[ee.jsx(ti,{run:n===5,delay:100,children:ee.jsx(Lo,{ellipsis:!0,style:{fontWeight:"bold",color:t.colorPrimary},type:"success",children:jn("作者:Gbeata")})}),ee.jsx(ti,{run:n===5,delay:200,children:ee.jsx(Cp,{style:{color:"white",margin:"8px 0"},ellipsis:!0,level:4,color:"white",children:jn("还没有想清楚如何介绍自己和系统之前,就请允许我使用这些文字占位吧~")})}),ee.jsx(ti,{run:n===5,delay:300,children:ee.jsx(Lo,{ellipsis:!0,style:{color:"white"},children:jn("详细介绍下自己吧:我是一个小前端呀小前端,小前端啊小前端")})})]})]})]})},z0e=w3(({token:n})=>({"home-container":{height:"100vh",".gutter-row":{"&:first-child":{display:"flex"}},".user-info":{backgroundColor:n.colorPrimaryBg,display:"flex",alignItems:"center"},".slick":{height:"100%",overflow:"hidden",div:{height:"100%"},".img-info":{position:"absolute",bottom:"0",left:"0",right:"0",height:"auto",zIndex:2,padding:n.paddingLG,overflow:"hidden",div:{height:"auto"}},".image-box":{position:"relative","&:before":{content:"''",top:"0px",left:"0px",width:"100%",height:"100%",zIndex:1,position:"absolute",background:"linear-gradient(rgba(22, 28, 36, 0) 0%, rgb(22, 28, 36) 75%)"}},"&-dots":{position:"absolute",top:"8px",left:"8px",bottom:"auto",width:"auto",li:{margin:0,"button:before":{color:n.colorPrimary,fontSize:"10px",width:"auto",height:"auto"}}}}}})),{Title:H0e,Text:V0e}=UT,r_e=()=>{const{styles:n}=z0e(),{t:e}=s9();return ee.jsx("div",{className:n["home-container"],children:ee.jsxs(EP,{gutter:[16,16],children:[ee.jsx(Fo,{className:"gutter-row",span:16,children:ee.jsx("div",{className:"user-info g-paper",children:ee.jsx(h9,{panelConfig:{friction:2,precision:.02},children:ee.jsxs(EP,{style:{padding:"40px"},children:[ee.jsxs(Fo,{span:12,children:[ee.jsx(H0e,{level:3,children:e("欢迎回来 👋 Gbeata")}),ee.jsx(V0e,{type:"secondary",children:e("如果你正在使用或者将要使用这个系统,希望你在探索的过程中学有所得,如果正巧你遇到了一个问题,请告诉我们,我们会尽快处理!")}),ee.jsx(k8,{dashed:!0}),ee.jsx(U8,{type:"primary",children:e("现在出发!")})]}),ee.jsx(Fo,{span:12,children:ee.jsx(x0,{name:"homeinfo",style:{width:"100%",height:"100%"}})})]})})})}),ee.jsx(Fo,{className:"gutter-row",span:8,children:ee.jsx("div",{className:"slick g-paper",children:ee.jsx(G0e,{})})}),ee.jsx(L0e,{}),ee.jsx(Fo,{span:12,children:ee.jsx(u9,{})}),ee.jsx(Fo,{span:12,children:ee.jsx(pee,{})}),ee.jsx(Fo,{span:24,children:ee.jsx(O0e,{})})]})})};export{r_e as default}; +`:"
",v=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,v,u,Math.random()+"",o[0],o[1],d,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,i){var a=this._ecModel,o=tn(r),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,h=o.dataType,f=u.getData(h),d=this._renderMode,p=t.positionDefault,y=dp([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=y.get("trigger");if(!(g!=null&&g!=="item")){var v=u.getDataParams(c,h),x=new GA;v.marker=x.makeTooltipMarker("item",Uc(v.color),d);var S=bL(u.formatTooltip(c,!1,h)),A=y.get("order"),T=y.get("valueFormatter"),w=S.frag,C=w?EL(T?De({valueFormatter:T},w):w,x,d,A,a.get("useUTC"),y.get("textStyle")):S.text,P="item_"+u.name+"_"+c;this._showOrMove(y,function(){this._showTooltipContent(y,C,v,P,t.offsetX,t.offsetY,t.position,t.target,x)}),i({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,i){var a=tn(r),o=a.tooltipConfig,s=o.option||{};if(Ze(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var h=t.positionDefault,f=dp(u,this._tooltipModel,h?{position:h}:null),d=f.get("content"),p=Math.random()+"",y=new GA;this._showOrMove(f,function(){var g=mt(f.get("formatterParams")||{});this._showTooltipContent(f,d,g,p,t.offsetX,t.offsetY,t.position,r,y)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,i,a,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var d=r,p=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),y=p.color;if(f)if(Ze(f)){var g=t.ecModel.get("useUTC"),v=Ge(i)?i[0]:i,x=v&&v.axisType&&v.axisType.indexOf("time")>=0;d=f,x&&(d=sg(v.axisValue,d,g)),d=mE(d,i,!0)}else if(Tt(f)){var S=at(function(A,T){A===this._ticket&&(h.setContent(T,c,t,y,l),this._updatePosition(t,l,o,s,h,i,u))},this);this._ticket=a,d=f(i,a,S)}else d=f;h.setContent(d,c,t,y,l),h.show(t,y),this._updatePosition(t,l,o,s,h,i,u)}},e.prototype._getNearestPoint=function(t,r,i,a){if(i==="axis"||Ge(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Ge(r))return{color:a||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var h=o.getSize(),f=t.get("align"),d=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),Tt(r)&&(r=r([i,a],s,o.el,p,{viewSize:[u,c],contentSize:h.slice()})),Ge(r))i=Lt(r[0],u),a=Lt(r[1],c);else if(pt(r)){var y=r;y.width=h[0],y.height=h[1];var g=Ri(y,{width:u,height:c});i=g.x,a=g.y,f=null,d=null}else if(Ze(r)&&l){var v=Vpe(r,p,h,t.get("borderWidth"));i=v[0],a=v[1]}else{var v=zpe(i,a,o,u,c,f?null:20,d?null:20);i=v[0],a=v[1]}if(f&&(i-=qN(f)?h[0]/2:f==="right"?h[0]:0),d&&(a-=qN(d)?h[1]/2:d==="bottom"?h[1]:0),dV(t)){var v=Hpe(i,a,o,u,c);i=v[0],a=v[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===t.length;return o&&k(i,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},h=c.dataByAxis||[];o=o&&u.length===h.length,o&&k(u,function(f,d){var p=h[d]||{},y=f.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&y.length===g.length,o&&k(y,function(v,x){var S=g[x];o=o&&v.seriesIndex===S.seriesIndex&&v.dataIndex===S.dataIndex}),a&&k(f.seriesDataIndices,function(v){var x=v.seriesIndex,S=r[x],A=a[x];S&&A&&A.data!==S.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){sn.node||!r.getDom()||(bv(this,"_updatePosition"),this._tooltipContent.dispose(),Qb("itemTooltip",r))},e.type="tooltip",e}(er);function dp(n,e,t){var r=e.ecModel,i;t?(i=new jn(t,r,r),i=new jn(e.option,i,r)):i=e;for(var a=n.length-1;a>=0;a--){var o=n[a];o&&(o instanceof jn&&(o=o.get("tooltip",!0)),Ze(o)&&(o={formatter:o}),o&&(i=new jn(o,i,r)))}return i}function KN(n,e){return n.dispatchAction||at(e.dispatchAction,e)}function zpe(n,e,t,r,i,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(n+l+a+2>r?n-=l+a:n+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[n,e]}function Hpe(n,e,t,r,i){var a=t.getSize(),o=a[0],s=a[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,i)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function Vpe(n,e,t,r){var i=t[0],a=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+o;break;case"left":s=e.x-i-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function qN(n){return n==="center"||n==="middle"}function Wpe(n,e,t){var r=HC(n).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var a=ig(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=tn(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const Xpe=Gpe;function Ype(n){Hr(aR),n.registerComponentModel(bpe),n.registerComponentView(Xpe),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Br),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Br)}var QN=k;function $N(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function eF(n,e,t){var r={};return QN(e,function(a){var o=r[a]=i();QN(n[a],function(s,l){if(Hi.isValidType(l)){var u={type:l,visual:s};t&&t(u,a),o[l]=new Hi(u),l==="opacity"&&(u=mt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Hi(u))}})}),r;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function Jpe(n,e,t){var r;k(t,function(i){e.hasOwnProperty(i)&&$N(e[i])&&(r=!0)}),r&&k(t,function(i){e.hasOwnProperty(i)&&$N(e[i])?n[i]=mt(e[i]):delete n[i]})}function Zpe(n,e,t,r){var i={};return k(n,function(a){var o=Hi.prepareVisualTypes(e[a]);i[a]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(T){return s5(s,h,T)}function c(T,w){tse(s,h,T,w)}for(var h,f=s.getStore();(h=o.next())!=null;){var d=s.getRawDataItem(h);if(!(d&&d.visualMap===!1))for(var p=r!=null?f.get(l,h):h,y=t(p),g=e[y],v=i[y],x=0,S=v.length;x=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],i=t.axisType,a=this._names=[],o;i==="category"?(o=[],k(r,function(u,c){var h=ri(rd(u),""),f;pt(u)?(f=mt(u),f.value=c):f=c,o.push(f),a.push(h)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Cx([{name:"value",type:s}],this);l.initData(o,a)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(an);const tF=Qpe;var mV=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=tu(tF.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(tF);Vr(mV,oH.prototype);const $pe=mV;var eve=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(er);const tve=eve;var nve=function(n){we(e,n);function e(t,r,i,a){var o=n.call(this,t,r,i)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(yo);const rve=nve;var LM=Math.PI,nF=In(),ive=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,i){if(this.model=t,this.api=i,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return ns("nameValue",{noName:!0,value:c})},k(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,t)},this),this._renderAxisLabel(a,s,l,t),this._position(a,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var i=t.get(["label","position"]),a=t.get("orient"),o=ove(t,r),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:LM/2},h=a==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),d=f.get("show",!0),p=d?f.get("itemSize"):0,y=d?f.get("itemGap"):0,g=p+y,v=t.get(["label","rotate"])||0;v=v*LM/180;var x,S,A,T=f.get("position",!0),w=d&&f.get("showPlayBtn",!0),C=d&&f.get("showPrevBtn",!0),P=d&&f.get("showNextBtn",!0),E=0,R=h;T==="left"||T==="bottom"?(w&&(x=[0,0],E+=g),C&&(S=[E,0],E+=g),P&&(A=[R-p,0],R-=g)):(w&&(x=[R-p,0],R-=g),C&&(S=[0,0],E+=g),P&&(A=[R-p,0],R-=g));var I=[E,R];return t.get("inverse")&&I.reverse(),{viewRect:o,mainLength:h,orient:a,rotation:c[a],labelRotation:v,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[a],playPosition:x,prevBtnPosition:S,nextBtnPosition:A,axisExtent:I,controlSize:p,controlGap:y}},e.prototype._position=function(t,r){var i=this._mainGroup,a=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Ga(),l=o.x,u=o.y+o.height;Us(s,s,[-l,-u]),eu(s,s,-LM/2),Us(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=x(o),h=x(i.getBoundingRect()),f=x(a.getBoundingRect()),d=[i.x,i.y],p=[a.x,a.y];p[0]=d[0]=c[0][0];var y=t.labelPosOpt;if(y==null||Ze(y)){var g=y==="+"?0:1;S(d,h,c,1,g),S(p,f,c,1,1-g)}else{var g=y>=0?0:1;S(d,h,c,1,g),p[1]=d[1]+y}i.setPosition(d),a.setPosition(p),i.rotation=a.rotation=t.rotation,v(i),v(a);function v(A){A.originX=c[0][0]-A.x,A.originY=c[1][0]-A.y}function x(A){return[[A.x,A.x+A.width],[A.y,A.y+A.height]]}function S(A,T,w,C,P){A[C]+=w[C][P]-T[C][P]}},e.prototype._createAxis=function(t,r){var i=r.getData(),a=r.get("axisType"),o=ave(r,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new rve("value",o,t.axisExtent,a);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new zt;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new wi({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:De({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new wi({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:bt({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],k(l,function(u){var c=i.dataToCoord(u.value),h=s.getItemModel(u.value),f=h.getModel("itemStyle"),d=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),y={x:c,y:0,onclick:at(o._changeTimeline,o,u.value)},g=rF(h,f,r,y);g.ensureState("emphasis").style=d.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Fl(g);var v=tn(g);h.get("tooltip")?(v.dataIndex=u.value,v.dataModel=a):v.dataIndex=v.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,r,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],k(u,function(c){var h=c.tickValue,f=l.getItemModel(h),d=f.getModel("label"),p=f.getModel(["emphasis","label"]),y=f.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),v=new xn({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:at(o._changeTimeline,o,h),silent:!1,style:pr(d,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});v.ensureState("emphasis").style=pr(p),v.ensureState("progress").style=pr(y),r.add(v),Fl(v),nF(v).dataIndex=h,o._tickLabels.push(v)})}},e.prototype._renderControl=function(t,r,i,a){var o=t.controlSize,s=t.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),h=a.get("inverse",!0);f(t.nextBtnPosition,"next",at(this._changeTimeline,this,h?"-":"+")),f(t.prevBtnPosition,"prev",at(this._changeTimeline,this,h?"+":"-")),f(t.playPosition,c?"stop":"play",at(this._handlePlayClick,this,!c),!0);function f(d,p,y,g){if(d){var v=uo(Gt(a.get(["controlStyle",p+"BtnSize"]),o),o),x=[0,-v/2,v,v],S=sve(a,p+"Icon",x,{x:d[0],y:d[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:y});S.ensureState("emphasis").style=u,r.add(S),Fl(S)}}},e.prototype._renderCurrentPointer=function(t,r,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(h){h.draggable=!0,h.drift=at(u._handlePointerDrag,u),h.ondragend=at(u._handlePointerDragend,u),iF(h,u._progressLine,s,i,a,!0)},onUpdate:function(h){iF(h,u._progressLine,s,i,a)}};this._currentPointer=rF(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var i=this._toAxisCoord(t)[0],a=this._axis,o=zo(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(an);const rT=pve;var jh=on,iT=k,Q0=zt,vve=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Q0),this.group.add(this._selectorGroup=new Q0),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,i,l,s,u);var c=t.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},f=t.get("padding"),d=Ri(c,h,f),p=this.layoutInner(t,o,d,a,l,u),y=Ri(bt({width:p.width,height:p.height},c),h,f);this.group.x=y.x-p.x,this.group.y=y.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=uV(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,i,a,o,s,l){var u=this.getContentGroup(),c=ft(),h=r.get("selectedMode"),f=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&f.push(d.id)}),iT(r.getData(),function(d,p){var y=d.get("name");if(!this.newlineDisabled&&(y===""||y===` +`)){var g=new Q0;g.newline=!0,u.add(g);return}var v=i.getSeriesByName(y)[0];if(!c.get(y))if(v){var x=v.getData(),S=x.getVisual("legendLineStyle")||{},A=x.getVisual("legendIcon"),T=x.getVisual("style"),w=this._createItem(v,y,p,d,r,t,S,T,A,h,a);w.on("click",jh(oF,y,null,a,f)).on("mouseover",jh(aT,v.name,null,a,f)).on("mouseout",jh(oT,v.name,null,a,f)),c.set(y,!0)}else i.eachRawSeries(function(C){if(!c.get(y)&&C.legendVisualProvider){var P=C.legendVisualProvider;if(!P.containName(y))return;var E=P.indexOfName(y),R=P.getItemVisual(E,"style"),I=P.getItemVisual(E,"legendIcon"),O=Ti(R.fill);O&&O[3]===0&&(O[3]=.2,R=De(De({},R),{fill:so(O,"rgba")}));var U=this._createItem(C,y,p,d,r,t,{},R,I,h,a);U.on("click",jh(oF,null,y,a,f)).on("mouseover",jh(aT,null,y,a,f)).on("mouseout",jh(oT,null,y,a,f)),c.set(y,!0)}},this)},this),o&&this._createSelector(o,r,a,s,l)},e.prototype._createSelector=function(t,r,i,a,o){var s=this.getSelectorGroup();iT(t,function(u){var c=u.type,h=new xn({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var f=r.getModel("selectorLabel"),d=r.getModel(["emphasis","selectorLabel"]);Xs(h,{normal:f,emphasis:d},{defaultText:u.title}),Fl(h)})},e.prototype._createItem=function(t,r,i,a,o,s,l,u,c,h,f){var d=t.visualDrawType,p=o.get("itemWidth"),y=o.get("itemHeight"),g=o.isSelected(r),v=a.get("symbolRotate"),x=a.get("symbolKeepAspect"),S=a.get("icon");c=S||c||"roundRect";var A=gve(c,a,l,u,d,g,f),T=new Q0,w=a.getModel("textStyle");if(Tt(t.getLegendIcon)&&(!S||S==="inherit"))T.add(t.getLegendIcon({itemWidth:p,itemHeight:y,icon:c,iconRotate:v,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:x}));else{var C=S==="inherit"&&t.getData().getVisual("symbol")?v==="inherit"?t.getData().getVisual("symbolRotate"):v:0;T.add(mve({itemWidth:p,itemHeight:y,icon:c,iconRotate:C,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:x}))}var P=s==="left"?p+5:-5,E=s,R=o.get("formatter"),I=r;Ze(R)&&R?I=R.replace("{name}",r!=null?r:""):Tt(R)&&(I=R(r));var O=g?w.getTextColor():a.get("inactiveColor");T.add(new xn({style:pr(w,{text:I,x:P,y:y/2,fill:O,align:E,verticalAlign:"middle"},{inheritColor:O})}));var U=new _n({shape:T.getBoundingRect(),invisible:!0}),F=a.getModel("tooltip");return F.get("show")&&ad({el:U,componentModel:o,itemName:r,itemTooltipOption:F.option}),T.add(U),T.eachChild(function(z){z.silent=!0}),U.silent=!h,this.getContentGroup().add(T),Fl(T),T.__legendDataIndex=i,T},e.prototype.layoutInner=function(t,r,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Pc(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Pc("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),d=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),y=t.getOrient().index,g=y===0?"width":"height",v=y===0?"height":"width",x=y===0?"y":"x";s==="end"?d[y]+=c[g]+p:h[y]+=f[g]+p,d[1-y]+=c[v]/2-f[v]/2,u.x=d[0],u.y=d[1],l.x=h[0],l.y=h[1];var S={x:0,y:0};return S[g]=c[g]+p+f[g],S[v]=Math.max(c[v],f[v]),S[x]=Math.min(0,f[x]+d[1-y]),S}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(er);function gve(n,e,t,r,i,a,o){function s(g,v){g.lineWidth==="auto"&&(g.lineWidth=v.lineWidth>0?2:0),iT(g,function(x,S){g[S]==="inherit"&&(g[S]=v[S])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?r.decal:l_(h,o),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),d=f.getLineStyle();if(s(d,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),!a){var p=e.get("inactiveBorderWidth"),y=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&y?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=f.get("inactiveColor"),d.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function mve(n){var e=n.icon||"roundRect",t=si(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function oF(n,e,t,r){oT(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n!=null?n:e}),aT(n,e,t,r)}function yV(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,i=e.length;ri[o],g=[-d.x,-d.y];r||(g[a]=c[u]);var v=[0,0],x=[-p.x,-p.y],S=Gt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(y){var A=t.get("pageButtonPosition",!0);A==="end"?x[a]+=i[o]-p[o]:v[a]+=p[o]+S}x[1-a]+=d[s]/2-p[s]/2,c.setPosition(g),h.setPosition(v),f.setPosition(x);var T={x:0,y:0};if(T[o]=y?i[o]:d[o],T[s]=Math.max(d[s],p[s]),T[l]=Math.min(0,p[l]+x[1-a]),h.__rectSize=i[o],y){var w={x:0,y:0};w[o]=Math.max(i[o]-p[o]-S,0),w[s]=T[s],h.setClipPath(new _n({shape:w})),h.__rectSize=w[o]}else f.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(t);return C.pageIndex!=null&&ur(c,{x:C.contentPosition[0],y:C.contentPosition[1]},y?t:null),this._updatePageInfoView(t,C),T},e.prototype._pageGo=function(t,r,i){var a=this._getPageInfo(r)[t];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var i=this._controllerGroup;k(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",f=r[h]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),d.cursor=f?"pointer":"default")});var a=i.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;a&&o&&a.setStyle("text",Ze(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=BM[o],l=OM[o],u=this._findTargetItemIndex(r),c=i.children(),h=c[u],f=c.length,d=f?1:0,p={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var y=A(h);p.contentPosition[o]=-y.s;for(var g=u+1,v=y,x=y,S=null;g<=f;++g)S=A(c[g]),(!S&&x.e>v.s+a||S&&!T(S,v.s))&&(x.i>v.i?v=x:v=S,v&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=v.i),++p.pageCount)),x=S;for(var g=u-1,v=y,x=y,S=null;g>=-1;--g)S=A(c[g]),(!S||!T(x,S.s))&&v.i=C&&w.s<=C+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(r=s)}),r!=null?r:a},e.type="legend.scroll",e}(_V);const Mve=Ave;function wve(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(r)})})}function bve(n){Hr(xV),n.registerComponentModel(Sve),n.registerComponentView(Mve),wve(n)}function Tve(n){Hr(xV),Hr(bve)}var Cve=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=tu(Bv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Bv);const Eve=Cve;var pR=In();function Rve(n,e,t){pR(n).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function Pve(n,e){for(var t=pR(n).coordSysRecordMap,r=t.keys(),i=0;ir[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Ove(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=pR(t),i=r.coordSysRecordMap||(r.coordSysRecordMap=ft());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=oV(a);k(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,Dve(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ft());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){SV(i,a);return}var c=Bve(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),lg(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Nve=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,i){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Rve(i,t,{pan:at(NM.pan,this),zoom:at(NM.zoom,this),scrollMove:at(NM.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Pve(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(uR),NM={zoom:function(n,e,t,r){var i=this.range,a=i.slice(),o=n.axisModels[0];if(o){var s=FM[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/r.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Kc(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:uF(function(n,e,t,r,i,a){var o=FM[r]([a.oldX,a.oldY],[a.newX,a.newY],e,i,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:uF(function(n,e,t,r,i,a){var o=FM[r]([0,0],[a.scrollDelta,a.scrollDelta],e,i,t);return o.signal*(n[1]-n[0])*a.scrollDelta})};function uF(n){return function(e,t,r,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,i);if(Kc(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var FM={grid:function(n,e,t,r,i){var a=t.axis,o={},s=i.model.coordinateSystem.getRect();return n=n||[0,0],a.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(n,e,t,r,i){var a=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(n,e,t,r,i){var a=t.axis,o=i.model.coordinateSystem.getRect(),s={};return n=n||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const Fve=Nve;function kve(n){cR(n),n.registerComponentModel(Eve),n.registerComponentView(Fve),Ove(n)}var Uve=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=tu(Bv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Bv);const Gve=Uve;var vp=_n,cF=7,zve=1,kM=30,Hve=7,gp="horizontal",hF="vertical",Vve=5,Wve=["line","bar","candlestick","scatter"],Xve={easing:"cubicOut",duration:100,delay:0},Yve=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=at(this._onBrush,this),this._onBrushEnd=at(this._onBrushEnd,this)},e.prototype.render=function(t,r,i,a){if(n.prototype.render.apply(this,arguments),lg(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){bv(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new zt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,i=t.get("brushSelect"),a=i?Hve:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===gp?{right:s.width-o.x-o.width,top:s.height-kM-cF-a,width:o.width,height:kM}:{right:cF,top:o.y,width:kM,height:o.height},u=ud(t.option);k(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var c=Ri(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===hF&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===gp&&!o?{scaleY:l?1:-1,scaleX:1}:i===gp&&o?{scaleY:l?1:-1,scaleX:-1}:i===hF&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,a=t.get("brushSelect");i.add(new vp({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new vp({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:at(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,i=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var h=o.getDataExtent(l),f=(h[1]-h[0])*.3;h=[h[0]-f,h[1]+f];var d=[0,r[1]],p=[0,r[0]],y=[[r[0],0],[0,0]],g=[],v=p[1]/(o.count()-1),x=0,S=Math.round(o.count()/r[0]),A;o.each([l],function(E,R){if(S>0&&R%S){x+=v;return}var I=E==null||isNaN(E)||E==="",O=I?0:Gn(E,h,d,!0);I&&!A&&R?(y.push([y[y.length-1][0],0]),g.push([g[g.length-1][0],0])):!I&&A&&(y.push([x,0]),g.push([x,0])),y.push([x,O]),g.push([x,O]),x+=v,A=I}),u=this._shadowPolygonPts=y,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var T=this.dataZoomModel;function w(E){var R=T.getModel(E?"selectedDataBackground":"dataBackground"),I=new zt,O=new os({shape:{points:u},segmentIgnoreThreshold:1,style:R.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),U=new Ha({shape:{points:c},segmentIgnoreThreshold:1,style:R.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(O),I.add(U),I}for(var C=0;C<3;C++){var P=w(C===1);this._displayables.sliderGroup.add(P),this._displayables.dataShadowSegs.push(P)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var i,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();k(l,function(u){if(!i&&!(r!==!0&&en(Wve,u.get("type"))<0)){var c=a.getComponent(Dl(o),s).axis,h=Jve(o),f,d=u.coordinateSystem;h!=null&&d.getOtherAxis&&(f=d.getOtherAxis(c).inverse),h=u.getData().mapDimension(h),i={thisAxis:c,series:u,thisDim:o,otherDim:h,otherAxisInverse:f}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,i=r.handles=[null,null],a=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,h=l.get("brushSelect"),f=r.filler=new vp({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new vp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:zve,fill:"rgba(0,0,0,0)"}})),k([0,1],function(S){var A=l.get("handleIcon");!t_[A]&&A.indexOf("path://")<0&&A.indexOf("image://")<0&&(A="path://"+A);var T=si(A,-1,0,2,2,null,!0);T.attr({cursor:fF(this._orient),draggable:!0,drift:at(this._onDragMove,this,S),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1),z2:5});var w=T.getBoundingRect(),C=l.get("handleSize");this._handleHeight=Lt(C,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,T.setStyle(l.getModel("handleStyle").getItemStyle()),T.style.strokeNoScale=!0,T.rectHover=!0,T.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Fl(T);var P=l.get("handleColor");P!=null&&(T.style.fill=P),o.add(i[S]=T);var E=l.getModel("textStyle");t.add(a[S]=new xn({silent:!0,invisible:!0,style:pr(E,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:E.getTextColor(),font:E.getFont()}),z2:10}))},this);var d=f;if(h){var p=Lt(l.get("moveHandleSize"),s[1]),y=r.moveHandle=new _n({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,v=r.moveHandleIcon=si(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);v.silent=!0,v.y=s[1]+p/2-.5,y.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var x=Math.min(s[1]/2,Math.max(p,10));d=r.moveZone=new _n({invisible:!0,shape:{y:s[1]-x,height:p+x}}),d.on("mouseover",function(){u.enterEmphasis(y)}).on("mouseout",function(){u.leaveEmphasis(y)}),o.add(y),o.add(v),o.add(d)}d.attr({draggable:!0,cursor:fF(this._orient),drift:at(this._onDragMove,this,"all"),ondragstart:at(this._showDataInfo,this,!0),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[Gn(t[0],[0,100],r,!0),Gn(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Kc(r,a,o,i.get("zoomLock")?"all":t,s.minSpan!=null?Gn(s.minSpan,l,o,!0):null,s.maxSpan!=null?Gn(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=zo([Gn(a[0],o,l,!0),Gn(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,i=this._handleEnds,a=zo(i.slice()),o=this._size;k([0,1],function(d){var p=r.handles[d],y=this._handleHeight;p.attr({scaleX:y/2,scaleY:y/2,x:i[d]+(d?-1:1),y:o[1]/2-y/2})},this),r.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cr[0]||i[1]<0||i[1]>r[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,i=t.offsetY;this._brushStart=new Ut(r,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=zo([Gn(i.x,o,s,!0),Gn(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Hs(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new vp({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Xve:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=oV(this.dataZoomModel).infoList;if(!t&&r.length){var i=r[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(uR);function Jve(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function fF(n){return n==="vertical"?"ns-resize":"ew-resize"}const Zve=Yve;function jve(n){n.registerComponentModel(Gve),n.registerComponentView(Zve),cR(n)}function Kve(n){Hr(kve),Hr(jve)}var qve={get:function(n,e,t){var r=mt((Qve[n]||{})[e]);return t&&Ge(r)?r[r.length-1]:r}},Qve={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const AV=qve;var dF=Hi.mapVisual,$ve=Hi.eachVisual,ege=Ge,pF=k,tge=zo,nge=Gn,rge=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,r){var i=this.option;!r&&Jpe(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=at(t,this),this.controllerVisuals=eF(this.option.controller,r,t),this.targetVisuals=eF(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,a){r.push(a)}):r=$n(t),r},e.prototype.eachTargetSeries=function(t,r){k(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&t.call(r,a)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(i){i===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Ge(t)&&(t=t.slice(),u=!0);var c=r?t:u?[h(t[0]),h(t[1])]:h(t);if(Ze(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Tt(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+c[1]:t[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function h(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=tge([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var i=t.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},a=r.target||(r.target={}),o=r.controller||(r.controller={});Nt(a,i),Nt(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(h){ege(r.color)&&!h.inRange&&(h.inRange={color:r.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,f,d){var p=h[f],y=h[d];p&&!y&&(y=h[d]={},pF(p,function(g,v){if(Hi.isValidType(v)){var x=AV.get(v,"inactive",s);x!=null&&(y[v]=x,v==="color"&&!y.hasOwnProperty("opacity")&&!y.hasOwnProperty("colorAlpha")&&(y.opacity=[0,0]))}}))}function c(h){var f=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,d=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),y=this.getItemSymbol(),g=y||"roundRect";pF(this.stateList,function(v){var x=this.itemSize,S=h[v];S||(S=h[v]={color:s?p:[p]}),S.symbol==null&&(S.symbol=f&&mt(f)||(s?g:[g])),S.symbolSize==null&&(S.symbolSize=d&&mt(d)||(s?x[0]:[x[0],x[0]])),S.symbol=dF(S.symbol,function(w){return w==="none"?g:w});var A=S.symbolSize;if(A!=null){var T=-1/0;$ve(A,function(w){w>T&&(T=w)}),S.symbolSize=dF(A,function(w){return nge(w,[0,T],[0,x[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(an);const __=rge;var vF=[20,140],ige=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=vF[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=vF[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):Ge(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),k(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=zo((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=i[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&a.push(l)},this),r.push({seriesId:i.id,dataIndex:a})},this),r},e.prototype.getVisualMeta=function(t){var r=gF(this,"outOfRange",this.getExtent()),i=gF(this,"inRange",this.option.range.slice()),a=[];function o(d,p){a.push({value:d,color:t(d,p)})}for(var s=0,l=0,u=i.length,c=r.length;lt[1])break;a.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return a.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),a},e.prototype._createBarPoints=function(t,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,i=this.visualMapModel.get("inverse");return new zt(r==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();sge([0,1],function(c){var h=o[c];h.setStyle("fill",r.handlesColor[c]),h.y=t[c];var f=Bo(t[c],[0,l[1]],u,!0),d=this.getControllerVisual(f,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=lo(i.handleLabelPoints[c],kl(h,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,h=c.indicator;if(h){h.attr("invisible",!1);var f={convertOpacityToAlpha:!0},d=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),y=Bo(t,s,u,!0),g=l[0]-p/2,v={x:h.x,y:h.y};h.y=y,h.x=g;var x=lo(c.indicatorLabelPoint,kl(h,this.group)),S=c.indicatorLabel;S.attr("invisible",!1);var A=this._applyTransform("left",c.mainGroup),T=this._orient,w=T==="horizontal";S.setStyle({text:(i||"")+o.formatValueText(r),verticalAlign:w?A:"middle",align:w?"center":A});var C={x:g,y,style:{fill:d}},P={style:{x:x[0],y:x[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var E={duration:100,easing:"cubicInOut",additive:!0};h.x=v.x,h.y=v.y,h.animateTo(C,E),S.animateTo(P,E)}else h.attr(C),S.attr(P);this._firstShowIndicator=!1;var R=this._shapes.handleLabels;if(R)for(var I=0;Io[1]&&(h[1]=1/0),r&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,d=[];(r||xF(i))&&(d=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var p=Hee(f,d);this._dispatchHighDown("downplay",Cy(p[0],i)),this._dispatchHighDown("highlight",Cy(p[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(yc(t.target,function(l){var u=tn(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(r.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i=0&&(a.dimension=o,r.push(a))}}),n.getData().setVisual("visualMeta",r)}}];function gge(n,e,t,r){for(var i=e.targetVisuals[r],a=Hi.prepareVisualTypes(i),o={color:l5(n.getData(),"color")},s=0,l=a.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(dge,pge),k(vge,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(mge))}function yge(n){n.registerComponentModel(age),n.registerComponentView(fge),bV(n)}var _ge=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],xge[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=mt(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=He(this._pieceList,function(l){return l=mt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},i=Hi.listVisualTypes(),a=this.isCategory();k(t.pieces,function(s){k(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),k(r,function(s,l){var u=!1;k(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&k(this.stateList,function(c){(t[c]||(t[c]={}))[l]=AV.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var i=this.option,a=this._pieceList,o=(r?i:t).selected||{};if(i.selected=o,k(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;k(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=mt(t)},e.prototype.getValueState=function(t){var r=Hi.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Hi.findPieceIndex(l,i);c===t&&o.push(u)},this),r.push({seriesId:a.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var i=t.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],i=["",""],a=this;function o(c,h){var f=a.getRepresentValue({interval:c});h||(h=a.getValueState(f));var d=t(f,h);c[0]===-1/0?i[0]=d:c[1]===1/0?i[1]=d:r.push({value:c[0],color:d},{value:c[1],color:d})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return k(s,function(c){var h=c.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:r,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=tu(__.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(__),xge={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(t)!==a&&t<5;)t++;e.precision=t,a=+a.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function wF(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Sge=_ge;var Age=function(n){we(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,i=r.get("textGap"),a=r.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),h=c.endsText,f=ks(r.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,f,l),k(c.viewPieceList,function(d){var p=d.piece,y=new zt;y.onclick=at(this._onItemClick,this,p),this._enableHoverLink(y,d.indexInModelPieceList);var g=r.getRepresentValue(p);if(this._createItemSymbol(y,g,[0,0,u[0],u[1]]),f){var v=this.visualMapModel.getValueState(g);y.add(new xn({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:v==="outOfRange"?.5:1}}))}t.add(y)},this),h&&this._renderEndsText(t,h[1],u,f,l),Pc(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var i=this;t.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Cy(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return wV(t,this.api,t.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,r,i,a,o){if(r){var s=new zt,l=this.visualMapModel.textStyleModel;s.add(new xn({style:pr(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=He(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),a=t.get("orient"),o=t.get("inverse");return(a==="horizontal"?o:!o)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},e.prototype._createItemSymbol=function(t,r,i){t.add(si(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,i=r.option,a=i.selectedMode;if(a){var o=mt(i.selected),s=r.getSelectedMapKey(t);a==="single"||a===!0?(o[s]=!0,k(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(MV);const Mge=Age;function wge(n){n.registerComponentModel(Sge),n.registerComponentView(Mge),bV(n)}function bge(n){Hr(yge),Hr(wge)}var Tge={label:{enabled:!0},decal:{show:!1}},bF=In(),Cge={};function Ege(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=mt(Tge);Nt(r.label,n.getLocaleModel().get("aria"),!1),Nt(t.option,r,!1),i(),a();function i(){var u=t.getModel("decal"),c=u.get("show");if(c){var h=ft();n.eachSeries(function(f){if(!f.isColorBySeries()){var d=h.get(f.type);d||(d={},h.set(f.type,d)),bF(f).scope=d}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(Tt(f.enableAriaDecal)){f.enableAriaDecal();return}var d=f.getData();if(f.isColorBySeries()){var x=wL(f.ecModel,f.name,Cge,n.getSeriesCount()),S=d.getVisual("decal");d.setVisual("decal",A(S,x))}else{var p=f.getRawData(),y={},g=bF(f).scope;d.each(function(T){var w=d.getRawIndex(T);y[w]=T});var v=p.count();p.each(function(T){var w=y[T],C=p.getName(T)||T+"",P=wL(f.ecModel,C,g,v),E=d.getItemVisual(w,"decal");d.setItemVisual(w,"decal",A(E,P))})}function A(T,w){var C=T?De(De({},w),T):w;return C.dirty=!0,C}})}}function a(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=bt(c.option,u),!!c.get("enabled")){var h=e.getZr().dom;if(c.get("description")){h.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),d=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,y=Math.min(f,p),g;if(!(f<1)){var v=s();if(v){var x=c.get(["general","withTitle"]);g=o(x,{title:v})}else g=c.get(["general","withoutTitle"]);var S=[],A=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(A,{seriesCount:f}),n.eachSeries(function(P,E){if(E1?c.get(["series","multiple",O]):c.get(["series","single",O]),R=o(R,{seriesId:P.seriesIndex,seriesName:P.get("name"),seriesType:l(P.subType)});var U=P.getData();if(U.count()>d){var F=c.get(["data","partialData"]);R+=o(F,{displayCnt:d})}else R+=c.get(["data","allData"]);for(var z=c.get(["data","separator","middle"]),X=c.get(["data","separator","end"]),ne=[],H=0;H=Ju:-u>=Ju),d=u>0?u%Ju:u%Ju+Ju,p=!1;f?p=!0:Cl(h)?p=!1:p=d>=TV==!!c;var y=e+r*zM(o),g=t+i*GM(o);this._start&&this._add("M",y,g);var v=Math.round(a*Jge);if(f){var x=1/this._p,S=(c?1:-1)*(Ju-x);this._add("A",r,i,v,1,+c,e+r*zM(o+S),t+i*GM(o+S)),x>.01&&this._add("A",r,i,v,0,+c,y,g)}else{var A=e+r*zM(s),T=t+i*GM(s);this._add("A",r,i,v,+p,+c,A,T)}},n.prototype.rect=function(e,t,r,i){this._add("M",e,t),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,i,a,o,s,l,u){for(var c=[],h=this._p,f=1;f"}function rme(n){return""}function vR(n,e){e=e||{};var t=e.newline?` +`:"";function r(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return nme(o,s)+(o!=="style"?Ai(l):l||"")+(a?""+t+He(a,function(u){return r(u)}).join(t)+t:"")+rme(o)}return r(n)}function ime(n,e,t){t=t||{};var r=t.newline?` +`:"",i=" {"+r,a=r+"}",o=He(Xt(n),function(l){return l+i+He(Xt(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+a}).join(r),s=He(Xt(e),function(l){return"@keyframes "+l+i+He(Xt(e[l]),function(u){return u+i+He(Xt(e[l][u]),function(c){var h=e[l][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?"":[""].join(r)}function lT(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function TF(n,e,t,r){return Tr("svg","root",{width:n,height:e,xmlns:EV,"xmlns:xlink":RV,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var CF={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},nc="transform-origin";function ame(n,e,t){var r=De({},n.shape);De(r,e),n.buildPath(t,r);var i=new CV;return i.reset(yG(n)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function ome(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[nc]=t+"px "+r+"px")}var sme={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function DV(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function lme(n,e,t){var r=n.shape.paths,i={},a,o;if(k(r,function(l){var u=lT(t.zrId);u.animation=!0,Jx(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,f=Xt(c),d=f.length;if(d){o=f[d-1];var p=c[o];for(var y in p){var g=p[y];i[y]=i[y]||{d:""},i[y].d+=g.d||""}for(var v in h){var x=h[v].animation;x.indexOf(o)>=0&&(a=x)}}}),!!a){e.d=!1;var s=DV(i,t);return a.replace(o,s)}}function EF(n){return Ze(n)?CF[n]?"cubic-bezier("+CF[n]+")":IC(n)?n:"":""}function Jx(n,e,t,r){var i=n.animators,a=i.length,o=[];if(n instanceof gx){var s=lme(n,e,t);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var Oe=DV(C,t);return Oe+" "+x[0]+" both"}}for(var g in l){var s=y(l[g]);s&&o.push(s)}if(o.length){var v=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+v]={animation:o.join(",")},e.class=v}}var Ov=Math.round;function IV(n){return n&&Ze(n.src)}function LV(n){return n&&Tt(n.toDataURL)}function gR(n,e,t,r){$ge(function(i,a){var o=i==="fill"||i==="stroke";o&&mG(a)?OV(e,n,i,r):o&&BC(a)?NV(t,n,i,r):n[i]=a},e,t,!1),vme(t,n,r)}function RF(n){return Cl(n[0]-1)&&Cl(n[1])&&Cl(n[2])&&Cl(n[3]-1)}function ume(n){return Cl(n[4])&&Cl(n[5])}function mR(n,e,t){if(e&&!(ume(e)&&RF(e))){var r=t?10:1e4;n.transform=RF(e)?"translate("+Ov(e[4]*r)/r+" "+Ov(e[5]*r)/r+")":E$(e)}}function PF(n,e,t){for(var r=n.points,i=[],a=0;aa?(p=t[l+1]==null?null:t[l+1].elm,UV(n,p,t,i,l)):x_(n,e,r,a))}function rf(n,e){var t=e.elm=n.elm,r=n.children,i=e.children;n!==e&&(yR(n,e),uT(e.text)?No(r)&&No(i)?r!==i&&xme(t,r,i):No(i)?(No(n.text)&&HM(t,""),UV(t,null,i,0,i.length-1)):No(r)?x_(t,r,0,r.length-1):No(n.text)&&HM(t,""):n.text!==e.text&&(No(r)&&x_(t,r,0,r.length-1),HM(t,e.text)))}function Sme(n,e){if(Cp(n,e))rf(n,e);else{var t=n.elm,r=FV(t);Nv(e),r!==null&&(ac(r,e.elm,kV(t)),x_(r,[n],0,0))}return e}var Ame=0,Mme=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=FF(),this.configLayer=FF(),this.storage=t,this._opts=r=De({},r),this.root=e,this._id="zr"+Ame++,this._oldVNode=TF(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=PV("svg");yR(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Sme(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return IF(e,lT(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,i=this._height,a=lT(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress;var o=[],s=this._bgVNode=wme(r,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Tr("g","main",{},[]);this._paintList(t,a,l?l.children:o),l&&o.push(l);var u=He(Xt(a.defs),function(f){return a.defs[f]});if(u.length&&o.push(Tr("defs","defs",{},u)),e.animation){var c=ime(a.cssNodes,a.cssAnims,{newline:!0});if(c){var h=Tr("style","stl",{},[],c);o.push(h)}}return TF(r,i,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},vR(this.renderToVNode({animation:Gt(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Gt(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var i=e.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[y]===l[y]);y--);for(var g=p-1;g>y;g--)o--,s=a[o-1];for(var v=y+1;v{i==null||i.resize()},{wait:200});q.useEffect(()=>(o(),()=>{l()}),[]),q.useEffect(()=>{if(!e)return s(n),()=>{l()}},[e,n]);const o=(c=t)=>{const h=r==null?void 0:r.current;h&&(i=Yge.init(h,c),window.addEventListener("resize",a))},s=c=>{!i&&(o(),!i)||(i==null||i.clear(),i==null||i.setOption(c))},l=()=>{i&&(window.removeEventListener("resize",a),i.dispose(),i=null)};return{chartRef:r,getInstance:()=>(i||o(),i)}}const VM=({loading:n,options:e,height:t="100%"})=>{const{chartRef:r}=Cme(e,n);return ee.jsx("div",{ref:r,style:{width:"100%",height:t}})},Eme=UF(({token:n})=>({flex:{display:"flex",".flex-title":{color:n.colorPrimary},".card-left":{flex:1,".card-count":{display:"flex",alignItems:"center"}},".card-right":{width:"40%"}}})),{Text:WM,Title:qh}=cT,Rme=()=>{const{styles:n}=Eme(),e=GF(),[t,r]=q.useState(!0);return q.useEffect(()=>{setTimeout(()=>{r(!1)},1500)},[]),ee.jsxs(ee.Fragment,{children:[ee.jsx(Oo,{span:8,children:ee.jsx(t1,{loading:t,children:ee.jsxs("div",{className:$S(n.flex),children:[ee.jsxs("div",{className:"card-left",children:[ee.jsx(WM,{strong:!0,children:Yn("活跃用户数量")}),ee.jsxs(qh,{className:"count",level:5,style:{margin:"8px 0"},children:[ee.jsx($0,{size:20,style:{marginRight:"4px",color:e.colorPrimary},name:"solar"}),"+2.6%"]}),ee.jsx(qh,{level:2,style:{margin:0},children:ee.jsx(e1,{start:0,end:122,duration:3})})]}),ee.jsx("div",{className:"card-right",children:ee.jsx(VM,{loading:t,options:{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"30%",right:"0%",bottom:"0%",top:"40%",containLabel:!0},xAxis:[{show:!1,type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{show:!1,type:"value"}],series:[{name:"Direct",type:"bar",barWidth:"40%",itemStyle:{color:e.colorPrimary},data:[10,52,200,334,390,330,220]}]}})})]})})}),ee.jsx(Oo,{span:8,children:ee.jsx(t1,{loading:t,children:ee.jsxs("div",{className:$S(n.flex),children:[ee.jsxs("div",{className:"card-left",children:[ee.jsx(WM,{strong:!0,children:Yn("总下载量")}),ee.jsxs(qh,{className:"count",level:5,style:{margin:"8px 0"},children:[ee.jsx($0,{size:20,style:{marginRight:"4px",color:e.colorError,transform:"rotate(180deg)"},name:"solar"}),"-2.6%"]}),ee.jsx(qh,{level:2,style:{margin:0},children:ee.jsx(e1,{start:0,end:1322,duration:3})})]}),ee.jsx("div",{className:"card-right",children:ee.jsx(VM,{loading:t,options:{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"30%",right:"0%",bottom:"0%",top:"40%",containLabel:!0},xAxis:[{show:!1,type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{show:!1,type:"value"}],series:[{name:"Direct",type:"bar",barWidth:"40%",itemStyle:{color:e.colorPrimary},data:[200,334,390,30,120,132,220]}]}})})]})})}),ee.jsx(Oo,{span:8,children:ee.jsx(t1,{loading:t,children:ee.jsxs("div",{className:$S(n.flex),children:[ee.jsxs("div",{className:"card-left",children:[ee.jsx(WM,{strong:!0,children:Yn("总安装数量")}),ee.jsxs(qh,{className:"count",level:5,style:{margin:"8px 0"},children:[ee.jsx($0,{size:20,style:{marginRight:"4px",color:e.colorPrimary},name:"solar"}),"+5.6%"]}),ee.jsx(qh,{level:2,style:{margin:0},children:ee.jsx(e1,{start:0,end:12322,duration:3})})]}),ee.jsx("div",{className:"card-right",children:ee.jsx(VM,{loading:t,options:{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"30%",right:"0%",bottom:"0%",top:"40%",containLabel:!0},xAxis:[{show:!1,type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{show:!1,type:"value"}],series:[{name:"Direct",type:"bar",barWidth:"40%",itemStyle:{color:e.colorPrimary},data:[10,52,100,34,90,100,120]}]}})})]})})})]})},Pme=[{title:Yn("文章标题"),key:"title",search:!0,render:(n,e)=>{const{title:t,article_id:r}=e;return ee.jsx("a",{href:`https://juejin.cn/post/${r}`,target:"_blank",rel:"noreferrer",children:t})}},{title:Yn("简介"),key:"brief_content",render:(n,e)=>{const{brief_content:t}=e;return t}},{title:Yn("阅读数"),width:"120px",key:"view_count",render:(n,e)=>{const{view_count:t}=e;return t}},{title:Yn("点赞数"),key:"digg_count",width:"120px",sort:!0,render:(n,e)=>{const{digg_count:t}=e;return t}},{title:Yn("收藏数"),key:"collect_count",width:"90px",render:(n,e)=>{const{collect_count:t}=e;return t}}];function Dme(){return ee.jsx(kF,{children:ee.jsx(KW,{api:YW,title:Yn("我的掘金文章"),fields:Pme,rowKey:"sort_id"})})}const Ime="/react-antd-admin-pnpm/assets/cover_1-7d839a8b.jpg",Lme="/react-antd-admin-pnpm/assets/cover_2-8c995632.jpg",Bme="/react-antd-admin-pnpm/assets/cover_3-10dbb9dd.jpg",Ome="/react-antd-admin-pnpm/assets/cover_4-c88be22d.jpg",{Title:mp,Text:Io}=cT,Nme=()=>{const[n,e]=q.useState(1),t=GF();return ee.jsxs(e8,{sliderConfig:{dots:!0,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:4e3,afterChange:r=>{e(r+1)}},children:[ee.jsxs("div",{className:"image-box",children:[ee.jsx("img",{src:Ime,alt:""}),ee.jsxs("div",{className:"img-info",children:[ee.jsx($r,{run:n===1,delay:100,children:ee.jsx(Io,{ellipsis:!0,style:{fontWeight:"bold",color:t.colorPrimary},type:"success",children:Yn("作者:Gbeata")})}),ee.jsx($r,{run:n===1,delay:200,children:ee.jsx(mp,{style:{color:"white",margin:"8px 0"},ellipsis:!0,level:4,color:"white",children:Yn("还没有想清楚如何介绍自己和系统之前,就请允许我使用这些文字占位吧~")})}),ee.jsx($r,{run:n===1,delay:300,children:ee.jsx(Io,{ellipsis:!0,style:{color:"white"},children:Yn("详细介绍下自己吧:我是一个小前端呀小前端,小前端啊小前端")})})]})]}),ee.jsxs("div",{className:"image-box",children:[ee.jsx("img",{src:Lme,alt:""}),ee.jsxs("div",{className:"img-info",children:[ee.jsx($r,{run:n===2,delay:100,children:ee.jsx(Io,{ellipsis:!0,style:{fontWeight:"bold",color:t.colorPrimary},type:"success",children:Yn("作者:Gbeata")})}),ee.jsx($r,{run:n===2,delay:200,children:ee.jsx(mp,{style:{color:"white",margin:"8px 0"},ellipsis:!0,level:4,color:"white",children:Yn("还没有想清楚如何介绍自己和系统之前,就请允许我使用这些文字占位吧~")})}),ee.jsx($r,{run:n===2,delay:300,children:ee.jsx(Io,{ellipsis:!0,style:{color:"white"},children:Yn("详细介绍下自己吧:我是一个小前端呀小前端,小前端啊小前端")})})]})]}),ee.jsxs("div",{className:"image-box",children:[ee.jsx("img",{src:Bme,alt:""}),ee.jsxs("div",{className:"img-info",children:[ee.jsx($r,{run:n===3,delay:100,children:ee.jsx(Io,{ellipsis:!0,style:{fontWeight:"bold",color:t.colorPrimary},type:"success",children:Yn("作者:Gbeata")})}),ee.jsx($r,{run:n===3,delay:200,children:ee.jsx(mp,{style:{color:"white",margin:"8px 0"},ellipsis:!0,level:4,color:"white",children:Yn("还没有想清楚如何介绍自己和系统之前,就请允许我使用这些文字占位吧~")})}),ee.jsx($r,{run:n===3,delay:300,children:ee.jsx(Io,{ellipsis:!0,style:{color:"white"},children:Yn("详细介绍下自己吧:我是一个小前端呀小前端,小前端啊小前端")})})]})]}),ee.jsxs("div",{className:"image-box",children:[ee.jsx("img",{src:Ome,alt:""}),ee.jsxs("div",{className:"img-info",children:[ee.jsx($r,{run:n===4,delay:100,children:ee.jsx(Io,{ellipsis:!0,style:{fontWeight:"bold",color:t.colorPrimary},type:"success",children:Yn("作者:Gbeata")})}),ee.jsx($r,{run:n===4,delay:200,children:ee.jsx(mp,{style:{color:"white",margin:"8px 0"},ellipsis:!0,level:4,color:"white",children:Yn("还没有想清楚如何介绍自己和系统之前,就请允许我使用这些文字占位吧~")})}),ee.jsx($r,{run:n===4,delay:300,children:ee.jsx(Io,{ellipsis:!0,style:{color:"white"},children:Yn("详细介绍下自己吧:我是一个小前端呀小前端,小前端啊小前端")})})]})]}),ee.jsxs("div",{className:"image-box",children:[ee.jsx("img",{src:ZW,alt:""}),ee.jsxs("div",{className:"img-info",children:[ee.jsx($r,{run:n===5,delay:100,children:ee.jsx(Io,{ellipsis:!0,style:{fontWeight:"bold",color:t.colorPrimary},type:"success",children:Yn("作者:Gbeata")})}),ee.jsx($r,{run:n===5,delay:200,children:ee.jsx(mp,{style:{color:"white",margin:"8px 0"},ellipsis:!0,level:4,color:"white",children:Yn("还没有想清楚如何介绍自己和系统之前,就请允许我使用这些文字占位吧~")})}),ee.jsx($r,{run:n===5,delay:300,children:ee.jsx(Io,{ellipsis:!0,style:{color:"white"},children:Yn("详细介绍下自己吧:我是一个小前端呀小前端,小前端啊小前端")})})]})]})]})},Fme=UF(({token:n})=>({"home-container":{height:"100vh",".gutter-row":{"&:first-child":{display:"flex"}},".user-info":{backgroundColor:n.colorPrimaryBg,display:"flex",alignItems:"center"},".slick":{height:"100%",overflow:"hidden",div:{height:"100%"},".img-info":{position:"absolute",bottom:"0",left:"0",right:"0",height:"auto",zIndex:2,padding:n.paddingLG,overflow:"hidden",div:{height:"auto"}},".image-box":{position:"relative","&:before":{content:"''",top:"0px",left:"0px",width:"100%",height:"100%",zIndex:1,position:"absolute",background:"linear-gradient(rgba(22, 28, 36, 0) 0%, rgb(22, 28, 36) 75%)"}},"&-dots":{position:"absolute",top:"8px",left:"8px",bottom:"auto",width:"auto",li:{margin:0,"button:before":{color:n.colorPrimary,fontSize:"10px",width:"auto",height:"auto"}}}}}})),{Title:kme,Text:Ume}=cT,e0e=()=>{const{styles:n}=Fme(),{t:e}=JW();return ee.jsx("div",{className:n["home-container"],children:ee.jsxs($2,{gutter:[16,16],children:[ee.jsx(Oo,{className:"gutter-row",span:16,children:ee.jsx("div",{className:"user-info g-paper",children:ee.jsx(qW,{panelConfig:{friction:2,precision:.02},children:ee.jsxs($2,{style:{padding:"40px"},children:[ee.jsxs(Oo,{span:12,children:[ee.jsx(kme,{level:3,children:e("欢迎回来 👋 Gbeata")}),ee.jsx(Ume,{type:"secondary",children:e("如果你正在使用或者将要使用这个系统,希望你在探索的过程中学有所得,如果正巧你遇到了一个问题,请告诉我们,我们会尽快处理!")}),ee.jsx(DW,{dashed:!0}),ee.jsx(IW,{type:"primary",children:e("现在出发!")})]}),ee.jsx(Oo,{span:12,children:ee.jsx($0,{name:"homeinfo",style:{width:"100%",height:"100%"}})})]})})})}),ee.jsx(Oo,{className:"gutter-row",span:8,children:ee.jsx("div",{className:"slick g-paper",children:ee.jsx(Nme,{})})}),ee.jsx(Rme,{}),ee.jsx(Oo,{span:12,children:ee.jsx(jW,{})}),ee.jsx(Oo,{span:12,children:ee.jsx(cQ,{})}),ee.jsx(Oo,{span:24,children:ee.jsx(Dme,{})})]})})};export{e0e as default}; diff --git a/assets/websiteSetting-607ea25c.js b/assets/websiteSetting-168278cd.js similarity index 97% rename from assets/websiteSetting-607ea25c.js rename to assets/websiteSetting-168278cd.js index 6dffd1c..2c12268 100644 --- a/assets/websiteSetting-607ea25c.js +++ b/assets/websiteSetting-168278cd.js @@ -1 +1 @@ -import{j as t,i}from"./antd-d487744a.js";import{S as m,t as e,o as p}from"./entry/index-a6cf600d.1715609901087.js";const n={"compo_page-wrapper":"_compo_page-wrapper_s53in_1","page-header":"_page-header_s53in_1","page-header-name":"_page-header-name_s53in_9","page-content":"_page-content_s53in_17"},l=a=>{var s,r;function o(){var c;p((c=a.plugin)==null?void 0:c.url)}return t.jsxs("div",{className:n["compo_page-wrapper"],children:[t.jsxs("div",{className:n["page-header"],children:[t.jsxs("div",{className:n["page-header-name"],children:[t.jsx(m,{name:"hints",size:18}),t.jsx("span",{children:(s=a.plugin)==null?void 0:s.name})]}),t.jsx("p",{children:(r=a.plugin)==null?void 0:r.desc}),t.jsxs("p",{children:[t.jsx("span",{children:e("github源码:")}),t.jsx(i,{type:"link",size:"small",onClick:o,children:e("立即访问")})]})]}),t.jsx("div",{className:n["page-content"],children:a.children})]})},u={name:e("Form表单"),url:"https://www.antdv.com/components/form",desc:e("ant-design-form: 使用 ant-design 的 form 组件, 可用以收集、校验和提交数据等操作。")},h={name:e("Form查询表单"),url:e("暂未发布,可直接查看 /packages/gbeata 组件库"),desc:e("GSearchForm: 使用 ant-design 的 form 组件, 进行二次封装的组件,具体实现可查看 /packages/gbeata/src/GSearchForm 组件库")};e("Form表单设计器"),e("form-create-designer: 一个通过拖拽的方式快速创建表单的设计器组件, 能提高开发者对表单的开发效率, 节省开发者的时间。");e("Table表格"),e("ant-design-table: 使用 ant-design 的 table 组件, 可用于展示多条结构类似的数据, 并对其进行相关操作。");e("Table表格(可编辑行)"),e("ant-design-table: 使用 ant-design 的 table 组件, 可用于展示多条结构类似的数据, 并对其进行行数据编辑操作。");e("Tree树形控件"),e("ant-design-tree: 基于Ant-Design的Tree组件, 可以完整展现其中的层级关系, 并具有展开收起选择等交互功能。");const b={name:e("Transfer穿梭框"),url:"https://ant-design.antgroup.com/components/transfer",desc:e("ant-design-transfer: 使用 ant-design 的 transfer 组件, 可用于对列表数据进行选中、取消等操作。")},x={name:e("Upload图片上传组件"),url:"https://antdv.com/components/upload",desc:e("ant-design-upload: 使用 ant-design 的 upload 组件, 并具有多种列表展示方式。")};e("Video视频播放器"),e("Video-React: 一个使用 React 为 HTML5 构建的web视频播放器, 适用于目前主流网络视频的播放。");e("JS-xlsx插件"),e("JS-xlsx: 由SheetJS出品的一款非常方便的只需要纯JS即可读取和导出excel的工具库, 功能强大, 支持xlsx、csv、txt等格式。");const R={name:e("Sortable拖拽列表"),url:"https://github.com/SortableJS/react-sortablejs",desc:e("ReactSortable: 基于Sortable.js的react组件, 用以实现拖拽功能。")},_={name:e("React-Rnd拖拽组件"),url:"https://github.com/bokuweb/react-rnd",desc:e("React-Rnd: 一款可调整大小和可拖拽的React组件。")};e("React-Cropper图片裁剪"),e("react-cropper: 一个优雅的图片裁剪插件, 可实现图片裁剪、图片生成等功能, 并支持生成png、jpeg、webp等图片格式。");e("Image图片合成"),e("图片合成: 基于VueDRR拖拽功能, 在其上通过叠加图片、文字等, 实现图片的叠加伪合成功能。");e("Image图片压缩"),e("ImageCompress: 纯JS实现对图片的等比压缩和放大的功能, 并能对图片进行下载。");const S={name:e("CountUp数字滚动"),url:"https://github.com/glennreyes/react-countup",desc:e("React-CountUp: 一个无依赖、轻量级的react数字滚动插件, 以更有趣的方式显示数字数据。")};e("CodeMirror代码编辑器"),e("React-CodeMirror: 是一款基于 react 的代码编辑器, 可支持html、javascript、typescript等。");e("AntV-G6流程图"),e("antv-g6: 一个图可视化引擎。它提供了图的绘制、布局、分析、交互、动画等图可视化的基础能力。");e("Tree-Org树状组织图"),e("react-tree-org: 基于 react 的树结构组织图, 可用于公司组织架构展示。");e("富文本编辑器"),e("wangEditor: 基于javascript和css开发的 Web富文本编辑器, 轻量、简洁、易用、开源免费。");e("Markdown编辑器"),e("React-Md-Editor: 是一款基于 react 的 Markdown 编辑器,比较适合博客系统。");export{S as C,u as F,l as P,_ as R,R as S,b as T,x as U,h as a}; +import{j as t,i}from"./antd-66264537.js";import{S as m,t as e,o as p}from"./entry/index-49ff40a5.1715612414483.js";const n={"compo_page-wrapper":"_compo_page-wrapper_s53in_1","page-header":"_page-header_s53in_1","page-header-name":"_page-header-name_s53in_9","page-content":"_page-content_s53in_17"},l=a=>{var s,r;function o(){var c;p((c=a.plugin)==null?void 0:c.url)}return t.jsxs("div",{className:n["compo_page-wrapper"],children:[t.jsxs("div",{className:n["page-header"],children:[t.jsxs("div",{className:n["page-header-name"],children:[t.jsx(m,{name:"hints",size:18}),t.jsx("span",{children:(s=a.plugin)==null?void 0:s.name})]}),t.jsx("p",{children:(r=a.plugin)==null?void 0:r.desc}),t.jsxs("p",{children:[t.jsx("span",{children:e("github源码:")}),t.jsx(i,{type:"link",size:"small",onClick:o,children:e("立即访问")})]})]}),t.jsx("div",{className:n["page-content"],children:a.children})]})},u={name:e("Form表单"),url:"https://www.antdv.com/components/form",desc:e("ant-design-form: 使用 ant-design 的 form 组件, 可用以收集、校验和提交数据等操作。")},h={name:e("Form查询表单"),url:e("暂未发布,可直接查看 /packages/gbeata 组件库"),desc:e("GSearchForm: 使用 ant-design 的 form 组件, 进行二次封装的组件,具体实现可查看 /packages/gbeata/src/GSearchForm 组件库")};e("Form表单设计器"),e("form-create-designer: 一个通过拖拽的方式快速创建表单的设计器组件, 能提高开发者对表单的开发效率, 节省开发者的时间。");e("Table表格"),e("ant-design-table: 使用 ant-design 的 table 组件, 可用于展示多条结构类似的数据, 并对其进行相关操作。");e("Table表格(可编辑行)"),e("ant-design-table: 使用 ant-design 的 table 组件, 可用于展示多条结构类似的数据, 并对其进行行数据编辑操作。");e("Tree树形控件"),e("ant-design-tree: 基于Ant-Design的Tree组件, 可以完整展现其中的层级关系, 并具有展开收起选择等交互功能。");const b={name:e("Transfer穿梭框"),url:"https://ant-design.antgroup.com/components/transfer",desc:e("ant-design-transfer: 使用 ant-design 的 transfer 组件, 可用于对列表数据进行选中、取消等操作。")},x={name:e("Upload图片上传组件"),url:"https://antdv.com/components/upload",desc:e("ant-design-upload: 使用 ant-design 的 upload 组件, 并具有多种列表展示方式。")};e("Video视频播放器"),e("Video-React: 一个使用 React 为 HTML5 构建的web视频播放器, 适用于目前主流网络视频的播放。");e("JS-xlsx插件"),e("JS-xlsx: 由SheetJS出品的一款非常方便的只需要纯JS即可读取和导出excel的工具库, 功能强大, 支持xlsx、csv、txt等格式。");const R={name:e("Sortable拖拽列表"),url:"https://github.com/SortableJS/react-sortablejs",desc:e("ReactSortable: 基于Sortable.js的react组件, 用以实现拖拽功能。")},_={name:e("React-Rnd拖拽组件"),url:"https://github.com/bokuweb/react-rnd",desc:e("React-Rnd: 一款可调整大小和可拖拽的React组件。")};e("React-Cropper图片裁剪"),e("react-cropper: 一个优雅的图片裁剪插件, 可实现图片裁剪、图片生成等功能, 并支持生成png、jpeg、webp等图片格式。");e("Image图片合成"),e("图片合成: 基于VueDRR拖拽功能, 在其上通过叠加图片、文字等, 实现图片的叠加伪合成功能。");e("Image图片压缩"),e("ImageCompress: 纯JS实现对图片的等比压缩和放大的功能, 并能对图片进行下载。");const S={name:e("CountUp数字滚动"),url:"https://github.com/glennreyes/react-countup",desc:e("React-CountUp: 一个无依赖、轻量级的react数字滚动插件, 以更有趣的方式显示数字数据。")};e("CodeMirror代码编辑器"),e("React-CodeMirror: 是一款基于 react 的代码编辑器, 可支持html、javascript、typescript等。");e("AntV-G6流程图"),e("antv-g6: 一个图可视化引擎。它提供了图的绘制、布局、分析、交互、动画等图可视化的基础能力。");e("Tree-Org树状组织图"),e("react-tree-org: 基于 react 的树结构组织图, 可用于公司组织架构展示。");e("富文本编辑器"),e("wangEditor: 基于javascript和css开发的 Web富文本编辑器, 轻量、简洁、易用、开源免费。");e("Markdown编辑器"),e("React-Md-Editor: 是一款基于 react 的 Markdown 编辑器,比较适合博客系统。");export{S as C,u as F,l as P,_ as R,R as S,b as T,x as U,h as a}; diff --git a/index.html b/index.html index daccb08..d1a2bf1 100644 --- a/index.html +++ b/index.html @@ -19,9 +19,9 @@ href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css" /> - + - +