@midscene/android-playground 1.0.1-beta-20251204064235.0 → 1.0.1-beta-20251204075416.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/static/index.html +1 -1
- package/static/static/js/{9.1bed77ad.js → 9.abb4d07f.js} +4 -4
- package/static/static/js/{9.1bed77ad.js.map → 9.abb4d07f.js.map} +1 -1
- package/static/static/js/{index.20d3cfbb.js → index.1f89c802.js} +5 -5
- package/static/static/js/index.1f89c802.js.map +1 -0
- package/static/static/js/index.20d3cfbb.js.map +0 -1
- /package/static/static/js/{9.1bed77ad.js.LICENSE.txt → 9.abb4d07f.js.LICENSE.txt} +0 -0
- /package/static/static/js/{index.20d3cfbb.js.LICENSE.txt → index.1f89c802.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! For license information please see 9.
|
|
1
|
+
/*! For license information please see 9.abb4d07f.js.LICENSE.txt */
|
|
2
2
|
(self.webpackChunkandroid_playground=self.webpackChunkandroid_playground||[]).push([["9"],{87516:function(e,t,r){"use strict";r.d(t,{uy:()=>x,UA:()=>$,bK:()=>A,z1:()=>I,cM:()=>b});var n=r(18956),i=r(57358),o=2,a=.16,s=.05,l=.05,u=.15,c=5,f=4,h=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function d(e){var t=e.r,r=e.g,i=e.b,o=(0,n.wE)(t,r,i);return{h:360*o.h,s:o.s,v:o.v}}function p(e){var t=e.r,r=e.g,i=e.b;return"#".concat((0,n.Ob)(t,r,i,!1))}function m(e,t,r){var n=r/100;return{r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b}}function g(e,t,r){var n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-o*t:Math.round(e.h)+o*t:r?Math.round(e.h)+o*t:Math.round(e.h)-o*t)<0?n+=360:n>=360&&(n-=360),n}function v(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-a*t:t===f?e.s+a:e.s+s*t)>1&&(n=1),r&&t===c&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)))}function y(e,t,r){var n;return(n=r?e.v+l*t:e.v-u*t)>1&&(n=1),Number(n.toFixed(2))}function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=(0,i.RO)(e),o=c;o>0;o-=1){var a=d(n),s=p((0,i.RO)({h:g(a,o,!0),s:v(a,o,!0),v:y(a,o,!0)}));r.push(s)}r.push(p(n));for(var l=1;l<=f;l+=1){var u=d(n),b=p((0,i.RO)({h:g(u,l),s:v(u,l),v:y(u,l)}));r.push(b)}return"dark"===t.theme?h.map(function(e){var n=e.index,o=e.opacity;return p(m((0,i.RO)(t.backgroundColor||"#141414"),(0,i.RO)(r[n]),100*o))}):r}var x={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},_=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];_.primary=_[5];var w=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];w.primary=w[5];var S=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];S.primary=S[5];var A=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];A.primary=A[5];var E=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];E.primary=E[5];var C=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];C.primary=C[5];var k=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];k.primary=k[5];var O=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];O.primary=O[5];var I=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];I.primary=I[5];var T=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];T.primary=T[5];var M=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];M.primary=M[5];var R=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];R.primary=R[5];var P=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];P.primary=P[5];var $={red:_,volcano:w,orange:S,gold:A,yellow:E,lime:C,green:k,cyan:O,blue:I,geekblue:T,purple:M,magenta:R,grey:P},B=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];B.primary=B[5];var N=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];N.primary=N[5];var z=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];z.primary=z[5];var L=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];L.primary=L[5];var j=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];j.primary=j[5];var F=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];F.primary=F[5];var D=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];D.primary=D[5];var U=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];U.primary=U[5];var H=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];H.primary=H[5];var G=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];G.primary=G[5];var W=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];W.primary=W[5];var V=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];V.primary=V[5];var q=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];q.primary=q[5]},68491:function(e,t,r){"use strict";r.d(t,{oX:()=>E,L_:()=>B});var n=r(2716),i=r(86233),o=r(6467),a=r(33779),s=r(22155),l=r(85337),u=r(32645),c=r(30965),f=r(14713),h=r(26477),d=r(53442);let p=(0,c.A)(function e(){(0,u.A)(this,e)});var m="CALC_UNIT",g=RegExp(m,"g");function v(e){return"number"==typeof e?"".concat(e).concat(m):e}var y=function(e){(0,h.A)(r,e);var t=(0,d.A)(r);function r(e,i){(0,u.A)(this,r),a=t.call(this),(0,o.A)((0,f.A)(a),"result",""),(0,o.A)((0,f.A)(a),"unitlessCssVar",void 0),(0,o.A)((0,f.A)(a),"lowPriority",void 0);var a,s=(0,n.A)(e);return a.unitlessCssVar=i,e instanceof r?a.result="(".concat(e.result,")"):"number"===s?a.result=v(e):"string"===s&&(a.result=e),a}return(0,c.A)(r,[{key:"add",value:function(e){return e instanceof r?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(v(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof r?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(v(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,r=(e||{}).unit,n=!0;return("boolean"==typeof r?n=r:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(n=!1),this.result=this.result.replace(g,n?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),r}(p);let b=function(e){(0,h.A)(r,e);var t=(0,d.A)(r);function r(e){var n;return(0,u.A)(this,r),n=t.call(this),(0,o.A)((0,f.A)(n),"result",0),e instanceof r?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,c.A)(r,[{key:"add",value:function(e){return e instanceof r?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof r?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof r?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof r?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),r}(p),x=function(e,t){var r="css"===e?y:b;return function(e){return new r(e,t)}},_=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};r(65260);let w=function(e,t,r,n){var o=(0,a.A)({},t[e]);null!=n&&n.deprecatedTokens&&n.deprecatedTokens.forEach(function(e){var t,r=(0,i.A)(e,2),n=r[0],a=r[1];(null!=o&&o[n]||null!=o&&o[a])&&(null!=(t=o[a])||(o[a]=null==o?void 0:o[n]))});var s=(0,a.A)((0,a.A)({},r),o);return Object.keys(s).forEach(function(e){s[e]===t[e]&&delete s[e]}),s};var S="undefined"!=typeof CSSINJS_STATISTIC,A=!0;function E(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!S)return Object.assign.apply(Object,[{}].concat(t));A=!1;var i={};return t.forEach(function(e){if("object"===(0,n.A)(e)){var t=Object.keys(e);t.forEach(function(t){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}}),A=!0,i}var C={};function k(){}let O=function(e){var t,r=e,n=k;return S&&"undefined"!=typeof Proxy&&(t=new Set,r=new Proxy(e,{get:function(e,r){if(A){var n;null==(n=t)||n.add(r)}return e[r]}}),n=function(e,r){var n;C[e]={global:Array.from(t),component:(0,a.A)((0,a.A)({},null==(n=C[e])?void 0:n.component),r)}}),{token:r,keys:t,flush:n}},I=function(e,t,r){if("function"==typeof r){var n;return r(E(t,null!=(n=t[e])?n:{}))}return null!=r?r:{}},T=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"max(".concat(t.map(function(e){return(0,l.zA)(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"min(".concat(t.map(function(e){return(0,l.zA)(e)}).join(","),")")}}};var M=6e5,R=new(function(){function e(){(0,u.A)(this,e),(0,o.A)(this,"map",new Map),(0,o.A)(this,"objectIDMap",new WeakMap),(0,o.A)(this,"nextID",0),(0,o.A)(this,"lastAccessBeat",new Map),(0,o.A)(this,"accessBeat",0)}return(0,c.A)(e,[{key:"set",value:function(e,t){this.clear();var r=this.getCompositeKey(e);this.map.set(r,t),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),r=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,n.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,n.A)(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(r,n){t-r>M&&(e.map.delete(n),e.lastAccessBeat.delete(n))}),this.accessBeat=0}}}]),e}());let P=function(e,t){return s.useMemo(function(){var r=R.get(t);if(r)return r;var n=e();return R.set(t,n),n},t)},$=function(){return{}},B=function(e){var t=e.useCSP,r=void 0===t?$:t,u=e.useToken,c=e.usePrefix,f=e.getResetStyles,h=e.getCommonStyle,d=e.getCompUnitless;function p(e,t,r){var n=r.unitless,i=r.injectStyle,o=void 0===i||i,a=r.prefixToken,c=r.ignore,f=function(i){var o=i.rootCls,s=i.cssVar,f=void 0===s?{}:s,h=u().realToken;return(0,l.RC)({path:[e],prefix:f.prefix,key:f.key,unitless:n,ignore:c,token:h,scope:o},function(){var n=I(e,h,t),i=w(e,h,n,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(n).forEach(function(e){i[a(e)]=i[e],delete i[e]}),i}),null};return function(t){var r=u().cssVar;return[function(n){return o&&r?s.createElement(s.Fragment,null,s.createElement(f,{rootCls:t,cssVar:r,component:e}),n):n},null==r?void 0:r.key]}}function m(t,o,s){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=Array.isArray(t)?t:[t,t],m=(0,i.A)(p,1)[0],g=p.join("-"),v=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=u(),p=i.theme,y=i.realToken,b=i.hashId,S=i.token,A=i.cssVar,C=c(),k=C.rootPrefixCls,M=C.iconPrefixCls,R=r(),$=A?"css":"js",B=P(function(){var e=new Set;return A&&Object.keys(d.unitless||{}).forEach(function(t){e.add((0,l.Ki)(t,A.prefix)),e.add((0,l.Ki)(t,_(m,A.prefix)))}),x($,e)},[$,m,null==A?void 0:A.prefix]),N=T($),z=N.max,L=N.min,j={theme:p,token:S,hashId:b,nonce:function(){return R.nonce},clientOnly:d.clientOnly,layer:v,order:d.order||-999};return(0,l.IV)((0,a.A)((0,a.A)({},j),{},{clientOnly:!1,path:["Shared",k]}),function(){return"function"==typeof f?f(S):[]}),[(0,l.IV)((0,a.A)((0,a.A)({},j),{},{path:[g,e,M]}),function(){if(!1===d.injectStyle)return[];var r=O(S),i=r.token,a=r.flush,u=I(m,y,s),c=".".concat(e),f=w(m,y,u,{deprecatedTokens:d.deprecatedTokens});A&&u&&"object"===(0,n.A)(u)&&Object.keys(u).forEach(function(e){u[e]="var(".concat((0,l.Ki)(e,_(m,A.prefix)),")")});var p=E(i,{componentCls:c,prefixCls:e,iconCls:".".concat(M),antCls:".".concat(k),calc:B,max:z,min:L},A?u:f),g=o(p,{hashId:b,prefixCls:e,rootPrefixCls:k,iconPrefixCls:M});a(m,f);var v="function"==typeof h?h(p,e,t,d.resetFont):null;return[!1===d.resetStyle?null:v,g]}),b]}}return{genStyleHooks:function(e,t,r,n){var s=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(s)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==n?void 0:n.unitless)||{},c="function"==typeof d?d(e):{},f=(0,a.A)((0,a.A)({},c),{},(0,o.A)({},l("zIndexPopup"),!0));Object.keys(u).forEach(function(e){f[l(e)]=u[e]});var h=(0,a.A)((0,a.A)({},n),{},{unitless:f,prefixToken:l}),g=m(e,t,r,h),v=p(s,r,h);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=g(e,t),n=(0,i.A)(r,2)[1],o=v(t),a=(0,i.A)(o,2);return[a[0],n,a[1]]}},genSubStyleComponent:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=m(e,t,r,(0,a.A)({resetStyle:!1,order:-998},n));return function(e){var t=e.prefixCls,r=e.rootCls,n=void 0===r?t:r;return i(t,n),null}},genComponentStyleHook:m}}},85337:function(e,t,r){"use strict";r.d(t,{an:()=>T,Ki:()=>F,hV:()=>el,Mo:()=>td,RC:()=>th,zA:()=>L,IV:()=>tl});var n,i=r(6467),o=r(86233),a=r(38128),s=r(33779);let l=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)};var u=r(58451),c=r(22155),f=r.t(c,2);r(64518),r(78216);var h=r(32645),d=r(30965),p="%";function m(e){return e.join(p)}let g=function(){function e(t){(0,h.A)(this,e),(0,i.A)(this,"instanceId",void 0),(0,i.A)(this,"cache",new Map),this.instanceId=t}return(0,d.A)(e,[{key:"get",value:function(e){return this.opGet(m(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(m(e),t)}},{key:"opUpdate",value:function(e,t){var r=t(this.cache.get(e));null===r?this.cache.delete(e):this.cache.set(e,r)}}]),e}();var v="data-token-hash",y="data-css-hash",b="__cssinjs_instance__";function x(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(y,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[b]=t[b]||e,t[b]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(y,"]"))).forEach(function(t){var r,i=t.getAttribute(y);n[i]?t[b]===e&&(null==(r=t.parentNode)||r.removeChild(t)):n[i]=!0})}return new g(e)}let _=c.createContext({hashPriority:"low",cache:x(),defaultCache:!0});var w=r(2716),S=r(19352);function A(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var E=function(){function e(){(0,h.A)(this,e),(0,i.A)(this,"cache",void 0),(0,i.A)(this,"keys",void 0),(0,i.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,d.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach(function(e){if(i){var t;i=null==(t=i)||null==(t=t.map)?void 0:t.get(e)}else i=void 0}),null!=(t=i)&&t.value&&n&&(i.value[1]=this.cacheCallTimes++),null==(r=i)?void 0:r.value}},{key:"get",value:function(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(e,t){var r=(0,o.A)(e,2)[1];return n.internalGet(t)[1]<r?[t,n.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),a=(0,o.A)(i,1)[0];this.delete(a)}this.keys.push(t)}var s=this.cache;t.forEach(function(e,i){if(i===t.length-1)s.set(e,{value:[r,n.cacheCallTimes++]});else{var o=s.get(e);o?o.map||(o.map=new Map):s.set(e,{map:new Map}),s=s.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var r,n=e.get(t[0]);if(1===t.length)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),null==(r=n.value)?void 0:r[0];var i=this.deleteByPath(n.map,t.slice(1));return n.map&&0!==n.map.size||n.value||e.delete(t[0]),i}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!A(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();(0,i.A)(E,"MAX_CACHE_SIZE",20),(0,i.A)(E,"MAX_CACHE_OFFSET",5);var C=r(36216),k=0,O=function(){function e(t){(0,h.A)(this,e),(0,i.A)(this,"derivatives",void 0),(0,i.A)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=k,0===t.length&&(0,C.$e)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),k+=1}return(0,d.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),I=new E;function T(e){var t=Array.isArray(e)?e:[e];return I.has(t)||I.set(t,new O(t)),I.get(t)}var M=new WeakMap,R={};function P(e,t){for(var r=M,n=0;n<t.length;n+=1){var i=t[n];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(R)||r.set(R,e()),r.get(R)}var $=new WeakMap;function B(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=$.get(e)||"";return r||(Object.keys(e).forEach(function(n){var i=e[n];r+=n,i instanceof O?r+=i.id:i&&"object"===(0,w.A)(i)?r+=B(i,t):r+=i}),t&&(r=l(r)),$.set(e,r)),r}function N(e,t){return l("".concat(t,"_").concat(B(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var z=(0,S.A)();function L(e){return"number"==typeof e?"".concat(e,"px"):e}function j(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(o)return e;var a=(0,s.A)((0,s.A)({},n),{},(0,i.A)((0,i.A)({},v,t),y,r)),l=Object.keys(a).map(function(e){var t=a[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},D=function(e,t,r){return Object.keys(e).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(e){var t=(0,o.A)(e,2),r=t[0],n=t[1];return"".concat(r,":").concat(n,";")}).join(""),"}"):""},U=function(e,t,r){var n={},i={};return Object.entries(e).forEach(function(e){var t=(0,o.A)(e,2),a=t[0],s=t[1];if(null!=r&&null!=(l=r.preserve)&&l[a])i[a]=s;else if(("string"==typeof s||"number"==typeof s)&&!(null!=r&&null!=(u=r.ignore)&&u[a])){var l,u,c,f=F(a,null==r?void 0:r.prefix);n[f]="number"!=typeof s||null!=r&&null!=(c=r.unitless)&&c[a]?String(s):"".concat(s,"px"),i[a]="var(".concat(f,")")}}),[i,D(n,t,{scope:null==r?void 0:r.scope})]},H=r(28367),G=(0,s.A)({},f).useInsertionEffect,W=function(e,t,r){c.useMemo(e,r),(0,H.A)(function(){return t(!0)},r)};let V=G?function(e,t,r){return G(function(){return e(),t()},r)}:W;var q=(0,s.A)({},f).useInsertionEffect,X=function(e){var t=[],r=!1;function n(e){r||t.push(e)}return c.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(e){return e()})}},e),n},Y=function(){return function(e){e()}};let K=void 0!==q?X:Y,Z=function(){return!1};function Q(e,t,r,n,i){var s=c.useContext(_).cache,l=m([e].concat((0,a.A)(t))),u=K([l]);Z();var f=function(e){s.opUpdate(l,function(t){var n=t||[void 0,void 0],i=(0,o.A)(n,2),a=i[0],s=[void 0===a?0:a,i[1]||r()];return e?e(s):s})};c.useMemo(function(){f()},[l]);var h=s.opGet(l)[1];return V(function(){null==i||i(h)},function(e){return f(function(t){var r=(0,o.A)(t,2),n=r[0],a=r[1];return e&&0===n&&(null==i||i(h)),[n+1,a]}),function(){s.opUpdate(l,function(t){var r=t||[],i=(0,o.A)(r,2),a=i[0],c=void 0===a?0:a,f=i[1];return 0==c-1?(u(function(){(e||!s.opGet(l))&&(null==n||n(f,!1))}),null):[c-1,f]})}},[l]),h}var J={},ee="css",et=new Map;function er(e){et.set(e,(et.get(e)||0)+1)}function en(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(v,'="').concat(e,'"]')).forEach(function(e){if(e[b]===t){var r;null==(r=e.parentNode)||r.removeChild(e)}})}var ei=0;function eo(e,t){et.set(e,(et.get(e)||0)-1);var r=Array.from(et.keys()),n=r.filter(function(e){return 0>=(et.get(e)||0)});r.length-n.length>ei&&n.forEach(function(e){en(e,t),et.delete(e)})}var ea=function(e,t,r,n){var i=r.getDerivativeToken(e),o=(0,s.A)((0,s.A)({},i),t);return n&&(o=n(o)),o},es="token";function el(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,c.useContext)(_),i=n.cache.instanceId,f=n.container,h=r.salt,d=void 0===h?"":h,p=r.override,m=void 0===p?J:p,g=r.formatToken,x=r.getComputedToken,w=r.cssVar,S=P(function(){return Object.assign.apply(Object,[{}].concat((0,a.A)(t)))},t),A=B(S),E=B(m),C=w?B(w):"";return Q(es,[d,e.id,A,E,C],function(){var t,r=x?x(S,m,e):ea(S,m,e,g),n=(0,s.A)({},r),i="";if(w){var a=U(r,w.key,{prefix:w.prefix,ignore:w.ignore,unitless:w.unitless,preserve:w.preserve}),u=(0,o.A)(a,2);r=u[0],i=u[1]}var c=N(r,d);r._tokenKey=c,n._tokenKey=N(n,d);var f=null!=(t=null==w?void 0:w.key)?t:c;r._themeKey=f,er(f);var h="".concat(ee,"-").concat(l(c));return r._hashId=h,[r,h,n,i,(null==w?void 0:w.key)||""]},function(e){eo(e[0]._themeKey,i)},function(e){var t=(0,o.A)(e,4),r=t[0],n=t[3];if(w&&n){var a=(0,u.BD)(n,l("css-variables-".concat(r._themeKey)),{mark:y,prepend:"queue",attachTo:f,priority:-999});a[b]=i,a.setAttribute(v,r._themeKey)}})}var eu=function(e,t,r){var n=(0,o.A)(e,5),i=n[2],a=n[3],s=n[4],l=(r||{}).plain;if(!a)return null;var u=i._tokenKey,c=-999,f=j(a,s,u,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},l);return[c,u,f]},ec=r(42664);let ef={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var eh="comm",ed="rule",ep="decl",em="@import",eg="@keyframes",ev="@layer",ey=Math.abs,eb=String.fromCharCode;function ex(e){return e.trim()}function e_(e,t,r){return e.replace(t,r)}function ew(e,t,r){return e.indexOf(t,r)}function eS(e,t){return 0|e.charCodeAt(t)}function eA(e,t,r){return e.slice(t,r)}function eE(e){return e.length}function eC(e){return e.length}function ek(e,t){return t.push(e),e}function eO(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function eI(e,t,r,n){switch(e.type){case ev:if(e.children.length)break;case em:case ep:return e.return=e.return||e.value;case eh:return"";case eg:return e.return=e.value+"{"+eO(e.children,n)+"}";case ed:if(!eE(e.value=e.props.join(",")))return""}return eE(r=eO(e.children,n))?e.return=e.value+"{"+r+"}":""}var eT=1,eM=1,eR=0,eP=0,e$=0,eB="";function eN(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:eT,column:eM,length:a,return:"",siblings:s}}function ez(){return e$}function eL(){return e$=eP>0?eS(eB,--eP):0,eM--,10===e$&&(eM=1,eT--),e$}function ej(){return e$=eP<eR?eS(eB,eP++):0,eM++,10===e$&&(eM=1,eT++),e$}function eF(){return eS(eB,eP)}function eD(){return eP}function eU(e,t){return eA(eB,e,t)}function eH(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function eG(e){return eT=eM=1,eR=eE(eB=e),eP=0,[]}function eW(e){return eB="",e}function eV(e){return ex(eU(eP-1,eY(91===e?e+2:40===e?e+1:e)))}function eq(e){for(;e$=eF();)if(e$<33)ej();else break;return eH(e)>2||eH(e$)>3?"":" "}function eX(e,t){for(;--t&&ej()&&!(e$<48)&&!(e$>102)&&(!(e$>57)||!(e$<65))&&(!(e$>70)||!(e$<97)););return eU(e,eD()+(t<6&&32==eF()&&32==ej()))}function eY(e){for(;ej();)switch(e$){case e:return eP;case 34:case 39:34!==e&&39!==e&&eY(e$);break;case 40:41===e&&eY(e);break;case 92:ej()}return eP}function eK(e,t){for(;ej();)if(e+e$===57)break;else if(e+e$===84&&47===eF())break;return"/*"+eU(t,eP-1)+"*"+eb(47===e?e:ej())}function eZ(e){for(;!eH(eF());)ej();return eU(e,eP)}function eQ(e){return eW(eJ("",null,null,null,[""],e=eG(e),0,[0],e))}function eJ(e,t,r,n,i,o,a,s,l){for(var u=0,c=0,f=a,h=0,d=0,p=0,m=1,g=1,v=1,y=0,b="",x=i,_=o,w=n,S=b;g;)switch(p=y,y=ej()){case 40:if(108!=p&&58==eS(S,f-1)){-1!=ew(S+=e_(eV(y),"&","&\f"),"&\f",ey(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=eV(y);break;case 9:case 10:case 13:case 32:S+=eq(p);break;case 92:S+=eX(eD()-1,7);continue;case 47:switch(eF()){case 42:case 47:ek(e1(eK(ej(),eD()),t,r,l),l),(5==eH(p||1)||5==eH(eF()||1))&&eE(S)&&" "!==eA(S,-1,void 0)&&(S+=" ");break;default:S+="/"}break;case 123*m:s[u++]=eE(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(S=e_(S,/\f/g,"")),d>0&&(eE(S)-f||0===m&&47===p)&&ek(d>32?e2(S+";",n,r,f-1,l):e2(e_(S," ","")+";",n,r,f-2,l),l);break;case 59:S+=";";default:if(ek(w=e0(S,t,r,u,c,i,s,b,x=[],_=[],f,o),o),123===y)if(0===c)eJ(S,t,w,w,x,o,f,s,_);else switch(99===h&&110===eS(S,3)?100:h){case 100:case 108:case 109:case 115:eJ(e,w,w,n&&ek(e0(e,w,w,0,0,i,s,b,i,x=[],f,_),_),i,_,f,s,n?x:_);break;default:eJ(S,w,w,w,[""],_,0,s,_)}}u=c=d=0,m=v=1,b=S="",f=a;break;case 58:f=1+eE(S),d=p;default:if(m<1){if(123==y)--m;else if(125==y&&0==m++&&125==eL())continue}switch(S+=eb(y),y*m){case 38:v=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(eE(S)-1)*v,v=1;break;case 64:45===eF()&&(S+=eV(ej())),h=eF(),c=f=eE(b=S+=eZ(eD())),y++;break;case 45:45===p&&2==eE(S)&&(m=0)}}return o}function e0(e,t,r,n,i,o,a,s,l,u,c,f){for(var h=i-1,d=0===i?o:[""],p=eC(d),m=0,g=0,v=0;m<n;++m)for(var y=0,b=eA(e,h+1,h=ey(g=a[m])),x=e;y<p;++y)(x=ex(g>0?d[y]+" "+b:e_(b,/&\f/g,d[y])))&&(l[v++]=x);return eN(e,t,r,0===i?ed:s,l,u,c,f)}function e1(e,t,r,n){return eN(e,t,r,eh,eb(ez()),eA(e,2,-2),0,n)}function e2(e,t,r,n,i){return eN(e,t,r,ep,eA(e,0,n),eA(e,n+1,-1),n,i)}var e3="data-ant-cssinjs-cache-path",e5="_FILE_STYLE__",e4=!0;function e6(){if(!n&&(n={},(0,S.A)())){var e,t=document.createElement("div");t.className=e3,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),r=(0,o.A)(t,2),i=r[0],a=r[1];n[i]=a});var i=document.querySelector("style[".concat(e3,"]"));i&&(e4=!1,null==(e=i.parentNode)||e.removeChild(i)),document.body.removeChild(t)}}function e8(e){return e6(),!!n[e]}function e7(e){var t=n[e],r=null;if(t&&(0,S.A)())if(e4)r=e5;else{var i=document.querySelector("style[".concat(y,'="').concat(n[e],'"]'));i?r=i.innerHTML:delete n[e]}return[r,t]}var e9="_skip_check_",te="_multi_value_";function tt(e){return eO(eQ(e),eI).replace(/\{%%%\:[^;];}/g,";")}function tr(e){return"object"===(0,w.A)(e)&&e&&(e9 in e||te in e)}function tn(e,t,r){if(!t)return e;var n=".".concat(t),i="low"===r?":where(".concat(n,")"):n;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",o=(null==(t=n.match(/^\w+/))?void 0:t[0])||"";return[n="".concat(o).concat(i).concat(n.slice(o.length))].concat((0,a.A)(r.slice(1))).join(" ")}).join(",")}var ti=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,l=n.injectHash,u=n.parentSelectors,c=r.hashId,f=r.layer,h=(r.path,r.hashPriority),d=r.transformers,p=void 0===d?[]:d,m=(r.linters,""),g={};function v(t){var n=t.getName(c);if(!g[n]){var i=e(t.style,r,{root:!1,parentSelectors:u}),a=(0,o.A)(i,1)[0];g[n]="@keyframes ".concat(t.getName(c)).concat(a)}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach(function(e){Array.isArray(e)?y(e,t):e&&t.push(e)}),t}return y(Array.isArray(t)?t:[t]).forEach(function(t){var n="string"!=typeof t||i?t:{};if("string"==typeof n)m+="".concat(n,"\n");else if(n._keyframe)v(n);else{var f=p.reduce(function(e,t){var r;return(null==t||null==(r=t.visit)?void 0:r.call(t,e))||e},n);Object.keys(f).forEach(function(t){var n=f[t];if("object"!==(0,w.A)(n)||!n||"animationName"===t&&n._keyframe||tr(n)){function d(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;ef[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),n=t.getName(c)),m+="".concat(r,":").concat(n,";")}var p,y=null!=(p=null==n?void 0:n.value)?p:n;"object"===(0,w.A)(n)&&null!=n&&n[te]&&Array.isArray(y)?y.forEach(function(e){d(t,e)}):d(t,y)}else{var b=!1,x=t.trim(),_=!1;(i||l)&&c?x.startsWith("@")?b=!0:x="&"===x?tn("",c,h):tn(t,c,h):i&&!c&&("&"===x||""===x)&&(x="",_=!0);var S=e(n,r,{root:_,injectHash:b,parentSelectors:[].concat((0,a.A)(u),[x])}),A=(0,o.A)(S,2),E=A[0],C=A[1];g=(0,s.A)((0,s.A)({},g),C),m+="".concat(x).concat(E)}})}}),i?f&&(m="@layer ".concat(f.name," {").concat(m,"}"),f.dependencies&&(g["@layer ".concat(f.name)]=f.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(f.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function to(e,t){return l("".concat(e.join("%")).concat(t))}function ta(){return null}var ts="style";function tl(e,t){var r=e.token,n=e.path,l=e.hashId,f=e.layer,h=e.nonce,d=e.clientOnly,p=e.order,m=void 0===p?0:p,g=c.useContext(_),x=g.autoClear,w=(g.mock,g.defaultCache),S=g.hashPriority,A=g.container,E=g.ssrInline,C=g.transformers,k=g.linters,O=g.cache,I=g.layer,T=r._tokenKey,M=[T];I&&M.push("layer"),M.push.apply(M,(0,a.A)(n));var R=z,P=Q(ts,M,function(){var e=M.join("|");if(e8(e)){var r=e7(e),i=(0,o.A)(r,2),a=i[0],s=i[1];if(a)return[a,T,s,{},d,m]}var u=ti(t(),{hashId:l,hashPriority:S,layer:I?f:void 0,path:n.join("-"),transformers:C,linters:k}),c=(0,o.A)(u,2),h=c[0],p=c[1],g=tt(h),v=to(M,g);return[g,T,v,p,d,m]},function(e,t){var r=(0,o.A)(e,3)[2];(t||x)&&z&&(0,u.m6)(r,{mark:y})},function(e){var t=(0,o.A)(e,4),r=t[0],n=(t[1],t[2]),i=t[3];if(R&&r!==e5){var a={mark:y,prepend:!I&&"queue",attachTo:A,priority:m},l="function"==typeof h?h():h;l&&(a.csp={nonce:l});var c=[],f=[];Object.keys(i).forEach(function(e){e.startsWith("@layer")?c.push(e):f.push(e)}),c.forEach(function(e){(0,u.BD)(tt(i[e]),"_layer-".concat(e),(0,s.A)((0,s.A)({},a),{},{prepend:!0}))});var d=(0,u.BD)(r,n,a);d[b]=O.instanceId,d.setAttribute(v,T),f.forEach(function(e){(0,u.BD)(tt(i[e]),"_effect-".concat(e),a)})}}),$=(0,o.A)(P,3),B=$[0],N=$[1],L=$[2];return function(e){var t;return t=E&&!R&&w?c.createElement("style",(0,ec.A)({},(0,i.A)((0,i.A)({},v,N),y,L),{dangerouslySetInnerHTML:{__html:B}})):c.createElement(ta,null),c.createElement(c.Fragment,null,t,e)}}var tu=function(e,t,r){var n=(0,o.A)(e,6),i=n[0],a=n[1],s=n[2],l=n[3],u=n[4],c=n[5],f=(r||{}).plain;if(u)return null;var h=i,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return h=j(i,a,s,d,f),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var r=j(tt(l[e]),a,"_effect-".concat(e),d,f);e.startsWith("@layer")?h=r+h:h+=r}}),[c,s,h]},tc="cssVar",tf=function(e,t,r){var n=(0,o.A)(e,4),i=n[1],a=n[2],s=n[3],l=(r||{}).plain;if(!i)return null;var u=-999,c=j(i,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},l);return[u,a,c]};let th=function(e,t){var r=e.key,n=e.prefix,i=e.unitless,s=e.ignore,l=e.token,f=e.scope,h=void 0===f?"":f,d=(0,c.useContext)(_),p=d.cache.instanceId,m=d.container,g=l._tokenKey,x=[].concat((0,a.A)(e.path),[r,h,g]);return Q(tc,x,function(){var e=U(t(),r,{prefix:n,unitless:i,ignore:s,scope:h}),a=(0,o.A)(e,2),l=a[0],u=a[1],c=to(x,u);return[l,u,c,r]},function(e){var t=(0,o.A)(e,3)[2];z&&(0,u.m6)(t,{mark:y})},function(e){var t=(0,o.A)(e,3),n=t[1],i=t[2];if(n){var a=(0,u.BD)(n,i,{mark:y,prepend:"queue",attachTo:m,priority:-999});a[b]=p,a.setAttribute(v,r)}})};(0,i.A)((0,i.A)((0,i.A)({},ts,tu),es,eu),tc,tf);let td=function(){function e(t,r){(0,h.A)(this,e),(0,i.A)(this,"name",void 0),(0,i.A)(this,"style",void 0),(0,i.A)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,d.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function tp(e){return e.notSplit=!0,e}tp(["borderTop","borderBottom"]),tp(["borderTop"]),tp(["borderBottom"]),tp(["borderLeft","borderRight"]),tp(["borderLeft"]),tp(["borderRight"])},59909:function(e,t,r){"use strict";r.d(t,{A:()=>A});var n=r(42664),i=r(86233),o=r(6467),a=r(48827),s=r(22155),l=r(30395),u=r.n(l),c=r(87516),f=r(12893),h=r(33779),d=r(11820),p=["icon","className","onClick","style","primaryColor","secondaryColor"],m={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function g(e){var t=e.primaryColor,r=e.secondaryColor;m.primaryColor=t,m.secondaryColor=r||(0,d.Em)(t),m.calculated=!!r}function v(){return(0,h.A)({},m)}var y=function(e){var t=e.icon,r=e.className,n=e.onClick,i=e.style,o=e.primaryColor,l=e.secondaryColor,u=(0,a.A)(e,p),c=s.useRef(),f=m;if(o&&(f={primaryColor:o,secondaryColor:l||(0,d.Em)(o)}),(0,d.lf)(c),(0,d.$e)((0,d.P3)(t),"icon should be icon definiton, but got ".concat(t)),!(0,d.P3)(t))return null;var g=t;return g&&"function"==typeof g.icon&&(g=(0,h.A)((0,h.A)({},g),{},{icon:g.icon(f.primaryColor,f.secondaryColor)})),(0,d.cM)(g.icon,"svg-".concat(g.name),(0,h.A)((0,h.A)({className:r,onClick:n,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};y.displayName="IconReact",y.getTwoToneColors=v,y.setTwoToneColors=g;let b=y;function x(e){var t=(0,d.al)(e),r=(0,i.A)(t,2),n=r[0],o=r[1];return b.setTwoToneColors({primaryColor:n,secondaryColor:o})}function _(){var e=b.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var w=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];x(c.z1.primary);var S=s.forwardRef(function(e,t){var r=e.className,l=e.icon,c=e.spin,h=e.rotate,p=e.tabIndex,m=e.onClick,g=e.twoToneColor,v=(0,a.A)(e,w),y=s.useContext(f.A),x=y.prefixCls,_=void 0===x?"anticon":x,S=y.rootClassName,A=u()(S,_,(0,o.A)((0,o.A)({},"".concat(_,"-").concat(l.name),!!l.name),"".concat(_,"-spin"),!!c||"loading"===l.name),r),E=p;void 0===E&&m&&(E=-1);var C=h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0,k=(0,d.al)(g),O=(0,i.A)(k,2),I=O[0],T=O[1];return s.createElement("span",(0,n.A)({role:"img","aria-label":l.name},v,{ref:t,tabIndex:E,onClick:m,className:A}),s.createElement(b,{icon:l,primaryColor:I,secondaryColor:T,style:C}))});S.displayName="AntdIcon",S.getTwoToneColor=_,S.setTwoToneColor=x;let A=S},12893:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(22155).createContext)({})},99877:function(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(42664),i=r(33779),o=r(6467),a=r(48827),s=r(22155),l=r(30395),u=r.n(l),c=r(37233),f=r(12893),h=r(11820),d=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],p=s.forwardRef(function(e,t){var r=e.className,l=e.component,p=e.viewBox,m=e.spin,g=e.rotate,v=e.tabIndex,y=e.onClick,b=e.children,x=(0,a.A)(e,d),_=s.useRef(),w=(0,c.xK)(_,t);(0,h.$e)(!!(l||b),"Should have `component` prop or `children`."),(0,h.lf)(_);var S=s.useContext(f.A),A=S.prefixCls,E=void 0===A?"anticon":A,C=S.rootClassName,k=u()(C,E,(0,o.A)({},"".concat(E,"-spin"),!!m&&!!l),r),O=u()((0,o.A)({},"".concat(E,"-spin"),!!m)),I=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,T=(0,i.A)((0,i.A)({},h.yf),{},{className:O,style:I,viewBox:p});p||delete T.viewBox;var M=function(){return l?s.createElement(l,T,b):b?((0,h.$e)(!!p||1===s.Children.count(b)&&s.isValidElement(b)&&"use"===s.Children.only(b).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),s.createElement("svg",(0,n.A)({},T,{viewBox:p}),b)):null},R=v;return void 0===R&&y&&(R=-1),s.createElement("span",(0,n.A)({role:"img"},x,{ref:w,tabIndex:R,onClick:y,className:k}),M())});p.displayName="AntdIcon";let m=p},63147:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},60090:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},83896:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"border",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},12297:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},87048:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},49783:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},24707:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},31090:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},17544:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},14985:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},91631:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},67062:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={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"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},36197:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},54291:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},15862:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},4177:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},87252:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},1352:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},85766:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},9870:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},92946:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},53776:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},89289:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},56766:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},80955:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},96541:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},82817:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},28460:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},28594:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},37294:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(42664),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};var a=r(59909),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},11820:function(e,t,r){"use strict";r.d(t,{$e:()=>h,Em:()=>g,P3:()=>d,al:()=>v,cM:()=>m,lf:()=>x,yf:()=>y});var n=r(33779),i=r(2716),o=r(87516),a=r(58451),s=r(21843),l=r(36216),u=r(22155),c=r(12893);function f(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function h(e,t){(0,l.Ay)(e,"[@ant-design/icons] ".concat(t))}function d(e){return"object"===(0,i.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,i.A)(e.icon)||"function"==typeof e.icon)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[f(r)]=n),t},{})}function m(e,t,r){return r?u.createElement(e.tag,(0,n.A)((0,n.A)({key:t},p(e.attrs)),r),(e.children||[]).map(function(r,n){return m(r,"".concat(t,"-").concat(e.tag,"-").concat(n))})):u.createElement(e.tag,(0,n.A)({key:t},p(e.attrs)),(e.children||[]).map(function(r,n){return m(r,"".concat(t,"-").concat(e.tag,"-").concat(n))}))}function g(e){return(0,o.cM)(e)[0]}function v(e){return e?Array.isArray(e)?e:[e]:[]}var y={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},b="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",x=function(e){var t=(0,u.useContext)(c.A),r=t.csp,n=t.prefixCls,i=b;n&&(i=i.replace(/anticon/g,n)),(0,u.useEffect)(function(){var t=e.current,n=(0,s.j)(t);(0,a.BD)(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})},[])}},18956:function(e,t,r){"use strict";r.d(t,{H:()=>f,K6:()=>o,Me:()=>u,Ob:()=>c,YL:()=>s,_:()=>i,g8:()=>p,n6:()=>d,oS:()=>m,wE:()=>l});var n=r(60024);function i(e,t,r){return{r:255*(0,n.Cg)(e,255),g:255*(0,n.Cg)(t,255),b:255*(0,n.Cg)(r,255)}}function o(e,t,r){e=(0,n.Cg)(e,255);var i=Math.max(e,t=(0,n.Cg)(t,255),r=(0,n.Cg)(r,255)),o=Math.min(e,t,r),a=0,s=0,l=(i+o)/2;if(i===o)s=0,a=0;else{var u=i-o;switch(s=l>.5?u/(2-i-o):u/(i+o),i){case e:a=(t-r)/u+6*(t<r);break;case t:a=(r-e)/u+2;break;case r:a=(e-t)/u+4}a/=6}return{h:a,s:s,l:l}}function a(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+6*r*(t-e):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function s(e,t,r){if(e=(0,n.Cg)(e,360),t=(0,n.Cg)(t,100),r=(0,n.Cg)(r,100),0===t)o=r,s=r,i=r;else{var i,o,s,l=r<.5?r*(1+t):r+t-r*t,u=2*r-l;i=a(u,l,e+1/3),o=a(u,l,e),s=a(u,l,e-1/3)}return{r:255*i,g:255*o,b:255*s}}function l(e,t,r){e=(0,n.Cg)(e,255);var i=Math.max(e,t=(0,n.Cg)(t,255),r=(0,n.Cg)(r,255)),o=Math.min(e,t,r),a=0,s=i,l=i-o,u=0===i?0:l/i;if(i===o)a=0;else{switch(i){case e:a=(t-r)/l+6*(t<r);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4}a/=6}return{h:a,s:u,v:s}}function u(e,t,r){e=6*(0,n.Cg)(e,360),t=(0,n.Cg)(t,100),r=(0,n.Cg)(r,100);var i=Math.floor(e),o=e-i,a=r*(1-t),s=r*(1-o*t),l=r*(1-(1-o)*t),u=i%6;return{r:255*[r,s,a,a,l,r][u],g:255*[l,r,r,s,a,a][u],b:255*[a,a,l,r,r,s][u]}}function c(e,t,r,i){var o=[(0,n.wl)(Math.round(e).toString(16)),(0,n.wl)(Math.round(t).toString(16)),(0,n.wl)(Math.round(r).toString(16))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function f(e,t,r,i,o){var a=[(0,n.wl)(Math.round(e).toString(16)),(0,n.wl)(Math.round(t).toString(16)),(0,n.wl)(Math.round(r).toString(16)),(0,n.wl)(h(i))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function h(e){return Math.round(255*parseFloat(e)).toString(16)}function d(e){return p(e)/255}function p(e){return parseInt(e,16)}function m(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}},60718:function(e,t,r){"use strict";r.d(t,{D:()=>n});var n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},57358:function(e,t,r){"use strict";r.d(t,{RO:()=>a});var n=r(18956),i=r(60718),o=r(60024);function a(e){var t={r:0,g:0,b:0},r=1,i=null,a=null,s=null,l=!1,u=!1;return"string"==typeof e&&(e=d(e)),"object"==typeof e&&(p(e.r)&&p(e.g)&&p(e.b)?(t=(0,n._)(e.r,e.g,e.b),l=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):p(e.h)&&p(e.s)&&p(e.v)?(i=(0,o.Px)(e.s),a=(0,o.Px)(e.v),t=(0,n.Me)(e.h,i,a),l=!0,u="hsv"):p(e.h)&&p(e.s)&&p(e.l)&&(i=(0,o.Px)(e.s),s=(0,o.Px)(e.l),t=(0,n.YL)(e.h,i,s),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=(0,o.TV)(r),{ok:l,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var s="[-\\+]?\\d+%?",l="[-\\+]?\\d*\\.\\d+%?",u="(?:".concat(l,")|(?:").concat(s,")"),c="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),f="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),h={CSS_UNIT:new RegExp(u),rgb:RegExp("rgb"+c),rgba:RegExp("rgba"+f),hsl:RegExp("hsl"+c),hsla:RegExp("hsla"+f),hsv:RegExp("hsv"+c),hsva:RegExp("hsva"+f),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(i.D[e])e=i.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=h.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=h.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=h.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=h.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=h.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=h.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=h.hex8.exec(e))?{r:(0,n.g8)(r[1]),g:(0,n.g8)(r[2]),b:(0,n.g8)(r[3]),a:(0,n.n6)(r[4]),format:t?"name":"hex8"}:(r=h.hex6.exec(e))?{r:(0,n.g8)(r[1]),g:(0,n.g8)(r[2]),b:(0,n.g8)(r[3]),format:t?"name":"hex"}:(r=h.hex4.exec(e))?{r:(0,n.g8)(r[1]+r[1]),g:(0,n.g8)(r[2]+r[2]),b:(0,n.g8)(r[3]+r[3]),a:(0,n.n6)(r[4]+r[4]),format:t?"name":"hex8"}:!!(r=h.hex3.exec(e))&&{r:(0,n.g8)(r[1]+r[1]),g:(0,n.g8)(r[2]+r[2]),b:(0,n.g8)(r[3]+r[3]),format:t?"name":"hex"}}function p(e){return!!h.CSS_UNIT.exec(String(e))}},32006:function(e,t,r){"use strict";r.d(t,{q:()=>s});var n=r(18956),i=r(60718),o=r(57358),a=r(60024),s=function(){function e(t,r){if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=(0,n.oS)(t)),this.originalInput=t;var i,a=(0,o.RO)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!=(i=r.format)?i:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e,t,r,n=this.toRgb(),i=n.r/255,o=n.g/255,a=n.b/255;return .2126*(e=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(t=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(r=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.TV)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,n.wE)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,n.wE)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),i=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,n.K6)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,n.K6)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),i=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,n.Ob)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,n.H)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.Cg)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.Cg)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,n.Ob)(this.r,this.g,this.b,!1),t=0,r=Object.entries(i.D);t<r.length;t++){var o=r[t],a=o[0];if(e===o[1])return a}return!1},e.prototype.toString=function(e){var t=!!e;e=null!=e?e:this.format;var r=!1,n=this.a<1&&this.a>=0;return!t&&n&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=(0,a.J$)(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(t/100*255)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(t/100*255)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(t/100*255)))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=(0,a.J$)(r.l),new e(r)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=(0,a.J$)(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=(0,a.J$)(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),o=r/100;return new e({r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a})},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),i=360/r,o=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/t;t--;)a.push(new e({h:n,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),i=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/i,g:(r.g*r.a+n.g*n.a*(1-r.a))/i,b:(r.b*r.a+n.b*n.a*(1-r.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(n+a*o)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()},60024:function(e,t,r){"use strict";function n(e,t){o(e)&&(e="100%");var r=a(e);return(e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),1e-6>Math.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function i(e){return Math.min(1,Math.max(0,e))}function o(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function a(e){return"string"==typeof e&&-1!==e.indexOf("%")}function s(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function l(e){return e<=1?"".concat(100*Number(e),"%"):e}function u(e){return 1===e.length?"0"+e:String(e)}r.d(t,{Cg:()=>n,J$:()=>i,Px:()=>l,TV:()=>s,wl:()=>u})},47138:function(e,t,r){"use strict";r.d(t,{A:()=>S});var n=r(86233),i=r(22155),o=r(70316),a=r(19352);r(36216);var s=r(37233);let l=i.createContext(null);var u=r(38128),c=r(28367),f=[];function h(e,t){var r=i.useState(function(){return(0,a.A)()?document.createElement("div"):null}),o=(0,n.A)(r,1)[0],s=i.useRef(!1),h=i.useContext(l),d=i.useState(f),p=(0,n.A)(d,2),m=p[0],g=p[1],v=h||(s.current?void 0:function(e){g(function(t){return[e].concat((0,u.A)(t))})});function y(){o.parentElement||document.body.appendChild(o),s.current=!0}function b(){var e;null==(e=o.parentElement)||e.removeChild(o),s.current=!1}return(0,c.A)(function(){return e?h?h(y):y():b(),b},[e]),(0,c.A)(function(){m.length&&(m.forEach(function(e){return e()}),g(f))},[m]),[o,v]}var d=r(58451);function p(e){var t,r,n="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),i=document.createElement("div");i.id=n;var o=i.style;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",e){var a=getComputedStyle(e);o.scrollbarColor=a.scrollbarColor,o.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var c=l?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";(0,d.BD)("\n#".concat(n,"::-webkit-scrollbar {\n").concat(c,"\n").concat(f,"\n}"),n)}catch(e){console.error(e),t=l,r=u}}document.body.appendChild(i);var h=e&&t&&!isNaN(t)?t:i.offsetWidth-i.clientWidth,p=e&&r&&!isNaN(r)?r:i.offsetHeight-i.clientHeight;return document.body.removeChild(i),(0,d.m6)(n),{width:h,height:p}}function m(e){return"undefined"!=typeof document&&e&&e instanceof Element?p(e):{width:0,height:0}}function g(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var v="rc-util-locker-".concat(Date.now()),y=0;function b(e){var t=!!e,r=i.useState(function(){return y+=1,"".concat(v,"_").concat(y)}),o=(0,n.A)(r,1)[0];(0,c.A)(function(){if(t){var e=m(document.body).width,r=g();(0,d.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else(0,d.m6)(o);return function(){(0,d.m6)(o)}},[t,o])}var x=!1;function _(e){return"boolean"==typeof e&&(x=e),x}var w=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};let S=i.forwardRef(function(e,t){var r=e.open,u=e.autoLock,c=e.getContainer,f=e.debug,d=e.autoDestroy,p=void 0===d||d,m=e.children,g=i.useState(r),v=(0,n.A)(g,2),y=v[0],x=v[1],S=y||r;i.useEffect(function(){(p||r)&&x(r)},[r,p]);var A=i.useState(function(){return w(c)}),E=(0,n.A)(A,2),C=E[0],k=E[1];i.useEffect(function(){var e=w(c);k(null!=e?e:null)});var O=h(S&&!C,f),I=(0,n.A)(O,2),T=I[0],M=I[1],R=null!=C?C:T;b(u&&r&&(0,a.A)()&&(R===T||R===document.body));var P=null;m&&(0,s.f3)(m)&&t&&(P=m.ref);var $=(0,s.xK)(P,t);if(!S||!(0,a.A)()||void 0===C)return null;var B=!1===R||_(),N=m;return t&&(N=i.cloneElement(m,{ref:$})),i.createElement(l.Provider,{value:M},B?N:(0,o.createPortal)(N,R))})},6099:function(e,t,r){"use strict";r.d(t,{A:()=>q});var n=r(33779),i=r(86233),o=r(48827),a=r(47138),s=r(30395),l=r.n(s),u=r(85925),c=r(62634),f=r(21843),h=r(41186),d=r(94121),p=r(28367),m=r(84080),g=r(22155),v=r(42664),y=r(47425),b=r(37233);function x(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,o=n||{},a=o.className,s=o.content,u=i.x,c=void 0===u?0:u,f=i.y,h=void 0===f?0:f,d=g.useRef();if(!r||!r.points)return null;var p={position:"absolute"};if(!1!==r.autoArrow){var m=r.points[0],v=r.points[1],y=m[0],b=m[1],x=v[0],_=v[1];y!==x&&["t","b"].includes(y)?"t"===y?p.top=0:p.bottom=0:p.top=h,b!==_&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=c}return g.createElement("div",{ref:d,className:l()("".concat(t,"-arrow"),a),style:p},s)}function _(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?g.createElement(y.Ay,(0,v.A)({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(e){var r=e.className;return g.createElement("div",{style:{zIndex:n},className:l()("".concat(t,"-mask"),r)})}):null}let w=g.memo(function(e){return e.children},function(e,t){return t.cache}),S=g.forwardRef(function(e,t){var r=e.popup,o=e.className,a=e.prefixCls,s=e.style,c=e.target,f=e.onVisibleChanged,h=e.open,d=e.keepDom,m=e.fresh,S=e.onClick,A=e.mask,E=e.arrow,C=e.arrowPos,k=e.align,O=e.motion,I=e.maskMotion,T=e.forceRender,M=e.getPopupContainer,R=e.autoDestroy,P=e.portal,$=e.zIndex,B=e.onMouseEnter,N=e.onMouseLeave,z=e.onPointerEnter,L=e.ready,j=e.offsetX,F=e.offsetY,D=e.offsetR,U=e.offsetB,H=e.onAlign,G=e.onPrepare,W=e.stretch,V=e.targetWidth,q=e.targetHeight,X="function"==typeof r?r():r,Y=h||d,K=(null==M?void 0:M.length)>0,Z=g.useState(!M||!K),Q=(0,i.A)(Z,2),J=Q[0],ee=Q[1];if((0,p.A)(function(){!J&&K&&c&&ee(!0)},[J,K,c]),!J)return null;var et="auto",er={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(L||!h){var en,ei=k.points,eo=k.dynamicInset||(null==(en=k._experimental)?void 0:en.dynamicInset),ea=eo&&"r"===ei[0][1],es=eo&&"b"===ei[0][0];ea?(er.right=D,er.left=et):(er.left=j,er.right=et),es?(er.bottom=U,er.top=et):(er.top=F,er.bottom=et)}var el={};return W&&(W.includes("height")&&q?el.height=q:W.includes("minHeight")&&q&&(el.minHeight=q),W.includes("width")&&V?el.width=V:W.includes("minWidth")&&V&&(el.minWidth=V)),h||(el.pointerEvents="none"),g.createElement(P,{open:T||Y,getContainer:M&&function(){return M(c)},autoDestroy:R},g.createElement(_,{prefixCls:a,open:h,zIndex:$,mask:A,motion:I}),g.createElement(u.A,{onResize:H,disabled:!h},function(e){return g.createElement(y.Ay,(0,v.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:T,leavedClassName:"".concat(a,"-hidden")},O,{onAppearPrepare:G,onEnterPrepare:G,visible:h,onVisibleChanged:function(e){var t;null==O||null==(t=O.onVisibleChanged)||t.call(O,e),f(e)}}),function(r,i){var u=r.className,c=r.style,f=l()(a,u,o);return g.createElement("div",{ref:(0,b.K4)(e,t,i),className:f,style:(0,n.A)((0,n.A)((0,n.A)((0,n.A)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},er),el),c),{},{boxSizing:"border-box",zIndex:$},s),onMouseEnter:B,onMouseLeave:N,onPointerEnter:z,onClick:S},E&&g.createElement(x,{prefixCls:a,arrow:E,arrowPos:C,align:k}),g.createElement(w,{cache:!h&&!m},X))})}))}),A=g.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=(0,b.f3)(r),o=g.useCallback(function(e){(0,b.Xf)(t,n?n(e):e)},[n]),a=(0,b.xK)(o,r.ref);return i?g.cloneElement(r,{ref:a}):r}),E=g.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}function k(e,t,r,n){return g.useMemo(function(){var i=C(null!=r?r:t),o=C(null!=n?n:t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}var O=r(49677);function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function T(e,t,r,n){for(var i=r.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(I(null==(s=e[l])?void 0:s.points,i,n))return"".concat(t,"-placement-").concat(l)}return""}function M(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function R(e){return e.ownerDocument.defaultView}function P(e){for(var t=[],r=null==e?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=R(r).getComputedStyle(r);[i.overflowX,i.overflowY,i.overflow].some(function(e){return n.includes(e)})&&t.push(r),r=r.parentElement}return t}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function B(e){return $(parseFloat(e),0)}function N(e,t){var r=(0,n.A)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=R(e).getComputedStyle(e),n=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,u=e.getBoundingClientRect(),c=e.offsetHeight,f=e.clientHeight,h=e.offsetWidth,d=e.clientWidth,p=B(o),m=B(a),g=B(s),v=B(l),y=$(Math.round(u.width/h*1e3)/1e3),b=$(Math.round(u.height/c*1e3)/1e3),x=(h-d-g-v)*y,_=(c-f-p-m)*b,w=p*b,S=m*b,A=g*y,E=v*y,C=0,k=0;if("clip"===n){var O=B(i);C=O*y,k=O*b}var I=u.x+A-C,T=u.y+w-k,M=I+u.width+2*C-A-E-x,P=T+u.height+2*k-w-S-_;r.left=Math.max(r.left,I),r.top=Math.max(r.top,T),r.right=Math.min(r.right,M),r.bottom=Math.min(r.bottom,P)}}),r}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function L(e,t){var r=t||[],n=(0,i.A)(r,2),o=n[0],a=n[1];return[z(e.width,o),z(e.height,a)]}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function F(e,t){var r,n,i=t[0],o=t[1];return n="t"===i?e.y:"b"===i?e.y+e.height:e.y+e.height/2,{x:r="l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function D(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,n){return n===t?r[e]||"c":e}).join("")}function U(e,t,r,o,a,s,l){var u=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),f=(0,i.A)(u,2),d=f[0],m=f[1],v=g.useRef(0),y=g.useMemo(function(){return t?P(t):[]},[t]),b=g.useRef({}),x=function(){b.current={}};e||x();var _=(0,h.A)(function(){if(t&&r&&e){var u,f,h,d,p=t,g=p.ownerDocument,v=R(p).getComputedStyle(p),x=v.width,_=v.height,w=v.position,S=p.style.left,A=p.style.top,E=p.style.right,C=p.style.bottom,k=p.style.overflow,I=(0,n.A)((0,n.A)({},a[o]),s),T=g.createElement("div");if(null==(M=p.parentElement)||M.appendChild(T),T.style.left="".concat(p.offsetLeft,"px"),T.style.top="".concat(p.offsetTop,"px"),T.style.position=w,T.style.height="".concat(p.offsetHeight,"px"),T.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(r))U={x:r[0],y:r[1],width:0,height:0};else{var M,P,B,z,U,H,G,W=r.getBoundingClientRect();W.x=null!=(H=W.x)?H:W.left,W.y=null!=(G=W.y)?G:W.top,U={x:W.x,y:W.y,width:W.width,height:W.height}}var V=p.getBoundingClientRect();V.x=null!=(P=V.x)?P:V.left,V.y=null!=(B=V.y)?B:V.top;var q=g.documentElement,X=q.clientWidth,Y=q.clientHeight,K=q.scrollWidth,Z=q.scrollHeight,Q=q.scrollTop,J=q.scrollLeft,ee=V.height,et=V.width,er=U.height,en=U.width,ei={left:0,top:0,right:X,bottom:Y},eo={left:-J,top:-Q,right:K-J,bottom:Z-Q},ea=I.htmlRegion,es="visible",el="visibleFirst";"scroll"!==ea&&ea!==el&&(ea=es);var eu=ea===el,ec=N(eo,y),ef=N(ei,y),eh=ea===es?ef:ec,ed=eu?ef:eh;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var ep=p.getBoundingClientRect();p.style.left=S,p.style.top=A,p.style.right=E,p.style.bottom=C,p.style.overflow=k,null==(z=p.parentElement)||z.removeChild(T);var em=$(Math.round(et/parseFloat(x)*1e3)/1e3),eg=$(Math.round(ee/parseFloat(_)*1e3)/1e3);if(!(0===em||0===eg||(0,c.fk)(r)&&!(0,O.A)(r))){var ev=I.offset,ey=I.targetOffset,eb=L(V,ev),ex=(0,i.A)(eb,2),e_=ex[0],ew=ex[1],eS=L(U,ey),eA=(0,i.A)(eS,2),eE=eA[0],eC=eA[1];U.x-=eE,U.y-=eC;var ek=I.points||[],eO=(0,i.A)(ek,2),eI=eO[0],eT=eO[1],eM=j(eT),eR=j(eI),eP=F(U,eM),e$=F(V,eR),eB=(0,n.A)({},I),eN=eP.x-e$.x+e_,ez=eP.y-e$.y+ew,eL=tS(eN,ez),ej=tS(eN,ez,ef),eF=F(U,["t","l"]),eD=F(V,["t","l"]),eU=F(U,["b","r"]),eH=F(V,["b","r"]),eG=I.overflow||{},eW=eG.adjustX,eV=eG.adjustY,eq=eG.shiftX,eX=eG.shiftY,eY=function(e){return"boolean"==typeof e?e:e>=0};tA();var eK=eY(eV),eZ=eR[0]===eM[0];if(eK&&"t"===eR[0]&&(f>ed.bottom||b.current.bt)){var eQ=ez;eZ?eQ-=ee-er:eQ=eF.y-eH.y-ew;var eJ=tS(eN,eQ),e0=tS(eN,eQ,ef);eJ>eL||eJ===eL&&(!eu||e0>=ej)?(b.current.bt=!0,ez=eQ,ew=-ew,eB.points=[D(eR,0),D(eM,0)]):b.current.bt=!1}if(eK&&"b"===eR[0]&&(u<ed.top||b.current.tb)){var e1=ez;eZ?e1+=ee-er:e1=eU.y-eD.y-ew;var e2=tS(eN,e1),e3=tS(eN,e1,ef);e2>eL||e2===eL&&(!eu||e3>=ej)?(b.current.tb=!0,ez=e1,ew=-ew,eB.points=[D(eR,0),D(eM,0)]):b.current.tb=!1}var e5=eY(eW),e4=eR[1]===eM[1];if(e5&&"l"===eR[1]&&(d>ed.right||b.current.rl)){var e6=eN;e4?e6-=et-en:e6=eF.x-eH.x-e_;var e8=tS(e6,ez),e7=tS(e6,ez,ef);e8>eL||e8===eL&&(!eu||e7>=ej)?(b.current.rl=!0,eN=e6,e_=-e_,eB.points=[D(eR,1),D(eM,1)]):b.current.rl=!1}if(e5&&"r"===eR[1]&&(h<ed.left||b.current.lr)){var e9=eN;e4?e9+=et-en:e9=eU.x-eD.x-e_;var te=tS(e9,ez),tt=tS(e9,ez,ef);te>eL||te===eL&&(!eu||tt>=ej)?(b.current.lr=!0,eN=e9,e_=-e_,eB.points=[D(eR,1),D(eM,1)]):b.current.lr=!1}tA();var tr=!0===eq?0:eq;"number"==typeof tr&&(h<ef.left&&(eN-=h-ef.left-e_,U.x+en<ef.left+tr&&(eN+=U.x-ef.left+en-tr)),d>ef.right&&(eN-=d-ef.right-e_,U.x>ef.right-tr&&(eN+=U.x-ef.right+tr)));var tn=!0===eX?0:eX;"number"==typeof tn&&(u<ef.top&&(ez-=u-ef.top-ew,U.y+er<ef.top+tn&&(ez+=U.y-ef.top+er-tn)),f>ef.bottom&&(ez-=f-ef.bottom-ew,U.y>ef.bottom-tn&&(ez+=U.y-ef.bottom+tn)));var ti=V.x+eN,to=ti+et,ta=V.y+ez,ts=ta+ee,tl=U.x,tu=tl+en,tc=U.y,tf=tc+er,th=Math.max(ti,tl),td=Math.min(to,tu),tp=(th+td)/2,tm=tp-ti,tg=Math.max(ta,tc),tv=Math.min(ts,tf),ty=(tg+tv)/2,tb=ty-ta;null==l||l(t,eB);var tx=ep.right-V.x-(eN+V.width),t_=ep.bottom-V.y-(ez+V.height);1===em&&(eN=Math.round(eN),tx=Math.round(tx)),1===eg&&(ez=Math.round(ez),t_=Math.round(t_));var tw={ready:!0,offsetX:eN/em,offsetY:ez/eg,offsetR:tx/em,offsetB:t_/eg,arrowX:tm/em,arrowY:tb/eg,scaleX:em,scaleY:eg,align:eB};m(tw)}function tS(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eh,n=V.x+e,i=V.y+t,o=n+et,a=i+ee,s=Math.max(n,r.left),l=Math.max(i,r.top);return Math.max(0,(Math.min(o,r.right)-s)*(Math.min(a,r.bottom)-l))}function tA(){f=(u=V.y+ez)+ee,d=(h=V.x+eN)+et}}}),w=function(){v.current+=1;var e=v.current;Promise.resolve().then(function(){v.current===e&&_()})},S=function(){m(function(e){return(0,n.A)((0,n.A)({},e),{},{ready:!1})})};return(0,p.A)(S,[o]),(0,p.A)(function(){e||S()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,w]}var H=r(38128);function G(e,t,r,n,i){(0,p.A)(function(){if(e&&t&&r){var o=r,a=P(t),s=P(o),l=R(o),u=new Set([l].concat((0,H.A)(a),(0,H.A)(s)));function c(){n(),i()}return u.forEach(function(e){e.addEventListener("scroll",c,{passive:!0})}),l.addEventListener("resize",c,{passive:!0}),n(),function(){u.forEach(function(e){e.removeEventListener("scroll",c),l.removeEventListener("resize",c)})}}},[e,t,r])}function W(e,t,r,n,i,o,a,s){var l=g.useRef(e);l.current=e,g.useEffect(function(){if(t&&n&&(!i||o)){var e=function(e){var t;l.current&&!a((null==(t=e.composedPath)||null==(t=t.call(e))?void 0:t[0])||e.target)&&s(!1)},u=R(n);u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0);var c=(0,f.j)(r);return c&&(c.addEventListener("mousedown",e,!0),c.addEventListener("contextmenu",e,!0)),function(){u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0),c&&(c.removeEventListener("mousedown",e,!0),c.removeEventListener("contextmenu",e,!0))}}},[t,r,n,i,o])}r(36216);var V=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];let q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A;return g.forwardRef(function(t,r){var a,s,v=t.prefixCls,y=void 0===v?"rc-trigger-popup":v,b=t.children,x=t.action,_=void 0===x?"hover":x,w=t.showAction,C=t.hideAction,O=t.popupVisible,I=t.defaultPopupVisible,R=t.onPopupVisibleChange,P=t.afterPopupVisibleChange,$=t.mouseEnterDelay,B=t.mouseLeaveDelay,N=void 0===B?.1:B,z=t.focusDelay,L=t.blurDelay,j=t.mask,F=t.maskClosable,D=void 0===F||F,H=t.getPopupContainer,q=t.forceRender,X=t.autoDestroy,Y=t.destroyPopupOnHide,K=t.popup,Z=t.popupClassName,Q=t.popupStyle,J=t.popupPlacement,ee=t.builtinPlacements,et=void 0===ee?{}:ee,er=t.popupAlign,en=t.zIndex,ei=t.stretch,eo=t.getPopupClassNameFromAlign,ea=t.fresh,es=t.alignPoint,el=t.onPopupClick,eu=t.onPopupAlign,ec=t.arrow,ef=t.popupMotion,eh=t.maskMotion,ed=t.popupTransitionName,ep=t.popupAnimation,em=t.maskTransitionName,eg=t.maskAnimation,ev=t.className,ey=t.getTriggerDOMNode,eb=(0,o.A)(t,V),ex=X||Y||!1,e_=g.useState(!1),ew=(0,i.A)(e_,2),eS=ew[0],eA=ew[1];(0,p.A)(function(){eA((0,m.A)())},[]);var eE=g.useRef({}),eC=g.useContext(E),ek=g.useMemo(function(){return{registerSubPopup:function(e,t){eE.current[e]=t,null==eC||eC.registerSubPopup(e,t)}}},[eC]),eO=(0,d.A)(),eI=g.useState(null),eT=(0,i.A)(eI,2),eM=eT[0],eR=eT[1],eP=g.useRef(null),e$=(0,h.A)(function(e){eP.current=e,(0,c.fk)(e)&&eM!==e&&eR(e),null==eC||eC.registerSubPopup(eO,e)}),eB=g.useState(null),eN=(0,i.A)(eB,2),ez=eN[0],eL=eN[1],ej=g.useRef(null),eF=(0,h.A)(function(e){(0,c.fk)(e)&&ez!==e&&(eL(e),ej.current=e)}),eD=g.Children.only(b),eU=(null==eD?void 0:eD.props)||{},eH={},eG=(0,h.A)(function(e){var t,r,n=ez;return(null==n?void 0:n.contains(e))||(null==(t=(0,f.j)(n))?void 0:t.host)===e||e===n||(null==eM?void 0:eM.contains(e))||(null==(r=(0,f.j)(eM))?void 0:r.host)===e||e===eM||Object.values(eE.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),eW=M(y,ef,ep,ed),eV=M(y,eh,eg,em),eq=g.useState(I||!1),eX=(0,i.A)(eq,2),eY=eX[0],eK=eX[1],eZ=null!=O?O:eY,eQ=(0,h.A)(function(e){void 0===O&&eK(e)});(0,p.A)(function(){eK(O||!1)},[O]);var eJ=g.useRef(eZ);eJ.current=eZ;var e0=g.useRef([]);e0.current=[];var e1=(0,h.A)(function(e){var t;eQ(e),(null!=(t=e0.current[e0.current.length-1])?t:eZ)!==e&&(e0.current.push(e),null==R||R(e))}),e2=g.useRef(),e3=function(){clearTimeout(e2.current)},e5=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e3(),0===t?e1(e):e2.current=setTimeout(function(){e1(e)},1e3*t)};g.useEffect(function(){return e3},[]);var e4=g.useState(!1),e6=(0,i.A)(e4,2),e8=e6[0],e7=e6[1];(0,p.A)(function(e){(!e||eZ)&&e7(!0)},[eZ]);var e9=g.useState(null),te=(0,i.A)(e9,2),tt=te[0],tr=te[1],tn=g.useState(null),ti=(0,i.A)(tn,2),to=ti[0],ta=ti[1],ts=function(e){ta([e.clientX,e.clientY])},tl=U(eZ,eM,es&&null!==to?to:ez,J,et,er,eu),tu=(0,i.A)(tl,11),tc=tu[0],tf=tu[1],th=tu[2],td=tu[3],tp=tu[4],tm=tu[5],tg=tu[6],tv=tu[7],ty=tu[8],tb=tu[9],tx=tu[10],t_=k(eS,_,w,C),tw=(0,i.A)(t_,2),tS=tw[0],tA=tw[1],tE=tS.has("click"),tC=tA.has("click")||tA.has("contextMenu"),tk=(0,h.A)(function(){e8||tx()});G(eZ,ez,eM,tk,function(){eJ.current&&es&&tC&&e5(!1)}),(0,p.A)(function(){tk()},[to,J]),(0,p.A)(function(){eZ&&!(null!=et&&et[J])&&tk()},[JSON.stringify(er)]);var tO=g.useMemo(function(){var e=T(et,y,tb,es);return l()(e,null==eo?void 0:eo(tb))},[tb,eo,et,y,es]);g.useImperativeHandle(r,function(){return{nativeElement:ej.current,popupElement:eP.current,forceAlign:tk}});var tI=g.useState(0),tT=(0,i.A)(tI,2),tM=tT[0],tR=tT[1],tP=g.useState(0),t$=(0,i.A)(tP,2),tB=t$[0],tN=t$[1],tz=function(){if(ei&&ez){var e=ez.getBoundingClientRect();tR(e.width),tN(e.height)}},tL=function(){tz(),tk()},tj=function(e){e7(!1),tx(),null==P||P(e)},tF=function(){return new Promise(function(e){tz(),tr(function(){return e})})};function tD(e,t,r,n){eH[e]=function(i){var o;null==n||n(i),e5(t,r);for(var a=arguments.length,s=Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null==(o=eU[e])||o.call.apply(o,[eU,i].concat(s))}}(0,p.A)(function(){tt&&(tx(),tt(),tr(null))},[tt]),(tE||tC)&&(eH.onClick=function(e){var t;eJ.current&&tC?e5(!1):!eJ.current&&tE&&(ts(e),e5(!0));for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];null==(t=eU.onClick)||t.call.apply(t,[eU,e].concat(n))}),W(eZ,tC,ez,eM,j,D,eG,e5);var tU=tS.has("hover"),tH=tA.has("hover");tU&&(tD("onMouseEnter",!0,$,function(e){ts(e)}),tD("onPointerEnter",!0,$,function(e){ts(e)}),a=function(e){(eZ||e8)&&null!=eM&&eM.contains(e.target)&&e5(!0,$)},es&&(eH.onMouseMove=function(e){var t;null==(t=eU.onMouseMove)||t.call(eU,e)})),tH&&(tD("onMouseLeave",!1,N),tD("onPointerLeave",!1,N),s=function(){e5(!1,N)}),tS.has("focus")&&tD("onFocus",!0,z),tA.has("focus")&&tD("onBlur",!1,L),tS.has("contextMenu")&&(eH.onContextMenu=function(e){var t;eJ.current&&tA.has("contextMenu")?e5(!1):(ts(e),e5(!0)),e.preventDefault();for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];null==(t=eU.onContextMenu)||t.call.apply(t,[eU,e].concat(n))}),ev&&(eH.className=l()(eU.className,ev));var tG=(0,n.A)((0,n.A)({},eU),eH),tW={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){eb[e]&&(tW[e]=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];null==(t=tG[e])||t.call.apply(t,[tG].concat(n)),eb[e].apply(eb,n)})});var tV=g.cloneElement(eD,(0,n.A)((0,n.A)({},tG),tW)),tq={x:tm,y:tg},tX=ec?(0,n.A)({},!0!==ec?ec:{}):null;return g.createElement(g.Fragment,null,g.createElement(u.A,{disabled:!eZ,ref:eF,onResize:tL},g.createElement(A,{getTriggerDOMNode:ey},tV)),g.createElement(E.Provider,{value:ek},g.createElement(S,{portal:e,ref:e$,prefixCls:y,popup:K,className:l()(Z,tO),style:Q,target:ez,onMouseEnter:a,onMouseLeave:s,onPointerEnter:a,zIndex:en,open:eZ,keepDom:e8,fresh:ea,onClick:el,mask:j,motion:eW,maskMotion:eV,onVisibleChanged:tj,onPrepare:tF,forceRender:q,autoDestroy:ex,getPopupContainer:H,align:tb,arrow:tX,arrowPos:tq,ready:tc,offsetX:tf,offsetY:th,offsetR:td,offsetB:tp,onAlign:tk,stretch:ei,targetWidth:tM/tv,targetHeight:tB/ty})))})}(a.A)},36743:function(e,t,r){"use strict";var n=r(8963).Buffer,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.req=t.json=t.toBuffer=void 0;let s=a(r(87069)),l=a(r(84033));async function u(e){let t=0,r=[];for await(let n of e)t+=n.length,r.push(n);return n.concat(r,t)}t.toBuffer=u,t.json=async function(e){let t=(await u(e)).toString("utf8");try{return JSON.parse(t)}catch(r){let e=r;throw e.message+=` (input: ${t})`,e}},t.req=function(e,t={}){let r=(("string"==typeof e?e:e.href).startsWith("https:")?l:s).request(e,t),n=new Promise((e,t)=>{r.once("response",e).once("error",t).end()});return r.then=n.then.bind(n),r}},56406:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Agent=void 0;let s=o(r(12924)),l=o(r(87069)),u=r(84033);a(r(36743),t);let c=Symbol("AgentBaseInternalState");class f extends l.Agent{constructor(e){super(e),this[c]={}}isSecureEndpoint(e){if(e){if("boolean"==typeof e.secureEndpoint)return e.secureEndpoint;if("string"==typeof e.protocol)return"https:"===e.protocol}let{stack:t}=Error();return"string"==typeof t&&t.split("\n").some(e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:"))}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new s.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||null===t)return;let r=this.sockets[e],n=r.indexOf(t);-1!==n&&(r.splice(n,1),this.totalSocketCount--,0===r.length&&delete this.sockets[e])}getName(e){return("boolean"==typeof e.secureEndpoint?e.secureEndpoint:this.isSecureEndpoint(e))?u.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,r){let n={...t,secureEndpoint:this.isSecureEndpoint(t)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof l.Agent)try{return a.addRequest(e,n)}catch(e){return r(e)}this[c].currentSocket=a,super.createSocket(e,t,r)},e=>{this.decrementSockets(i,o),r(e)})}createConnection(){let e=this[c].currentSocket;if(this[c].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[c].defaultPort??("https:"===this.protocol?443:80)}set defaultPort(e){this[c]&&(this[c].defaultPort=e)}get protocol(){return this[c].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[c]&&(this[c].protocol=e)}}t.Agent=f},77085:function(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(22155),i=r(48749),o=r(50059);let a=e=>{let{space:t,form:r,children:a}=e;if(null==a)return null;let s=a;return r&&(s=n.createElement(i.XB,{override:!0,status:!0},s)),t&&(s=n.createElement(o.K6,null,s)),s}},72125:function(e,t,r){"use strict";r.d(t,{A:()=>l,U:()=>s});var n=r(22155),i=r(88127),o=r(22770),a=r(71179);function s(e){return t=>n.createElement(o.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},n.createElement(e,Object.assign({},t)))}let l=(e,t,r,o)=>s(s=>{let{prefixCls:l,style:u}=s,c=n.useRef(null),[f,h]=n.useState(0),[d,p]=n.useState(0),[m,g]=(0,i.A)(!1,{value:s.open}),{getPrefixCls:v}=n.useContext(a.QO),y=v(t||"select",l);n.useEffect(()=>{if(g(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;h(t.offsetHeight+8),p(t.offsetWidth)}),t=setInterval(()=>{var n;let i=r?`.${r(y)}`:`.${y}-dropdown`,o=null==(n=c.current)?void 0:n.querySelector(i);o&&(clearInterval(t),e.observe(o))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let b=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},u),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});o&&(b=o(b));let x={paddingBottom:f,position:"relative",minWidth:d};return n.createElement("div",{ref:c,style:x},n.createElement(e,Object.assign({},b)))})},69235:function(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(22155),i=r(17544);let o=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:n.createElement(i.A,null)}),t}},58775:function(e,t,r){"use strict";r.d(t,{YK:()=>c,jH:()=>a});var n=r(22155),i=r(68381),o=r(76332);let a=1e3,s={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100,FloatButton:100},l={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function u(e){return e in s}let c=(e,t)=>{let r,[,a]=(0,i.Ay)(),c=n.useContext(o.A),f=u(e);if(void 0!==t)r=[t,t];else{let n=null!=c?c:0;f?n+=(c?0:a.zIndexPopupBase)+s[e]:n+=l[e],r=[void 0===c?t:n,n]}return r}},36079:function(e,t,r){"use strict";r.d(t,{A:()=>u,b:()=>l});var n=r(71179);let i=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),s=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,r)=>void 0!==r?r:`${e}-${t}`,u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.yH;return{motionName:`${e}-motion-collapse`,onAppearStart:i,onEnterStart:i,onAppearActive:o,onEnterActive:o,onLeaveStart:a,onLeaveActive:i,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500}}},26197:function(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(82597);function i(e,t,r,n){if(!1===n)return{adjustX:!1,adjustY:!1};let i=n&&"object"==typeof n?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+r,o.shiftX=!0,o.adjustX=!0}let a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}let o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},a={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},s=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:l,offset:u,borderRadius:c,visibleFirst:f}=e,h=t/2,d={};return Object.keys(o).forEach(e=>{let p=Object.assign(Object.assign({},l&&a[e]||o[e]),{offset:[0,0],dynamicInset:!0});switch(d[e]=p,s.has(e)&&(p.autoArrow=!1),e){case"top":case"topLeft":case"topRight":p.offset[1]=-h-u;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=h+u;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-h-u;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=h+u}let m=(0,n.Ke)({contentRadius:c,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":p.offset[0]=-m.arrowOffsetHorizontal-h;break;case"topRight":case"bottomRight":p.offset[0]=m.arrowOffsetHorizontal+h;break;case"leftTop":case"rightTop":p.offset[1]=-(2*m.arrowOffsetHorizontal)+h;break;case"leftBottom":case"rightBottom":p.offset[1]=2*m.arrowOffsetHorizontal-h}p.overflow=i(e,m,t,r),f&&(p.htmlRegion="visibleFirst")}),d}},37886:function(e,t,r){"use strict";r.d(t,{Ob:()=>a,fx:()=>o,zv:()=>i});var n=r(22155);function i(e){return e&&n.isValidElement(e)&&e.type===n.Fragment}let o=(e,t,r)=>n.isValidElement(e)?n.cloneElement(e,"function"==typeof r?r(e.props||{}):r):t;function a(e,t){return o(e,e,t)}},39461:function(e,t,r){"use strict";r.d(t,{Ay:()=>l,ye:()=>o});var n=r(22155),i=r(68381);let o=["xxl","xl","lg","md","sm","xs"],a=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),s=e=>{let t=e,r=[].concat(o).reverse();return r.forEach((e,n)=>{let i=e.toUpperCase(),o=`screen${i}Min`,a=`screen${i}`;if(!(t[o]<=t[a]))throw Error(`${o}<=${a} fails : !(${t[o]}<=${t[a]})`);if(n<r.length-1){let e=`screen${i}Max`;if(!(t[a]<=t[e]))throw Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);let o=r[n+1].toUpperCase(),s=`screen${o}Min`;if(!(t[e]<=t[s]))throw Error(`${e}<=${s} fails : !(${t[e]}<=${t[s]})`)}}),e};function l(){let[,e]=(0,i.Ay)(),t=a(s(e));return n.useMemo(()=>{let e=new Map,r=-1,n={};return{matchHandlers:{},dispatch:t=>(n=t,e.forEach(e=>e(n)),e.size>=1),subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(n),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let r=t[e],n=this.matchHandlers[r];null==n||n.mql.removeListener(null==n?void 0:n.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let r=t[e],i=t=>{let{matches:r}=t;this.dispatch(Object.assign(Object.assign({},n),{[e]:r}))},o=window.matchMedia(r);o.addListener(i),this.matchHandlers[r]={mql:o,listener:i},i(o)})},responsiveMap:t}},[e])}},13658:function(e,t,r){"use strict";r.d(t,{L:()=>o,v:()=>a});var n=r(30395),i=r.n(n);function o(e,t,r){return i()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r})}let a=(e,t)=>t||e},61105:function(e,t,r){"use strict";r.d(t,{_n:()=>o,rJ:()=>a});var n=r(22155);function i(){}r(36216);let o=n.createContext({}),a=()=>{let e=()=>{};return e.deprecated=i,e}},37181:function(e,t,r){"use strict";r.d(t,{A:()=>E});var n=r(22155),i=r(30395),o=r.n(i),a=r(49677),s=r(37233),l=r(71179),u=r(37886),c=r(16850);let f=e=>{let{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut},opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}}}},h=(0,c.Or)("Wave",e=>[f(e)]);var d=r(41186),p=r(14597),m=r(68381),g=r(36796),v=r(47425),y=r(52310);function b(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function x(e){let{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return b(t)?t:b(r)?r:b(n)?n:null}function _(e){return Number.isNaN(e)?0:e}let w=e=>{let{className:t,target:r,component:i}=e,a=n.useRef(null),[l,u]=n.useState(null),[c,f]=n.useState([]),[h,d]=n.useState(0),[m,b]=n.useState(0),[w,S]=n.useState(0),[A,E]=n.useState(0),[C,k]=n.useState(!1),O={left:h,top:m,width:w,height:A,borderRadius:c.map(e=>`${e}px`).join(" ")};function I(){let e=getComputedStyle(r);u(x(r));let t="static"===e.position,{borderLeftWidth:n,borderTopWidth:i}=e;d(t?r.offsetLeft:_(-parseFloat(n))),b(t?r.offsetTop:_(-parseFloat(i))),S(r.offsetWidth),E(r.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:l}=e;f([o,a,l,s].map(e=>_(parseFloat(e))))}if(l&&(O["--wave-color"]=l),n.useEffect(()=>{if(r){let e,t=(0,p.A)(()=>{I(),k(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(I)).observe(r),()=>{p.A.cancel(t),null==e||e.disconnect()}}},[]),!C)return null;let T=("Checkbox"===i||"Radio"===i)&&(null==r?void 0:r.classList.contains(g.D));return n.createElement(v.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var r;if(t.deadline||"opacity"===t.propertyName){let e=null==(r=a.current)?void 0:r.parentElement;(0,y.v)(e).then(()=>{null==e||e.remove()})}return!1}},(e,r)=>{let{className:i}=e;return n.createElement("div",{ref:(0,s.K4)(a,r),className:o()(t,i,{"wave-quick":T}),style:O})})},S=(e,t)=>{var r;let{component:i}=t;if("Checkbox"===i&&!(null==(r=e.querySelector("input"))?void 0:r.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),(0,y.X)(n.createElement(w,Object.assign({},t,{target:e})),o)},A=(e,t,r)=>{let{wave:i}=n.useContext(l.QO),[,o,a]=(0,m.Ay)(),s=(0,d.A)(n=>{let s=e.current;if((null==i?void 0:i.disabled)||!s)return;let l=s.querySelector(`.${g.D}`)||s,{showEffect:u}=i||{};(u||S)(l,{className:t,token:o,component:r,event:n,hashId:a})}),u=n.useRef();return e=>{p.A.cancel(u.current),u.current=(0,p.A)(()=>{s(e)})}},E=e=>{let{children:t,disabled:r,component:i}=e,{getPrefixCls:c}=(0,n.useContext)(l.QO),f=(0,n.useRef)(null),d=c("wave"),[,p]=h(d),m=A(f,o()(d,p),i);if(n.useEffect(()=>{let e=f.current;if(!e||1!==e.nodeType||r)return;let t=t=>{!(0,a.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||m(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[r]),!n.isValidElement(t))return null!=t?t:null;let g=(0,s.f3)(t)?(0,s.K4)(t.ref,f):f;return(0,u.Ob)(t,{ref:g})}},36796:function(e,t,r){"use strict";r.d(t,{D:()=>i});var n=r(71179);let i=`${n.yH}-wave-target`},76332:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(22155).createContext(void 0)},56620:function(e,t,r){"use strict";r.d(t,{A:()=>j});var n=r(22155),i=r(87048),o=r(17544),a=r(14985),s=r(54291),l=r(87252),u=r(30395),c=r.n(u),f=r(47425),h=r(65811),d=r(37233),p=r(37886),m=r(71179),g=r(85337),v=r(12869),y=r(16850);let b=(e,t,r,n,i)=>({background:e,border:`${(0,g.zA)(n.lineWidth)} ${n.lineType} ${t}`,[`${i}-icon`]:{color:r}}),x=e=>{let{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:u,withDescriptionIconSize:c,colorText:f,colorTextHeading:h,withDescriptionPadding:d,defaultPadding:p}=e;return{[t]:Object.assign(Object.assign({},(0,v.dF)(e)),{position:"relative",display:"flex",alignItems:"center",padding:p,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${u}, opacity ${r} ${u},
|
|
3
3
|
padding-top ${r} ${u}, padding-bottom ${r} ${u},
|
|
4
4
|
margin-bottom ${r} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:d,[`${t}-icon`]:{marginInlineEnd:i,fontSize:c,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:n,color:h,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},_=e=>{let{componentCls:t,colorSuccess:r,colorSuccessBorder:n,colorSuccessBg:i,colorWarning:o,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:u,colorErrorBg:c,colorInfo:f,colorInfoBorder:h,colorInfoBg:d}=e;return{[t]:{"&-success":b(i,n,r,e,t),"&-info":b(d,h,f,e,t),"&-warning":b(s,a,o,e,t),"&-error":Object.assign(Object.assign({},b(c,u,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},w=e=>{let{componentCls:t,iconCls:r,motionDurationMid:n,marginXS:i,fontSizeIcon:o,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:(0,g.zA)(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${r}-close`]:{color:a,transition:`color ${n}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${n}`,"&:hover":{color:s}}}}},S=e=>{let t=12;return{withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px ${t}px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}},A=(0,y.OF)("Alert",e=>[x(e),_(e),w(e)],S);var E=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let C={success:i.A,info:l.A,error:o.A,warning:s.A},k=e=>{let{icon:t,prefixCls:r,type:i}=e,o=C[i]||null;return t?(0,p.fx)(t,n.createElement("span",{className:`${r}-icon`},t),()=>({className:c()(`${r}-icon`,{[t.props.className]:t.props.className})})):n.createElement(o,{className:`${r}-icon`})},O=e=>{let{isClosable:t,prefixCls:r,closeIcon:i,handleClose:o,ariaProps:s}=e,l=!0===i||void 0===i?n.createElement(a.A,null):i;return t?n.createElement("button",Object.assign({type:"button",onClick:o,className:`${r}-close-icon`,tabIndex:0},s),l):null},I=n.forwardRef((e,t)=>{let{description:r,prefixCls:i,message:o,banner:a,className:s,rootClassName:l,style:u,onMouseEnter:p,onMouseLeave:g,onClick:v,afterClose:y,showIcon:b,closable:x,closeText:_,closeIcon:w,action:S,id:C}=e,I=E(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[T,M]=n.useState(!1),R=n.useRef(null);n.useImperativeHandle(t,()=>({nativeElement:R.current}));let{getPrefixCls:P,direction:$,alert:B}=n.useContext(m.QO),N=P("alert",i),[z,L,j]=A(N),F=t=>{var r;M(!0),null==(r=e.onClose)||r.call(e,t)},D=n.useMemo(()=>void 0!==e.type?e.type:a?"warning":"info",[e.type,a]),U=n.useMemo(()=>"object"==typeof x&&!!x.closeIcon||!!_||("boolean"==typeof x?x:!1!==w&&null!=w||!!(null==B?void 0:B.closable)),[_,w,x,null==B?void 0:B.closable]),H=!!a&&void 0===b||b,G=c()(N,`${N}-${D}`,{[`${N}-with-description`]:!!r,[`${N}-no-icon`]:!H,[`${N}-banner`]:!!a,[`${N}-rtl`]:"rtl"===$},null==B?void 0:B.className,s,l,j,L),W=(0,h.A)(I,{aria:!0,data:!0}),V=n.useMemo(()=>{var e,t;return"object"==typeof x&&x.closeIcon?x.closeIcon:_||(void 0!==w?w:"object"==typeof(null==B?void 0:B.closable)&&(null==(e=null==B?void 0:B.closable)?void 0:e.closeIcon)?null==(t=null==B?void 0:B.closable)?void 0:t.closeIcon:null==B?void 0:B.closeIcon)},[w,x,_,null==B?void 0:B.closeIcon]),q=n.useMemo(()=>{let e=null!=x?x:null==B?void 0:B.closable;if("object"==typeof e){let{closeIcon:t}=e;return E(e,["closeIcon"])}return{}},[x,null==B?void 0:B.closable]);return z(n.createElement(f.Ay,{visible:!T,motionName:`${N}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:y},(t,i)=>{let{className:a,style:s}=t;return n.createElement("div",Object.assign({id:C,ref:(0,d.K4)(R,i),"data-show":!T,className:c()(G,a),style:Object.assign(Object.assign(Object.assign({},null==B?void 0:B.style),u),s),onMouseEnter:p,onMouseLeave:g,onClick:v,role:"alert"},W),H?n.createElement(k,{description:r,icon:e.icon,prefixCls:N,type:D}):null,n.createElement("div",{className:`${N}-content`},o?n.createElement("div",{className:`${N}-message`},o):null,r?n.createElement("div",{className:`${N}-description`},r):null),S?n.createElement("div",{className:`${N}-action`},S):null,n.createElement(O,{isClosable:U,prefixCls:N,closeIcon:V,handleClose:F,ariaProps:q}))}))});var T=r(32645),M=r(30965),R=r(63378),P=r(75488),$=r(62662);function B(e,t,r){return t=(0,R.A)(t),(0,$.A)(e,(0,P.A)()?Reflect.construct(t,r||[],(0,R.A)(e).constructor):t.apply(e,r))}var N=r(26477);let z=function(e){function t(){var e;return(0,T.A)(this,t),e=B(this,t,arguments),e.state={error:void 0,info:{componentStack:""}},e}return(0,N.A)(t,e),(0,M.A)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,description:t,id:r,children:i}=this.props,{error:o,info:a}=this.state,s=(null==a?void 0:a.componentStack)||null,l=void 0===e?(o||"").toString():e,u=void 0===t?s:t;return o?n.createElement(I,{id:r,type:"error",message:l,description:n.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},u)}):i}}])}(n.Component),L=I;L.ErrorBoundary=z;let j=L},80061:function(e,t,r){"use strict";r.d(t,{Ap:()=>a,DU:()=>s,u1:()=>u,uR:()=>f});var n=r(22155),i=r(37886);let o=/^[\u4E00-\u9FA5]{2}$/,a=o.test.bind(o);function s(e){return"danger"===e?{danger:!0}:{type:e}}function l(e){return"string"==typeof e}function u(e){return"text"===e||"link"===e}function c(e,t){if(null==e)return;let r=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&l(e.type)&&a(e.props.children)?(0,i.Ob)(e,{children:e.props.children.split("").join(r)}):l(e)?a(e)?n.createElement("span",null,e.split("").join(r)):n.createElement("span",null,e):(0,i.zv)(e)?n.createElement("span",null,e):e}function f(e,t){let r=!1,i=[];return n.Children.forEach(e,e=>{let t=typeof e,n="string"===t||"number"===t;if(r&&n){let t=i.length-1,r=i[t];i[t]=`${r}${e}`}else i.push(e);r=n}),n.Children.map(i,e=>c(e,t))}},65584:function(e,t,r){"use strict";r.d(t,{Ay:()=>ez});var n=r(22155),i=r(30395),o=r.n(i),a=r(36495),s=r(37233),l=r(37181),u=r(71179),c=r(45227),f=r(80521),h=r(50059),d=r(68381),p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let m=n.createContext(void 0),g=e=>{let{getPrefixCls:t,direction:r}=n.useContext(u.QO),{prefixCls:i,size:a,className:s}=e,l=p(e,["prefixCls","size","className"]),c=t("btn-group",i),[,,f]=(0,d.Ay)(),h="";switch(a){case"large":h="lg";break;case"small":h="sm"}let g=o()(c,{[`${c}-${h}`]:h,[`${c}-rtl`]:"rtl"===r},s,f);return n.createElement(m.Provider,{value:a},n.createElement("div",Object.assign({},l,{className:g})))};var v=r(80061);let y=(0,n.forwardRef)((e,t)=>{let{className:r,style:i,children:a,prefixCls:s}=e,l=o()(`${s}-icon`,r);return n.createElement("span",{ref:t,className:l,style:i},a)});var b=r(9870),x=r(47425);let _=(0,n.forwardRef)((e,t)=>{let{prefixCls:r,className:i,style:a,iconClassName:s}=e,l=o()(`${r}-loading-icon`,i);return n.createElement(y,{prefixCls:r,className:l,style:a,ref:t},n.createElement(b.A,{className:s}))}),w=()=>({width:0,opacity:0,transform:"scale(0)"}),S=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),A=e=>{let{prefixCls:t,loading:r,existIcon:i,className:o,style:a}=e,s=!!r;return i?n.createElement(_,{prefixCls:t,className:o,style:a}):n.createElement(x.Ay,{visible:s,motionName:`${t}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:w,onAppearActive:S,onEnterStart:w,onEnterActive:S,onLeaveStart:S,onLeaveActive:w},(e,r)=>{let{className:i,style:s}=e;return n.createElement(_,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),s),ref:r,iconClassName:i})})};var E=r(85337),C=r(12869),k=r(68491),O=r(16850);let I=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),T=e=>{let{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},I(`${t}-primary`,i),I(`${t}-danger`,o)]}};var M=r(32645),R=r(30965),P=r(26477),$=r(53442),B=r(33779),N=r(48827),z=r(2716),L=r(6467);let j=Math.round;function F(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)n[e]=t(n[e]||0,r[e]||"",e);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}let D=(e,t,r)=>0===r?e:e/100;function U(e,t){let r=t||255;return e>r?r:e<0?0:e}class H{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,L.A)(this,"isValid",!0),(0,L.A)(this,"r",0),(0,L.A)(this,"g",0),(0,L.A)(this,"b",0),(0,L.A)(this,"a",1),(0,L.A)(this,"_h",void 0),(0,L.A)(this,"_s",void 0),(0,L.A)(this,"_l",void 0),(0,L.A)(this,"_v",void 0),(0,L.A)(this,"_max",void 0),(0,L.A)(this,"_min",void 0),(0,L.A)(this,"_brightness",void 0),e)if("string"==typeof e){const t=e.trim();function r(e){return t.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(t)?this.fromHexString(t):r("rgb")?this.fromRgbString(t):r("hsl")?this.fromHslString(t):(r("hsv")||r("hsb"))&&this.fromHsvString(t)}else if(e instanceof H)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=U(e.r),this.g=U(e.g),this.b=U(e.b),this.a="number"==typeof e.a?U(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return .2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){let e=this.getMax()-this.getMin();0===e?this._h=0:this._h=j(60*(this.r===this.getMax()?(this.g-this.b)/e+6*(this.g<this.b):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){let e=this.getMax()-this.getMin();0===e?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){let t=this.getHue(),r=this.getSaturation(),n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:t,s:r,l:n,a:this.a})}lighten(e=10){let t=this.getHue(),r=this.getSaturation(),n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:t,s:r,l:n,a:this.a})}mix(e,t=50){let r=this._c(e),n=t/100,i=e=>(r[e]-this[e])*n+this[e],o={r:j(i("r")),g:j(i("g")),b:j(i("b")),a:j(100*i("a"))/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),r=this.a+t.a*(1-this.a),n=e=>j((this[e]*this.a+t[e]*t.a*(1-this.a))/r);return this._c({r:n("r"),g:n("g"),b:n("b"),a:r})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#",t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;let r=(this.g||0).toString(16);e+=2===r.length?r:"0"+r;let n=(this.b||0).toString(16);if(e+=2===n.length?n:"0"+n,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=j(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=j(100*this.getSaturation()),r=j(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){let n=this.clone();return n[e]=U(t,r),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace("#","");function r(e,r){return parseInt(t[e]+t[r||e],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a:n}){if(this._h=e%360,this._s=t,this._l=r,this.a="number"==typeof n?n:1,t<=0){let e=j(255*r);this.r=e,this.g=e,this.b=e}let i=0,o=0,a=0,s=e/60,l=(1-Math.abs(2*r-1))*t,u=l*(1-Math.abs(s%2-1));s>=0&&s<1?(i=l,o=u):s>=1&&s<2?(i=u,o=l):s>=2&&s<3?(o=l,a=u):s>=3&&s<4?(o=u,a=l):s>=4&&s<5?(i=u,a=l):s>=5&&s<6&&(i=l,a=u);let c=r-l/2;this.r=j((i+c)*255),this.g=j((o+c)*255),this.b=j((a+c)*255)}fromHsv({h:e,s:t,v:r,a:n}){this._h=e%360,this._s=t,this._v=r,this.a="number"==typeof n?n:1;let i=j(255*r);if(this.r=i,this.g=i,this.b=i,t<=0)return;let o=e/60,a=Math.floor(o),s=o-a,l=j(r*(1-t)*255),u=j(r*(1-t*s)*255),c=j(r*(1-t*(1-s))*255);switch(a){case 0:this.g=c,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=c;break;case 3:this.r=l,this.g=u;break;case 4:this.r=c,this.g=l;break;default:this.g=l,this.b=u}}fromHsvString(e){let t=F(e,D);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=F(e,D);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=F(e,(e,t)=>t.includes("%")?j(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var G=["b"],W=["v"],V=function(e){return Math.round(Number(e||0))},q=function(e){if(e instanceof H)return e;if(e&&"object"===(0,z.A)(e)&&"h"in e&&"b"in e){var t=e,r=t.b,n=(0,N.A)(t,G);return(0,B.A)((0,B.A)({},n),{},{v:r})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},X=function(e){(0,P.A)(r,e);var t=(0,$.A)(r);function r(e){return(0,M.A)(this,r),t.call(this,q(e))}return(0,R.A)(r,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=V(100*e.s),r=V(100*e.b),n=V(e.h),i=e.a,o="hsb(".concat(n,", ").concat(t,"%, ").concat(r,"%)"),a="hsba(".concat(n,", ").concat(t,"%, ").concat(r,"%, ").concat(i.toFixed(2*(0!==i)),")");return 1===i?o:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,r=(0,N.A)(e,W);return(0,B.A)((0,B.A)({},r),{},{b:t,a:this.a})}}]),r}(H);(function(e){e instanceof X||new X(e)})("#1677ff"),r(65260);let Y=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",K=(e,t)=>e?Y(e,t):"",Z=function(){function e(t){var r;if((0,M.A)(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=null==(r=t.colors)?void 0:r.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(t=>{let{color:r,percent:n}=t;return{color:new e(r),percent:n}}),this.metaColor=new X(this.colors[0].color.metaColor)):this.metaColor=new X(n?"":t),t&&(!n||this.colors)||(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return(0,R.A)(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return K(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){let{colors:e}=this;if(e){let t=e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ");return`linear-gradient(90deg, ${t})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!!e&&this.isGradient()===e.isGradient()&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,r)=>{let n=e.colors[r];return t.percent===n.percent&&t.color.equals(n.color)}):this.toHexString()===e.toHexString())}}])}();r(88127);let Q=(e,t)=>{let{r,g:n,b:i,a:o}=e.toRgb(),a=new X(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:.299*r+.587*n+.114*i>192};var J=r(18601);let ee=e=>{let{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return(0,k.oX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},et=e=>{var t,r,n,i,o,a;let s=null!=(t=e.contentFontSize)?t:e.fontSize,l=null!=(r=e.contentFontSizeSM)?r:e.fontSize,u=null!=(n=e.contentFontSizeLG)?n:e.fontSizeLG,c=null!=(i=e.contentLineHeight)?i:(0,J.k)(s),f=null!=(o=e.contentLineHeightSM)?o:(0,J.k)(l),h=null!=(a=e.contentLineHeightLG)?a:(0,J.k)(u),d=Q(new Z(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:d,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:u,contentLineHeight:c,contentLineHeightSM:f,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*c)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*h)/2-e.lineWidth,0)}},er=e=>{let{componentCls:t,iconCls:r,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,E.zA)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-flex"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,C.K8)(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},en=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),ei=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),eo=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),ea=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),es=(e,t,r,n,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},en(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),el=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ea(e))}),eu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ec=(e,t,r,n)=>Object.assign(Object.assign({},(n&&["link","text"].includes(n)?eu:el)(e)),en(e.componentCls,t,r)),ef=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},ec(e,n,i))}),eh=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},ec(e,n,i))}),ed=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ep=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},ec(e,r,n))}),em=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},ec(e,n,i,r))}),eg=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ef(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),ed(e)),ep(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),em(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),es(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),ev=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},eh(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ed(e)),ep(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),em(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),es(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ey=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ef(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),eh(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ed(e)),ep(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),em(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),em(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),es(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),eb=e=>{let{componentCls:t}=e;return{[`${t}-color-default`]:eg(e),[`${t}-color-primary`]:ev(e),[`${t}-color-dangerous`]:ey(e)}},ex=e=>Object.assign(Object.assign(Object.assign(Object.assign({},eh(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),em(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ef(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),em(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),e_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:r,controlHeight:n,fontSize:i,lineHeight:o,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:u}=e,c=`${r}-icon-only`;return[{[t]:{fontSize:i,lineHeight:o,height:n,padding:`${(0,E.zA)(u)} ${(0,E.zA)(s)}`,borderRadius:a,[`&${c}`]:{width:n,paddingInline:0,[`&${r}-compact-item`]:{flex:"none"},[`&${r}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:ei(e)},{[`${r}${r}-round${t}`]:eo(e)}]},ew=e=>e_((0,k.oX)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight}),e.componentCls),eS=e=>e_((0,k.oX)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),eA=e=>e_((0,k.oX)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),eE=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},eC=(0,O.OF)("Button",e=>{let t=ee(e);return[er(t),ew(t),eS(t),eA(t),eE(t),eb(t),ex(t),T(t)]},et,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var ek=r(33458);function eO(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function eI(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function eT(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},eO(e,t)),eI(e.componentCls,t))}}let eM=e=>{let{componentCls:t,calc:r}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${(0,E.zA)(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,E.zA)(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},eR=(0,O.bf)(["Button","compact"],e=>{let t=ee(e);return[(0,ek.G)(t),eT(t),eM(t)]},et);var eP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function e$(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}}let eB={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},eN=n.forwardRef((e,t)=>{var r,i,d,p;let{loading:g=!1,prefixCls:b,color:x,variant:_,type:w,danger:S=!1,shape:E="default",size:C,styles:k,disabled:O,className:I,rootClassName:T,children:M,icon:R,iconPosition:P="start",ghost:$=!1,block:B=!1,htmlType:N="button",classNames:z,style:L={},autoInsertSpace:j}=e,F=eP(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),D=w||"default",[U,H]=(0,n.useMemo)(()=>{if(x&&_)return[x,_];let e=eB[D]||[];return S?["danger",e[1]]:e},[w,x,_,S]),G="danger"===U?"dangerous":U,{getPrefixCls:W,direction:V,button:q}=(0,n.useContext)(u.QO),X=null==(r=null!=j?j:null==q?void 0:q.autoInsertSpace)||r,Y=W("btn",b),[K,Z,Q]=eC(Y),J=(0,n.useContext)(c.A),ee=null!=O?O:J,et=(0,n.useContext)(m),er=(0,n.useMemo)(()=>e$(g),[g]),[en,ei]=(0,n.useState)(er.loading),[eo,ea]=(0,n.useState)(!1),es=(0,n.createRef)(),el=(0,s.K4)(t,es),eu=1===n.Children.count(M)&&!R&&!(0,v.u1)(H);(0,n.useEffect)(()=>{let e=null;return er.delay>0?e=setTimeout(()=>{e=null,ei(!0)},er.delay):ei(er.loading),function(){e&&(clearTimeout(e),e=null)}},[er]),(0,n.useEffect)(()=>{if(!el||!el.current||!X)return;let e=el.current.textContent;eu&&(0,v.Ap)(e)?eo||ea(!0):eo&&ea(!1)},[el]);let ec=n.useCallback(t=>{var r;en||ee?t.preventDefault():null==(r=e.onClick)||r.call(e,t)},[e.onClick,en,ee]),{compactSize:ef,compactItemClassnames:eh}=(0,h.RQ)(Y,V),ed={large:"lg",small:"sm",middle:void 0},ep=(0,f.A)(e=>{var t,r;return null!=(r=null!=(t=null!=C?C:ef)?t:et)?r:e}),em=ep&&null!=(i=ed[ep])?i:"",eg=en?"loading":R,ev=(0,a.A)(F,["navigate"]),ey=o()(Y,Z,Q,{[`${Y}-${E}`]:"default"!==E&&E,[`${Y}-${D}`]:D,[`${Y}-dangerous`]:S,[`${Y}-color-${G}`]:G,[`${Y}-variant-${H}`]:H,[`${Y}-${em}`]:em,[`${Y}-icon-only`]:!M&&0!==M&&!!eg,[`${Y}-background-ghost`]:$&&!(0,v.u1)(H),[`${Y}-loading`]:en,[`${Y}-two-chinese-chars`]:eo&&X&&!en,[`${Y}-block`]:B,[`${Y}-rtl`]:"rtl"===V,[`${Y}-icon-end`]:"end"===P},eh,I,T,null==q?void 0:q.className),eb=Object.assign(Object.assign({},null==q?void 0:q.style),L),ex=o()(null==z?void 0:z.icon,null==(d=null==q?void 0:q.classNames)?void 0:d.icon),e_=Object.assign(Object.assign({},(null==k?void 0:k.icon)||{}),(null==(p=null==q?void 0:q.styles)?void 0:p.icon)||{}),ew=R&&!en?n.createElement(y,{prefixCls:Y,className:ex,style:e_},R):n.createElement(A,{existIcon:!!R,prefixCls:Y,loading:en}),eS=M||0===M?(0,v.uR)(M,eu&&X):null;if(void 0!==ev.href)return K(n.createElement("a",Object.assign({},ev,{className:o()(ey,{[`${Y}-disabled`]:ee}),href:ee?void 0:ev.href,style:eb,onClick:ec,ref:el,tabIndex:ee?-1:0}),ew,eS));let eA=n.createElement("button",Object.assign({},F,{type:N,className:ey,style:eb,onClick:ec,disabled:ee,ref:el}),ew,eS,!!eh&&n.createElement(eR,{key:"compact",prefixCls:Y}));return(0,v.u1)(H)||(eA=n.createElement(l.A,{component:"Button",disabled:en},eA)),K(eA)});eN.Group=g,eN.__ANT_BUTTON=!0;let ez=eN},85094:function(e,t,r){"use strict";r.d(t,{A:()=>e8});var n=r(22155),i=r(30395),o=r.n(i),a=r(36495),s=r(71179),l=r(80521),u=r(24419),c=r(14985),f=r(36197),h=r(42664);let d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var p=r(59909),m=function(e,t){return n.createElement(p.A,(0,h.A)({},e,{ref:t,icon:d}))};let g=n.forwardRef(m);var v=r(6467),y=r(33779),b=r(86233),x=r(2716),_=r(48827),w=r(88127),S=r(84080);let A=(0,n.createContext)(null);var E=r(38128),C=r(85925),k=r(41186),O=r(37233),I=r(14597);let T=function(e){var t=e.activeTabOffset,r=e.horizontal,i=e.rtl,o=e.indicator,a=void 0===o?{}:o,s=a.size,l=a.align,u=void 0===l?"center":l,c=(0,n.useState)(),f=(0,b.A)(c,2),h=f[0],d=f[1],p=(0,n.useRef)(),m=n.useCallback(function(e){return"function"==typeof s?s(e):"number"==typeof s?s:e},[s]);function g(){I.A.cancel(p.current)}return(0,n.useEffect)(function(){var e={};if(t)if(r){e.width=m(t.width);var n=i?"right":"left";"start"===u&&(e[n]=t[n]),"center"===u&&(e[n]=t[n]+t.width/2,e.transform=i?"translateX(50%)":"translateX(-50%)"),"end"===u&&(e[n]=t[n]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===u&&(e.top=t.top),"center"===u&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===u&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return g(),p.current=(0,I.A)(function(){d(e)}),g},[t,r,i,u,m]),{style:h}};var M={width:0,height:0,left:0,top:0};function R(e,t,r){return(0,n.useMemo)(function(){for(var r=new Map,n=t.get(null==(a=e[0])?void 0:a.key)||M,i=n.left+n.width,o=0;o<e.length;o+=1){var a,s,l=e[o].key,u=t.get(l);u||(u=t.get(null==(s=e[o-1])?void 0:s.key)||M);var c=r.get(l)||(0,y.A)({},u);c.right=i-c.left-c.width,r.set(l,c)}return r},[e.map(function(e){return e.key}).join("_"),t,r])}function P(e,t){var r=n.useRef(e),i=n.useState({}),o=(0,b.A)(i,2)[1];function a(e){var n="function"==typeof e?e(r.current):e;n!==r.current&&t(n,r.current),r.current=n,o({})}return[r.current,a]}var $=.1,B=.01,N=20,z=.9046104802746175;function L(e,t){var r=(0,n.useState)(),i=(0,b.A)(r,2),o=i[0],a=i[1],s=(0,n.useState)(0),l=(0,b.A)(s,2),u=l[0],c=l[1],f=(0,n.useState)(0),h=(0,b.A)(f,2),d=h[0],p=h[1],m=(0,n.useState)(),g=(0,b.A)(m,2),v=g[0],y=g[1],x=(0,n.useRef)();function _(e){var t=e.touches[0];a({x:t.screenX,y:t.screenY}),window.clearInterval(x.current)}function w(e){if(o){var r=e.touches[0],n=r.screenX,i=r.screenY;a({x:n,y:i});var s=n-o.x,l=i-o.y;t(s,l);var f=Date.now();c(f),p(f-u),y({x:s,y:l})}}function S(){if(o&&(a(null),y(null),v)){var e=v.x/d,r=v.y/d;if(!(Math.max(Math.abs(e),Math.abs(r))<$)){var n=e,i=r;x.current=window.setInterval(function(){Math.abs(n)<B&&Math.abs(i)<B?window.clearInterval(x.current):(n*=z,i*=z,t(n*N,i*N))},N)}}}var A=(0,n.useRef)();function E(e){var r=e.deltaX,n=e.deltaY,i=0,o=Math.abs(r),a=Math.abs(n);o===a?i="x"===A.current?r:n:o>a?(i=r,A.current="x"):(i=n,A.current="y"),t(-i,-i)&&e.preventDefault()}var C=(0,n.useRef)(null);C.current={onTouchStart:_,onTouchMove:w,onTouchEnd:S,onWheel:E},n.useEffect(function(){function t(e){C.current.onTouchStart(e)}function r(e){C.current.onTouchMove(e)}function n(e){C.current.onTouchEnd(e)}function i(e){C.current.onWheel(e)}return document.addEventListener("touchmove",r,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",t,{passive:!0}),e.current.addEventListener("wheel",i,{passive:!1}),function(){document.removeEventListener("touchmove",r),document.removeEventListener("touchend",n)}},[])}var j=r(28367);function F(e){var t=(0,n.useState)(0),r=(0,b.A)(t,2),i=r[0],o=r[1],a=(0,n.useRef)(0),s=(0,n.useRef)();return s.current=e,(0,j.o)(function(){var e;null==(e=s.current)||e.call(s)},[i]),function(){a.current===i&&(a.current+=1,o(a.current))}}function D(e){var t=(0,n.useRef)([]),r=(0,n.useState)({}),i=(0,b.A)(r,2)[1],o=(0,n.useRef)("function"==typeof e?e():e),a=F(function(){var e=o.current;t.current.forEach(function(t){e=t(e)}),t.current=[],o.current=e,i({})});function s(e){t.current.push(e),a()}return[o.current,s]}var U={width:0,height:0,left:0,top:0,right:0};function H(e,t,r,i,o,a,s){var l,u,c,f=s.tabs,h=s.tabPosition,d=s.rtl;return["top","bottom"].includes(h)?(l="width",u=d?"right":"left",c=Math.abs(r)):(l="height",u="top",c=-r),(0,n.useMemo)(function(){if(!f.length)return[0,0];for(var r=f.length,n=r,i=0;i<r;i+=1){var o=e.get(f[i].key)||U;if(Math.floor(o[u]+o[l])>Math.floor(c+t)){n=i-1;break}}for(var a=0,s=r-1;s>=0;s-=1)if((e.get(f[s].key)||U)[u]<c){a=s+1;break}return a>=n?[0,0]:[a,n]},[e,t,i,o,a,c,h,f.map(function(e){return e.key}).join("_"),d])}function G(e){var t;return e instanceof Map?(t={},e.forEach(function(e,r){t[r]=e})):t=e,JSON.stringify(t)}var W="TABS_DQ";function V(e){return String(e).replace(/"/g,W)}function q(e,t,r,n){return!!r&&!n&&!1!==e&&(void 0!==e||!1!==t&&null!==t)}let X=n.forwardRef(function(e,t){var r=e.prefixCls,i=e.editable,o=e.locale,a=e.style;return i&&!1!==i.showAdd?n.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:a,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){i.onEdit("add",{event:e})}},i.addIcon||"+"):null}),Y=n.forwardRef(function(e,t){var r,i=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==(0,x.A)(a)||n.isValidElement(a)?s.right=a:s=a,"right"===i&&(r=s.right),"left"===i&&(r=s.left),r?n.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},r):null});var K=r(19771),Z=r(86254),Q=r(81966),J=n.forwardRef(function(e,t){var r=e.prefixCls,i=e.id,a=e.tabs,s=e.locale,l=e.mobile,u=e.more,c=void 0===u?{}:u,f=e.style,d=e.className,p=e.editable,m=e.tabBarGutter,g=e.rtl,y=e.removeAriaLabel,x=e.onTabClick,_=e.getPopupContainer,w=e.popupClassName,S=(0,n.useState)(!1),A=(0,b.A)(S,2),E=A[0],C=A[1],k=(0,n.useState)(null),O=(0,b.A)(k,2),I=O[0],T=O[1],M=c.icon,R=void 0===M?"More":M,P="".concat(i,"-more-popup"),$="".concat(r,"-dropdown"),B=null!==I?"".concat(P,"-").concat(I):null,N=null==s?void 0:s.dropdownAriaLabel;function z(e,t){e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:t,event:e})}var L=n.createElement(Z.Ay,{onClick:function(e){x(e.key,e.domEvent),C(!1)},prefixCls:"".concat($,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":B,selectedKeys:[I],"aria-label":void 0!==N?N:"expanded dropdown"},a.map(function(e){var t=e.closable,r=e.disabled,o=e.closeIcon,a=e.key,s=e.label,l=q(t,o,p,r);return n.createElement(Z.Dr,{key:a,id:"".concat(P,"-").concat(a),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(a),disabled:r},n.createElement("span",null,s),l&&n.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat($,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),z(e,a)}},o||p.removeIcon||"\xd7"))}));function j(e){for(var t=a.filter(function(e){return!e.disabled}),r=t.findIndex(function(e){return e.key===I})||0,n=t.length,i=0;i<n;i+=1){var o=t[r=(r+e+n)%n];if(!o.disabled)return void T(o.key)}}function F(e){var t=e.which;if(!E){[Q.A.DOWN,Q.A.SPACE,Q.A.ENTER].includes(t)&&(C(!0),e.preventDefault());return}switch(t){case Q.A.UP:j(-1),e.preventDefault();break;case Q.A.DOWN:j(1),e.preventDefault();break;case Q.A.ESC:C(!1);break;case Q.A.SPACE:case Q.A.ENTER:null!==I&&x(I,e)}}(0,n.useEffect)(function(){var e=document.getElementById(B);e&&e.scrollIntoView&&e.scrollIntoView(!1)},[I]),(0,n.useEffect)(function(){E||T(null)},[E]);var D=(0,v.A)({},g?"marginRight":"marginLeft",m);a.length||(D.visibility="hidden",D.order=1);var U=o()((0,v.A)({},"".concat($,"-rtl"),g)),H=l?null:n.createElement(K.A,(0,h.A)({prefixCls:$,overlay:L,visible:!!a.length&&E,onVisibleChange:C,overlayClassName:o()(U,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:_},c),n.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":P,id:"".concat(i,"-more"),"aria-expanded":E,onKeyDown:F},R));return n.createElement("div",{className:o()("".concat(r,"-nav-operations"),d),style:f,ref:t},H,n.createElement(X,{prefixCls:r,locale:s,editable:p}))});let ee=n.memo(J,function(e,t){return t.tabMoving}),et=function(e){var t=e.prefixCls,r=e.id,i=e.active,a=e.tab,s=a.key,l=a.label,u=a.disabled,c=a.closeIcon,f=a.icon,h=e.closable,d=e.renderWrapper,p=e.removeAriaLabel,m=e.editable,g=e.onClick,y=e.onFocus,b=e.style,x="".concat(t,"-tab"),_=q(h,c,m,u);function w(e){u||g(e)}function S(e){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:s,event:e})}var A=n.useMemo(function(){return f&&"string"==typeof l?n.createElement("span",null,l):l},[l,f]),E=n.createElement("div",{key:s,"data-node-key":V(s),className:o()(x,(0,v.A)((0,v.A)((0,v.A)({},"".concat(x,"-with-remove"),_),"".concat(x,"-active"),i),"".concat(x,"-disabled"),u)),style:b,onClick:w},n.createElement("div",{role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(x,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":u,tabIndex:u?null:0,onClick:function(e){e.stopPropagation(),w(e)},onKeyDown:function(e){[Q.A.SPACE,Q.A.ENTER].includes(e.which)&&(e.preventDefault(),w(e))},onFocus:y},f&&n.createElement("span",{className:"".concat(x,"-icon")},f),l&&A),_&&n.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(x,"-remove"),onClick:function(e){e.stopPropagation(),S(e)}},c||m.removeIcon||"\xd7"));return d?d(E):E};var er=function(e,t){var r=e.offsetWidth,n=e.offsetHeight,i=e.offsetTop,o=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,u=a.left,c=a.top;return 1>Math.abs(s-r)?[s,l,u-t.left,c-t.top]:[r,n,o,i]},en=function(e){var t=e.current||{},r=t.offsetWidth,n=void 0===r?0:r,i=t.offsetHeight,o=void 0===i?0:i;if(e.current){var a=e.current.getBoundingClientRect(),s=a.width,l=a.height;if(1>Math.abs(s-n))return[s,l]}return[n,o]},ei=function(e,t){return e[+!t]};let eo=n.forwardRef(function(e,t){var r,i,a,s,l=e.className,u=e.style,c=e.id,f=e.animated,d=e.activeKey,p=e.rtl,m=e.extra,g=e.editable,x=e.locale,_=e.tabPosition,w=e.tabBarGutter,S=e.children,I=e.onTabClick,M=e.onTabScroll,$=e.indicator,B=n.useContext(A),N=B.prefixCls,z=B.tabs,j=(0,n.useRef)(null),U=(0,n.useRef)(null),W=(0,n.useRef)(null),q=(0,n.useRef)(null),K=(0,n.useRef)(null),Z=(0,n.useRef)(null),Q=(0,n.useRef)(null),J="top"===_||"bottom"===_,eo=P(0,function(e,t){J&&M&&M({direction:e>t?"left":"right"})}),ea=(0,b.A)(eo,2),es=ea[0],el=ea[1],eu=P(0,function(e,t){!J&&M&&M({direction:e>t?"top":"bottom"})}),ec=(0,b.A)(eu,2),ef=ec[0],eh=ec[1],ed=(0,n.useState)([0,0]),ep=(0,b.A)(ed,2),em=ep[0],eg=ep[1],ev=(0,n.useState)([0,0]),ey=(0,b.A)(ev,2),eb=ey[0],ex=ey[1],e_=(0,n.useState)([0,0]),ew=(0,b.A)(e_,2),eS=ew[0],eA=ew[1],eE=(0,n.useState)([0,0]),eC=(0,b.A)(eE,2),ek=eC[0],eO=eC[1],eI=D(new Map),eT=(0,b.A)(eI,2),eM=eT[0],eR=eT[1],eP=R(z,eM,eb[0]),e$=ei(em,J),eB=ei(eb,J),eN=ei(eS,J),ez=ei(ek,J),eL=Math.floor(e$)<Math.floor(eB+eN),ej=eL?e$-ez:e$-eN,eF="".concat(N,"-nav-operations-hidden"),eD=0,eU=0;function eH(e){return e<eD?eD:e>eU?eU:e}J&&p?(eD=0,eU=Math.max(0,eB-ej)):(eD=Math.min(0,ej-eB),eU=0);var eG=(0,n.useRef)(null),eW=(0,n.useState)(),eV=(0,b.A)(eW,2),eq=eV[0],eX=eV[1];function eY(){eX(Date.now())}function eK(){eG.current&&clearTimeout(eG.current)}L(q,function(e,t){function r(e,t){e(function(e){return eH(e+t)})}return!!eL&&(J?r(el,e):r(eh,t),eK(),eY(),!0)}),(0,n.useEffect)(function(){return eK(),eq&&(eG.current=setTimeout(function(){eX(0)},100)),eK},[eq]);var eZ=H(eP,ej,J?es:ef,eB,eN,ez,(0,y.A)((0,y.A)({},e),{},{tabs:z})),eQ=(0,b.A)(eZ,2),eJ=eQ[0],e0=eQ[1],e1=(0,k.A)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=eP.get(e)||{width:0,height:0,left:0,right:0,top:0};if(J){var r=es;p?t.right<es?r=t.right:t.right+t.width>es+ej&&(r=t.right+t.width-ej):t.left<-es?r=-t.left:t.left+t.width>-es+ej&&(r=-(t.left+t.width-ej)),eh(0),el(eH(r))}else{var n=ef;t.top<-ef?n=-t.top:t.top+t.height>-ef+ej&&(n=-(t.top+t.height-ej)),el(0),eh(eH(n))}}),e2={};"top"===_||"bottom"===_?e2[p?"marginRight":"marginLeft"]=w:e2.marginTop=w;var e3=z.map(function(e,t){var r=e.key;return n.createElement(et,{id:c,prefixCls:N,key:r,tab:e,style:0===t?void 0:e2,closable:e.closable,editable:g,active:r===d,renderWrapper:S,removeAriaLabel:null==x?void 0:x.removeAriaLabel,onClick:function(e){I(r,e)},onFocus:function(){e1(r),eY(),q.current&&(p||(q.current.scrollLeft=0),q.current.scrollTop=0)}})}),e5=function(){return eR(function(){var e,t=new Map,r=null==(e=K.current)?void 0:e.getBoundingClientRect();return z.forEach(function(e){var n,i=e.key,o=null==(n=K.current)?void 0:n.querySelector('[data-node-key="'.concat(V(i),'"]'));if(o){var a=er(o,r),s=(0,b.A)(a,4),l=s[0],u=s[1],c=s[2],f=s[3];t.set(i,{width:l,height:u,left:c,top:f})}}),t})};(0,n.useEffect)(function(){e5()},[z.map(function(e){return e.key}).join("_")]);var e4=F(function(){var e=en(j),t=en(U),r=en(W);eg([e[0]-t[0]-r[0],e[1]-t[1]-r[1]]);var n=en(Q);eA(n),eO(en(Z));var i=en(K);ex([i[0]-n[0],i[1]-n[1]]),e5()}),e6=z.slice(0,eJ),e8=z.slice(e0+1),e7=[].concat((0,E.A)(e6),(0,E.A)(e8)),e9=eP.get(d),te=T({activeTabOffset:e9,horizontal:J,indicator:$,rtl:p}).style;(0,n.useEffect)(function(){e1()},[d,eD,eU,G(e9),G(eP),J]),(0,n.useEffect)(function(){e4()},[p]);var tt=!!e7.length,tr="".concat(N,"-nav-wrap");return J?p?(i=es>0,r=es!==eU):(r=es<0,i=es!==eD):(a=ef<0,s=ef!==eD),n.createElement(C.A,{onResize:e4},n.createElement("div",{ref:(0,O.xK)(t,j),role:"tablist",className:o()("".concat(N,"-nav"),l),style:u,onKeyDown:function(){eY()}},n.createElement(Y,{ref:U,position:"left",extra:m,prefixCls:N}),n.createElement(C.A,{onResize:e4},n.createElement("div",{className:o()(tr,(0,v.A)((0,v.A)((0,v.A)((0,v.A)({},"".concat(tr,"-ping-left"),r),"".concat(tr,"-ping-right"),i),"".concat(tr,"-ping-top"),a),"".concat(tr,"-ping-bottom"),s)),ref:q},n.createElement(C.A,{onResize:e4},n.createElement("div",{ref:K,className:"".concat(N,"-nav-list"),style:{transform:"translate(".concat(es,"px, ").concat(ef,"px)"),transition:eq?"none":void 0}},e3,n.createElement(X,{ref:Q,prefixCls:N,locale:x,editable:g,style:(0,y.A)((0,y.A)({},0===e3.length?void 0:e2),{},{visibility:tt?"hidden":null})}),n.createElement("div",{className:o()("".concat(N,"-ink-bar"),(0,v.A)({},"".concat(N,"-ink-bar-animated"),f.inkBar)),style:te}))))),n.createElement(ee,(0,h.A)({},e,{removeAriaLabel:null==x?void 0:x.removeAriaLabel,ref:Z,prefixCls:N,tabs:e7,className:!tt&&eF,tabMoving:!!eq})),n.createElement(Y,{ref:W,position:"right",extra:m,prefixCls:N})))}),ea=n.forwardRef(function(e,t){var r=e.prefixCls,i=e.className,a=e.style,s=e.id,l=e.active,u=e.tabKey,c=e.children;return n.createElement("div",{id:s&&"".concat(s,"-panel-").concat(u),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":s&&"".concat(s,"-tab-").concat(u),"aria-hidden":!l,style:a,className:o()(r,l&&"".concat(r,"-active"),i),ref:t},c)});var es=["renderTabBar"],el=["label","key"];let eu=function(e){var t=e.renderTabBar,r=(0,_.A)(e,es),i=n.useContext(A).tabs;return t?t((0,y.A)((0,y.A)({},r),{},{panes:i.map(function(e){var t=e.label,r=e.key,i=(0,_.A)(e,el);return n.createElement(ea,(0,h.A)({tab:t,key:r,tabKey:r},i))})}),eo):n.createElement(eo,r)};var ec=r(47425),ef=["key","forceRender","style","className","destroyInactiveTabPane"];let eh=function(e){var t=e.id,r=e.activeKey,i=e.animated,a=e.tabPosition,s=e.destroyInactiveTabPane,l=n.useContext(A),u=l.prefixCls,c=l.tabs,f=i.tabPane,d="".concat(u,"-tabpane");return n.createElement("div",{className:o()("".concat(u,"-content-holder"))},n.createElement("div",{className:o()("".concat(u,"-content"),"".concat(u,"-content-").concat(a),(0,v.A)({},"".concat(u,"-content-animated"),f))},c.map(function(e){var a=e.key,l=e.forceRender,u=e.style,c=e.className,p=e.destroyInactiveTabPane,m=(0,_.A)(e,ef),g=a===r;return n.createElement(ec.Ay,(0,h.A)({key:a,visible:g,forceRender:l,removeOnLeave:!!(s||p),leavedClassName:"".concat(d,"-hidden")},i.tabPaneMotion),function(e,r){var i=e.style,s=e.className;return n.createElement(ea,(0,h.A)({},m,{prefixCls:d,id:t,tabKey:a,animated:f,active:g,style:(0,y.A)((0,y.A)({},u),i),className:o()(c,s),ref:r}))})})))};function ed(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,y.A)({inkBar:!0},"object"===(0,x.A)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}r(36216);var ep=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],em=0;let eg=n.forwardRef(function(e,t){var r=e.id,i=e.prefixCls,a=void 0===i?"rc-tabs":i,s=e.className,l=e.items,u=e.direction,c=e.activeKey,f=e.defaultActiveKey,d=e.editable,p=e.animated,m=e.tabPosition,g=void 0===m?"top":m,E=e.tabBarGutter,C=e.tabBarStyle,k=e.tabBarExtraContent,O=e.locale,I=e.more,T=e.destroyInactiveTabPane,M=e.renderTabBar,R=e.onChange,P=e.onTabClick,$=e.onTabScroll,B=e.getPopupContainer,N=e.popupClassName,z=e.indicator,L=(0,_.A)(e,ep),j=n.useMemo(function(){return(l||[]).filter(function(e){return e&&"object"===(0,x.A)(e)&&"key"in e})},[l]),F="rtl"===u,D=ed(p),U=(0,n.useState)(!1),H=(0,b.A)(U,2),G=H[0],W=H[1];(0,n.useEffect)(function(){W((0,S.A)())},[]);var V=(0,w.A)(function(){var e;return null==(e=j[0])?void 0:e.key},{value:c,defaultValue:f}),q=(0,b.A)(V,2),X=q[0],Y=q[1],K=(0,n.useState)(function(){return j.findIndex(function(e){return e.key===X})}),Z=(0,b.A)(K,2),Q=Z[0],J=Z[1];(0,n.useEffect)(function(){var e,t=j.findIndex(function(e){return e.key===X});-1===t&&(t=Math.max(0,Math.min(Q,j.length-1)),Y(null==(e=j[t])?void 0:e.key)),J(t)},[j.map(function(e){return e.key}).join("_"),X,Q]);var ee=(0,w.A)(null,{value:r}),et=(0,b.A)(ee,2),er=et[0],en=et[1];function ei(e,t){null==P||P(e,t);var r=e!==X;Y(e),r&&(null==R||R(e))}(0,n.useEffect)(function(){r||(en("rc-tabs-".concat(em)),em+=1)},[]);var eo={id:er,activeKey:X,animated:D,tabPosition:g,rtl:F,mobile:G},ea=(0,y.A)((0,y.A)({},eo),{},{editable:d,locale:O,more:I,tabBarGutter:E,onTabClick:ei,onTabScroll:$,extra:k,style:C,panes:null,getPopupContainer:B,popupClassName:N,indicator:z});return n.createElement(A.Provider,{value:{tabs:j,prefixCls:a}},n.createElement("div",(0,h.A)({ref:t,id:r,className:o()(a,"".concat(a,"-").concat(g),(0,v.A)((0,v.A)((0,v.A)({},"".concat(a,"-mobile"),G),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),F),s)},L),n.createElement(eu,(0,h.A)({},ea,{renderTabBar:M})),n.createElement(eh,(0,h.A)({destroyInactiveTabPane:T},eo,{animated:D}))))});var ev=r(44274),ey=r(36079);let eb={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ex(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return(t=!1===r?{inkBar:!1,tabPane:!1}:!0===r?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof r?r:{})).tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},eb),{motionName:(0,ey.b)(e,"switch")})),t}var e_=r(69268),ew=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function eS(e){return e.filter(e=>e)}function eA(e,t){return e||eS((0,e_.A)(t).map(e=>{if(n.isValidElement(e)){let{key:t,props:r}=e,n=r||{},{tab:i}=n,o=ew(n,["tab"]);return Object.assign(Object.assign({key:String(t)},o),{label:i})}return null}))}var eE=r(85337),eC=r(12869),ek=r(16850),eO=r(68491),eI=r(59765);let eT=e=>{let{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[(0,eI._j)(e,"slide-up"),(0,eI._j)(e,"slide-down")]]},eM=e=>{let{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${(0,eE.zA)(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,eE.zA)(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,eE.zA)(e.borderRadiusLG)} ${(0,eE.zA)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,eE.zA)(e.borderRadiusLG)} ${(0,eE.zA)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,eE.zA)(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,eE.zA)(e.borderRadiusLG)} 0 0 ${(0,eE.zA)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,eE.zA)(e.borderRadiusLG)} ${(0,eE.zA)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},eR=e=>{let{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,eC.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,eE.zA)(n)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},eC.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,eE.zA)(e.paddingXXS)} ${(0,eE.zA)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},eP=e=>{let{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,eE.zA)(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
@@ -353,7 +353,7 @@ ${t}`)}});return await Promise.all(s),i?n[o[0].src]:n}async unload(e){let t=(0,z
|
|
|
353
353
|
|
|
354
354
|
vec2 textureCoord = filterTextureCoord();
|
|
355
355
|
%blur%
|
|
356
|
-
}`;function e1(e,t){let r,n=Math.ceil(e/2),i=e0,o="";r=t?"vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * pixelStrength, 0.0);":"vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * pixelStrength);";for(let t=0;t<e;t++){let e=r.replace("%index%",t.toString());o+=e=e.replace("%sampleIndex%",`${t-(n-1)}.0`),o+="\n"}return(i=(i=i.replace("%blur%",o)).replace("%size%",e.toString())).replace("%dimension%",t?"z":"w")}function e2(e,t){let r=e1(t,e),n=eJ(t);return eF.M.from({vertex:r,fragment:n,name:`blur-${e?"horizontal":"vertical"}-pass-filter`})}var e3="\n\nstruct GlobalFilterUniforms {\n uInputSize:vec4<f32>,\n uInputPixel:vec4<f32>,\n uInputClamp:vec4<f32>,\n uOutputFrame:vec4<f32>,\n uGlobalFrame:vec4<f32>,\n uOutputTexture:vec4<f32>,\n};\n\nstruct BlurUniforms {\n uStrength:f32,\n};\n\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n@group(0) @binding(1) var uTexture: texture_2d<f32>;\n@group(0) @binding(2) var uSampler : sampler;\n\n@group(1) @binding(0) var<uniform> blurUniforms : BlurUniforms;\n\n\nstruct VSOutput {\n @builtin(position) position: vec4<f32>,\n %blur-struct%\n };\n\nfn filterVertexPosition(aPosition:vec2<f32>) -> vec4<f32>\n{\n var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy;\n\n position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*gfu.uOutputTexture.z / gfu.uOutputTexture.y) - gfu.uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nfn filterTextureCoord( aPosition:vec2<f32> ) -> vec2<f32>\n{\n return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw);\n}\n\nfn globalTextureCoord( aPosition:vec2<f32> ) -> vec2<f32>\n{\n return (aPosition.xy / gfu.uGlobalFrame.zw) + (gfu.uGlobalFrame.xy / gfu.uGlobalFrame.zw); \n}\n\nfn getSize() -> vec2<f32>\n{\n return gfu.uGlobalFrame.zw;\n}\n\n\n@vertex\nfn mainVertex(\n @location(0) aPosition : vec2<f32>, \n) -> VSOutput {\n\n let filteredCord = filterTextureCoord(aPosition);\n\n let strength = gfu.uInputSize.w * blurUniforms.uStrength;\n\n return VSOutput(\n filterVertexPosition(aPosition),\n %blur-vertex-out%\n );\n}\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n %blur-fragment-in%\n) -> @location(0) vec4<f32> {\n\n var finalColor = vec4(0.0);\n\n %blur-sampling%\n\n return finalColor;\n}";function e5(e,t){let r=eZ[t],n=r.length,i=[],o=[],a=[];for(let s=0;s<t;s++){i[s]=`@location(${s}) offset${s}: vec2<f32>,`,e?o[s]=`filteredCord + vec2(${s-n+1} * strength, 0.0),`:o[s]=`filteredCord + vec2(0.0, ${s-n+1} * strength),`;let l=r[s<n?s:t-s-1].toString();a[s]=`finalColor += textureSample(uTexture, uSampler, offset${s}) * ${l};`}let s=i.join("\n"),l=o.join("\n"),u=a.join("\n"),c=e3.replace("%blur-struct%",s).replace("%blur-vertex-out%",l).replace("%blur-fragment-in%",s).replace("%blur-sampling%",u);return eD.B.from({vertex:{source:c,entryPoint:"mainVertex"},fragment:{source:c,entryPoint:"mainFragment"}})}let e4=class e extends eH.d{constructor(t){super({glProgram:e2((t={...e.defaultOptions,...t}).horizontal,t.kernelSize),gpuProgram:e5(t.horizontal,t.kernelSize),resources:{blurUniforms:{uStrength:{value:0,type:"f32"}}},...t}),this.horizontal=t.horizontal,this._quality=0,this.quality=t.quality,this.blur=t.strength,this._uniforms=this.resources.blurUniforms.uniforms}apply(e,t,r,n){if(this._uniforms.uStrength=this.strength/this.passes,1===this.passes)e.applyFilter(this,t,r,n);else{let i=eY.W.getSameSizeTexture(t),o=t,a=i;this._state.blend=!1;for(let t=0;t<this.passes-1;t++){e.applyFilter(this,o,a,e.renderer.type===eK.W.WEBGPU);let t=a;a=o,o=t}this._state.blend=!0,e.applyFilter(this,o,r,n),eY.W.returnTexture(i)}}get blur(){return this.strength}set blur(e){this.padding=1+2*Math.abs(e),this.strength=e}get quality(){return this._quality}set quality(e){this._quality=e,this.passes=e}};e4.defaultOptions={strength:8,quality:4,kernelSize:5};let e6=e4;class e8 extends eH.d{constructor(...e){let t=e[0]??{};"number"==typeof t&&((0,y.t)("8.0.0","BlurFilter constructor params are now options object. See params: { strength, quality, resolution, kernelSize }"),t={strength:t},e[1]&&(t.quality=e[1]),e[2]&&(t.resolution=e[2]),e[3]&&(t.kernelSize=e[3]));const{strength:r,quality:n,...i}=t={...e6.defaultOptions,...t};super({...i,compatibleRenderers:eK.W.BOTH,resources:{}}),this._repeatEdgePixels=!1,this.blurXFilter=new e6({horizontal:!1,...t}),this.blurYFilter=new e6({horizontal:!0,...t}),this.quality=n,this.blur=r,this.repeatEdgePixels=!1}apply(e,t,r,n){let i=Math.abs(this.blurXFilter.strength),o=Math.abs(this.blurYFilter.strength);if(i&&o){let i=eY.W.getSameSizeTexture(t);this.blurXFilter.apply(e,t,i,!0),this.blurYFilter.apply(e,i,r,n),eY.W.returnTexture(i)}else o?this.blurYFilter.apply(e,t,r,n):this.blurXFilter.apply(e,t,r,n)}updatePadding(){this._repeatEdgePixels?this.padding=0:this.padding=2*Math.max(Math.abs(this.blurXFilter.blur),Math.abs(this.blurYFilter.blur))}get blur(){return this.blurXFilter.blur}set blur(e){this.blurXFilter.blur=this.blurYFilter.blur=e,this.updatePadding()}get quality(){return this.blurXFilter.quality}set quality(e){this.blurXFilter.quality=this.blurYFilter.quality=e}get blurX(){return this.blurXFilter.blur}set blurX(e){this.blurXFilter.blur=e,this.updatePadding()}get blurY(){return this.blurYFilter.blur}set blurY(e){this.blurYFilter.blur=e,this.updatePadding()}get blendMode(){return this.blurYFilter.blendMode}set blendMode(e){this.blurYFilter.blendMode=e}get repeatEdgePixels(){return this._repeatEdgePixels}set repeatEdgePixels(e){this._repeatEdgePixels=e,this.updatePadding()}}e8.defaultOptions={strength:8,quality:4,kernelSize:5};var e7=r(74632),e9=r(52e3),te=r(58569),tt=r(45584),tr=r(83257);r(73281);var tn=r(52632),ti=r(58788),to=r(97088),ta=r(46904);class ts extends v.mc{constructor(e,t){const{text:r,resolution:n,style:i,anchor:o,width:a,height:s,roundPixels:l,...u}=e;super({...u}),this.batched=!0,this.resolution=null,this._didTextUpdate=!0,this._roundPixels=0,this._bounds=new ta.c,this._boundsDirty=!0,this._styleClass=t,this.text=r??"",this.style=i,this.resolution=n??null,this.allowChildren=!1,this._anchor=new e9.o({_onUpdate:()=>{this.onViewUpdate()}}),o&&(this.anchor=o),this.roundPixels=l??!1,a&&(this.width=a),s&&(this.height=s)}get anchor(){return this._anchor}set anchor(e){"number"==typeof e?this._anchor.set(e):this._anchor.copyFrom(e)}get roundPixels(){return!!this._roundPixels}set roundPixels(e){this._roundPixels=+!!e}set text(e){e=e.toString(),this._text!==e&&(this._text=e,this.onViewUpdate())}get text(){return this._text}get style(){return this._style}set style(e){e=e||{},this._style?.off("update",this.onViewUpdate,this),e instanceof this._styleClass?this._style=e:this._style=new this._styleClass(e),this._style.on("update",this.onViewUpdate,this),this.onViewUpdate()}get bounds(){return this._boundsDirty&&(this._updateBounds(),this._boundsDirty=!1),this._bounds}get width(){return Math.abs(this.scale.x)*this.bounds.width}set width(e){this._setWidth(e,this.bounds.width)}get height(){return Math.abs(this.scale.y)*this.bounds.height}set height(e){this._setHeight(e,this.bounds.height)}getSize(e){return e||(e={}),e.width=Math.abs(this.scale.x)*this.bounds.width,e.height=Math.abs(this.scale.y)*this.bounds.height,e}setSize(e,t){let r,n;"object"!=typeof e?(r=e,n=t??e):(r=e.width,n=e.height??e.width),void 0!==r&&this._setWidth(r,this.bounds.width),void 0!==n&&this._setHeight(n,this.bounds.height)}addBounds(e){let t=this.bounds;e.addFrame(t.minX,t.minY,t.maxX,t.maxY)}containsPoint(e){let t=this.bounds.maxX,r=this.bounds.maxY,n=-t*this.anchor.x,i=0;return!!(e.x>=n)&&!!(e.x<=n+t)&&(i=-r*this.anchor.y,!!(e.y>=i)&&!!(e.y<=i+r))||!1}onViewUpdate(){this._didChangeId+=4096,this._boundsDirty=!0,!this.didViewUpdate&&(this.didViewUpdate=!0,this._didTextUpdate=!0,this.renderGroup&&this.renderGroup.onChildViewUpdate(this))}_getKey(){return`${this.text}:${this._style.styleKey}`}destroy(e=!1){super.destroy(e),this.owner=null,this._bounds=null,this._anchor=null,("boolean"==typeof e?e:e?.style)&&this._style.destroy(e),this._style=null,this._text=null}}function tl(e,t){let r=e[0]??{};return("string"==typeof r||e[1])&&((0,y.t)("8.0.0",`use new ${t}({ text: "hi!", style }) instead`),r={text:r,style:e[1]}),r}var tu=r(3748),tc=r(94951);class tf extends ts{constructor(...e){super(tl(e,"Text"),tc.x),this.renderPipeId="text"}_updateBounds(){let e=this._bounds,t=this._style.padding,r=this._anchor,{width:n,height:i}=tu.P.measureText(this._text,this._style);e.minX=-r._x*n-t,e.maxX=e.minX+n,e.minY=-r._y*i-t,e.maxY=e.minY+i}}r(60588),r(6935),a.XO.add(s,l)},96253:function(e,t,r){"use strict";r.d(t,{u:()=>o});var n=r(74632),i=r(58569);class o{constructor(e=1,t=0,r=0,n=1,i=0,o=0){this.array=null,this.a=e,this.b=t,this.c=r,this.d=n,this.tx=i,this.ty=o}fromArray(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]}set(e,t,r,n,i,o){return this.a=e,this.b=t,this.c=r,this.d=n,this.tx=i,this.ty=o,this}toArray(e,t){this.array||(this.array=new Float32Array(9));let r=t||this.array;return e?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0),r[8]=1,r}apply(e,t){t=t||new i.b;let r=e.x,n=e.y;return t.x=this.a*r+this.c*n+this.tx,t.y=this.b*r+this.d*n+this.ty,t}applyInverse(e,t){t=t||new i.b;let r=this.a,n=this.b,o=this.c,a=this.d,s=this.tx,l=this.ty,u=1/(r*a+-(o*n)),c=e.x,f=e.y;return t.x=a*u*c+-o*u*f+(l*o-s*a)*u,t.y=r*u*f+-n*u*c+(-l*r+s*n)*u,t}translate(e,t){return this.tx+=e,this.ty+=t,this}scale(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this}rotate(e){let t=Math.cos(e),r=Math.sin(e),n=this.a,i=this.c,o=this.tx;return this.a=n*t-this.b*r,this.b=n*r+this.b*t,this.c=i*t-this.d*r,this.d=i*r+this.d*t,this.tx=o*t-this.ty*r,this.ty=o*r+this.ty*t,this}append(e){let t=this.a,r=this.b,n=this.c,i=this.d;return this.a=e.a*t+e.b*n,this.b=e.a*r+e.b*i,this.c=e.c*t+e.d*n,this.d=e.c*r+e.d*i,this.tx=e.tx*t+e.ty*n+this.tx,this.ty=e.tx*r+e.ty*i+this.ty,this}appendFrom(e,t){let r=e.a,n=e.b,i=e.c,o=e.d,a=e.tx,s=e.ty,l=t.a,u=t.b,c=t.c,f=t.d;return this.a=r*l+n*c,this.b=r*u+n*f,this.c=i*l+o*c,this.d=i*u+o*f,this.tx=a*l+s*c+t.tx,this.ty=a*u+s*f+t.ty,this}setTransform(e,t,r,n,i,o,a,s,l){return this.a=Math.cos(a+l)*i,this.b=Math.sin(a+l)*i,this.c=-Math.sin(a-s)*o,this.d=Math.cos(a-s)*o,this.tx=e-(r*this.a+n*this.c),this.ty=t-(r*this.b+n*this.d),this}prepend(e){let t=this.tx;if(1!==e.a||0!==e.b||0!==e.c||1!==e.d){let t=this.a,r=this.c;this.a=t*e.a+this.b*e.c,this.b=t*e.b+this.b*e.d,this.c=r*e.a+this.d*e.c,this.d=r*e.b+this.d*e.d}return this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty,this}decompose(e){let t=this.a,r=this.b,i=this.c,o=this.d,a=e.pivot,s=-Math.atan2(-i,o),l=Math.atan2(r,t),u=Math.abs(s+l);return u<1e-5||1e-5>Math.abs(n.TO-u)?(e.rotation=l,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=s,e.skew.y=l),e.scale.x=Math.sqrt(t*t+r*r),e.scale.y=Math.sqrt(i*i+o*o),e.position.x=this.tx+(a.x*t+a.y*i),e.position.y=this.ty+(a.x*r+a.y*o),e}invert(){let e=this.a,t=this.b,r=this.c,n=this.d,i=this.tx,o=e*n-t*r;return this.a=n/o,this.b=-t/o,this.c=-r/o,this.d=e/o,this.tx=(r*this.ty-n*i)/o,this.ty=-(e*this.ty-t*i)/o,this}isIdentity(){return 1===this.a&&0===this.b&&0===this.c&&1===this.d&&0===this.tx&&0===this.ty}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){let e=new o;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyTo(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyFrom(e){return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty,this}equals(e){return e.a===this.a&&e.b===this.b&&e.c===this.c&&e.d===this.d&&e.tx===this.tx&&e.ty===this.ty}toString(){return`[pixi.js:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return s.identity()}static get shared(){return a.identity()}}let a=new o,s=new o},74632:function(e,t,r){"use strict";r.d(t,{TO:()=>n,Td:()=>o,bO:()=>i});let n=2*Math.PI,i=180/Math.PI,o=Math.PI/180},10551:function(e,t,r){"use strict";function n(e){return e+=+(0===e),--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1}function i(e){return!(e&e-1)&&!!e}r.d(t,{U5:()=>n,f3:()=>i})},52e3:function(e,t,r){"use strict";r.d(t,{o:()=>n});class n{constructor(e,t,r){this._x=t||0,this._y=r||0,this._observer=e}clone(e){return new n(e??this._observer,this._x,this._y)}set(e=0,t=e){return(this._x!==e||this._y!==t)&&(this._x=e,this._y=t,this._observer._onUpdate(this)),this}copyFrom(e){return(this._x!==e.x||this._y!==e.y)&&(this._x=e.x,this._y=e.y,this._observer._onUpdate(this)),this}copyTo(e){return e.set(this._x,this._y),e}equals(e){return e.x===this._x&&e.y===this._y}toString(){return`[pixi.js/math:ObservablePoint x=0 y=0 scope=${this._observer}]`}get x(){return this._x}set x(e){this._x!==e&&(this._x=e,this._observer._onUpdate(this))}get y(){return this._y}set y(e){this._y!==e&&(this._y=e,this._observer._onUpdate(this))}}},58569:function(e,t,r){"use strict";r.d(t,{b:()=>n});class n{constructor(e=0,t=0){this.x=0,this.y=0,this.x=e,this.y=t}clone(){return new n(this.x,this.y)}copyFrom(e){return this.set(e.x,e.y),this}copyTo(e){return e.set(this.x,this.y),e}equals(e){return e.x===this.x&&e.y===this.y}set(e=0,t=e){return this.x=e,this.y=t,this}toString(){return`[pixi.js/math:Point x=${this.x} y=${this.y}]`}static get shared(){return i.x=0,i.y=0,i}}let i=new n},45584:function(e,t,r){"use strict";r.d(t,{M:()=>o});var n=r(58569);let i=[new n.b,new n.b,new n.b,new n.b];class o{constructor(e=0,t=0,r=0,n=0){this.type="rectangle",this.x=Number(e),this.y=Number(t),this.width=Number(r),this.height=Number(n)}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}isEmpty(){return this.left===this.right||this.top===this.bottom}static get EMPTY(){return new o(0,0,0,0)}clone(){return new o(this.x,this.y,this.width,this.height)}copyFromBounds(e){return this.x=e.minX,this.y=e.minY,this.width=e.maxX-e.minX,this.height=e.maxY-e.minY,this}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.copyFrom(this),e}contains(e,t){return!(this.width<=0)&&!(this.height<=0)&&!!(e>=this.x)&&!!(e<this.x+this.width)&&!!(t>=this.y)&&!!(t<this.y+this.height)}strokeContains(e,t,r){let{width:n,height:i}=this;if(n<=0||i<=0)return!1;let o=this.x,a=this.y,s=o-r/2,l=o+n+r/2,u=a-r/2,c=a+i+r/2,f=o+r/2,h=o+n-r/2,d=a+r/2,p=a+i-r/2;return e>=s&&e<=l&&t>=u&&t<=c&&!(e>f&&e<h&&t>d&&t<p)}intersects(e,t){if(!t){let t=this.x<e.x?e.x:this.x;if((this.right>e.right?e.right:this.right)<=t)return!1;let r=this.y<e.y?e.y:this.y;return(this.bottom>e.bottom?e.bottom:this.bottom)>r}let r=this.left,n=this.right,o=this.top,a=this.bottom;if(n<=r||a<=o)return!1;let s=i[0].set(e.left,e.top),l=i[1].set(e.left,e.bottom),u=i[2].set(e.right,e.top),c=i[3].set(e.right,e.bottom);if(u.x<=s.x||l.y<=s.y)return!1;let f=Math.sign(t.a*t.d-t.b*t.c);if(0===f||(t.apply(s,s),t.apply(l,l),t.apply(u,u),t.apply(c,c),Math.max(s.x,l.x,u.x,c.x)<=r||Math.min(s.x,l.x,u.x,c.x)>=n||Math.max(s.y,l.y,u.y,c.y)<=o||Math.min(s.y,l.y,u.y,c.y)>=a))return!1;let h=f*(l.y-s.y),d=f*(s.x-l.x),p=h*r+d*o,m=h*n+d*o,g=h*r+d*a,v=h*n+d*a;if(Math.max(p,m,g,v)<=h*s.x+d*s.y||Math.min(p,m,g,v)>=h*c.x+d*c.y)return!1;let y=f*(s.y-u.y),b=f*(u.x-s.x),x=y*r+b*o,_=y*n+b*o,w=y*r+b*a,S=y*n+b*a;return!(Math.max(x,_,w,S)<=y*s.x+b*s.y||Math.min(x,_,w,S)>=y*c.x+b*c.y)}pad(e=0,t=e){return this.x-=e,this.y-=t,this.width+=2*e,this.height+=2*t,this}fit(e){let t=Math.max(this.x,e.x),r=Math.min(this.x+this.width,e.x+e.width),n=Math.max(this.y,e.y),i=Math.min(this.y+this.height,e.y+e.height);return this.x=t,this.width=Math.max(r-t,0),this.y=n,this.height=Math.max(i-n,0),this}ceil(e=1,t=.001){let r=Math.ceil((this.x+this.width-t)*e)/e,n=Math.ceil((this.y+this.height-t)*e)/e;return this.x=Math.floor((this.x+t)*e)/e,this.y=Math.floor((this.y+t)*e)/e,this.width=r-this.x,this.height=n-this.y,this}enlarge(e){let t=Math.min(this.x,e.x),r=Math.max(this.x+this.width,e.x+e.width),n=Math.min(this.y,e.y),i=Math.max(this.y+this.height,e.y+e.height);return this.x=t,this.width=r-t,this.y=n,this.height=i-n,this}getBounds(e){return(e=e||new o).copyFrom(this),e}toString(){return`[pixi.js/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}},28022:function(e,t,r){"use strict";r.d(t,{J:()=>l});var n=r(8113),i=r(71720),o=r(9442);let a=new Float32Array(1),s=new Uint32Array(1);class l extends o.V{constructor(){const e=6,t=new n.h({data:a,label:"attribute-batch-buffer",usage:i.S.VERTEX|i.S.COPY_DST,shrinkToFit:!1}),r=new n.h({data:s,label:"index-batch-buffer",usage:i.S.INDEX|i.S.COPY_DST,shrinkToFit:!1}),o=4*e;super({attributes:{aPosition:{buffer:t,format:"float32x2",stride:o,offset:0,location:1},aUV:{buffer:t,format:"float32x2",stride:o,offset:8,location:3},aColor:{buffer:t,format:"unorm8x4",stride:o,offset:16,location:0},aTextureIdAndRound:{buffer:t,format:"uint16x2",stride:o,offset:20,location:2}},indexBuffer:r})}}},37313:function(e,t,r){"use strict";r.d(t,{w:()=>a});var n=r(52781),i=r(27633);let o={};function a(e,t){let r=0;for(let n=0;n<t;n++)r=31*r+e[n].uid>>>0;return o[r]||s(e,r)}function s(e,t){let r={},a=0;for(let t=0;t<16;t++){let n=t<e.length?e[t]:i.g.EMPTY.source;r[a++]=n.source,r[a++]=n.style}let s=new n.T(r);return o[t]=s,s}},82825:function(e,t,r){"use strict";r.d(t,{i:()=>h});var n=r(94849);class i{constructor(e){"number"==typeof e?this.rawBinaryData=new ArrayBuffer(e):e instanceof Uint8Array?this.rawBinaryData=e.buffer:this.rawBinaryData=e,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData),this.size=this.rawBinaryData.byteLength}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}get float64View(){return this._float64Array||(this._float64Array=new Float64Array(this.rawBinaryData)),this._float64Array}get bigUint64View(){return this._bigUint64Array||(this._bigUint64Array=new BigUint64Array(this.rawBinaryData)),this._bigUint64Array}view(e){return this[`${e}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this.uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(e){switch(e){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw Error(`${e} isn't a valid view type`)}}}var o=r(51364),a=r(70673);function s(e,t){return"no-premultiply-alpha"===t.alphaMode&&a.Q[e]||e}class l{constructor(){this.ids=Object.create(null),this.textures=[],this.count=0}clear(){for(let e=0;e<this.count;e++){let t=this.textures[e];this.textures[e]=null,this.ids[t.uid]=null}this.count=0}}class u{constructor(){this.renderPipeId="batch",this.action="startBatch",this.start=0,this.size=0,this.blendMode="normal",this.canBundle=!0}destroy(){this.textures=null,this.gpuBindGroup=null,this.bindGroup=null,this.batcher=null}}let c=0,f=class e{constructor(t={}){this.uid=(0,n.L)("batcher"),this.dirty=!0,this.batchIndex=0,this.batches=[],this._vertexSize=6,this._elements=[],this._batchPool=[],this._batchPoolIndex=0,this._textureBatchPool=[],this._textureBatchPoolIndex=0;const{vertexSize:r,indexSize:o}=t={...e.defaultOptions,...t};this.attributeBuffer=new i(r*this._vertexSize*4),this.indexBuffer=new Uint16Array(o)}begin(){this.batchIndex=0,this.elementSize=0,this.elementStart=0,this.indexSize=0,this.attributeSize=0,this._batchPoolIndex=0,this._textureBatchPoolIndex=0,this._batchIndexStart=0,this._batchIndexSize=0,this.dirty=!0}add(e){this._elements[this.elementSize++]=e,e.indexStart=this.indexSize,e.location=this.attributeSize,e.batcher=this,this.indexSize+=e.indexSize,this.attributeSize+=e.vertexSize*this._vertexSize}checkAndUpdateTexture(e,t){let r=e.batch.textures.ids[t._source.uid];return(!!r||0===r)&&(e.textureId=r,e.texture=t,!0)}updateElement(e){this.dirty=!0,e.packAttributes(this.attributeBuffer.float32View,this.attributeBuffer.uint32View,e.location,e.textureId)}break(e){let t=this._elements,r=this._textureBatchPool[this._textureBatchPoolIndex++]||new l;if(r.clear(),!t[this.elementStart])return;let n=t[this.elementStart],i=s(n.blendMode,n.texture._source);4*this.attributeSize>this.attributeBuffer.size&&this._resizeAttributeBuffer(4*this.attributeSize),this.indexSize>this.indexBuffer.length&&this._resizeIndexBuffer(this.indexSize);let o=this.attributeBuffer.float32View,a=this.attributeBuffer.uint32View,f=this.indexBuffer,h=this._batchIndexSize,d=this._batchIndexStart,p="startBatch",m=this._batchPool[this._batchPoolIndex++]||new u;for(let n=this.elementStart;n<this.elementSize;++n){let g=t[n];t[n]=null;let v=g.texture._source,y=s(g.blendMode,v),b=i!==y;if(v._batchTick===c&&!b){g.textureId=v._textureBindLocation,h+=g.indexSize,g.packAttributes(o,a,g.location,g.textureId),g.packIndex(f,g.indexStart,g.location/this._vertexSize),g.batch=m;continue}v._batchTick=c,(r.count>=16||b)&&(this._finishBatch(m,d,h-d,r,i,e,p),p="renderBatch",d=h,i=y,(r=this._textureBatchPool[this._textureBatchPoolIndex++]||new l).clear(),m=this._batchPool[this._batchPoolIndex++]||new u,++c),g.textureId=v._textureBindLocation=r.count,r.ids[v.uid]=r.count,r.textures[r.count++]=v,g.batch=m,h+=g.indexSize,g.packAttributes(o,a,g.location,g.textureId),g.packIndex(f,g.indexStart,g.location/this._vertexSize)}r.count>0&&(this._finishBatch(m,d,h-d,r,i,e,p),d=h,++c),this.elementStart=this.elementSize,this._batchIndexStart=d,this._batchIndexSize=h}_finishBatch(e,t,r,n,i,o,a){e.gpuBindGroup=null,e.action=a,e.batcher=this,e.textures=n,e.blendMode=i,e.start=t,e.size=r,++c,o.add(e)}finish(e){this.break(e)}ensureAttributeBuffer(e){4*e<=this.attributeBuffer.size||this._resizeAttributeBuffer(4*e)}ensureIndexBuffer(e){e<=this.indexBuffer.length||this._resizeIndexBuffer(e)}_resizeAttributeBuffer(e){let t=new i(Math.max(e,2*this.attributeBuffer.size));(0,o.W)(this.attributeBuffer.rawBinaryData,t.rawBinaryData),this.attributeBuffer=t}_resizeIndexBuffer(e){let t=this.indexBuffer,r=Math.max(e,1.5*t.length);r+=r%2;let n=r>65535?new Uint32Array(r):new Uint16Array(r);if(n.BYTES_PER_ELEMENT!==t.BYTES_PER_ELEMENT)for(let e=0;e<t.length;e++)n[e]=t[e];else(0,o.W)(t.buffer,n.buffer);this.indexBuffer=n}destroy(){for(let e=0;e<this.batches.length;e++)this.batches[e].destroy();this.batches=null;for(let e=0;e<this._elements.length;e++)this._elements[e].batch=null;this._elements=null,this.indexBuffer=null,this.attributeBuffer.destroy(),this.attributeBuffer=null}};f.defaultOptions={vertexSize:4,indexSize:6};let h=f},93740:function(e,t,r){"use strict";var n=r(43071),i=r(97088),o=r(46904),a=r(92151);let s=new o.c;function l(e,t,r){let n=s;e.measurable=!0,(0,a.fB)(e,r,n),t.addBoundsMask(n),e.measurable=!1}var u=r(99625),c=r(23268),f=r(86840);function h(e,t,r){let n=c.o.get();e.measurable=!0;let i=c.u.get().identity(),o=d(e,r,i);(0,u.n)(e,n,o),e.measurable=!1,t.addBoundsMask(n),c.u.return(i),c.o.return(n)}function d(e,t,r){return e?e!==t&&(d(e.parent,t,r),e.updateLocalTransform(),r.append(e.localTransform)):(0,f.R)("Mask bounds, renderable is not inside the root container"),r}class p{constructor(e){this.priority=0,this.pipe="alphaMask",e?.mask&&this.init(e.mask)}init(e){this.mask=e,this.renderMaskToTexture=!(e instanceof i.k),this.mask.renderable=this.renderMaskToTexture,this.mask.includeInBuild=!this.renderMaskToTexture,this.mask.measurable=!1}reset(){this.mask.measurable=!0,this.mask=null}addBounds(e,t){l(this.mask,e,t)}addLocalBounds(e,t){h(this.mask,e,t)}containsPoint(e,t){return t(this.mask,e)}destroy(){this.reset()}static test(e){return e instanceof i.k}}p.extension=n.Ag.MaskEffect;class m{constructor(e){this.priority=0,this.pipe="colorMask",e?.mask&&this.init(e.mask)}init(e){this.mask=e}destroy(){}static test(e){return"number"==typeof e}}m.extension=n.Ag.MaskEffect;var g=r(21873);class v{constructor(e){this.priority=0,this.pipe="stencilMask",e?.mask&&this.init(e.mask)}init(e){this.mask=e,this.mask.includeInBuild=!1,this.mask.measurable=!1}reset(){this.mask.measurable=!0,this.mask.includeInBuild=!0,this.mask=null}addBounds(e,t){l(this.mask,e,t)}addLocalBounds(e,t){h(this.mask,e,t)}containsPoint(e,t){return t(this.mask,e)}destroy(){this.reset()}static test(e){return e instanceof g.mc}}v.extension=n.Ag.MaskEffect;var y=r(73546),b=r(30040),x=r(32617),_=r(98327);r(73281),n.XO.add(p,m,v,_.$,x.b,b.q,y.P)},5448:function(e,t,r){"use strict";r.d(t,{z:()=>c});var n=r(43071),i=r(35843),o=r(89386),a=r(5787),s=r(73334);function l(e,t){let r=Math.max(o.K[e.data.type]/16,1),n=e.data.value.length/e.data.size,i=(4-n%4)%4;return`
|
|
356
|
+
}`;function e1(e,t){let r,n=Math.ceil(e/2),i=e0,o="";r=t?"vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * pixelStrength, 0.0);":"vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * pixelStrength);";for(let t=0;t<e;t++){let e=r.replace("%index%",t.toString());o+=e=e.replace("%sampleIndex%",`${t-(n-1)}.0`),o+="\n"}return(i=(i=i.replace("%blur%",o)).replace("%size%",e.toString())).replace("%dimension%",t?"z":"w")}function e2(e,t){let r=e1(t,e),n=eJ(t);return eF.M.from({vertex:r,fragment:n,name:`blur-${e?"horizontal":"vertical"}-pass-filter`})}var e3="\n\nstruct GlobalFilterUniforms {\n uInputSize:vec4<f32>,\n uInputPixel:vec4<f32>,\n uInputClamp:vec4<f32>,\n uOutputFrame:vec4<f32>,\n uGlobalFrame:vec4<f32>,\n uOutputTexture:vec4<f32>,\n};\n\nstruct BlurUniforms {\n uStrength:f32,\n};\n\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n@group(0) @binding(1) var uTexture: texture_2d<f32>;\n@group(0) @binding(2) var uSampler : sampler;\n\n@group(1) @binding(0) var<uniform> blurUniforms : BlurUniforms;\n\n\nstruct VSOutput {\n @builtin(position) position: vec4<f32>,\n %blur-struct%\n };\n\nfn filterVertexPosition(aPosition:vec2<f32>) -> vec4<f32>\n{\n var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy;\n\n position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*gfu.uOutputTexture.z / gfu.uOutputTexture.y) - gfu.uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nfn filterTextureCoord( aPosition:vec2<f32> ) -> vec2<f32>\n{\n return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw);\n}\n\nfn globalTextureCoord( aPosition:vec2<f32> ) -> vec2<f32>\n{\n return (aPosition.xy / gfu.uGlobalFrame.zw) + (gfu.uGlobalFrame.xy / gfu.uGlobalFrame.zw); \n}\n\nfn getSize() -> vec2<f32>\n{\n return gfu.uGlobalFrame.zw;\n}\n\n\n@vertex\nfn mainVertex(\n @location(0) aPosition : vec2<f32>, \n) -> VSOutput {\n\n let filteredCord = filterTextureCoord(aPosition);\n\n let strength = gfu.uInputSize.w * blurUniforms.uStrength;\n\n return VSOutput(\n filterVertexPosition(aPosition),\n %blur-vertex-out%\n );\n}\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n %blur-fragment-in%\n) -> @location(0) vec4<f32> {\n\n var finalColor = vec4(0.0);\n\n %blur-sampling%\n\n return finalColor;\n}";function e5(e,t){let r=eZ[t],n=r.length,i=[],o=[],a=[];for(let s=0;s<t;s++){i[s]=`@location(${s}) offset${s}: vec2<f32>,`,e?o[s]=`filteredCord + vec2(${s-n+1} * strength, 0.0),`:o[s]=`filteredCord + vec2(0.0, ${s-n+1} * strength),`;let l=r[s<n?s:t-s-1].toString();a[s]=`finalColor += textureSample(uTexture, uSampler, offset${s}) * ${l};`}let s=i.join("\n"),l=o.join("\n"),u=a.join("\n"),c=e3.replace("%blur-struct%",s).replace("%blur-vertex-out%",l).replace("%blur-fragment-in%",s).replace("%blur-sampling%",u);return eD.B.from({vertex:{source:c,entryPoint:"mainVertex"},fragment:{source:c,entryPoint:"mainFragment"}})}let e4=class e extends eH.d{constructor(t){super({glProgram:e2((t={...e.defaultOptions,...t}).horizontal,t.kernelSize),gpuProgram:e5(t.horizontal,t.kernelSize),resources:{blurUniforms:{uStrength:{value:0,type:"f32"}}},...t}),this.horizontal=t.horizontal,this._quality=0,this.quality=t.quality,this.blur=t.strength,this._uniforms=this.resources.blurUniforms.uniforms}apply(e,t,r,n){if(this._uniforms.uStrength=this.strength/this.passes,1===this.passes)e.applyFilter(this,t,r,n);else{let i=eY.W.getSameSizeTexture(t),o=t,a=i;this._state.blend=!1;for(let t=0;t<this.passes-1;t++){e.applyFilter(this,o,a,e.renderer.type===eK.W.WEBGPU);let t=a;a=o,o=t}this._state.blend=!0,e.applyFilter(this,o,r,n),eY.W.returnTexture(i)}}get blur(){return this.strength}set blur(e){this.padding=1+2*Math.abs(e),this.strength=e}get quality(){return this._quality}set quality(e){this._quality=e,this.passes=e}};e4.defaultOptions={strength:8,quality:4,kernelSize:5};let e6=e4;class e8 extends eH.d{constructor(...e){let t=e[0]??{};"number"==typeof t&&((0,y.t)("8.0.0","BlurFilter constructor params are now options object. See params: { strength, quality, resolution, kernelSize }"),t={strength:t},e[1]&&(t.quality=e[1]),e[2]&&(t.resolution=e[2]),e[3]&&(t.kernelSize=e[3]));const{strength:r,quality:n,...i}=t={...e6.defaultOptions,...t};super({...i,compatibleRenderers:eK.W.BOTH,resources:{}}),this._repeatEdgePixels=!1,this.blurXFilter=new e6({horizontal:!1,...t}),this.blurYFilter=new e6({horizontal:!0,...t}),this.quality=n,this.blur=r,this.repeatEdgePixels=!1}apply(e,t,r,n){let i=Math.abs(this.blurXFilter.strength),o=Math.abs(this.blurYFilter.strength);if(i&&o){let i=eY.W.getSameSizeTexture(t);this.blurXFilter.apply(e,t,i,!0),this.blurYFilter.apply(e,i,r,n),eY.W.returnTexture(i)}else o?this.blurYFilter.apply(e,t,r,n):this.blurXFilter.apply(e,t,r,n)}updatePadding(){this._repeatEdgePixels?this.padding=0:this.padding=2*Math.max(Math.abs(this.blurXFilter.blur),Math.abs(this.blurYFilter.blur))}get blur(){return this.blurXFilter.blur}set blur(e){this.blurXFilter.blur=this.blurYFilter.blur=e,this.updatePadding()}get quality(){return this.blurXFilter.quality}set quality(e){this.blurXFilter.quality=this.blurYFilter.quality=e}get blurX(){return this.blurXFilter.blur}set blurX(e){this.blurXFilter.blur=e,this.updatePadding()}get blurY(){return this.blurYFilter.blur}set blurY(e){this.blurYFilter.blur=e,this.updatePadding()}get blendMode(){return this.blurYFilter.blendMode}set blendMode(e){this.blurYFilter.blendMode=e}get repeatEdgePixels(){return this._repeatEdgePixels}set repeatEdgePixels(e){this._repeatEdgePixels=e,this.updatePadding()}}e8.defaultOptions={strength:8,quality:4,kernelSize:5};var e7=r(52251),e9=r(52e3),te=r(58569),tt=r(45584),tr=r(83257);r(73281);var tn=r(52632),ti=r(58788),to=r(97088),ta=r(46904);class ts extends v.mc{constructor(e,t){const{text:r,resolution:n,style:i,anchor:o,width:a,height:s,roundPixels:l,...u}=e;super({...u}),this.batched=!0,this.resolution=null,this._didTextUpdate=!0,this._roundPixels=0,this._bounds=new ta.c,this._boundsDirty=!0,this._styleClass=t,this.text=r??"",this.style=i,this.resolution=n??null,this.allowChildren=!1,this._anchor=new e9.o({_onUpdate:()=>{this.onViewUpdate()}}),o&&(this.anchor=o),this.roundPixels=l??!1,a&&(this.width=a),s&&(this.height=s)}get anchor(){return this._anchor}set anchor(e){"number"==typeof e?this._anchor.set(e):this._anchor.copyFrom(e)}get roundPixels(){return!!this._roundPixels}set roundPixels(e){this._roundPixels=+!!e}set text(e){e=e.toString(),this._text!==e&&(this._text=e,this.onViewUpdate())}get text(){return this._text}get style(){return this._style}set style(e){e=e||{},this._style?.off("update",this.onViewUpdate,this),e instanceof this._styleClass?this._style=e:this._style=new this._styleClass(e),this._style.on("update",this.onViewUpdate,this),this.onViewUpdate()}get bounds(){return this._boundsDirty&&(this._updateBounds(),this._boundsDirty=!1),this._bounds}get width(){return Math.abs(this.scale.x)*this.bounds.width}set width(e){this._setWidth(e,this.bounds.width)}get height(){return Math.abs(this.scale.y)*this.bounds.height}set height(e){this._setHeight(e,this.bounds.height)}getSize(e){return e||(e={}),e.width=Math.abs(this.scale.x)*this.bounds.width,e.height=Math.abs(this.scale.y)*this.bounds.height,e}setSize(e,t){let r,n;"object"!=typeof e?(r=e,n=t??e):(r=e.width,n=e.height??e.width),void 0!==r&&this._setWidth(r,this.bounds.width),void 0!==n&&this._setHeight(n,this.bounds.height)}addBounds(e){let t=this.bounds;e.addFrame(t.minX,t.minY,t.maxX,t.maxY)}containsPoint(e){let t=this.bounds.maxX,r=this.bounds.maxY,n=-t*this.anchor.x,i=0;return!!(e.x>=n)&&!!(e.x<=n+t)&&(i=-r*this.anchor.y,!!(e.y>=i)&&!!(e.y<=i+r))||!1}onViewUpdate(){this._didChangeId+=4096,this._boundsDirty=!0,!this.didViewUpdate&&(this.didViewUpdate=!0,this._didTextUpdate=!0,this.renderGroup&&this.renderGroup.onChildViewUpdate(this))}_getKey(){return`${this.text}:${this._style.styleKey}`}destroy(e=!1){super.destroy(e),this.owner=null,this._bounds=null,this._anchor=null,("boolean"==typeof e?e:e?.style)&&this._style.destroy(e),this._style=null,this._text=null}}function tl(e,t){let r=e[0]??{};return("string"==typeof r||e[1])&&((0,y.t)("8.0.0",`use new ${t}({ text: "hi!", style }) instead`),r={text:r,style:e[1]}),r}var tu=r(3748),tc=r(94951);class tf extends ts{constructor(...e){super(tl(e,"Text"),tc.x),this.renderPipeId="text"}_updateBounds(){let e=this._bounds,t=this._style.padding,r=this._anchor,{width:n,height:i}=tu.P.measureText(this._text,this._style);e.minX=-r._x*n-t,e.maxX=e.minX+n,e.minY=-r._y*i-t,e.maxY=e.minY+i}}r(60588),r(6935),a.XO.add(s,l)},96253:function(e,t,r){"use strict";r.d(t,{u:()=>o});var n=r(52251),i=r(58569);class o{constructor(e=1,t=0,r=0,n=1,i=0,o=0){this.array=null,this.a=e,this.b=t,this.c=r,this.d=n,this.tx=i,this.ty=o}fromArray(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]}set(e,t,r,n,i,o){return this.a=e,this.b=t,this.c=r,this.d=n,this.tx=i,this.ty=o,this}toArray(e,t){this.array||(this.array=new Float32Array(9));let r=t||this.array;return e?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0),r[8]=1,r}apply(e,t){t=t||new i.b;let r=e.x,n=e.y;return t.x=this.a*r+this.c*n+this.tx,t.y=this.b*r+this.d*n+this.ty,t}applyInverse(e,t){t=t||new i.b;let r=this.a,n=this.b,o=this.c,a=this.d,s=this.tx,l=this.ty,u=1/(r*a+-(o*n)),c=e.x,f=e.y;return t.x=a*u*c+-o*u*f+(l*o-s*a)*u,t.y=r*u*f+-n*u*c+(-l*r+s*n)*u,t}translate(e,t){return this.tx+=e,this.ty+=t,this}scale(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this}rotate(e){let t=Math.cos(e),r=Math.sin(e),n=this.a,i=this.c,o=this.tx;return this.a=n*t-this.b*r,this.b=n*r+this.b*t,this.c=i*t-this.d*r,this.d=i*r+this.d*t,this.tx=o*t-this.ty*r,this.ty=o*r+this.ty*t,this}append(e){let t=this.a,r=this.b,n=this.c,i=this.d;return this.a=e.a*t+e.b*n,this.b=e.a*r+e.b*i,this.c=e.c*t+e.d*n,this.d=e.c*r+e.d*i,this.tx=e.tx*t+e.ty*n+this.tx,this.ty=e.tx*r+e.ty*i+this.ty,this}appendFrom(e,t){let r=e.a,n=e.b,i=e.c,o=e.d,a=e.tx,s=e.ty,l=t.a,u=t.b,c=t.c,f=t.d;return this.a=r*l+n*c,this.b=r*u+n*f,this.c=i*l+o*c,this.d=i*u+o*f,this.tx=a*l+s*c+t.tx,this.ty=a*u+s*f+t.ty,this}setTransform(e,t,r,n,i,o,a,s,l){return this.a=Math.cos(a+l)*i,this.b=Math.sin(a+l)*i,this.c=-Math.sin(a-s)*o,this.d=Math.cos(a-s)*o,this.tx=e-(r*this.a+n*this.c),this.ty=t-(r*this.b+n*this.d),this}prepend(e){let t=this.tx;if(1!==e.a||0!==e.b||0!==e.c||1!==e.d){let t=this.a,r=this.c;this.a=t*e.a+this.b*e.c,this.b=t*e.b+this.b*e.d,this.c=r*e.a+this.d*e.c,this.d=r*e.b+this.d*e.d}return this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty,this}decompose(e){let t=this.a,r=this.b,i=this.c,o=this.d,a=e.pivot,s=-Math.atan2(-i,o),l=Math.atan2(r,t),u=Math.abs(s+l);return u<1e-5||1e-5>Math.abs(n.TO-u)?(e.rotation=l,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=s,e.skew.y=l),e.scale.x=Math.sqrt(t*t+r*r),e.scale.y=Math.sqrt(i*i+o*o),e.position.x=this.tx+(a.x*t+a.y*i),e.position.y=this.ty+(a.x*r+a.y*o),e}invert(){let e=this.a,t=this.b,r=this.c,n=this.d,i=this.tx,o=e*n-t*r;return this.a=n/o,this.b=-t/o,this.c=-r/o,this.d=e/o,this.tx=(r*this.ty-n*i)/o,this.ty=-(e*this.ty-t*i)/o,this}isIdentity(){return 1===this.a&&0===this.b&&0===this.c&&1===this.d&&0===this.tx&&0===this.ty}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){let e=new o;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyTo(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyFrom(e){return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty,this}equals(e){return e.a===this.a&&e.b===this.b&&e.c===this.c&&e.d===this.d&&e.tx===this.tx&&e.ty===this.ty}toString(){return`[pixi.js:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return s.identity()}static get shared(){return a.identity()}}let a=new o,s=new o},52251:function(e,t,r){"use strict";r.d(t,{TO:()=>n,Td:()=>o,bO:()=>i});let n=2*Math.PI,i=180/Math.PI,o=Math.PI/180},10551:function(e,t,r){"use strict";function n(e){return e+=+(0===e),--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1}function i(e){return!(e&e-1)&&!!e}r.d(t,{U5:()=>n,f3:()=>i})},52e3:function(e,t,r){"use strict";r.d(t,{o:()=>n});class n{constructor(e,t,r){this._x=t||0,this._y=r||0,this._observer=e}clone(e){return new n(e??this._observer,this._x,this._y)}set(e=0,t=e){return(this._x!==e||this._y!==t)&&(this._x=e,this._y=t,this._observer._onUpdate(this)),this}copyFrom(e){return(this._x!==e.x||this._y!==e.y)&&(this._x=e.x,this._y=e.y,this._observer._onUpdate(this)),this}copyTo(e){return e.set(this._x,this._y),e}equals(e){return e.x===this._x&&e.y===this._y}toString(){return`[pixi.js/math:ObservablePoint x=0 y=0 scope=${this._observer}]`}get x(){return this._x}set x(e){this._x!==e&&(this._x=e,this._observer._onUpdate(this))}get y(){return this._y}set y(e){this._y!==e&&(this._y=e,this._observer._onUpdate(this))}}},58569:function(e,t,r){"use strict";r.d(t,{b:()=>n});class n{constructor(e=0,t=0){this.x=0,this.y=0,this.x=e,this.y=t}clone(){return new n(this.x,this.y)}copyFrom(e){return this.set(e.x,e.y),this}copyTo(e){return e.set(this.x,this.y),e}equals(e){return e.x===this.x&&e.y===this.y}set(e=0,t=e){return this.x=e,this.y=t,this}toString(){return`[pixi.js/math:Point x=${this.x} y=${this.y}]`}static get shared(){return i.x=0,i.y=0,i}}let i=new n},45584:function(e,t,r){"use strict";r.d(t,{M:()=>o});var n=r(58569);let i=[new n.b,new n.b,new n.b,new n.b];class o{constructor(e=0,t=0,r=0,n=0){this.type="rectangle",this.x=Number(e),this.y=Number(t),this.width=Number(r),this.height=Number(n)}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}isEmpty(){return this.left===this.right||this.top===this.bottom}static get EMPTY(){return new o(0,0,0,0)}clone(){return new o(this.x,this.y,this.width,this.height)}copyFromBounds(e){return this.x=e.minX,this.y=e.minY,this.width=e.maxX-e.minX,this.height=e.maxY-e.minY,this}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.copyFrom(this),e}contains(e,t){return!(this.width<=0)&&!(this.height<=0)&&!!(e>=this.x)&&!!(e<this.x+this.width)&&!!(t>=this.y)&&!!(t<this.y+this.height)}strokeContains(e,t,r){let{width:n,height:i}=this;if(n<=0||i<=0)return!1;let o=this.x,a=this.y,s=o-r/2,l=o+n+r/2,u=a-r/2,c=a+i+r/2,f=o+r/2,h=o+n-r/2,d=a+r/2,p=a+i-r/2;return e>=s&&e<=l&&t>=u&&t<=c&&!(e>f&&e<h&&t>d&&t<p)}intersects(e,t){if(!t){let t=this.x<e.x?e.x:this.x;if((this.right>e.right?e.right:this.right)<=t)return!1;let r=this.y<e.y?e.y:this.y;return(this.bottom>e.bottom?e.bottom:this.bottom)>r}let r=this.left,n=this.right,o=this.top,a=this.bottom;if(n<=r||a<=o)return!1;let s=i[0].set(e.left,e.top),l=i[1].set(e.left,e.bottom),u=i[2].set(e.right,e.top),c=i[3].set(e.right,e.bottom);if(u.x<=s.x||l.y<=s.y)return!1;let f=Math.sign(t.a*t.d-t.b*t.c);if(0===f||(t.apply(s,s),t.apply(l,l),t.apply(u,u),t.apply(c,c),Math.max(s.x,l.x,u.x,c.x)<=r||Math.min(s.x,l.x,u.x,c.x)>=n||Math.max(s.y,l.y,u.y,c.y)<=o||Math.min(s.y,l.y,u.y,c.y)>=a))return!1;let h=f*(l.y-s.y),d=f*(s.x-l.x),p=h*r+d*o,m=h*n+d*o,g=h*r+d*a,v=h*n+d*a;if(Math.max(p,m,g,v)<=h*s.x+d*s.y||Math.min(p,m,g,v)>=h*c.x+d*c.y)return!1;let y=f*(s.y-u.y),b=f*(u.x-s.x),x=y*r+b*o,_=y*n+b*o,w=y*r+b*a,S=y*n+b*a;return!(Math.max(x,_,w,S)<=y*s.x+b*s.y||Math.min(x,_,w,S)>=y*c.x+b*c.y)}pad(e=0,t=e){return this.x-=e,this.y-=t,this.width+=2*e,this.height+=2*t,this}fit(e){let t=Math.max(this.x,e.x),r=Math.min(this.x+this.width,e.x+e.width),n=Math.max(this.y,e.y),i=Math.min(this.y+this.height,e.y+e.height);return this.x=t,this.width=Math.max(r-t,0),this.y=n,this.height=Math.max(i-n,0),this}ceil(e=1,t=.001){let r=Math.ceil((this.x+this.width-t)*e)/e,n=Math.ceil((this.y+this.height-t)*e)/e;return this.x=Math.floor((this.x+t)*e)/e,this.y=Math.floor((this.y+t)*e)/e,this.width=r-this.x,this.height=n-this.y,this}enlarge(e){let t=Math.min(this.x,e.x),r=Math.max(this.x+this.width,e.x+e.width),n=Math.min(this.y,e.y),i=Math.max(this.y+this.height,e.y+e.height);return this.x=t,this.width=r-t,this.y=n,this.height=i-n,this}getBounds(e){return(e=e||new o).copyFrom(this),e}toString(){return`[pixi.js/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}},28022:function(e,t,r){"use strict";r.d(t,{J:()=>l});var n=r(8113),i=r(71720),o=r(9442);let a=new Float32Array(1),s=new Uint32Array(1);class l extends o.V{constructor(){const e=6,t=new n.h({data:a,label:"attribute-batch-buffer",usage:i.S.VERTEX|i.S.COPY_DST,shrinkToFit:!1}),r=new n.h({data:s,label:"index-batch-buffer",usage:i.S.INDEX|i.S.COPY_DST,shrinkToFit:!1}),o=4*e;super({attributes:{aPosition:{buffer:t,format:"float32x2",stride:o,offset:0,location:1},aUV:{buffer:t,format:"float32x2",stride:o,offset:8,location:3},aColor:{buffer:t,format:"unorm8x4",stride:o,offset:16,location:0},aTextureIdAndRound:{buffer:t,format:"uint16x2",stride:o,offset:20,location:2}},indexBuffer:r})}}},37313:function(e,t,r){"use strict";r.d(t,{w:()=>a});var n=r(52781),i=r(27633);let o={};function a(e,t){let r=0;for(let n=0;n<t;n++)r=31*r+e[n].uid>>>0;return o[r]||s(e,r)}function s(e,t){let r={},a=0;for(let t=0;t<16;t++){let n=t<e.length?e[t]:i.g.EMPTY.source;r[a++]=n.source,r[a++]=n.style}let s=new n.T(r);return o[t]=s,s}},82825:function(e,t,r){"use strict";r.d(t,{i:()=>h});var n=r(94849);class i{constructor(e){"number"==typeof e?this.rawBinaryData=new ArrayBuffer(e):e instanceof Uint8Array?this.rawBinaryData=e.buffer:this.rawBinaryData=e,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData),this.size=this.rawBinaryData.byteLength}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}get float64View(){return this._float64Array||(this._float64Array=new Float64Array(this.rawBinaryData)),this._float64Array}get bigUint64View(){return this._bigUint64Array||(this._bigUint64Array=new BigUint64Array(this.rawBinaryData)),this._bigUint64Array}view(e){return this[`${e}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this.uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(e){switch(e){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw Error(`${e} isn't a valid view type`)}}}var o=r(51364),a=r(70673);function s(e,t){return"no-premultiply-alpha"===t.alphaMode&&a.Q[e]||e}class l{constructor(){this.ids=Object.create(null),this.textures=[],this.count=0}clear(){for(let e=0;e<this.count;e++){let t=this.textures[e];this.textures[e]=null,this.ids[t.uid]=null}this.count=0}}class u{constructor(){this.renderPipeId="batch",this.action="startBatch",this.start=0,this.size=0,this.blendMode="normal",this.canBundle=!0}destroy(){this.textures=null,this.gpuBindGroup=null,this.bindGroup=null,this.batcher=null}}let c=0,f=class e{constructor(t={}){this.uid=(0,n.L)("batcher"),this.dirty=!0,this.batchIndex=0,this.batches=[],this._vertexSize=6,this._elements=[],this._batchPool=[],this._batchPoolIndex=0,this._textureBatchPool=[],this._textureBatchPoolIndex=0;const{vertexSize:r,indexSize:o}=t={...e.defaultOptions,...t};this.attributeBuffer=new i(r*this._vertexSize*4),this.indexBuffer=new Uint16Array(o)}begin(){this.batchIndex=0,this.elementSize=0,this.elementStart=0,this.indexSize=0,this.attributeSize=0,this._batchPoolIndex=0,this._textureBatchPoolIndex=0,this._batchIndexStart=0,this._batchIndexSize=0,this.dirty=!0}add(e){this._elements[this.elementSize++]=e,e.indexStart=this.indexSize,e.location=this.attributeSize,e.batcher=this,this.indexSize+=e.indexSize,this.attributeSize+=e.vertexSize*this._vertexSize}checkAndUpdateTexture(e,t){let r=e.batch.textures.ids[t._source.uid];return(!!r||0===r)&&(e.textureId=r,e.texture=t,!0)}updateElement(e){this.dirty=!0,e.packAttributes(this.attributeBuffer.float32View,this.attributeBuffer.uint32View,e.location,e.textureId)}break(e){let t=this._elements,r=this._textureBatchPool[this._textureBatchPoolIndex++]||new l;if(r.clear(),!t[this.elementStart])return;let n=t[this.elementStart],i=s(n.blendMode,n.texture._source);4*this.attributeSize>this.attributeBuffer.size&&this._resizeAttributeBuffer(4*this.attributeSize),this.indexSize>this.indexBuffer.length&&this._resizeIndexBuffer(this.indexSize);let o=this.attributeBuffer.float32View,a=this.attributeBuffer.uint32View,f=this.indexBuffer,h=this._batchIndexSize,d=this._batchIndexStart,p="startBatch",m=this._batchPool[this._batchPoolIndex++]||new u;for(let n=this.elementStart;n<this.elementSize;++n){let g=t[n];t[n]=null;let v=g.texture._source,y=s(g.blendMode,v),b=i!==y;if(v._batchTick===c&&!b){g.textureId=v._textureBindLocation,h+=g.indexSize,g.packAttributes(o,a,g.location,g.textureId),g.packIndex(f,g.indexStart,g.location/this._vertexSize),g.batch=m;continue}v._batchTick=c,(r.count>=16||b)&&(this._finishBatch(m,d,h-d,r,i,e,p),p="renderBatch",d=h,i=y,(r=this._textureBatchPool[this._textureBatchPoolIndex++]||new l).clear(),m=this._batchPool[this._batchPoolIndex++]||new u,++c),g.textureId=v._textureBindLocation=r.count,r.ids[v.uid]=r.count,r.textures[r.count++]=v,g.batch=m,h+=g.indexSize,g.packAttributes(o,a,g.location,g.textureId),g.packIndex(f,g.indexStart,g.location/this._vertexSize)}r.count>0&&(this._finishBatch(m,d,h-d,r,i,e,p),d=h,++c),this.elementStart=this.elementSize,this._batchIndexStart=d,this._batchIndexSize=h}_finishBatch(e,t,r,n,i,o,a){e.gpuBindGroup=null,e.action=a,e.batcher=this,e.textures=n,e.blendMode=i,e.start=t,e.size=r,++c,o.add(e)}finish(e){this.break(e)}ensureAttributeBuffer(e){4*e<=this.attributeBuffer.size||this._resizeAttributeBuffer(4*e)}ensureIndexBuffer(e){e<=this.indexBuffer.length||this._resizeIndexBuffer(e)}_resizeAttributeBuffer(e){let t=new i(Math.max(e,2*this.attributeBuffer.size));(0,o.W)(this.attributeBuffer.rawBinaryData,t.rawBinaryData),this.attributeBuffer=t}_resizeIndexBuffer(e){let t=this.indexBuffer,r=Math.max(e,1.5*t.length);r+=r%2;let n=r>65535?new Uint32Array(r):new Uint16Array(r);if(n.BYTES_PER_ELEMENT!==t.BYTES_PER_ELEMENT)for(let e=0;e<t.length;e++)n[e]=t[e];else(0,o.W)(t.buffer,n.buffer);this.indexBuffer=n}destroy(){for(let e=0;e<this.batches.length;e++)this.batches[e].destroy();this.batches=null;for(let e=0;e<this._elements.length;e++)this._elements[e].batch=null;this._elements=null,this.indexBuffer=null,this.attributeBuffer.destroy(),this.attributeBuffer=null}};f.defaultOptions={vertexSize:4,indexSize:6};let h=f},93740:function(e,t,r){"use strict";var n=r(43071),i=r(97088),o=r(46904),a=r(92151);let s=new o.c;function l(e,t,r){let n=s;e.measurable=!0,(0,a.fB)(e,r,n),t.addBoundsMask(n),e.measurable=!1}var u=r(99625),c=r(23268),f=r(86840);function h(e,t,r){let n=c.o.get();e.measurable=!0;let i=c.u.get().identity(),o=d(e,r,i);(0,u.n)(e,n,o),e.measurable=!1,t.addBoundsMask(n),c.u.return(i),c.o.return(n)}function d(e,t,r){return e?e!==t&&(d(e.parent,t,r),e.updateLocalTransform(),r.append(e.localTransform)):(0,f.R)("Mask bounds, renderable is not inside the root container"),r}class p{constructor(e){this.priority=0,this.pipe="alphaMask",e?.mask&&this.init(e.mask)}init(e){this.mask=e,this.renderMaskToTexture=!(e instanceof i.k),this.mask.renderable=this.renderMaskToTexture,this.mask.includeInBuild=!this.renderMaskToTexture,this.mask.measurable=!1}reset(){this.mask.measurable=!0,this.mask=null}addBounds(e,t){l(this.mask,e,t)}addLocalBounds(e,t){h(this.mask,e,t)}containsPoint(e,t){return t(this.mask,e)}destroy(){this.reset()}static test(e){return e instanceof i.k}}p.extension=n.Ag.MaskEffect;class m{constructor(e){this.priority=0,this.pipe="colorMask",e?.mask&&this.init(e.mask)}init(e){this.mask=e}destroy(){}static test(e){return"number"==typeof e}}m.extension=n.Ag.MaskEffect;var g=r(21873);class v{constructor(e){this.priority=0,this.pipe="stencilMask",e?.mask&&this.init(e.mask)}init(e){this.mask=e,this.mask.includeInBuild=!1,this.mask.measurable=!1}reset(){this.mask.measurable=!0,this.mask.includeInBuild=!0,this.mask=null}addBounds(e,t){l(this.mask,e,t)}addLocalBounds(e,t){h(this.mask,e,t)}containsPoint(e,t){return t(this.mask,e)}destroy(){this.reset()}static test(e){return e instanceof g.mc}}v.extension=n.Ag.MaskEffect;var y=r(73546),b=r(30040),x=r(32617),_=r(98327);r(73281),n.XO.add(p,m,v,_.$,x.b,b.q,y.P)},5448:function(e,t,r){"use strict";r.d(t,{z:()=>c});var n=r(43071),i=r(35843),o=r(89386),a=r(5787),s=r(73334);function l(e,t){let r=Math.max(o.K[e.data.type]/16,1),n=e.data.value.length/e.data.size,i=(4-n%4)%4;return`
|
|
357
357
|
v = uv.${e.data.name};
|
|
358
358
|
offset += ${t};
|
|
359
359
|
|
|
@@ -636,9 +636,9 @@ ${e}`:e}},h=Object.create(null),d=class e{constructor(t){const r=-1!==(t={...e.d
|
|
|
636
636
|
cv[2] = v.blue;
|
|
637
637
|
gl.uniform3f(ud[name].location, v.red, v.green, v.blue);
|
|
638
638
|
}
|
|
639
|
-
`}]},21447:function(e,t,r){"use strict";r.d(t,{U:()=>f});let n={normal:0,add:1,multiply:2,screen:3,overlay:4,erase:5,"normal-npm":6,"add-npm":7,"screen-npm":8},i=0,o=1,a=2,s=3,l=4,u=5,c=class e{constructor(){this.data=0,this.blendMode="normal",this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<i)}set blend(e){!!(this.data&1<<i)!==e&&(this.data^=1<<i)}get offsets(){return!!(this.data&1<<o)}set offsets(e){!!(this.data&1<<o)!==e&&(this.data^=1<<o)}set cullMode(e){if("none"===e){this.culling=!1;return}this.culling=!0,this.clockwiseFrontFace="front"===e}get cullMode(){return this.culling?this.clockwiseFrontFace?"front":"back":"none"}get culling(){return!!(this.data&1<<a)}set culling(e){!!(this.data&1<<a)!==e&&(this.data^=1<<a)}get depthTest(){return!!(this.data&1<<s)}set depthTest(e){!!(this.data&1<<s)!==e&&(this.data^=1<<s)}get depthMask(){return!!(this.data&1<<u)}set depthMask(e){!!(this.data&1<<u)!==e&&(this.data^=1<<u)}get clockwiseFrontFace(){return!!(this.data&1<<l)}set clockwiseFrontFace(e){!!(this.data&1<<l)!==e&&(this.data^=1<<l)}get blendMode(){return this._blendMode}set blendMode(e){this.blend="none"!==e,this._blendMode=e,this._blendModeId=n[e]||0}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}toString(){return`[pixi.js/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`}static for2d(){let t=new e;return t.depthTest=!1,t.blend=!0,t}};c.default2d=c.for2d();let f=c},70673:function(e,t,r){"use strict";let n;r.d(t,{K:()=>o,Q:()=>i});let i={normal:"normal-npm",add:"add-npm",screen:"screen-npm"};var o=((n=o||{})[n.DISABLED=0]="DISABLED",n[n.RENDERING_MASK_ADD=1]="RENDERING_MASK_ADD",n[n.MASK_ACTIVE=2]="MASK_ACTIVE",n[n.RENDERING_MASK_REMOVE=3]="RENDERING_MASK_REMOVE",n[n.NONE=4]="NONE",n)},11075:function(e,t,r){"use strict";r.d(t,{k:()=>h});var n=r(51170),i=r(21873),o=r(30877),a=r(55746),s=r(68181),l=r(57949),u=r(60588);let c=["init","destroy","contextChange","resolutionChange","reset","renderEnd","renderStart","render","update","postrender","prerender"],f=class e extends u.A{constructor(e){super(),this.runners=Object.create(null),this.renderPipes=Object.create(null),this._initOptions={},this._systemsHash=Object.create(null),this.type=e.type,this.name=e.name;const t=[...c,...e.runners??[]];this._addRunners(...t),this._addSystems(e.systems),this._addPipes(e.renderPipes,e.renderPipeAdaptors),this._unsafeEvalCheck()}async init(t={}){for(let e in this._systemsHash)t={...this._systemsHash[e].constructor.defaultOptions,...t};t={...e.defaultOptions,...t},this._roundPixels=+!!t.roundPixels;for(let e=0;e<this.runners.init.items.length;e++)await this.runners.init.items[e].init(t);this._initOptions=t}render(e,t){let r=e;if(r instanceof i.mc&&(r={container:r},t&&((0,a.t)("8.0.0","passing a second argument is deprecated, please use render options instead"),r.target=t.renderTexture)),r.target||(r.target=this.view.renderTarget),r.target===this.view.renderTarget&&(this._lastObjectRendered=r.container,r.clearColor=this.background.colorRgba),r.clearColor){let e=Array.isArray(r.clearColor)&&4===r.clearColor.length;r.clearColor=e?r.clearColor:n.Q.shared.setValue(r.clearColor).toArray()}r.transform||(r.container.updateLocalTransform(),r.transform=r.container.localTransform),this.runners.prerender.emit(r),this.runners.renderStart.emit(r),this.runners.render.emit(r),this.runners.renderEnd.emit(r),this.runners.postrender.emit(r)}resize(e,t,r){this.view.resize(e,t,r),this.emit("resize",this.view.screen.width,this.view.screen.height)}clear(e={}){let t=this;e.target||(e.target=t.renderTarget.renderTarget),e.clearColor||(e.clearColor=this.background.colorRgba),e.clear??(e.clear=s.u.ALL);let{clear:r,clearColor:i,target:o}=e;n.Q.shared.setValue(i??this.background.colorRgba),t.renderTarget.clear(o,r,n.Q.shared.toArray())}get resolution(){return this.view.resolution}set resolution(e){this.view.resolution=e,this.runners.resolutionChange.emit(e)}get width(){return this.view.texture.frame.width}get height(){return this.view.texture.frame.height}get canvas(){return this.view.canvas}get lastObjectRendered(){return this._lastObjectRendered}get renderingToScreen(){let e=this;return e.renderTarget.renderingToScreen}get screen(){return this.view.screen}_addRunners(...e){e.forEach(e=>{this.runners[e]=new l.C(e)})}_addSystems(e){let t;for(t in e){let r=e[t];this._addSystem(r.value,r.name)}}_addSystem(e,t){let r=new e(this);if(this[t])throw Error(`Whoops! The name "${t}" is already in use`);for(let e in this[t]=r,this._systemsHash[t]=r,this.runners)this.runners[e].add(r);return this}_addPipes(e,t){let r=t.reduce((e,t)=>(e[t.name]=t.value,e),{});e.forEach(e=>{let t=e.value,n=e.name,i=r[n];this.renderPipes[n]=new t(this,i?new i:null)})}destroy(e=!1){this.runners.destroy.items.reverse(),this.runners.destroy.emit(e),Object.values(this.runners).forEach(e=>{e.destroy()}),this._systemsHash=null,this.renderPipes=null}generateTexture(e){return this.textureGenerator.generateTexture(e)}get roundPixels(){return!!this._roundPixels}_unsafeEvalCheck(){if(!(0,o.f)())throw Error("Current environment does not allow unsafe-eval, please use pixi.js/unsafe-eval module to enable support.")}};f.defaultOptions={resolution:1,failIfMajorPerformanceCaveat:!1,roundPixels:!1};let h=f},57949:function(e,t,r){"use strict";r.d(t,{C:()=>n});class n{constructor(e){this.items=[],this._name=e}emit(e,t,r,n,i,o,a,s){let{name:l,items:u}=this;for(let c=0,f=u.length;c<f;c++)u[c][l](e,t,r,n,i,o,a,s);return this}add(e){return e[this._name]&&(this.remove(e),this.items.push(e)),this}remove(e){let t=this.items.indexOf(e);return -1!==t&&this.items.splice(t,1),this}contains(e){return -1!==this.items.indexOf(e)}removeAll(){return this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return 0===this.items.length}get name(){return this._name}}},27633:function(e,t,r){"use strict";r.d(t,{g:()=>x});var n=r(60588),i=r(96253);let o=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],a=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],s=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],l=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],u=[],c=[],f=Math.sign;!function(){for(let e=0;e<16;e++){let t=[];u.push(t);for(let r=0;r<16;r++){let n=f(o[e]*o[r]+s[e]*a[r]),i=f(a[e]*o[r]+l[e]*a[r]),u=f(o[e]*s[r]+s[e]*l[r]),c=f(a[e]*s[r]+l[e]*l[r]);for(let e=0;e<16;e++)if(o[e]===n&&a[e]===i&&s[e]===u&&l[e]===c){t.push(e);break}}}for(let e=0;e<16;e++){let t=new i.u;t.set(o[e],a[e],s[e],l[e],0,0),c.push(t)}}();let h={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:e=>o[e],uY:e=>a[e],vX:e=>s[e],vY:e=>l[e],inv:e=>8&e?15&e:7&-e,add:(e,t)=>u[e][t],sub:(e,t)=>u[e][h.inv(t)],rotate180:e=>4^e,isVertical:e=>(3&e)==2,byDirection:(e,t)=>2*Math.abs(e)<=Math.abs(t)?t>=0?h.S:h.N:2*Math.abs(t)<=Math.abs(e)?e>0?h.E:h.W:t>0?e>0?h.SE:h.SW:e>0?h.NE:h.NW,matrixAppendRotationInv:(e,t,r=0,n=0)=>{let i=c[h.inv(t)];i.tx=r,i.ty=n,e.append(i)}};var d=r(45584),p=r(94849),m=r(55746);let g=()=>{};var v=r(73546),y=r(83257),b=r(99880);class x extends n.A{constructor({source:e,label:t,frame:r,orig:n,trim:i,defaultAnchor:o,defaultBorders:a,rotate:s,dynamic:l}={}){if(super(),this.uid=(0,p.L)("texture"),this.uvs={x0:0,y0:0,x1:0,y1:0,x2:0,y2:0,x3:0,y3:0},this.frame=new d.M,this.noFrame=!1,this.dynamic=!1,this.isTexture=!0,this.label=t,this.source=e?.source??new y.v,this.noFrame=!r,r)this.frame.copyFrom(r);else{const{width:e,height:t}=this._source;this.frame.width=e,this.frame.height=t}this.orig=n||this.frame,this.trim=i,this.rotate=s??0,this.defaultAnchor=o,this.defaultBorders=a,this.destroyed=!1,this.dynamic=l||!1,this.updateUvs()}set source(e){this._source&&this._source.off("resize",this.update,this),this._source=e,e.on("resize",this.update,this),this.emit("update",this)}get source(){return this._source}get textureMatrix(){return this._textureMatrix||(this._textureMatrix=new b.N(this)),this._textureMatrix}get width(){return this.orig.width}get height(){return this.orig.height}updateUvs(){let{uvs:e,frame:t}=this,{width:r,height:n}=this._source,i=t.x/r,o=t.y/n,a=t.width/r,s=t.height/n,l=this.rotate;if(l){let t=a/2,r=s/2,n=i+t,u=o+r;l=h.add(l,h.NW),e.x0=n+t*h.uX(l),e.y0=u+r*h.uY(l),l=h.add(l,2),e.x1=n+t*h.uX(l),e.y1=u+r*h.uY(l),l=h.add(l,2),e.x2=n+t*h.uX(l),e.y2=u+r*h.uY(l),l=h.add(l,2),e.x3=n+t*h.uX(l),e.y3=u+r*h.uY(l)}else e.x0=i,e.y0=o,e.x1=i+a,e.y1=o,e.x2=i+a,e.y2=o+s,e.x3=i,e.y3=o+s}destroy(e=!1){this._source&&e&&(this._source.destroy(),this._source=null),this._textureMatrix=null,this.destroyed=!0,this.emit("destroy",this),this.removeAllListeners()}update(){this.noFrame&&(this.frame.width=this._source.width,this.frame.height=this._source.height),this.updateUvs(),this.emit("update",this)}get baseTexture(){return(0,m.t)("8.0.0","Texture.baseTexture is now Texture.source"),this._source}}x.EMPTY=new x({label:"EMPTY",source:new y.v({label:"EMPTY"})}),x.EMPTY.destroy=g,x.WHITE=new x({source:new v.P({resource:new Uint8Array([255,255,255,255]),width:1,height:1,alphaMode:"premultiply-alpha-on-upload",label:"WHITE"}),label:"WHITE"}),x.WHITE.destroy=g},99880:function(e,t,r){"use strict";r.d(t,{N:()=>o});var n=r(96253);let i=new n.u;class o{constructor(e,t){this.mapCoord=new n.u,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,void 0===t?this.clampMargin=e.width<10?0:.5:this.clampMargin=t,this.isSimple=!1,this.texture=e}get texture(){return this._texture}set texture(e){this.texture!==e&&(this._texture?.removeListener("update",this.update,this),this._texture=e,this._texture.addListener("update",this.update,this),this.update())}multiplyUvs(e,t){void 0===t&&(t=e);let r=this.mapCoord;for(let n=0;n<e.length;n+=2){let i=e[n],o=e[n+1];t[n]=i*r.a+o*r.c+r.tx,t[n+1]=i*r.b+o*r.d+r.ty}return t}update(){let e=this._texture;this._updateID++;let t=e.uvs;this.mapCoord.set(t.x1-t.x0,t.y1-t.y0,t.x3-t.x0,t.y3-t.y0,t.x0,t.y0);let r=e.orig,n=e.trim;n&&(i.set(r.width/n.width,0,0,r.height/n.height,-n.x/n.width,-n.y/n.height),this.mapCoord.append(i));let o=e.source,a=this.uClampFrame,s=this.clampMargin/o._resolution,l=this.clampOffset;return a[0]=(e.frame.x+s+l)/o.width,a[1]=(e.frame.y+s+l)/o.height,a[2]=(e.frame.x+e.frame.width-s+l)/o.width,a[3]=(e.frame.y+e.frame.height-s+l)/o.height,this.uClampOffset[0]=l/o.pixelWidth,this.uClampOffset[1]=l/o.pixelHeight,this.isSimple=e.frame.width===o.width&&e.frame.height===o.height&&0===e.rotate,!0}}},73097:function(e,t,r){"use strict";r.d(t,{W:()=>l});var n=r(10551),i=r(83257),o=r(27633);let a=0;class s{constructor(e){this._poolKeyHash=Object.create(null),this._texturePool={},this.textureOptions=e||{},this.enableFullScreen=!1}createTexture(e,t,r){let n=new i.v({...this.textureOptions,width:e,height:t,resolution:1,antialias:r,autoGarbageCollect:!0});return new o.g({source:n,label:`texturePool_${a++}`})}getOptimalTexture(e,t,r=1,i){let o=Math.ceil(e*r-1e-6),a=Math.ceil(t*r-1e-6),s=((o=(0,n.U5)(o))<<17)+((a=(0,n.U5)(a))<<1)+ +!!i;this._texturePool[s]||(this._texturePool[s]=[]);let l=this._texturePool[s].pop();return l||(l=this.createTexture(o,a,i)),l.source._resolution=r,l.source.width=o/r,l.source.height=a/r,l.source.pixelWidth=o,l.source.pixelHeight=a,l.frame.x=0,l.frame.y=0,l.frame.width=e,l.frame.height=t,l.updateUvs(),this._poolKeyHash[l.uid]=s,l}getSameSizeTexture(e,t=!1){let r=e.source;return this.getOptimalTexture(e.width,e.height,r._resolution,t)}returnTexture(e){let t=this._poolKeyHash[e.uid];this._texturePool[t].push(e)}clear(e){if(e=!1!==e)for(let e in this._texturePool){let t=this._texturePool[e];if(t)for(let e=0;e<t.length;e++)t[e].destroy(!0)}this._texturePool={}}}let l=new s},79462:function(e,t,r){"use strict";r.d(t,{n:()=>u});var n=r(60588),i=r(94849),o=r(55746);let a=Object.create(null);function s(e){let t=a[e];return void 0===t&&(a[e]=(0,i.L)("resource")),t}let l=class e extends n.A{constructor(t={}){super(),this._resourceType="textureSampler",this._touched=0,this._maxAnisotropy=1,this.destroyed=!1,t={...e.defaultOptions,...t},this.addressMode=t.addressMode,this.addressModeU=t.addressModeU??this.addressModeU,this.addressModeV=t.addressModeV??this.addressModeV,this.addressModeW=t.addressModeW??this.addressModeW,this.scaleMode=t.scaleMode,this.magFilter=t.magFilter??this.magFilter,this.minFilter=t.minFilter??this.minFilter,this.mipmapFilter=t.mipmapFilter??this.mipmapFilter,this.lodMinClamp=t.lodMinClamp,this.lodMaxClamp=t.lodMaxClamp,this.compare=t.compare,this.maxAnisotropy=t.maxAnisotropy??1}set addressMode(e){this.addressModeU=e,this.addressModeV=e,this.addressModeW=e}get addressMode(){return this.addressModeU}set wrapMode(e){(0,o.t)("8.0.0","TextureStyle.wrapMode is now TextureStyle.addressMode"),this.addressMode=e}get wrapMode(){return this.addressMode}set scaleMode(e){this.magFilter=e,this.minFilter=e,this.mipmapFilter=e}get scaleMode(){return this.magFilter}set maxAnisotropy(e){this._maxAnisotropy=Math.min(e,16),this._maxAnisotropy>1&&(this.scaleMode="linear")}get maxAnisotropy(){return this._maxAnisotropy}get _resourceId(){return this._sharedResourceId||this._generateResourceId()}update(){this.emit("change",this),this._sharedResourceId=null}_generateResourceId(){let e=`${this.addressModeU}-${this.addressModeV}-${this.addressModeW}-${this.magFilter}-${this.minFilter}-${this.mipmapFilter}-${this.lodMinClamp}-${this.lodMaxClamp}-${this.compare}-${this._maxAnisotropy}`;return this._sharedResourceId=s(e),this._resourceId}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this.removeAllListeners()}};l.defaultOptions={addressMode:"clamp-to-edge",scaleMode:"linear"};let u=l},73546:function(e,t,r){"use strict";r.d(t,{P:()=>o});var n=r(43071),i=r(83257);class o extends i.v{constructor(e){const t=e.resource||new Float32Array(e.width*e.height*4);let r=e.format;r||(t instanceof Float32Array?r="rgba32float":t instanceof Int32Array||t instanceof Uint32Array?r="rgba32uint":t instanceof Int16Array||t instanceof Uint16Array?r="rgba16uint":(Int8Array,r="bgra8unorm")),super({...e,resource:t,format:r}),this.uploadMethodId="buffer"}static test(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array}}o.extension=n.Ag.TextureSource},30040:function(e,t,r){"use strict";r.d(t,{q:()=>a});var n=r(98370),i=r(43071),o=r(83257);class a extends o.v{constructor(e){e.resource||(e.resource=n.e.get().createCanvas()),!e.width&&(e.width=e.resource.width,e.autoDensity||(e.width/=e.resolution)),!e.height&&(e.height=e.resource.height,e.autoDensity||(e.height/=e.resolution)),super(e),this.uploadMethodId="image",this.autoDensity=e.autoDensity;const t=e.resource;(this.pixelWidth!==t.width||this.pixelWidth!==t.height)&&this.resizeCanvas(),this.transparent=!!e.transparent}resizeCanvas(){this.autoDensity&&(this.resource.style.width=`${this.width}px`,this.resource.style.height=`${this.height}px`),(this.resource.width!==this.pixelWidth||this.resource.height!==this.pixelHeight)&&(this.resource.width=this.pixelWidth,this.resource.height=this.pixelHeight)}resize(e=this.width,t=this.height,r=this._resolution){let n=super.resize(e,t,r);return n&&this.resizeCanvas(),n}static test(e){return globalThis.HTMLCanvasElement&&e instanceof HTMLCanvasElement||globalThis.OffscreenCanvas&&e instanceof OffscreenCanvas}}a.extension=i.Ag.TextureSource},32617:function(e,t,r){"use strict";r.d(t,{b:()=>s});var n=r(98370),i=r(43071),o=r(86840),a=r(83257);class s extends a.v{constructor(e){if(e.resource&&globalThis.HTMLImageElement&&e.resource instanceof HTMLImageElement){const t=n.e.get().createCanvas(e.resource.width,e.resource.height);t.getContext("2d").drawImage(e.resource,0,0),e.resource=t,(0,o.R)("ImageSource: Image element passed, converting to canvas. Use CanvasSource instead.")}super(e),this.uploadMethodId="image",this.autoGarbageCollect=!0}static test(e){return globalThis.HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}}s.extension=i.Ag.TextureSource},83257:function(e,t,r){"use strict";r.d(t,{v:()=>u});var n=r(60588),i=r(10551);function o(e){let t={};for(let r in e)void 0!==e[r]&&(t[r]=e[r]);return t}var a=r(94849),s=r(79462);let l=class e extends n.A{constructor(t={}){super(),this.options=t,this.uid=(0,a.L)("textureSource"),this._resourceType="textureSource",this._resourceId=(0,a.L)("resource"),this.uploadMethodId="unknown",this._resolution=1,this.pixelWidth=1,this.pixelHeight=1,this.width=1,this.height=1,this.sampleCount=1,this.mipLevelCount=1,this.autoGenerateMipmaps=!1,this.format="rgba8unorm",this.dimension="2d",this.antialias=!1,this._touched=0,this._batchTick=-1,this._textureBindLocation=-1,t={...e.defaultOptions,...t},this.label=t.label??"",this.resource=t.resource,this.autoGarbageCollect=t.autoGarbageCollect,this._resolution=t.resolution,t.width?this.pixelWidth=t.width*this._resolution:this.pixelWidth=this.resource?this.resourceWidth??1:1,t.height?this.pixelHeight=t.height*this._resolution:this.pixelHeight=this.resource?this.resourceHeight??1:1,this.width=this.pixelWidth/this._resolution,this.height=this.pixelHeight/this._resolution,this.format=t.format,this.dimension=t.dimensions,this.mipLevelCount=t.mipLevelCount,this.autoGenerateMipmaps=t.autoGenerateMipmaps,this.sampleCount=t.sampleCount,this.antialias=t.antialias,this.alphaMode=t.alphaMode,this.style=new s.n(o(t)),this.destroyed=!1,this._refreshPOT()}get source(){return this}get style(){return this._style}set style(e){this.style!==e&&(this._style?.off("change",this._onStyleChange,this),this._style=e,this._style?.on("change",this._onStyleChange,this),this._onStyleChange())}get addressMode(){return this._style.addressMode}set addressMode(e){this._style.addressMode=e}get repeatMode(){return this._style.addressMode}set repeatMode(e){this._style.addressMode=e}get magFilter(){return this._style.magFilter}set magFilter(e){this._style.magFilter=e}get minFilter(){return this._style.minFilter}set minFilter(e){this._style.minFilter=e}get mipmapFilter(){return this._style.mipmapFilter}set mipmapFilter(e){this._style.mipmapFilter=e}get lodMinClamp(){return this._style.lodMinClamp}set lodMinClamp(e){this._style.lodMinClamp=e}get lodMaxClamp(){return this._style.lodMaxClamp}set lodMaxClamp(e){this._style.lodMaxClamp=e}_onStyleChange(){this.emit("styleChange",this)}update(){if(this.resource){let e=this._resolution;if(this.resize(this.resourceWidth/e,this.resourceHeight/e))return}this.emit("update",this)}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this._style&&(this._style.destroy(),this._style=null),this.uploadMethodId=null,this.resource=null,this.removeAllListeners()}unload(){this._resourceId=(0,a.L)("resource"),this.emit("change",this),this.emit("unload",this)}get resourceWidth(){let{resource:e}=this;return e.naturalWidth||e.videoWidth||e.displayWidth||e.width}get resourceHeight(){let{resource:e}=this;return e.naturalHeight||e.videoHeight||e.displayHeight||e.height}get resolution(){return this._resolution}set resolution(e){this._resolution!==e&&(this._resolution=e,this.width=this.pixelWidth/e,this.height=this.pixelHeight/e)}resize(e,t,r){r=r||this._resolution,e=e||this.width,t=t||this.height;let n=Math.round(e*r),i=Math.round(t*r);return this.width=n/r,this.height=i/r,this._resolution=r,(this.pixelWidth!==n||this.pixelHeight!==i)&&(this._refreshPOT(),this.pixelWidth=n,this.pixelHeight=i,this.emit("resize",this),this._resourceId=(0,a.L)("resource"),this.emit("change",this),!0)}updateMipmaps(){this.autoGenerateMipmaps&&this.mipLevelCount>1&&this.emit("updateMipmaps",this)}set wrapMode(e){this._style.wrapMode=e}get wrapMode(){return this._style.wrapMode}set scaleMode(e){this._style.scaleMode=e}get scaleMode(){return this._style.scaleMode}_refreshPOT(){this.isPowerOfTwo=(0,i.f3)(this.pixelWidth)&&(0,i.f3)(this.pixelHeight)}static test(e){throw Error("Unimplemented")}};l.defaultOptions={resolution:1,format:"bgra8unorm",alphaMode:"premultiply-alpha-on-upload",dimensions:"2d",mipLevelCount:1,autoGenerateMipmaps:!1,sampleCount:1,antialias:!1,autoGarbageCollect:!1};let u=l},98327:function(e,t,r){"use strict";r.d(t,{$:()=>l});var n=r(43071),i=r(4366),o=r(17326),a=r(83257);let s=class e extends a.v{constructor(t){super(t),this.isReady=!1,this.uploadMethodId="video",t={...e.defaultOptions,...t},this._autoUpdate=!0,this._isConnectedToTicker=!1,this._updateFPS=t.updateFPS||0,this._msToNextUpdate=0,this.autoPlay=!1!==t.autoPlay,this.alphaMode=t.alphaMode??"premultiply-alpha-on-upload",this._videoFrameRequestCallback=this._videoFrameRequestCallback.bind(this),this._videoFrameRequestCallbackHandle=null,this._load=null,this._resolve=null,this._reject=null,this._onCanPlay=this._onCanPlay.bind(this),this._onCanPlayThrough=this._onCanPlayThrough.bind(this),this._onError=this._onError.bind(this),this._onPlayStart=this._onPlayStart.bind(this),this._onPlayStop=this._onPlayStop.bind(this),this._onSeeked=this._onSeeked.bind(this),!1!==t.autoLoad&&this.load()}updateFrame(){if(!this.destroyed){if(this._updateFPS){let e=i.R.shared.elapsedMS*this.resource.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-e)}(!this._updateFPS||this._msToNextUpdate<=0)&&(this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0),this.isValid&&this.update()}}_videoFrameRequestCallback(){this.updateFrame(),this.destroyed?this._videoFrameRequestCallbackHandle=null:this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback)}get isValid(){return!!this.resource.videoWidth&&!!this.resource.videoHeight}async load(){if(this._load)return this._load;let e=this.resource,t=this.options;return(e.readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=!0),e.addEventListener("play",this._onPlayStart),e.addEventListener("pause",this._onPlayStop),e.addEventListener("seeked",this._onSeeked),this._isSourceReady()?this._mediaReady():(t.preload||e.addEventListener("canplay",this._onCanPlay),e.addEventListener("canplaythrough",this._onCanPlayThrough),e.addEventListener("error",this._onError,!0)),this.alphaMode=await (0,o.C)(),this._load=new Promise((r,n)=>{this.isValid?r(this):(this._resolve=r,this._reject=n,void 0!==t.preloadTimeoutMs&&(this._preloadTimeout=setTimeout(()=>{this._onError(new ErrorEvent(`Preload exceeded timeout of ${t.preloadTimeoutMs}ms`))})),e.load())}),this._load}_onError(e){this.resource.removeEventListener("error",this._onError,!0),this.emit("error",e),this._reject&&(this._reject(e),this._reject=null,this._resolve=null)}_isSourcePlaying(){let e=this.resource;return!e.paused&&!e.ended}_isSourceReady(){return this.resource.readyState>2}_onPlayStart(){this.isValid||this._mediaReady(),this._configureAutoUpdate()}_onPlayStop(){this._configureAutoUpdate()}_onSeeked(){this._autoUpdate&&!this._isSourcePlaying()&&(this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0)}_onCanPlay(){this.resource.removeEventListener("canplay",this._onCanPlay),this._mediaReady()}_onCanPlayThrough(){this.resource.removeEventListener("canplaythrough",this._onCanPlay),this._preloadTimeout&&(clearTimeout(this._preloadTimeout),this._preloadTimeout=void 0),this._mediaReady()}_mediaReady(){let e=this.resource;this.isValid&&(this.isReady=!0,this.resize(e.videoWidth,e.videoHeight)),this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0,this._resolve&&(this._resolve(this),this._resolve=null,this._reject=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.resource.play()}destroy(){this._configureAutoUpdate();let e=this.resource;e&&(e.removeEventListener("play",this._onPlayStart),e.removeEventListener("pause",this._onPlayStop),e.removeEventListener("seeked",this._onSeeked),e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlayThrough),e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),super.destroy()}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,this._configureAutoUpdate())}get updateFPS(){return this._updateFPS}set updateFPS(e){e!==this._updateFPS&&(this._updateFPS=e,this._configureAutoUpdate())}_configureAutoUpdate(){this._autoUpdate&&this._isSourcePlaying()?!this._updateFPS&&this.resource.requestVideoFrameCallback?(this._isConnectedToTicker&&(i.R.shared.remove(this.updateFrame,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0),null===this._videoFrameRequestCallbackHandle&&(this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback))):(null!==this._videoFrameRequestCallbackHandle&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker||(i.R.shared.add(this.updateFrame,this),this._isConnectedToTicker=!0,this._msToNextUpdate=0)):(null!==this._videoFrameRequestCallbackHandle&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(i.R.shared.remove(this.updateFrame,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0))}static test(e){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||globalThis.VideoFrame&&e instanceof VideoFrame}};s.extension=n.Ag.TextureSource,s.defaultOptions={...a.v.defaultOptions,autoLoad:!0,autoPlay:!0,updateFPS:0,crossorigin:!0,loop:!1,muted:!0,playsinline:!0,preload:!1},s.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};let l=s},50209:function(e,t,r){"use strict";r.d(t,{c:()=>a});var n=r(30040),i=r(27633);let o=new Map;function a(e,t){if(!o.has(e)){let r=new i.g({source:new n.q({resource:e,...t})}),a=()=>{o.get(e)===r&&o.delete(e)};r.once("destroy",a),r.source.once("destroy",a),o.set(e,r)}return o.get(e)}},73281:function(e,t,r){"use strict";var n=r(8623),i=r(43071),o=r(83257),a=r(27633);let s=[];function l(e={}){let t=e&&e.resource,r=t?e.resource:e,n=t?e:{resource:e};for(let e=0;e<s.length;e++){let t=s[e];if(t.test(r))return new t(n)}throw Error(`Could not find a source type for resource: ${n.resource}`)}function u(e={},t=!1){let r=e&&e.resource,i=r?e.resource:e,o=r?e:{resource:e};if(!t&&n.l.has(i))return n.l.get(i);let s=new a.g({source:l(o)});return s.on("destroy",()=>{n.l.has(i)&&n.l.remove(i)}),t||n.l.set(i,s),s}function c(e,t=!1){return"string"==typeof e?n.l.get(e):e instanceof o.v?new a.g({source:e}):u(e,t)}i.XO.handleByList(i.Ag.TextureSource,s),a.g.from=c},60924:function(e,t,r){"use strict";r.d(t,{X:()=>o});let n=Object.create(null),i=Object.create(null);function o(e,t){let r=i[e];return void 0===r&&(void 0===n[t]&&(n[t]=1),i[e]=r=n[t]++),r}},52632:function(e,t,r){"use strict";r.d(t,{v:()=>c});var n=r(98370),i=r(43071),o=r(45584),a=r(55746),s=r(24611),l=r(50209);let u=class e{get resolution(){return this.texture.source._resolution}set resolution(e){this.texture.source.resize(this.texture.source.width,this.texture.source.height,e)}init(t){(t={...e.defaultOptions,...t}).view&&((0,a.t)("8.0.0","ViewSystem.view has been renamed to ViewSystem.canvas"),t.canvas=t.view),this.screen=new o.M(0,0,t.width,t.height),this.canvas=t.canvas||n.e.get().createCanvas(),this.antialias=!!t.antialias,this.texture=(0,l.c)(this.canvas,t),this.renderTarget=new s.O({colorTextures:[this.texture],depth:!!t.depth,isRoot:!0}),this.texture.source.transparent=t.backgroundAlpha<1,this.multiView=!!t.multiView,this.autoDensity&&(this.canvas.style.width=`${this.texture.width}px`,this.canvas.style.height=`${this.texture.height}px`),this.resolution=t.resolution}resize(e,t,r){this.texture.source.resize(e,t,r),this.screen.width=this.texture.frame.width,this.screen.height=this.texture.frame.height,this.autoDensity&&(this.canvas.style.width=`${e}px`,this.canvas.style.height=`${t}px`)}destroy(e=!1){("boolean"==typeof e?e:!!e?.removeView)&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)}};u.extension={type:[i.Ag.WebGLSystem,i.Ag.WebGPUSystem,i.Ag.CanvasSystem],name:"view",priority:0},u.defaultOptions={width:800,height:600,autoDensity:!1,antialias:!1};let c=u},52031:function(e,t,r){"use strict";let n;r.d(t,{W:()=>i});var i=((n=i||{})[n.WEBGL=1]="WEBGL",n[n.WEBGPU=2]="WEBGPU",n[n.BOTH=3]="BOTH",n)},21873:function(e,t,r){"use strict";r.d(t,{mc:()=>F,fR:()=>j,ig:()=>z,u:()=>L});var n=r(60588),i=r(51170);let o={cullArea:null,cullable:!1,cullableChildren:!0};var a=r(96253),s=r(74632),l=r(52e3),u=r(94849),c=r(55746),f=r(33179);let h={allowChildren:!0,removeChildren(e=0,t){let r=t??this.children.length,n=r-e,i=[];if(n>0&&n<=r){for(let t=r-1;t>=e;t--){let e=this.children[t];e&&(this.renderGroup&&this.renderGroup.removeChild(e),i.push(e),e.parent=null)}(0,f.d)(this.children,e,r);for(let e=0;e<i.length;++e)this.emit("childRemoved",i[e],this,e),i[e].emit("removed",this);return i}if(0===n&&0===this.children.length)return i;throw RangeError("removeChildren: numeric values are outside the acceptable range.")},removeChildAt(e){let t=this.getChildAt(e);return this.removeChild(t)},getChildAt(e){if(e<0||e>=this.children.length)throw Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]},setChildIndex(e,t){if(t<0||t>=this.children.length)throw Error(`The index ${t} supplied is out of bounds ${this.children.length}`);this.getChildIndex(e),this.addChildAt(e,t)},getChildIndex(e){let t=this.children.indexOf(e);if(-1===t)throw Error("The supplied Container must be a child of the caller");return t},addChildAt(e,t){this.allowChildren||(0,c.t)("8.0.0","addChildAt: Only Containers will be allowed to add children in v8.0.0");let{children:r}=this;if(t<0||t>r.length)throw Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${r.length}`);if(e.parent){let r=e.parent.children.indexOf(e);if(e.parent===this&&r===t)return e;-1!==r&&e.parent.children.splice(r,1)}return t===r.length?r.push(e):r.splice(t,0,e),e.parent=this,e.didChange=!0,e.didViewUpdate=!1,e._updateFlags=15,this.renderGroup&&this.renderGroup.addChild(e),this.sortableChildren&&(this.sortDirty=!0),this.emit("childAdded",e,this,t),e.emit("added",this),e},swapChildren(e,t){if(e===t)return;let r=this.getChildIndex(e),n=this.getChildIndex(t);this.children[r]=t,this.children[n]=e},removeFromParent(){this.parent?.removeChild(this)}};var d=r(63757),p=r(43071),m=r(92078);class g{constructor(){this._effectClasses=[],this._tests=[],this._initialized=!1}init(){this._initialized||(this._initialized=!0,this._effectClasses.forEach(e=>{this.add({test:e.test,maskClass:e})}))}add(e){this._tests.push(e)}getMaskEffect(e){this._initialized||this.init();for(let t=0;t<this._tests.length;t++){let r=this._tests[t];if(r.test(e))return m.Z.get(r.maskClass,e)}return e}returnMaskEffect(e){m.Z.return(e)}}let v=new g;p.XO.handleByList(p.Ag.MaskEffect,v._effectClasses);let y={_mask:null,_filters:null,effects:[],addEffect(e){-1===this.effects.indexOf(e)&&(this.effects.push(e),this.effects.sort((e,t)=>e.priority-t.priority),this.renderGroup&&(this.renderGroup.structureDidChange=!0),this._updateIsSimple())},removeEffect(e){let t=this.effects.indexOf(e);-1!==t&&(this.effects.splice(t,1),!this.isRenderGroupRoot&&this.renderGroup&&(this.renderGroup.structureDidChange=!0),this._updateIsSimple())},set mask(value){if(this._mask||(this._mask={mask:null,effect:null}),this._mask.mask===value||(this._mask.effect&&(this.removeEffect(this._mask.effect),v.returnMaskEffect(this._mask.effect),this._mask.effect=null),this._mask.mask=value,null==value))return;let e=v.getMaskEffect(value);this._mask.effect=e,this.addEffect(e)},get mask(){return this._mask?.mask},set filters(value){!Array.isArray(value)&&value&&(value=[value]),this._filters||(this._filters={filters:null,effect:null,filterArea:null});let e=value?.length>0,t=this._filters.effect&&!e||!this._filters.effect&&e;if(value=Array.isArray(value)?value.slice(0):value,this._filters.filters=Object.freeze(value),t)if(e){let e=m.Z.get(d.a);this._filters.effect=e,this.addEffect(e)}else{let e=this._filters.effect;this.removeEffect(e),e.filterArea=null,e.filters=null,this._filters.effect=null,m.Z.return(e)}e&&(this._filters.effect.filters=value,this._filters.effect.filterArea=this.filterArea)},get filters(){return this._filters?.filters},set filterArea(value){this._filters||(this._filters={filters:null,effect:null,filterArea:null}),this._filters.filterArea=value},get filterArea(){return this._filters?.filterArea}},b={label:null,get name(){return(0,c.t)("8.0.0","Container.name property has been removed, use Container.label instead"),this.label},set name(value){(0,c.t)("8.0.0","Container.name property has been removed, use Container.label instead"),this.label=value},getChildByName(e,t=!1){return this.getChildByLabel(e,t)},getChildByLabel(e,t=!1){let r=this.children;for(let t=0;t<r.length;t++){let n=r[t];if(n.label===e||e instanceof RegExp&&e.test(n.label))return n}if(t)for(let t=0;t<r.length;t++){let n=r[t].getChildByLabel(e,!0);if(n)return n}return null},getChildrenByLabel(e,t=!1,r=[]){let n=this.children;for(let t=0;t<n.length;t++){let i=n[t];(i.label===e||e instanceof RegExp&&e.test(i.label))&&r.push(i)}if(t)for(let t=0;t<n.length;t++)n[t].getChildrenByLabel(e,!0,r);return r}};var x=r(46904),_=r(92151),w=r(99625);function S(e,t){let r=e.children;for(let e=0;e<r.length;e++){let n=r[e],i=(255&n.uid)<<24|0xffffff&n._didChangeId;t.data[t.index]!==i&&(t.data[t.index]=i,t.didChange=!0),t.index++,n.children.length&&S(n,t)}return t.didChange}let A=new a.u,E={_localBoundsCacheId:-1,_localBoundsCacheData:null,_setWidth(e,t){let r=Math.sign(this.scale.x)||1;0!==t?this.scale.x=e/t*r:this.scale.x=r},_setHeight(e,t){let r=Math.sign(this.scale.y)||1;0!==t?this.scale.y=e/t*r:this.scale.y=r},getLocalBounds(){this._localBoundsCacheData||(this._localBoundsCacheData={data:[],index:1,didChange:!1,localBounds:new x.c});let e=this._localBoundsCacheData;return e.index=1,e.didChange=!1,e.data[0]!==this._didChangeId>>12&&(e.didChange=!0,e.data[0]=this._didChangeId>>12),S(this,e),e.didChange&&(0,w.n)(this,e.localBounds,A),e.localBounds},getBounds(e,t){return(0,_.fB)(this,e,t||new x.c)}},C={_onRender:null,set onRender(func){let e=this.renderGroup;if(!func){this._onRender&&e?.removeOnRender(this),this._onRender=null;return}this._onRender||e?.addOnRender(this),this._onRender=func},get onRender(){return this._onRender}},k={_zIndex:0,sortDirty:!1,sortableChildren:!1,get zIndex(){return this._zIndex},set zIndex(value){if(this._zIndex===value)return;this._zIndex=value,this.depthOfChildModified()},depthOfChildModified(){this.parent&&(this.parent.sortableChildren=!0,this.parent.sortDirty=!0),this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0)},sortChildren(){this.sortDirty&&(this.sortDirty=!1,this.children.sort(O))}};function O(e,t){return e._zIndex-t._zIndex}var I=r(58569);let T={getGlobalPosition(e=new I.b,t=!1){return this.parent?this.parent.toGlobal(this._position,e,t):(e.x=this._position.x,e.y=this._position.y),e},toGlobal(e,t,r=!1){if(!r){this.updateLocalTransform();let r=(0,_.Ek)(this,new a.u);return r.append(this.localTransform),r.apply(e,t)}return this.worldTransform.apply(e,t)},toLocal(e,t,r,n){if(t&&(e=t.toGlobal(e,r,n)),!n){this.updateLocalTransform();let t=(0,_.Ek)(this,new a.u);return t.append(this.localTransform),t.applyInverse(e,r)}return this.worldTransform.applyInverse(e,r)}};var M=r(73644);class R{constructor(e){this.renderPipeId="renderGroup",this.root=null,this.canBundle=!1,this.renderGroupParent=null,this.renderGroupChildren=[],this._children=[],this.worldTransform=new a.u,this.worldColorAlpha=0xffffffff,this.worldColor=0xffffff,this.worldAlpha=1,this.childrenToUpdate=Object.create(null),this.updateTick=0,this.childrenRenderablesToUpdate={list:[],index:0},this.structureDidChange=!0,this.instructionSet=new M.L,this._onRenderContainers=[],this.root=e,this.addChild(e)}get localTransform(){return this.root.localTransform}addRenderGroupChild(e){e.renderGroupParent&&e.renderGroupParent._removeRenderGroupChild(e),e.renderGroupParent=this,this.onChildUpdate(e.root),this.renderGroupChildren.push(e)}_removeRenderGroupChild(e){e.root.didChange&&this._removeChildFromUpdate(e.root);let t=this.renderGroupChildren.indexOf(e);t>-1&&this.renderGroupChildren.splice(t,1),e.renderGroupParent=null}addChild(e){if(this.structureDidChange=!0,e!==this.root&&(this._children.push(e),e.updateTick=-1,e.parent===this.root?e.relativeRenderGroupDepth=1:e.relativeRenderGroupDepth=e.parent.relativeRenderGroupDepth+1),e.renderGroup){if(e.renderGroup.root===e)return void this.addRenderGroupChild(e.renderGroup)}else e.renderGroup=this,e.didChange=!0;e._onRender&&(e.isRenderGroupRoot?e.renderGroup.root===e&&this.addOnRender(e):this.addOnRender(e));let t=e.children;e.isRenderGroupRoot||this.onChildUpdate(e);for(let e=0;e<t.length;e++)this.addChild(t[e])}removeChild(e){if(this.structureDidChange=!0,e._onRender&&(e.isRenderGroupRoot?e.renderGroup.root===e&&this.removeOnRender(e):this.removeOnRender(e)),e.renderGroup.root!==e){let t=e.children;for(let e=0;e<t.length;e++)this.removeChild(t[e]);e.didChange&&e.renderGroup._removeChildFromUpdate(e),e.renderGroup=null}else this._removeRenderGroupChild(e.renderGroup);let t=this._children.indexOf(e);t>-1&&this._children.splice(t,1)}onChildUpdate(e){let t=this.childrenToUpdate[e.relativeRenderGroupDepth];t||(t=this.childrenToUpdate[e.relativeRenderGroupDepth]={index:0,list:[]}),t.list[t.index++]=e}updateRenderable(e){e.globalDisplayStatus<7||(e.didViewUpdate=!1,this.instructionSet.renderPipes[e.renderPipeId].updateRenderable(e))}onChildViewUpdate(e){this.childrenRenderablesToUpdate.list[this.childrenRenderablesToUpdate.index++]=e}_removeChildFromUpdate(e){let t=this.childrenToUpdate[e.relativeRenderGroupDepth];if(!t)return;let r=t.list.indexOf(e);r>-1&&t.list.splice(r,1),t.index--}get isRenderable(){return 7===this.root.localDisplayStatus&&this.worldAlpha>0}addOnRender(e){this._onRenderContainers.push(e)}removeOnRender(e){this._onRenderContainers.splice(this._onRenderContainers.indexOf(e),1)}runOnRender(){for(let e=0;e<this._onRenderContainers.length;e++)this._onRenderContainers[e]._onRender()}}function P(e,t,r={}){for(let n in t)r[n]||void 0===t[n]||(e[n]=t[n])}let $=new l.o(null),B=new l.o(null),N=new l.o(null,1,1),z=1,L=2,j=4;class F extends n.A{constructor(e={}){super(),this.uid=(0,u.L)("renderable"),this._updateFlags=15,this.isRenderGroupRoot=!1,this.renderGroup=null,this.didChange=!1,this.didViewUpdate=!1,this.relativeRenderGroupDepth=0,this.children=[],this.parent=null,this.includeInBuild=!0,this.measurable=!0,this.isSimple=!0,this.updateTick=-1,this.localTransform=new a.u,this.relativeGroupTransform=new a.u,this.groupTransform=this.relativeGroupTransform,this.destroyed=!1,this._position=new l.o(this,0,0),this._scale=N,this._pivot=B,this._skew=$,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._rotation=0,this.localColor=0xffffff,this.localAlpha=1,this.groupAlpha=1,this.groupColor=0xffffff,this.groupColorAlpha=0xffffffff,this.localBlendMode="inherit",this.groupBlendMode="normal",this.localDisplayStatus=7,this.globalDisplayStatus=7,this._didChangeId=0,this._didLocalTransformChangeId=-1,P(this,e,{children:!0,parent:!0,effects:!0}),e.children?.forEach(e=>this.addChild(e)),this.effects=[],e.parent?.addChild(this)}static mixin(e){Object.defineProperties(F.prototype,Object.getOwnPropertyDescriptors(e))}addChild(...e){if(this.allowChildren||(0,c.t)("8.0.0","addChild: Only Containers will be allowed to add children in v8.0.0"),e.length>1){for(let t=0;t<e.length;t++)this.addChild(e[t]);return e[0]}let t=e[0];return t.parent===this?(this.children.splice(this.children.indexOf(t),1),this.children.push(t),this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0)):(t.parent&&t.parent.removeChild(t),this.children.push(t),this.sortableChildren&&(this.sortDirty=!0),t.parent=this,t.didChange=!0,t.didViewUpdate=!1,t._updateFlags=15,this.renderGroup&&this.renderGroup.addChild(t),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this),this._didChangeId+=4096,0!==t._zIndex&&t.depthOfChildModified()),t}removeChild(...e){if(e.length>1){for(let t=0;t<e.length;t++)this.removeChild(e[t]);return e[0]}let t=e[0],r=this.children.indexOf(t);return r>-1&&(this._didChangeId+=4096,this.children.splice(r,1),this.renderGroup&&this.renderGroup.removeChild(t),t.parent=null,this.emit("childRemoved",t,this,r),t.emit("removed",this)),t}_onUpdate(e){if(e&&e===this._skew&&this._updateSkew(),this._didChangeId++,!this.didChange)if(this.didChange=!0,this.isRenderGroupRoot){let e=this.renderGroup.renderGroupParent;e&&e.onChildUpdate(this)}else this.renderGroup&&this.renderGroup.onChildUpdate(this)}set isRenderGroup(e){if(this.isRenderGroupRoot&&!1===e)throw Error("[Pixi] cannot undo a render group just yet");e&&this.enableRenderGroup()}get isRenderGroup(){return this.isRenderGroupRoot}enableRenderGroup(){if(this.renderGroup&&this.renderGroup.root===this)return;this.isRenderGroupRoot=!0;let e=this.renderGroup;if(e&&e.removeChild(this),this.renderGroup=new R(this),e){for(let t=0;t<e.renderGroupChildren.length;t++){let r=e.renderGroupChildren[t],n=r.root;for(;n;){if(n===this){this.renderGroup.addRenderGroupChild(r);break}n=n.parent}}e.addRenderGroupChild(this.renderGroup)}this._updateIsSimple(),this.groupTransform=a.u.IDENTITY}_updateIsSimple(){this.isSimple=!this.isRenderGroupRoot&&0===this.effects.length}get worldTransform(){return this._worldTransform||(this._worldTransform=new a.u),this.renderGroup&&(this.isRenderGroupRoot?this._worldTransform.copyFrom(this.renderGroup.worldTransform):this._worldTransform.appendFrom(this.relativeGroupTransform,this.renderGroup.worldTransform)),this._worldTransform}get x(){return this._position.x}set x(e){this._position.x=e}get y(){return this._position.y}set y(e){this._position.y=e}get position(){return this._position}set position(e){this._position.copyFrom(e)}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this._onUpdate(this._skew))}get angle(){return this.rotation*s.bO}set angle(e){this.rotation=e*s.Td}get pivot(){return this._pivot===B&&(this._pivot=new l.o(this,0,0)),this._pivot}set pivot(e){this._pivot===B&&(this._pivot=new l.o(this,0,0)),"number"==typeof e?this._pivot.set(e):this._pivot.copyFrom(e)}get skew(){return this._skew===$&&(this._skew=new l.o(this,0,0)),this._skew}set skew(e){this._skew===$&&(this._skew=new l.o(this,0,0)),this._skew.copyFrom(e)}get scale(){return this._scale===N&&(this._scale=new l.o(this,1,1)),this._scale}set scale(e){this._scale===N&&(this._scale=new l.o(this,0,0)),"number"==typeof e?this._scale.set(e):this._scale.copyFrom(e)}get width(){return Math.abs(this.scale.x*this.getLocalBounds().width)}set width(e){let t=this.getLocalBounds().width;this._setWidth(e,t)}get height(){return Math.abs(this.scale.y*this.getLocalBounds().height)}set height(e){let t=this.getLocalBounds().height;this._setHeight(e,t)}getSize(e){e||(e={});let t=this.getLocalBounds();return e.width=Math.abs(this.scale.x*t.width),e.height=Math.abs(this.scale.y*t.height),e}setSize(e,t){let r,n,i=this.getLocalBounds();"object"!=typeof e?(r=e,n=t??e):(r=e.width,n=e.height??e.width),void 0!==r&&this._setWidth(r,i.width),void 0!==n&&this._setHeight(n,i.height)}_updateSkew(){let e=this._rotation,t=this._skew;this._cx=Math.cos(e+t._y),this._sx=Math.sin(e+t._y),this._cy=-Math.sin(e-t._x),this._sy=Math.cos(e-t._x)}updateTransform(e){return this.position.set("number"==typeof e.x?e.x:this.position.x,"number"==typeof e.y?e.y:this.position.y),this.scale.set("number"==typeof e.scaleX?e.scaleX||1:this.scale.x,"number"==typeof e.scaleY?e.scaleY||1:this.scale.y),this.rotation="number"==typeof e.rotation?e.rotation:this.rotation,this.skew.set("number"==typeof e.skewX?e.skewX:this.skew.x,"number"==typeof e.skewY?e.skewY:this.skew.y),this.pivot.set("number"==typeof e.pivotX?e.pivotX:this.pivot.x,"number"==typeof e.pivotY?e.pivotY:this.pivot.y),this}setFromMatrix(e){e.decompose(this)}updateLocalTransform(){if((15&this._didLocalTransformChangeId)===this._didChangeId)return;this._didLocalTransformChangeId=this._didChangeId;let e=this.localTransform,t=this._scale,r=this._pivot,n=this._position,i=t._x,o=t._y,a=r._x,s=r._y;e.a=this._cx*i,e.b=this._sx*i,e.c=this._cy*o,e.d=this._sy*o,e.tx=n._x-(a*e.a+s*e.c),e.ty=n._y-(a*e.b+s*e.d)}set alpha(e){e!==this.localAlpha&&(this.localAlpha=e,this._updateFlags|=z,this._onUpdate())}get alpha(){return this.localAlpha}set tint(e){let t=i.Q.shared.setValue(e??0xffffff).toBgrNumber();t!==this.localColor&&(this.localColor=t,this._updateFlags|=z,this._onUpdate())}get tint(){let e=this.localColor;return((255&e)<<16)+(65280&e)+(e>>16&255)}set blendMode(e){this.localBlendMode!==e&&(this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0),this._updateFlags|=L,this.localBlendMode=e,this._onUpdate())}get blendMode(){return this.localBlendMode}get visible(){return!!(2&this.localDisplayStatus)}set visible(e){let t=+!!e;(2&this.localDisplayStatus)>>1!==t&&(this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0),this._updateFlags|=j,this.localDisplayStatus^=2,this._onUpdate())}get culled(){return!(4&this.localDisplayStatus)}set culled(e){let t=+!!e;(4&this.localDisplayStatus)>>2!==t&&(this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0),this._updateFlags|=j,this.localDisplayStatus^=4,this._onUpdate())}get renderable(){return!!(1&this.localDisplayStatus)}set renderable(e){let t=+!!e;(1&this.localDisplayStatus)!==t&&(this._updateFlags|=j,this.localDisplayStatus^=1,this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0),this._onUpdate())}get isRenderable(){return 7===this.localDisplayStatus&&this.groupAlpha>0}destroy(e=!1){if(this.destroyed)return;this.destroyed=!0,this.removeFromParent(),this.parent=null,this._mask=null,this._filters=null,this.effects=null,this._position=null,this._scale=null,this._pivot=null,this._skew=null,this.emit("destroyed",this),this.removeAllListeners();let t="boolean"==typeof e?e:e?.children,r=this.removeChildren(0,this.children.length);if(t)for(let t=0;t<r.length;++t)r[t].destroy(e)}}F.mixin(h),F.mixin(T),F.mixin(C),F.mixin(E),F.mixin(y),F.mixin(b),F.mixin(k),F.mixin(o)},46904:function(e,t,r){"use strict";r.d(t,{c:()=>a});var n=r(96253),i=r(45584);let o=new n.u;class a{constructor(e=1/0,t=1/0,r=-1/0,n=-1/0){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=o,this.minX=e,this.minY=t,this.maxX=r,this.maxY=n}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}get rectangle(){this._rectangle||(this._rectangle=new i.M);let e=this._rectangle;return this.minX>this.maxX||this.minY>this.maxY?(e.x=0,e.y=0,e.width=0,e.height=0):e.copyFromBounds(this),e}clear(){return this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=o,this}set(e,t,r,n){this.minX=e,this.minY=t,this.maxX=r,this.maxY=n}addFrame(e,t,r,n,i){i||(i=this.matrix);let o=i.a,a=i.b,s=i.c,l=i.d,u=i.tx,c=i.ty,f=this.minX,h=this.minY,d=this.maxX,p=this.maxY,m=o*e+s*t+u,g=a*e+l*t+c;m<f&&(f=m),g<h&&(h=g),m>d&&(d=m),g>p&&(p=g),m=o*r+s*t+u,g=a*r+l*t+c,m<f&&(f=m),g<h&&(h=g),m>d&&(d=m),g>p&&(p=g),m=o*e+s*n+u,g=a*e+l*n+c,m<f&&(f=m),g<h&&(h=g),m>d&&(d=m),g>p&&(p=g),m=o*r+s*n+u,g=a*r+l*n+c,m<f&&(f=m),g<h&&(h=g),m>d&&(d=m),g>p&&(p=g),this.minX=f,this.minY=h,this.maxX=d,this.maxY=p}addRect(e,t){this.addFrame(e.x,e.y,e.x+e.width,e.y+e.height,t)}addBounds(e,t){this.addFrame(e.minX,e.minY,e.maxX,e.maxY,t)}addBoundsMask(e){this.minX=this.minX>e.minX?this.minX:e.minX,this.minY=this.minY>e.minY?this.minY:e.minY,this.maxX=this.maxX<e.maxX?this.maxX:e.maxX,this.maxY=this.maxY<e.maxY?this.maxY:e.maxY}applyMatrix(e){let t=this.minX,r=this.minY,n=this.maxX,i=this.maxY,{a:o,b:a,c:s,d:l,tx:u,ty:c}=e,f=o*t+s*r+u,h=a*t+l*r+c;this.minX=f,this.minY=h,this.maxX=f,this.maxY=h,f=o*n+s*r+u,h=a*n+l*r+c,this.minX=f<this.minX?f:this.minX,this.minY=h<this.minY?h:this.minY,this.maxX=f>this.maxX?f:this.maxX,this.maxY=h>this.maxY?h:this.maxY,f=o*t+s*i+u,h=a*t+l*i+c,this.minX=f<this.minX?f:this.minX,this.minY=h<this.minY?h:this.minY,this.maxX=f>this.maxX?f:this.maxX,this.maxY=h>this.maxY?h:this.maxY,f=o*n+s*i+u,h=a*n+l*i+c,this.minX=f<this.minX?f:this.minX,this.minY=h<this.minY?h:this.minY,this.maxX=f>this.maxX?f:this.maxX,this.maxY=h>this.maxY?h:this.maxY}fit(e){return this.minX<e.left&&(this.minX=e.left),this.maxX>e.right&&(this.maxX=e.right),this.minY<e.top&&(this.minY=e.top),this.maxY>e.bottom&&(this.maxY=e.bottom),this}fitBounds(e,t,r,n){return this.minX<e&&(this.minX=e),this.maxX>t&&(this.maxX=t),this.minY<r&&(this.minY=r),this.maxY>n&&(this.maxY=n),this}pad(e,t=e){return this.minX-=e,this.maxX+=e,this.minY-=t,this.maxY+=t,this}ceil(){return this.minX=Math.floor(this.minX),this.minY=Math.floor(this.minY),this.maxX=Math.ceil(this.maxX),this.maxY=Math.ceil(this.maxY),this}clone(){return new a(this.minX,this.minY,this.maxX,this.maxY)}scale(e,t=e){return this.minX*=e,this.minY*=t,this.maxX*=e,this.maxY*=t,this}get x(){return this.minX}set x(e){let t=this.maxX-this.minX;this.minX=e,this.maxX=e+t}get y(){return this.minY}set y(e){let t=this.maxY-this.minY;this.minY=e,this.maxY=e+t}get width(){return this.maxX-this.minX}set width(e){this.maxX=this.minX+e}get height(){return this.maxY-this.minY}set height(e){this.maxY=this.minY+e}get left(){return this.minX}get right(){return this.maxX}get top(){return this.minY}get bottom(){return this.maxY}get isPositive(){return this.maxX-this.minX>0&&this.maxY-this.minY>0}get isValid(){return this.minX+this.minY!==1/0}addVertexData(e,t,r,n){let i=this.minX,o=this.minY,a=this.maxX,s=this.maxY;n||(n=this.matrix);let l=n.a,u=n.b,c=n.c,f=n.d,h=n.tx,d=n.ty;for(let n=t;n<r;n+=2){let t=e[n],r=e[n+1],p=l*t+c*r+h,m=u*t+f*r+d;i=p<i?p:i,o=m<o?m:o,a=p>a?p:a,s=m>s?m:s}this.minX=i,this.minY=o,this.maxX=a,this.maxY=s}containsPoint(e,t){return!!(this.minX<=e)&&!!(this.minY<=t)&&!!(this.maxX>=e)&&!!(this.maxY>=t)}toString(){return`[pixi.js:Bounds minX=${this.minX} minY=${this.minY} maxX=${this.maxX} maxY=${this.maxY} width=${this.width} height=${this.height}]`}}},92151:function(e,t,r){"use strict";r.d(t,{Ek:()=>s,fB:()=>o});var n=r(96253),i=r(23268);function o(e,t,r){let o,l;return r.clear(),o=e.parent?t?e.parent.worldTransform:s(e,l=i.u.get().identity()):n.u.IDENTITY,a(e,r,o,t),l&&i.u.return(l),r.isValid||r.set(0,0,0,0),r}function a(e,t,r,o){let s;if(!e.visible||!e.measurable)return;o?s=e.worldTransform:(e.updateLocalTransform(),(s=i.u.get()).appendFrom(e.localTransform,r));let l=t,u=!!e.effects.length;if(u&&(t=i.o.get().clear()),e.boundsArea)t.addRect(e.boundsArea,s);else{e.addBounds&&(t.matrix=s,e.addBounds(t));for(let r=0;r<e.children.length;r++)a(e.children[r],t,s,o)}if(u){for(let r=0;r<e.effects.length;r++)e.effects[r].addBounds?.(t);l.addBounds(t,n.u.IDENTITY),i.o.return(t)}o||i.u.return(s)}function s(e,t){let r=e.parent;return r&&(s(r,t),r.updateLocalTransform(),t.append(r.localTransform)),t}},99625:function(e,t,r){"use strict";r.d(t,{n:()=>o});var n=r(96253),i=r(23268);function o(e,t,r){return t.clear(),r||(r=n.u.IDENTITY),a(e,t,r,e,!0),t.isValid||t.set(0,0,0,0),t}function a(e,t,r,o,s){let l;if(s)l=i.u.get(),l=r.copyTo(l);else{if(!e.visible||!e.measurable)return;e.updateLocalTransform();let t=e.localTransform;(l=i.u.get()).appendFrom(t,r)}let u=t,c=!!e.effects.length;if(c&&(t=i.o.get().clear()),e.boundsArea)t.addRect(e.boundsArea,l);else{e.renderPipeId&&(t.matrix=l,e.addBounds(t));let r=e.children;for(let e=0;e<r.length;e++)a(r[e],t,l,o,!1)}if(c){for(let r=0;r<e.effects.length;r++)e.effects[r].addLocalBounds?.(t,o);u.addBounds(t,n.u.IDENTITY),i.o.return(t)}i.u.return(l)}},23268:function(e,t,r){"use strict";r.d(t,{o:()=>s,u:()=>a});var n=r(96253),i=r(83325),o=r(46904);let a=new i.b(n.u),s=new i.b(o.c)},73737:function(e,t,r){"use strict";function n(e,t){return 0xffffff!==e&&t?0xffffff!==t&&e?((e>>16&255)*(t>>16&255)/255<<16)+((e>>8&255)*(t>>8&255)/255<<8)+(255&e)*(255&t)/255:e:t}r.d(t,{G:()=>i});class i{constructor(){this.batcher=null,this.batch=null,this.applyTransform=!0,this.roundPixels=0}get blendMode(){return this.applyTransform?this.renderable.groupBlendMode:"normal"}packIndex(e,t,r){let n=this.geometryData.indices;for(let i=0;i<this.indexSize;i++)e[t++]=n[i+this.indexOffset]+r-this.vertexOffset}packAttributes(e,t,r,i){let o=this.geometryData,a=this.renderable,s=o.vertices,l=o.uvs,u=2*this.vertexOffset,c=(this.vertexOffset+this.vertexSize)*2,f=this.color,h=f>>16|65280&f|(255&f)<<16;if(this.applyTransform){let o=n(h,a.groupColor)+(this.alpha*a.groupAlpha*255<<24),f=a.groupTransform,d=i<<16|65535&this.roundPixels,p=f.a,m=f.b,g=f.c,v=f.d,y=f.tx,b=f.ty;for(let n=u;n<c;n+=2){let i=s[n],a=s[n+1];e[r]=p*i+g*a+y,e[r+1]=m*i+v*a+b,e[r+2]=l[n],e[r+3]=l[n+1],t[r+4]=o,t[r+5]=d,r+=6}}else{let n=h+(255*this.alpha<<24);for(let o=u;o<c;o+=2)e[r]=s[o],e[r+1]=s[o+1],e[r+2]=l[o],e[r+3]=l[o+1],t[r+4]=n,t[r+5]=i<<16,r+=6}}get vertSize(){return this.vertexSize}copyTo(e){e.indexOffset=this.indexOffset,e.indexSize=this.indexSize,e.vertexOffset=this.vertexOffset,e.vertexSize=this.vertexSize,e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.geometryData=this.geometryData}reset(){this.applyTransform=!0}}},58788:function(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(55746),i=r(21873),o=r(17464);class a extends i.mc{constructor(e){e instanceof o.T&&(e={context:e});const{context:t,roundPixels:r,...n}=e||{};super({label:"Graphics",...n}),this.canBundle=!0,this.renderPipeId="graphics",this._roundPixels=0,t?this._context=t:this._context=this._ownedContext=new o.T,this._context.on("update",this.onViewUpdate,this),this.allowChildren=!1,this.roundPixels=r??!1}set context(e){e!==this._context&&(this._context.off("update",this.onViewUpdate,this),this._context=e,this._context.on("update",this.onViewUpdate,this),this.onViewUpdate())}get context(){return this._context}get bounds(){return this._context.bounds}addBounds(e){e.addBounds(this._context.bounds)}containsPoint(e){return this._context.containsPoint(e)}get roundPixels(){return!!this._roundPixels}set roundPixels(e){this._roundPixels=+!!e}onViewUpdate(){this._didChangeId+=4096,this._didGraphicsUpdate=!0,!this.didViewUpdate&&(this.didViewUpdate=!0,this.renderGroup&&this.renderGroup.onChildViewUpdate(this))}destroy(e){this._ownedContext&&!e?this._ownedContext.destroy(e):(!0===e||e?.context===!0)&&this._context.destroy(e),this._ownedContext=null,this._context=null,super.destroy(e)}_callContextMethod(e,t){return this.context[e](...t),this}setFillStyle(...e){return this._callContextMethod("setFillStyle",e)}setStrokeStyle(...e){return this._callContextMethod("setStrokeStyle",e)}fill(...e){return this._callContextMethod("fill",e)}stroke(...e){return this._callContextMethod("stroke",e)}texture(...e){return this._callContextMethod("texture",e)}beginPath(){return this._callContextMethod("beginPath",[])}cut(){return this._callContextMethod("cut",[])}arc(...e){return this._callContextMethod("arc",e)}arcTo(...e){return this._callContextMethod("arcTo",e)}arcToSvg(...e){return this._callContextMethod("arcToSvg",e)}bezierCurveTo(...e){return this._callContextMethod("bezierCurveTo",e)}closePath(){return this._callContextMethod("closePath",[])}ellipse(...e){return this._callContextMethod("ellipse",e)}circle(...e){return this._callContextMethod("circle",e)}path(...e){return this._callContextMethod("path",e)}lineTo(...e){return this._callContextMethod("lineTo",e)}moveTo(...e){return this._callContextMethod("moveTo",e)}quadraticCurveTo(...e){return this._callContextMethod("quadraticCurveTo",e)}rect(...e){return this._callContextMethod("rect",e)}roundRect(...e){return this._callContextMethod("roundRect",e)}poly(...e){return this._callContextMethod("poly",e)}regularPoly(...e){return this._callContextMethod("regularPoly",e)}roundPoly(...e){return this._callContextMethod("roundPoly",e)}roundShape(...e){return this._callContextMethod("roundShape",e)}filletRect(...e){return this._callContextMethod("filletRect",e)}chamferRect(...e){return this._callContextMethod("chamferRect",e)}star(...e){return this._callContextMethod("star",e)}svg(...e){return this._callContextMethod("svg",e)}restore(...e){return this._callContextMethod("restore",e)}save(){return this._callContextMethod("save",[])}getTransform(){return this.context.getTransform()}resetTransform(){return this._callContextMethod("resetTransform",[])}rotateTransform(...e){return this._callContextMethod("rotate",e)}scaleTransform(...e){return this._callContextMethod("scale",e)}setTransform(...e){return this._callContextMethod("setTransform",e)}transform(...e){return this._callContextMethod("transform",e)}translateTransform(...e){return this._callContextMethod("translate",e)}clear(){return this._callContextMethod("clear",[])}get fillStyle(){return this._context.fillStyle}set fillStyle(e){this._context.fillStyle=e}get strokeStyle(){return this._context.strokeStyle}set strokeStyle(e){this._context.strokeStyle=e}clone(e=!1){return e?new a(this._context.clone()):(this._ownedContext=null,new a(this._context))}lineStyle(e,t,r){(0,n.t)("8.0.0","Graphics#lineStyle is no longer needed. Use Graphics#setStrokeStyle to set the stroke style.");let i={};return e&&(i.width=e),t&&(i.color=t),r&&(i.alpha=r),this.context.strokeStyle=i,this}beginFill(e,t){(0,n.t)("8.0.0","Graphics#beginFill is no longer needed. Use Graphics#fill to fill the shape with the desired style.");let r={};return e&&(r.color=e),t&&(r.alpha=t),this.context.fillStyle=r,this}endFill(){(0,n.t)("8.0.0","Graphics#endFill is no longer needed. Use Graphics#fill to fill the shape with the desired style."),this.context.fill();let e=this.context.strokeStyle;return(e.width!==o.T.defaultStrokeStyle.width||e.color!==o.T.defaultStrokeStyle.color||e.alpha!==o.T.defaultStrokeStyle.alpha)&&this.context.stroke(),this}drawCircle(...e){return(0,n.t)("8.0.0","Graphics#drawCircle has been renamed to Graphics#circle"),this._callContextMethod("circle",e)}drawEllipse(...e){return(0,n.t)("8.0.0","Graphics#drawEllipse has been renamed to Graphics#ellipse"),this._callContextMethod("ellipse",e)}drawPolygon(...e){return(0,n.t)("8.0.0","Graphics#drawPolygon has been renamed to Graphics#poly"),this._callContextMethod("poly",e)}drawRect(...e){return(0,n.t)("8.0.0","Graphics#drawRect has been renamed to Graphics#rect"),this._callContextMethod("rect",e)}drawRoundedRect(...e){return(0,n.t)("8.0.0","Graphics#drawRoundedRect has been renamed to Graphics#roundRect"),this._callContextMethod("roundRect",e)}drawStar(...e){return(0,n.t)("8.0.0","Graphics#drawStar has been renamed to Graphics#star"),this._callContextMethod("star",e)}}},17464:function(e,t,r){"use strict";r.d(t,{T:()=>el});var n=r(60588),i=r(51170),o=r(96253),a=r(58569),s=r(27633),l=r(94849),u=r(55746),c=r(46904),f=r(86840),h=r(32999);function d(e,t){let r=h(e),n=[],i=null,o=0,a=0;for(let e=0;e<r.length;e++){let s=r[e],l=s[0],u=s;switch(l){case"M":o=u[1],a=u[2],t.moveTo(o,a);break;case"m":o+=u[1],a+=u[2],t.moveTo(o,a);break;case"H":o=u[1],t.lineTo(o,a);break;case"h":o+=u[1],t.lineTo(o,a);break;case"V":a=u[1],t.lineTo(o,a);break;case"v":a+=u[1],t.lineTo(o,a);break;case"L":o=u[1],a=u[2],t.lineTo(o,a);break;case"l":o+=u[1],a+=u[2],t.lineTo(o,a);break;case"C":o=u[5],a=u[6],t.bezierCurveTo(u[1],u[2],u[3],u[4],o,a);break;case"c":t.bezierCurveTo(o+u[1],a+u[2],o+u[3],a+u[4],o+u[5],a+u[6]),o+=u[5],a+=u[6];break;case"S":o=u[3],a=u[4],t.bezierCurveToShort(u[1],u[2],o,a);break;case"s":t.bezierCurveToShort(o+u[1],a+u[2],o+u[3],a+u[4]),o+=u[3],a+=u[4];break;case"Q":o=u[3],a=u[4],t.quadraticCurveTo(u[1],u[2],o,a);break;case"q":t.quadraticCurveTo(o+u[1],a+u[2],o+u[3],a+u[4]),o+=u[3],a+=u[4];break;case"T":o=u[1],a=u[2],t.quadraticCurveToShort(o,a);break;case"t":o+=u[1],a+=u[2],t.quadraticCurveToShort(o,a);break;case"A":o=u[6],a=u[7],t.arcToSvg(u[1],u[2],u[3],u[4],u[5],o,a);break;case"a":o+=u[6],a+=u[7],t.arcToSvg(u[1],u[2],u[3],u[4],u[5],o,a);break;case"Z":case"z":t.closePath(),n.length>0&&((i=n.pop())?(o=i.startX,a=i.startY):(o=0,a=0)),i=null;break;default:(0,f.R)(`Unknown SVG path command: ${l}`)}"Z"!==l&&"z"!==l&&null===i&&(i={startX:o,startY:a},n.push(i))}return t}var p=r(45584);class m{constructor(e=0,t=0,r=0){this.type="circle",this.x=e,this.y=t,this.radius=r}clone(){return new m(this.x,this.y,this.radius)}contains(e,t){if(this.radius<=0)return!1;let r=this.radius*this.radius,n=this.x-e,i=this.y-t;return n*=n,i*=i,n+i<=r}strokeContains(e,t,r){if(0===this.radius)return!1;let n=this.x-e,i=this.y-t,o=this.radius,a=r/2,s=Math.sqrt(n*n+i*i);return s<o+a&&s>o-a}getBounds(e){return(e=e||new p.M).x=this.x-this.radius,e.y=this.y-this.radius,e.width=2*this.radius,e.height=2*this.radius,e}copyFrom(e){return this.x=e.x,this.y=e.y,this.radius=e.radius,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class g{constructor(e=0,t=0,r=0,n=0){this.type="ellipse",this.x=e,this.y=t,this.halfWidth=r,this.halfHeight=n}clone(){return new g(this.x,this.y,this.halfWidth,this.halfHeight)}contains(e,t){if(this.halfWidth<=0||this.halfHeight<=0)return!1;let r=(e-this.x)/this.halfWidth,n=(t-this.y)/this.halfHeight;return r*=r,n*=n,r+n<=1}strokeContains(e,t,r){let{halfWidth:n,halfHeight:i}=this;if(n<=0||i<=0)return!1;let o=r/2,a=n-o,s=i-o,l=n+o,u=i+o,c=e-this.x,f=t-this.y,h=c*c/(a*a)+f*f/(s*s),d=c*c/(l*l)+f*f/(u*u);return h>1&&d<=1}getBounds(){return new p.M(this.x-this.halfWidth,this.y-this.halfHeight,2*this.halfWidth,2*this.halfHeight)}copyFrom(e){return this.x=e.x,this.y=e.y,this.halfWidth=e.halfWidth,this.halfHeight=e.halfHeight,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:Ellipse x=${this.x} y=${this.y} halfWidth=${this.halfWidth} halfHeight=${this.halfHeight}]`}}function v(e,t,r,n,i,o){let a,s,l=e-r,u=t-n,c=i-r,f=o-n,h=l*c+u*f,d=c*c+f*f,p=-1;0!==d&&(p=h/d),p<0?(a=r,s=n):p>1?(a=i,s=o):(a=r+p*c,s=n+p*f);let m=e-a,g=t-s;return m*m+g*g}class y{constructor(...e){this.type="polygon";let t=Array.isArray(e[0])?e[0]:e;if("number"!=typeof t[0]){const e=[];for(let r=0,n=t.length;r<n;r++)e.push(t[r].x,t[r].y);t=e}this.points=t,this.closePath=!0}clone(){let e=new y(this.points.slice());return e.closePath=this.closePath,e}contains(e,t){let r=!1,n=this.points.length/2;for(let i=0,o=n-1;i<n;o=i++){let n=this.points[2*i],a=this.points[2*i+1],s=this.points[2*o],l=this.points[2*o+1];a>t!=l>t&&e<(t-a)/(l-a)*(s-n)+n&&(r=!r)}return r}strokeContains(e,t,r){let n=r/2,i=n*n,{points:o}=this,a=o.length-2*!this.closePath;for(let r=0;r<a;r+=2)if(v(e,t,o[r],o[r+1],o[(r+2)%o.length],o[(r+3)%o.length])<=i)return!0;return!1}getBounds(e){e=e||new p.M;let t=this.points,r=1/0,n=-1/0,i=1/0,o=-1/0;for(let e=0,a=t.length;e<a;e+=2){let a=t[e],s=t[e+1];r=a<r?a:r,n=a>n?a:n,i=s<i?s:i,o=s>o?s:o}return e.x=r,e.width=n-r,e.y=i,e.height=o-i,e}copyFrom(e){return this.points=e.points.slice(),this.closePath=e.closePath,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:PolygoncloseStroke=${this.closePath}points=${this.points.reduce((e,t)=>`${e}, ${t}`,"")}]`}get lastX(){return this.points[this.points.length-2]}get lastY(){return this.points[this.points.length-1]}get x(){return this.points[this.points.length-2]}get y(){return this.points[this.points.length-1]}}let b=(e,t,r,n,i,o)=>{let a=e-r,s=t-n,l=Math.sqrt(a*a+s*s);return l>=i-o&&l<=i+o};class x{constructor(e=0,t=0,r=0,n=0,i=20){this.type="roundedRectangle",this.x=e,this.y=t,this.width=r,this.height=n,this.radius=i}getBounds(e){return(e=e||new p.M).x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e}clone(){return new x(this.x,this.y,this.width,this.height,this.radius)}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.copyFrom(this),e}contains(e,t){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){let r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(t>=this.y+r&&t<=this.y+this.height-r||e>=this.x+r&&e<=this.x+this.width-r)return!0;let n=e-(this.x+r),i=t-(this.y+r),o=r*r;if(n*n+i*i<=o||(n=e-(this.x+this.width-r))*n+i*i<=o||n*n+(i=t-(this.y+this.height-r))*i<=o||(n=e-(this.x+r))*n+i*i<=o)return!0}return!1}strokeContains(e,t,r){let{x:n,y:i,width:o,height:a,radius:s}=this,l=r/2,u=n+s,c=i+s,f=o-2*s,h=a-2*s,d=n+o,p=i+a;return(e>=n-l&&e<=n+l||e>=d-l&&e<=d+l)&&t>=c&&t<=c+h||(t>=i-l&&t<=i+l||t>=p-l&&t<=p+l)&&e>=u&&e<=u+f||e<u&&t<c&&b(e,t,u,c,s,l)||e>d-s&&t<c&&b(e,t,d-s,c,s,l)||e>d-s&&t>p-s&&b(e,t,d-s,p-s,s,l)||e<u&&t>p-s&&b(e,t,u,p-s,s,l)}toString(){return`[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}var _=r(54547);let w=8,S=11920929e-14,A=1,E=.01,C=0,k=0;function O(e,t,r,n,i,o,a,s,l,u){let c=1,f=(A-Math.min(.99,Math.max(0,u??_.GH.defaultOptions.bezierSmoothness)))/c;return I(t,r,n,i,o,a,s,l,e,f*=f),e}function I(e,t,r,n,i,o,a,s,l,u){T(e,t,r,n,i,o,a,s,l,u,0),l.push(a,s)}function T(e,t,r,n,i,o,a,s,l,u,c){if(c>w)return;let f=Math.PI,h=(e+r)/2,d=(t+n)/2,p=(r+i)/2,m=(n+o)/2,g=(i+a)/2,v=(o+s)/2,y=(h+p)/2,b=(d+m)/2,x=(p+g)/2,_=(m+v)/2,A=(y+x)/2,O=(b+_)/2;if(c>0){let c,h,d=a-e,p=s-t,m=Math.abs((r-a)*p-(n-s)*d),g=Math.abs((i-a)*p-(o-s)*d);if(m>S&&g>S){if((m+g)*(m+g)<=u*(d*d+p*p)){if(C<E)return void l.push(A,O);let u=Math.atan2(o-n,i-r);if(c=Math.abs(u-Math.atan2(n-t,r-e)),h=Math.abs(Math.atan2(s-o,a-i)-u),c>=f&&(c=2*f-c),h>=f&&(h=2*f-h),c+h<C)return void l.push(A,O);if(0!==k){if(c>k)return void l.push(r,n);if(h>k)return void l.push(i,o)}}}else if(m>S){if(m*m<=u*(d*d+p*p)){if(C<E)return void l.push(A,O);if((c=Math.abs(Math.atan2(o-n,i-r)-Math.atan2(n-t,r-e)))>=f&&(c=2*f-c),c<C){l.push(r,n),l.push(i,o);return}if(0!==k&&c>k)return void l.push(r,n)}}else if(g>S){if(g*g<=u*(d*d+p*p)){if(C<E)return void l.push(A,O);if((c=Math.abs(Math.atan2(s-o,a-i)-Math.atan2(o-n,i-r)))>=f&&(c=2*f-c),c<C){l.push(r,n),l.push(i,o);return}if(0!==k&&c>k)return void l.push(i,o)}}else if((d=A-(e+a)/2)*d+(p=O-(t+s)/2)*p<=u)return void l.push(A,O)}T(e,t,h,d,y,b,A,O,l,u,c+1),T(A,O,x,_,g,v,a,s,l,u,c+1)}let M=8,R=11920929e-14,P=1,$=.01,B=0;function N(e,t,r,n,i,o,a,s){let l=1,u=(P-Math.min(.99,Math.max(0,s??_.GH.defaultOptions.bezierSmoothness)))/l;return z(t,r,n,i,o,a,e,u*=u),e}function z(e,t,r,n,i,o,a,s){L(a,e,t,r,n,i,o,s,0),a.push(i,o)}function L(e,t,r,n,i,o,a,s,l){if(l>M)return;let u=Math.PI,c=(t+n)/2,f=(r+i)/2,h=(n+o)/2,d=(i+a)/2,p=(c+h)/2,m=(f+d)/2,g=o-t,v=a-r,y=Math.abs((n-o)*v-(i-a)*g);if(y>R){if(y*y<=s*(g*g+v*v)){if(B<$)return void e.push(p,m);let s=Math.abs(Math.atan2(a-i,o-n)-Math.atan2(i-r,n-t));if(s>=u&&(s=2*u-s),s<B)return void e.push(p,m)}}else if((g=p-(t+o)/2)*g+(v=m-(r+a)/2)*v<=s)return void e.push(p,m);L(e,t,r,c,f,p,m,s,l+1),L(e,p,m,h,d,o,a,s,l+1)}function j(e,t,r,n,i,o,a,s){let l=Math.abs(i-o);!a&&i>o?l=2*Math.PI-l:a&&o>i&&(l=2*Math.PI-l),s=Math.max(s=s||Math.max(6,Math.floor(6*Math.pow(n,1/3)*(l/Math.PI))),3);let u=l/s,c=i;u*=a?-1:1;for(let i=0;i<s+1;i++){let i=t+Math.cos(c)*n,o=r+Math.sin(c)*n;e.push(i,o),c+=u}}function F(e,t,r,n,i,o){let a=e[e.length-2],s=e[e.length-1]-r,l=a-t,u=i-r,c=n-t,f=Math.abs(s*c-l*u);if(f<1e-8||0===o){(e[e.length-2]!==t||e[e.length-1]!==r)&&e.push(t,r);return}let h=s*s+l*l,d=u*u+c*c,p=s*u+l*c,m=o*Math.sqrt(h)/f,g=o*Math.sqrt(d)/f,v=m*p/h,y=g*p/d,b=m*c+g*l,x=m*u+g*s,_=l*(g+v),w=c*(m+y),S=Math.atan2(s*(g+v)-x,_-b),A=Math.atan2(u*(m+y)-x,w-b);j(e,b+t,x+r,o,S,A,l*u>c*s)}let D=2*Math.PI,U={centerX:0,centerY:0,ang1:0,ang2:0},H=({x:e,y:t},r,n,i,o,a,s,l)=>{let u=i*(e*=r)-o*(t*=n),c=o*e+i*t;return l.x=u+a,l.y=c+s,l};function G(e,t){let r=-1.5707963267948966===t?-.551915024494:4/3*Math.tan(t/4),n=1.5707963267948966===t?.551915024494:r,i=Math.cos(e),o=Math.sin(e),a=Math.cos(e+t),s=Math.sin(e+t);return[{x:i-o*n,y:o+i*n},{x:a+s*n,y:s-a*n},{x:a,y:s}]}let W=(e,t,r,n)=>{let i=e*n-t*r<0?-1:1,o=e*r+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},V=(e,t,r,n,i,o,a,s,l,u,c,f,h)=>{let d=Math.pow(i,2),p=Math.pow(o,2),m=Math.pow(c,2),g=Math.pow(f,2),v=d*p-d*g-p*m;v<0&&(v=0),v/=d*g+p*m;let y=(v=Math.sqrt(v)*(a===s?-1:1))*i/o*f,b=-(v*o)/i*c,x=u*y-l*b+(e+r)/2,_=l*y+u*b+(t+n)/2,w=(c-y)/i,S=(f-b)/o,A=(-c-y)/i,E=(-f-b)/o,C=W(1,0,w,S),k=W(w,S,A,E);0===s&&k>0&&(k-=D),1===s&&k<0&&(k+=D),h.centerX=x,h.centerY=_,h.ang1=C,h.ang2=k};function q(e,t,r,n,i,o,a,s=0,l=0,u=0){if(0===o||0===a)return;let c=Math.sin(s*D/360),f=Math.cos(s*D/360),h=f*(t-n)/2+c*(r-i)/2,d=-c*(t-n)/2+f*(r-i)/2;if(0===h&&0===d)return;let p=Math.pow(h,2)/Math.pow(o=Math.abs(o),2)+Math.pow(d,2)/Math.pow(a=Math.abs(a),2);p>1&&(o*=Math.sqrt(p),a*=Math.sqrt(p)),V(t,r,n,i,o,a,l,u,c,f,h,d,U);let{ang1:m,ang2:g}=U,{centerX:v,centerY:y}=U,b=Math.abs(g)/(D/4);1e-7>Math.abs(1-b)&&(b=1);let x=Math.max(Math.ceil(b),1);g/=x;let _=e[e.length-2],w=e[e.length-1],S={x:0,y:0};for(let t=0;t<x;t++){let t=G(m,g),{x:r,y:n}=H(t[0],o,a,f,c,v,y,S),{x:i,y:s}=H(t[1],o,a,f,c,v,y,S),{x:l,y:u}=H(t[2],o,a,f,c,v,y,S);O(e,_,w,r,n,i,s,l,u),_=l,w=u,m+=g}}function X(e,t,r){let n=(e,t)=>{let r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n),o=r/i,a=n/i;return{len:i,nx:o,ny:a}},i=(t,r)=>{0===t?e.moveTo(r.x,r.y):e.lineTo(r.x,r.y)},o=t[t.length-1];for(let a=0;a<t.length;a++){let s,l=t[a%t.length],u=l.radius??r;if(u<=0){i(a,l),o=l;continue}let c=t[(a+1)%t.length],f=n(l,o),h=n(l,c);if(f.len<1e-4||h.len<1e-4){i(a,l),o=l;continue}let d=Math.asin(f.nx*h.ny-f.ny*h.nx),p=1,m=!1;f.nx*h.nx- -(f.ny*h.ny)<0?d<0?d=Math.PI+d:(d=Math.PI-d,p=-1,m=!0):d>0&&(p=-1,m=!0);let g=d/2,v=Math.abs(Math.cos(g)*u/Math.sin(g));s=v>Math.min(f.len/2,h.len/2)?Math.abs((v=Math.min(f.len/2,h.len/2))*Math.sin(g)/Math.cos(g)):u;let y=l.x+h.nx*v+-h.ny*s*p,b=l.y+h.ny*v+h.nx*s*p,x=Math.atan2(f.ny,f.nx)+Math.PI/2*p,_=Math.atan2(h.ny,h.nx)-Math.PI/2*p;0===a&&e.moveTo(y+Math.cos(x)*s,b+Math.sin(x)*s),e.arc(y,b,s,x,_,m),o=l}}function Y(e,t,r,n){let i=(e,t)=>Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2),o=(e,t,r)=>({x:e.x+(t.x-e.x)*r,y:e.y+(t.y-e.y)*r}),a=t.length;for(let s=0;s<a;s++){let l,u,c=t[(s+1)%a],f=c.radius??r;if(f<=0){0===s?e.moveTo(c.x,c.y):e.lineTo(c.x,c.y);continue}let h=t[s],d=t[(s+2)%a],p=i(h,c);l=p<1e-4?c:o(c,h,Math.min(p/2,f)/p);let m=i(d,c);u=m<1e-4?c:o(c,d,Math.min(m/2,f)/m),0===s?e.moveTo(l.x,l.y):e.lineTo(l.x,l.y),e.quadraticCurveTo(c.x,c.y,u.x,u.y,n)}}let K=new p.M;class Z{constructor(e){this.shapePrimitives=[],this._currentPoly=null,this._bounds=new c.c,this._graphicsPath2D=e}moveTo(e,t){return this.startPoly(e,t),this}lineTo(e,t){this._ensurePoly();let r=this._currentPoly.points,n=r[r.length-2],i=r[r.length-1];return(n!==e||i!==t)&&r.push(e,t),this}arc(e,t,r,n,i,o){return this._ensurePoly(!1),j(this._currentPoly.points,e,t,r,n,i,o),this}arcTo(e,t,r,n,i){return this._ensurePoly(),F(this._currentPoly.points,e,t,r,n,i),this}arcToSvg(e,t,r,n,i,o,a){return q(this._currentPoly.points,this._currentPoly.lastX,this._currentPoly.lastY,o,a,e,t,r,n,i),this}bezierCurveTo(e,t,r,n,i,o,a){this._ensurePoly();let s=this._currentPoly;return O(this._currentPoly.points,s.lastX,s.lastY,e,t,r,n,i,o,a),this}quadraticCurveTo(e,t,r,n,i){this._ensurePoly();let o=this._currentPoly;return N(this._currentPoly.points,o.lastX,o.lastY,e,t,r,n,i),this}closePath(){return this.endPoly(!0),this}addPath(e,t){this.endPoly(),t&&!t.isIdentity()&&(e=e.clone(!0)).transform(t);for(let t=0;t<e.instructions.length;t++){let r=e.instructions[t];this[r.action](...r.data)}return this}finish(e=!1){this.endPoly(e)}rect(e,t,r,n,i){return this.drawShape(new p.M(e,t,r,n),i),this}circle(e,t,r,n){return this.drawShape(new m(e,t,r),n),this}poly(e,t,r){let n=new y(e);return n.closePath=t,this.drawShape(n,r),this}regularPoly(e,t,r,n,i=0,o){let a=-1*Math.PI/2+i,s=2*Math.PI/(n=Math.max(0|n,3)),l=[];for(let i=0;i<n;i++){let n=i*s+a;l.push(e+r*Math.cos(n),t+r*Math.sin(n))}return this.poly(l,!0,o),this}roundPoly(e,t,r,n,i,o=0,a){if(n=Math.max(0|n,3),i<=0)return this.regularPoly(e,t,r,n,o);i=Math.min(i,r*Math.sin(Math.PI/n)-.001);let s=-1*Math.PI/2+o,l=2*Math.PI/n,u=(n-2)*Math.PI/n/2;for(let o=0;o<n;o++){let n=o*l+s,c=e+r*Math.cos(n),f=t+r*Math.sin(n),h=n+Math.PI+u,d=n-Math.PI-u,p=c+i*Math.cos(h),m=f+i*Math.sin(h),g=c+i*Math.cos(d),v=f+i*Math.sin(d);0===o?this.moveTo(p,m):this.lineTo(p,m),this.quadraticCurveTo(c,f,g,v,a)}return this.closePath()}roundShape(e,t,r=!1,n){return e.length<3?this:(r?Y(this,e,t,n):X(this,e,t),this.closePath())}filletRect(e,t,r,n,i){if(0===i)return this.rect(e,t,r,n);let o=Math.min(r,n)/2,a=Math.min(o,Math.max(-o,i)),s=e+r,l=t+n,u=a<0?-a:0,c=Math.abs(a);return this.moveTo(e,t+c).arcTo(e+u,t+u,e+c,t,c).lineTo(s-c,t).arcTo(s-u,t+u,s,t+c,c).lineTo(s,l-c).arcTo(s-u,l-u,e+r-c,l,c).lineTo(e+c,l).arcTo(e+u,l-u,e,l-c,c).closePath()}chamferRect(e,t,r,n,i,o){if(i<=0)return this.rect(e,t,r,n);let a=Math.min(i,Math.min(r,n)/2),s=e+r,l=t+n,u=[e+a,t,s-a,t,s,t+a,s,l-a,s-a,l,e+a,l,e,l-a,e,t+a];for(let e=u.length-1;e>=2;e-=2)u[e]===u[e-2]&&u[e-1]===u[e-3]&&u.splice(e-1,2);return this.poly(u,!0,o)}ellipse(e,t,r,n,i){return this.drawShape(new g(e,t,r,n),i),this}roundRect(e,t,r,n,i,o){return this.drawShape(new x(e,t,r,n,i),o),this}drawShape(e,t){return this.endPoly(),this.shapePrimitives.push({shape:e,transform:t}),this}startPoly(e,t){let r=this._currentPoly;return r&&this.endPoly(),(r=new y).points.push(e,t),this._currentPoly=r,this}endPoly(e=!1){let t=this._currentPoly;return t&&t.points.length>2&&(t.closePath=e,this.shapePrimitives.push({shape:t})),this._currentPoly=null,this}_ensurePoly(e=!0){if(!this._currentPoly&&(this._currentPoly=new y,e)){let e=this.shapePrimitives[this.shapePrimitives.length-1];if(e){let t=e.shape.x,r=e.shape.y;if(!e.transform.isIdentity()){let n=e.transform,i=t;t=n.a*t+n.c*r+n.tx,r=n.b*i+n.d*r+n.ty}this._currentPoly.points.push(t,r)}else this._currentPoly.points.push(0,0)}}buildPath(){let e=this._graphicsPath2D;this.shapePrimitives.length=0,this._currentPoly=null;for(let t=0;t<e.instructions.length;t++){let r=e.instructions[t];this[r.action](...r.data)}this.finish()}get bounds(){let e=this._bounds;e.clear();let t=this.shapePrimitives;for(let r=0;r<t.length;r++){let n=t[r],i=n.shape.getBounds(K);n.transform?e.addRect(i,n.transform):e.addRect(i)}return e}}class Q{constructor(e){this.instructions=[],this.uid=(0,l.L)("graphicsPath"),this._dirty=!0,"string"==typeof e?d(e,this):this.instructions=e?.slice()??[]}get shapePath(){return this._shapePath||(this._shapePath=new Z(this)),this._dirty&&(this._dirty=!1,this._shapePath.buildPath()),this._shapePath}addPath(e,t){return e=e.clone(),this.instructions.push({action:"addPath",data:[e,t]}),this._dirty=!0,this}arc(...e){return this.instructions.push({action:"arc",data:e}),this._dirty=!0,this}arcTo(...e){return this.instructions.push({action:"arcTo",data:e}),this._dirty=!0,this}arcToSvg(...e){return this.instructions.push({action:"arcToSvg",data:e}),this._dirty=!0,this}bezierCurveTo(...e){return this.instructions.push({action:"bezierCurveTo",data:e}),this._dirty=!0,this}bezierCurveToShort(e,t,r,n,i){let o=this.instructions[this.instructions.length-1],s=this.getLastPoint(a.b.shared),l=0,u=0;if(o&&"bezierCurveTo"===o.action){l=o.data[2],u=o.data[3];let e=s.x,t=s.y;l=e+(e-l),u=t+(t-u)}else l=s.x,u=s.y;return this.instructions.push({action:"bezierCurveTo",data:[l,u,e,t,r,n,i]}),this._dirty=!0,this}closePath(){return this.instructions.push({action:"closePath",data:[]}),this._dirty=!0,this}ellipse(...e){return this.instructions.push({action:"ellipse",data:e}),this._dirty=!0,this}lineTo(...e){return this.instructions.push({action:"lineTo",data:e}),this._dirty=!0,this}moveTo(...e){return this.instructions.push({action:"moveTo",data:e}),this}quadraticCurveTo(...e){return this.instructions.push({action:"quadraticCurveTo",data:e}),this._dirty=!0,this}quadraticCurveToShort(e,t,r){let n=this.instructions[this.instructions.length-1],i=this.getLastPoint(a.b.shared),o=0,s=0;if(n&&"quadraticCurveTo"===n.action){o=n.data[0],s=n.data[1];let e=i.x,t=i.y;o=e+(e-o),s=t+(t-s)}else o=i.x,s=i.y;return this.instructions.push({action:"quadraticCurveTo",data:[o,s,e,t,r]}),this._dirty=!0,this}rect(e,t,r,n,i){return this.instructions.push({action:"rect",data:[e,t,r,n,i]}),this._dirty=!0,this}circle(e,t,r,n){return this.instructions.push({action:"circle",data:[e,t,r,n]}),this._dirty=!0,this}roundRect(...e){return this.instructions.push({action:"roundRect",data:e}),this._dirty=!0,this}poly(...e){return this.instructions.push({action:"poly",data:e}),this._dirty=!0,this}regularPoly(...e){return this.instructions.push({action:"regularPoly",data:e}),this._dirty=!0,this}roundPoly(...e){return this.instructions.push({action:"roundPoly",data:e}),this._dirty=!0,this}roundShape(...e){return this.instructions.push({action:"roundShape",data:e}),this._dirty=!0,this}filletRect(...e){return this.instructions.push({action:"filletRect",data:e}),this._dirty=!0,this}chamferRect(...e){return this.instructions.push({action:"chamferRect",data:e}),this._dirty=!0,this}star(e,t,r,n,i,o,a){i=i||n/2;let s=-1*Math.PI/2+o,l=2*r,u=2*Math.PI/l,c=[];for(let r=0;r<l;r++){let o=r%2?i:n,a=r*u+s;c.push(e+o*Math.cos(a),t+o*Math.sin(a))}return this.poly(c,!0,a),this}clone(e=!1){let t=new Q;if(e)for(let e=0;e<this.instructions.length;e++){let r=this.instructions[e];t.instructions.push({action:r.action,data:r.data.slice()})}else t.instructions=this.instructions.slice();return t}clear(){return this.instructions.length=0,this._dirty=!0,this}transform(e){if(e.isIdentity())return this;let t=e.a,r=e.b,n=e.c,i=e.d,o=e.tx,a=e.ty,s=0,l=0,u=0,c=0,h=0,d=0,p=0,m=0;for(let g=0;g<this.instructions.length;g++){let v=this.instructions[g],y=v.data;switch(v.action){case"moveTo":case"lineTo":s=y[0],l=y[1],y[0]=t*s+n*l+o,y[1]=r*s+i*l+a;break;case"bezierCurveTo":u=y[0],c=y[1],h=y[2],d=y[3],s=y[4],l=y[5],y[0]=t*u+n*c+o,y[1]=r*u+i*c+a,y[2]=t*h+n*d+o,y[3]=r*h+i*d+a,y[4]=t*s+n*l+o,y[5]=r*s+i*l+a;break;case"quadraticCurveTo":u=y[0],c=y[1],s=y[2],l=y[3],y[0]=t*u+n*c+o,y[1]=r*u+i*c+a,y[2]=t*s+n*l+o,y[3]=r*s+i*l+a;break;case"arcToSvg":s=y[5],l=y[6],p=y[0],m=y[1],y[0]=t*p+n*m,y[1]=r*p+i*m,y[5]=t*s+n*l+o,y[6]=r*s+i*l+a;break;case"circle":y[4]=J(y[3],e);break;case"rect":y[4]=J(y[4],e);break;case"ellipse":y[8]=J(y[8],e);break;case"roundRect":y[5]=J(y[5],e);break;case"addPath":y[0].transform(e);break;case"poly":y[2]=J(y[2],e);break;default:(0,f.R)("unknown transform action",v.action)}}return this._dirty=!0,this}get bounds(){return this.shapePath.bounds}getLastPoint(e){let t=this.instructions.length-1,r=this.instructions[t];if(!r)return e.x=0,e.y=0,e;for(;"closePath"===r.action;){if(--t<0)return e.x=0,e.y=0,e;r=this.instructions[t]}switch(r.action){case"moveTo":case"lineTo":e.x=r.data[0],e.y=r.data[1];break;case"quadraticCurveTo":e.x=r.data[2],e.y=r.data[3];break;case"bezierCurveTo":e.x=r.data[4],e.y=r.data[5];break;case"arc":case"arcToSvg":e.x=r.data[5],e.y=r.data[6];break;case"addPath":r.data[0].getLastPoint(e)}return e}}function J(e,t){return e?e.prepend(t):t.clone()}function ee(e,t){if("string"==typeof e){let t=document.createElement("div");t.innerHTML=e.trim(),e=t.querySelector("svg")}return et(e,{context:t,path:new Q},null,null),t}function et(e,t,r,n){let i,o,a,s,l,u,c,f,h,d,p,m,g,v,y,b,x=e.children,{fillStyle:_,strokeStyle:w}=en(e);switch(_&&r?r={...r,..._}:_&&(r=_),w&&n?n={...n,...w}:w&&(n=w),t.context.fillStyle=r,t.context.strokeStyle=n,e.nodeName.toLowerCase()){case"path":v=new Q(e.getAttribute("d")),t.context.path(v),r&&t.context.fill(),n&&t.context.stroke();break;case"circle":c=er(e,"cx",0),f=er(e,"cy",0),h=er(e,"r",0),t.context.ellipse(c,f,h,h),r&&t.context.fill(),n&&t.context.stroke();break;case"rect":i=er(e,"x",0),o=er(e,"y",0),y=er(e,"width",0),b=er(e,"height",0),d=er(e,"rx",0),p=er(e,"ry",0),d||p?t.context.roundRect(i,o,y,b,d||p):t.context.rect(i,o,y,b),r&&t.context.fill(),n&&t.context.stroke();break;case"ellipse":c=er(e,"cx",0),f=er(e,"cy",0),d=er(e,"rx",0),p=er(e,"ry",0),t.context.beginPath(),t.context.ellipse(c,f,d,p),r&&t.context.fill(),n&&t.context.stroke();break;case"line":a=er(e,"x1",0),s=er(e,"y1",0),l=er(e,"x2",0),u=er(e,"y2",0),t.context.beginPath(),t.context.moveTo(a,s),t.context.lineTo(l,u),n&&t.context.stroke();break;case"polygon":m=(g=e.getAttribute("points")).match(/\d+/g).map(e=>parseInt(e,10)),t.context.poly(m,!0),r&&t.context.fill(),n&&t.context.stroke();break;case"polyline":m=(g=e.getAttribute("points")).match(/\d+/g).map(e=>parseInt(e,10)),t.context.poly(m,!1),n&&t.context.stroke();break;case"g":case"svg":break;default:console.info(`[SVG parser] <${e.nodeName}> elements unsupported`)}for(let e=0;e<x.length;e++)et(x[e],t,r,n)}function er(e,t,r){let n=e.getAttribute(t);return n?Number(n):r}function en(e){let t=e.getAttribute("style"),r={},n={},o=!1,a=!1;if(t){let e=t.split(";");for(let t=0;t<e.length;t++){let[s,l]=e[t].split(":");switch(s){case"stroke":"none"!==l&&(r.color=i.Q.shared.setValue(l).toNumber(),a=!0);break;case"stroke-width":r.width=Number(l);break;case"fill":"none"!==l&&(o=!0,n.color=i.Q.shared.setValue(l).toNumber());break;case"fill-opacity":n.alpha=Number(l);break;case"stroke-opacity":r.alpha=Number(l);break;case"opacity":n.alpha=Number(l),r.alpha=Number(l)}}}else{let t=e.getAttribute("stroke");t&&"none"!==t&&(a=!0,r.color=i.Q.shared.setValue(t).toNumber(),r.width=er(e,"stroke-width",1));let s=e.getAttribute("fill");s&&"none"!==s&&(o=!0,n.color=i.Q.shared.setValue(s).toNumber())}return{strokeStyle:a?r:null,fillStyle:o?n:null}}var ei=r(87658);let eo=new a.b,ea=new o.u,es=class e extends n.A{constructor(){super(...arguments),this.uid=(0,l.L)("graphicsContext"),this.dirty=!0,this.batchMode="auto",this.instructions=[],this._activePath=new Q,this._transform=new o.u,this._fillStyle={...e.defaultFillStyle},this._strokeStyle={...e.defaultStrokeStyle},this._stateStack=[],this._tick=0,this._bounds=new c.c,this._boundsDirty=!0}clone(){let t=new e;return t.batchMode=this.batchMode,t.instructions=this.instructions.slice(),t._activePath=this._activePath.clone(),t._transform=this._transform.clone(),t._fillStyle={...this._fillStyle},t._strokeStyle={...this._strokeStyle},t._stateStack=this._stateStack.slice(),t._bounds=this._bounds.clone(),t._boundsDirty=!0,t}get fillStyle(){return this._fillStyle}set fillStyle(t){this._fillStyle=(0,ei.M)(t,e.defaultFillStyle)}get strokeStyle(){return this._strokeStyle}set strokeStyle(t){this._strokeStyle=(0,ei.M)(t,e.defaultStrokeStyle)}setFillStyle(t){return this._fillStyle=(0,ei.M)(t,e.defaultFillStyle),this}setStrokeStyle(t){return this._strokeStyle=(0,ei.M)(t,e.defaultStrokeStyle),this}texture(e,t,r,n,o,a){return this.instructions.push({action:"texture",data:{image:e,dx:r||0,dy:n||0,dw:o||e.frame.width,dh:a||e.frame.height,transform:this._transform.clone(),alpha:this._fillStyle.alpha,style:t?i.Q.shared.setValue(t).toNumber():0xffffff}}),this.onUpdate(),this}beginPath(){return this._activePath=new Q,this}fill(t,r){let n,i=this.instructions[this.instructions.length-1];return(n=0===this._tick&&i&&"stroke"===i.action?i.data.path:this._activePath.clone())&&(null!=t&&(void 0!==r&&"number"==typeof t&&((0,u.t)("8.0.0","GraphicsContext.fill(color, alpha) is deprecated, use GraphicsContext.fill({ color, alpha }) instead"),t={color:t,alpha:r}),this._fillStyle=(0,ei.M)(t,e.defaultFillStyle)),this.instructions.push({action:"fill",data:{style:this.fillStyle,path:n}}),this.onUpdate(),this._initNextPathLocation(),this._tick=0),this}_initNextPathLocation(){let{x:e,y:t}=this._activePath.getLastPoint(a.b.shared);this._activePath.clear(),this._activePath.moveTo(e,t)}stroke(t){let r,n=this.instructions[this.instructions.length-1];return(r=0===this._tick&&n&&"fill"===n.action?n.data.path:this._activePath.clone())&&(null!=t&&(this._strokeStyle=(0,ei.M)(t,e.defaultStrokeStyle)),this.instructions.push({action:"stroke",data:{style:this.strokeStyle,path:r}}),this.onUpdate(),this._initNextPathLocation(),this._tick=0),this}cut(){for(let e=0;e<2;e++){let t=this.instructions[this.instructions.length-1-e],r=this._activePath.clone();if(t&&("stroke"===t.action||"fill"===t.action))if(t.data.hole)t.data.hole.addPath(r);else{t.data.hole=r;break}}return this._initNextPathLocation(),this}arc(e,t,r,n,i,o){this._tick++;let a=this._transform;return this._activePath.arc(a.a*e+a.c*t+a.tx,a.b*e+a.d*t+a.ty,r,n,i,o),this}arcTo(e,t,r,n,i){this._tick++;let o=this._transform;return this._activePath.arcTo(o.a*e+o.c*t+o.tx,o.b*e+o.d*t+o.ty,o.a*r+o.c*n+o.tx,o.b*r+o.d*n+o.ty,i),this}arcToSvg(e,t,r,n,i,o,a){this._tick++;let s=this._transform;return this._activePath.arcToSvg(e,t,r,n,i,s.a*o+s.c*a+s.tx,s.b*o+s.d*a+s.ty),this}bezierCurveTo(e,t,r,n,i,o,a){this._tick++;let s=this._transform;return this._activePath.bezierCurveTo(s.a*e+s.c*t+s.tx,s.b*e+s.d*t+s.ty,s.a*r+s.c*n+s.tx,s.b*r+s.d*n+s.ty,s.a*i+s.c*o+s.tx,s.b*i+s.d*o+s.ty,a),this}closePath(){return this._tick++,this._activePath?.closePath(),this}ellipse(e,t,r,n){return this._tick++,this._activePath.ellipse(e,t,r,n,this._transform.clone()),this}circle(e,t,r){return this._tick++,this._activePath.circle(e,t,r,this._transform.clone()),this}path(e){return this._tick++,this._activePath.addPath(e,this._transform.clone()),this}lineTo(e,t){this._tick++;let r=this._transform;return this._activePath.lineTo(r.a*e+r.c*t+r.tx,r.b*e+r.d*t+r.ty),this}moveTo(e,t){this._tick++;let r=this._transform,n=this._activePath.instructions,i=r.a*e+r.c*t+r.tx,o=r.b*e+r.d*t+r.ty;return 1===n.length&&"moveTo"===n[0].action?(n[0].data[0]=i,n[0].data[1]=o):this._activePath.moveTo(i,o),this}quadraticCurveTo(e,t,r,n,i){this._tick++;let o=this._transform;return this._activePath.quadraticCurveTo(o.a*e+o.c*t+o.tx,o.b*e+o.d*t+o.ty,o.a*r+o.c*n+o.tx,o.b*r+o.d*n+o.ty,i),this}rect(e,t,r,n){return this._tick++,this._activePath.rect(e,t,r,n,this._transform.clone()),this}roundRect(e,t,r,n,i){return this._tick++,this._activePath.roundRect(e,t,r,n,i,this._transform.clone()),this}poly(e,t){return this._tick++,this._activePath.poly(e,t,this._transform.clone()),this}regularPoly(e,t,r,n,i=0,o){return this._tick++,this._activePath.regularPoly(e,t,r,n,i,o),this}roundPoly(e,t,r,n,i,o){return this._tick++,this._activePath.roundPoly(e,t,r,n,i,o),this}roundShape(e,t,r,n){return this._tick++,this._activePath.roundShape(e,t,r,n),this}filletRect(e,t,r,n,i){return this._tick++,this._activePath.filletRect(e,t,r,n,i),this}chamferRect(e,t,r,n,i,o){return this._tick++,this._activePath.chamferRect(e,t,r,n,i,o),this}star(e,t,r,n,i=0,o=0){return this._tick++,this._activePath.star(e,t,r,n,i,o,this._transform.clone()),this}svg(e){return this._tick++,ee(e,this),this}restore(){let e=this._stateStack.pop();return e&&(this._transform=e.transform,this._fillStyle=e.fillStyle,this._strokeStyle=e.strokeStyle),this}save(){return this._stateStack.push({transform:this._transform.clone(),fillStyle:{...this._fillStyle},strokeStyle:{...this._strokeStyle}}),this}getTransform(){return this._transform}resetTransform(){return this._transform.identity(),this}rotate(e){return this._transform.rotate(e),this}scale(e,t=e){return this._transform.scale(e,t),this}setTransform(e,t,r,n,i,a){return e instanceof o.u?this._transform.set(e.a,e.b,e.c,e.d,e.tx,e.ty):this._transform.set(e,t,r,n,i,a),this}transform(e,t,r,n,i,a){return e instanceof o.u?this._transform.append(e):(ea.set(e,t,r,n,i,a),this._transform.append(ea)),this}translate(e,t=e){return this._transform.translate(e,t),this}clear(){return this.instructions.length=0,this.resetTransform(),this.onUpdate(),this}onUpdate(){this.dirty||(this.emit("update",this,16),this.dirty=!0,this._boundsDirty=!0)}get bounds(){if(!this._boundsDirty)return this._bounds;let e=this._bounds;e.clear();for(let t=0;t<this.instructions.length;t++){let r=this.instructions[t],n=r.action;if("fill"===n){let t=r.data;e.addBounds(t.path.bounds)}else if("texture"===n){let t=r.data;e.addFrame(t.dx,t.dy,t.dx+t.dw,t.dy+t.dh,t.transform)}if("stroke"===n){let t=r.data,n=t.style.width/2,i=t.path.bounds;e.addFrame(i.minX-n,i.minY-n,i.maxX+n,i.maxY+n)}}return e}containsPoint(e){if(!this.bounds.containsPoint(e.x,e.y))return!1;let t=this.instructions,r=!1;for(let n=0;n<t.length;n++){let i=t[n],o=i.data,a=o.path;if(!i.action||!a)continue;let s=o.style,l=a.shapePath.shapePrimitives;for(let t=0;t<l.length;t++){let n=l[t].shape;if(!s||!n)continue;let a=l[t].transform,u=a?a.applyInverse(e,eo):e;r="fill"===i.action?n.contains(u.x,u.y):n.strokeContains(u.x,u.y,s.width);let c=o.hole;if(c){let e=c.shapePath?.shapePrimitives;if(e)for(let t=0;t<e.length;t++)e[t].shape.contains(u.x,u.y)&&(r=!1)}if(r)return!0}}return r}destroy(e=!1){if(this._stateStack.length=0,this._transform=null,this.emit("destroy",this),this.removeAllListeners(),"boolean"==typeof e?e:e?.texture){let t="boolean"==typeof e?e:e?.textureSource;this._fillStyle.texture&&this._fillStyle.texture.destroy(t),this._strokeStyle.texture&&this._strokeStyle.texture.destroy(t)}this._fillStyle=null,this._strokeStyle=null,this.instructions=null,this._activePath=null,this._bounds=null,this._stateStack=null,this.customShader=null,this._transform=null}};es.defaultFillStyle={color:0xffffff,alpha:1,texture:s.g.WHITE,matrix:null,fill:null},es.defaultStrokeStyle={width:1,color:0xffffff,alpha:1,alignment:.5,miterLimit:10,cap:"butt",join:"miter",texture:s.g.WHITE,matrix:null,fill:null};let el=es},54547:function(e,t,r){"use strict";r.d(t,{GH:()=>$});var n=r(43071),i=r(28022),o=r(37313),a=r(82825),s=r(73644),l=r(92078),u=r(45584);function c(e,t,r,n,i,o,a,s=null){let l=0;r*=t,i*=o;let u=s.a,f=s.b,h=s.c,d=s.d,p=s.tx,m=s.ty;for(;l<a;){let a=e[r],s=e[r+1];n[i]=u*a+h*s+p,n[i+1]=f*a+d*s+m,i+=o,r+=t,l++}}function f(e,t,r,n){let i=0;for(t*=r;i<n;)e[t]=0,e[t+1]=0,t+=r,i++}function h(e,t,r,n,i){let o=t.a,a=t.b,s=t.c,l=t.d,u=t.tx,c=t.ty;r=r||0,n=n||2,i=i||e.length/n-r;let f=r*n;for(let t=0;t<i;t++){let t=e[f],r=e[f+1];e[f]=o*t+s*r+u,e[f+1]=a*t+l*r+c,f+=n}}var d=r(27633),p=r(73737);let m={build(e,t){let r,n,i,o,a,s;if("circle"===e.type){let t=e;r=t.x,n=t.y,a=s=t.radius,i=o=0}else if("ellipse"===e.type){let t=e;r=t.x,n=t.y,a=t.halfWidth,s=t.halfHeight,i=o=0}else{let t=e,l=t.width/2,u=t.height/2;r=t.x+l,n=t.y+u,a=s=Math.max(0,Math.min(t.radius,Math.min(l,u))),i=l-a,o=u-s}if(!(a>=0&&s>=0&&i>=0&&o>=0))return t;let l=Math.ceil(2.3*Math.sqrt(a+s)),u=8*l+4*!!i+4*!!o;if(0===u)return t;if(0===l)return t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o,t;let c=0,f=4*l+2*!!i+2,h=f,d=u,p=i+a,m=o,g=r+p,v=r-p,y=n+m;if(t[c++]=g,t[c++]=y,t[--f]=y,t[--f]=v,o){let e=n-m;t[h++]=v,t[h++]=e,t[--d]=e,t[--d]=g}for(let e=1;e<l;e++){let u=Math.PI/2*(e/l),p=i+Math.cos(u)*a,m=o+Math.sin(u)*s,g=r+p,v=r-p,y=n+m,b=n-m;t[c++]=g,t[c++]=y,t[--f]=y,t[--f]=v,t[h++]=v,t[h++]=b,t[--d]=b,t[--d]=g}p=i,m=o+s,g=r+p,v=r-p,y=n+m;let b=n-m;return t[c++]=g,t[c++]=y,t[--d]=b,t[--d]=g,i&&(t[c++]=v,t[c++]=y,t[--d]=b,t[--d]=v),t},triangulate(e,t,r,n,i,o){if(0===e.length)return;let a=0,s=0;for(let t=0;t<e.length;t+=2)a+=e[t],s+=e[t+1];a/=e.length/2,s/=e.length/2;let l=n;t[l*r]=a,t[l*r+1]=s;let u=l++;for(let n=0;n<e.length;n+=2)t[l*r]=e[n],t[l*r+1]=e[n+1],n>0&&(i[o++]=l,i[o++]=u,i[o++]=l-1),l++;i[o++]=u+1,i[o++]=u,i[o++]=l-1}};var g=r(58569);function v(e){let t=e.length;if(t<6)return 1;let r=0;for(let n=0,i=e[t-2],o=e[t-1];n<t;n+=2){let t=e[n],a=e[n+1];r+=(t-i)*(a+o),i=t,o=a}return r<0?-1:1}function y(e,t,r,n,i,o,a,s){let l,u,c=e-r*i,f=t-n*i,h=e+r*o,d=t+n*o;a?(l=n,u=-r):(l=-n,u=r);let p=c+l,m=f+u,g=h+l,v=d+u;return s.push(p,m),s.push(g,v),2}function b(e,t,r,n,i,o,a,s){let l=r-e,u=n-t,c=Math.atan2(l,u),f=Math.atan2(i-e,o-t);s&&c<f?c+=2*Math.PI:!s&&c>f&&(f+=2*Math.PI);let h=c,d=f-c,p=Math.sqrt(l*l+u*u),m=(15*Math.abs(d)*Math.sqrt(p)/Math.PI|0)+1,g=d/m;if(h+=g,s){a.push(e,t),a.push(r,n);for(let r=1,n=h;r<m;r++,n+=g)a.push(e,t),a.push(e+Math.sin(n)*p,t+Math.cos(n)*p);a.push(e,t),a.push(i,o)}else{a.push(r,n),a.push(e,t);for(let r=1,n=h;r<m;r++,n+=g)a.push(e+Math.sin(n)*p,t+Math.cos(n)*p),a.push(e,t);a.push(i,o),a.push(e,t)}return 2*m}function x(e,t,r,n,i,o,a,s,l){let u=1e-4;if(0===e.length)return;let c=t,f=c.alignment;if(.5!==t.alignment){let t=v(e);r&&(t*=-1),f=(f-.5)*t+.5}let h=new g.b(e[0],e[1]),d=new g.b(e[e.length-2],e[e.length-1]),p=n,m=Math.abs(h.x-d.x)<u&&Math.abs(h.y-d.y)<u;if(p){e=e.slice(),m&&(e.pop(),e.pop(),d.set(e[e.length-2],e[e.length-1]));let t=(h.x+d.x)*.5,r=(d.y+h.y)*.5;e.unshift(t,r),e.push(t,r)}let x=i,_=e.length/2,w=e.length,S=x.length/2,A=c.width/2,E=A*A,C=c.miterLimit*c.miterLimit,k=e[0],O=e[1],I=e[2],T=e[3],M=0,R=0,P=-(O-T),$=k-I,B=0,N=0,z=Math.sqrt(P*P+$*$);P/=z,$/=z,P*=A,$*=A;let L=f,j=(1-L)*2,F=2*L;p||("round"===c.cap?w+=b(k-P*(j-F)*.5,O-$*(j-F)*.5,k-P*j,O-$*j,k+P*F,O+$*F,x,!0)+2:"square"===c.cap&&(w+=y(k,O,P,$,j,F,!0,x))),x.push(k-P*j,O-$*j),x.push(k+P*F,O+$*F);for(let t=1;t<_-1;++t){k=e[(t-1)*2],O=e[(t-1)*2+1],I=e[2*t],T=e[2*t+1],M=e[(t+1)*2],R=e[(t+1)*2+1],z=Math.sqrt((P=-(O-T))*P+($=k-I)*$),P/=z,$/=z,P*=A,$*=A,z=Math.sqrt((B=-(T-R))*B+(N=I-M)*N),B/=z,N/=z,B*=A,N*=A;let r=I-k,n=O-T,i=I-M,o=R-T,a=r*i+n*o,s=n*i-o*r,l=s<0;if(Math.abs(s)<.001*Math.abs(a)){x.push(I-P*j,T-$*j),x.push(I+P*F,T+$*F),a>=0&&("round"===c.join?w+=b(I,T,I-P*j,T-$*j,I-B*j,T-N*j,x,!1)+4:w+=2,x.push(I-B*F,T-N*F),x.push(I+B*j,T+N*j));continue}let u=(-P+k)*(-$+T)-(-P+I)*(-$+O),f=(-B+M)*(-N+T)-(-B+I)*(-N+R),h=(r*f-i*u)/s,d=(o*u-n*f)/s,p=(h-I)*(h-I)+(d-T)*(d-T),m=I+(h-I)*j,g=T+(d-T)*j,v=I-(h-I)*F,y=T-(d-T)*F,_=l?j:F;p<=Math.min(r*r+n*n,i*i+o*o)+_*_*E?"bevel"===c.join||p/E>C?(l?(x.push(m,g),x.push(I+P*F,T+$*F),x.push(m,g),x.push(I+B*F,T+N*F)):(x.push(I-P*j,T-$*j),x.push(v,y),x.push(I-B*j,T-N*j),x.push(v,y)),w+=2):"round"===c.join?l?(x.push(m,g),x.push(I+P*F,T+$*F),w+=b(I,T,I+P*F,T+$*F,I+B*F,T+N*F,x,!0)+4,x.push(m,g),x.push(I+B*F,T+N*F)):(x.push(I-P*j,T-$*j),x.push(v,y),w+=b(I,T,I-P*j,T-$*j,I-B*j,T-N*j,x,!1)+4,x.push(I-B*j,T-N*j),x.push(v,y)):(x.push(m,g),x.push(v,y)):(x.push(I-P*j,T-$*j),x.push(I+P*F,T+$*F),"round"===c.join?l?w+=b(I,T,I+P*F,T+$*F,I+B*F,T+N*F,x,!0)+2:w+=b(I,T,I-P*j,T-$*j,I-B*j,T-N*j,x,!1)+2:"miter"===c.join&&p/E<=C&&(l?(x.push(v,y),x.push(v,y)):(x.push(m,g),x.push(m,g)),w+=2),x.push(I-B*j,T-N*j),x.push(I+B*F,T+N*F),w+=2)}k=e[(_-2)*2],O=e[(_-2)*2+1],I=e[(_-1)*2],z=Math.sqrt((P=-(O-(T=e[(_-1)*2+1])))*P+($=k-I)*$),P/=z,$/=z,P*=A,$*=A,x.push(I-P*j,T-$*j),x.push(I+P*F,T+$*F),p||("round"===c.cap?w+=b(I-P*(j-F)*.5,T-$*(j-F)*.5,I-P*j,T-$*j,I+P*F,T+$*F,x,!1)+2:"square"===c.cap&&(w+=y(I,T,P,$,j,F,!1,x)));let D=1e-8;for(let e=S;e<w+S-2;++e)k=x[2*e],O=x[2*e+1],I=x[(e+1)*2],T=x[(e+1)*2+1],M=x[(e+2)*2],Math.abs(k*(T-(R=x[(e+2)*2+1]))+I*(R-O)+M*(O-T))<D||s.push(e,e+1,e+2)}var _=r(6935);function w(e,t,r,n,i,o,a){let s=_(e,t,2);if(!s)return;for(let e=0;e<s.length;e+=3)o[a++]=s[e]+i,o[a++]=s[e+1]+i,o[a++]=s[e+2]+i;let l=i*n;for(let t=0;t<e.length;t+=2)r[l]=e[t],r[l+1]=e[t+1],l+=n}let S=[],A={build(e,t){for(let r=0;r<e.points.length;r++)t[r]=e.points[r];return t},triangulate(e,t,r,n,i,o){w(e,S,t,r,n,i,o)}},E={rectangle:{build(e,t){let r=e,n=r.x,i=r.y,o=r.width,a=r.height;return o>=0&&a>=0&&(t[0]=n,t[1]=i,t[2]=n+o,t[3]=i,t[4]=n+o,t[5]=i+a,t[6]=n,t[7]=i+a),t},triangulate(e,t,r,n,i,o){let a=0;t[(n*=r)+a]=e[0],t[n+a+1]=e[1],a+=r,t[n+a]=e[2],t[n+a+1]=e[3],a+=r,t[n+a]=e[6],t[n+a+1]=e[7],a+=r,t[n+a]=e[4],t[n+a+1]=e[5],a+=r;let s=n/r;i[o++]=s,i[o++]=s+1,i[o++]=s+2,i[o++]=s+1,i[o++]=s+3,i[o++]=s+2}},polygon:A,triangle:{build:(e,t)=>(t[0]=e.x,t[1]=e.y,t[2]=e.x2,t[3]=e.y2,t[4]=e.x3,t[5]=e.y3,t),triangulate(e,t,r,n,i,o){let a=0;t[(n*=r)+a]=e[0],t[n+a+1]=e[1],a+=r,t[n+a]=e[2],t[n+a+1]=e[3],a+=r,t[n+a]=e[4],t[n+a+1]=e[5];let s=n/r;i[o++]=s,i[o++]=s+1,i[o++]=s+2}},circle:m,ellipse:m,roundedRectangle:m},C=new u.M;function k(e,t){let{geometryData:r,batches:n}=t;n.length=0,r.indices.length=0,r.vertices.length=0,r.uvs.length=0;for(let t=0;t<e.instructions.length;t++){let i=e.instructions[t];if("texture"===i.action)O(i.data,n,r);else if("fill"===i.action||"stroke"===i.action){let e="stroke"===i.action,t=i.data.path.shapePath,o=i.data.style,a=i.data.hole;e&&a&&I(a.shapePath,o,null,!0,n,r),I(t,o,a,e,n,r)}}}function O(e,t,r){let{vertices:n,uvs:i,indices:o}=r,a=o.length,s=n.length/2,u=[],c=E.rectangle,f=C,d=e.image;f.x=e.dx,f.y=e.dy,f.width=e.dw,f.height=e.dh;let m=e.transform;c.build(f,u),m&&h(u,m),c.triangulate(u,n,2,s,o,a);let g=d.uvs;i.push(g.x0,g.y0,g.x1,g.y1,g.x3,g.y3,g.x2,g.y2);let v=l.Z.get(p.G);v.indexOffset=a,v.indexSize=o.length-a,v.vertexOffset=s,v.vertexSize=n.length/2-s,v.color=e.style,v.alpha=e.alpha,v.texture=d,v.geometryData=r,t.push(v)}function I(e,t,r,n,i,o){let{vertices:a,uvs:s,indices:u}=o,m=e.shapePrimitives.length-1;e.shapePrimitives.forEach(({shape:e,transform:g},v)=>{let y=u.length,b=a.length/2,_=[],S=E[e.type];if(S.build(e,_),g&&h(_,g),n)x(_,t,!1,e.closePath??!0,a,2,b,u,y);else if(r&&m===v){0!==m&&console.warn("[Pixi Graphics] only the last shape have be cut out");let e=[],t=_.slice();T(r.shapePath).forEach(r=>{e.push(t.length/2),t.push(...r)}),w(t,e,a,2,b,u,y)}else S.triangulate(_,a,2,b,u,y);let A=s.length/2,C=t.texture;if(C!==d.g.WHITE){let e=t.matrix;g&&e.append(g.clone().invert()),c(a,2,b,s,A,2,a.length/2-b,e)}else f(s,A,2,a.length/2-b);let k=l.Z.get(p.G);k.indexOffset=y,k.indexSize=u.length-y,k.vertexOffset=b,k.vertexSize=a.length/2-b,k.color=t.color,k.alpha=t.alpha,k.texture=C,k.geometryData=o,i.push(k)})}function T(e){if(!e)return[];let t=e.shapePrimitives,r=[];for(let e=0;e<t.length;e++){let n=t[e].shape,i=[];E[n.type].build(n,i),r.push(i)}return r}class M{constructor(){this.batches=[],this.geometryData={vertices:[],uvs:[],indices:[]}}}class R{constructor(){this.geometry=new i.J,this.instructions=new s.L}init(){this.instructions.reset()}}let P=class e{constructor(){this._activeBatchers=[],this._gpuContextHash={},this._graphicsDataContextHash=Object.create(null),this._needsContextNeedsRebuild=[]}init(t){e.defaultOptions.bezierSmoothness=t?.bezierSmoothness??e.defaultOptions.bezierSmoothness}prerender(){this._returnActiveBatchers()}getContextRenderData(e){return this._graphicsDataContextHash[e.uid]||this._initContextRenderData(e)}updateGpuContext(e){let t=this._gpuContextHash[e.uid]||this._initContext(e);if(e.dirty){t?this._cleanGraphicsContextData(e):t=this._initContext(e),k(e,t);let r=e.batchMode;e.customShader||"no-batch"===r?t.isBatchable=!1:"auto"===r&&(t.isBatchable=t.geometryData.vertices.length<400),e.dirty=!1}return t}getGpuContext(e){return this._gpuContextHash[e.uid]||this._initContext(e)}_returnActiveBatchers(){for(let e=0;e<this._activeBatchers.length;e++)l.Z.return(this._activeBatchers[e]);this._activeBatchers.length=0}_initContextRenderData(e){let t=l.Z.get(R),{batches:r,geometryData:n}=this._gpuContextHash[e.uid],i=n.vertices.length,s=n.indices.length;for(let e=0;e<r.length;e++)r[e].applyTransform=!1;let u=l.Z.get(a.i);this._activeBatchers.push(u),u.ensureAttributeBuffer(i),u.ensureIndexBuffer(s),u.begin();for(let e=0;e<r.length;e++){let t=r[e];u.add(t)}u.finish(t.instructions);let c=t.geometry;c.indexBuffer.setDataWithSize(u.indexBuffer,u.indexSize,!0),c.buffers[0].setDataWithSize(u.attributeBuffer.float32View,u.attributeSize,!0);let f=u.batches;for(let e=0;e<f.length;e++){let t=f[e];t.bindGroup=(0,o.w)(t.textures.textures,t.textures.count)}return this._graphicsDataContextHash[e.uid]=t,t}_initContext(e){let t=new M;return this._gpuContextHash[e.uid]=t,e.on("update",this.onGraphicsContextUpdate,this),e.on("destroy",this.onGraphicsContextDestroy,this),this._gpuContextHash[e.uid]}onGraphicsContextUpdate(e){this._needsContextNeedsRebuild.push(e)}onGraphicsContextDestroy(e){this._cleanGraphicsContextData(e),e.off("update",this.onGraphicsContextUpdate,this),e.off("destroy",this.onGraphicsContextDestroy,this),this._gpuContextHash[e.uid]=null}_cleanGraphicsContextData(e){let t=this._gpuContextHash[e.uid];!t.isBatchable&&this._graphicsDataContextHash[e.uid]&&(l.Z.return(this.getContextRenderData(e)),this._graphicsDataContextHash[e.uid]=null),t.batches&&t.batches.forEach(e=>{l.Z.return(e)})}destroy(){for(let e of this._needsContextNeedsRebuild)this._gpuContextHash[e.uid]&&this.onGraphicsContextDestroy(e);this._needsContextNeedsRebuild.length=0}};P.extension={type:[n.Ag.WebGLSystem,n.Ag.WebGPUSystem,n.Ag.CanvasSystem],name:"graphicsContext"},P.defaultOptions={bezierSmoothness:.5};let $=P},70448:function(e,t,r){"use strict";r.d(t,{_:()=>c});var n=r(51170),i=r(98370),o=r(96253),a=r(32617),s=r(27633),l=r(94849);let u=class e{constructor(e,t,r,n){this.uid=(0,l.L)("fillGradient"),this.type="linear",this.gradientStops=[],this.x0=e,this.y0=t,this.x1=r,this.y1=n}addColorStop(e,t){return this.gradientStops.push({offset:e,color:n.Q.shared.setValue(t).toHex()}),this}buildLinearGradient(){let t=e.defaultTextureSize,{gradientStops:r}=this,n=i.e.get().createCanvas();n.width=t,n.height=t;let l=n.getContext("2d"),u=l.createLinearGradient(0,0,e.defaultTextureSize,1);for(let e=0;e<r.length;e++){let t=r[e];u.addColorStop(t.offset,t.color)}l.fillStyle=u,l.fillRect(0,0,t,t),this.texture=new s.g({source:new a.b({resource:n,addressModeU:"clamp-to-edge",addressModeV:"repeat"})});let{x0:c,y0:f,x1:h,y1:d}=this,p=new o.u,m=h-c,g=d-f,v=Math.sqrt(m*m+g*g),y=Math.atan2(g,m);p.translate(-c,-f),p.scale(1/t,1/t),p.rotate(-y),p.scale(256/v,1),this.transform=p}};u.defaultTextureSize=256;let c=u},46362:function(e,t,r){"use strict";r.d(t,{m:()=>a});var n=r(96253),i=r(94849);let o={repeat:{addressModeU:"repeat",addressModeV:"repeat"},"repeat-x":{addressModeU:"repeat",addressModeV:"clamp-to-edge"},"repeat-y":{addressModeU:"clamp-to-edge",addressModeV:"repeat"},"no-repeat":{addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge"}};class a{constructor(e,t){this.uid=(0,i.L)("fillPattern"),this.transform=new n.u,this.texture=e,this.transform.scale(1/e.frame.width,1/e.frame.height),t&&(e.source.style.addressModeU=o[t].addressModeU,e.source.style.addressModeV=o[t].addressModeV)}setTransform(e){let t=this.texture;this.transform.copyFrom(e),this.transform.invert(),this.transform.scale(1/t.frame.width,1/t.frame.height)}}},87658:function(e,t,r){"use strict";r.d(t,{M:()=>l});var n=r(51170),i=r(96253),o=r(27633),a=r(70448),s=r(46362);function l(e,t){let r,l;if(null==e)return null;if(e?.fill?(l=e.fill,r={...t,...e}):(l=e,r=t),n.Q.isColorLike(l)){let e=n.Q.shared.setValue(l??0);return{...r,color:e.toNumber(),alpha:1===e.alpha?r.alpha:e.alpha,texture:o.g.WHITE}}if(l instanceof s.m){let e=l;return{...r,color:0xffffff,texture:e.texture,matrix:e.transform,fill:r.fill??null}}if(l instanceof a._){let e=l;return e.buildLinearGradient(),{...r,color:0xffffff,texture:e.texture,matrix:e.transform}}let u={...t,...e};if(u.texture){if(u.texture!==o.g.WHITE){let e=u.matrix?.invert()||new i.u;e.scale(1/u.texture.frame.width,1/u.texture.frame.height),u.matrix=e}let e=u.texture.source.style;"clamp-to-edge"===e.addressMode&&(e.addressMode="repeat")}let c=n.Q.shared.setValue(u.color);return u.alpha*=c.alpha,u.color=c.toNumber(),u.matrix=u.matrix?u.matrix.clone():null,u}},97088:function(e,t,r){"use strict";r.d(t,{k:()=>s});var n=r(52e3),i=r(27633),o=r(46260),a=r(21873);class s extends a.mc{constructor(e=i.g.EMPTY){e instanceof i.g&&(e={texture:e});const{texture:t,anchor:r,roundPixels:o,width:a,height:s,...l}=e;super({label:"Sprite",...l}),this.renderPipeId="sprite",this.batched=!0,this._didSpriteUpdate=!1,this._bounds={minX:0,maxX:1,minY:0,maxY:0},this._sourceBounds={minX:0,maxX:1,minY:0,maxY:0},this._boundsDirty=!0,this._sourceBoundsDirty=!0,this._roundPixels=0,this._anchor=new n.o({_onUpdate:()=>{this.onViewUpdate()}}),r?this.anchor=r:t.defaultAnchor&&(this.anchor=t.defaultAnchor),this.texture=t,this.allowChildren=!1,this.roundPixels=o??!1,a&&(this.width=a),s&&(this.height=s)}static from(e,t=!1){return new s(e instanceof i.g?e:i.g.from(e,t))}set texture(e){e||(e=i.g.EMPTY);let t=this._texture;t!==e&&(t&&t.dynamic&&t.off("update",this.onViewUpdate,this),e.dynamic&&e.on("update",this.onViewUpdate,this),this._texture=e,this.onViewUpdate())}get texture(){return this._texture}get bounds(){return this._boundsDirty&&(this._updateBounds(),this._boundsDirty=!1),this._bounds}get sourceBounds(){return this._sourceBoundsDirty&&(this._updateSourceBounds(),this._sourceBoundsDirty=!1),this._sourceBounds}containsPoint(e){let t=this.sourceBounds;return!!(e.x>=t.maxX)&&!!(e.x<=t.minX)&&!!(e.y>=t.maxY)&&!!(e.y<=t.minY)}addBounds(e){let t=this._texture.trim?this.sourceBounds:this.bounds;e.addFrame(t.minX,t.minY,t.maxX,t.maxY)}onViewUpdate(){this._didChangeId+=4096,this._didSpriteUpdate=!0,this._sourceBoundsDirty=this._boundsDirty=!0,!this.didViewUpdate&&(this.didViewUpdate=!0,this.renderGroup&&this.renderGroup.onChildViewUpdate(this))}_updateBounds(){(0,o.y)(this._bounds,this._anchor,this._texture,0)}_updateSourceBounds(){let e=this._anchor,t=this._texture,r=this._sourceBounds,{width:n,height:i}=t.orig;r.maxX=-e._x*n,r.minX=r.maxX+n,r.maxY=-e._y*i,r.minY=r.maxY+i}destroy(e=!1){if(super.destroy(e),"boolean"==typeof e?e:e?.texture){let t="boolean"==typeof e?e:e?.textureSource;this._texture.destroy(t)}this._texture=null,this._bounds=null,this._sourceBounds=null,this._anchor=null}get anchor(){return this._anchor}set anchor(e){"number"==typeof e?this._anchor.set(e):this._anchor.copyFrom(e)}get roundPixels(){return!!this._roundPixels}set roundPixels(e){this._roundPixels=+!!e}get width(){return Math.abs(this.scale.x)*this._texture.orig.width}set width(e){this._setWidth(e,this._texture.orig.width)}get height(){return Math.abs(this.scale.y)*this._texture.orig.height}set height(e){this._setHeight(e,this._texture.orig.height)}getSize(e){return e||(e={}),e.width=Math.abs(this.scale.x)*this._texture.orig.width,e.height=Math.abs(this.scale.y)*this._texture.orig.height,e}setSize(e,t){let r,n;"object"!=typeof e?(r=e,n=t??e):(r=e.width,n=e.height??e.width),void 0!==r&&this._setWidth(r,this._texture.orig.width),void 0!==n&&this._setHeight(n,this._texture.orig.height)}}},94951:function(e,t,r){"use strict";r.d(t,{x:()=>f});var n=r(60588),i=r(51170),o=r(55746),a=r(70448),s=r(17464),l=r(87658),u=r(25631);let c=class e extends n.A{constructor(t={}){super(),h(t);const r={...e.defaultTextStyle,...t};for(const e in r)this[e]=r[e];this.update()}get align(){return this._align}set align(e){this._align=e,this.update()}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords=e,this.update()}get dropShadow(){return this._dropShadow}set dropShadow(t){null!==t&&"object"==typeof t?this._dropShadow={...e.defaultDropShadow,...t}:this._dropShadow=t?{...e.defaultDropShadow}:null,this.update()}get fontFamily(){return this._fontFamily}set fontFamily(e){this._fontFamily=e,this.update()}get fontSize(){return this._fontSize}set fontSize(e){"string"==typeof e?this._fontSize=parseInt(e,10):this._fontSize=e,this.update()}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle=e,this.update()}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant=e,this.update()}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight=e,this.update()}get leading(){return this._leading}set leading(e){this._leading=e,this.update()}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing=e,this.update()}get lineHeight(){return this._lineHeight}set lineHeight(e){this._lineHeight=e,this.update()}get padding(){return this._padding}set padding(e){this._padding=e,this.update()}get trim(){return this._trim}set trim(e){this._trim=e,this.update()}get textBaseline(){return this._textBaseline}set textBaseline(e){this._textBaseline=e,this.update()}get whiteSpace(){return this._whiteSpace}set whiteSpace(e){this._whiteSpace=e,this.update()}get wordWrap(){return this._wordWrap}set wordWrap(e){this._wordWrap=e,this.update()}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(e){this._wordWrapWidth=e,this.update()}get fill(){return this._originalFill}set fill(e){e!==this._originalFill&&(this._originalFill=e,this._fill=(0,l.M)(0===e?"black":e,s.T.defaultFillStyle),this.update())}get stroke(){return this._originalStroke}set stroke(e){e!==this._originalStroke&&(this._originalStroke=e,this._stroke=(0,l.M)(e,s.T.defaultStrokeStyle),this.update())}_generateKey(){return this._styleKey=(0,u.V)(this),this._styleKey}update(){this._styleKey=null,this.emit("update",this)}reset(){let t=e.defaultTextStyle;for(let e in t)this[e]=t[e]}get styleKey(){return this._styleKey||this._generateKey()}clone(){return new e({align:this.align,breakWords:this.breakWords,dropShadow:this.dropShadow,fill:this._fill,fontFamily:this.fontFamily,fontSize:this.fontSize,fontStyle:this.fontStyle,fontVariant:this.fontVariant,fontWeight:this.fontWeight,leading:this.leading,letterSpacing:this.letterSpacing,lineHeight:this.lineHeight,padding:this.padding,stroke:this._stroke,textBaseline:this.textBaseline,whiteSpace:this.whiteSpace,wordWrap:this.wordWrap,wordWrapWidth:this.wordWrapWidth})}destroy(e=!1){if(this.removeAllListeners(),"boolean"==typeof e?e:e?.texture){let t="boolean"==typeof e?e:e?.textureSource;this._fill?.texture&&this._fill.texture.destroy(t),this._originalFill?.texture&&this._originalFill.texture.destroy(t),this._stroke?.texture&&this._stroke.texture.destroy(t),this._originalStroke?.texture&&this._originalStroke.texture.destroy(t)}this._fill=null,this._stroke=null,this.dropShadow=null,this._originalStroke=null,this._originalFill=null}};c.defaultDropShadow={alpha:1,angle:Math.PI/6,blur:0,color:"black",distance:5},c.defaultTextStyle={align:"left",breakWords:!1,dropShadow:null,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,padding:0,stroke:null,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100};let f=c;function h(e){let t=e;if("boolean"==typeof t.dropShadow&&t.dropShadow){let r=f.defaultDropShadow;e.dropShadow={alpha:t.dropShadowAlpha??r.alpha,angle:t.dropShadowAngle??r.angle,blur:t.dropShadowBlur??r.blur,color:t.dropShadowColor??r.color,distance:t.dropShadowDistance??r.distance}}if(void 0!==t.strokeThickness&&((0,o.t)("8.0.0","strokeThickness is now a part of stroke"),e.stroke={color:t.stroke,width:t.strokeThickness}),Array.isArray(t.fill)){(0,o.t)("8.0.0","gradient fill is now a fill pattern: `new FillGradient(...)`");let r=new a._(0,0,0,1.7*e.fontSize),n=t.fill.map(e=>i.Q.shared.setValue(e).toNumber());n.forEach((e,i)=>{let o=t.fillGradientStops[i]??i/n.length;r.addColorStop(o,e)}),e.fill={fill:r}}}},3748:function(e,t,r){"use strict";r.d(t,{P:()=>s});var n=r(98370),i=r(86782);let o={willReadFrequently:!0},a=class e{static get experimentalLetterSpacingSupported(){let t=e._experimentalLetterSpacingSupported;if(void 0!==t){let r=n.e.get().getCanvasRenderingContext2D().prototype;t=e._experimentalLetterSpacingSupported="letterSpacing"in r||"textLetterSpacing"in r}return t}constructor(e,t,r,n,i,o,a,s,l){this.text=e,this.style=t,this.width=r,this.height=n,this.lines=i,this.lineWidths=o,this.lineHeight=a,this.maxLineWidth=s,this.fontProperties=l}static measureText(t=" ",r,n=e._canvas,o=r.wordWrap){let a=`${t}:${r.styleKey}`;if(e._measurementCache[a])return e._measurementCache[a];let s=(0,i.Z)(r),l=e.measureFont(s);0===l.fontSize&&(l.fontSize=r.fontSize,l.ascent=r.fontSize);let u=e.__context;u.font=s;let c=(o?e._wordWrap(t,r,n):t).split(/(?:\r\n|\r|\n)/),f=Array(c.length),h=0;for(let t=0;t<c.length;t++){let n=e._measureText(c[t],r.letterSpacing,u);f[t]=n,h=Math.max(h,n)}let d=r._stroke?.width||0,p=h+d;r.dropShadow&&(p+=r.dropShadow.distance);let m=r.lineHeight||l.fontSize+d,g=Math.max(m,l.fontSize+2*d)+(c.length-1)*(m+r.leading);return r.dropShadow&&(g+=r.dropShadow.distance),new e(t,r,p,g,c,f,m+r.leading,h,l)}static _measureText(t,r,n){let i=!1;e.experimentalLetterSpacingSupported&&(e.experimentalLetterSpacing?(n.letterSpacing=`${r}px`,n.textLetterSpacing=`${r}px`,i=!0):(n.letterSpacing="0px",n.textLetterSpacing="0px"));let o=n.measureText(t).width;return o>0&&(i?o-=r:o+=(e.graphemeSegmenter(t).length-1)*r),o}static _wordWrap(t,r,n=e._canvas){let i=n.getContext("2d",o),a=0,s="",l="",u=Object.create(null),{letterSpacing:c,whiteSpace:f}=r,h=e._collapseSpaces(f),d=e._collapseNewlines(f),p=!h,m=r.wordWrapWidth+c,g=e._tokenize(t);for(let t=0;t<g.length;t++){let n=g[t];if(e._isNewline(n)){if(!d){l+=e._addLine(s),p=!h,s="",a=0;continue}n=" "}if(h){let t=e.isBreakingSpace(n),r=e.isBreakingSpace(s[s.length-1]);if(t&&r)continue}let o=e._getFromCache(n,c,u,i);if(o>m)if(""!==s&&(l+=e._addLine(s),s="",a=0),e.canBreakWords(n,r.breakWords)){let t=e.wordWrapSplit(n);for(let o=0;o<t.length;o++){let f=t[o],h=f,d=1;for(;t[o+d];){let i=t[o+d];if(e.canBreakChars(h,i,n,o,r.breakWords))break;f+=i,h=i,d++}o+=d-1;let g=e._getFromCache(f,c,u,i);g+a>m&&(l+=e._addLine(s),p=!1,s="",a=0),s+=f,a+=g}}else{s.length>0&&(l+=e._addLine(s),s="",a=0);let r=t===g.length-1;l+=e._addLine(n,!r),p=!1,s="",a=0}else o+a>m&&(p=!1,l+=e._addLine(s),s="",a=0),(s.length>0||!e.isBreakingSpace(n)||p)&&(s+=n,a+=o)}return l+e._addLine(s,!1)}static _addLine(t,r=!0){return t=e._trimRight(t),t=r?`${t}
|
|
639
|
+
`}]},21447:function(e,t,r){"use strict";r.d(t,{U:()=>f});let n={normal:0,add:1,multiply:2,screen:3,overlay:4,erase:5,"normal-npm":6,"add-npm":7,"screen-npm":8},i=0,o=1,a=2,s=3,l=4,u=5,c=class e{constructor(){this.data=0,this.blendMode="normal",this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<i)}set blend(e){!!(this.data&1<<i)!==e&&(this.data^=1<<i)}get offsets(){return!!(this.data&1<<o)}set offsets(e){!!(this.data&1<<o)!==e&&(this.data^=1<<o)}set cullMode(e){if("none"===e){this.culling=!1;return}this.culling=!0,this.clockwiseFrontFace="front"===e}get cullMode(){return this.culling?this.clockwiseFrontFace?"front":"back":"none"}get culling(){return!!(this.data&1<<a)}set culling(e){!!(this.data&1<<a)!==e&&(this.data^=1<<a)}get depthTest(){return!!(this.data&1<<s)}set depthTest(e){!!(this.data&1<<s)!==e&&(this.data^=1<<s)}get depthMask(){return!!(this.data&1<<u)}set depthMask(e){!!(this.data&1<<u)!==e&&(this.data^=1<<u)}get clockwiseFrontFace(){return!!(this.data&1<<l)}set clockwiseFrontFace(e){!!(this.data&1<<l)!==e&&(this.data^=1<<l)}get blendMode(){return this._blendMode}set blendMode(e){this.blend="none"!==e,this._blendMode=e,this._blendModeId=n[e]||0}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}toString(){return`[pixi.js/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`}static for2d(){let t=new e;return t.depthTest=!1,t.blend=!0,t}};c.default2d=c.for2d();let f=c},70673:function(e,t,r){"use strict";let n;r.d(t,{K:()=>o,Q:()=>i});let i={normal:"normal-npm",add:"add-npm",screen:"screen-npm"};var o=((n=o||{})[n.DISABLED=0]="DISABLED",n[n.RENDERING_MASK_ADD=1]="RENDERING_MASK_ADD",n[n.MASK_ACTIVE=2]="MASK_ACTIVE",n[n.RENDERING_MASK_REMOVE=3]="RENDERING_MASK_REMOVE",n[n.NONE=4]="NONE",n)},11075:function(e,t,r){"use strict";r.d(t,{k:()=>h});var n=r(51170),i=r(21873),o=r(30877),a=r(55746),s=r(68181),l=r(57949),u=r(60588);let c=["init","destroy","contextChange","resolutionChange","reset","renderEnd","renderStart","render","update","postrender","prerender"],f=class e extends u.A{constructor(e){super(),this.runners=Object.create(null),this.renderPipes=Object.create(null),this._initOptions={},this._systemsHash=Object.create(null),this.type=e.type,this.name=e.name;const t=[...c,...e.runners??[]];this._addRunners(...t),this._addSystems(e.systems),this._addPipes(e.renderPipes,e.renderPipeAdaptors),this._unsafeEvalCheck()}async init(t={}){for(let e in this._systemsHash)t={...this._systemsHash[e].constructor.defaultOptions,...t};t={...e.defaultOptions,...t},this._roundPixels=+!!t.roundPixels;for(let e=0;e<this.runners.init.items.length;e++)await this.runners.init.items[e].init(t);this._initOptions=t}render(e,t){let r=e;if(r instanceof i.mc&&(r={container:r},t&&((0,a.t)("8.0.0","passing a second argument is deprecated, please use render options instead"),r.target=t.renderTexture)),r.target||(r.target=this.view.renderTarget),r.target===this.view.renderTarget&&(this._lastObjectRendered=r.container,r.clearColor=this.background.colorRgba),r.clearColor){let e=Array.isArray(r.clearColor)&&4===r.clearColor.length;r.clearColor=e?r.clearColor:n.Q.shared.setValue(r.clearColor).toArray()}r.transform||(r.container.updateLocalTransform(),r.transform=r.container.localTransform),this.runners.prerender.emit(r),this.runners.renderStart.emit(r),this.runners.render.emit(r),this.runners.renderEnd.emit(r),this.runners.postrender.emit(r)}resize(e,t,r){this.view.resize(e,t,r),this.emit("resize",this.view.screen.width,this.view.screen.height)}clear(e={}){let t=this;e.target||(e.target=t.renderTarget.renderTarget),e.clearColor||(e.clearColor=this.background.colorRgba),e.clear??(e.clear=s.u.ALL);let{clear:r,clearColor:i,target:o}=e;n.Q.shared.setValue(i??this.background.colorRgba),t.renderTarget.clear(o,r,n.Q.shared.toArray())}get resolution(){return this.view.resolution}set resolution(e){this.view.resolution=e,this.runners.resolutionChange.emit(e)}get width(){return this.view.texture.frame.width}get height(){return this.view.texture.frame.height}get canvas(){return this.view.canvas}get lastObjectRendered(){return this._lastObjectRendered}get renderingToScreen(){let e=this;return e.renderTarget.renderingToScreen}get screen(){return this.view.screen}_addRunners(...e){e.forEach(e=>{this.runners[e]=new l.C(e)})}_addSystems(e){let t;for(t in e){let r=e[t];this._addSystem(r.value,r.name)}}_addSystem(e,t){let r=new e(this);if(this[t])throw Error(`Whoops! The name "${t}" is already in use`);for(let e in this[t]=r,this._systemsHash[t]=r,this.runners)this.runners[e].add(r);return this}_addPipes(e,t){let r=t.reduce((e,t)=>(e[t.name]=t.value,e),{});e.forEach(e=>{let t=e.value,n=e.name,i=r[n];this.renderPipes[n]=new t(this,i?new i:null)})}destroy(e=!1){this.runners.destroy.items.reverse(),this.runners.destroy.emit(e),Object.values(this.runners).forEach(e=>{e.destroy()}),this._systemsHash=null,this.renderPipes=null}generateTexture(e){return this.textureGenerator.generateTexture(e)}get roundPixels(){return!!this._roundPixels}_unsafeEvalCheck(){if(!(0,o.f)())throw Error("Current environment does not allow unsafe-eval, please use pixi.js/unsafe-eval module to enable support.")}};f.defaultOptions={resolution:1,failIfMajorPerformanceCaveat:!1,roundPixels:!1};let h=f},57949:function(e,t,r){"use strict";r.d(t,{C:()=>n});class n{constructor(e){this.items=[],this._name=e}emit(e,t,r,n,i,o,a,s){let{name:l,items:u}=this;for(let c=0,f=u.length;c<f;c++)u[c][l](e,t,r,n,i,o,a,s);return this}add(e){return e[this._name]&&(this.remove(e),this.items.push(e)),this}remove(e){let t=this.items.indexOf(e);return -1!==t&&this.items.splice(t,1),this}contains(e){return -1!==this.items.indexOf(e)}removeAll(){return this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return 0===this.items.length}get name(){return this._name}}},27633:function(e,t,r){"use strict";r.d(t,{g:()=>x});var n=r(60588),i=r(96253);let o=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],a=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],s=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],l=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],u=[],c=[],f=Math.sign;!function(){for(let e=0;e<16;e++){let t=[];u.push(t);for(let r=0;r<16;r++){let n=f(o[e]*o[r]+s[e]*a[r]),i=f(a[e]*o[r]+l[e]*a[r]),u=f(o[e]*s[r]+s[e]*l[r]),c=f(a[e]*s[r]+l[e]*l[r]);for(let e=0;e<16;e++)if(o[e]===n&&a[e]===i&&s[e]===u&&l[e]===c){t.push(e);break}}}for(let e=0;e<16;e++){let t=new i.u;t.set(o[e],a[e],s[e],l[e],0,0),c.push(t)}}();let h={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:e=>o[e],uY:e=>a[e],vX:e=>s[e],vY:e=>l[e],inv:e=>8&e?15&e:7&-e,add:(e,t)=>u[e][t],sub:(e,t)=>u[e][h.inv(t)],rotate180:e=>4^e,isVertical:e=>(3&e)==2,byDirection:(e,t)=>2*Math.abs(e)<=Math.abs(t)?t>=0?h.S:h.N:2*Math.abs(t)<=Math.abs(e)?e>0?h.E:h.W:t>0?e>0?h.SE:h.SW:e>0?h.NE:h.NW,matrixAppendRotationInv:(e,t,r=0,n=0)=>{let i=c[h.inv(t)];i.tx=r,i.ty=n,e.append(i)}};var d=r(45584),p=r(94849),m=r(55746);let g=()=>{};var v=r(73546),y=r(83257),b=r(99880);class x extends n.A{constructor({source:e,label:t,frame:r,orig:n,trim:i,defaultAnchor:o,defaultBorders:a,rotate:s,dynamic:l}={}){if(super(),this.uid=(0,p.L)("texture"),this.uvs={x0:0,y0:0,x1:0,y1:0,x2:0,y2:0,x3:0,y3:0},this.frame=new d.M,this.noFrame=!1,this.dynamic=!1,this.isTexture=!0,this.label=t,this.source=e?.source??new y.v,this.noFrame=!r,r)this.frame.copyFrom(r);else{const{width:e,height:t}=this._source;this.frame.width=e,this.frame.height=t}this.orig=n||this.frame,this.trim=i,this.rotate=s??0,this.defaultAnchor=o,this.defaultBorders=a,this.destroyed=!1,this.dynamic=l||!1,this.updateUvs()}set source(e){this._source&&this._source.off("resize",this.update,this),this._source=e,e.on("resize",this.update,this),this.emit("update",this)}get source(){return this._source}get textureMatrix(){return this._textureMatrix||(this._textureMatrix=new b.N(this)),this._textureMatrix}get width(){return this.orig.width}get height(){return this.orig.height}updateUvs(){let{uvs:e,frame:t}=this,{width:r,height:n}=this._source,i=t.x/r,o=t.y/n,a=t.width/r,s=t.height/n,l=this.rotate;if(l){let t=a/2,r=s/2,n=i+t,u=o+r;l=h.add(l,h.NW),e.x0=n+t*h.uX(l),e.y0=u+r*h.uY(l),l=h.add(l,2),e.x1=n+t*h.uX(l),e.y1=u+r*h.uY(l),l=h.add(l,2),e.x2=n+t*h.uX(l),e.y2=u+r*h.uY(l),l=h.add(l,2),e.x3=n+t*h.uX(l),e.y3=u+r*h.uY(l)}else e.x0=i,e.y0=o,e.x1=i+a,e.y1=o,e.x2=i+a,e.y2=o+s,e.x3=i,e.y3=o+s}destroy(e=!1){this._source&&e&&(this._source.destroy(),this._source=null),this._textureMatrix=null,this.destroyed=!0,this.emit("destroy",this),this.removeAllListeners()}update(){this.noFrame&&(this.frame.width=this._source.width,this.frame.height=this._source.height),this.updateUvs(),this.emit("update",this)}get baseTexture(){return(0,m.t)("8.0.0","Texture.baseTexture is now Texture.source"),this._source}}x.EMPTY=new x({label:"EMPTY",source:new y.v({label:"EMPTY"})}),x.EMPTY.destroy=g,x.WHITE=new x({source:new v.P({resource:new Uint8Array([255,255,255,255]),width:1,height:1,alphaMode:"premultiply-alpha-on-upload",label:"WHITE"}),label:"WHITE"}),x.WHITE.destroy=g},99880:function(e,t,r){"use strict";r.d(t,{N:()=>o});var n=r(96253);let i=new n.u;class o{constructor(e,t){this.mapCoord=new n.u,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,void 0===t?this.clampMargin=e.width<10?0:.5:this.clampMargin=t,this.isSimple=!1,this.texture=e}get texture(){return this._texture}set texture(e){this.texture!==e&&(this._texture?.removeListener("update",this.update,this),this._texture=e,this._texture.addListener("update",this.update,this),this.update())}multiplyUvs(e,t){void 0===t&&(t=e);let r=this.mapCoord;for(let n=0;n<e.length;n+=2){let i=e[n],o=e[n+1];t[n]=i*r.a+o*r.c+r.tx,t[n+1]=i*r.b+o*r.d+r.ty}return t}update(){let e=this._texture;this._updateID++;let t=e.uvs;this.mapCoord.set(t.x1-t.x0,t.y1-t.y0,t.x3-t.x0,t.y3-t.y0,t.x0,t.y0);let r=e.orig,n=e.trim;n&&(i.set(r.width/n.width,0,0,r.height/n.height,-n.x/n.width,-n.y/n.height),this.mapCoord.append(i));let o=e.source,a=this.uClampFrame,s=this.clampMargin/o._resolution,l=this.clampOffset;return a[0]=(e.frame.x+s+l)/o.width,a[1]=(e.frame.y+s+l)/o.height,a[2]=(e.frame.x+e.frame.width-s+l)/o.width,a[3]=(e.frame.y+e.frame.height-s+l)/o.height,this.uClampOffset[0]=l/o.pixelWidth,this.uClampOffset[1]=l/o.pixelHeight,this.isSimple=e.frame.width===o.width&&e.frame.height===o.height&&0===e.rotate,!0}}},73097:function(e,t,r){"use strict";r.d(t,{W:()=>l});var n=r(10551),i=r(83257),o=r(27633);let a=0;class s{constructor(e){this._poolKeyHash=Object.create(null),this._texturePool={},this.textureOptions=e||{},this.enableFullScreen=!1}createTexture(e,t,r){let n=new i.v({...this.textureOptions,width:e,height:t,resolution:1,antialias:r,autoGarbageCollect:!0});return new o.g({source:n,label:`texturePool_${a++}`})}getOptimalTexture(e,t,r=1,i){let o=Math.ceil(e*r-1e-6),a=Math.ceil(t*r-1e-6),s=((o=(0,n.U5)(o))<<17)+((a=(0,n.U5)(a))<<1)+ +!!i;this._texturePool[s]||(this._texturePool[s]=[]);let l=this._texturePool[s].pop();return l||(l=this.createTexture(o,a,i)),l.source._resolution=r,l.source.width=o/r,l.source.height=a/r,l.source.pixelWidth=o,l.source.pixelHeight=a,l.frame.x=0,l.frame.y=0,l.frame.width=e,l.frame.height=t,l.updateUvs(),this._poolKeyHash[l.uid]=s,l}getSameSizeTexture(e,t=!1){let r=e.source;return this.getOptimalTexture(e.width,e.height,r._resolution,t)}returnTexture(e){let t=this._poolKeyHash[e.uid];this._texturePool[t].push(e)}clear(e){if(e=!1!==e)for(let e in this._texturePool){let t=this._texturePool[e];if(t)for(let e=0;e<t.length;e++)t[e].destroy(!0)}this._texturePool={}}}let l=new s},79462:function(e,t,r){"use strict";r.d(t,{n:()=>u});var n=r(60588),i=r(94849),o=r(55746);let a=Object.create(null);function s(e){let t=a[e];return void 0===t&&(a[e]=(0,i.L)("resource")),t}let l=class e extends n.A{constructor(t={}){super(),this._resourceType="textureSampler",this._touched=0,this._maxAnisotropy=1,this.destroyed=!1,t={...e.defaultOptions,...t},this.addressMode=t.addressMode,this.addressModeU=t.addressModeU??this.addressModeU,this.addressModeV=t.addressModeV??this.addressModeV,this.addressModeW=t.addressModeW??this.addressModeW,this.scaleMode=t.scaleMode,this.magFilter=t.magFilter??this.magFilter,this.minFilter=t.minFilter??this.minFilter,this.mipmapFilter=t.mipmapFilter??this.mipmapFilter,this.lodMinClamp=t.lodMinClamp,this.lodMaxClamp=t.lodMaxClamp,this.compare=t.compare,this.maxAnisotropy=t.maxAnisotropy??1}set addressMode(e){this.addressModeU=e,this.addressModeV=e,this.addressModeW=e}get addressMode(){return this.addressModeU}set wrapMode(e){(0,o.t)("8.0.0","TextureStyle.wrapMode is now TextureStyle.addressMode"),this.addressMode=e}get wrapMode(){return this.addressMode}set scaleMode(e){this.magFilter=e,this.minFilter=e,this.mipmapFilter=e}get scaleMode(){return this.magFilter}set maxAnisotropy(e){this._maxAnisotropy=Math.min(e,16),this._maxAnisotropy>1&&(this.scaleMode="linear")}get maxAnisotropy(){return this._maxAnisotropy}get _resourceId(){return this._sharedResourceId||this._generateResourceId()}update(){this.emit("change",this),this._sharedResourceId=null}_generateResourceId(){let e=`${this.addressModeU}-${this.addressModeV}-${this.addressModeW}-${this.magFilter}-${this.minFilter}-${this.mipmapFilter}-${this.lodMinClamp}-${this.lodMaxClamp}-${this.compare}-${this._maxAnisotropy}`;return this._sharedResourceId=s(e),this._resourceId}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this.removeAllListeners()}};l.defaultOptions={addressMode:"clamp-to-edge",scaleMode:"linear"};let u=l},73546:function(e,t,r){"use strict";r.d(t,{P:()=>o});var n=r(43071),i=r(83257);class o extends i.v{constructor(e){const t=e.resource||new Float32Array(e.width*e.height*4);let r=e.format;r||(t instanceof Float32Array?r="rgba32float":t instanceof Int32Array||t instanceof Uint32Array?r="rgba32uint":t instanceof Int16Array||t instanceof Uint16Array?r="rgba16uint":(Int8Array,r="bgra8unorm")),super({...e,resource:t,format:r}),this.uploadMethodId="buffer"}static test(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array}}o.extension=n.Ag.TextureSource},30040:function(e,t,r){"use strict";r.d(t,{q:()=>a});var n=r(98370),i=r(43071),o=r(83257);class a extends o.v{constructor(e){e.resource||(e.resource=n.e.get().createCanvas()),!e.width&&(e.width=e.resource.width,e.autoDensity||(e.width/=e.resolution)),!e.height&&(e.height=e.resource.height,e.autoDensity||(e.height/=e.resolution)),super(e),this.uploadMethodId="image",this.autoDensity=e.autoDensity;const t=e.resource;(this.pixelWidth!==t.width||this.pixelWidth!==t.height)&&this.resizeCanvas(),this.transparent=!!e.transparent}resizeCanvas(){this.autoDensity&&(this.resource.style.width=`${this.width}px`,this.resource.style.height=`${this.height}px`),(this.resource.width!==this.pixelWidth||this.resource.height!==this.pixelHeight)&&(this.resource.width=this.pixelWidth,this.resource.height=this.pixelHeight)}resize(e=this.width,t=this.height,r=this._resolution){let n=super.resize(e,t,r);return n&&this.resizeCanvas(),n}static test(e){return globalThis.HTMLCanvasElement&&e instanceof HTMLCanvasElement||globalThis.OffscreenCanvas&&e instanceof OffscreenCanvas}}a.extension=i.Ag.TextureSource},32617:function(e,t,r){"use strict";r.d(t,{b:()=>s});var n=r(98370),i=r(43071),o=r(86840),a=r(83257);class s extends a.v{constructor(e){if(e.resource&&globalThis.HTMLImageElement&&e.resource instanceof HTMLImageElement){const t=n.e.get().createCanvas(e.resource.width,e.resource.height);t.getContext("2d").drawImage(e.resource,0,0),e.resource=t,(0,o.R)("ImageSource: Image element passed, converting to canvas. Use CanvasSource instead.")}super(e),this.uploadMethodId="image",this.autoGarbageCollect=!0}static test(e){return globalThis.HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}}s.extension=i.Ag.TextureSource},83257:function(e,t,r){"use strict";r.d(t,{v:()=>u});var n=r(60588),i=r(10551);function o(e){let t={};for(let r in e)void 0!==e[r]&&(t[r]=e[r]);return t}var a=r(94849),s=r(79462);let l=class e extends n.A{constructor(t={}){super(),this.options=t,this.uid=(0,a.L)("textureSource"),this._resourceType="textureSource",this._resourceId=(0,a.L)("resource"),this.uploadMethodId="unknown",this._resolution=1,this.pixelWidth=1,this.pixelHeight=1,this.width=1,this.height=1,this.sampleCount=1,this.mipLevelCount=1,this.autoGenerateMipmaps=!1,this.format="rgba8unorm",this.dimension="2d",this.antialias=!1,this._touched=0,this._batchTick=-1,this._textureBindLocation=-1,t={...e.defaultOptions,...t},this.label=t.label??"",this.resource=t.resource,this.autoGarbageCollect=t.autoGarbageCollect,this._resolution=t.resolution,t.width?this.pixelWidth=t.width*this._resolution:this.pixelWidth=this.resource?this.resourceWidth??1:1,t.height?this.pixelHeight=t.height*this._resolution:this.pixelHeight=this.resource?this.resourceHeight??1:1,this.width=this.pixelWidth/this._resolution,this.height=this.pixelHeight/this._resolution,this.format=t.format,this.dimension=t.dimensions,this.mipLevelCount=t.mipLevelCount,this.autoGenerateMipmaps=t.autoGenerateMipmaps,this.sampleCount=t.sampleCount,this.antialias=t.antialias,this.alphaMode=t.alphaMode,this.style=new s.n(o(t)),this.destroyed=!1,this._refreshPOT()}get source(){return this}get style(){return this._style}set style(e){this.style!==e&&(this._style?.off("change",this._onStyleChange,this),this._style=e,this._style?.on("change",this._onStyleChange,this),this._onStyleChange())}get addressMode(){return this._style.addressMode}set addressMode(e){this._style.addressMode=e}get repeatMode(){return this._style.addressMode}set repeatMode(e){this._style.addressMode=e}get magFilter(){return this._style.magFilter}set magFilter(e){this._style.magFilter=e}get minFilter(){return this._style.minFilter}set minFilter(e){this._style.minFilter=e}get mipmapFilter(){return this._style.mipmapFilter}set mipmapFilter(e){this._style.mipmapFilter=e}get lodMinClamp(){return this._style.lodMinClamp}set lodMinClamp(e){this._style.lodMinClamp=e}get lodMaxClamp(){return this._style.lodMaxClamp}set lodMaxClamp(e){this._style.lodMaxClamp=e}_onStyleChange(){this.emit("styleChange",this)}update(){if(this.resource){let e=this._resolution;if(this.resize(this.resourceWidth/e,this.resourceHeight/e))return}this.emit("update",this)}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this._style&&(this._style.destroy(),this._style=null),this.uploadMethodId=null,this.resource=null,this.removeAllListeners()}unload(){this._resourceId=(0,a.L)("resource"),this.emit("change",this),this.emit("unload",this)}get resourceWidth(){let{resource:e}=this;return e.naturalWidth||e.videoWidth||e.displayWidth||e.width}get resourceHeight(){let{resource:e}=this;return e.naturalHeight||e.videoHeight||e.displayHeight||e.height}get resolution(){return this._resolution}set resolution(e){this._resolution!==e&&(this._resolution=e,this.width=this.pixelWidth/e,this.height=this.pixelHeight/e)}resize(e,t,r){r=r||this._resolution,e=e||this.width,t=t||this.height;let n=Math.round(e*r),i=Math.round(t*r);return this.width=n/r,this.height=i/r,this._resolution=r,(this.pixelWidth!==n||this.pixelHeight!==i)&&(this._refreshPOT(),this.pixelWidth=n,this.pixelHeight=i,this.emit("resize",this),this._resourceId=(0,a.L)("resource"),this.emit("change",this),!0)}updateMipmaps(){this.autoGenerateMipmaps&&this.mipLevelCount>1&&this.emit("updateMipmaps",this)}set wrapMode(e){this._style.wrapMode=e}get wrapMode(){return this._style.wrapMode}set scaleMode(e){this._style.scaleMode=e}get scaleMode(){return this._style.scaleMode}_refreshPOT(){this.isPowerOfTwo=(0,i.f3)(this.pixelWidth)&&(0,i.f3)(this.pixelHeight)}static test(e){throw Error("Unimplemented")}};l.defaultOptions={resolution:1,format:"bgra8unorm",alphaMode:"premultiply-alpha-on-upload",dimensions:"2d",mipLevelCount:1,autoGenerateMipmaps:!1,sampleCount:1,antialias:!1,autoGarbageCollect:!1};let u=l},98327:function(e,t,r){"use strict";r.d(t,{$:()=>l});var n=r(43071),i=r(4366),o=r(17326),a=r(83257);let s=class e extends a.v{constructor(t){super(t),this.isReady=!1,this.uploadMethodId="video",t={...e.defaultOptions,...t},this._autoUpdate=!0,this._isConnectedToTicker=!1,this._updateFPS=t.updateFPS||0,this._msToNextUpdate=0,this.autoPlay=!1!==t.autoPlay,this.alphaMode=t.alphaMode??"premultiply-alpha-on-upload",this._videoFrameRequestCallback=this._videoFrameRequestCallback.bind(this),this._videoFrameRequestCallbackHandle=null,this._load=null,this._resolve=null,this._reject=null,this._onCanPlay=this._onCanPlay.bind(this),this._onCanPlayThrough=this._onCanPlayThrough.bind(this),this._onError=this._onError.bind(this),this._onPlayStart=this._onPlayStart.bind(this),this._onPlayStop=this._onPlayStop.bind(this),this._onSeeked=this._onSeeked.bind(this),!1!==t.autoLoad&&this.load()}updateFrame(){if(!this.destroyed){if(this._updateFPS){let e=i.R.shared.elapsedMS*this.resource.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-e)}(!this._updateFPS||this._msToNextUpdate<=0)&&(this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0),this.isValid&&this.update()}}_videoFrameRequestCallback(){this.updateFrame(),this.destroyed?this._videoFrameRequestCallbackHandle=null:this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback)}get isValid(){return!!this.resource.videoWidth&&!!this.resource.videoHeight}async load(){if(this._load)return this._load;let e=this.resource,t=this.options;return(e.readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=!0),e.addEventListener("play",this._onPlayStart),e.addEventListener("pause",this._onPlayStop),e.addEventListener("seeked",this._onSeeked),this._isSourceReady()?this._mediaReady():(t.preload||e.addEventListener("canplay",this._onCanPlay),e.addEventListener("canplaythrough",this._onCanPlayThrough),e.addEventListener("error",this._onError,!0)),this.alphaMode=await (0,o.C)(),this._load=new Promise((r,n)=>{this.isValid?r(this):(this._resolve=r,this._reject=n,void 0!==t.preloadTimeoutMs&&(this._preloadTimeout=setTimeout(()=>{this._onError(new ErrorEvent(`Preload exceeded timeout of ${t.preloadTimeoutMs}ms`))})),e.load())}),this._load}_onError(e){this.resource.removeEventListener("error",this._onError,!0),this.emit("error",e),this._reject&&(this._reject(e),this._reject=null,this._resolve=null)}_isSourcePlaying(){let e=this.resource;return!e.paused&&!e.ended}_isSourceReady(){return this.resource.readyState>2}_onPlayStart(){this.isValid||this._mediaReady(),this._configureAutoUpdate()}_onPlayStop(){this._configureAutoUpdate()}_onSeeked(){this._autoUpdate&&!this._isSourcePlaying()&&(this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0)}_onCanPlay(){this.resource.removeEventListener("canplay",this._onCanPlay),this._mediaReady()}_onCanPlayThrough(){this.resource.removeEventListener("canplaythrough",this._onCanPlay),this._preloadTimeout&&(clearTimeout(this._preloadTimeout),this._preloadTimeout=void 0),this._mediaReady()}_mediaReady(){let e=this.resource;this.isValid&&(this.isReady=!0,this.resize(e.videoWidth,e.videoHeight)),this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0,this._resolve&&(this._resolve(this),this._resolve=null,this._reject=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.resource.play()}destroy(){this._configureAutoUpdate();let e=this.resource;e&&(e.removeEventListener("play",this._onPlayStart),e.removeEventListener("pause",this._onPlayStop),e.removeEventListener("seeked",this._onSeeked),e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlayThrough),e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),super.destroy()}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,this._configureAutoUpdate())}get updateFPS(){return this._updateFPS}set updateFPS(e){e!==this._updateFPS&&(this._updateFPS=e,this._configureAutoUpdate())}_configureAutoUpdate(){this._autoUpdate&&this._isSourcePlaying()?!this._updateFPS&&this.resource.requestVideoFrameCallback?(this._isConnectedToTicker&&(i.R.shared.remove(this.updateFrame,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0),null===this._videoFrameRequestCallbackHandle&&(this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback))):(null!==this._videoFrameRequestCallbackHandle&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker||(i.R.shared.add(this.updateFrame,this),this._isConnectedToTicker=!0,this._msToNextUpdate=0)):(null!==this._videoFrameRequestCallbackHandle&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(i.R.shared.remove(this.updateFrame,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0))}static test(e){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||globalThis.VideoFrame&&e instanceof VideoFrame}};s.extension=n.Ag.TextureSource,s.defaultOptions={...a.v.defaultOptions,autoLoad:!0,autoPlay:!0,updateFPS:0,crossorigin:!0,loop:!1,muted:!0,playsinline:!0,preload:!1},s.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};let l=s},50209:function(e,t,r){"use strict";r.d(t,{c:()=>a});var n=r(30040),i=r(27633);let o=new Map;function a(e,t){if(!o.has(e)){let r=new i.g({source:new n.q({resource:e,...t})}),a=()=>{o.get(e)===r&&o.delete(e)};r.once("destroy",a),r.source.once("destroy",a),o.set(e,r)}return o.get(e)}},73281:function(e,t,r){"use strict";var n=r(8623),i=r(43071),o=r(83257),a=r(27633);let s=[];function l(e={}){let t=e&&e.resource,r=t?e.resource:e,n=t?e:{resource:e};for(let e=0;e<s.length;e++){let t=s[e];if(t.test(r))return new t(n)}throw Error(`Could not find a source type for resource: ${n.resource}`)}function u(e={},t=!1){let r=e&&e.resource,i=r?e.resource:e,o=r?e:{resource:e};if(!t&&n.l.has(i))return n.l.get(i);let s=new a.g({source:l(o)});return s.on("destroy",()=>{n.l.has(i)&&n.l.remove(i)}),t||n.l.set(i,s),s}function c(e,t=!1){return"string"==typeof e?n.l.get(e):e instanceof o.v?new a.g({source:e}):u(e,t)}i.XO.handleByList(i.Ag.TextureSource,s),a.g.from=c},60924:function(e,t,r){"use strict";r.d(t,{X:()=>o});let n=Object.create(null),i=Object.create(null);function o(e,t){let r=i[e];return void 0===r&&(void 0===n[t]&&(n[t]=1),i[e]=r=n[t]++),r}},52632:function(e,t,r){"use strict";r.d(t,{v:()=>c});var n=r(98370),i=r(43071),o=r(45584),a=r(55746),s=r(24611),l=r(50209);let u=class e{get resolution(){return this.texture.source._resolution}set resolution(e){this.texture.source.resize(this.texture.source.width,this.texture.source.height,e)}init(t){(t={...e.defaultOptions,...t}).view&&((0,a.t)("8.0.0","ViewSystem.view has been renamed to ViewSystem.canvas"),t.canvas=t.view),this.screen=new o.M(0,0,t.width,t.height),this.canvas=t.canvas||n.e.get().createCanvas(),this.antialias=!!t.antialias,this.texture=(0,l.c)(this.canvas,t),this.renderTarget=new s.O({colorTextures:[this.texture],depth:!!t.depth,isRoot:!0}),this.texture.source.transparent=t.backgroundAlpha<1,this.multiView=!!t.multiView,this.autoDensity&&(this.canvas.style.width=`${this.texture.width}px`,this.canvas.style.height=`${this.texture.height}px`),this.resolution=t.resolution}resize(e,t,r){this.texture.source.resize(e,t,r),this.screen.width=this.texture.frame.width,this.screen.height=this.texture.frame.height,this.autoDensity&&(this.canvas.style.width=`${e}px`,this.canvas.style.height=`${t}px`)}destroy(e=!1){("boolean"==typeof e?e:!!e?.removeView)&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)}};u.extension={type:[i.Ag.WebGLSystem,i.Ag.WebGPUSystem,i.Ag.CanvasSystem],name:"view",priority:0},u.defaultOptions={width:800,height:600,autoDensity:!1,antialias:!1};let c=u},52031:function(e,t,r){"use strict";let n;r.d(t,{W:()=>i});var i=((n=i||{})[n.WEBGL=1]="WEBGL",n[n.WEBGPU=2]="WEBGPU",n[n.BOTH=3]="BOTH",n)},21873:function(e,t,r){"use strict";r.d(t,{mc:()=>F,fR:()=>j,ig:()=>z,u:()=>L});var n=r(60588),i=r(51170);let o={cullArea:null,cullable:!1,cullableChildren:!0};var a=r(96253),s=r(52251),l=r(52e3),u=r(94849),c=r(55746),f=r(33179);let h={allowChildren:!0,removeChildren(e=0,t){let r=t??this.children.length,n=r-e,i=[];if(n>0&&n<=r){for(let t=r-1;t>=e;t--){let e=this.children[t];e&&(this.renderGroup&&this.renderGroup.removeChild(e),i.push(e),e.parent=null)}(0,f.d)(this.children,e,r);for(let e=0;e<i.length;++e)this.emit("childRemoved",i[e],this,e),i[e].emit("removed",this);return i}if(0===n&&0===this.children.length)return i;throw RangeError("removeChildren: numeric values are outside the acceptable range.")},removeChildAt(e){let t=this.getChildAt(e);return this.removeChild(t)},getChildAt(e){if(e<0||e>=this.children.length)throw Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]},setChildIndex(e,t){if(t<0||t>=this.children.length)throw Error(`The index ${t} supplied is out of bounds ${this.children.length}`);this.getChildIndex(e),this.addChildAt(e,t)},getChildIndex(e){let t=this.children.indexOf(e);if(-1===t)throw Error("The supplied Container must be a child of the caller");return t},addChildAt(e,t){this.allowChildren||(0,c.t)("8.0.0","addChildAt: Only Containers will be allowed to add children in v8.0.0");let{children:r}=this;if(t<0||t>r.length)throw Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${r.length}`);if(e.parent){let r=e.parent.children.indexOf(e);if(e.parent===this&&r===t)return e;-1!==r&&e.parent.children.splice(r,1)}return t===r.length?r.push(e):r.splice(t,0,e),e.parent=this,e.didChange=!0,e.didViewUpdate=!1,e._updateFlags=15,this.renderGroup&&this.renderGroup.addChild(e),this.sortableChildren&&(this.sortDirty=!0),this.emit("childAdded",e,this,t),e.emit("added",this),e},swapChildren(e,t){if(e===t)return;let r=this.getChildIndex(e),n=this.getChildIndex(t);this.children[r]=t,this.children[n]=e},removeFromParent(){this.parent?.removeChild(this)}};var d=r(63757),p=r(43071),m=r(92078);class g{constructor(){this._effectClasses=[],this._tests=[],this._initialized=!1}init(){this._initialized||(this._initialized=!0,this._effectClasses.forEach(e=>{this.add({test:e.test,maskClass:e})}))}add(e){this._tests.push(e)}getMaskEffect(e){this._initialized||this.init();for(let t=0;t<this._tests.length;t++){let r=this._tests[t];if(r.test(e))return m.Z.get(r.maskClass,e)}return e}returnMaskEffect(e){m.Z.return(e)}}let v=new g;p.XO.handleByList(p.Ag.MaskEffect,v._effectClasses);let y={_mask:null,_filters:null,effects:[],addEffect(e){-1===this.effects.indexOf(e)&&(this.effects.push(e),this.effects.sort((e,t)=>e.priority-t.priority),this.renderGroup&&(this.renderGroup.structureDidChange=!0),this._updateIsSimple())},removeEffect(e){let t=this.effects.indexOf(e);-1!==t&&(this.effects.splice(t,1),!this.isRenderGroupRoot&&this.renderGroup&&(this.renderGroup.structureDidChange=!0),this._updateIsSimple())},set mask(value){if(this._mask||(this._mask={mask:null,effect:null}),this._mask.mask===value||(this._mask.effect&&(this.removeEffect(this._mask.effect),v.returnMaskEffect(this._mask.effect),this._mask.effect=null),this._mask.mask=value,null==value))return;let e=v.getMaskEffect(value);this._mask.effect=e,this.addEffect(e)},get mask(){return this._mask?.mask},set filters(value){!Array.isArray(value)&&value&&(value=[value]),this._filters||(this._filters={filters:null,effect:null,filterArea:null});let e=value?.length>0,t=this._filters.effect&&!e||!this._filters.effect&&e;if(value=Array.isArray(value)?value.slice(0):value,this._filters.filters=Object.freeze(value),t)if(e){let e=m.Z.get(d.a);this._filters.effect=e,this.addEffect(e)}else{let e=this._filters.effect;this.removeEffect(e),e.filterArea=null,e.filters=null,this._filters.effect=null,m.Z.return(e)}e&&(this._filters.effect.filters=value,this._filters.effect.filterArea=this.filterArea)},get filters(){return this._filters?.filters},set filterArea(value){this._filters||(this._filters={filters:null,effect:null,filterArea:null}),this._filters.filterArea=value},get filterArea(){return this._filters?.filterArea}},b={label:null,get name(){return(0,c.t)("8.0.0","Container.name property has been removed, use Container.label instead"),this.label},set name(value){(0,c.t)("8.0.0","Container.name property has been removed, use Container.label instead"),this.label=value},getChildByName(e,t=!1){return this.getChildByLabel(e,t)},getChildByLabel(e,t=!1){let r=this.children;for(let t=0;t<r.length;t++){let n=r[t];if(n.label===e||e instanceof RegExp&&e.test(n.label))return n}if(t)for(let t=0;t<r.length;t++){let n=r[t].getChildByLabel(e,!0);if(n)return n}return null},getChildrenByLabel(e,t=!1,r=[]){let n=this.children;for(let t=0;t<n.length;t++){let i=n[t];(i.label===e||e instanceof RegExp&&e.test(i.label))&&r.push(i)}if(t)for(let t=0;t<n.length;t++)n[t].getChildrenByLabel(e,!0,r);return r}};var x=r(46904),_=r(92151),w=r(99625);function S(e,t){let r=e.children;for(let e=0;e<r.length;e++){let n=r[e],i=(255&n.uid)<<24|0xffffff&n._didChangeId;t.data[t.index]!==i&&(t.data[t.index]=i,t.didChange=!0),t.index++,n.children.length&&S(n,t)}return t.didChange}let A=new a.u,E={_localBoundsCacheId:-1,_localBoundsCacheData:null,_setWidth(e,t){let r=Math.sign(this.scale.x)||1;0!==t?this.scale.x=e/t*r:this.scale.x=r},_setHeight(e,t){let r=Math.sign(this.scale.y)||1;0!==t?this.scale.y=e/t*r:this.scale.y=r},getLocalBounds(){this._localBoundsCacheData||(this._localBoundsCacheData={data:[],index:1,didChange:!1,localBounds:new x.c});let e=this._localBoundsCacheData;return e.index=1,e.didChange=!1,e.data[0]!==this._didChangeId>>12&&(e.didChange=!0,e.data[0]=this._didChangeId>>12),S(this,e),e.didChange&&(0,w.n)(this,e.localBounds,A),e.localBounds},getBounds(e,t){return(0,_.fB)(this,e,t||new x.c)}},C={_onRender:null,set onRender(func){let e=this.renderGroup;if(!func){this._onRender&&e?.removeOnRender(this),this._onRender=null;return}this._onRender||e?.addOnRender(this),this._onRender=func},get onRender(){return this._onRender}},k={_zIndex:0,sortDirty:!1,sortableChildren:!1,get zIndex(){return this._zIndex},set zIndex(value){if(this._zIndex===value)return;this._zIndex=value,this.depthOfChildModified()},depthOfChildModified(){this.parent&&(this.parent.sortableChildren=!0,this.parent.sortDirty=!0),this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0)},sortChildren(){this.sortDirty&&(this.sortDirty=!1,this.children.sort(O))}};function O(e,t){return e._zIndex-t._zIndex}var I=r(58569);let T={getGlobalPosition(e=new I.b,t=!1){return this.parent?this.parent.toGlobal(this._position,e,t):(e.x=this._position.x,e.y=this._position.y),e},toGlobal(e,t,r=!1){if(!r){this.updateLocalTransform();let r=(0,_.Ek)(this,new a.u);return r.append(this.localTransform),r.apply(e,t)}return this.worldTransform.apply(e,t)},toLocal(e,t,r,n){if(t&&(e=t.toGlobal(e,r,n)),!n){this.updateLocalTransform();let t=(0,_.Ek)(this,new a.u);return t.append(this.localTransform),t.applyInverse(e,r)}return this.worldTransform.applyInverse(e,r)}};var M=r(73644);class R{constructor(e){this.renderPipeId="renderGroup",this.root=null,this.canBundle=!1,this.renderGroupParent=null,this.renderGroupChildren=[],this._children=[],this.worldTransform=new a.u,this.worldColorAlpha=0xffffffff,this.worldColor=0xffffff,this.worldAlpha=1,this.childrenToUpdate=Object.create(null),this.updateTick=0,this.childrenRenderablesToUpdate={list:[],index:0},this.structureDidChange=!0,this.instructionSet=new M.L,this._onRenderContainers=[],this.root=e,this.addChild(e)}get localTransform(){return this.root.localTransform}addRenderGroupChild(e){e.renderGroupParent&&e.renderGroupParent._removeRenderGroupChild(e),e.renderGroupParent=this,this.onChildUpdate(e.root),this.renderGroupChildren.push(e)}_removeRenderGroupChild(e){e.root.didChange&&this._removeChildFromUpdate(e.root);let t=this.renderGroupChildren.indexOf(e);t>-1&&this.renderGroupChildren.splice(t,1),e.renderGroupParent=null}addChild(e){if(this.structureDidChange=!0,e!==this.root&&(this._children.push(e),e.updateTick=-1,e.parent===this.root?e.relativeRenderGroupDepth=1:e.relativeRenderGroupDepth=e.parent.relativeRenderGroupDepth+1),e.renderGroup){if(e.renderGroup.root===e)return void this.addRenderGroupChild(e.renderGroup)}else e.renderGroup=this,e.didChange=!0;e._onRender&&(e.isRenderGroupRoot?e.renderGroup.root===e&&this.addOnRender(e):this.addOnRender(e));let t=e.children;e.isRenderGroupRoot||this.onChildUpdate(e);for(let e=0;e<t.length;e++)this.addChild(t[e])}removeChild(e){if(this.structureDidChange=!0,e._onRender&&(e.isRenderGroupRoot?e.renderGroup.root===e&&this.removeOnRender(e):this.removeOnRender(e)),e.renderGroup.root!==e){let t=e.children;for(let e=0;e<t.length;e++)this.removeChild(t[e]);e.didChange&&e.renderGroup._removeChildFromUpdate(e),e.renderGroup=null}else this._removeRenderGroupChild(e.renderGroup);let t=this._children.indexOf(e);t>-1&&this._children.splice(t,1)}onChildUpdate(e){let t=this.childrenToUpdate[e.relativeRenderGroupDepth];t||(t=this.childrenToUpdate[e.relativeRenderGroupDepth]={index:0,list:[]}),t.list[t.index++]=e}updateRenderable(e){e.globalDisplayStatus<7||(e.didViewUpdate=!1,this.instructionSet.renderPipes[e.renderPipeId].updateRenderable(e))}onChildViewUpdate(e){this.childrenRenderablesToUpdate.list[this.childrenRenderablesToUpdate.index++]=e}_removeChildFromUpdate(e){let t=this.childrenToUpdate[e.relativeRenderGroupDepth];if(!t)return;let r=t.list.indexOf(e);r>-1&&t.list.splice(r,1),t.index--}get isRenderable(){return 7===this.root.localDisplayStatus&&this.worldAlpha>0}addOnRender(e){this._onRenderContainers.push(e)}removeOnRender(e){this._onRenderContainers.splice(this._onRenderContainers.indexOf(e),1)}runOnRender(){for(let e=0;e<this._onRenderContainers.length;e++)this._onRenderContainers[e]._onRender()}}function P(e,t,r={}){for(let n in t)r[n]||void 0===t[n]||(e[n]=t[n])}let $=new l.o(null),B=new l.o(null),N=new l.o(null,1,1),z=1,L=2,j=4;class F extends n.A{constructor(e={}){super(),this.uid=(0,u.L)("renderable"),this._updateFlags=15,this.isRenderGroupRoot=!1,this.renderGroup=null,this.didChange=!1,this.didViewUpdate=!1,this.relativeRenderGroupDepth=0,this.children=[],this.parent=null,this.includeInBuild=!0,this.measurable=!0,this.isSimple=!0,this.updateTick=-1,this.localTransform=new a.u,this.relativeGroupTransform=new a.u,this.groupTransform=this.relativeGroupTransform,this.destroyed=!1,this._position=new l.o(this,0,0),this._scale=N,this._pivot=B,this._skew=$,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._rotation=0,this.localColor=0xffffff,this.localAlpha=1,this.groupAlpha=1,this.groupColor=0xffffff,this.groupColorAlpha=0xffffffff,this.localBlendMode="inherit",this.groupBlendMode="normal",this.localDisplayStatus=7,this.globalDisplayStatus=7,this._didChangeId=0,this._didLocalTransformChangeId=-1,P(this,e,{children:!0,parent:!0,effects:!0}),e.children?.forEach(e=>this.addChild(e)),this.effects=[],e.parent?.addChild(this)}static mixin(e){Object.defineProperties(F.prototype,Object.getOwnPropertyDescriptors(e))}addChild(...e){if(this.allowChildren||(0,c.t)("8.0.0","addChild: Only Containers will be allowed to add children in v8.0.0"),e.length>1){for(let t=0;t<e.length;t++)this.addChild(e[t]);return e[0]}let t=e[0];return t.parent===this?(this.children.splice(this.children.indexOf(t),1),this.children.push(t),this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0)):(t.parent&&t.parent.removeChild(t),this.children.push(t),this.sortableChildren&&(this.sortDirty=!0),t.parent=this,t.didChange=!0,t.didViewUpdate=!1,t._updateFlags=15,this.renderGroup&&this.renderGroup.addChild(t),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this),this._didChangeId+=4096,0!==t._zIndex&&t.depthOfChildModified()),t}removeChild(...e){if(e.length>1){for(let t=0;t<e.length;t++)this.removeChild(e[t]);return e[0]}let t=e[0],r=this.children.indexOf(t);return r>-1&&(this._didChangeId+=4096,this.children.splice(r,1),this.renderGroup&&this.renderGroup.removeChild(t),t.parent=null,this.emit("childRemoved",t,this,r),t.emit("removed",this)),t}_onUpdate(e){if(e&&e===this._skew&&this._updateSkew(),this._didChangeId++,!this.didChange)if(this.didChange=!0,this.isRenderGroupRoot){let e=this.renderGroup.renderGroupParent;e&&e.onChildUpdate(this)}else this.renderGroup&&this.renderGroup.onChildUpdate(this)}set isRenderGroup(e){if(this.isRenderGroupRoot&&!1===e)throw Error("[Pixi] cannot undo a render group just yet");e&&this.enableRenderGroup()}get isRenderGroup(){return this.isRenderGroupRoot}enableRenderGroup(){if(this.renderGroup&&this.renderGroup.root===this)return;this.isRenderGroupRoot=!0;let e=this.renderGroup;if(e&&e.removeChild(this),this.renderGroup=new R(this),e){for(let t=0;t<e.renderGroupChildren.length;t++){let r=e.renderGroupChildren[t],n=r.root;for(;n;){if(n===this){this.renderGroup.addRenderGroupChild(r);break}n=n.parent}}e.addRenderGroupChild(this.renderGroup)}this._updateIsSimple(),this.groupTransform=a.u.IDENTITY}_updateIsSimple(){this.isSimple=!this.isRenderGroupRoot&&0===this.effects.length}get worldTransform(){return this._worldTransform||(this._worldTransform=new a.u),this.renderGroup&&(this.isRenderGroupRoot?this._worldTransform.copyFrom(this.renderGroup.worldTransform):this._worldTransform.appendFrom(this.relativeGroupTransform,this.renderGroup.worldTransform)),this._worldTransform}get x(){return this._position.x}set x(e){this._position.x=e}get y(){return this._position.y}set y(e){this._position.y=e}get position(){return this._position}set position(e){this._position.copyFrom(e)}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this._onUpdate(this._skew))}get angle(){return this.rotation*s.bO}set angle(e){this.rotation=e*s.Td}get pivot(){return this._pivot===B&&(this._pivot=new l.o(this,0,0)),this._pivot}set pivot(e){this._pivot===B&&(this._pivot=new l.o(this,0,0)),"number"==typeof e?this._pivot.set(e):this._pivot.copyFrom(e)}get skew(){return this._skew===$&&(this._skew=new l.o(this,0,0)),this._skew}set skew(e){this._skew===$&&(this._skew=new l.o(this,0,0)),this._skew.copyFrom(e)}get scale(){return this._scale===N&&(this._scale=new l.o(this,1,1)),this._scale}set scale(e){this._scale===N&&(this._scale=new l.o(this,0,0)),"number"==typeof e?this._scale.set(e):this._scale.copyFrom(e)}get width(){return Math.abs(this.scale.x*this.getLocalBounds().width)}set width(e){let t=this.getLocalBounds().width;this._setWidth(e,t)}get height(){return Math.abs(this.scale.y*this.getLocalBounds().height)}set height(e){let t=this.getLocalBounds().height;this._setHeight(e,t)}getSize(e){e||(e={});let t=this.getLocalBounds();return e.width=Math.abs(this.scale.x*t.width),e.height=Math.abs(this.scale.y*t.height),e}setSize(e,t){let r,n,i=this.getLocalBounds();"object"!=typeof e?(r=e,n=t??e):(r=e.width,n=e.height??e.width),void 0!==r&&this._setWidth(r,i.width),void 0!==n&&this._setHeight(n,i.height)}_updateSkew(){let e=this._rotation,t=this._skew;this._cx=Math.cos(e+t._y),this._sx=Math.sin(e+t._y),this._cy=-Math.sin(e-t._x),this._sy=Math.cos(e-t._x)}updateTransform(e){return this.position.set("number"==typeof e.x?e.x:this.position.x,"number"==typeof e.y?e.y:this.position.y),this.scale.set("number"==typeof e.scaleX?e.scaleX||1:this.scale.x,"number"==typeof e.scaleY?e.scaleY||1:this.scale.y),this.rotation="number"==typeof e.rotation?e.rotation:this.rotation,this.skew.set("number"==typeof e.skewX?e.skewX:this.skew.x,"number"==typeof e.skewY?e.skewY:this.skew.y),this.pivot.set("number"==typeof e.pivotX?e.pivotX:this.pivot.x,"number"==typeof e.pivotY?e.pivotY:this.pivot.y),this}setFromMatrix(e){e.decompose(this)}updateLocalTransform(){if((15&this._didLocalTransformChangeId)===this._didChangeId)return;this._didLocalTransformChangeId=this._didChangeId;let e=this.localTransform,t=this._scale,r=this._pivot,n=this._position,i=t._x,o=t._y,a=r._x,s=r._y;e.a=this._cx*i,e.b=this._sx*i,e.c=this._cy*o,e.d=this._sy*o,e.tx=n._x-(a*e.a+s*e.c),e.ty=n._y-(a*e.b+s*e.d)}set alpha(e){e!==this.localAlpha&&(this.localAlpha=e,this._updateFlags|=z,this._onUpdate())}get alpha(){return this.localAlpha}set tint(e){let t=i.Q.shared.setValue(e??0xffffff).toBgrNumber();t!==this.localColor&&(this.localColor=t,this._updateFlags|=z,this._onUpdate())}get tint(){let e=this.localColor;return((255&e)<<16)+(65280&e)+(e>>16&255)}set blendMode(e){this.localBlendMode!==e&&(this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0),this._updateFlags|=L,this.localBlendMode=e,this._onUpdate())}get blendMode(){return this.localBlendMode}get visible(){return!!(2&this.localDisplayStatus)}set visible(e){let t=+!!e;(2&this.localDisplayStatus)>>1!==t&&(this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0),this._updateFlags|=j,this.localDisplayStatus^=2,this._onUpdate())}get culled(){return!(4&this.localDisplayStatus)}set culled(e){let t=+!!e;(4&this.localDisplayStatus)>>2!==t&&(this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0),this._updateFlags|=j,this.localDisplayStatus^=4,this._onUpdate())}get renderable(){return!!(1&this.localDisplayStatus)}set renderable(e){let t=+!!e;(1&this.localDisplayStatus)!==t&&(this._updateFlags|=j,this.localDisplayStatus^=1,this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0),this._onUpdate())}get isRenderable(){return 7===this.localDisplayStatus&&this.groupAlpha>0}destroy(e=!1){if(this.destroyed)return;this.destroyed=!0,this.removeFromParent(),this.parent=null,this._mask=null,this._filters=null,this.effects=null,this._position=null,this._scale=null,this._pivot=null,this._skew=null,this.emit("destroyed",this),this.removeAllListeners();let t="boolean"==typeof e?e:e?.children,r=this.removeChildren(0,this.children.length);if(t)for(let t=0;t<r.length;++t)r[t].destroy(e)}}F.mixin(h),F.mixin(T),F.mixin(C),F.mixin(E),F.mixin(y),F.mixin(b),F.mixin(k),F.mixin(o)},46904:function(e,t,r){"use strict";r.d(t,{c:()=>a});var n=r(96253),i=r(45584);let o=new n.u;class a{constructor(e=1/0,t=1/0,r=-1/0,n=-1/0){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=o,this.minX=e,this.minY=t,this.maxX=r,this.maxY=n}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}get rectangle(){this._rectangle||(this._rectangle=new i.M);let e=this._rectangle;return this.minX>this.maxX||this.minY>this.maxY?(e.x=0,e.y=0,e.width=0,e.height=0):e.copyFromBounds(this),e}clear(){return this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=o,this}set(e,t,r,n){this.minX=e,this.minY=t,this.maxX=r,this.maxY=n}addFrame(e,t,r,n,i){i||(i=this.matrix);let o=i.a,a=i.b,s=i.c,l=i.d,u=i.tx,c=i.ty,f=this.minX,h=this.minY,d=this.maxX,p=this.maxY,m=o*e+s*t+u,g=a*e+l*t+c;m<f&&(f=m),g<h&&(h=g),m>d&&(d=m),g>p&&(p=g),m=o*r+s*t+u,g=a*r+l*t+c,m<f&&(f=m),g<h&&(h=g),m>d&&(d=m),g>p&&(p=g),m=o*e+s*n+u,g=a*e+l*n+c,m<f&&(f=m),g<h&&(h=g),m>d&&(d=m),g>p&&(p=g),m=o*r+s*n+u,g=a*r+l*n+c,m<f&&(f=m),g<h&&(h=g),m>d&&(d=m),g>p&&(p=g),this.minX=f,this.minY=h,this.maxX=d,this.maxY=p}addRect(e,t){this.addFrame(e.x,e.y,e.x+e.width,e.y+e.height,t)}addBounds(e,t){this.addFrame(e.minX,e.minY,e.maxX,e.maxY,t)}addBoundsMask(e){this.minX=this.minX>e.minX?this.minX:e.minX,this.minY=this.minY>e.minY?this.minY:e.minY,this.maxX=this.maxX<e.maxX?this.maxX:e.maxX,this.maxY=this.maxY<e.maxY?this.maxY:e.maxY}applyMatrix(e){let t=this.minX,r=this.minY,n=this.maxX,i=this.maxY,{a:o,b:a,c:s,d:l,tx:u,ty:c}=e,f=o*t+s*r+u,h=a*t+l*r+c;this.minX=f,this.minY=h,this.maxX=f,this.maxY=h,f=o*n+s*r+u,h=a*n+l*r+c,this.minX=f<this.minX?f:this.minX,this.minY=h<this.minY?h:this.minY,this.maxX=f>this.maxX?f:this.maxX,this.maxY=h>this.maxY?h:this.maxY,f=o*t+s*i+u,h=a*t+l*i+c,this.minX=f<this.minX?f:this.minX,this.minY=h<this.minY?h:this.minY,this.maxX=f>this.maxX?f:this.maxX,this.maxY=h>this.maxY?h:this.maxY,f=o*n+s*i+u,h=a*n+l*i+c,this.minX=f<this.minX?f:this.minX,this.minY=h<this.minY?h:this.minY,this.maxX=f>this.maxX?f:this.maxX,this.maxY=h>this.maxY?h:this.maxY}fit(e){return this.minX<e.left&&(this.minX=e.left),this.maxX>e.right&&(this.maxX=e.right),this.minY<e.top&&(this.minY=e.top),this.maxY>e.bottom&&(this.maxY=e.bottom),this}fitBounds(e,t,r,n){return this.minX<e&&(this.minX=e),this.maxX>t&&(this.maxX=t),this.minY<r&&(this.minY=r),this.maxY>n&&(this.maxY=n),this}pad(e,t=e){return this.minX-=e,this.maxX+=e,this.minY-=t,this.maxY+=t,this}ceil(){return this.minX=Math.floor(this.minX),this.minY=Math.floor(this.minY),this.maxX=Math.ceil(this.maxX),this.maxY=Math.ceil(this.maxY),this}clone(){return new a(this.minX,this.minY,this.maxX,this.maxY)}scale(e,t=e){return this.minX*=e,this.minY*=t,this.maxX*=e,this.maxY*=t,this}get x(){return this.minX}set x(e){let t=this.maxX-this.minX;this.minX=e,this.maxX=e+t}get y(){return this.minY}set y(e){let t=this.maxY-this.minY;this.minY=e,this.maxY=e+t}get width(){return this.maxX-this.minX}set width(e){this.maxX=this.minX+e}get height(){return this.maxY-this.minY}set height(e){this.maxY=this.minY+e}get left(){return this.minX}get right(){return this.maxX}get top(){return this.minY}get bottom(){return this.maxY}get isPositive(){return this.maxX-this.minX>0&&this.maxY-this.minY>0}get isValid(){return this.minX+this.minY!==1/0}addVertexData(e,t,r,n){let i=this.minX,o=this.minY,a=this.maxX,s=this.maxY;n||(n=this.matrix);let l=n.a,u=n.b,c=n.c,f=n.d,h=n.tx,d=n.ty;for(let n=t;n<r;n+=2){let t=e[n],r=e[n+1],p=l*t+c*r+h,m=u*t+f*r+d;i=p<i?p:i,o=m<o?m:o,a=p>a?p:a,s=m>s?m:s}this.minX=i,this.minY=o,this.maxX=a,this.maxY=s}containsPoint(e,t){return!!(this.minX<=e)&&!!(this.minY<=t)&&!!(this.maxX>=e)&&!!(this.maxY>=t)}toString(){return`[pixi.js:Bounds minX=${this.minX} minY=${this.minY} maxX=${this.maxX} maxY=${this.maxY} width=${this.width} height=${this.height}]`}}},92151:function(e,t,r){"use strict";r.d(t,{Ek:()=>s,fB:()=>o});var n=r(96253),i=r(23268);function o(e,t,r){let o,l;return r.clear(),o=e.parent?t?e.parent.worldTransform:s(e,l=i.u.get().identity()):n.u.IDENTITY,a(e,r,o,t),l&&i.u.return(l),r.isValid||r.set(0,0,0,0),r}function a(e,t,r,o){let s;if(!e.visible||!e.measurable)return;o?s=e.worldTransform:(e.updateLocalTransform(),(s=i.u.get()).appendFrom(e.localTransform,r));let l=t,u=!!e.effects.length;if(u&&(t=i.o.get().clear()),e.boundsArea)t.addRect(e.boundsArea,s);else{e.addBounds&&(t.matrix=s,e.addBounds(t));for(let r=0;r<e.children.length;r++)a(e.children[r],t,s,o)}if(u){for(let r=0;r<e.effects.length;r++)e.effects[r].addBounds?.(t);l.addBounds(t,n.u.IDENTITY),i.o.return(t)}o||i.u.return(s)}function s(e,t){let r=e.parent;return r&&(s(r,t),r.updateLocalTransform(),t.append(r.localTransform)),t}},99625:function(e,t,r){"use strict";r.d(t,{n:()=>o});var n=r(96253),i=r(23268);function o(e,t,r){return t.clear(),r||(r=n.u.IDENTITY),a(e,t,r,e,!0),t.isValid||t.set(0,0,0,0),t}function a(e,t,r,o,s){let l;if(s)l=i.u.get(),l=r.copyTo(l);else{if(!e.visible||!e.measurable)return;e.updateLocalTransform();let t=e.localTransform;(l=i.u.get()).appendFrom(t,r)}let u=t,c=!!e.effects.length;if(c&&(t=i.o.get().clear()),e.boundsArea)t.addRect(e.boundsArea,l);else{e.renderPipeId&&(t.matrix=l,e.addBounds(t));let r=e.children;for(let e=0;e<r.length;e++)a(r[e],t,l,o,!1)}if(c){for(let r=0;r<e.effects.length;r++)e.effects[r].addLocalBounds?.(t,o);u.addBounds(t,n.u.IDENTITY),i.o.return(t)}i.u.return(l)}},23268:function(e,t,r){"use strict";r.d(t,{o:()=>s,u:()=>a});var n=r(96253),i=r(83325),o=r(46904);let a=new i.b(n.u),s=new i.b(o.c)},73737:function(e,t,r){"use strict";function n(e,t){return 0xffffff!==e&&t?0xffffff!==t&&e?((e>>16&255)*(t>>16&255)/255<<16)+((e>>8&255)*(t>>8&255)/255<<8)+(255&e)*(255&t)/255:e:t}r.d(t,{G:()=>i});class i{constructor(){this.batcher=null,this.batch=null,this.applyTransform=!0,this.roundPixels=0}get blendMode(){return this.applyTransform?this.renderable.groupBlendMode:"normal"}packIndex(e,t,r){let n=this.geometryData.indices;for(let i=0;i<this.indexSize;i++)e[t++]=n[i+this.indexOffset]+r-this.vertexOffset}packAttributes(e,t,r,i){let o=this.geometryData,a=this.renderable,s=o.vertices,l=o.uvs,u=2*this.vertexOffset,c=(this.vertexOffset+this.vertexSize)*2,f=this.color,h=f>>16|65280&f|(255&f)<<16;if(this.applyTransform){let o=n(h,a.groupColor)+(this.alpha*a.groupAlpha*255<<24),f=a.groupTransform,d=i<<16|65535&this.roundPixels,p=f.a,m=f.b,g=f.c,v=f.d,y=f.tx,b=f.ty;for(let n=u;n<c;n+=2){let i=s[n],a=s[n+1];e[r]=p*i+g*a+y,e[r+1]=m*i+v*a+b,e[r+2]=l[n],e[r+3]=l[n+1],t[r+4]=o,t[r+5]=d,r+=6}}else{let n=h+(255*this.alpha<<24);for(let o=u;o<c;o+=2)e[r]=s[o],e[r+1]=s[o+1],e[r+2]=l[o],e[r+3]=l[o+1],t[r+4]=n,t[r+5]=i<<16,r+=6}}get vertSize(){return this.vertexSize}copyTo(e){e.indexOffset=this.indexOffset,e.indexSize=this.indexSize,e.vertexOffset=this.vertexOffset,e.vertexSize=this.vertexSize,e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.geometryData=this.geometryData}reset(){this.applyTransform=!0}}},58788:function(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(55746),i=r(21873),o=r(17464);class a extends i.mc{constructor(e){e instanceof o.T&&(e={context:e});const{context:t,roundPixels:r,...n}=e||{};super({label:"Graphics",...n}),this.canBundle=!0,this.renderPipeId="graphics",this._roundPixels=0,t?this._context=t:this._context=this._ownedContext=new o.T,this._context.on("update",this.onViewUpdate,this),this.allowChildren=!1,this.roundPixels=r??!1}set context(e){e!==this._context&&(this._context.off("update",this.onViewUpdate,this),this._context=e,this._context.on("update",this.onViewUpdate,this),this.onViewUpdate())}get context(){return this._context}get bounds(){return this._context.bounds}addBounds(e){e.addBounds(this._context.bounds)}containsPoint(e){return this._context.containsPoint(e)}get roundPixels(){return!!this._roundPixels}set roundPixels(e){this._roundPixels=+!!e}onViewUpdate(){this._didChangeId+=4096,this._didGraphicsUpdate=!0,!this.didViewUpdate&&(this.didViewUpdate=!0,this.renderGroup&&this.renderGroup.onChildViewUpdate(this))}destroy(e){this._ownedContext&&!e?this._ownedContext.destroy(e):(!0===e||e?.context===!0)&&this._context.destroy(e),this._ownedContext=null,this._context=null,super.destroy(e)}_callContextMethod(e,t){return this.context[e](...t),this}setFillStyle(...e){return this._callContextMethod("setFillStyle",e)}setStrokeStyle(...e){return this._callContextMethod("setStrokeStyle",e)}fill(...e){return this._callContextMethod("fill",e)}stroke(...e){return this._callContextMethod("stroke",e)}texture(...e){return this._callContextMethod("texture",e)}beginPath(){return this._callContextMethod("beginPath",[])}cut(){return this._callContextMethod("cut",[])}arc(...e){return this._callContextMethod("arc",e)}arcTo(...e){return this._callContextMethod("arcTo",e)}arcToSvg(...e){return this._callContextMethod("arcToSvg",e)}bezierCurveTo(...e){return this._callContextMethod("bezierCurveTo",e)}closePath(){return this._callContextMethod("closePath",[])}ellipse(...e){return this._callContextMethod("ellipse",e)}circle(...e){return this._callContextMethod("circle",e)}path(...e){return this._callContextMethod("path",e)}lineTo(...e){return this._callContextMethod("lineTo",e)}moveTo(...e){return this._callContextMethod("moveTo",e)}quadraticCurveTo(...e){return this._callContextMethod("quadraticCurveTo",e)}rect(...e){return this._callContextMethod("rect",e)}roundRect(...e){return this._callContextMethod("roundRect",e)}poly(...e){return this._callContextMethod("poly",e)}regularPoly(...e){return this._callContextMethod("regularPoly",e)}roundPoly(...e){return this._callContextMethod("roundPoly",e)}roundShape(...e){return this._callContextMethod("roundShape",e)}filletRect(...e){return this._callContextMethod("filletRect",e)}chamferRect(...e){return this._callContextMethod("chamferRect",e)}star(...e){return this._callContextMethod("star",e)}svg(...e){return this._callContextMethod("svg",e)}restore(...e){return this._callContextMethod("restore",e)}save(){return this._callContextMethod("save",[])}getTransform(){return this.context.getTransform()}resetTransform(){return this._callContextMethod("resetTransform",[])}rotateTransform(...e){return this._callContextMethod("rotate",e)}scaleTransform(...e){return this._callContextMethod("scale",e)}setTransform(...e){return this._callContextMethod("setTransform",e)}transform(...e){return this._callContextMethod("transform",e)}translateTransform(...e){return this._callContextMethod("translate",e)}clear(){return this._callContextMethod("clear",[])}get fillStyle(){return this._context.fillStyle}set fillStyle(e){this._context.fillStyle=e}get strokeStyle(){return this._context.strokeStyle}set strokeStyle(e){this._context.strokeStyle=e}clone(e=!1){return e?new a(this._context.clone()):(this._ownedContext=null,new a(this._context))}lineStyle(e,t,r){(0,n.t)("8.0.0","Graphics#lineStyle is no longer needed. Use Graphics#setStrokeStyle to set the stroke style.");let i={};return e&&(i.width=e),t&&(i.color=t),r&&(i.alpha=r),this.context.strokeStyle=i,this}beginFill(e,t){(0,n.t)("8.0.0","Graphics#beginFill is no longer needed. Use Graphics#fill to fill the shape with the desired style.");let r={};return e&&(r.color=e),t&&(r.alpha=t),this.context.fillStyle=r,this}endFill(){(0,n.t)("8.0.0","Graphics#endFill is no longer needed. Use Graphics#fill to fill the shape with the desired style."),this.context.fill();let e=this.context.strokeStyle;return(e.width!==o.T.defaultStrokeStyle.width||e.color!==o.T.defaultStrokeStyle.color||e.alpha!==o.T.defaultStrokeStyle.alpha)&&this.context.stroke(),this}drawCircle(...e){return(0,n.t)("8.0.0","Graphics#drawCircle has been renamed to Graphics#circle"),this._callContextMethod("circle",e)}drawEllipse(...e){return(0,n.t)("8.0.0","Graphics#drawEllipse has been renamed to Graphics#ellipse"),this._callContextMethod("ellipse",e)}drawPolygon(...e){return(0,n.t)("8.0.0","Graphics#drawPolygon has been renamed to Graphics#poly"),this._callContextMethod("poly",e)}drawRect(...e){return(0,n.t)("8.0.0","Graphics#drawRect has been renamed to Graphics#rect"),this._callContextMethod("rect",e)}drawRoundedRect(...e){return(0,n.t)("8.0.0","Graphics#drawRoundedRect has been renamed to Graphics#roundRect"),this._callContextMethod("roundRect",e)}drawStar(...e){return(0,n.t)("8.0.0","Graphics#drawStar has been renamed to Graphics#star"),this._callContextMethod("star",e)}}},17464:function(e,t,r){"use strict";r.d(t,{T:()=>el});var n=r(60588),i=r(51170),o=r(96253),a=r(58569),s=r(27633),l=r(94849),u=r(55746),c=r(46904),f=r(86840),h=r(32999);function d(e,t){let r=h(e),n=[],i=null,o=0,a=0;for(let e=0;e<r.length;e++){let s=r[e],l=s[0],u=s;switch(l){case"M":o=u[1],a=u[2],t.moveTo(o,a);break;case"m":o+=u[1],a+=u[2],t.moveTo(o,a);break;case"H":o=u[1],t.lineTo(o,a);break;case"h":o+=u[1],t.lineTo(o,a);break;case"V":a=u[1],t.lineTo(o,a);break;case"v":a+=u[1],t.lineTo(o,a);break;case"L":o=u[1],a=u[2],t.lineTo(o,a);break;case"l":o+=u[1],a+=u[2],t.lineTo(o,a);break;case"C":o=u[5],a=u[6],t.bezierCurveTo(u[1],u[2],u[3],u[4],o,a);break;case"c":t.bezierCurveTo(o+u[1],a+u[2],o+u[3],a+u[4],o+u[5],a+u[6]),o+=u[5],a+=u[6];break;case"S":o=u[3],a=u[4],t.bezierCurveToShort(u[1],u[2],o,a);break;case"s":t.bezierCurveToShort(o+u[1],a+u[2],o+u[3],a+u[4]),o+=u[3],a+=u[4];break;case"Q":o=u[3],a=u[4],t.quadraticCurveTo(u[1],u[2],o,a);break;case"q":t.quadraticCurveTo(o+u[1],a+u[2],o+u[3],a+u[4]),o+=u[3],a+=u[4];break;case"T":o=u[1],a=u[2],t.quadraticCurveToShort(o,a);break;case"t":o+=u[1],a+=u[2],t.quadraticCurveToShort(o,a);break;case"A":o=u[6],a=u[7],t.arcToSvg(u[1],u[2],u[3],u[4],u[5],o,a);break;case"a":o+=u[6],a+=u[7],t.arcToSvg(u[1],u[2],u[3],u[4],u[5],o,a);break;case"Z":case"z":t.closePath(),n.length>0&&((i=n.pop())?(o=i.startX,a=i.startY):(o=0,a=0)),i=null;break;default:(0,f.R)(`Unknown SVG path command: ${l}`)}"Z"!==l&&"z"!==l&&null===i&&(i={startX:o,startY:a},n.push(i))}return t}var p=r(45584);class m{constructor(e=0,t=0,r=0){this.type="circle",this.x=e,this.y=t,this.radius=r}clone(){return new m(this.x,this.y,this.radius)}contains(e,t){if(this.radius<=0)return!1;let r=this.radius*this.radius,n=this.x-e,i=this.y-t;return n*=n,i*=i,n+i<=r}strokeContains(e,t,r){if(0===this.radius)return!1;let n=this.x-e,i=this.y-t,o=this.radius,a=r/2,s=Math.sqrt(n*n+i*i);return s<o+a&&s>o-a}getBounds(e){return(e=e||new p.M).x=this.x-this.radius,e.y=this.y-this.radius,e.width=2*this.radius,e.height=2*this.radius,e}copyFrom(e){return this.x=e.x,this.y=e.y,this.radius=e.radius,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class g{constructor(e=0,t=0,r=0,n=0){this.type="ellipse",this.x=e,this.y=t,this.halfWidth=r,this.halfHeight=n}clone(){return new g(this.x,this.y,this.halfWidth,this.halfHeight)}contains(e,t){if(this.halfWidth<=0||this.halfHeight<=0)return!1;let r=(e-this.x)/this.halfWidth,n=(t-this.y)/this.halfHeight;return r*=r,n*=n,r+n<=1}strokeContains(e,t,r){let{halfWidth:n,halfHeight:i}=this;if(n<=0||i<=0)return!1;let o=r/2,a=n-o,s=i-o,l=n+o,u=i+o,c=e-this.x,f=t-this.y,h=c*c/(a*a)+f*f/(s*s),d=c*c/(l*l)+f*f/(u*u);return h>1&&d<=1}getBounds(){return new p.M(this.x-this.halfWidth,this.y-this.halfHeight,2*this.halfWidth,2*this.halfHeight)}copyFrom(e){return this.x=e.x,this.y=e.y,this.halfWidth=e.halfWidth,this.halfHeight=e.halfHeight,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:Ellipse x=${this.x} y=${this.y} halfWidth=${this.halfWidth} halfHeight=${this.halfHeight}]`}}function v(e,t,r,n,i,o){let a,s,l=e-r,u=t-n,c=i-r,f=o-n,h=l*c+u*f,d=c*c+f*f,p=-1;0!==d&&(p=h/d),p<0?(a=r,s=n):p>1?(a=i,s=o):(a=r+p*c,s=n+p*f);let m=e-a,g=t-s;return m*m+g*g}class y{constructor(...e){this.type="polygon";let t=Array.isArray(e[0])?e[0]:e;if("number"!=typeof t[0]){const e=[];for(let r=0,n=t.length;r<n;r++)e.push(t[r].x,t[r].y);t=e}this.points=t,this.closePath=!0}clone(){let e=new y(this.points.slice());return e.closePath=this.closePath,e}contains(e,t){let r=!1,n=this.points.length/2;for(let i=0,o=n-1;i<n;o=i++){let n=this.points[2*i],a=this.points[2*i+1],s=this.points[2*o],l=this.points[2*o+1];a>t!=l>t&&e<(t-a)/(l-a)*(s-n)+n&&(r=!r)}return r}strokeContains(e,t,r){let n=r/2,i=n*n,{points:o}=this,a=o.length-2*!this.closePath;for(let r=0;r<a;r+=2)if(v(e,t,o[r],o[r+1],o[(r+2)%o.length],o[(r+3)%o.length])<=i)return!0;return!1}getBounds(e){e=e||new p.M;let t=this.points,r=1/0,n=-1/0,i=1/0,o=-1/0;for(let e=0,a=t.length;e<a;e+=2){let a=t[e],s=t[e+1];r=a<r?a:r,n=a>n?a:n,i=s<i?s:i,o=s>o?s:o}return e.x=r,e.width=n-r,e.y=i,e.height=o-i,e}copyFrom(e){return this.points=e.points.slice(),this.closePath=e.closePath,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:PolygoncloseStroke=${this.closePath}points=${this.points.reduce((e,t)=>`${e}, ${t}`,"")}]`}get lastX(){return this.points[this.points.length-2]}get lastY(){return this.points[this.points.length-1]}get x(){return this.points[this.points.length-2]}get y(){return this.points[this.points.length-1]}}let b=(e,t,r,n,i,o)=>{let a=e-r,s=t-n,l=Math.sqrt(a*a+s*s);return l>=i-o&&l<=i+o};class x{constructor(e=0,t=0,r=0,n=0,i=20){this.type="roundedRectangle",this.x=e,this.y=t,this.width=r,this.height=n,this.radius=i}getBounds(e){return(e=e||new p.M).x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e}clone(){return new x(this.x,this.y,this.width,this.height,this.radius)}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.copyFrom(this),e}contains(e,t){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){let r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(t>=this.y+r&&t<=this.y+this.height-r||e>=this.x+r&&e<=this.x+this.width-r)return!0;let n=e-(this.x+r),i=t-(this.y+r),o=r*r;if(n*n+i*i<=o||(n=e-(this.x+this.width-r))*n+i*i<=o||n*n+(i=t-(this.y+this.height-r))*i<=o||(n=e-(this.x+r))*n+i*i<=o)return!0}return!1}strokeContains(e,t,r){let{x:n,y:i,width:o,height:a,radius:s}=this,l=r/2,u=n+s,c=i+s,f=o-2*s,h=a-2*s,d=n+o,p=i+a;return(e>=n-l&&e<=n+l||e>=d-l&&e<=d+l)&&t>=c&&t<=c+h||(t>=i-l&&t<=i+l||t>=p-l&&t<=p+l)&&e>=u&&e<=u+f||e<u&&t<c&&b(e,t,u,c,s,l)||e>d-s&&t<c&&b(e,t,d-s,c,s,l)||e>d-s&&t>p-s&&b(e,t,d-s,p-s,s,l)||e<u&&t>p-s&&b(e,t,u,p-s,s,l)}toString(){return`[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}var _=r(54547);let w=8,S=11920929e-14,A=1,E=.01,C=0,k=0;function O(e,t,r,n,i,o,a,s,l,u){let c=1,f=(A-Math.min(.99,Math.max(0,u??_.GH.defaultOptions.bezierSmoothness)))/c;return I(t,r,n,i,o,a,s,l,e,f*=f),e}function I(e,t,r,n,i,o,a,s,l,u){T(e,t,r,n,i,o,a,s,l,u,0),l.push(a,s)}function T(e,t,r,n,i,o,a,s,l,u,c){if(c>w)return;let f=Math.PI,h=(e+r)/2,d=(t+n)/2,p=(r+i)/2,m=(n+o)/2,g=(i+a)/2,v=(o+s)/2,y=(h+p)/2,b=(d+m)/2,x=(p+g)/2,_=(m+v)/2,A=(y+x)/2,O=(b+_)/2;if(c>0){let c,h,d=a-e,p=s-t,m=Math.abs((r-a)*p-(n-s)*d),g=Math.abs((i-a)*p-(o-s)*d);if(m>S&&g>S){if((m+g)*(m+g)<=u*(d*d+p*p)){if(C<E)return void l.push(A,O);let u=Math.atan2(o-n,i-r);if(c=Math.abs(u-Math.atan2(n-t,r-e)),h=Math.abs(Math.atan2(s-o,a-i)-u),c>=f&&(c=2*f-c),h>=f&&(h=2*f-h),c+h<C)return void l.push(A,O);if(0!==k){if(c>k)return void l.push(r,n);if(h>k)return void l.push(i,o)}}}else if(m>S){if(m*m<=u*(d*d+p*p)){if(C<E)return void l.push(A,O);if((c=Math.abs(Math.atan2(o-n,i-r)-Math.atan2(n-t,r-e)))>=f&&(c=2*f-c),c<C){l.push(r,n),l.push(i,o);return}if(0!==k&&c>k)return void l.push(r,n)}}else if(g>S){if(g*g<=u*(d*d+p*p)){if(C<E)return void l.push(A,O);if((c=Math.abs(Math.atan2(s-o,a-i)-Math.atan2(o-n,i-r)))>=f&&(c=2*f-c),c<C){l.push(r,n),l.push(i,o);return}if(0!==k&&c>k)return void l.push(i,o)}}else if((d=A-(e+a)/2)*d+(p=O-(t+s)/2)*p<=u)return void l.push(A,O)}T(e,t,h,d,y,b,A,O,l,u,c+1),T(A,O,x,_,g,v,a,s,l,u,c+1)}let M=8,R=11920929e-14,P=1,$=.01,B=0;function N(e,t,r,n,i,o,a,s){let l=1,u=(P-Math.min(.99,Math.max(0,s??_.GH.defaultOptions.bezierSmoothness)))/l;return z(t,r,n,i,o,a,e,u*=u),e}function z(e,t,r,n,i,o,a,s){L(a,e,t,r,n,i,o,s,0),a.push(i,o)}function L(e,t,r,n,i,o,a,s,l){if(l>M)return;let u=Math.PI,c=(t+n)/2,f=(r+i)/2,h=(n+o)/2,d=(i+a)/2,p=(c+h)/2,m=(f+d)/2,g=o-t,v=a-r,y=Math.abs((n-o)*v-(i-a)*g);if(y>R){if(y*y<=s*(g*g+v*v)){if(B<$)return void e.push(p,m);let s=Math.abs(Math.atan2(a-i,o-n)-Math.atan2(i-r,n-t));if(s>=u&&(s=2*u-s),s<B)return void e.push(p,m)}}else if((g=p-(t+o)/2)*g+(v=m-(r+a)/2)*v<=s)return void e.push(p,m);L(e,t,r,c,f,p,m,s,l+1),L(e,p,m,h,d,o,a,s,l+1)}function j(e,t,r,n,i,o,a,s){let l=Math.abs(i-o);!a&&i>o?l=2*Math.PI-l:a&&o>i&&(l=2*Math.PI-l),s=Math.max(s=s||Math.max(6,Math.floor(6*Math.pow(n,1/3)*(l/Math.PI))),3);let u=l/s,c=i;u*=a?-1:1;for(let i=0;i<s+1;i++){let i=t+Math.cos(c)*n,o=r+Math.sin(c)*n;e.push(i,o),c+=u}}function F(e,t,r,n,i,o){let a=e[e.length-2],s=e[e.length-1]-r,l=a-t,u=i-r,c=n-t,f=Math.abs(s*c-l*u);if(f<1e-8||0===o){(e[e.length-2]!==t||e[e.length-1]!==r)&&e.push(t,r);return}let h=s*s+l*l,d=u*u+c*c,p=s*u+l*c,m=o*Math.sqrt(h)/f,g=o*Math.sqrt(d)/f,v=m*p/h,y=g*p/d,b=m*c+g*l,x=m*u+g*s,_=l*(g+v),w=c*(m+y),S=Math.atan2(s*(g+v)-x,_-b),A=Math.atan2(u*(m+y)-x,w-b);j(e,b+t,x+r,o,S,A,l*u>c*s)}let D=2*Math.PI,U={centerX:0,centerY:0,ang1:0,ang2:0},H=({x:e,y:t},r,n,i,o,a,s,l)=>{let u=i*(e*=r)-o*(t*=n),c=o*e+i*t;return l.x=u+a,l.y=c+s,l};function G(e,t){let r=-1.5707963267948966===t?-.551915024494:4/3*Math.tan(t/4),n=1.5707963267948966===t?.551915024494:r,i=Math.cos(e),o=Math.sin(e),a=Math.cos(e+t),s=Math.sin(e+t);return[{x:i-o*n,y:o+i*n},{x:a+s*n,y:s-a*n},{x:a,y:s}]}let W=(e,t,r,n)=>{let i=e*n-t*r<0?-1:1,o=e*r+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},V=(e,t,r,n,i,o,a,s,l,u,c,f,h)=>{let d=Math.pow(i,2),p=Math.pow(o,2),m=Math.pow(c,2),g=Math.pow(f,2),v=d*p-d*g-p*m;v<0&&(v=0),v/=d*g+p*m;let y=(v=Math.sqrt(v)*(a===s?-1:1))*i/o*f,b=-(v*o)/i*c,x=u*y-l*b+(e+r)/2,_=l*y+u*b+(t+n)/2,w=(c-y)/i,S=(f-b)/o,A=(-c-y)/i,E=(-f-b)/o,C=W(1,0,w,S),k=W(w,S,A,E);0===s&&k>0&&(k-=D),1===s&&k<0&&(k+=D),h.centerX=x,h.centerY=_,h.ang1=C,h.ang2=k};function q(e,t,r,n,i,o,a,s=0,l=0,u=0){if(0===o||0===a)return;let c=Math.sin(s*D/360),f=Math.cos(s*D/360),h=f*(t-n)/2+c*(r-i)/2,d=-c*(t-n)/2+f*(r-i)/2;if(0===h&&0===d)return;let p=Math.pow(h,2)/Math.pow(o=Math.abs(o),2)+Math.pow(d,2)/Math.pow(a=Math.abs(a),2);p>1&&(o*=Math.sqrt(p),a*=Math.sqrt(p)),V(t,r,n,i,o,a,l,u,c,f,h,d,U);let{ang1:m,ang2:g}=U,{centerX:v,centerY:y}=U,b=Math.abs(g)/(D/4);1e-7>Math.abs(1-b)&&(b=1);let x=Math.max(Math.ceil(b),1);g/=x;let _=e[e.length-2],w=e[e.length-1],S={x:0,y:0};for(let t=0;t<x;t++){let t=G(m,g),{x:r,y:n}=H(t[0],o,a,f,c,v,y,S),{x:i,y:s}=H(t[1],o,a,f,c,v,y,S),{x:l,y:u}=H(t[2],o,a,f,c,v,y,S);O(e,_,w,r,n,i,s,l,u),_=l,w=u,m+=g}}function X(e,t,r){let n=(e,t)=>{let r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n),o=r/i,a=n/i;return{len:i,nx:o,ny:a}},i=(t,r)=>{0===t?e.moveTo(r.x,r.y):e.lineTo(r.x,r.y)},o=t[t.length-1];for(let a=0;a<t.length;a++){let s,l=t[a%t.length],u=l.radius??r;if(u<=0){i(a,l),o=l;continue}let c=t[(a+1)%t.length],f=n(l,o),h=n(l,c);if(f.len<1e-4||h.len<1e-4){i(a,l),o=l;continue}let d=Math.asin(f.nx*h.ny-f.ny*h.nx),p=1,m=!1;f.nx*h.nx- -(f.ny*h.ny)<0?d<0?d=Math.PI+d:(d=Math.PI-d,p=-1,m=!0):d>0&&(p=-1,m=!0);let g=d/2,v=Math.abs(Math.cos(g)*u/Math.sin(g));s=v>Math.min(f.len/2,h.len/2)?Math.abs((v=Math.min(f.len/2,h.len/2))*Math.sin(g)/Math.cos(g)):u;let y=l.x+h.nx*v+-h.ny*s*p,b=l.y+h.ny*v+h.nx*s*p,x=Math.atan2(f.ny,f.nx)+Math.PI/2*p,_=Math.atan2(h.ny,h.nx)-Math.PI/2*p;0===a&&e.moveTo(y+Math.cos(x)*s,b+Math.sin(x)*s),e.arc(y,b,s,x,_,m),o=l}}function Y(e,t,r,n){let i=(e,t)=>Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2),o=(e,t,r)=>({x:e.x+(t.x-e.x)*r,y:e.y+(t.y-e.y)*r}),a=t.length;for(let s=0;s<a;s++){let l,u,c=t[(s+1)%a],f=c.radius??r;if(f<=0){0===s?e.moveTo(c.x,c.y):e.lineTo(c.x,c.y);continue}let h=t[s],d=t[(s+2)%a],p=i(h,c);l=p<1e-4?c:o(c,h,Math.min(p/2,f)/p);let m=i(d,c);u=m<1e-4?c:o(c,d,Math.min(m/2,f)/m),0===s?e.moveTo(l.x,l.y):e.lineTo(l.x,l.y),e.quadraticCurveTo(c.x,c.y,u.x,u.y,n)}}let K=new p.M;class Z{constructor(e){this.shapePrimitives=[],this._currentPoly=null,this._bounds=new c.c,this._graphicsPath2D=e}moveTo(e,t){return this.startPoly(e,t),this}lineTo(e,t){this._ensurePoly();let r=this._currentPoly.points,n=r[r.length-2],i=r[r.length-1];return(n!==e||i!==t)&&r.push(e,t),this}arc(e,t,r,n,i,o){return this._ensurePoly(!1),j(this._currentPoly.points,e,t,r,n,i,o),this}arcTo(e,t,r,n,i){return this._ensurePoly(),F(this._currentPoly.points,e,t,r,n,i),this}arcToSvg(e,t,r,n,i,o,a){return q(this._currentPoly.points,this._currentPoly.lastX,this._currentPoly.lastY,o,a,e,t,r,n,i),this}bezierCurveTo(e,t,r,n,i,o,a){this._ensurePoly();let s=this._currentPoly;return O(this._currentPoly.points,s.lastX,s.lastY,e,t,r,n,i,o,a),this}quadraticCurveTo(e,t,r,n,i){this._ensurePoly();let o=this._currentPoly;return N(this._currentPoly.points,o.lastX,o.lastY,e,t,r,n,i),this}closePath(){return this.endPoly(!0),this}addPath(e,t){this.endPoly(),t&&!t.isIdentity()&&(e=e.clone(!0)).transform(t);for(let t=0;t<e.instructions.length;t++){let r=e.instructions[t];this[r.action](...r.data)}return this}finish(e=!1){this.endPoly(e)}rect(e,t,r,n,i){return this.drawShape(new p.M(e,t,r,n),i),this}circle(e,t,r,n){return this.drawShape(new m(e,t,r),n),this}poly(e,t,r){let n=new y(e);return n.closePath=t,this.drawShape(n,r),this}regularPoly(e,t,r,n,i=0,o){let a=-1*Math.PI/2+i,s=2*Math.PI/(n=Math.max(0|n,3)),l=[];for(let i=0;i<n;i++){let n=i*s+a;l.push(e+r*Math.cos(n),t+r*Math.sin(n))}return this.poly(l,!0,o),this}roundPoly(e,t,r,n,i,o=0,a){if(n=Math.max(0|n,3),i<=0)return this.regularPoly(e,t,r,n,o);i=Math.min(i,r*Math.sin(Math.PI/n)-.001);let s=-1*Math.PI/2+o,l=2*Math.PI/n,u=(n-2)*Math.PI/n/2;for(let o=0;o<n;o++){let n=o*l+s,c=e+r*Math.cos(n),f=t+r*Math.sin(n),h=n+Math.PI+u,d=n-Math.PI-u,p=c+i*Math.cos(h),m=f+i*Math.sin(h),g=c+i*Math.cos(d),v=f+i*Math.sin(d);0===o?this.moveTo(p,m):this.lineTo(p,m),this.quadraticCurveTo(c,f,g,v,a)}return this.closePath()}roundShape(e,t,r=!1,n){return e.length<3?this:(r?Y(this,e,t,n):X(this,e,t),this.closePath())}filletRect(e,t,r,n,i){if(0===i)return this.rect(e,t,r,n);let o=Math.min(r,n)/2,a=Math.min(o,Math.max(-o,i)),s=e+r,l=t+n,u=a<0?-a:0,c=Math.abs(a);return this.moveTo(e,t+c).arcTo(e+u,t+u,e+c,t,c).lineTo(s-c,t).arcTo(s-u,t+u,s,t+c,c).lineTo(s,l-c).arcTo(s-u,l-u,e+r-c,l,c).lineTo(e+c,l).arcTo(e+u,l-u,e,l-c,c).closePath()}chamferRect(e,t,r,n,i,o){if(i<=0)return this.rect(e,t,r,n);let a=Math.min(i,Math.min(r,n)/2),s=e+r,l=t+n,u=[e+a,t,s-a,t,s,t+a,s,l-a,s-a,l,e+a,l,e,l-a,e,t+a];for(let e=u.length-1;e>=2;e-=2)u[e]===u[e-2]&&u[e-1]===u[e-3]&&u.splice(e-1,2);return this.poly(u,!0,o)}ellipse(e,t,r,n,i){return this.drawShape(new g(e,t,r,n),i),this}roundRect(e,t,r,n,i,o){return this.drawShape(new x(e,t,r,n,i),o),this}drawShape(e,t){return this.endPoly(),this.shapePrimitives.push({shape:e,transform:t}),this}startPoly(e,t){let r=this._currentPoly;return r&&this.endPoly(),(r=new y).points.push(e,t),this._currentPoly=r,this}endPoly(e=!1){let t=this._currentPoly;return t&&t.points.length>2&&(t.closePath=e,this.shapePrimitives.push({shape:t})),this._currentPoly=null,this}_ensurePoly(e=!0){if(!this._currentPoly&&(this._currentPoly=new y,e)){let e=this.shapePrimitives[this.shapePrimitives.length-1];if(e){let t=e.shape.x,r=e.shape.y;if(!e.transform.isIdentity()){let n=e.transform,i=t;t=n.a*t+n.c*r+n.tx,r=n.b*i+n.d*r+n.ty}this._currentPoly.points.push(t,r)}else this._currentPoly.points.push(0,0)}}buildPath(){let e=this._graphicsPath2D;this.shapePrimitives.length=0,this._currentPoly=null;for(let t=0;t<e.instructions.length;t++){let r=e.instructions[t];this[r.action](...r.data)}this.finish()}get bounds(){let e=this._bounds;e.clear();let t=this.shapePrimitives;for(let r=0;r<t.length;r++){let n=t[r],i=n.shape.getBounds(K);n.transform?e.addRect(i,n.transform):e.addRect(i)}return e}}class Q{constructor(e){this.instructions=[],this.uid=(0,l.L)("graphicsPath"),this._dirty=!0,"string"==typeof e?d(e,this):this.instructions=e?.slice()??[]}get shapePath(){return this._shapePath||(this._shapePath=new Z(this)),this._dirty&&(this._dirty=!1,this._shapePath.buildPath()),this._shapePath}addPath(e,t){return e=e.clone(),this.instructions.push({action:"addPath",data:[e,t]}),this._dirty=!0,this}arc(...e){return this.instructions.push({action:"arc",data:e}),this._dirty=!0,this}arcTo(...e){return this.instructions.push({action:"arcTo",data:e}),this._dirty=!0,this}arcToSvg(...e){return this.instructions.push({action:"arcToSvg",data:e}),this._dirty=!0,this}bezierCurveTo(...e){return this.instructions.push({action:"bezierCurveTo",data:e}),this._dirty=!0,this}bezierCurveToShort(e,t,r,n,i){let o=this.instructions[this.instructions.length-1],s=this.getLastPoint(a.b.shared),l=0,u=0;if(o&&"bezierCurveTo"===o.action){l=o.data[2],u=o.data[3];let e=s.x,t=s.y;l=e+(e-l),u=t+(t-u)}else l=s.x,u=s.y;return this.instructions.push({action:"bezierCurveTo",data:[l,u,e,t,r,n,i]}),this._dirty=!0,this}closePath(){return this.instructions.push({action:"closePath",data:[]}),this._dirty=!0,this}ellipse(...e){return this.instructions.push({action:"ellipse",data:e}),this._dirty=!0,this}lineTo(...e){return this.instructions.push({action:"lineTo",data:e}),this._dirty=!0,this}moveTo(...e){return this.instructions.push({action:"moveTo",data:e}),this}quadraticCurveTo(...e){return this.instructions.push({action:"quadraticCurveTo",data:e}),this._dirty=!0,this}quadraticCurveToShort(e,t,r){let n=this.instructions[this.instructions.length-1],i=this.getLastPoint(a.b.shared),o=0,s=0;if(n&&"quadraticCurveTo"===n.action){o=n.data[0],s=n.data[1];let e=i.x,t=i.y;o=e+(e-o),s=t+(t-s)}else o=i.x,s=i.y;return this.instructions.push({action:"quadraticCurveTo",data:[o,s,e,t,r]}),this._dirty=!0,this}rect(e,t,r,n,i){return this.instructions.push({action:"rect",data:[e,t,r,n,i]}),this._dirty=!0,this}circle(e,t,r,n){return this.instructions.push({action:"circle",data:[e,t,r,n]}),this._dirty=!0,this}roundRect(...e){return this.instructions.push({action:"roundRect",data:e}),this._dirty=!0,this}poly(...e){return this.instructions.push({action:"poly",data:e}),this._dirty=!0,this}regularPoly(...e){return this.instructions.push({action:"regularPoly",data:e}),this._dirty=!0,this}roundPoly(...e){return this.instructions.push({action:"roundPoly",data:e}),this._dirty=!0,this}roundShape(...e){return this.instructions.push({action:"roundShape",data:e}),this._dirty=!0,this}filletRect(...e){return this.instructions.push({action:"filletRect",data:e}),this._dirty=!0,this}chamferRect(...e){return this.instructions.push({action:"chamferRect",data:e}),this._dirty=!0,this}star(e,t,r,n,i,o,a){i=i||n/2;let s=-1*Math.PI/2+o,l=2*r,u=2*Math.PI/l,c=[];for(let r=0;r<l;r++){let o=r%2?i:n,a=r*u+s;c.push(e+o*Math.cos(a),t+o*Math.sin(a))}return this.poly(c,!0,a),this}clone(e=!1){let t=new Q;if(e)for(let e=0;e<this.instructions.length;e++){let r=this.instructions[e];t.instructions.push({action:r.action,data:r.data.slice()})}else t.instructions=this.instructions.slice();return t}clear(){return this.instructions.length=0,this._dirty=!0,this}transform(e){if(e.isIdentity())return this;let t=e.a,r=e.b,n=e.c,i=e.d,o=e.tx,a=e.ty,s=0,l=0,u=0,c=0,h=0,d=0,p=0,m=0;for(let g=0;g<this.instructions.length;g++){let v=this.instructions[g],y=v.data;switch(v.action){case"moveTo":case"lineTo":s=y[0],l=y[1],y[0]=t*s+n*l+o,y[1]=r*s+i*l+a;break;case"bezierCurveTo":u=y[0],c=y[1],h=y[2],d=y[3],s=y[4],l=y[5],y[0]=t*u+n*c+o,y[1]=r*u+i*c+a,y[2]=t*h+n*d+o,y[3]=r*h+i*d+a,y[4]=t*s+n*l+o,y[5]=r*s+i*l+a;break;case"quadraticCurveTo":u=y[0],c=y[1],s=y[2],l=y[3],y[0]=t*u+n*c+o,y[1]=r*u+i*c+a,y[2]=t*s+n*l+o,y[3]=r*s+i*l+a;break;case"arcToSvg":s=y[5],l=y[6],p=y[0],m=y[1],y[0]=t*p+n*m,y[1]=r*p+i*m,y[5]=t*s+n*l+o,y[6]=r*s+i*l+a;break;case"circle":y[4]=J(y[3],e);break;case"rect":y[4]=J(y[4],e);break;case"ellipse":y[8]=J(y[8],e);break;case"roundRect":y[5]=J(y[5],e);break;case"addPath":y[0].transform(e);break;case"poly":y[2]=J(y[2],e);break;default:(0,f.R)("unknown transform action",v.action)}}return this._dirty=!0,this}get bounds(){return this.shapePath.bounds}getLastPoint(e){let t=this.instructions.length-1,r=this.instructions[t];if(!r)return e.x=0,e.y=0,e;for(;"closePath"===r.action;){if(--t<0)return e.x=0,e.y=0,e;r=this.instructions[t]}switch(r.action){case"moveTo":case"lineTo":e.x=r.data[0],e.y=r.data[1];break;case"quadraticCurveTo":e.x=r.data[2],e.y=r.data[3];break;case"bezierCurveTo":e.x=r.data[4],e.y=r.data[5];break;case"arc":case"arcToSvg":e.x=r.data[5],e.y=r.data[6];break;case"addPath":r.data[0].getLastPoint(e)}return e}}function J(e,t){return e?e.prepend(t):t.clone()}function ee(e,t){if("string"==typeof e){let t=document.createElement("div");t.innerHTML=e.trim(),e=t.querySelector("svg")}return et(e,{context:t,path:new Q},null,null),t}function et(e,t,r,n){let i,o,a,s,l,u,c,f,h,d,p,m,g,v,y,b,x=e.children,{fillStyle:_,strokeStyle:w}=en(e);switch(_&&r?r={...r,..._}:_&&(r=_),w&&n?n={...n,...w}:w&&(n=w),t.context.fillStyle=r,t.context.strokeStyle=n,e.nodeName.toLowerCase()){case"path":v=new Q(e.getAttribute("d")),t.context.path(v),r&&t.context.fill(),n&&t.context.stroke();break;case"circle":c=er(e,"cx",0),f=er(e,"cy",0),h=er(e,"r",0),t.context.ellipse(c,f,h,h),r&&t.context.fill(),n&&t.context.stroke();break;case"rect":i=er(e,"x",0),o=er(e,"y",0),y=er(e,"width",0),b=er(e,"height",0),d=er(e,"rx",0),p=er(e,"ry",0),d||p?t.context.roundRect(i,o,y,b,d||p):t.context.rect(i,o,y,b),r&&t.context.fill(),n&&t.context.stroke();break;case"ellipse":c=er(e,"cx",0),f=er(e,"cy",0),d=er(e,"rx",0),p=er(e,"ry",0),t.context.beginPath(),t.context.ellipse(c,f,d,p),r&&t.context.fill(),n&&t.context.stroke();break;case"line":a=er(e,"x1",0),s=er(e,"y1",0),l=er(e,"x2",0),u=er(e,"y2",0),t.context.beginPath(),t.context.moveTo(a,s),t.context.lineTo(l,u),n&&t.context.stroke();break;case"polygon":m=(g=e.getAttribute("points")).match(/\d+/g).map(e=>parseInt(e,10)),t.context.poly(m,!0),r&&t.context.fill(),n&&t.context.stroke();break;case"polyline":m=(g=e.getAttribute("points")).match(/\d+/g).map(e=>parseInt(e,10)),t.context.poly(m,!1),n&&t.context.stroke();break;case"g":case"svg":break;default:console.info(`[SVG parser] <${e.nodeName}> elements unsupported`)}for(let e=0;e<x.length;e++)et(x[e],t,r,n)}function er(e,t,r){let n=e.getAttribute(t);return n?Number(n):r}function en(e){let t=e.getAttribute("style"),r={},n={},o=!1,a=!1;if(t){let e=t.split(";");for(let t=0;t<e.length;t++){let[s,l]=e[t].split(":");switch(s){case"stroke":"none"!==l&&(r.color=i.Q.shared.setValue(l).toNumber(),a=!0);break;case"stroke-width":r.width=Number(l);break;case"fill":"none"!==l&&(o=!0,n.color=i.Q.shared.setValue(l).toNumber());break;case"fill-opacity":n.alpha=Number(l);break;case"stroke-opacity":r.alpha=Number(l);break;case"opacity":n.alpha=Number(l),r.alpha=Number(l)}}}else{let t=e.getAttribute("stroke");t&&"none"!==t&&(a=!0,r.color=i.Q.shared.setValue(t).toNumber(),r.width=er(e,"stroke-width",1));let s=e.getAttribute("fill");s&&"none"!==s&&(o=!0,n.color=i.Q.shared.setValue(s).toNumber())}return{strokeStyle:a?r:null,fillStyle:o?n:null}}var ei=r(87658);let eo=new a.b,ea=new o.u,es=class e extends n.A{constructor(){super(...arguments),this.uid=(0,l.L)("graphicsContext"),this.dirty=!0,this.batchMode="auto",this.instructions=[],this._activePath=new Q,this._transform=new o.u,this._fillStyle={...e.defaultFillStyle},this._strokeStyle={...e.defaultStrokeStyle},this._stateStack=[],this._tick=0,this._bounds=new c.c,this._boundsDirty=!0}clone(){let t=new e;return t.batchMode=this.batchMode,t.instructions=this.instructions.slice(),t._activePath=this._activePath.clone(),t._transform=this._transform.clone(),t._fillStyle={...this._fillStyle},t._strokeStyle={...this._strokeStyle},t._stateStack=this._stateStack.slice(),t._bounds=this._bounds.clone(),t._boundsDirty=!0,t}get fillStyle(){return this._fillStyle}set fillStyle(t){this._fillStyle=(0,ei.M)(t,e.defaultFillStyle)}get strokeStyle(){return this._strokeStyle}set strokeStyle(t){this._strokeStyle=(0,ei.M)(t,e.defaultStrokeStyle)}setFillStyle(t){return this._fillStyle=(0,ei.M)(t,e.defaultFillStyle),this}setStrokeStyle(t){return this._strokeStyle=(0,ei.M)(t,e.defaultStrokeStyle),this}texture(e,t,r,n,o,a){return this.instructions.push({action:"texture",data:{image:e,dx:r||0,dy:n||0,dw:o||e.frame.width,dh:a||e.frame.height,transform:this._transform.clone(),alpha:this._fillStyle.alpha,style:t?i.Q.shared.setValue(t).toNumber():0xffffff}}),this.onUpdate(),this}beginPath(){return this._activePath=new Q,this}fill(t,r){let n,i=this.instructions[this.instructions.length-1];return(n=0===this._tick&&i&&"stroke"===i.action?i.data.path:this._activePath.clone())&&(null!=t&&(void 0!==r&&"number"==typeof t&&((0,u.t)("8.0.0","GraphicsContext.fill(color, alpha) is deprecated, use GraphicsContext.fill({ color, alpha }) instead"),t={color:t,alpha:r}),this._fillStyle=(0,ei.M)(t,e.defaultFillStyle)),this.instructions.push({action:"fill",data:{style:this.fillStyle,path:n}}),this.onUpdate(),this._initNextPathLocation(),this._tick=0),this}_initNextPathLocation(){let{x:e,y:t}=this._activePath.getLastPoint(a.b.shared);this._activePath.clear(),this._activePath.moveTo(e,t)}stroke(t){let r,n=this.instructions[this.instructions.length-1];return(r=0===this._tick&&n&&"fill"===n.action?n.data.path:this._activePath.clone())&&(null!=t&&(this._strokeStyle=(0,ei.M)(t,e.defaultStrokeStyle)),this.instructions.push({action:"stroke",data:{style:this.strokeStyle,path:r}}),this.onUpdate(),this._initNextPathLocation(),this._tick=0),this}cut(){for(let e=0;e<2;e++){let t=this.instructions[this.instructions.length-1-e],r=this._activePath.clone();if(t&&("stroke"===t.action||"fill"===t.action))if(t.data.hole)t.data.hole.addPath(r);else{t.data.hole=r;break}}return this._initNextPathLocation(),this}arc(e,t,r,n,i,o){this._tick++;let a=this._transform;return this._activePath.arc(a.a*e+a.c*t+a.tx,a.b*e+a.d*t+a.ty,r,n,i,o),this}arcTo(e,t,r,n,i){this._tick++;let o=this._transform;return this._activePath.arcTo(o.a*e+o.c*t+o.tx,o.b*e+o.d*t+o.ty,o.a*r+o.c*n+o.tx,o.b*r+o.d*n+o.ty,i),this}arcToSvg(e,t,r,n,i,o,a){this._tick++;let s=this._transform;return this._activePath.arcToSvg(e,t,r,n,i,s.a*o+s.c*a+s.tx,s.b*o+s.d*a+s.ty),this}bezierCurveTo(e,t,r,n,i,o,a){this._tick++;let s=this._transform;return this._activePath.bezierCurveTo(s.a*e+s.c*t+s.tx,s.b*e+s.d*t+s.ty,s.a*r+s.c*n+s.tx,s.b*r+s.d*n+s.ty,s.a*i+s.c*o+s.tx,s.b*i+s.d*o+s.ty,a),this}closePath(){return this._tick++,this._activePath?.closePath(),this}ellipse(e,t,r,n){return this._tick++,this._activePath.ellipse(e,t,r,n,this._transform.clone()),this}circle(e,t,r){return this._tick++,this._activePath.circle(e,t,r,this._transform.clone()),this}path(e){return this._tick++,this._activePath.addPath(e,this._transform.clone()),this}lineTo(e,t){this._tick++;let r=this._transform;return this._activePath.lineTo(r.a*e+r.c*t+r.tx,r.b*e+r.d*t+r.ty),this}moveTo(e,t){this._tick++;let r=this._transform,n=this._activePath.instructions,i=r.a*e+r.c*t+r.tx,o=r.b*e+r.d*t+r.ty;return 1===n.length&&"moveTo"===n[0].action?(n[0].data[0]=i,n[0].data[1]=o):this._activePath.moveTo(i,o),this}quadraticCurveTo(e,t,r,n,i){this._tick++;let o=this._transform;return this._activePath.quadraticCurveTo(o.a*e+o.c*t+o.tx,o.b*e+o.d*t+o.ty,o.a*r+o.c*n+o.tx,o.b*r+o.d*n+o.ty,i),this}rect(e,t,r,n){return this._tick++,this._activePath.rect(e,t,r,n,this._transform.clone()),this}roundRect(e,t,r,n,i){return this._tick++,this._activePath.roundRect(e,t,r,n,i,this._transform.clone()),this}poly(e,t){return this._tick++,this._activePath.poly(e,t,this._transform.clone()),this}regularPoly(e,t,r,n,i=0,o){return this._tick++,this._activePath.regularPoly(e,t,r,n,i,o),this}roundPoly(e,t,r,n,i,o){return this._tick++,this._activePath.roundPoly(e,t,r,n,i,o),this}roundShape(e,t,r,n){return this._tick++,this._activePath.roundShape(e,t,r,n),this}filletRect(e,t,r,n,i){return this._tick++,this._activePath.filletRect(e,t,r,n,i),this}chamferRect(e,t,r,n,i,o){return this._tick++,this._activePath.chamferRect(e,t,r,n,i,o),this}star(e,t,r,n,i=0,o=0){return this._tick++,this._activePath.star(e,t,r,n,i,o,this._transform.clone()),this}svg(e){return this._tick++,ee(e,this),this}restore(){let e=this._stateStack.pop();return e&&(this._transform=e.transform,this._fillStyle=e.fillStyle,this._strokeStyle=e.strokeStyle),this}save(){return this._stateStack.push({transform:this._transform.clone(),fillStyle:{...this._fillStyle},strokeStyle:{...this._strokeStyle}}),this}getTransform(){return this._transform}resetTransform(){return this._transform.identity(),this}rotate(e){return this._transform.rotate(e),this}scale(e,t=e){return this._transform.scale(e,t),this}setTransform(e,t,r,n,i,a){return e instanceof o.u?this._transform.set(e.a,e.b,e.c,e.d,e.tx,e.ty):this._transform.set(e,t,r,n,i,a),this}transform(e,t,r,n,i,a){return e instanceof o.u?this._transform.append(e):(ea.set(e,t,r,n,i,a),this._transform.append(ea)),this}translate(e,t=e){return this._transform.translate(e,t),this}clear(){return this.instructions.length=0,this.resetTransform(),this.onUpdate(),this}onUpdate(){this.dirty||(this.emit("update",this,16),this.dirty=!0,this._boundsDirty=!0)}get bounds(){if(!this._boundsDirty)return this._bounds;let e=this._bounds;e.clear();for(let t=0;t<this.instructions.length;t++){let r=this.instructions[t],n=r.action;if("fill"===n){let t=r.data;e.addBounds(t.path.bounds)}else if("texture"===n){let t=r.data;e.addFrame(t.dx,t.dy,t.dx+t.dw,t.dy+t.dh,t.transform)}if("stroke"===n){let t=r.data,n=t.style.width/2,i=t.path.bounds;e.addFrame(i.minX-n,i.minY-n,i.maxX+n,i.maxY+n)}}return e}containsPoint(e){if(!this.bounds.containsPoint(e.x,e.y))return!1;let t=this.instructions,r=!1;for(let n=0;n<t.length;n++){let i=t[n],o=i.data,a=o.path;if(!i.action||!a)continue;let s=o.style,l=a.shapePath.shapePrimitives;for(let t=0;t<l.length;t++){let n=l[t].shape;if(!s||!n)continue;let a=l[t].transform,u=a?a.applyInverse(e,eo):e;r="fill"===i.action?n.contains(u.x,u.y):n.strokeContains(u.x,u.y,s.width);let c=o.hole;if(c){let e=c.shapePath?.shapePrimitives;if(e)for(let t=0;t<e.length;t++)e[t].shape.contains(u.x,u.y)&&(r=!1)}if(r)return!0}}return r}destroy(e=!1){if(this._stateStack.length=0,this._transform=null,this.emit("destroy",this),this.removeAllListeners(),"boolean"==typeof e?e:e?.texture){let t="boolean"==typeof e?e:e?.textureSource;this._fillStyle.texture&&this._fillStyle.texture.destroy(t),this._strokeStyle.texture&&this._strokeStyle.texture.destroy(t)}this._fillStyle=null,this._strokeStyle=null,this.instructions=null,this._activePath=null,this._bounds=null,this._stateStack=null,this.customShader=null,this._transform=null}};es.defaultFillStyle={color:0xffffff,alpha:1,texture:s.g.WHITE,matrix:null,fill:null},es.defaultStrokeStyle={width:1,color:0xffffff,alpha:1,alignment:.5,miterLimit:10,cap:"butt",join:"miter",texture:s.g.WHITE,matrix:null,fill:null};let el=es},54547:function(e,t,r){"use strict";r.d(t,{GH:()=>$});var n=r(43071),i=r(28022),o=r(37313),a=r(82825),s=r(73644),l=r(92078),u=r(45584);function c(e,t,r,n,i,o,a,s=null){let l=0;r*=t,i*=o;let u=s.a,f=s.b,h=s.c,d=s.d,p=s.tx,m=s.ty;for(;l<a;){let a=e[r],s=e[r+1];n[i]=u*a+h*s+p,n[i+1]=f*a+d*s+m,i+=o,r+=t,l++}}function f(e,t,r,n){let i=0;for(t*=r;i<n;)e[t]=0,e[t+1]=0,t+=r,i++}function h(e,t,r,n,i){let o=t.a,a=t.b,s=t.c,l=t.d,u=t.tx,c=t.ty;r=r||0,n=n||2,i=i||e.length/n-r;let f=r*n;for(let t=0;t<i;t++){let t=e[f],r=e[f+1];e[f]=o*t+s*r+u,e[f+1]=a*t+l*r+c,f+=n}}var d=r(27633),p=r(73737);let m={build(e,t){let r,n,i,o,a,s;if("circle"===e.type){let t=e;r=t.x,n=t.y,a=s=t.radius,i=o=0}else if("ellipse"===e.type){let t=e;r=t.x,n=t.y,a=t.halfWidth,s=t.halfHeight,i=o=0}else{let t=e,l=t.width/2,u=t.height/2;r=t.x+l,n=t.y+u,a=s=Math.max(0,Math.min(t.radius,Math.min(l,u))),i=l-a,o=u-s}if(!(a>=0&&s>=0&&i>=0&&o>=0))return t;let l=Math.ceil(2.3*Math.sqrt(a+s)),u=8*l+4*!!i+4*!!o;if(0===u)return t;if(0===l)return t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o,t;let c=0,f=4*l+2*!!i+2,h=f,d=u,p=i+a,m=o,g=r+p,v=r-p,y=n+m;if(t[c++]=g,t[c++]=y,t[--f]=y,t[--f]=v,o){let e=n-m;t[h++]=v,t[h++]=e,t[--d]=e,t[--d]=g}for(let e=1;e<l;e++){let u=Math.PI/2*(e/l),p=i+Math.cos(u)*a,m=o+Math.sin(u)*s,g=r+p,v=r-p,y=n+m,b=n-m;t[c++]=g,t[c++]=y,t[--f]=y,t[--f]=v,t[h++]=v,t[h++]=b,t[--d]=b,t[--d]=g}p=i,m=o+s,g=r+p,v=r-p,y=n+m;let b=n-m;return t[c++]=g,t[c++]=y,t[--d]=b,t[--d]=g,i&&(t[c++]=v,t[c++]=y,t[--d]=b,t[--d]=v),t},triangulate(e,t,r,n,i,o){if(0===e.length)return;let a=0,s=0;for(let t=0;t<e.length;t+=2)a+=e[t],s+=e[t+1];a/=e.length/2,s/=e.length/2;let l=n;t[l*r]=a,t[l*r+1]=s;let u=l++;for(let n=0;n<e.length;n+=2)t[l*r]=e[n],t[l*r+1]=e[n+1],n>0&&(i[o++]=l,i[o++]=u,i[o++]=l-1),l++;i[o++]=u+1,i[o++]=u,i[o++]=l-1}};var g=r(58569);function v(e){let t=e.length;if(t<6)return 1;let r=0;for(let n=0,i=e[t-2],o=e[t-1];n<t;n+=2){let t=e[n],a=e[n+1];r+=(t-i)*(a+o),i=t,o=a}return r<0?-1:1}function y(e,t,r,n,i,o,a,s){let l,u,c=e-r*i,f=t-n*i,h=e+r*o,d=t+n*o;a?(l=n,u=-r):(l=-n,u=r);let p=c+l,m=f+u,g=h+l,v=d+u;return s.push(p,m),s.push(g,v),2}function b(e,t,r,n,i,o,a,s){let l=r-e,u=n-t,c=Math.atan2(l,u),f=Math.atan2(i-e,o-t);s&&c<f?c+=2*Math.PI:!s&&c>f&&(f+=2*Math.PI);let h=c,d=f-c,p=Math.sqrt(l*l+u*u),m=(15*Math.abs(d)*Math.sqrt(p)/Math.PI|0)+1,g=d/m;if(h+=g,s){a.push(e,t),a.push(r,n);for(let r=1,n=h;r<m;r++,n+=g)a.push(e,t),a.push(e+Math.sin(n)*p,t+Math.cos(n)*p);a.push(e,t),a.push(i,o)}else{a.push(r,n),a.push(e,t);for(let r=1,n=h;r<m;r++,n+=g)a.push(e+Math.sin(n)*p,t+Math.cos(n)*p),a.push(e,t);a.push(i,o),a.push(e,t)}return 2*m}function x(e,t,r,n,i,o,a,s,l){let u=1e-4;if(0===e.length)return;let c=t,f=c.alignment;if(.5!==t.alignment){let t=v(e);r&&(t*=-1),f=(f-.5)*t+.5}let h=new g.b(e[0],e[1]),d=new g.b(e[e.length-2],e[e.length-1]),p=n,m=Math.abs(h.x-d.x)<u&&Math.abs(h.y-d.y)<u;if(p){e=e.slice(),m&&(e.pop(),e.pop(),d.set(e[e.length-2],e[e.length-1]));let t=(h.x+d.x)*.5,r=(d.y+h.y)*.5;e.unshift(t,r),e.push(t,r)}let x=i,_=e.length/2,w=e.length,S=x.length/2,A=c.width/2,E=A*A,C=c.miterLimit*c.miterLimit,k=e[0],O=e[1],I=e[2],T=e[3],M=0,R=0,P=-(O-T),$=k-I,B=0,N=0,z=Math.sqrt(P*P+$*$);P/=z,$/=z,P*=A,$*=A;let L=f,j=(1-L)*2,F=2*L;p||("round"===c.cap?w+=b(k-P*(j-F)*.5,O-$*(j-F)*.5,k-P*j,O-$*j,k+P*F,O+$*F,x,!0)+2:"square"===c.cap&&(w+=y(k,O,P,$,j,F,!0,x))),x.push(k-P*j,O-$*j),x.push(k+P*F,O+$*F);for(let t=1;t<_-1;++t){k=e[(t-1)*2],O=e[(t-1)*2+1],I=e[2*t],T=e[2*t+1],M=e[(t+1)*2],R=e[(t+1)*2+1],z=Math.sqrt((P=-(O-T))*P+($=k-I)*$),P/=z,$/=z,P*=A,$*=A,z=Math.sqrt((B=-(T-R))*B+(N=I-M)*N),B/=z,N/=z,B*=A,N*=A;let r=I-k,n=O-T,i=I-M,o=R-T,a=r*i+n*o,s=n*i-o*r,l=s<0;if(Math.abs(s)<.001*Math.abs(a)){x.push(I-P*j,T-$*j),x.push(I+P*F,T+$*F),a>=0&&("round"===c.join?w+=b(I,T,I-P*j,T-$*j,I-B*j,T-N*j,x,!1)+4:w+=2,x.push(I-B*F,T-N*F),x.push(I+B*j,T+N*j));continue}let u=(-P+k)*(-$+T)-(-P+I)*(-$+O),f=(-B+M)*(-N+T)-(-B+I)*(-N+R),h=(r*f-i*u)/s,d=(o*u-n*f)/s,p=(h-I)*(h-I)+(d-T)*(d-T),m=I+(h-I)*j,g=T+(d-T)*j,v=I-(h-I)*F,y=T-(d-T)*F,_=l?j:F;p<=Math.min(r*r+n*n,i*i+o*o)+_*_*E?"bevel"===c.join||p/E>C?(l?(x.push(m,g),x.push(I+P*F,T+$*F),x.push(m,g),x.push(I+B*F,T+N*F)):(x.push(I-P*j,T-$*j),x.push(v,y),x.push(I-B*j,T-N*j),x.push(v,y)),w+=2):"round"===c.join?l?(x.push(m,g),x.push(I+P*F,T+$*F),w+=b(I,T,I+P*F,T+$*F,I+B*F,T+N*F,x,!0)+4,x.push(m,g),x.push(I+B*F,T+N*F)):(x.push(I-P*j,T-$*j),x.push(v,y),w+=b(I,T,I-P*j,T-$*j,I-B*j,T-N*j,x,!1)+4,x.push(I-B*j,T-N*j),x.push(v,y)):(x.push(m,g),x.push(v,y)):(x.push(I-P*j,T-$*j),x.push(I+P*F,T+$*F),"round"===c.join?l?w+=b(I,T,I+P*F,T+$*F,I+B*F,T+N*F,x,!0)+2:w+=b(I,T,I-P*j,T-$*j,I-B*j,T-N*j,x,!1)+2:"miter"===c.join&&p/E<=C&&(l?(x.push(v,y),x.push(v,y)):(x.push(m,g),x.push(m,g)),w+=2),x.push(I-B*j,T-N*j),x.push(I+B*F,T+N*F),w+=2)}k=e[(_-2)*2],O=e[(_-2)*2+1],I=e[(_-1)*2],z=Math.sqrt((P=-(O-(T=e[(_-1)*2+1])))*P+($=k-I)*$),P/=z,$/=z,P*=A,$*=A,x.push(I-P*j,T-$*j),x.push(I+P*F,T+$*F),p||("round"===c.cap?w+=b(I-P*(j-F)*.5,T-$*(j-F)*.5,I-P*j,T-$*j,I+P*F,T+$*F,x,!1)+2:"square"===c.cap&&(w+=y(I,T,P,$,j,F,!1,x)));let D=1e-8;for(let e=S;e<w+S-2;++e)k=x[2*e],O=x[2*e+1],I=x[(e+1)*2],T=x[(e+1)*2+1],M=x[(e+2)*2],Math.abs(k*(T-(R=x[(e+2)*2+1]))+I*(R-O)+M*(O-T))<D||s.push(e,e+1,e+2)}var _=r(6935);function w(e,t,r,n,i,o,a){let s=_(e,t,2);if(!s)return;for(let e=0;e<s.length;e+=3)o[a++]=s[e]+i,o[a++]=s[e+1]+i,o[a++]=s[e+2]+i;let l=i*n;for(let t=0;t<e.length;t+=2)r[l]=e[t],r[l+1]=e[t+1],l+=n}let S=[],A={build(e,t){for(let r=0;r<e.points.length;r++)t[r]=e.points[r];return t},triangulate(e,t,r,n,i,o){w(e,S,t,r,n,i,o)}},E={rectangle:{build(e,t){let r=e,n=r.x,i=r.y,o=r.width,a=r.height;return o>=0&&a>=0&&(t[0]=n,t[1]=i,t[2]=n+o,t[3]=i,t[4]=n+o,t[5]=i+a,t[6]=n,t[7]=i+a),t},triangulate(e,t,r,n,i,o){let a=0;t[(n*=r)+a]=e[0],t[n+a+1]=e[1],a+=r,t[n+a]=e[2],t[n+a+1]=e[3],a+=r,t[n+a]=e[6],t[n+a+1]=e[7],a+=r,t[n+a]=e[4],t[n+a+1]=e[5],a+=r;let s=n/r;i[o++]=s,i[o++]=s+1,i[o++]=s+2,i[o++]=s+1,i[o++]=s+3,i[o++]=s+2}},polygon:A,triangle:{build:(e,t)=>(t[0]=e.x,t[1]=e.y,t[2]=e.x2,t[3]=e.y2,t[4]=e.x3,t[5]=e.y3,t),triangulate(e,t,r,n,i,o){let a=0;t[(n*=r)+a]=e[0],t[n+a+1]=e[1],a+=r,t[n+a]=e[2],t[n+a+1]=e[3],a+=r,t[n+a]=e[4],t[n+a+1]=e[5];let s=n/r;i[o++]=s,i[o++]=s+1,i[o++]=s+2}},circle:m,ellipse:m,roundedRectangle:m},C=new u.M;function k(e,t){let{geometryData:r,batches:n}=t;n.length=0,r.indices.length=0,r.vertices.length=0,r.uvs.length=0;for(let t=0;t<e.instructions.length;t++){let i=e.instructions[t];if("texture"===i.action)O(i.data,n,r);else if("fill"===i.action||"stroke"===i.action){let e="stroke"===i.action,t=i.data.path.shapePath,o=i.data.style,a=i.data.hole;e&&a&&I(a.shapePath,o,null,!0,n,r),I(t,o,a,e,n,r)}}}function O(e,t,r){let{vertices:n,uvs:i,indices:o}=r,a=o.length,s=n.length/2,u=[],c=E.rectangle,f=C,d=e.image;f.x=e.dx,f.y=e.dy,f.width=e.dw,f.height=e.dh;let m=e.transform;c.build(f,u),m&&h(u,m),c.triangulate(u,n,2,s,o,a);let g=d.uvs;i.push(g.x0,g.y0,g.x1,g.y1,g.x3,g.y3,g.x2,g.y2);let v=l.Z.get(p.G);v.indexOffset=a,v.indexSize=o.length-a,v.vertexOffset=s,v.vertexSize=n.length/2-s,v.color=e.style,v.alpha=e.alpha,v.texture=d,v.geometryData=r,t.push(v)}function I(e,t,r,n,i,o){let{vertices:a,uvs:s,indices:u}=o,m=e.shapePrimitives.length-1;e.shapePrimitives.forEach(({shape:e,transform:g},v)=>{let y=u.length,b=a.length/2,_=[],S=E[e.type];if(S.build(e,_),g&&h(_,g),n)x(_,t,!1,e.closePath??!0,a,2,b,u,y);else if(r&&m===v){0!==m&&console.warn("[Pixi Graphics] only the last shape have be cut out");let e=[],t=_.slice();T(r.shapePath).forEach(r=>{e.push(t.length/2),t.push(...r)}),w(t,e,a,2,b,u,y)}else S.triangulate(_,a,2,b,u,y);let A=s.length/2,C=t.texture;if(C!==d.g.WHITE){let e=t.matrix;g&&e.append(g.clone().invert()),c(a,2,b,s,A,2,a.length/2-b,e)}else f(s,A,2,a.length/2-b);let k=l.Z.get(p.G);k.indexOffset=y,k.indexSize=u.length-y,k.vertexOffset=b,k.vertexSize=a.length/2-b,k.color=t.color,k.alpha=t.alpha,k.texture=C,k.geometryData=o,i.push(k)})}function T(e){if(!e)return[];let t=e.shapePrimitives,r=[];for(let e=0;e<t.length;e++){let n=t[e].shape,i=[];E[n.type].build(n,i),r.push(i)}return r}class M{constructor(){this.batches=[],this.geometryData={vertices:[],uvs:[],indices:[]}}}class R{constructor(){this.geometry=new i.J,this.instructions=new s.L}init(){this.instructions.reset()}}let P=class e{constructor(){this._activeBatchers=[],this._gpuContextHash={},this._graphicsDataContextHash=Object.create(null),this._needsContextNeedsRebuild=[]}init(t){e.defaultOptions.bezierSmoothness=t?.bezierSmoothness??e.defaultOptions.bezierSmoothness}prerender(){this._returnActiveBatchers()}getContextRenderData(e){return this._graphicsDataContextHash[e.uid]||this._initContextRenderData(e)}updateGpuContext(e){let t=this._gpuContextHash[e.uid]||this._initContext(e);if(e.dirty){t?this._cleanGraphicsContextData(e):t=this._initContext(e),k(e,t);let r=e.batchMode;e.customShader||"no-batch"===r?t.isBatchable=!1:"auto"===r&&(t.isBatchable=t.geometryData.vertices.length<400),e.dirty=!1}return t}getGpuContext(e){return this._gpuContextHash[e.uid]||this._initContext(e)}_returnActiveBatchers(){for(let e=0;e<this._activeBatchers.length;e++)l.Z.return(this._activeBatchers[e]);this._activeBatchers.length=0}_initContextRenderData(e){let t=l.Z.get(R),{batches:r,geometryData:n}=this._gpuContextHash[e.uid],i=n.vertices.length,s=n.indices.length;for(let e=0;e<r.length;e++)r[e].applyTransform=!1;let u=l.Z.get(a.i);this._activeBatchers.push(u),u.ensureAttributeBuffer(i),u.ensureIndexBuffer(s),u.begin();for(let e=0;e<r.length;e++){let t=r[e];u.add(t)}u.finish(t.instructions);let c=t.geometry;c.indexBuffer.setDataWithSize(u.indexBuffer,u.indexSize,!0),c.buffers[0].setDataWithSize(u.attributeBuffer.float32View,u.attributeSize,!0);let f=u.batches;for(let e=0;e<f.length;e++){let t=f[e];t.bindGroup=(0,o.w)(t.textures.textures,t.textures.count)}return this._graphicsDataContextHash[e.uid]=t,t}_initContext(e){let t=new M;return this._gpuContextHash[e.uid]=t,e.on("update",this.onGraphicsContextUpdate,this),e.on("destroy",this.onGraphicsContextDestroy,this),this._gpuContextHash[e.uid]}onGraphicsContextUpdate(e){this._needsContextNeedsRebuild.push(e)}onGraphicsContextDestroy(e){this._cleanGraphicsContextData(e),e.off("update",this.onGraphicsContextUpdate,this),e.off("destroy",this.onGraphicsContextDestroy,this),this._gpuContextHash[e.uid]=null}_cleanGraphicsContextData(e){let t=this._gpuContextHash[e.uid];!t.isBatchable&&this._graphicsDataContextHash[e.uid]&&(l.Z.return(this.getContextRenderData(e)),this._graphicsDataContextHash[e.uid]=null),t.batches&&t.batches.forEach(e=>{l.Z.return(e)})}destroy(){for(let e of this._needsContextNeedsRebuild)this._gpuContextHash[e.uid]&&this.onGraphicsContextDestroy(e);this._needsContextNeedsRebuild.length=0}};P.extension={type:[n.Ag.WebGLSystem,n.Ag.WebGPUSystem,n.Ag.CanvasSystem],name:"graphicsContext"},P.defaultOptions={bezierSmoothness:.5};let $=P},70448:function(e,t,r){"use strict";r.d(t,{_:()=>c});var n=r(51170),i=r(98370),o=r(96253),a=r(32617),s=r(27633),l=r(94849);let u=class e{constructor(e,t,r,n){this.uid=(0,l.L)("fillGradient"),this.type="linear",this.gradientStops=[],this.x0=e,this.y0=t,this.x1=r,this.y1=n}addColorStop(e,t){return this.gradientStops.push({offset:e,color:n.Q.shared.setValue(t).toHex()}),this}buildLinearGradient(){let t=e.defaultTextureSize,{gradientStops:r}=this,n=i.e.get().createCanvas();n.width=t,n.height=t;let l=n.getContext("2d"),u=l.createLinearGradient(0,0,e.defaultTextureSize,1);for(let e=0;e<r.length;e++){let t=r[e];u.addColorStop(t.offset,t.color)}l.fillStyle=u,l.fillRect(0,0,t,t),this.texture=new s.g({source:new a.b({resource:n,addressModeU:"clamp-to-edge",addressModeV:"repeat"})});let{x0:c,y0:f,x1:h,y1:d}=this,p=new o.u,m=h-c,g=d-f,v=Math.sqrt(m*m+g*g),y=Math.atan2(g,m);p.translate(-c,-f),p.scale(1/t,1/t),p.rotate(-y),p.scale(256/v,1),this.transform=p}};u.defaultTextureSize=256;let c=u},46362:function(e,t,r){"use strict";r.d(t,{m:()=>a});var n=r(96253),i=r(94849);let o={repeat:{addressModeU:"repeat",addressModeV:"repeat"},"repeat-x":{addressModeU:"repeat",addressModeV:"clamp-to-edge"},"repeat-y":{addressModeU:"clamp-to-edge",addressModeV:"repeat"},"no-repeat":{addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge"}};class a{constructor(e,t){this.uid=(0,i.L)("fillPattern"),this.transform=new n.u,this.texture=e,this.transform.scale(1/e.frame.width,1/e.frame.height),t&&(e.source.style.addressModeU=o[t].addressModeU,e.source.style.addressModeV=o[t].addressModeV)}setTransform(e){let t=this.texture;this.transform.copyFrom(e),this.transform.invert(),this.transform.scale(1/t.frame.width,1/t.frame.height)}}},87658:function(e,t,r){"use strict";r.d(t,{M:()=>l});var n=r(51170),i=r(96253),o=r(27633),a=r(70448),s=r(46362);function l(e,t){let r,l;if(null==e)return null;if(e?.fill?(l=e.fill,r={...t,...e}):(l=e,r=t),n.Q.isColorLike(l)){let e=n.Q.shared.setValue(l??0);return{...r,color:e.toNumber(),alpha:1===e.alpha?r.alpha:e.alpha,texture:o.g.WHITE}}if(l instanceof s.m){let e=l;return{...r,color:0xffffff,texture:e.texture,matrix:e.transform,fill:r.fill??null}}if(l instanceof a._){let e=l;return e.buildLinearGradient(),{...r,color:0xffffff,texture:e.texture,matrix:e.transform}}let u={...t,...e};if(u.texture){if(u.texture!==o.g.WHITE){let e=u.matrix?.invert()||new i.u;e.scale(1/u.texture.frame.width,1/u.texture.frame.height),u.matrix=e}let e=u.texture.source.style;"clamp-to-edge"===e.addressMode&&(e.addressMode="repeat")}let c=n.Q.shared.setValue(u.color);return u.alpha*=c.alpha,u.color=c.toNumber(),u.matrix=u.matrix?u.matrix.clone():null,u}},97088:function(e,t,r){"use strict";r.d(t,{k:()=>s});var n=r(52e3),i=r(27633),o=r(46260),a=r(21873);class s extends a.mc{constructor(e=i.g.EMPTY){e instanceof i.g&&(e={texture:e});const{texture:t,anchor:r,roundPixels:o,width:a,height:s,...l}=e;super({label:"Sprite",...l}),this.renderPipeId="sprite",this.batched=!0,this._didSpriteUpdate=!1,this._bounds={minX:0,maxX:1,minY:0,maxY:0},this._sourceBounds={minX:0,maxX:1,minY:0,maxY:0},this._boundsDirty=!0,this._sourceBoundsDirty=!0,this._roundPixels=0,this._anchor=new n.o({_onUpdate:()=>{this.onViewUpdate()}}),r?this.anchor=r:t.defaultAnchor&&(this.anchor=t.defaultAnchor),this.texture=t,this.allowChildren=!1,this.roundPixels=o??!1,a&&(this.width=a),s&&(this.height=s)}static from(e,t=!1){return new s(e instanceof i.g?e:i.g.from(e,t))}set texture(e){e||(e=i.g.EMPTY);let t=this._texture;t!==e&&(t&&t.dynamic&&t.off("update",this.onViewUpdate,this),e.dynamic&&e.on("update",this.onViewUpdate,this),this._texture=e,this.onViewUpdate())}get texture(){return this._texture}get bounds(){return this._boundsDirty&&(this._updateBounds(),this._boundsDirty=!1),this._bounds}get sourceBounds(){return this._sourceBoundsDirty&&(this._updateSourceBounds(),this._sourceBoundsDirty=!1),this._sourceBounds}containsPoint(e){let t=this.sourceBounds;return!!(e.x>=t.maxX)&&!!(e.x<=t.minX)&&!!(e.y>=t.maxY)&&!!(e.y<=t.minY)}addBounds(e){let t=this._texture.trim?this.sourceBounds:this.bounds;e.addFrame(t.minX,t.minY,t.maxX,t.maxY)}onViewUpdate(){this._didChangeId+=4096,this._didSpriteUpdate=!0,this._sourceBoundsDirty=this._boundsDirty=!0,!this.didViewUpdate&&(this.didViewUpdate=!0,this.renderGroup&&this.renderGroup.onChildViewUpdate(this))}_updateBounds(){(0,o.y)(this._bounds,this._anchor,this._texture,0)}_updateSourceBounds(){let e=this._anchor,t=this._texture,r=this._sourceBounds,{width:n,height:i}=t.orig;r.maxX=-e._x*n,r.minX=r.maxX+n,r.maxY=-e._y*i,r.minY=r.maxY+i}destroy(e=!1){if(super.destroy(e),"boolean"==typeof e?e:e?.texture){let t="boolean"==typeof e?e:e?.textureSource;this._texture.destroy(t)}this._texture=null,this._bounds=null,this._sourceBounds=null,this._anchor=null}get anchor(){return this._anchor}set anchor(e){"number"==typeof e?this._anchor.set(e):this._anchor.copyFrom(e)}get roundPixels(){return!!this._roundPixels}set roundPixels(e){this._roundPixels=+!!e}get width(){return Math.abs(this.scale.x)*this._texture.orig.width}set width(e){this._setWidth(e,this._texture.orig.width)}get height(){return Math.abs(this.scale.y)*this._texture.orig.height}set height(e){this._setHeight(e,this._texture.orig.height)}getSize(e){return e||(e={}),e.width=Math.abs(this.scale.x)*this._texture.orig.width,e.height=Math.abs(this.scale.y)*this._texture.orig.height,e}setSize(e,t){let r,n;"object"!=typeof e?(r=e,n=t??e):(r=e.width,n=e.height??e.width),void 0!==r&&this._setWidth(r,this._texture.orig.width),void 0!==n&&this._setHeight(n,this._texture.orig.height)}}},94951:function(e,t,r){"use strict";r.d(t,{x:()=>f});var n=r(60588),i=r(51170),o=r(55746),a=r(70448),s=r(17464),l=r(87658),u=r(25631);let c=class e extends n.A{constructor(t={}){super(),h(t);const r={...e.defaultTextStyle,...t};for(const e in r)this[e]=r[e];this.update()}get align(){return this._align}set align(e){this._align=e,this.update()}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords=e,this.update()}get dropShadow(){return this._dropShadow}set dropShadow(t){null!==t&&"object"==typeof t?this._dropShadow={...e.defaultDropShadow,...t}:this._dropShadow=t?{...e.defaultDropShadow}:null,this.update()}get fontFamily(){return this._fontFamily}set fontFamily(e){this._fontFamily=e,this.update()}get fontSize(){return this._fontSize}set fontSize(e){"string"==typeof e?this._fontSize=parseInt(e,10):this._fontSize=e,this.update()}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle=e,this.update()}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant=e,this.update()}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight=e,this.update()}get leading(){return this._leading}set leading(e){this._leading=e,this.update()}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing=e,this.update()}get lineHeight(){return this._lineHeight}set lineHeight(e){this._lineHeight=e,this.update()}get padding(){return this._padding}set padding(e){this._padding=e,this.update()}get trim(){return this._trim}set trim(e){this._trim=e,this.update()}get textBaseline(){return this._textBaseline}set textBaseline(e){this._textBaseline=e,this.update()}get whiteSpace(){return this._whiteSpace}set whiteSpace(e){this._whiteSpace=e,this.update()}get wordWrap(){return this._wordWrap}set wordWrap(e){this._wordWrap=e,this.update()}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(e){this._wordWrapWidth=e,this.update()}get fill(){return this._originalFill}set fill(e){e!==this._originalFill&&(this._originalFill=e,this._fill=(0,l.M)(0===e?"black":e,s.T.defaultFillStyle),this.update())}get stroke(){return this._originalStroke}set stroke(e){e!==this._originalStroke&&(this._originalStroke=e,this._stroke=(0,l.M)(e,s.T.defaultStrokeStyle),this.update())}_generateKey(){return this._styleKey=(0,u.V)(this),this._styleKey}update(){this._styleKey=null,this.emit("update",this)}reset(){let t=e.defaultTextStyle;for(let e in t)this[e]=t[e]}get styleKey(){return this._styleKey||this._generateKey()}clone(){return new e({align:this.align,breakWords:this.breakWords,dropShadow:this.dropShadow,fill:this._fill,fontFamily:this.fontFamily,fontSize:this.fontSize,fontStyle:this.fontStyle,fontVariant:this.fontVariant,fontWeight:this.fontWeight,leading:this.leading,letterSpacing:this.letterSpacing,lineHeight:this.lineHeight,padding:this.padding,stroke:this._stroke,textBaseline:this.textBaseline,whiteSpace:this.whiteSpace,wordWrap:this.wordWrap,wordWrapWidth:this.wordWrapWidth})}destroy(e=!1){if(this.removeAllListeners(),"boolean"==typeof e?e:e?.texture){let t="boolean"==typeof e?e:e?.textureSource;this._fill?.texture&&this._fill.texture.destroy(t),this._originalFill?.texture&&this._originalFill.texture.destroy(t),this._stroke?.texture&&this._stroke.texture.destroy(t),this._originalStroke?.texture&&this._originalStroke.texture.destroy(t)}this._fill=null,this._stroke=null,this.dropShadow=null,this._originalStroke=null,this._originalFill=null}};c.defaultDropShadow={alpha:1,angle:Math.PI/6,blur:0,color:"black",distance:5},c.defaultTextStyle={align:"left",breakWords:!1,dropShadow:null,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,padding:0,stroke:null,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100};let f=c;function h(e){let t=e;if("boolean"==typeof t.dropShadow&&t.dropShadow){let r=f.defaultDropShadow;e.dropShadow={alpha:t.dropShadowAlpha??r.alpha,angle:t.dropShadowAngle??r.angle,blur:t.dropShadowBlur??r.blur,color:t.dropShadowColor??r.color,distance:t.dropShadowDistance??r.distance}}if(void 0!==t.strokeThickness&&((0,o.t)("8.0.0","strokeThickness is now a part of stroke"),e.stroke={color:t.stroke,width:t.strokeThickness}),Array.isArray(t.fill)){(0,o.t)("8.0.0","gradient fill is now a fill pattern: `new FillGradient(...)`");let r=new a._(0,0,0,1.7*e.fontSize),n=t.fill.map(e=>i.Q.shared.setValue(e).toNumber());n.forEach((e,i)=>{let o=t.fillGradientStops[i]??i/n.length;r.addColorStop(o,e)}),e.fill={fill:r}}}},3748:function(e,t,r){"use strict";r.d(t,{P:()=>s});var n=r(98370),i=r(86782);let o={willReadFrequently:!0},a=class e{static get experimentalLetterSpacingSupported(){let t=e._experimentalLetterSpacingSupported;if(void 0!==t){let r=n.e.get().getCanvasRenderingContext2D().prototype;t=e._experimentalLetterSpacingSupported="letterSpacing"in r||"textLetterSpacing"in r}return t}constructor(e,t,r,n,i,o,a,s,l){this.text=e,this.style=t,this.width=r,this.height=n,this.lines=i,this.lineWidths=o,this.lineHeight=a,this.maxLineWidth=s,this.fontProperties=l}static measureText(t=" ",r,n=e._canvas,o=r.wordWrap){let a=`${t}:${r.styleKey}`;if(e._measurementCache[a])return e._measurementCache[a];let s=(0,i.Z)(r),l=e.measureFont(s);0===l.fontSize&&(l.fontSize=r.fontSize,l.ascent=r.fontSize);let u=e.__context;u.font=s;let c=(o?e._wordWrap(t,r,n):t).split(/(?:\r\n|\r|\n)/),f=Array(c.length),h=0;for(let t=0;t<c.length;t++){let n=e._measureText(c[t],r.letterSpacing,u);f[t]=n,h=Math.max(h,n)}let d=r._stroke?.width||0,p=h+d;r.dropShadow&&(p+=r.dropShadow.distance);let m=r.lineHeight||l.fontSize+d,g=Math.max(m,l.fontSize+2*d)+(c.length-1)*(m+r.leading);return r.dropShadow&&(g+=r.dropShadow.distance),new e(t,r,p,g,c,f,m+r.leading,h,l)}static _measureText(t,r,n){let i=!1;e.experimentalLetterSpacingSupported&&(e.experimentalLetterSpacing?(n.letterSpacing=`${r}px`,n.textLetterSpacing=`${r}px`,i=!0):(n.letterSpacing="0px",n.textLetterSpacing="0px"));let o=n.measureText(t).width;return o>0&&(i?o-=r:o+=(e.graphemeSegmenter(t).length-1)*r),o}static _wordWrap(t,r,n=e._canvas){let i=n.getContext("2d",o),a=0,s="",l="",u=Object.create(null),{letterSpacing:c,whiteSpace:f}=r,h=e._collapseSpaces(f),d=e._collapseNewlines(f),p=!h,m=r.wordWrapWidth+c,g=e._tokenize(t);for(let t=0;t<g.length;t++){let n=g[t];if(e._isNewline(n)){if(!d){l+=e._addLine(s),p=!h,s="",a=0;continue}n=" "}if(h){let t=e.isBreakingSpace(n),r=e.isBreakingSpace(s[s.length-1]);if(t&&r)continue}let o=e._getFromCache(n,c,u,i);if(o>m)if(""!==s&&(l+=e._addLine(s),s="",a=0),e.canBreakWords(n,r.breakWords)){let t=e.wordWrapSplit(n);for(let o=0;o<t.length;o++){let f=t[o],h=f,d=1;for(;t[o+d];){let i=t[o+d];if(e.canBreakChars(h,i,n,o,r.breakWords))break;f+=i,h=i,d++}o+=d-1;let g=e._getFromCache(f,c,u,i);g+a>m&&(l+=e._addLine(s),p=!1,s="",a=0),s+=f,a+=g}}else{s.length>0&&(l+=e._addLine(s),s="",a=0);let r=t===g.length-1;l+=e._addLine(n,!r),p=!1,s="",a=0}else o+a>m&&(p=!1,l+=e._addLine(s),s="",a=0),(s.length>0||!e.isBreakingSpace(n)||p)&&(s+=n,a+=o)}return l+e._addLine(s,!1)}static _addLine(t,r=!0){return t=e._trimRight(t),t=r?`${t}
|
|
640
640
|
`:t}static _getFromCache(t,r,n,i){let o=n[t];return"number"!=typeof o&&(o=e._measureText(t,r,i)+r,n[t]=o),o}static _collapseSpaces(e){return"normal"===e||"pre-line"===e}static _collapseNewlines(e){return"normal"===e}static _trimRight(t){if("string"!=typeof t)return"";for(let r=t.length-1;r>=0;r--){let n=t[r];if(!e.isBreakingSpace(n))break;t=t.slice(0,-1)}return t}static _isNewline(t){return"string"==typeof t&&e._newlines.includes(t.charCodeAt(0))}static isBreakingSpace(t,r){return"string"==typeof t&&e._breakingSpaces.includes(t.charCodeAt(0))}static _tokenize(t){let r=[],n="";if("string"!=typeof t)return r;for(let i=0;i<t.length;i++){let o=t[i],a=t[i+1];if(e.isBreakingSpace(o,a)||e._isNewline(o)){""!==n&&(r.push(n),n=""),r.push(o);continue}n+=o}return""!==n&&r.push(n),r}static canBreakWords(e,t){return t}static canBreakChars(e,t,r,n,i){return!0}static wordWrapSplit(t){return e.graphemeSegmenter(t)}static measureFont(t){if(e._fonts[t])return e._fonts[t];let r=e._context;r.font=t;let n=r.measureText(e.METRICS_STRING+e.BASELINE_SYMBOL),i={ascent:n.actualBoundingBoxAscent,descent:n.actualBoundingBoxDescent,fontSize:n.actualBoundingBoxAscent+n.actualBoundingBoxDescent};return e._fonts[t]=i,i}static clearMetrics(t=""){t?delete e._fonts[t]:e._fonts={}}static get _canvas(){if(!e.__canvas){let t;try{let r=new OffscreenCanvas(0,0),i=r.getContext("2d",o);if(i?.measureText)return e.__canvas=r,r;t=n.e.get().createCanvas()}catch(e){t=n.e.get().createCanvas()}t.width=t.height=10,e.__canvas=t}return e.__canvas}static get _context(){return e.__context||(e.__context=e._canvas.getContext("2d",o)),e.__context}};a.METRICS_STRING="|\xc9q\xc5",a.BASELINE_SYMBOL="M",a.BASELINE_MULTIPLIER=1.4,a.HEIGHT_MULTIPLIER=2,a.graphemeSegmenter=(()=>{if("function"==typeof Intl?.Segmenter){let e=new Intl.Segmenter;return t=>[...e.segment(t)].map(e=>e.segment)}return e=>[...e]})(),a.experimentalLetterSpacing=!1,a._fonts={},a._newlines=[10,13],a._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288],a._measurementCache={};let s=a},86782:function(e,t,r){"use strict";r.d(t,{Z:()=>i});let n=["serif","sans-serif","monospace","cursive","fantasy","system-ui"];function i(e){let t="number"==typeof e.fontSize?`${e.fontSize}px`:e.fontSize,r=e.fontFamily;Array.isArray(e.fontFamily)||(r=e.fontFamily.split(","));for(let e=r.length-1;e>=0;e--){let t=r[e].trim();/([\"\'])[^\'\"]+\1/.test(t)||n.includes(t)||(t=`"${t}"`),r[e]=t}return`${e.fontStyle} ${e.fontVariant} ${e.fontWeight} ${t} ${r.join(",")}`}},25631:function(e,t,r){"use strict";r.d(t,{V:()=>i});let n=["_fontFamily","_fontStyle","_fontSize","_fontVariant","_fontWeight","_breakWords","_align","_leading","_letterSpacing","_lineHeight","_textBaseline","_whiteSpace","_wordWrap","_wordWrapWidth","_padding","_cssOverrides","_trim"];function i(e){let t=[],r=0;for(let i=0;i<n.length;i++){let o=n[i];t[r++]=e[o]}return r=o(e._fill,t,r),r=a(e._stroke,t,r),t.join("-")}function o(e,t,r){return e&&(t[r++]=e.color,t[r++]=e.alpha,t[r++]=e.fill?.uid),r}function a(e,t,r){return e&&(r=o(e,t,r),t[r++]=e.width,t[r++]=e.alignment,t[r++]=e.cap,t[r++]=e.join,t[r++]=e.miterLimit),r}},38215:function(e,t,r){"use strict";var n=r(43071),i=r(76713),o=r(70758),a=r(4709),s=r(27633),l=r(76875),u=r(45584);let c=class e{constructor(e,t){this.linkedSheets=[],this._texture=e instanceof s.g?e:null,this.textureSource=e.source,this.textures={},this.animations={},this.data=t;const r=parseFloat(t.meta.scale);r?(this.resolution=r,e.source.resolution=this.resolution):this.resolution=e.source._resolution,this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}parse(){return new Promise(t=>{this._callback=t,this._batchIndex=0,this._frameKeys.length<=e.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(t){let r=t,n=e.BATCH_SIZE;for(;r-t<n&&r<this._frameKeys.length;){let e=this._frameKeys[r],t=this._frames[e],n=t.frame;if(n){let r=null,i=null,o=!1!==t.trimmed&&t.sourceSize?t.sourceSize:t.frame,a=new u.M(0,0,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution);r=t.rotated?new u.M(Math.floor(n.x)/this.resolution,Math.floor(n.y)/this.resolution,Math.floor(n.h)/this.resolution,Math.floor(n.w)/this.resolution):new u.M(Math.floor(n.x)/this.resolution,Math.floor(n.y)/this.resolution,Math.floor(n.w)/this.resolution,Math.floor(n.h)/this.resolution),!1!==t.trimmed&&t.spriteSourceSize&&(i=new u.M(Math.floor(t.spriteSourceSize.x)/this.resolution,Math.floor(t.spriteSourceSize.y)/this.resolution,Math.floor(n.w)/this.resolution,Math.floor(n.h)/this.resolution)),this.textures[e]=new s.g({source:this.textureSource,frame:r,orig:a,trim:i,rotate:2*!!t.rotated,defaultAnchor:t.anchor,defaultBorders:t.borders,label:e.toString()})}r++}}_processAnimations(){let e=this.data.animations||{};for(let t in e){this.animations[t]=[];for(let r=0;r<e[t].length;r++){let n=e[t][r];this.animations[t].push(this.textures[n])}}}_parseComplete(){let e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*e.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*e.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(e=!1){for(let e in this.textures)this.textures[e].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&(this._texture?.destroy(),this.textureSource.destroy()),this._texture=null,this.textureSource=null,this.linkedSheets=[]}};c.BATCH_SIZE=1e3;let f=c,h=["jpg","png","jpeg","avif","webp","basis","etc2","bc7","bc6h","bc5","bc4","bc3","bc2","bc1","eac","astc"];function d(e,t,r){let n={};if(e.forEach(e=>{n[e]=t}),Object.keys(t.textures).forEach(e=>{n[e]=t.textures[e]}),!r){let r=l.A.dirname(e[0]);t.linkedSheets.forEach((e,i)=>{Object.assign(n,d([`${r}/${t.data.meta.related_multi_packs[i]}`],e,!0))})}return n}let p={extension:n.Ag.Asset,cache:{test:e=>e instanceof f,getCacheableAssets:(e,t)=>d(e,t,!1)},resolver:{test:e=>{let t=e.split("?")[0].split("."),r=t.pop(),n=t.pop();return"json"===r&&h.includes(n)},parse:e=>{let t=e.split(".");return{resolution:parseFloat(o.x.RETINA_PREFIX.exec(e)?.[1]??"1"),format:t[t.length-2],src:e}}},loader:{name:"spritesheetLoader",extension:{type:n.Ag.LoadParser,priority:i.T.Normal},testParse:async(e,t)=>".json"===l.A.extname(t.src).toLowerCase()&&!!e.frames,async parse(e,t,r){let n,{texture:i,imageFilename:o}=t?.data??{},u=l.A.dirname(t.src);if(u&&u.lastIndexOf("/")!==u.length-1&&(u+="/"),i instanceof s.g)n=i;else{let i=(0,a.Y)(u+(o??e.meta.image),t.src);n=(await r.load([i]))[i]}let c=new f(n.source,e);await c.parse();let h=e?.meta?.related_multi_packs;if(Array.isArray(h)){let e=[];for(let n of h){if("string"!=typeof n)continue;let i=u+n;t.data?.ignoreMultiPack||(i=(0,a.Y)(i,t.src),e.push(r.load({src:i,data:{ignoreMultiPack:!0}})))}let n=await Promise.all(e);c.linkedSheets=n,n.forEach(e=>{e.linkedSheets=[c].concat(c.linkedSheets.filter(t=>t!==e))})}return c},async unload(e,t,r){await r.unload(e.textureSource._sourceOrigin),e.destroy(!1)}}};n.XO.add(p)},4366:function(e,t,r){"use strict";r.d(t,{R:()=>a});var n=r(71982);class i{constructor(e,t=null,r=0,n=!1){this.next=null,this.previous=null,this._destroyed=!1,this._fn=e,this._context=t,this.priority=r,this._once=n}match(e,t=null){return this._fn===e&&this._context===t}emit(e){this._fn&&(this._context?this._fn.call(this._context,e):this._fn(e));let t=this.next;return this._once&&this.destroy(!0),this._destroyed&&(this.next=null),t}connect(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this}destroy(e=!1){this._destroyed=!0,this._fn=null,this._context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);let t=this.next;return this.next=e?null:t,this.previous=null,t}}let o=class e{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new i(null,null,1/0),this.deltaMS=1/e.targetFPMS,this.elapsedMS=1/e.targetFPMS,this._tick=e=>{this._requestId=null,this.started&&(this.update(e),this.started&&null===this._requestId&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(e,t,r=n.d.NORMAL){return this._addListener(new i(e,t,r))}addOnce(e,t,r=n.d.NORMAL){return this._addListener(new i(e,t,r,!0))}_addListener(e){let t=this._head.next,r=this._head;if(t){for(;t;){if(e.priority>t.priority){e.connect(r);break}r=t,t=t.next}e.previous||e.connect(r)}else e.connect(r);return this._startIfPossible(),this}remove(e,t){let r=this._head.next;for(;r;)r=r.match(e,t)?r.destroy():r.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let e=0,t=this._head;for(;t=t.next;)e++;return e}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let e=this._head.next;for(;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}}update(t=performance.now()){let r;if(t>this.lastTime){if((r=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(r=this._maxElapsedMS),r*=this.speed,this._minElapsedMS){let e=t-this._lastFrame|0;if(e<this._minElapsedMS)return;this._lastFrame=t-e%this._minElapsedMS}this.deltaMS=r,this.deltaTime=this.deltaMS*e.targetFPMS;let n=this._head,i=n.next;for(;i;)i=i.emit(this);n.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=t}get FPS(){return 1e3/this.elapsedMS}get minFPS(){return 1e3/this._maxElapsedMS}set minFPS(t){let r=Math.min(Math.max(0,Math.min(this.maxFPS,t))/1e3,e.targetFPMS);this._maxElapsedMS=1/r}get maxFPS(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0}set maxFPS(e){if(0===e)this._minElapsedMS=0;else{let t=Math.max(this.minFPS,e);this._minElapsedMS=1/(t/1e3)}}static get shared(){if(!e._shared){let t=e._shared=new e;t.autoStart=!0,t._protected=!0}return e._shared}static get system(){if(!e._system){let t=e._system=new e;t.autoStart=!0,t._protected=!0}return e._system}};o.targetFPMS=.06;let a=o},71982:function(e,t,r){"use strict";let n;r.d(t,{d:()=>i});var i=((n=i||{})[n.INTERACTION=50]="INTERACTION",n[n.HIGH=25]="HIGH",n[n.NORMAL=0]="NORMAL",n[n.LOW=-25]="LOW",n[n.UTILITY=-50]="UTILITY",n)},82982:function(e,t,r){"use strict";var n=r(5448),i=r(60145),o=r(80127),a=r(67654),s=r(35843),l=r(11075),u=r(96801),c=r(98625),f=r(83257),h=r(79462);function d(){return p}function p(e,t,r){let n=e.gl,i=e.shader,o=i._getProgramData(t.glProgram);for(let a in t.groups){let s=t.groups[a];for(let l in s.resources){let d=s.resources[l];if(d instanceof c.k)d.ubo?i.bindUniformBlock(d,t._uniformBindMap[a][l],r.blockIndex++):i.updateUniformGroup(d);else if(d instanceof u.d)i.bindUniformBlock(d,t._uniformBindMap[a][l],r.blockIndex++);else if(d instanceof f.v){e.texture.bind(d,r.textureCount);let i=t._uniformBindMap[a][l],s=o.uniformData[i];s&&(s.value!==r.textureCount&&n.uniform1i(s.location,r.textureCount),r.textureCount++)}else h.n}}}var m=r(89386),g=r(13865),v=r(79378);let y=[(e,t,r,n,i)=>{let o=n[e].toArray(!0);t[r]=o[0],t[r+1]=o[1],t[r+2]=o[2],t[r+4]=o[3],t[r+5]=o[4],t[r+6]=o[5],t[r+8]=o[6],t[r+9]=o[7],t[r+10]=o[8]},(e,t,r,n,i)=>{i=n[e],t[r]=i.x,t[r+1]=i.y,t[r+2]=i.width,t[r+3]=i.height},(e,t,r,n,i)=>{i=n[e],t[r]=i.x,t[r+1]=i.y},(e,t,r,n,i)=>{i=n[e],t[r]=i.red,t[r+1]=i.green,t[r+2]=i.blue,t[r+3]=i.alpha},(e,t,r,n,i)=>{i=n[e],t[r]=i.red,t[r+1]=i.green,t[r+2]=i.blue}],b={f32:(e,t,r,n,i)=>{t[r]=i},i32:(e,t,r,n,i)=>{t[r]=i},"vec2<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1]},"vec3<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2]},"vec4<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2],t[r+3]=i[3]},"mat2x2<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2],t[r+3]=i[3]},"mat3x3<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2],t[r+4]=i[3],t[r+5]=i[4],t[r+6]=i[5],t[r+8]=i[6],t[r+9]=i[7],t[r+10]=i[8]},"mat4x4<f32>":(e,t,r,n,i)=>{for(let e=0;e<16;e++)t[r+e]=i[e]},"mat3x2<f32>":(e,t,r,n,i)=>{for(let e=0;e<6;e++)t[r+(e/3|0)*4+e%3]=i[e]},"mat4x2<f32>":(e,t,r,n,i)=>{for(let e=0;e<8;e++)t[r+(e/4|0)*4+e%4]=i[e]},"mat2x3<f32>":(e,t,r,n,i)=>{for(let e=0;e<6;e++)t[r+(e/2|0)*4+e%2]=i[e]},"mat4x3<f32>":(e,t,r,n,i)=>{for(let e=0;e<12;e++)t[r+(e/4|0)*4+e%4]=i[e]},"mat2x4<f32>":(e,t,r,n,i)=>{for(let e=0;e<8;e++)t[r+(e/2|0)*4+e%2]=i[e]},"mat3x4<f32>":(e,t,r,n,i)=>{for(let e=0;e<12;e++)t[r+(e/3|0)*4+e%3]=i[e]}},x={f32:(e,t,r,n,i)=>{t[r]=i},i32:(e,t,r,n,i)=>{t[r]=i},"vec2<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1]},"vec3<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2]},"vec4<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2],t[r+3]=i[3]},"mat2x2<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+4]=i[2],t[r+5]=i[3]},"mat3x3<f32>":(e,t,r,n,i)=>{t[r]=i[0],t[r+1]=i[1],t[r+2]=i[2],t[r+4]=i[3],t[r+5]=i[4],t[r+6]=i[5],t[r+8]=i[6],t[r+9]=i[7],t[r+10]=i[8]},"mat4x4<f32>":(e,t,r,n,i)=>{for(let e=0;e<16;e++)t[r+e]=i[e]},"mat3x2<f32>":(e,t,r,n,i)=>{for(let e=0;e<6;e++)t[r+(e/3|0)*4+e%3]=i[e]},"mat4x2<f32>":(e,t,r,n,i)=>{for(let e=0;e<8;e++)t[r+(e/4|0)*4+e%4]=i[e]},"mat2x3<f32>":(e,t,r,n,i)=>{for(let e=0;e<6;e++)t[r+(e/2|0)*4+e%2]=i[e]},"mat4x3<f32>":(e,t,r,n,i)=>{for(let e=0;e<12;e++)t[r+(e/4|0)*4+e%4]=i[e]},"mat2x4<f32>":(e,t,r,n,i)=>{for(let e=0;e<8;e++)t[r+(e/2|0)*4+e%2]=i[e]},"mat3x4<f32>":(e,t,r,n,i)=>{for(let e=0;e<12;e++)t[r+(e/3|0)*4+e%3]=i[e]}};function _(e){return S(e,x,e=>{let t=Math.max(m.K[e.data.type]/16,1),r=e.data.value.length/e.data.size,n=(4-r%4)%4;return(i,o,a,s,l)=>{let u=0;for(let i=0;i<e.data.size*t;i++){for(let e=0;e<r;e++)o[a++]=l[u++];a+=n}}})}function w(e){return S(e,b,e=>{let{size:t,align:r}=g.f[e.data.type],n=(t-r)/4;return(r,i,o,a,s)=>{let l=0;for(let r=0;r<e.data.size*(t/4);r++){for(let e=0;e<t/4;e++)i[o++]=s[l++];o+=n}}})}function S(e,t,r){let n={};for(let i in e){let o=e[i],a=o.data,s=!1;n[a.name]={offset:o.offset/4,func:null};for(let e=0;e<v.$.length;e++){let t=v.$[e];if(a.type===t.type&&t.test(a)){n[a.name].func=y[e],s=!0;break}}s||(1===a.size?n[a.name].func=t[a.type]:n[a.name].func=r(o))}return(e,t,r)=>{for(let i in n)n[i].func(i,t,r+n[i].offset,e,e[i])}}let A={f32(e,t,r,n,i,o,a){r!==n&&(t.value=n,a.uniform1f(i[e].location,n))},"vec2<f32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1])&&(r[0]=n[0],r[1]=n[1],a.uniform2f(i[e].location,n[0],n[1]))},"vec3<f32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],a.uniform3f(i[e].location,n[0],n[1],n[2]))},"vec4<f32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2]||r[3]!==n[3])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],a.uniform4f(i[e].location,n[0],n[1],n[2],n[3]))},i32(e,t,r,n,i,o,a){r!==n&&(t.value=n,a.uniform1i(i[e].location,n))},"vec2<i32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1])&&(r[0]=n[0],r[1]=n[1],a.uniform2i(i[e].location,n[0],n[1]))},"vec3<i32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],a.uniform3i(i[e].location,n[0],n[1],n[2]))},"vec4<i32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2]||r[3]!==n[3])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],a.uniform4i(i[e].location,n[0],n[1],n[2],n[3]))},u32(e,t,r,n,i,o,a){r!==n&&(t.value=n,a.uniform1ui(i[e].location,n))},"vec2<u32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1])&&(r[0]=n[0],r[1]=n[1],a.uniform2ui(i[e].location,n[0],n[1]))},"vec3<u32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],a.uniform3ui(i[e].location,n[0],n[1],n[2]))},"vec4<u32>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2]||r[3]!==n[3])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],a.uniform4ui(i[e].location,n[0],n[1],n[2],n[3]))},bool(e,t,r,n,i,o,a){r!==n&&(t.value=n,a.uniform1i(i[e].location,n))},"vec2<bool>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1])&&(r[0]=n[0],r[1]=n[1],a.uniform2i(i[e].location,n[0],n[1]))},"vec3<bool>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],a.uniform3i(i[e].location,n[0],n[1],n[2]))},"vec4<bool>"(e,t,r,n,i,o,a){(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2]||r[3]!==n[3])&&(r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],a.uniform4i(i[e].location,n[0],n[1],n[2],n[3]))},"mat2x2<f32>"(e,t,r,n,i,o,a){a.uniformMatrix2fv(i[e].location,!1,n)},"mat3x3<f32>"(e,t,r,n,i,o,a){a.uniformMatrix3fv(i[e].location,!1,n)},"mat4x4<f32>"(e,t,r,n,i,o,a){a.uniformMatrix4fv(i[e].location,!1,n)}},E={f32(e,t,r,n,i,o,a){a.uniform1fv(i[e].location,n)},"vec2<f32>"(e,t,r,n,i,o,a){a.uniform2fv(i[e].location,n)},"vec3<f32>"(e,t,r,n,i,o,a){a.uniform3fv(i[e].location,n)},"vec4<f32>"(e,t,r,n,i,o,a){a.uniform4fv(i[e].location,n)},"mat2x2<f32>"(e,t,r,n,i,o,a){a.uniformMatrix2fv(i[e].location,!1,n)},"mat3x3<f32>"(e,t,r,n,i,o,a){a.uniformMatrix3fv(i[e].location,!1,n)},"mat4x4<f32>"(e,t,r,n,i,o,a){a.uniformMatrix4fv(i[e].location,!1,n)},i32(e,t,r,n,i,o,a){a.uniform1iv(i[e].location,n)},"vec2<i32>"(e,t,r,n,i,o,a){a.uniform2iv(i[e].location,n)},"vec3<i32>"(e,t,r,n,i,o,a){a.uniform3iv(i[e].location,n)},"vec4<i32>"(e,t,r,n,i,o,a){a.uniform4iv(i[e].location,n)},u32(e,t,r,n,i,o,a){a.uniform1iv(i[e].location,n)},"vec2<u32>"(e,t,r,n,i,o,a){a.uniform2iv(i[e].location,n)},"vec3<u32>"(e,t,r,n,i,o,a){a.uniform3iv(i[e].location,n)},"vec4<u32>"(e,t,r,n,i,o,a){a.uniform4iv(i[e].location,n)},bool(e,t,r,n,i,o,a){a.uniform1iv(i[e].location,n)},"vec2<bool>"(e,t,r,n,i,o,a){a.uniform2iv(i[e].location,n)},"vec3<bool>"(e,t,r,n,i,o,a){a.uniform3iv(i[e].location,n)},"vec4<bool>"(e,t,r,n,i,o,a){a.uniform4iv(i[e].location,n)}},C=[(e,t,r,n,i,o,a)=>{a.uniformMatrix3fv(i[e].location,!1,o[e].toArray(!0))},(e,t,r,n,i,o,a)=>{r=i[e].value,n=o[e],(r[0]!==n.x||r[1]!==n.y||r[2]!==n.width||r[3]!==n.height)&&(r[0]=n.x,r[1]=n.y,r[2]=n.width,r[3]=n.height,a.uniform4f(i[e].location,n.x,n.y,n.width,n.height))},(e,t,r,n,i,o,a)=>{r=i[e].value,n=o[e],(r[0]!==n.x||r[1]!==n.y)&&(r[0]=n.x,r[1]=n.y,a.uniform2f(i[e].location,n.x,n.y))},(e,t,r,n,i,o,a)=>{r=i[e].value,n=o[e],(r[0]!==n.red||r[1]!==n.green||r[2]!==n.blue||r[3]!==n.alpha)&&(r[0]=n.red,r[1]=n.green,r[2]=n.blue,r[3]=n.alpha,a.uniform4f(i[e].location,n.red,n.green,n.blue,n.alpha))},(e,t,r,n,i,o,a)=>{r=i[e].value,n=o[e],(r[0]!==n.red||r[1]!==n.green||r[2]!==n.blue)&&(r[0]=n.red,r[1]=n.green,r[2]=n.blue,a.uniform3f(i[e].location,n.red,n.green,n.blue))}];function k(e,t){let r={};for(let n in e.uniformStructures){if(!t[n])continue;let i=e.uniformStructures[n],o=!1;for(let e=0;e<v.$.length;e++){let t=v.$[e];if(i.type===t.type&&t.test(i)){r[n]=C[e],o=!0;break}}if(!o){let e=1===i.size?A:E;r[n]=e[i.type]}}return(e,t,n)=>{let i=n.gl;for(let n in r){let o=t[n],a=e[n],s=e[n].value;r[n](n,a,s,o,e,t,i)}}}!function(){Object.assign(l.k.prototype,{_unsafeEvalCheck(){}}),Object.assign(s.W.prototype,{_systemCheck(){}}),Object.assign(o.e.prototype,{_generateUniformsSync:k}),Object.assign(n.z.prototype,{_generateUboSync:_}),Object.assign(a.u.prototype,{_generateUboSync:w}),Object.assign(i.S.prototype,{_generateShaderSync:d})}()},17326:function(e,t,r){"use strict";let n;async function i(){return n??(n=(async()=>{let e=document.createElement("canvas").getContext("webgl");if(!e)return"premultiply-alpha-on-upload";let t=await new Promise(e=>{let t=document.createElement("video");t.onloadeddata=()=>e(t),t.onerror=()=>e(null),t.autoplay=!1,t.crossOrigin="anonymous",t.preload="auto",t.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=",t.load()});if(!t)return"premultiply-alpha-on-upload";let r=e.createTexture();e.bindTexture(e.TEXTURE_2D,r);let n=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,n),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,r,0),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.NONE),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t);let i=new Uint8Array(4);return e.readPixels(0,0,1,1,e.RGBA,e.UNSIGNED_BYTE,i),e.deleteFramebuffer(n),e.deleteTexture(r),e.getExtension("WEBGL_lose_context")?.loseContext(),i[0]<=i[3]?"premultiplied-alpha":"premultiply-alpha-on-upload"})()),n}r.d(t,{C:()=>i})},30877:function(e,t,r){"use strict";let n;function i(){if("boolean"==typeof n)return n;try{let e=Function("param1","param2","param3","return param1[param2] === param3;");n=!0===e({a:"b"},"a","b")}catch(e){n=!1}return n}r.d(t,{f:()=>i})},33179:function(e,t,r){"use strict";function n(e,t,r){let n,i=e.length;if(t>=i||0===r)return;r=t+r>i?i-t:r;let o=i-r;for(n=t;n<o;++n)e[n]=e[n+r];e.length=o}r.d(t,{d:()=>n})},94849:function(e,t,r){"use strict";r.d(t,{L:()=>i});let n={default:-1};function i(e="default"){return void 0===n[e]&&(n[e]=-1),++n[e]}},46260:function(e,t,r){"use strict";function n(e,t,r,n){let{width:i,height:o}=r.orig,a=r.trim;if(a){let r=a.width,s=a.height;e.minX=a.x-t._x*i-n,e.maxX=e.minX+r,e.minY=a.y-t._y*o-n,e.maxY=e.minY+s}else e.minX=-t._x*i-n,e.maxX=e.minX+i,e.minY=-t._y*o-n,e.maxY=e.minY+o}r.d(t,{y:()=>n})},55746:function(e,t,r){"use strict";r.d(t,{t:()=>i});let n={};function i(e,t,r=3){if(n[t])return;let o=Error().stack;void 0===o?console.warn("PixiJS Deprecation Warning: ",`${t}
|
|
641
641
|
Deprecated since v${e}`):(o=o.split("\n").splice(r).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${t}
|
|
642
642
|
Deprecated since v${e}`),console.warn(o),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${t}
|
|
643
643
|
Deprecated since v${e}`),console.warn(o))),n[t]=!0}},86840:function(e,t,r){"use strict";r.d(t,{R:()=>o});let n=0,i=500;function o(...e){n!==i&&(++n===i?console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS."):console.warn("PixiJS Warning: ",...e))}},76875:function(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(98370);function i(e){if("string"!=typeof e)throw TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function o(e){return e.split("?")[0].split("#")[0]}function a(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function s(e,t,r){return e.replace(RegExp(a(t),"g"),r)}function l(e,t){let r="",n=0,i=-1,o=0,a=-1;for(let s=0;s<=e.length;++s){if(s<e.length)a=e.charCodeAt(s);else if(47===a)break;else a=47;if(47===a){if(i===s-1||1===o);else if(i!==s-1&&2===o){if(r.length<2||2!==n||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){let e=r.lastIndexOf("/");if(e!==r.length-1){-1===e?(r="",n=0):n=(r=r.slice(0,e)).length-1-r.lastIndexOf("/"),i=s,o=0;continue}}else if(2===r.length||1===r.length){r="",n=0,i=s,o=0;continue}}t&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+=`/${e.slice(i+1,s)}`:r=e.slice(i+1,s),n=s-i-1;i=s,o=0}else 46===a&&-1!==o?++o:o=-1}return r}let u={toPosix:e=>s(e,"\\","/"),isUrl(e){return/^https?:/.test(this.toPosix(e))},isDataUrl:e=>/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e),isBlobUrl:e=>e.startsWith("blob:"),hasProtocol(e){return/^[^/:]+:/.test(this.toPosix(e))},getProtocol(e){i(e),e=this.toPosix(e);let t=/^file:\/\/\//.exec(e);if(t)return t[0];let r=/^[^/:]+:\/{0,2}/.exec(e);return r?r[0]:""},toAbsolute(e,t,r){if(i(e),this.isDataUrl(e)||this.isBlobUrl(e))return e;let a=o(this.toPosix(t??n.e.get().getBaseUrl())),s=o(this.toPosix(r??this.rootname(a)));return(e=this.toPosix(e)).startsWith("/")?u.join(s,e.slice(1)):this.isAbsolute(e)?e:this.join(a,e)},normalize(e){if(i(e),0===e.length)return".";if(this.isDataUrl(e)||this.isBlobUrl(e))return e;e=this.toPosix(e);let t="",r=e.startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));let n=e.endsWith("/");return((e=l(e,!1)).length>0&&n&&(e+="/"),r)?`/${e}`:t+e},isAbsolute(e){return i(e),e=this.toPosix(e),!!this.hasProtocol(e)||e.startsWith("/")},join(...e){let t;if(0===e.length)return".";for(let r=0;r<e.length;++r){let n=e[r];if(i(n),n.length>0)if(void 0===t)t=n;else{let i=e[r-1]??"";this.joinExtensions.includes(this.extname(i).toLowerCase())?t+=`/../${n}`:t+=`/${n}`}}return void 0===t?".":this.normalize(t)},dirname(e){if(i(e),0===e.length)return".";let t=(e=this.toPosix(e)).charCodeAt(0),r=47===t,n=-1,o=!0,a=this.getProtocol(e),s=e;e=e.slice(a.length);for(let r=e.length-1;r>=1;--r)if(47===(t=e.charCodeAt(r))){if(!o){n=r;break}}else o=!1;return -1===n?r?"/":this.isUrl(s)?a+e:a:r&&1===n?"//":a+e.slice(0,n)},rootname(e){i(e);let t="";if(t=(e=this.toPosix(e)).startsWith("/")?"/":this.getProtocol(e),this.isUrl(e)){let r=e.indexOf("/",t.length);(t=-1!==r?e.slice(0,r):e).endsWith("/")||(t+="/")}return t},basename(e,t){let r;i(e),t&&i(t),e=o(this.toPosix(e));let n=0,a=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let i=t.length-1,o=-1;for(r=e.length-1;r>=0;--r){let l=e.charCodeAt(r);if(47===l){if(!s){n=r+1;break}}else -1===o&&(s=!1,o=r+1),i>=0&&(l===t.charCodeAt(i)?-1==--i&&(a=r):(i=-1,a=o))}return n===a?a=o:-1===a&&(a=e.length),e.slice(n,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){n=r+1;break}}else -1===a&&(s=!1,a=r+1);return -1===a?"":e.slice(n,a)},extname(e){i(e),e=o(this.toPosix(e));let t=-1,r=0,n=-1,a=!0,s=0;for(let i=e.length-1;i>=0;--i){let o=e.charCodeAt(i);if(47===o){if(!a){r=i+1;break}continue}-1===n&&(a=!1,n=i+1),46===o?-1===t?t=i:1!==s&&(s=1):-1!==t&&(s=-1)}return -1===t||-1===n||0===s||1===s&&t===n-1&&t===r+1?"":e.slice(t,n)},parse(e){let t;i(e);let r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;let n=(e=o(this.toPosix(e))).charCodeAt(0),a=this.isAbsolute(e),s="";r.root=this.rootname(e),t=a||this.hasProtocol(e)?1:0;let l=-1,u=0,c=-1,f=!0,h=e.length-1,d=0;for(;h>=t;--h){if(47===(n=e.charCodeAt(h))){if(!f){u=h+1;break}continue}-1===c&&(f=!1,c=h+1),46===n?-1===l?l=h:1!==d&&(d=1):-1!==l&&(d=-1)}return -1===l||-1===c||0===d||1===d&&l===c-1&&l===u+1?-1!==c&&(0===u&&a?r.base=r.name=e.slice(1,c):r.base=r.name=e.slice(u,c)):(0===u&&a?(r.name=e.slice(1,l),r.base=e.slice(1,c)):(r.name=e.slice(u,l),r.base=e.slice(u,c)),r.ext=e.slice(l,c)),r.dir=this.dirname(e),s&&(r.dir=s+r.dir),r},sep:"/",delimiter:":",joinExtensions:[".html"]}},83325:function(e,t,r){"use strict";r.d(t,{b:()=>n});class n{constructor(e,t){this._pool=[],this._count=0,this._index=0,this._classType=e,t&&this.prepopulate(t)}prepopulate(e){for(let t=0;t<e;t++)this._pool[this._index++]=new this._classType;this._count+=e}get(e){let t;return t=this._index>0?this._pool[--this._index]:new this._classType,t.init?.(e),t}return(e){e.reset?.(),this._pool[this._index++]=e}get totalSize(){return this._count}get totalFree(){return this._index}get totalUsed(){return this._count-this._index}}},92078:function(e,t,r){"use strict";r.d(t,{Z:()=>o});var n=r(83325);class i{constructor(){this._poolsByClass=new Map}prepopulate(e,t){this.getPool(e).prepopulate(t)}get(e,t){return this.getPool(e).get(t)}return(e){this.getPool(e.constructor).return(e)}getPool(e){return this._poolsByClass.has(e)||this._poolsByClass.set(e,new n.b(e)),this._poolsByClass.get(e)}stats(){let e={};return this._poolsByClass.forEach(t=>{let r=e[t._classType.name]?t._classType.name+t._classType.ID:t._classType.name;e[r]={free:t.totalFree,used:t.totalUsed,size:t.totalSize}}),e}}let o=new i},72644:function(e,t,r){"use strict";let n,i;r.d(t,{io:()=>eV});var o,a={};r.r(a),r.d(a,{Decoder:()=>eL,Encoder:()=>eN,PacketType:()=>o,protocol:()=>eB});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let l=Object.create(null);Object.keys(s).forEach(e=>{l[s[e]]=e});let u={type:"error",data:"parser error"},c="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),f="function"==typeof ArrayBuffer,h=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,d=({type:e,data:t},r,n)=>{if(c&&t instanceof Blob)if(r)return n(t);else return p(t,n);if(f&&(t instanceof ArrayBuffer||h(t)))if(r)return n(t);else return p(new Blob([t]),n);return n(s[e]+(t||""))},p=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function m(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function g(e,t){return c&&e.data instanceof Blob?e.data.arrayBuffer().then(m).then(t):f&&(e.data instanceof ArrayBuffer||h(e.data))?t(m(e.data)):void d(e,!1,e=>{n||(n=new TextEncoder),t(n.encode(e))})}let v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<v.length;e++)y[v.charCodeAt(e)]=e;let b=e=>{let t=.75*e.length,r=e.length,n,i=0,o,a,s,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(n=0;n<r;n+=4)o=y[e.charCodeAt(n)],a=y[e.charCodeAt(n+1)],s=y[e.charCodeAt(n+2)],l=y[e.charCodeAt(n+3)],c[i++]=o<<2|a>>4,c[i++]=(15&a)<<4|s>>2,c[i++]=(3&s)<<6|63&l;return u},x="function"==typeof ArrayBuffer,_=(e,t)=>{if("string"!=typeof e)return{type:"message",data:S(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:w(e.substring(1),t)}:l[r]?e.length>1?{type:l[r],data:e.substring(1)}:{type:l[r]}:u},w=(e,t)=>x?S(b(e),t):{base64:!0,data:e},S=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,A="\x1e",E=(e,t)=>{let r=e.length,n=Array(r),i=0;e.forEach((e,o)=>{d(e,!1,e=>{n[o]=e,++i===r&&t(n.join(A))})})},C=(e,t)=>{let r=e.split(A),n=[];for(let e=0;e<r.length;e++){let i=_(r[e],t);if(n.push(i),"error"===i.type)break}return n};function k(){return new TransformStream({transform(e,t){g(e,r=>{let n,i=r.length;if(i<126)new DataView((n=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((n=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((n=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(n[0]|=128),t.enqueue(n),t.enqueue(r)})}})}function O(e){return e.reduce((e,t)=>e+t.length,0)}function I(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function T(e,t){i||(i=new TextDecoder);let r=[],n=0,o=-1,a=!1;return new TransformStream({transform(s,l){for(r.push(s);;){if(0===n){if(1>O(r))break;let e=I(r,1);a=(128&e[0])==128,n=(o=127&e[0])<126?3:126===o?1:2}else if(1===n){if(2>O(r))break;let e=I(r,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(8>O(r))break;let e=I(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){l.enqueue(u);break}o=0x100000000*i+t.getUint32(4),n=3}else{if(O(r)<o)break;let e=I(r,o);l.enqueue(_(a?e:i.decode(e),t)),n=0}if(0===o||o>e){l.enqueue(u);break}}}})}let M=4;function R(e){if(e)return P(e)}function P(e){for(var t in R.prototype)e[t]=R.prototype[t];return e}R.prototype.on=R.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},R.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},R.prototype.off=R.prototype.removeListener=R.prototype.removeAllListeners=R.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},R.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this},R.prototype.emitReserved=R.prototype.emit,R.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},R.prototype.hasListeners=function(e){return!!this.listeners(e).length};let $="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),B="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")(),N="arraybuffer";function z(){}function L(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}let j=B.setTimeout,F=B.clearTimeout;function D(e,t){t.useNativeTimers?(e.setTimeoutFn=j.bind(B),e.clearTimeoutFn=F.bind(B)):(e.setTimeoutFn=B.setTimeout.bind(B),e.clearTimeoutFn=B.clearTimeout.bind(B))}let U=1.33;function H(e){return"string"==typeof e?G(e):Math.ceil((e.byteLength||e.size)*U)}function G(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)(t=e.charCodeAt(n))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function W(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function V(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function q(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}class X extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class Y extends R{constructor(e){super(),this.writable=!1,D(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new X(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=_(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=V(e);return t.length?"?"+t:""}}class K extends Y{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};C(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,E(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=W()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let Z=!1;try{Z="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let Q=Z;function J(){}class ee extends K{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class et extends R{constructor(e,t,r){super(),this.createRequest=e,D(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;let t=L(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null==(e=this._opts.cookieJar)||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null==(e=this._opts.cookieJar)||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"undefined"!=typeof document&&(this._index=et.requestsCount++,et.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=J,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete et.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function er(){for(let e in et.requests)et.requests.hasOwnProperty(e)&&et.requests[e].abort()}et.requestsCount=0,et.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",er):"function"==typeof addEventListener&&addEventListener("onpagehide"in B?"pagehide":"unload",er,!1));let en=function(){let e=eo({xdomain:!1});return e&&null!==e.responseType}();class ei extends ee{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=en&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new et(eo,this.uri(),e)}}function eo(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||Q))return new XMLHttpRequest}catch(e){}if(!t)try{return new B[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}let ea="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class es extends Y{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=ea?{}:L(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;d(r,this.supportsBinary,e=>{try{this.doWrite(r,e)}catch(e){}n&&$(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=W()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}let el=B.WebSocket||B.MozWebSocket;class eu extends es{createSocket(e,t,r){return ea?new el(e,t,r):t?new el(e,t):new el(e)}doWrite(e,t){this.ws.send(t)}}class ec extends Y{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=T(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=k();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let i=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&$(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null==(e=this._transport)||e.close()}}let ef={websocket:eu,webtransport:ec,polling:ei},eh=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ed=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ep(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=eh.exec(e||""),o={},a=14;for(;a--;)o[ed[a]]=i[a]||"";return -1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=em(o,o.path),o.queryKey=eg(o,o.query),o}function em(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}function eg(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}let ev="function"==typeof addEventListener&&"function"==typeof removeEventListener,ey=[];ev&&addEventListener("offline",()=>{ey.forEach(e=>e())},!1);class eb extends R{constructor(e,t){if(super(),this.binaryType=N,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const r=ep(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=ep(t.host).host);D(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=q(this.opts.query)),ev&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ey.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=z()),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=M,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let e=this.opts.rememberUpgrade&&eb.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",eb.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let t=Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+=H(r)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,$(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(eb.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ev&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=ey.indexOf(this._offlineEventListener);-1!==e&&ey.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}eb.protocol=M;class ex extends eb{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;eb.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;eb.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function i(){r||(r=!0,u(),t.close(),t=null)}let o=e=>{let r=Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function a(){o("transport closed")}function s(){o("socket closed")}function l(e){t&&e.name!==t.name&&i()}let u=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",n),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}class e_ extends ex{constructor(e,t={}){const r="object"==typeof e?e:t;(!r.transports||r.transports&&"string"==typeof r.transports[0])&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(e=>ef[e]).filter(e=>!!e)),super(e,r)}}function ew(e,t="",r){let n=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=ep(e)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}e_.protocol;let eS="function"==typeof ArrayBuffer,eA=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,eE=Object.prototype.toString,eC="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===eE.call(Blob),ek="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===eE.call(File);function eO(e){return eS&&(e instanceof ArrayBuffer||eA(e))||eC&&e instanceof Blob||ek&&e instanceof File}function eI(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(eI(e[t]))return!0;return!1}if(eO(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return eI(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&eI(e[t]))return!0;return!1}function eT(e){let t=[],r=e.data,n=e;return n.data=eM(r,t),n.attachments=t.length,{packet:n,buffers:t}}function eM(e,t){if(!e)return e;if(eO(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){let r=Array(e.length);for(let n=0;n<e.length;n++)r[n]=eM(e[n],t);return r}if("object"==typeof e&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=eM(e[n],t));return r}return e}function eR(e,t){return e.data=eP(e.data,t),delete e.attachments,e}function eP(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=eP(e[r],t);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=eP(e[r],t));return e}let e$=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],eB=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(o||(o={}));class eN{constructor(e){this.replacer=e}encode(e){return(e.type===o.EVENT||e.type===o.ACK)&&eI(e)?this.encodeAsBinary({type:e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===o.BINARY_EVENT||e.type===o.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=eT(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}}function ez(e){return"[object Object]"===Object.prototype.toString.call(e)}class eL extends R{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===o.BINARY_EVENT;r||t.type===o.BINARY_ACK?(t.type=r?o.EVENT:o.ACK,this.reconstructor=new ej(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(eO(e)||e.base64)if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===o[r.type])throw Error("unknown packet type "+r.type);if(r.type===o.BINARY_EVENT||r.type===o.BINARY_ACK){let n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");r.attachments=Number(i)}if("/"===e.charAt(t+1)){let n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";let n=e.charAt(t+1);if(""!==n&&Number(n)==n){let n=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(eL.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case o.CONNECT:return ez(t);case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||ez(t);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===e$.indexOf(t[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ej{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=eR(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function eF(e,t,r){return e.on(t,r),function(){e.off(t,r)}}let eD=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eU extends R{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[eF(e,"open",this.onopen.bind(this)),eF(e,"packet",this.onpacket.bind(this)),eF(e,"error",this.onerror.bind(this)),eF(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,i;if(eD.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let a={type:o.EVENT,data:t};if(a.options={},a.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),a.id=e}let s=null==(n=null==(r=this.io.engine)?void 0:r.transport)?void 0:n.writable,l=this.connected&&!(null==(i=this.io.engine)?void 0:i._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(e,t){var r;let n=null!=(r=this.flags.timeout)?r:this._opts.ackTimeout;if(void 0===n){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},n),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,n)=>{let i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r===this._queue[0])return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case o.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:o.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function eH(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eH.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},eH.prototype.reset=function(){this.attempts=0},eH.prototype.setMin=function(e){this.ms=e},eH.prototype.setMax=function(e){this.max=e},eH.prototype.setJitter=function(e){this.jitter=e};class eG extends R{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,D(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(r=t.randomizationFactor)?r:.5),this.backoff=new eH({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null==(t=this.backoff)||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null==(t=this.backoff)||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null==(t=this.backoff)||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new e_(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=eF(t,"open",function(){r.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=eF(t,"error",i);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(eF(e,"ping",this.onping.bind(this)),eF(e,"data",this.ondata.bind(this)),eF(e,"error",this.onerror.bind(this)),eF(e,"close",this.onclose.bind(this)),eF(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){$(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new eU(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),null==(r=this.engine)||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let eW={};function eV(e,t){let r;"object"==typeof e&&(t=e,e=void 0);let n=ew(e,(t=t||{}).path||"/socket.io"),i=n.source,o=n.id,a=n.path,s=eW[o]&&a in eW[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?r=new eG(i,t):(eW[o]||(eW[o]=new eG(i,t)),r=eW[o]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(eV,{Manager:eG,Socket:eU,io:eV,connect:eV})},63961:function(e,t,r){"use strict";let n;r.d(t,{A:()=>u});let i="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),o=new Uint8Array(16);function a(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(o)}let s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function l(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}let u=function(e,t,r){if(i&&!t&&!e)return i();let n=(e=e||{}).random??e.rng?.()??a();if(n.length<16)throw Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=n[e];return t}return l(n)}},46244:function(e,t,r){"use strict";let n;r.d(t,{z:()=>tE}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(tb||(tb={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(tx||(tx={}));let i=tb.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),o=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}},a=tb.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),s=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class l extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof l))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,tb.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);let u=(e,t)=>{let r;switch(e.code){case a.invalid_type:r=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,tb.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:r=`Unrecognized key(s) in object: ${tb.joinValues(e.keys,", ")}`;break;case a.invalid_union:r="Invalid input";break;case a.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${tb.joinValues(e.options)}`;break;case a.invalid_enum_value:r=`Invalid enum value. Expected ${tb.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:r="Invalid function arguments";break;case a.invalid_return_type:r="Invalid function return type";break;case a.invalid_date:r="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:tb.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.custom:r="Invalid input";break;case a.invalid_intersection_types:r="Intersection results could not be merged";break;case a.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:r="Number must be finite";break;default:r=t.defaultError,tb.assertNever(e)}return{message:r}},c=u;function f(e){c=e}function h(){return c}let d=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}},p=[];function m(e,t){let r=h(),n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===u?void 0:u].filter(e=>!!e)});e.common.issues.push(n)}class g{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return v;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return g.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return v;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let v=Object.freeze({status:"aborted"}),y=e=>({status:"dirty",value:e}),b=e=>({status:"valid",value:e}),x=e=>"aborted"===e.status,_=e=>"dirty"===e.status,w=e=>"valid"===e.status,S=e=>"undefined"!=typeof Promise&&e instanceof Promise;function A(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function E(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(t_||(t_={}));class C{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let k=(e,t)=>{if(w(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new l(e.common.issues);return this._error=t,this._error}}};function O(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var o,a;let{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!=(o=null!=s?s:n)?o:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!=(a=null!=s?s:r)?a:i.defaultError}},description:i}}class I{get description(){return this._def.description}_getType(e){return o(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:o(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new g,ctx:{common:e.parent.common,data:e.data,parsedType:o(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(S(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!=(r=null==t?void 0:t.async)&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)},i=this._parseSync({data:e,path:n.path,parent:n});return k(n,i)}"~validate"(e){var t,r;let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)};if(!this["~standard"].async)try{let t=this._parseSync({data:e,path:[],parent:n});return w(t)?{value:t.value}:{issues:n.common.issues}}catch(e){(null==(r=null==(t=null==e?void 0:e.message)?void 0:t.toLowerCase())?void 0:r.includes("encountered"))&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(e=>w(e)?{value:e.value}:{issues:n.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)},n=this._parse({data:e,path:r.path,parent:r});return k(r,await (S(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),o=()=>n.addIssue({code:a.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new eM({schema:this,typeName:tA.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eR.create(this,this._def)}nullable(){return eP.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return eh.create(this)}promise(){return eT.create(this,this._def)}or(e){return em.create([this,e],this._def)}and(e){return eb.create(this,e,this._def)}transform(e){return new eM({...O(this._def),schema:this,typeName:tA.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new e$({...O(this._def),innerType:this,defaultValue:t,typeName:tA.ZodDefault})}brand(){return new eL({typeName:tA.ZodBranded,type:this,...O(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new eB({...O(this._def),innerType:this,catchValue:t,typeName:tA.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ej.create(this,e)}readonly(){return eF.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let T=/^c[^\s-]{8,}$/i,M=/^[0-9a-z]+$/,R=/^[0-9A-HJKMNP-TV-Z]{26}$/i,P=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,$=/^[a-z0-9_-]{21}$/i,B=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,N=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,z=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,L="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",j=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,F=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,D=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,U=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,H=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,G=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,W="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",V=RegExp(`^${W}$`);function q(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function X(e){return RegExp(`^${q(e)}$`)}function Y(e){let t=`${W}T${q(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}function K(e,t){return!!(("v4"===t||!t)&&j.test(e)||("v6"===t||!t)&&D.test(e))}function Z(e,t){if(!B.test(e))return!1;try{let[r]=e.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||!i.typ||!i.alg||t&&i.alg!==t)return!1;return!0}catch(e){return!1}}function Q(e,t){return!!(("v4"===t||!t)&&F.test(e)||("v6"===t||!t)&&U.test(e))}class J extends I{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.string){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.string,received:t.parsedType}),v}let r=new g;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("max"===i.kind)e.data.length>i.value&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("length"===i.kind){let n=e.data.length>i.value,o=e.data.length<i.value;(n||o)&&(t=this._getOrReturnCtx(e,t),n?m(t,{code:a.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&m(t,{code:a.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if("email"===i.kind)z.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"email",code:a.invalid_string,message:i.message}),r.dirty());else if("emoji"===i.kind)n||(n=RegExp(L,"u")),n.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:a.invalid_string,message:i.message}),r.dirty());else if("uuid"===i.kind)P.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:a.invalid_string,message:i.message}),r.dirty());else if("nanoid"===i.kind)$.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"nanoid",code:a.invalid_string,message:i.message}),r.dirty());else if("cuid"===i.kind)T.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:a.invalid_string,message:i.message}),r.dirty());else if("cuid2"===i.kind)M.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:a.invalid_string,message:i.message}),r.dirty());else if("ulid"===i.kind)R.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:a.invalid_string,message:i.message}),r.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(n){m(t=this._getOrReturnCtx(e,t),{validation:"url",code:a.invalid_string,message:i.message}),r.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"regex",code:a.invalid_string,message:i.message}),r.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):"datetime"===i.kind?Y(i).test(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:"datetime",message:i.message}),r.dirty()):"date"===i.kind?V.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:"date",message:i.message}),r.dirty()):"time"===i.kind?X(i).test(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:"time",message:i.message}),r.dirty()):"duration"===i.kind?N.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"duration",code:a.invalid_string,message:i.message}),r.dirty()):"ip"===i.kind?K(e.data,i.version)||(m(t=this._getOrReturnCtx(e,t),{validation:"ip",code:a.invalid_string,message:i.message}),r.dirty()):"jwt"===i.kind?Z(e.data,i.alg)||(m(t=this._getOrReturnCtx(e,t),{validation:"jwt",code:a.invalid_string,message:i.message}),r.dirty()):"cidr"===i.kind?Q(e.data,i.version)||(m(t=this._getOrReturnCtx(e,t),{validation:"cidr",code:a.invalid_string,message:i.message}),r.dirty()):"base64"===i.kind?H.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"base64",code:a.invalid_string,message:i.message}),r.dirty()):"base64url"===i.kind?G.test(e.data)||(m(t=this._getOrReturnCtx(e,t),{validation:"base64url",code:a.invalid_string,message:i.message}),r.dirty()):tb.assertNever(i);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...t_.errToObj(r)})}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...t_.errToObj(e)})}url(e){return this._addCheck({kind:"url",...t_.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...t_.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...t_.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...t_.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...t_.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...t_.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...t_.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...t_.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...t_.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...t_.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...t_.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...t_.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!=(t=null==e?void 0:e.offset)&&t,local:null!=(r=null==e?void 0:e.local)&&r,...t_.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...t_.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...t_.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...t_.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...t_.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...t_.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...t_.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...t_.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...t_.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...t_.errToObj(t)})}nonempty(e){return this.min(1,t_.errToObj(e))}trim(){return new J({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function ee(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}J.create=e=>{var t;return new J({checks:[],typeName:tA.ZodString,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...O(e)})};class et extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.number){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.number,received:t.parsedType}),v}let r=new g;for(let n of this._def.checks)"int"===n.kind?tb.isInteger(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==ee(e.data,n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(m(t=this._getOrReturnCtx(e,t),{code:a.not_finite,message:n.message}),r.dirty()):tb.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,t_.toString(t))}gt(e,t){return this.setLimit("min",e,!1,t_.toString(t))}lte(e,t){return this.setLimit("max",e,!0,t_.toString(t))}lt(e,t){return this.setLimit("max",e,!1,t_.toString(t))}setLimit(e,t,r,n){return new et({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:t_.toString(n)}]})}_addCheck(e){return new et({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:t_.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:t_.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:t_.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:t_.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:t_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:t_.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:t_.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:t_.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:t_.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&tb.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}et.create=e=>new et({checks:[],typeName:tA.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...O(e)});class er extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch(t){return this._getInvalidInput(e)}if(this._getType(e)!==i.bigint)return this._getInvalidInput(e);let r=new g;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(m(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):tb.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.bigint,received:t.parsedType}),v}gte(e,t){return this.setLimit("min",e,!0,t_.toString(t))}gt(e,t){return this.setLimit("min",e,!1,t_.toString(t))}lte(e,t){return this.setLimit("max",e,!0,t_.toString(t))}lt(e,t){return this.setLimit("max",e,!1,t_.toString(t))}setLimit(e,t,r,n){return new er({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:t_.toString(n)}]})}_addCheck(e){return new er({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:t_.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:t_.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:t_.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:t_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:t_.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}er.create=e=>{var t;return new er({checks:[],typeName:tA.ZodBigInt,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...O(e)})};class en extends I{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==i.boolean){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.boolean,received:t.parsedType}),v}return b(e.data)}}en.create=e=>new en({typeName:tA.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...O(e)});class ei extends I{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.date){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.date,received:t.parsedType}),v}if(isNaN(e.data.getTime()))return m(this._getOrReturnCtx(e),{code:a.invalid_date}),v;let r=new g;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(m(t=this._getOrReturnCtx(e,t),{code:a.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):tb.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ei({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:t_.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:t_.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}ei.create=e=>new ei({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:tA.ZodDate,...O(e)});class eo extends I{_parse(e){if(this._getType(e)!==i.symbol){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.symbol,received:t.parsedType}),v}return b(e.data)}}eo.create=e=>new eo({typeName:tA.ZodSymbol,...O(e)});class ea extends I{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.undefined,received:t.parsedType}),v}return b(e.data)}}ea.create=e=>new ea({typeName:tA.ZodUndefined,...O(e)});class es extends I{_parse(e){if(this._getType(e)!==i.null){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.null,received:t.parsedType}),v}return b(e.data)}}es.create=e=>new es({typeName:tA.ZodNull,...O(e)});class el extends I{constructor(){super(...arguments),this._any=!0}_parse(e){return b(e.data)}}el.create=e=>new el({typeName:tA.ZodAny,...O(e)});class eu extends I{constructor(){super(...arguments),this._unknown=!0}_parse(e){return b(e.data)}}eu.create=e=>new eu({typeName:tA.ZodUnknown,...O(e)});class ec extends I{_parse(e){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.never,received:t.parsedType}),v}}ec.create=e=>new ec({typeName:tA.ZodNever,...O(e)});class ef extends I{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.void,received:t.parsedType}),v}return b(e.data)}}ef.create=e=>new ef({typeName:tA.ZodVoid,...O(e)});class eh extends I{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==i.array)return m(t,{code:a.invalid_type,expected:i.array,received:t.parsedType}),v;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(m(t,{code:e?a.too_big:a.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(m(t,{code:a.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(m(t,{code:a.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new C(t,e,t.path,r)))).then(e=>g.mergeArray(r,e));let o=[...t.data].map((e,r)=>n.type._parseSync(new C(t,e,t.path,r)));return g.mergeArray(r,o)}get element(){return this._def.type}min(e,t){return new eh({...this._def,minLength:{value:e,message:t_.toString(t)}})}max(e,t){return new eh({...this._def,maxLength:{value:e,message:t_.toString(t)}})}length(e,t){return new eh({...this._def,exactLength:{value:e,message:t_.toString(t)}})}nonempty(e){return this.min(1,e)}}function ed(e){if(e instanceof ep){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=eR.create(ed(n))}return new ep({...e._def,shape:()=>t})}if(e instanceof eh)return new eh({...e._def,type:ed(e.element)});if(e instanceof eR)return eR.create(ed(e.unwrap()));if(e instanceof eP)return eP.create(ed(e.unwrap()));if(e instanceof ex)return ex.create(e.items.map(e=>ed(e)));else return e}eh.create=(e,t)=>new eh({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tA.ZodArray,...O(t)});class ep extends I{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=tb.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.object,received:t.parsedType}),v}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof ec&&"strip"===this._def.unknownKeys))for(let e in r.data)o.includes(e)||s.push(e);let l=[];for(let e of o){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new C(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof ec){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of s)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)s.length>0&&(m(r,{code:a.unrecognized_keys,keys:s}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of s){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new C(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>g.mergeObjectSync(t,e)):g.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return t_.errToObj,new ep({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,o,a;let s=null!=(o=null==(i=(n=this._def).errorMap)?void 0:i.call(n,t,r).message)?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!=(a=t_.errToObj(e).message)?a:s}:{message:s}}}:{}})}strip(){return new ep({...this._def,unknownKeys:"strip"})}passthrough(){return new ep({...this._def,unknownKeys:"passthrough"})}extend(e){return new ep({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ep({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tA.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ep({...this._def,catchall:e})}pick(e){let t={};return tb.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new ep({...this._def,shape:()=>t})}omit(e){let t={};return tb.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new ep({...this._def,shape:()=>t})}deepPartial(){return ed(this)}partial(e){let t={};return tb.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new ep({...this._def,shape:()=>t})}required(e){let t={};return tb.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eR;)e=e._def.innerType;t[r]=e}}),new ep({...this._def,shape:()=>t})}keyof(){return ek(tb.objectKeys(this.shape))}}ep.create=(e,t)=>new ep({shape:()=>e,unknownKeys:"strip",catchall:ec.create(),typeName:tA.ZodObject,...O(t)}),ep.strictCreate=(e,t)=>new ep({shape:()=>e,unknownKeys:"strict",catchall:ec.create(),typeName:tA.ZodObject,...O(t)}),ep.lazycreate=(e,t)=>new ep({shape:e,unknownKeys:"strip",catchall:ec.create(),typeName:tA.ZodObject,...O(t)});class em extends I{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new l(e.ctx.common.issues));return m(t,{code:a.invalid_union,unionErrors:r}),v}if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new l(e));return m(t,{code:a.invalid_union,unionErrors:i}),v}}get options(){return this._def.options}}em.create=(e,t)=>new em({options:e,typeName:tA.ZodUnion,...O(t)});let eg=e=>{if(e instanceof eE)return eg(e.schema);if(e instanceof eM)return eg(e.innerType());if(e instanceof eC)return[e.value];if(e instanceof eO)return e.options;if(e instanceof eI)return tb.objectValues(e.enum);else if(e instanceof e$)return eg(e._def.innerType);else if(e instanceof ea)return[void 0];else if(e instanceof es)return[null];else if(e instanceof eR)return[void 0,...eg(e.unwrap())];else if(e instanceof eP)return[null,...eg(e.unwrap())];else if(e instanceof eL)return eg(e.unwrap());else if(e instanceof eF)return eg(e.unwrap());else if(e instanceof eB)return eg(e._def.innerType);else return[]};class ev extends I{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return m(t,{code:a.invalid_type,expected:i.object,received:t.parsedType}),v;let r=this.discriminator,n=t.data[r],o=this.optionsMap.get(n);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(m(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),v)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=eg(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new ev({typeName:tA.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...O(r)})}}function ey(e,t){let r=o(e),n=o(t);if(e===t)return{valid:!0,data:e};if(r===i.object&&n===i.object){let r=tb.objectKeys(t),n=tb.objectKeys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=ey(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===i.array&&n===i.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let n=0;n<e.length;n++){let i=ey(e[n],t[n]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}if(r===i.date&&n===i.date&&+e==+t)return{valid:!0,data:e};return{valid:!1}}class eb extends I{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(x(e)||x(n))return v;let i=ey(e.value,n.value);return i.valid?((_(e)||_(n))&&t.dirty(),{status:t.value,value:i.data}):(m(r,{code:a.invalid_intersection_types}),v)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}eb.create=(e,t,r)=>new eb({left:e,right:t,typeName:tA.ZodIntersection,...O(r)});class ex extends I{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.array)return m(r,{code:a.invalid_type,expected:i.array,received:r.parsedType}),v;if(r.data.length<this._def.items.length)return m(r,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),v;!this._def.rest&&r.data.length>this._def.items.length&&(m(r,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new C(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>g.mergeArray(t,e)):g.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new ex({...this._def,rest:e})}}ex.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ex({items:e,typeName:tA.ZodTuple,rest:null,...O(t)})};class e_ extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.object)return m(r,{code:a.invalid_type,expected:i.object,received:r.parsedType}),v;let n=[],o=this._def.keyType,s=this._def.valueType;for(let e in r.data)n.push({key:o._parse(new C(r,e,r.path,e)),value:s._parse(new C(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?g.mergeObjectAsync(t,n):g.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new e_(t instanceof I?{keyType:e,valueType:t,typeName:tA.ZodRecord,...O(r)}:{keyType:J.create(),valueType:e,typeName:tA.ZodRecord,...O(t)})}}class ew extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.map)return m(r,{code:a.invalid_type,expected:i.map,received:r.parsedType}),v;let n=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([e,t],i)=>({key:n._parse(new C(r,e,r.path,[i,"key"])),value:o._parse(new C(r,t,r.path,[i,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of s){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return v;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of s){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return v;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}ew.create=(e,t,r)=>new ew({valueType:t,keyType:e,typeName:tA.ZodMap,...O(r)});class eS extends I{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.set)return m(r,{code:a.invalid_type,expected:i.set,received:r.parsedType}),v;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(m(r,{code:a.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(m(r,{code:a.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let o=this._def.valueType;function s(e){let r=new Set;for(let n of e){if("aborted"===n.status)return v;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>o._parse(new C(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>s(e)):s(l)}min(e,t){return new eS({...this._def,minSize:{value:e,message:t_.toString(t)}})}max(e,t){return new eS({...this._def,maxSize:{value:e,message:t_.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eS.create=(e,t)=>new eS({valueType:e,minSize:null,maxSize:null,typeName:tA.ZodSet,...O(t)});class eA extends I{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return m(t,{code:a.invalid_type,expected:i.function,received:t.parsedType}),v;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,h(),u].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:r}})}function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,h(),u].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:r}})}let o={errorMap:t.common.contextualErrorMap},s=t.data;if(this._def.returns instanceof eT){let e=this;return b(async function(...t){let i=new l([]),a=await e._def.args.parseAsync(t,o).catch(e=>{throw i.addIssue(r(t,e)),i}),u=await Reflect.apply(s,this,a);return await e._def.returns._def.type.parseAsync(u,o).catch(e=>{throw i.addIssue(n(u,e)),i})})}{let e=this;return b(function(...t){let i=e._def.args.safeParse(t,o);if(!i.success)throw new l([r(t,i.error)]);let a=Reflect.apply(s,this,i.data),u=e._def.returns.safeParse(a,o);if(!u.success)throw new l([n(a,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eA({...this._def,args:ex.create(e).rest(eu.create())})}returns(e){return new eA({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eA({args:e||ex.create([]).rest(eu.create()),returns:t||eu.create(),typeName:tA.ZodFunction,...O(r)})}}class eE extends I{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eE.create=(e,t)=>new eE({getter:e,typeName:tA.ZodLazy,...O(t)});class eC extends I{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return m(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),v}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ek(e,t){return new eO({values:e,typeName:tA.ZodEnum,...O(t)})}eC.create=(e,t)=>new eC({value:e,typeName:tA.ZodLiteral,...O(t)});class eO extends I{constructor(){super(...arguments),tw.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return m(t,{expected:tb.joinValues(r),received:t.parsedType,code:a.invalid_type}),v}if(A(this,tw,"f")||E(this,tw,new Set(this._def.values),"f"),!A(this,tw,"f").has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return m(t,{received:t.data,code:a.invalid_enum_value,options:r}),v}return b(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eO.create(e,{...this._def,...t})}exclude(e,t=this._def){return eO.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}tw=new WeakMap,eO.create=ek;class eI extends I{constructor(){super(...arguments),tS.set(this,void 0)}_parse(e){let t=tb.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==i.string&&r.parsedType!==i.number){let e=tb.objectValues(t);return m(r,{expected:tb.joinValues(e),received:r.parsedType,code:a.invalid_type}),v}if(A(this,tS,"f")||E(this,tS,new Set(tb.getValidEnumValues(this._def.values)),"f"),!A(this,tS,"f").has(e.data)){let e=tb.objectValues(t);return m(r,{received:r.data,code:a.invalid_enum_value,options:e}),v}return b(e.data)}get enum(){return this._def.values}}tS=new WeakMap,eI.create=(e,t)=>new eI({values:e,typeName:tA.ZodNativeEnum,...O(t)});class eT extends I{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==i.promise&&!1===t.common.async?(m(t,{code:a.invalid_type,expected:i.promise,received:t.parsedType}),v):b((t.parsedType===i.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eT.create=(e,t)=>new eT({type:e,typeName:tA.ZodPromise,...O(t)});class eM extends I{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tA.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{m(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return v;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?v:"dirty"===n.status||"dirty"===t.value?y(n.value):n});{if("aborted"===t.value)return v;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?v:"dirty"===n.status||"dirty"===t.value?y(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?v:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?v:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>w(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!w(e))return e;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}tb.assertNever(n)}}eM.create=(e,t,r)=>new eM({schema:e,typeName:tA.ZodEffects,effect:t,...O(r)}),eM.createWithPreprocess=(e,t,r)=>new eM({schema:t,effect:{type:"preprocess",transform:e},typeName:tA.ZodEffects,...O(r)});class eR extends I{_parse(e){return this._getType(e)===i.undefined?b(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eR.create=(e,t)=>new eR({innerType:e,typeName:tA.ZodOptional,...O(t)});class eP extends I{_parse(e){return this._getType(e)===i.null?b(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eP.create=(e,t)=>new eP({innerType:e,typeName:tA.ZodNullable,...O(t)});class e$ extends I{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===i.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}e$.create=(e,t)=>new e$({innerType:e,typeName:tA.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...O(t)});class eB extends I{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return S(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new l(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eB.create=(e,t)=>new eB({innerType:e,typeName:tA.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...O(t)});class eN extends I{_parse(e){if(this._getType(e)!==i.nan){let t=this._getOrReturnCtx(e);return m(t,{code:a.invalid_type,expected:i.nan,received:t.parsedType}),v}return{status:"valid",value:e.data}}}eN.create=e=>new eN({typeName:tA.ZodNaN,...O(e)});let ez=Symbol("zod_brand");class eL extends I{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class ej extends I{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?v:"dirty"===e.status?(t.dirty(),y(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?v:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new ej({in:e,out:t,typeName:tA.ZodPipeline})}}class eF extends I{_parse(e){let t=this._def.innerType._parse(e),r=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return S(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eD(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function eU(e,t={},r){return e?el.create().superRefine((n,i)=>{var o,a;let s=e(n);if(s instanceof Promise)return s.then(e=>{var o,a;if(!e){let e=eD(t,n),s=null==(a=null!=(o=e.fatal)?o:r)||a;i.addIssue({code:"custom",...e,fatal:s})}});if(!s){let e=eD(t,n),s=null==(a=null!=(o=e.fatal)?o:r)||a;i.addIssue({code:"custom",...e,fatal:s})}}):el.create()}eF.create=(e,t)=>new eF({innerType:e,typeName:tA.ZodReadonly,...O(t)});let eH={object:ep.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(tA||(tA={}));let eG=(e,t={message:`Input not instance of ${e.name}`})=>eU(t=>t instanceof e,t),eW=J.create,eV=et.create,eq=eN.create,eX=er.create,eY=en.create,eK=ei.create,eZ=eo.create,eQ=ea.create,eJ=es.create,e0=el.create,e1=eu.create,e2=ec.create,e3=ef.create,e5=eh.create,e4=ep.create,e6=ep.strictCreate,e8=em.create,e7=ev.create,e9=eb.create,te=ex.create,tt=e_.create,tr=ew.create,tn=eS.create,ti=eA.create,to=eE.create,ta=eC.create,ts=eO.create,tl=eI.create,tu=eT.create,tc=eM.create,tf=eR.create,th=eP.create,td=eM.createWithPreprocess,tp=ej.create,tm=()=>eV().optional(),tg=()=>eY().optional(),tv={string:e=>J.create({...e,coerce:!0}),number:e=>et.create({...e,coerce:!0}),boolean:e=>en.create({...e,coerce:!0}),bigint:e=>er.create({...e,coerce:!0}),date:e=>ei.create({...e,coerce:!0})},ty=v;var tb,tx,t_,tw,tS,tA,tE=Object.freeze({__proto__:null,defaultErrorMap:u,setErrorMap:f,getErrorMap:h,makeIssue:d,EMPTY_PATH:p,addIssueToContext:m,ParseStatus:g,INVALID:v,DIRTY:y,OK:b,isAborted:x,isDirty:_,isValid:w,isAsync:S,get util(){return tb},get objectUtil(){return tx},ZodParsedType:i,getParsedType:o,ZodType:I,datetimeRegex:Y,ZodString:J,ZodNumber:et,ZodBigInt:er,ZodBoolean:en,ZodDate:ei,ZodSymbol:eo,ZodUndefined:ea,ZodNull:es,ZodAny:el,ZodUnknown:eu,ZodNever:ec,ZodVoid:ef,ZodArray:eh,ZodObject:ep,ZodUnion:em,ZodDiscriminatedUnion:ev,ZodIntersection:eb,ZodTuple:ex,ZodRecord:e_,ZodMap:ew,ZodSet:eS,ZodFunction:eA,ZodLazy:eE,ZodLiteral:eC,ZodEnum:eO,ZodNativeEnum:eI,ZodPromise:eT,ZodEffects:eM,ZodTransformer:eM,ZodOptional:eR,ZodNullable:eP,ZodDefault:e$,ZodCatch:eB,ZodNaN:eN,BRAND:ez,ZodBranded:eL,ZodPipeline:ej,ZodReadonly:eF,custom:eU,Schema:I,ZodSchema:I,late:eH,get ZodFirstPartyTypeKind(){return tA},coerce:tv,any:e0,array:e5,bigint:eX,boolean:eY,date:eK,discriminatedUnion:e7,effect:tc,enum:ts,function:ti,instanceof:eG,intersection:e9,lazy:to,literal:ta,map:tr,nan:eq,nativeEnum:tl,never:e2,null:eJ,nullable:th,number:eV,object:e4,oboolean:tg,onumber:tm,optional:tf,ostring:()=>eW().optional(),pipeline:tp,preprocess:td,promise:tu,record:tt,set:tn,strictObject:e6,string:eW,symbol:eZ,transformer:tc,tuple:te,undefined:eQ,union:e8,unknown:e1,void:e3,NEVER:ty,ZodIssueCode:a,quotelessJson:s,ZodError:l})},18926:function(e,t,r){"use strict";r.d(t,{vt:()=>h});let n=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{r.clear()}},a=t=e(n,i,o);return o},i=e=>e?n(e):n;var o=r(22155),a=r(33016);let{useDebugValue:s}=o,{useSyncExternalStoreWithSelector:l}=a,u=e=>e;function c(e,t=u,r){let n=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return s(n),n}let f=e=>{let t="function"==typeof e?i(e):e,r=(e,r)=>c(t,e,r);return Object.assign(r,t),r},h=e=>e?f(e):f}}]);
|
|
644
|
-
//# sourceMappingURL=9.
|
|
644
|
+
//# sourceMappingURL=9.abb4d07f.js.map
|