@midscene/web 0.7.2 → 0.7.3-beta-20241104100519.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/static/index.html DELETED
@@ -1,245 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charSet="utf-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0" />
7
- <link rel="icon" type="image/png" sizes="32x32"
8
- href="https://lf3-static.bytednsdoc.com/obj/eden-cn/vhaeh7vhabf/favicon-32x32.png">
9
-
10
- <title>Midscene Playground</title>
11
- <style>
12
- /* src/component/blackboard.less */
13
- .blackboard .footer {
14
- color: #aaa;
15
- }
16
- .blackboard ul {
17
- padding-left: 0px;
18
- }
19
- .blackboard li {
20
- list-style: none;
21
- }
22
- .blackboard .bottom-tip {
23
- height: 30px;
24
- }
25
- .blackboard .bottom-tip-item {
26
- max-width: 500px;
27
- color: #AAA;
28
- text-overflow: ellipsis;
29
- word-wrap: break-word;
30
- }
31
- .blackboard-filter {
32
- margin: 10px 0;
33
- }
34
- .blackboard-main-content canvas {
35
- width: 100%;
36
- border: 1px solid #888;
37
- box-sizing: border-box;
38
- }
39
-
40
- /* src/component/player.less */
41
- .player-container {
42
- width: fit-content;
43
- max-width: 100%;
44
- max-height: 100%;
45
- padding: 12px 0;
46
- padding-bottom: 0;
47
- background: #434443DD;
48
- box-sizing: border-box;
49
- border: 1px solid #979797;
50
- border-radius: 6px;
51
- line-height: 100%;
52
- margin: 0 auto;
53
- display: flex;
54
- flex-direction: column;
55
- overflow: hidden;
56
- }
57
- .player-container .canvas-container {
58
- flex-grow: 1;
59
- display: flex;
60
- align-items: center;
61
- justify-content: center;
62
- overflow: hidden;
63
- padding: 0 12px;
64
- }
65
- .player-container .canvas-container canvas {
66
- max-width: 100%;
67
- max-height: 100%;
68
- box-sizing: border-box;
69
- display: block;
70
- margin: 0 auto;
71
- }
72
- .player-container .player-timeline {
73
- width: 100%;
74
- height: 4px;
75
- background: #666;
76
- position: relative;
77
- margin-top: -2px;
78
- }
79
- .player-container .player-timeline .player-timeline-progress {
80
- transition-timing-function: linear;
81
- position: absolute;
82
- top: 0;
83
- left: 0;
84
- height: 4px;
85
- background: #06b1ab;
86
- }
87
- .player-container .player-controls {
88
- margin-top: calc(12px * 1.2);
89
- margin-bottom: calc(12px * 1.2);
90
- max-width: 100%;
91
- overflow: hidden;
92
- color: #FFF;
93
- font-size: 16px;
94
- box-sizing: border-box;
95
- display: flex;
96
- flex-direction: row;
97
- flex-shrink: 0;
98
- padding: 0 12px;
99
- }
100
- .player-container .player-controls .status-icon {
101
- transition: 0.2s;
102
- width: 40px;
103
- height: 40px;
104
- margin-right: 12px;
105
- background: #666;
106
- border-radius: 6px;
107
- display: flex;
108
- align-items: center;
109
- justify-content: center;
110
- flex-shrink: 0;
111
- }
112
- .player-container .player-controls .status-text {
113
- flex-grow: 1;
114
- overflow: hidden;
115
- position: relative;
116
- }
117
- .player-container .player-controls .title {
118
- font-weight: bold;
119
- height: 20px;
120
- line-height: 20px;
121
- overflow: hidden;
122
- text-overflow: ellipsis;
123
- white-space: nowrap;
124
- position: absolute;
125
- top: 0;
126
- left: 0;
127
- width: 100%;
128
- }
129
- .player-container .player-controls .subtitle {
130
- height: 20px;
131
- line-height: 20px;
132
- width: 100%;
133
- overflow: hidden;
134
- text-overflow: ellipsis;
135
- white-space: nowrap;
136
- position: absolute;
137
- top: 18px;
138
- left: 0;
139
- }
140
-
141
- /* src/playground.less */
142
- body {
143
- margin: 0;
144
- font-family:
145
- -apple-system,
146
- BlinkMacSystemFont,
147
- "Segoe UI",
148
- "Noto Sans",
149
- Helvetica,
150
- Arial,
151
- sans-serif,
152
- "Apple Color Emoji",
153
- "Segoe UI Emoji";
154
- font-size: 14px;
155
- }
156
- .playground-container {
157
- width: 100%;
158
- height: 100%;
159
- background-color: #F8F8F8;
160
- }
161
- .playground-container .ant-form {
162
- height: 100%;
163
- }
164
- .playground-container .playground-header {
165
- padding: 10px 10px 30px;
166
- }
167
- .playground-container .playground-left-panel {
168
- width: 100%;
169
- height: 100%;
170
- background-color: #FFF;
171
- display: flex;
172
- flex-direction: column;
173
- justify-content: space-between;
174
- overflow-y: auto !important;
175
- }
176
- .playground-container .playground-left-panel .ant-form {
177
- flex-grow: 1;
178
- display: flex;
179
- flex-direction: column;
180
- justify-content: center;
181
- }
182
- .playground-container .form-part {
183
- margin-bottom: 30px;
184
- padding: 0 20px;
185
- }
186
- .playground-container .form-part h3 {
187
- margin-top: 0;
188
- margin-bottom: 12px;
189
- font-size: 18px;
190
- }
191
- .playground-container .input-wrapper {
192
- box-sizing: border-box;
193
- }
194
- .playground-container .input-wrapper .main-side-console-input {
195
- position: relative;
196
- margin-top: 4px;
197
- }
198
- .playground-container .input-wrapper .ant-input {
199
- padding-bottom: 40px;
200
- }
201
- .playground-container .input-wrapper .ant-btn {
202
- position: absolute;
203
- bottom: 8px;
204
- right: 8px;
205
- }
206
- .playground-container .main-side-result {
207
- width: 100%;
208
- height: 100%;
209
- display: flex;
210
- flex-direction: column;
211
- justify-content: center;
212
- box-sizing: border-box;
213
- padding: 30px 20px;
214
- }
215
- .playground-container .main-side-result pre {
216
- display: block;
217
- word-wrap: break-word;
218
- white-space: pre-wrap;
219
- }
220
-
221
- /* src/component/logo.less */
222
- .logo img {
223
- height: 20px;
224
- line-height: 30px;
225
- vertical-align: baseline;
226
- vertical-align: -webkit-baseline-middle;
227
- }
228
-
229
- </style>
230
- <script>
231
- var e,t;e=this,t=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{Playground:function(){return oK},default:function(){return aK}});var t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,A,g,v,y,b,x,S,_,w,E,C,T,P,k,R,I,O,M,j,z,B=Object.create,F=Object.defineProperty,D=Object.defineProperties,L=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertyNames,G=Object.getOwnPropertySymbols,H=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,X=Math.pow,K=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t)=>{for(var n in t||(t={}))W.call(t,n)&&K(e,n,t[n]);if(G)for(var n of G(t))V.call(t,n)&&K(e,n,t[n]);return e},Q=(e,t)=>D(e,N(t)),Y=(e,t)=>{var n={};for(var r in e)W.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&G)for(var r of G(e))t.indexOf(r)<0&&V.call(e,r)&&(n[r]=e[r]);return n},Z=(e,t)=>function(){return e&&(t=(0,e[U(e)[0]])(e=0)),t},$=(e,t)=>function(){return t||(0,e[U(e)[0]])((t={exports:{}}).exports,t),t.exports},J=(e,t)=>{for(var n in t)F(e,n,{get:t[n],enumerable:!0})},ee=(e,t,n)=>(n=null!=e?B(H(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of U(t))W.call(e,i)||i===n||F(e,i,{get:()=>t[i],enumerable:!(r=L(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?n:F(n,"default",{value:e,enumerable:!0}),e)),te=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(t){i(t)}},a=e=>{try{s(n.throw(e))}catch(t){i(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())})),ne=$({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){!function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator;function A(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},v={transition:null},y={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},b={current:null},x={},S=null;function _(e){S=e}x.setExtraStackFrame=function(e){S=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";S&&(e+=S);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var w={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:v,ReactCurrentOwner:b};function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];T("warn",e,n)}function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];T("error",e,n)}function T(e,t,n){var r=w.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}w.ReactDebugCurrentFrame=x,w.ReactCurrentActQueue=y;var P={};function k(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+t;P[i]||(C("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),P[i]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){k(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){k(e,"replaceState")},enqueueSetState:function(e,t,n,r){k(e,"setState")}},I=Object.assign,O={};function M(e,t,n){this.props=e,this.context=t,this.refs=O,this.updater=n||R}Object.freeze(O),M.prototype.isReactComponent={},M.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},M.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var j={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},z=function(e,t){Object.defineProperty(M.prototype,e,{get:function(){E("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var B in j)j.hasOwnProperty(B)&&z(B,j[B]);function F(){}function D(e,t,n){this.props=e,this.context=t,this.refs=O,this.updater=n||R}F.prototype=M.prototype;var L=D.prototype=new F;L.constructor=D,I(L,M.prototype),L.isPureReactComponent=!0;var N=Array.isArray;function U(e){return N(e)}function G(e){return""+e}function H(e){if(function(e){try{return G(e),!1}catch(t){return!0}}(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),G(e)}function W(e){return e.displayName||"Context"}function V(e){if(null==e)return null;if("number"==typeof e.tag&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case i:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return W(e)+".Consumer";case s:return W(e._context)+".Provider";case u:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:V(e.type)||"Memo";case p:var n=e,h=n._payload,m=n._init;try{return V(m(h))}catch(A){return null}}return null}var X,K,q,Q=Object.prototype.hasOwnProperty,Y={key:!0,ref:!0,__self:!0,__source:!0};function Z(e){if(Q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function $(e){if(Q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}q={};var J=function(e,t,r,i,o,a,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ee(e,t,n){var r,i={},o=null,a=null,s=null,l=null;if(null!=t)for(r in Z(t)&&(a=t.ref,function(e){if("string"==typeof e.ref&&b.current&&e.__self&&b.current.stateNode!==e.__self){var t=V(b.current.type);q[t]||(C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),q[t]=!0)}}(t)),$(t)&&(H(t.key),o=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)Q.call(t,r)&&!Y.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),i.children=c}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===i[r]&&(i[r]=f[r])}if(o||a){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&function(e,t){var n=function(){X||(X=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(i,p),a&&function(e,t){var n=function(){K||(K=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(i,p)}return J(e,o,a,s,l,b.current,i)}function te(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,i,o=I({},e.props),a=e.key,s=e.ref,l=e._self,u=e._source,c=e._owner;if(null!=t)for(r in Z(t)&&(s=t.ref,c=b.current),$(t)&&(H(t.key),a=""+t.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)Q.call(t,r)&&!Y.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==i?o[r]=i[r]:o[r]=t[r]);var d=arguments.length-2;if(1===d)o.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];o.children=f}return J(e.type,a,s,l,u,c,o)}function ne(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var re,ie=!1,oe=/\/+/g;function ae(e){return e.replace(oe,"$&/")}function se(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(H(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function le(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c,d=!1;if(null===e)d=!0;else switch(s){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var f=e,p=a(f),h=""===o?"."+se(f,0):o;if(U(p)){var m="";null!=h&&(m=ae(h)+"/"),le(p,t,m,"",(function(e){return e}))}else null!=p&&(ne(p)&&(!p.key||f&&f.key===p.key||H(p.key),l=p,u=i+(!p.key||f&&f.key===p.key?"":ae(""+p.key)+"/")+h,p=J(l.type,u,l.ref,l._self,l._source,l._owner,l.props)),t.push(p));return 1}var g=0,v=""===o?".":o+":";if(U(e))for(var y=0;y<e.length;y++)g+=le(c=e[y],t,i,v+se(c,y),a);else{var b=A(e);if("function"==typeof b){var x=e;b===x.entries&&(ie||E("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ie=!0);for(var S,_=b.call(x),w=0;!(S=_.next()).done;)g+=le(c=S.value,t,i,v+se(c,w++),a)}else if("object"===s){var C=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(e).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}}return g}function ue(e,t,n){if(null==e)return e;var r=[],i=0;return le(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function ce(e){if(-1===e._status){var t=(0,e._result)();if(t.then((function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}}),(function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}})),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function de(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===o||e===c||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===u||e.$$typeof===re||void 0!==e.getModuleId)}function fe(){var e=g.current;return null===e&&C("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}re=Symbol.for("react.module.reference");var pe,he,me,Ae,ge,ve,ye,be=0;function xe(){}xe.__reactDisabledLog=!0;var Se,_e=w.ReactCurrentDispatcher;function we(e,t,n){if(void 0===Se)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);Se=r&&r[1]||""}return"\n"+Se+e}var Ee,Ce=!1,Te="function"==typeof WeakMap?WeakMap:Map;function Pe(e,t){if(!e||Ce)return"";var n,r=Ee.get(e);if(void 0!==r)return r;Ce=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=_e.current,_e.current=null,function(){if(0===be){pe=console.log,he=console.info,me=console.warn,Ae=console.error,ge=console.group,ve=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}be++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(h){n=h}Reflect.construct(e,[],a)}else{try{a.call()}catch(h){n=h}e.call(a.prototype)}}else{try{throw Error()}catch(h){n=h}e()}}catch(m){if(m&&n&&"string"==typeof m.stack){for(var s=m.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ee.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{Ce=!1,_e.current=i,function(){if(0==--be){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:pe}),info:I({},e,{value:he}),warn:I({},e,{value:me}),error:I({},e,{value:Ae}),group:I({},e,{value:ge}),groupCollapsed:I({},e,{value:ve}),groupEnd:I({},e,{value:ye})})}be<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var f=e?e.displayName||e.name:"",p=f?we(f):"";return"function"==typeof e&&Ee.set(e,p),p}function ke(e,t,n){if(null==e)return"";if("function"==typeof e)return Pe(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return we(e);switch(e){case c:return we("Suspense");case d:return we("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return Pe(e.render,!1);case f:return ke(e.type,t,n);case p:var i=e,o=i._payload,a=i._init;try{return ke(a(o),t,n)}catch(s){}}return""}Ee=new Te;var Re,Ie={},Oe=w.ReactDebugCurrentFrame;function Me(e){if(e){var t=e._owner,n=ke(e.type,e._source,t?t.type:null);Oe.setExtraStackFrame(n)}else Oe.setExtraStackFrame(null)}function je(e){if(e){var t=e._owner;_(ke(e.type,e._source,t?t.type:null))}else _(null)}function ze(){if(b.current){var e=V(b.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Re=!1;var Be={};function Fe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ze();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Be[n]){Be[n]=!0;var r="";e&&e._owner&&e._owner!==b.current&&(r=" It was passed a child from "+V(e._owner.type)+"."),je(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),je(null)}}}function De(e,t){if("object"==typeof e)if(U(e))for(var n=0;n<e.length;n++){var r=e[n];ne(r)&&Fe(r,t)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var i=A(e);if("function"==typeof i&&i!==e.entries)for(var o,a=i.call(e);!(o=a.next()).done;)ne(o.value)&&Fe(o.value,t)}}function Le(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=V(n);!function(e,t,n,r,i){var o=Function.call.bind(Q);for(var a in e)if(o(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(u){s=u}!s||s instanceof Error||(Me(i),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),Me(null)),s instanceof Error&&!(s.message in Ie)&&(Ie[s.message]=!0,Me(i),C("Failed %s type: %s",n,s.message),Me(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Re||(Re=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ne(e,t,r){var o,a,s=de(e);if(!s){var l="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var u,c=null!=(o=t)&&void 0!==(a=o.__source)?"\n\nCheck your code at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+".":"";l+=c||ze(),null===e?u="null":U(e)?u="array":void 0!==e&&e.$$typeof===n?(u="<"+(V(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):u=typeof e,C("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,l)}var d=ee.apply(this,arguments);if(null==d)return d;if(s)for(var f=2;f<arguments.length;f++)De(arguments[f],e);return e===i?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){je(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),je(null);break}}null!==e.ref&&(je(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),je(null))}(d):Le(d),d}var Ue=!1,Ge=!1,He=null,We=0,Ve=!1;function Xe(e){e!==We-1&&C("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),We=e}function Ke(e,n,r){var i=y.current;if(null!==i)try{Qe(i),function(e){if(null===He)try{var n=("require"+Math.random()).slice(0,7),r=t&&t[n];He=r.call(t,"timers").setImmediate}catch(i){He=function(e){!1===Ge&&(Ge=!0,"undefined"==typeof MessageChannel&&C("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}He(e)}((function(){0===i.length?(y.current=null,n(e)):Ke(e,n,r)}))}catch(o){r(o)}else n(e)}var qe=!1;function Qe(e){if(!qe){qe=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(r){throw e=e.slice(t+1),r}finally{qe=!1}}}var Ye=Ne,Ze=function(e,t,n){for(var r=te.apply(this,arguments),i=2;i<arguments.length;i++)De(arguments[i],r.type);return Le(r),r},$e=function(e){var t=Ne.bind(null,e);return t.type=e,Ue||(Ue=!0,E("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return E("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Je={map:ue,forEach:function(e,t,n){ue(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return ue(e,(function(){t++})),t},toArray:function(e){return ue(e,(function(e){return e}))||[]},only:function(e){if(!ne(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};e.Children=Je,e.Component=M,e.Fragment=i,e.Profiler=a,e.PureComponent=D,e.StrictMode=o,e.Suspense=c,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w,e.cloneElement=Ze,e.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,i=!1,o={$$typeof:l,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return r||(r=!0,C("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,C("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){i||(E("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),i=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},e.createElement=Ye,e.createFactory=$e,e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){null!=e&&e.$$typeof===f?C("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||C("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:u,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},e.isValidElement=ne,e.lazy=function(e){var t,n,r={$$typeof:p,_payload:{_status:-1,_result:e},_init:ce};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){C("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){C("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},e.memo=function(e,t){de(e)||C("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:f,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},e.startTransition=function(e,t){var n=v.transition;v.transition={};var r=v.transition;v.transition._updatedFibers=new Set;try{e()}finally{v.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&E("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},e.unstable_act=function(e){var t=We;We++,null===y.current&&(y.current=[]);var n,r=y.isBatchingLegacy;try{if(y.isBatchingLegacy=!0,n=e(),!r&&y.didScheduleLegacyUpdate){var i=y.current;null!==i&&(y.didScheduleLegacyUpdate=!1,Qe(i))}}catch(c){throw Xe(t),c}finally{y.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var o=n,a=!1,s={then:function(e,n){a=!0,o.then((function(r){Xe(t),0===We?Ke(r,e,n):e(r)}),(function(e){Xe(t),n(e)}))}};return Ve||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){a||(Ve=!0,C("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),s}var l=n;if(Xe(t),0===We){var u=y.current;return null!==u&&(Qe(u),y.current=null),{then:function(e,t){null===y.current?(y.current=[],Ke(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}},e.useCallback=function(e,t){return fe().useCallback(e,t)},e.useContext=function(e){var t=fe();if(void 0!==e._context){var n=e._context;n.Consumer===e?C("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&C("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},e.useDebugValue=function(e,t){return fe().useDebugValue(e,t)},e.useDeferredValue=function(e){return fe().useDeferredValue(e)},e.useEffect=function(e,t){return fe().useEffect(e,t)},e.useId=function(){return fe().useId()},e.useImperativeHandle=function(e,t,n){return fe().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return fe().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return fe().useLayoutEffect(e,t)},e.useMemo=function(e,t){return fe().useMemo(e,t)},e.useReducer=function(e,t,n){return fe().useReducer(e,t,n)},e.useRef=function(e){return fe().useRef(e)},e.useState=function(e){return fe().useState(e)},e.useSyncExternalStore=function(e,t,n){return fe().useSyncExternalStore(e,t,n)},e.useTransition=function(){return fe().useTransition()},e.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),re=$({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=ne()}}),ie=$({"../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js"(e,t){!function(){var e={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var r="";for(var o in t)e.call(t,o)&&t[o]&&(r=i(r,o));return r}function i(e,t){return t?e?e+" "+t:e+t:e}void 0!==t&&t.exports?(n.default=n,t.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return n})):window.classNames=n}()}}),oe=$({"../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.development.js"(e){!function(){var t,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function A(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var m=e.type;switch(m){case i:case a:case o:case d:case f:return m;default:var A=m&&m.$$typeof;switch(A){case u:case l:case c:case h:case p:case s:return A;default:return t}}case r:return t}}}t=Symbol.for("react.module.reference");var g=l,v=s,y=n,b=c,x=i,S=h,_=p,w=r,E=a,C=o,T=d,P=f,k=!1,R=!1;e.ContextConsumer=g,e.ContextProvider=v,e.Element=y,e.ForwardRef=b,e.Fragment=x,e.Lazy=S,e.Memo=_,e.Portal=w,e.Profiler=E,e.StrictMode=C,e.Suspense=T,e.SuspenseList=P,e.isAsyncMode=function(e){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},e.isConcurrentMode=function(e){return R||(R=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},e.isContextConsumer=function(e){return A(e)===l},e.isContextProvider=function(e){return A(e)===s},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return A(e)===c},e.isFragment=function(e){return A(e)===i},e.isLazy=function(e){return A(e)===h},e.isMemo=function(e){return A(e)===p},e.isPortal=function(e){return A(e)===r},e.isProfiler=function(e){return A(e)===a},e.isStrictMode=function(e){return A(e)===o},e.isSuspense=function(e){return A(e)===d},e.isSuspenseList=function(e){return A(e)===f},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===o||e===d||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===t||void 0!==e.getModuleId)},e.typeOf=A}()}}),ae=$({"../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/index.js"(e,t){t.exports=oe()}}),se=$({"../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(e){!function(){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,A=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case u:case c:case i:case a:case o:case f:return p;default:var A=p&&p.$$typeof;switch(A){case l:case d:case m:case h:case s:return A;default:return t}}case r:return t}}}var x=u,S=c,_=l,w=s,E=n,C=d,T=i,P=m,k=h,R=r,I=a,O=o,M=f,j=!1;function z(e){return b(e)===c}e.AsyncMode=x,e.ConcurrentMode=S,e.ContextConsumer=_,e.ContextProvider=w,e.Element=E,e.ForwardRef=C,e.Fragment=T,e.Lazy=P,e.Memo=k,e.Portal=R,e.Profiler=I,e.StrictMode=O,e.Suspense=M,e.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(e)||b(e)===u},e.isConcurrentMode=z,e.isContextConsumer=function(e){return b(e)===l},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===m},e.isMemo=function(e){return b(e)===h},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===a},e.isStrictMode=function(e){return b(e)===o},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===a||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===A)},e.typeOf=b}()}}),le=$({"../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js"(e,t){t.exports=se()}}),ue=$({"../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js"(e,t){var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))r.call(o,u)&&(s[u]=o[u]);if(n){a=n(o);for(var c=0;c<a.length;c++)i.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}}}),ce=$({"../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js"(e,t){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}),de=$({"../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js"(e,t){t.exports=Function.call.bind(Object.prototype.hasOwnProperty)}}),fe=$({"../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js"(e,t){var n,r,i,o=function(){};function a(e,t,a,s,l){for(var u in e)if(i(e,u)){var c;try{if("function"!=typeof e[u]){var d=Error((s||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=e[u](t,u,s,a,null,n)}catch(p){c=p}if(!c||c instanceof Error||o((s||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in r)){r[c.message]=!0;var f=l?l():"";o("Failed "+a+" type: "+c.message+(null!=f?f:""))}}}n=ce(),r={},i=de(),o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(n){}},a.resetWarningCache=function(){r={}},t.exports=a}}),pe=$({"../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js"(e,t){var n=le(),r=ue(),i=ce(),o=de(),a=fe(),s=function(){};function l(){return null}s=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(n){}},t.exports=function(e,t){var u="function"==typeof Symbol&&Symbol.iterator,c="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(l),arrayOf:function(e){return h((function(t,n,r,o,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new p("Invalid "+o+" `"+a+"` of type `"+v(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,r,o,a+"["+l+"]",i);if(u instanceof Error)return u}return null}))},element:h((function(t,n,r,i,o){var a=t[n];return e(a)?null:new p("Invalid "+i+" `"+o+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:h((function(e,t,r,i,o){var a=e[t];return n.isValidElementType(a)?null:new p("Invalid "+i+" `"+o+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||c;return new p("Invalid "+i+" `"+o+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:c)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,n,r,i){return g(e[t])?null:new p("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,n,r,a,s){if("function"!=typeof e)return new p("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[n],u=v(l);if("object"!==u)return new p("Invalid "+a+" `"+s+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var c in l)if(o(l,c)){var d=e(l,c,r,a,s+"."+c,i);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new p("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})):(s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),l)},oneOfType:function(e){if(!Array.isArray(e))return s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+b(n)+" at index "+t+"."),l}return h((function(t,n,r,a,s){for(var l=[],u=0;u<e.length;u++){var c=(0,e[u])(t,n,r,a,s,i);if(null==c)return null;c.data&&o(c.data,"expectedType")&&l.push(c.data.expectedType)}return new p("Invalid "+a+" `"+s+"` supplied to `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,n,r,o,a){var s=t[n],l=v(s);if("object"!==l)return new p("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!=typeof c)return A(r,o,a,u,y(c));var d=c(s,u,r,o,a+"."+u,i);if(d)return d}return null}))},exact:function(e){return h((function(t,n,a,s,l){var u=t[n],c=v(u);if("object"!==c)return new p("Invalid "+s+" `"+l+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var d=r({},t[n],e);for(var f in d){var h=e[f];if(o(e,f)&&"function"!=typeof h)return A(a,s,l,f,y(h));if(!h)return new p("Invalid "+s+" `"+l+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(u,f,a,s,l+"."+f,i);if(m)return m}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){var n={},r=0;function o(o,a,l,u,d,f,h){if(u=u||c,f=f||l,h!==i){if(t){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("undefined"!=typeof console){var A=u+":"+l;!n[A]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[A]=!0,r++)}}return null==a[l]?o?null===a[l]?new p("The "+d+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new p("The "+d+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,l,u,d,f)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return h((function(t,n,r,i,o,a){var s=t[n];return v(s)!==e?new p("Invalid "+i+" `"+o+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function A(e,t,n,r,i){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||e(t))return!0;var n=function(e){var t=e&&(u&&e[u]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!g(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d}}}),he=$({"../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js"(e,t){var n;n=le(),t.exports=pe()(n.isElement,!0)}}),me=$({"../../node_modules/.pnpm/react-side-effect@2.1.2_react@18.2.0/node_modules/react-side-effect/lib/index.js"(e,t){var n,r=re(),i=(n=r)&&"object"==typeof n&&"default"in n?n.default:n;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(s){if("function"!=typeof s)throw new Error("Expected WrappedComponent to be a React component.");var l,u=[];function c(){l=e(u.map((function(e){return e.props}))),d.canUseDOM?t(l):n&&(l=n(l))}var d=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.peek=function(){return l},r.rewind=function(){if(r.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,u=[],e};var o=r.prototype;return o.UNSAFE_componentWillMount=function(){u.push(this),c()},o.componentDidUpdate=function(){c()},o.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),c()},o.render=function(){return i.createElement(s,this.props)},r}(r.PureComponent);return o(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(s)+")"),o(d,"canUseDOM",a),d}}}}),Ae=$({"../../node_modules/.pnpm/react-fast-compare@3.2.2/node_modules/react-fast-compare/index.js"(e,t){var n="undefined"!=typeof Element,r="function"==typeof Map,i="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=t.length)return!1;for(l=s;0!=l--;)if(!a(e[l],t[l]))return!1;return!0}if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!t.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!a(l.value[1],t.get(l.value[0])))return!1;return!0}if(i&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!t.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((s=e.length)!=t.length)return!1;for(l=s;0!=l--;)if(e[l]!==t[l])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(t,u[l]))return!1;if(n&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!a(e[u[l]],t[u[l]]))return!1;return!0}return e!=e&&t!=t}t.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}}}),ge=$({"../../node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.development.js"(e){!function(){function t(e,t){var n=e.length;e.push(t),function(e,t,n){for(var r=n;r>0;){var o=r-1>>>1,a=e[o];if(!(i(a,t)>0))return;e[o]=t,e[r]=a,r=o}}(e,t,n)}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();return n!==t&&(e[0]=n,function(e,t,n){for(var r=n,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(i(l,t)<0)u<o&&i(c,l)<0?(e[r]=c,e[u]=t,r=u):(e[r]=l,e[s]=t,r=s);else{if(!(u<o&&i(c,t)<0))return;e[r]=c,e[u]=t,r=u}}}(e,n,0)),t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error),"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,A="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))return;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function b(e){if(m=!1,y(e),!h)if(null!==n(l))h=!0,M(x);else{var t=n(u);null!==t&&j(b,t.startTime-e)}}function x(e,t){h=!1,m&&(m=!1,z()),p=!0;var n=f;try{return S(e,t)}finally{d=null,f=n,p=!1}}function S(t,i){var o=i;for(y(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!P());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),y(o)}else r(l);d=n(l)}if(null!==d)return!0;var c=n(u);return null!==c&&j(b,c.startTime-o),!1}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _=!1,w=null,E=-1,C=5,T=-1;function P(){return!(e.unstable_now()-T<C)}var k,R=function(){if(null!==w){var t=e.unstable_now();T=t;var n=!0;try{n=w(!0,t)}finally{n?k():(_=!1,w=null)}}else _=!1};if("function"==typeof v)k=function(){v(R)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,O=I.port2;I.port1.onmessage=R,k=function(){O.postMessage(null)}}else k=function(){A(R,0)};function M(e){w=e,_||(_=!0,k())}function j(t,n){E=A((function(){t(e.unstable_now())}),n)}function z(){g(E),E=-1}var B=function(){};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,M(x))},e.unstable_forceFrameRate=function(e){e<0||e>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=e>0?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){var t;switch(f){case 1:case 2:case 3:t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=B,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,o){var a,s,d=e.unstable_now();if("object"==typeof o&&null!==o){var f=o.delay;a="number"==typeof f&&f>0?d+f:d}else a=d;switch(r){case 1:s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}var A=a+s,g={id:c++,callback:i,priorityLevel:r,startTime:a,expirationTime:A,sortIndex:-1};return a>d?(g.sortIndex=a,t(u,g),null===n(l)&&g===n(u)&&(m?z():m=!0,j(b,a-d))):(g.sortIndex=A,t(l,g),h||p||(h=!0,M(x))),g},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),ve=$({"../../node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/index.js"(e,t){t.exports=ge()}}),ye=$({"../../node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.development.js"(e){!function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=re(),n=ve(),r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function o(e){if(!i){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];s("warn",e,n)}}function a(e){if(!i){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];s("error",e,n)}}function s(e,t,n){var i=r.ReactDebugCurrentFrame.getStackAddendum();""!==i&&(t+="%s",n=n.concat([i]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}var l=10,u=11,c=12,d=13,f=14,p=15,h=17,m=18,A=19,g=21,v=22,y=23,b=!1,x=!1,S=new Set,_={},w={};function E(e,t){C(e,t),C(e+"Capture",t)}function C(e,t){_[e]&&a("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),_[e]=t;var n=e.toLowerCase();w[n]=e,"onDoubleClick"===e&&(w.ondblclick=e);for(var r=0;r<t.length;r++)S.add(t[r])}var T=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),P=Object.prototype.hasOwnProperty;function k(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function R(e){try{return I(e),!1}catch(t){return!0}}function I(e){return""+e}function O(e,t){if(R(e))return a("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,k(e)),I(e)}function M(e){if(R(e))return a("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",k(e)),I(e)}var j=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",z=j+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",B=new RegExp("^["+j+"]["+z+"]*$"),F={},D={};function L(e){return!!P.call(D,e)||!P.call(F,e)&&(B.test(e)?(D[e]=!0,!0):(F[e]=!0,a("Invalid attribute name: `%s`",e),!1))}function N(e,t,n){return null!==t?0===t.type:!n&&e.length>2&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])}function U(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;var i=e.toLowerCase().slice(0,5);return"data-"!==i&&"aria-"!==i;default:return!1}}function G(e,t,n,r){if(null==t)return!0;if(U(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}return!1}function H(e){return V.hasOwnProperty(e)?V[e]:null}function W(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var V={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){V[e]=new W(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0],n=e[1];V[t]=new W(t,1,!1,n,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){V[e]=new W(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){V[e]=new W(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){V[e]=new W(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){V[e]=new W(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){V[e]=new W(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){V[e]=new W(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){V[e]=new W(e,5,!1,e.toLowerCase(),null,!1,!1)}));var X=/[\-\:]([a-z])/g,K=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(X,K);V[t]=new W(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(X,K);V[t]=new W(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(X,K);V[t]=new W(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){V[e]=new W(e,1,!1,e.toLowerCase(),null,!1,!1)})),V.xlinkHref=new W("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){V[e]=new W(e,1,!1,e.toLowerCase(),null,!0,!0)}));var q=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Q=!1;function Y(e){!Q&&q.test(e)&&(Q=!0,a("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Z(e,t,n,r){if(r.mustUseProperty)return e[r.propertyName];O(n,t),r.sanitizeURL&&Y(""+n);var i=r.attributeName,o=null;if(4===r.type){if(e.hasAttribute(i)){var a=e.getAttribute(i);return""===a||(G(t,n,r,!1)?a:a===""+n?n:a)}}else if(e.hasAttribute(i)){if(G(t,n,r,!1))return e.getAttribute(i);if(3===r.type)return n;o=e.getAttribute(i)}return G(t,n,r,!1)?null===o?n:o:o===""+n?n:o}function $(e,t,n,r){if(L(t)){if(!e.hasAttribute(t))return void 0===n?void 0:null;var i=e.getAttribute(t);return O(n,t),i===""+n?n:i}}function J(e,t,n,r){var i=H(t);if(!N(t,i,r))if(G(t,n,i,r)&&(n=null),r||null===i){if(L(t)){var o=t;null===n?e.removeAttribute(o):(O(n,t),e.setAttribute(o,""+n))}}else if(i.mustUseProperty){var a=i.propertyName;if(null===n){var s=i.type;e[a]=3!==s&&""}else e[a]=n}else{var l=i.attributeName,u=i.attributeNamespace;if(null===n)e.removeAttribute(l);else{var c,d=i.type;3===d||4===d&&!0===n?c="":(O(n,l),c=""+n,i.sanitizeURL&&Y(c.toString())),u?e.setAttributeNS(u,l,c):e.setAttribute(l,c)}}}var ee=Symbol.for("react.element"),te=Symbol.for("react.portal"),ne=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),ae=Symbol.for("react.provider"),se=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),pe=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen")),he=(Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker"),Symbol.iterator);function me(e){if(null===e||"object"!=typeof e)return null;var t=he&&e[he]||e["@@iterator"];return"function"==typeof t?t:null}var Ae,ge,ye,be,xe,Se,_e,we=Object.assign,Ee=0;function Ce(){}Ce.__reactDisabledLog=!0;var Te,Pe=r.ReactCurrentDispatcher;function ke(e,t,n){if(void 0===Te)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);Te=r&&r[1]||""}return"\n"+Te+e}var Re,Ie=!1,Oe="function"==typeof WeakMap?WeakMap:Map;function Me(e,t){if(!e||Ie)return"";var n,r=Re.get(e);if(void 0!==r)return r;Ie=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=Pe.current,Pe.current=null,function(){if(0===Ee){Ae=console.log,ge=console.info,ye=console.warn,be=console.error,xe=console.group,Se=console.groupCollapsed,_e=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ee++}();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(s,[])}catch(m){n=m}Reflect.construct(e,[],s)}else{try{s.call()}catch(m){n=m}e.call(s.prototype)}}else{try{throw Error()}catch(m){n=m}e()}}catch(A){if(A&&n&&"string"==typeof A.stack){for(var l=A.stack.split("\n"),u=n.stack.split("\n"),c=l.length-1,d=u.length-1;c>=1&&d>=0&&l[c]!==u[d];)d--;for(;c>=1&&d>=0;c--,d--)if(l[c]!==u[d]){if(1!==c||1!==d)do{if(c--,--d<0||l[c]!==u[d]){var f="\n"+l[c].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&Re.set(e,f),f}}while(c>=1&&d>=0);break}}}finally{Ie=!1,Pe.current=i,function(){if(0==--Ee){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:we({},e,{value:Ae}),info:we({},e,{value:ge}),warn:we({},e,{value:ye}),error:we({},e,{value:be}),group:we({},e,{value:xe}),groupCollapsed:we({},e,{value:Se}),groupEnd:we({},e,{value:_e})})}Ee<0&&a("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var p=e?e.displayName||e.name:"",h=p?ke(p):"";return"function"==typeof e&&Re.set(e,h),h}function je(e,t,n){return Me(e,!1)}function ze(e,t,n){if(null==e)return"";if("function"==typeof e)return Me(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return ke(e);switch(e){case ue:return ke("Suspense");case ce:return ke("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case le:return je(e.render);case de:return ze(e.type,t,n);case fe:var i=e,o=i._payload,a=i._init;try{return ze(a(o),t,n)}catch(s){}}return""}function Be(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case 5:return ke(e.type);case 16:return ke("Lazy");case d:return ke("Suspense");case A:return ke("SuspenseList");case 0:case 2:case p:return je(e.type);case u:return je(e.type.render);case 1:return Me(e.type,!0);default:return""}}function Fe(e){try{var t="",n=e;do{t+=Be(n),n=n.return}while(n);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}function De(e){return e.displayName||"Context"}function Le(e){if(null==e)return null;if("number"==typeof e.tag&&a("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case ie:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case se:return De(e)+".Consumer";case ae:return De(e._context)+".Provider";case le:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case de:var t=e.displayName||null;return null!==t?t:Le(e.type)||"Memo";case fe:var n=e,r=n._payload,i=n._init;try{return Le(i(r))}catch(o){return null}}return null}function Ne(e){return e.displayName||"Context"}function Ue(e){var t,n,r,i,o=e.tag,a=e.type;switch(o){case 24:return"Cache";case 9:return Ne(a)+".Consumer";case l:return Ne(a._context)+".Provider";case 18:return"DehydratedFragment";case u:return t=a,n=a.render,r="ForwardRef",i=n.displayName||n.name||"",t.displayName||(""!==i?r+"("+i+")":r);case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Le(a);case 8:return a===ie?"StrictMode":"Mode";case v:return"Offscreen";case c:return"Profiler";case g:return"Scope";case d:return"Suspense";case A:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case h:case 2:case f:case p:if("function"==typeof a)return a.displayName||a.name||null;if("string"==typeof a)return a}return null}Re=new Oe;var Ge=r.ReactDebugCurrentFrame,He=null,We=!1;function Ve(){if(null===He)return null;var e=He._debugOwner;return null!=e?Ue(e):null}function Xe(){return null===He?"":Fe(He)}function Ke(){Ge.getCurrentStack=null,He=null,We=!1}function qe(e){Ge.getCurrentStack=null===e?null:Xe,He=e,We=!1}function Qe(e){We=e}function Ye(e){return""+e}function Ze(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return M(e),e;default:return""}}var $e={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Je(e,t){$e[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||a("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||null==t.checked||a("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function et(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function tt(e){return e._valueTracker}function nt(e){tt(e)||(e._valueTracker=function(e){var t=et(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);M(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){M(e),r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var a={getValue:function(){return r},setValue:function(e){M(e),r=""+e},stopTracking:function(){!function(e){e._valueTracker=null}(e),delete e[t]}};return a}}(e))}function rt(e){if(!e)return!1;var t=tt(e);if(!t)return!0;var n=t.getValue(),r=function(e){var t="";return e?t=et(e)?e.checked?"true":"false":e.value:t}(e);return r!==n&&(t.setValue(r),!0)}function it(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var ot=!1,at=!1,st=!1,lt=!1;function ut(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}function ct(e,t){var n=e,r=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:n._wrapperState.initialChecked})}function dt(e,t){Je(0,t),void 0===t.checked||void 0===t.defaultChecked||at||(a("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ve()||"A component",t.type),at=!0),void 0===t.value||void 0===t.defaultValue||ot||(a("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ve()||"A component",t.type),ot=!0);var n=e,r=null==t.defaultValue?"":t.defaultValue;n._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:Ze(null!=t.value?t.value:r),controlled:ut(t)}}function ft(e,t){var n=e,r=t.checked;null!=r&&J(n,"checked",r,!1)}function pt(e,t){var n=e,r=ut(t);n._wrapperState.controlled||!r||lt||(a("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),lt=!0),!n._wrapperState.controlled||r||st||(a("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),st=!0),ft(e,t);var i=Ze(t.value),o=t.type;if(null!=i)"number"===o?(0===i&&""===n.value||n.value!=i)&&(n.value=Ye(i)):n.value!==Ye(i)&&(n.value=Ye(i));else if("submit"===o||"reset"===o)return void n.removeAttribute("value");t.hasOwnProperty("value")?At(n,t.type,i):t.hasOwnProperty("defaultValue")&&At(n,t.type,Ze(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(n.defaultChecked=!!t.defaultChecked)}function ht(e,t,n){var r=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;var o=Ye(r._wrapperState.initialValue);n||o!==r.value&&(r.value=o),r.defaultValue=o}var a=r.name;""!==a&&(r.name=""),r.defaultChecked=!r.defaultChecked,r.defaultChecked=!!r._wrapperState.initialChecked,""!==a&&(r.name=a)}function mt(e,t){var n=e;pt(n,t),function(e,t){var n=t.name;if("radio"===t.type&&null!=n){for(var r=e;r.parentNode;)r=r.parentNode;O(n,"name");for(var i=r.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),o=0;o<i.length;o++){var a=i[o];if(a!==e&&a.form===e.form){var s=Gu(a);if(!s)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");rt(a),pt(a,s)}}}}(n,t)}function At(e,t,n){"number"===t&&it(e.ownerDocument)===e||(null==n?e.defaultValue=Ye(e._wrapperState.initialValue):e.defaultValue!==Ye(n)&&(e.defaultValue=Ye(n)))}var gt=!1,vt=!1,yt=!1;function bt(e,n){null==n.value&&("object"==typeof n.children&&null!==n.children?t.Children.forEach(n.children,(function(e){null!=e&&"string"!=typeof e&&"number"!=typeof e&&(vt||(vt=!0,a("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))})):null!=n.dangerouslySetInnerHTML&&(yt||(yt=!0,a("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),null==n.selected||gt||(a("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),gt=!0)}var xt,St=Array.isArray;function _t(e){return St(e)}function wt(){var e=Ve();return e?"\n\nCheck the render method of `"+e+"`.":""}xt=!1;var Et=["value","defaultValue"];function Ct(e,t,n,r){var i=e.options;if(t){for(var o=n,a={},s=0;s<o.length;s++)a["$"+o[s]]=!0;for(var l=0;l<i.length;l++){var u=a.hasOwnProperty("$"+i[l].value);i[l].selected!==u&&(i[l].selected=u),u&&r&&(i[l].defaultSelected=!0)}}else{for(var c=Ye(Ze(n)),d=null,f=0;f<i.length;f++){if(i[f].value===c)return i[f].selected=!0,void(r&&(i[f].defaultSelected=!0));null!==d||i[f].disabled||(d=i[f])}null!==d&&(d.selected=!0)}}function Tt(e,t){return we({},t,{value:void 0})}function Pt(e,t){var n=e;!function(e){Je(0,e);for(var t=0;t<Et.length;t++){var n=Et[t];if(null!=e[n]){var r=_t(e[n]);e.multiple&&!r?a("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,wt()):!e.multiple&&r&&a("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,wt())}}}(t),n._wrapperState={wasMultiple:!!t.multiple},void 0===t.value||void 0===t.defaultValue||xt||(a("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),xt=!0)}var kt=!1;function Rt(e,t){var n=e;if(null!=t.dangerouslySetInnerHTML)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");return we({},t,{value:void 0,defaultValue:void 0,children:Ye(n._wrapperState.initialValue)})}function It(e,t){var n=e;Je(0,t),void 0===t.value||void 0===t.defaultValue||kt||(a("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ve()||"A component"),kt=!0);var r=t.value;if(null==r){var i=t.children,o=t.defaultValue;if(null!=i){if(a("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),null!=o)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(_t(i)){if(i.length>1)throw new Error("<textarea> can only have at most one child.");i=i[0]}o=i}null==o&&(o=""),r=o}n._wrapperState={initialValue:Ze(r)}}function Ot(e,t){var n=e,r=Ze(t.value),i=Ze(t.defaultValue);if(null!=r){var o=Ye(r);o!==n.value&&(n.value=o),null==t.defaultValue&&n.defaultValue!==o&&(n.defaultValue=o)}null!=i&&(n.defaultValue=Ye(i))}function Mt(e,t){var n=e,r=n.textContent;r===n._wrapperState.initialValue&&""!==r&&null!==r&&(n.value=r)}var jt="http://www.w3.org/1999/xhtml",zt="http://www.w3.org/2000/svg";function Bt(e){switch(e){case"svg":return zt;case"math":return"http://www.w3.org/1998/Math/MathML";default:return jt}}function Ft(e,t){return null==e||e===jt?Bt(t):e===zt&&"foreignObject"===t?jt:e}var Dt,Lt,Nt=(Lt=function(e,t){if(e.namespaceURI!==zt||"innerHTML"in e)e.innerHTML=t;else{(Dt=Dt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Dt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Lt(e,t,n,r)}))}:Lt),Ut=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t},Gt={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Ht={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wt=["Webkit","ms","Moz","O"];function Vt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ht.hasOwnProperty(e)&&Ht[e]?(function(e,t){R(e)&&(a("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,k(e)),I(e))}(t,e),(""+t).trim()):t+"px"}Object.keys(Ht).forEach((function(e){Wt.forEach((function(t){Ht[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=Ht[e]}))}));var Xt=/([A-Z])/g,Kt=/^ms-/,qt=/^(?:webkit|moz|o)[A-Z]/,Qt=/^-ms-/,Yt=/-(.)/g,Zt=/;\s*$/,$t={},Jt={},en=!1,tn=!1,nn=function(e){$t.hasOwnProperty(e)&&$t[e]||($t[e]=!0,a("Unsupported style property %s. Did you mean %s?",e,e.replace(Qt,"ms-").replace(Yt,(function(e,t){return t.toUpperCase()}))))},rn=function(e,t){e.indexOf("-")>-1?nn(e):qt.test(e)?function(e){$t.hasOwnProperty(e)&&$t[e]||($t[e]=!0,a("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))}(e):Zt.test(t)&&function(e,t){Jt.hasOwnProperty(t)&&Jt[t]||(Jt[t]=!0,a('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,t.replace(Zt,"")))}(e,t),"number"==typeof t&&(isNaN(t)?function(e){en||(en=!0,a("`NaN` is an invalid value for the `%s` css style property.",e))}(e):isFinite(t)||function(e){tn||(tn=!0,a("`Infinity` is an invalid value for the `%s` css style property.",e))}(e))};function on(e){var t="",n="";for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(null!=i){var o=0===r.indexOf("--");t+=n+(o?r:r.replace(Xt,"-$1").toLowerCase().replace(Kt,"-ms-"))+":",t+=Vt(r,i,o),n=";"}}return t||null}function an(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=0===r.indexOf("--");i||rn(r,t[r]);var o=Vt(r,t[r],i);"float"===r&&(r="cssFloat"),i?n.setProperty(r,o):n[r]=o}}function sn(e){var t={};for(var n in e)for(var r=Gt[n]||[n],i=0;i<r.length;i++)t[r[i]]=n;return t}var ln=we({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function un(e,t){if(t){if(ln[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&null!=t.children&&a("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),null!=t.style&&"object"!=typeof t.style)throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function cn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},fn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},pn={},hn=new RegExp("^(aria)-["+z+"]*$"),mn=new RegExp("^(aria)[A-Z]["+z+"]*$");function An(e,t){if(P.call(pn,t)&&pn[t])return!0;if(mn.test(t)){var n="aria-"+t.slice(4).toLowerCase(),r=fn.hasOwnProperty(n)?n:null;if(null==r)return a("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),pn[t]=!0,!0;if(t!==r)return a("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,r),pn[t]=!0,!0}if(hn.test(t)){var i=t.toLowerCase(),o=fn.hasOwnProperty(i)?i:null;if(null==o)return pn[t]=!0,!1;if(t!==o)return a("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,o),pn[t]=!0,!0}return!0}function gn(e,t){cn(e,t)||function(e,t){var n=[];for(var r in t)An(0,r)||n.push(r);var i=n.map((function(e){return"`"+e+"`"})).join(", ");1===n.length?a("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&a("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}(e,t)}var vn,yn=!1,bn={},xn=/^on./,Sn=/^on[^A-Z]/,_n=new RegExp("^(aria)-["+z+"]*$"),wn=new RegExp("^(aria)[A-Z]["+z+"]*$");function En(e,t,n){cn(e,t)||function(e,t,n){var r=[];for(var i in t)vn(0,i,t[i],n)||r.push(i);var o=r.map((function(e){return"`"+e+"`"})).join(", ");1===r.length?a("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",o,e):r.length>1&&a("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",o,e)}(e,t,n)}vn=function(e,t,n,r){if(P.call(bn,t)&&bn[t])return!0;var i=t.toLowerCase();if("onfocusin"===i||"onfocusout"===i)return a("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),bn[t]=!0,!0;if(null!=r){var o=r.registrationNameDependencies,s=r.possibleRegistrationNames;if(o.hasOwnProperty(t))return!0;var l=s.hasOwnProperty(i)?s[i]:null;if(null!=l)return a("Invalid event handler property `%s`. Did you mean `%s`?",t,l),bn[t]=!0,!0;if(xn.test(t))return a("Unknown event handler property `%s`. It will be ignored.",t),bn[t]=!0,!0}else if(xn.test(t))return Sn.test(t)&&a("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),bn[t]=!0,!0;if(_n.test(t)||wn.test(t))return!0;if("innerhtml"===i)return a("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),bn[t]=!0,!0;if("aria"===i)return a("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),bn[t]=!0,!0;if("is"===i&&null!=n&&"string"!=typeof n)return a("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),bn[t]=!0,!0;if("number"==typeof n&&isNaN(n))return a("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),bn[t]=!0,!0;var u=H(t),c=null!==u&&0===u.type;if(dn.hasOwnProperty(i)){var d=dn[i];if(d!==t)return a("Invalid DOM property `%s`. Did you mean `%s`?",t,d),bn[t]=!0,!0}else if(!c&&t!==i)return a("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),bn[t]=!0,!0;return"boolean"==typeof n&&U(t,n,u,!1)?(n?a('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):a('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),bn[t]=!0,!0):!!c||(U(t,n,u,!1)?(bn[t]=!0,!1):("false"!==n&&"true"!==n||null===u||3!==u.type||(a("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,"false"===n?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),bn[t]=!0),!0))};var Cn=null;function Tn(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var Pn=null,kn=null,Rn=null;function In(e){var t=Nu(e);if(t){if("function"!=typeof Pn)throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=t.stateNode;if(n){var r=Gu(n);Pn(t.stateNode,t.type,r)}}}function On(e){kn?Rn?Rn.push(e):Rn=[e]:kn=e}function Mn(){if(kn){var e=kn,t=Rn;if(kn=null,Rn=null,In(e),t)for(var n=0;n<t.length;n++)In(t[n])}}var jn=function(e,t){return e(t)},zn=function(){},Bn=!1;function Fn(){(null!==kn||null!==Rn)&&(zn(),Mn())}function Dn(e,t,n){if(Bn)return e(t,n);Bn=!0;try{return jn(e,t,n)}finally{Bn=!1,Fn()}}function Ln(e,t){var n=e.stateNode;if(null===n)return null;var r=Gu(n);if(null===r)return null;var i=r[t];if(function(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!(!n.disabled||(r=t,"button"!==r&&"input"!==r&&"select"!==r&&"textarea"!==r));default:return!1}var r}(t,e.type,r))return null;if(i&&"function"!=typeof i)throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof i+"` type.");return i}var Nn=!1;if(T)try{var Un={};Object.defineProperty(Un,"passive",{get:function(){Nn=!0}}),window.addEventListener("test",Un,Un),window.removeEventListener("test",Un,Un)}catch(ex){Nn=!1}function Gn(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Hn=Gn;if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var Wn=document.createElement("react");Hn=function(e,t,n,r,i,o,a,s,l){if("undefined"==typeof document||null===document)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var u=document.createEvent("Event"),c=!1,d=!0,f=window.event,p=Object.getOwnPropertyDescriptor(window,"event");function h(){Wn.removeEventListener(x,g,!1),void 0!==window.event&&window.hasOwnProperty("event")&&(window.event=f)}var m,A=Array.prototype.slice.call(arguments,3);function g(){c=!0,h(),t.apply(n,A),d=!1}var v=!1,y=!1;function b(e){if(m=e.error,v=!0,null===m&&0===e.colno&&0===e.lineno&&(y=!0),e.defaultPrevented&&null!=m&&"object"==typeof m)try{m._suppressLogging=!0}catch(t){}}var x="react-"+(e||"invokeguardedcallback");if(window.addEventListener("error",b),Wn.addEventListener(x,g,!1),u.initEvent(x,!1,!1),Wn.dispatchEvent(u),p&&Object.defineProperty(window,"event",p),c&&d&&(v?y&&(m=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):m=new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."),this.onError(m)),window.removeEventListener("error",b),!c)return h(),Gn.apply(this,arguments)}}var Vn=Hn,Xn=!1,Kn=null,qn=!1,Qn=null,Yn={onError:function(e){Xn=!0,Kn=e}};function Zn(e,t,n,r,i,o,a,s,l){Xn=!1,Kn=null,Vn.apply(Yn,arguments)}function $n(){if(Xn){var e=Kn;return Xn=!1,Kn=null,e}throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Jn(e){return e._reactInternals}var er=16,tr=128,nr=256,rr=512,ir=1024,or=2048,ar=4096,sr=8192,lr=16384,ur=32768,cr=65536,dr=131072,fr=1048576,pr=2097152,hr=4194304,mr=16777216,Ar=33554432,gr=1028,vr=12854,yr=8772,br=2064,xr=14680064,Sr=r.ReactCurrentOwner;function _r(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var r=t;do{4098&(t=r).flags&&(n=t.return),r=t.return}while(r)}return 3===t.tag?n:null}function wr(e){if(e.tag===d){var t=e.memoizedState;if(null===t){var n=e.alternate;null!==n&&(t=n.memoizedState)}if(null!==t)return t.dehydrated}return null}function Er(e){return 3===e.tag?e.stateNode.containerInfo:null}function Cr(e){if(_r(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function Tr(e){var t=e.alternate;if(!t){var n=_r(e);if(null===n)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var r=e,i=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){var s=o.return;if(null!==s){r=i=s;continue}break}if(o.child===a.child){for(var l=o.child;l;){if(l===r)return Cr(o),e;if(l===i)return Cr(o),t;l=l.sibling}throw new Error("Unable to find node on an unmounted component.")}if(r.return!==i.return)r=o,i=a;else{for(var u=!1,c=o.child;c;){if(c===r){u=!0,r=o,i=a;break}if(c===i){u=!0,i=o,r=a;break}c=c.sibling}if(!u){for(c=a.child;c;){if(c===r){u=!0,r=a,i=o;break}if(c===i){u=!0,i=a,r=o;break}c=c.sibling}if(!u)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==i)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==r.tag)throw new Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function Pr(e){var t=Tr(e);return null!==t?kr(t):null}function kr(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){var n=kr(t);if(null!==n)return n;t=t.sibling}return null}function Rr(e){var t=Tr(e);return null!==t?Ir(t):null}function Ir(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){if(4!==t.tag){var n=Ir(t);if(null!==n)return n}t=t.sibling}return null}var Or=n.unstable_scheduleCallback,Mr=n.unstable_cancelCallback,jr=n.unstable_shouldYield,zr=n.unstable_requestPaint,Br=n.unstable_now,Fr=n.unstable_getCurrentPriorityLevel,Dr=n.unstable_ImmediatePriority,Lr=n.unstable_UserBlockingPriority,Nr=n.unstable_NormalPriority,Ur=n.unstable_LowPriority,Gr=n.unstable_IdlePriority,Hr=n.unstable_yieldValue,Wr=n.unstable_setDisableYieldValue,Vr=null,Xr=null,Kr=null,qr=!1,Qr="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;function Yr(e){if("function"==typeof Hr&&(Wr(e),i=e),Xr&&"function"==typeof Xr.setStrictMode)try{Xr.setStrictMode(Vr,e)}catch(t){qr||(qr=!0,a("React instrumentation encountered an error: %s",t))}}function Zr(e){Kr=e}function $r(){for(var e=new Map,t=1,n=0;n<hi;n++){var r=Xi(t);e.set(t,r),t*=2}return e}function Jr(){null!==Kr&&"function"==typeof Kr.markCommitStopped&&Kr.markCommitStopped()}function ei(e){null!==Kr&&"function"==typeof Kr.markComponentRenderStarted&&Kr.markComponentRenderStarted(e)}function ti(){null!==Kr&&"function"==typeof Kr.markComponentRenderStopped&&Kr.markComponentRenderStopped()}function ni(e){null!==Kr&&"function"==typeof Kr.markComponentLayoutEffectMountStarted&&Kr.markComponentLayoutEffectMountStarted(e)}function ri(e){null!==Kr&&"function"==typeof Kr.markComponentLayoutEffectUnmountStarted&&Kr.markComponentLayoutEffectUnmountStarted(e)}function ii(){null!==Kr&&"function"==typeof Kr.markComponentLayoutEffectUnmountStopped&&Kr.markComponentLayoutEffectUnmountStopped()}function oi(e,t,n){null!==Kr&&"function"==typeof Kr.markComponentErrored&&Kr.markComponentErrored(e,t,n)}function ai(e,t,n){null!==Kr&&"function"==typeof Kr.markComponentSuspended&&Kr.markComponentSuspended(e,t,n)}function si(e){null!==Kr&&"function"==typeof Kr.markRenderStarted&&Kr.markRenderStarted(e)}function li(){null!==Kr&&"function"==typeof Kr.markRenderStopped&&Kr.markRenderStopped()}function ui(e,t){null!==Kr&&"function"==typeof Kr.markStateUpdateScheduled&&Kr.markStateUpdateScheduled(e,t)}var ci=16,di=Math.clz32?Math.clz32:function(e){var t=e>>>0;return 0===t?32:31-(fi(t)/pi|0)|0},fi=Math.log,pi=Math.LN2,hi=31,mi=1,Ai=2,gi=4,vi=8,yi=16,bi=32,xi=4194240,Si=1024,_i=2048,wi=4096,Ei=8192,Ci=16384,Ti=32768,Pi=65536,ki=131072,Ri=262144,Ii=524288,Oi=1048576,Mi=2097152,ji=130023424,zi=4194304,Bi=8388608,Fi=16777216,Di=33554432,Li=67108864,Ni=zi,Ui=134217728,Gi=268435455,Hi=268435456,Wi=536870912,Vi=1073741824;function Xi(e){return e&mi?"Sync":e&Ai?"InputContinuousHydration":e&gi?"InputContinuous":e&vi?"DefaultHydration":e&yi?"Default":e&bi?"TransitionHydration":e&xi?"Transition":e&ji?"Retry":e&Ui?"SelectiveHydration":e&Hi?"IdleHydration":e&Wi?"Idle":e&Vi?"Offscreen":void 0}var Ki=-1,qi=64,Qi=zi;function Yi(e){switch(oo(e)){case mi:return mi;case Ai:return Ai;case gi:return gi;case vi:return vi;case yi:return yi;case bi:return bi;case 64:case 128:case 256:case 512:case Si:case _i:case wi:case Ei:case Ci:case Ti:case Pi:case ki:case Ri:case Ii:case Oi:case Mi:return e&xi;case zi:case Bi:case Fi:case Di:case Li:return e&ji;case Ui:return Ui;case Hi:return Hi;case Wi:return Wi;case Vi:return Vi;default:return a("Should have found matching lanes. This is a bug in React."),e}}function Zi(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&Gi;if(0!==a){var s=a&~i;if(0!==s)r=Yi(s);else{var l=a&o;0!==l&&(r=Yi(l))}}else{var u=n&~i;0!==u?r=Yi(u):0!==o&&(r=Yi(o))}if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)){var c=oo(r),d=oo(t);if(c>=d||c===yi&&d&xi)return t}r&gi&&(r|=n&yi);var f=e.entangledLanes;if(0!==f)for(var p=e.entanglements,h=r&f;h>0;){var m=so(h),A=1<<m;r|=p[m],h&=~A}return r}function $i(e,t){switch(e){case mi:case Ai:case gi:return t+250;case vi:case yi:case bi:case 64:case 128:case 256:case 512:case Si:case _i:case wi:case Ei:case Ci:case Ti:case Pi:case ki:case Ri:case Ii:case Oi:case Mi:return t+5e3;case zi:case Bi:case Fi:case Di:case Li:case Ui:case Hi:case Wi:case Vi:return Ki;default:return a("Should have found matching lanes. This is a bug in React."),Ki}}function Ji(e){var t=e.pendingLanes&~Vi;return 0!==t?t:t&Vi?Vi:0}function eo(e){return!!(e&Gi)}function to(e){return(e&ji)===e}function no(e,t){return!!(t&(Ai|gi|vi|yi))}function ro(e){return!!(e&xi)}function io(){var e=qi;return(qi<<=1)&xi||(qi=64),e}function oo(e){return e&-e}function ao(e){return oo(e)}function so(e){return 31-di(e)}function lo(e){return so(e)}function uo(e,t){return!!(e&t)}function co(e,t){return(e&t)===t}function fo(e,t){return e|t}function po(e,t){return e&~t}function ho(e,t){return e&t}function mo(e){for(var t=[],n=0;n<hi;n++)t.push(e);return t}function Ao(e,t,n){e.pendingLanes|=t,t!==Wi&&(e.suspendedLanes=0,e.pingedLanes=0),e.eventTimes[lo(t)]=n}function go(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function vo(e,t){for(var n=e.entangledLanes|=t,r=e.entanglements,i=n;i;){var o=so(i),a=1<<o;a&t|r[o]&t&&(r[o]|=t),i&=~a}}function yo(e,t,n){if(Qr)for(var r=e.pendingUpdatersLaneMap;n>0;){var i=lo(n),o=1<<i;r[i].add(t),n&=~o}}function bo(e,t){if(Qr)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;t>0;){var i=lo(t),o=1<<i,a=n[i];a.size>0&&(a.forEach((function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)})),a.clear()),t&=~o}}var xo,So,_o,wo,Eo,Co=mi,To=gi,Po=yi,ko=Wi,Ro=0;function Io(){return Ro}function Oo(e){Ro=e}function Mo(e,t){return 0!==e&&e<t}function jo(e){var t=oo(e);return Mo(Co,t)?Mo(To,t)?eo(t)?Po:ko:To:Co}function zo(e){return e.current.memoizedState.isDehydrated}function Bo(e){xo(e)}var Fo=!1,Do=[],Lo=null,No=null,Uo=null,Go=new Map,Ho=new Map,Wo=[],Vo=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function Xo(e,t){switch(e){case"focusin":case"focusout":Lo=null;break;case"dragenter":case"dragleave":No=null;break;case"mouseover":case"mouseout":Uo=null;break;case"pointerover":case"pointerout":var n=t.pointerId;Go.delete(n);break;case"gotpointercapture":case"lostpointercapture":var r=t.pointerId;Ho.delete(r)}}function Ko(e,t,n,r,i,o){if(null===e||e.nativeEvent!==o){var a=function(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:i,targetContainers:[r]}}(t,n,r,i,o);if(null!==t){var s=Nu(t);null!==s&&So(s)}return a}e.eventSystemFlags|=r;var l=e.targetContainers;return null!==i&&-1===l.indexOf(i)&&l.push(i),e}function qo(e){var t=Lu(e.target);if(null!==t){var n=_r(t);if(null!==n){var r=n.tag;if(r===d){var i=wr(n);if(null!==i)return e.blockedOn=i,void Eo(e.priority,(function(){_o(n)}))}else if(3===r&&zo(n.stateNode))return void(e.blockedOn=Er(n))}}e.blockedOn=null}function Qo(e){if(null!==e.blockedOn)return!1;for(var t,n=e.targetContainers;n.length>0;){n[0];var r=sa(e.domEventName,e.eventSystemFlags,0,e.nativeEvent);if(null!==r){var i=Nu(r);return null!==i&&So(i),e.blockedOn=r,!1}var o=e.nativeEvent,s=new o.constructor(o.type,o);t=s,null!==Cn&&a("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Cn=t,o.target.dispatchEvent(s),null===Cn&&a("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Cn=null,n.shift()}return!0}function Yo(e,t,n){Qo(e)&&n.delete(t)}function Zo(){Fo=!1,null!==Lo&&Qo(Lo)&&(Lo=null),null!==No&&Qo(No)&&(No=null),null!==Uo&&Qo(Uo)&&(Uo=null),Go.forEach(Yo),Ho.forEach(Yo)}function $o(e,t){e.blockedOn===t&&(e.blockedOn=null,Fo||(Fo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Zo)))}function Jo(e){if(Do.length>0){$o(Do[0],e);for(var t=1;t<Do.length;t++){var n=Do[t];n.blockedOn===e&&(n.blockedOn=null)}}null!==Lo&&$o(Lo,e),null!==No&&$o(No,e),null!==Uo&&$o(Uo,e);var r=function(t){return $o(t,e)};Go.forEach(r),Ho.forEach(r);for(var i=0;i<Wo.length;i++){var o=Wo[i];o.blockedOn===e&&(o.blockedOn=null)}for(;Wo.length>0;){var a=Wo[0];if(null!==a.blockedOn)break;qo(a),null===a.blockedOn&&Wo.shift()}}var ea=r.ReactCurrentBatchConfig,ta=!0;function na(e){ta=!!e}function ra(e,t,n,r){var i=Io(),o=ea.transition;ea.transition=null;try{Oo(Co),oa(e,t,n,r)}finally{Oo(i),ea.transition=o}}function ia(e,t,n,r){var i=Io(),o=ea.transition;ea.transition=null;try{Oo(To),oa(e,t,n,r)}finally{Oo(i),ea.transition=o}}function oa(e,t,n,r){ta&&function(e,t,n,r){var i=sa(0,0,0,r);if(null===i)return pl(e,t,r,aa,n),void Xo(e,r);if(function(e,t,n,r,i){switch(t){case"focusin":return Lo=Ko(Lo,e,t,n,r,i),!0;case"dragenter":return No=Ko(No,e,t,n,r,i),!0;case"mouseover":return Uo=Ko(Uo,e,t,n,r,i),!0;case"pointerover":var o=i,a=o.pointerId;return Go.set(a,Ko(Go.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":var s=i,l=s.pointerId;return Ho.set(l,Ko(Ho.get(l)||null,e,t,n,r,s)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Xo(e,r),4&t&&(s=e,Vo.indexOf(s)>-1)){for(;null!==i;){var o=Nu(i);null!==o&&Bo(o);var a=sa(0,0,0,r);if(null===a&&pl(e,t,r,aa,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else{var s;pl(e,t,r,null,n)}}(e,t,n,r)}var aa=null;function sa(e,t,n,r){aa=null;var i=Lu(Tn(r));if(null!==i){var o=_r(i);if(null===o)i=null;else{var a=o.tag;if(a===d){var s=wr(o);if(null!==s)return s;i=null}else if(3===a){if(zo(o.stateNode))return Er(o);i=null}else o!==i&&(i=null)}}return aa=i,null}function la(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Co;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return To;case"message":switch(Fr()){case Dr:return Co;case Lr:return To;case Nr:case Ur:return Po;case Gr:return ko;default:return Po}default:return Po}}var ua=null,ca=null,da=null;function fa(){if(da)return da;var e,t,n=ca,r=n.length,i=pa(),o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);var s=t>1?1-t:void 0;return da=i.slice(e,s)}function pa(){return"value"in ua?ua.value:ua.textContent}function ha(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,10===t&&(t=13),t>=32||13===t?t:0}function ma(){return!0}function Aa(){return!1}function ga(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)if(e.hasOwnProperty(a)){var s=e[a];this[a]=s?s(i):i[a]}var l=null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue;return this.isDefaultPrevented=l?ma:Aa,this.isPropagationStopped=Aa,this}return we(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ma)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ma)},persist:function(){},isPersistent:ma}),t}var va,ya,ba,xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sa=ga(xa),_a=we({},xa,{view:0,detail:0}),wa=ga(_a),Ea=we({},_a,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fa,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(function(e){e!==ba&&(ba&&"mousemove"===e.type?(va=e.screenX-ba.screenX,ya=e.screenY-ba.screenY):(va=0,ya=0),ba=e)}(e),va)},movementY:function(e){return"movementY"in e?e.movementY:ya}}),Ca=ga(Ea),Ta=ga(we({},Ea,{dataTransfer:0})),Pa=ga(we({},_a,{relatedTarget:0})),ka=ga(we({},xa,{animationName:0,elapsedTime:0,pseudoElement:0})),Ra=ga(we({},xa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),Ia=ga(we({},xa,{data:0})),Oa=Ia,Ma={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ja={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},za={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ba(e){var t=this.nativeEvent;if(t.getModifierState)return t.getModifierState(e);var n=za[e];return!!n&&!!t[n]}function Fa(e){return Ba}var Da=ga(we({},_a,{key:function(e){if(e.key){var t=Ma[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=ha(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?ja[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fa,charCode:function(e){return"keypress"===e.type?ha(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ha(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),La=ga(we({},Ea,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Na=ga(we({},_a,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fa})),Ua=ga(we({},xa,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ga=ga(we({},Ea,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Ha=[9,13,27,32],Wa=229,Va=T&&"CompositionEvent"in window,Xa=null;T&&"documentMode"in document&&(Xa=document.documentMode);var Ka=T&&"TextEvent"in window&&!Xa,qa=T&&(!Va||Xa&&Xa>8&&Xa<=11),Qa=32,Ya=String.fromCharCode(Qa),Za=!1;function $a(e,t){switch(e){case"keyup":return-1!==Ha.indexOf(t.keyCode);case"keydown":return t.keyCode!==Wa;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ja(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function es(e){return"ko"===e.locale}var ts=!1;function ns(e,t,n,r,i){var o,a;if(Va?o=function(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}(t):ts?$a(t,r)&&(o="onCompositionEnd"):function(e,t){return"keydown"===e&&t.keyCode===Wa}(t,r)&&(o="onCompositionStart"),!o)return null;qa&&!es(r)&&(ts||"onCompositionStart"!==o?"onCompositionEnd"===o&&ts&&(a=fa()):ts=function(e){return ua=e,ca=pa(),!0}(i));var s=ml(n,o);if(s.length>0){var l=new Ia(o,t,null,r,i);if(e.push({event:l,listeners:s}),a)l.data=a;else{var u=Ja(r);null!==u&&(l.data=u)}}}function rs(e,t){if(ts){if("compositionend"===e||!Va&&$a(e,t)){var n=fa();return ua=null,ca=null,da=null,ts=!1,n}return null}switch(e){case"paste":default:return null;case"keypress":if(!function(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qa&&!es(t)?null:t.data}}function is(e,t,n,r,i){var o;if(!(o=Ka?function(e,t){switch(e){case"compositionend":return Ja(t);case"keypress":return t.which!==Qa?null:(Za=!0,Ya);case"textInput":var n=t.data;return n===Ya&&Za?null:n;default:return null}}(t,r):rs(t,r)))return null;var a=ml(n,"onBeforeInput");if(a.length>0){var s=new Oa("onBeforeInput","beforeinput",null,r,i);e.push({event:s,listeners:a}),s.data=o}}var os={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function as(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!os[e.type]:"textarea"===t}function ss(e,t,n,r){On(r);var i=ml(t,"onChange");if(i.length>0){var o=new Sa("onChange","change",null,n,r);e.push({event:o,listeners:i})}}var ls=null,us=null;function cs(e){al(e,0)}function ds(e){if(rt(Uu(e)))return e}function fs(e,t){if("change"===e)return t}var ps=!1;function hs(){ls&&(ls.detachEvent("onpropertychange",ms),ls=null,us=null)}function ms(e){"value"===e.propertyName&&ds(us)&&function(e){var t=[];ss(t,us,e,Tn(e)),Dn(cs,t)}(e)}function As(e,t,n){"focusin"===e?(hs(),function(e,t){us=t,(ls=e).attachEvent("onpropertychange",ms)}(t,n)):"focusout"===e&&hs()}function gs(e,t){if("selectionchange"===e||"keyup"===e||"keydown"===e)return ds(us)}function vs(e,t){if("click"===e)return ds(t)}function ys(e,t){if("input"===e||"change"===e)return ds(t)}function bs(e,t,n,r,i,o,a){var s,l,u,c,d,f,p=n?Uu(n):window;if("select"===(c=(u=p).nodeName&&u.nodeName.toLowerCase())||"input"===c&&"file"===u.type?s=fs:as(p)?ps?s=ys:(s=gs,l=As):function(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(p)&&(s=vs),s){var h=s(t,n);if(h)return void ss(e,h,r,i)}l&&l(t,p,n),"focusout"===t&&(f=(d=p)._wrapperState)&&f.controlled&&"number"===d.type&&At(d,"number",d.value)}function xs(e,t,n,r,i,o,a){var s="mouseover"===t||"pointerover"===t,l="mouseout"===t||"pointerout"===t;if(s&&r!==Cn){var u=r.relatedTarget||r.fromElement;if(u&&(Lu(u)||Du(u)))return}if(l||s){var c,d,f;if(i.window===i)c=i;else{var p=i.ownerDocument;c=p?p.defaultView||p.parentWindow:window}if(l){var h=r.relatedTarget||r.toElement;d=n,null!==(f=h?Lu(h):null)&&(f!==_r(f)||5!==f.tag&&6!==f.tag)&&(f=null)}else d=null,f=n;if(d!==f){var m=Ca,A="onMouseLeave",g="onMouseEnter",v="mouse";"pointerout"!==t&&"pointerover"!==t||(m=La,A="onPointerLeave",g="onPointerEnter",v="pointer");var y=null==d?c:Uu(d),b=null==f?c:Uu(f),x=new m(A,v+"leave",d,r,i);x.target=y,x.relatedTarget=b;var S=null;if(Lu(i)===n){var _=new m(g,v+"enter",f,r,i);_.target=b,_.relatedTarget=y,S=_}!function(e,t,n,r,i){var o=r&&i?function(e,t){for(var n=e,r=t,i=0,o=n;o;o=Al(o))i++;for(var a=0,s=r;s;s=Al(s))a++;for(;i-a>0;)n=Al(n),i--;for(;a-i>0;)r=Al(r),a--;for(var l=i;l--;){if(n===r||null!==r&&n===r.alternate)return n;n=Al(n),r=Al(r)}return null}(r,i):null;null!==r&&gl(e,t,r,o,!1),null!==i&&null!==n&&gl(e,n,i,o,!0)}(e,x,S,d,f)}}}T&&(ps=function(e){if(!T)return!1;var t="on"+e,n=t in document;if(!n){var r=document.createElement("div");r.setAttribute(t,"return;"),n="function"==typeof r[t]}return n}("input")&&(!document.documentMode||document.documentMode>9));var Ss="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function _s(e,t){if(Ss(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!P.call(t,o)||!Ss(e[o],t[o]))return!1}return!0}function ws(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Es(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Cs(e,t){for(var n=ws(e),r=0,i=0;n;){if(3===n.nodeType){if(i=r+n.textContent.length,r<=t&&i>=t)return{node:n,offset:t-r};r=i}n=ws(Es(n))}}function Ts(e){var t=e.ownerDocument,n=t&&t.defaultView||window,r=n.getSelection&&n.getSelection();if(!r||0===r.rangeCount)return null;var i=r.anchorNode,o=r.anchorOffset,a=r.focusNode,s=r.focusOffset;try{i.nodeType,a.nodeType}catch(ex){return null}return function(e,t,n,r,i){var o=0,a=-1,s=-1,l=0,u=0,c=e,d=null;e:for(;;){for(var f=null;c!==t||0!==n&&3!==c.nodeType||(a=o+n),c!==r||0!==i&&3!==c.nodeType||(s=o+i),3===c.nodeType&&(o+=c.nodeValue.length),null!==(f=c.firstChild);)d=c,c=f;for(;;){if(c===e)break e;if(d===t&&++l===n&&(a=o),d===r&&++u===i&&(s=o),null!==(f=c.nextSibling))break;d=(c=d).parentNode}c=f}return-1===a||-1===s?null:{start:a,end:s}}(e,i,o,a,s)}function Ps(e){return e&&3===e.nodeType}function ks(e,t){return!(!e||!t)&&(e===t||!Ps(e)&&(Ps(t)?ks(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Rs(e){return e&&e.ownerDocument&&ks(e.ownerDocument.documentElement,e)}function Is(e){try{return"string"==typeof e.contentWindow.location.href}catch(t){return!1}}function Os(){for(var e=window,t=it();t instanceof e.HTMLIFrameElement;){if(!Is(t))return t;t=it((e=t.contentWindow).document)}return t}function Ms(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function js(e){var t,n,r,i,o=Os(),a=e.focusedElem,s=e.selectionRange;if(o!==a&&Rs(a)){null!==s&&Ms(a)&&(t=a,r=(n=s).start,void 0===(i=n.end)&&(i=r),"selectionStart"in t?(t.selectionStart=r,t.selectionEnd=Math.min(i,t.value.length)):function(e,t){var n=e.ownerDocument||document,r=n&&n.defaultView||window;if(r.getSelection){var i=r.getSelection(),o=e.textContent.length,a=Math.min(t.start,o),s=void 0===t.end?a:Math.min(t.end,o);if(!i.extend&&a>s){var l=s;s=a,a=l}var u=Cs(e,a),c=Cs(e,s);if(u&&c){if(1===i.rangeCount&&i.anchorNode===u.node&&i.anchorOffset===u.offset&&i.focusNode===c.node&&i.focusOffset===c.offset)return;var d=n.createRange();d.setStart(u.node,u.offset),i.removeAllRanges(),a>s?(i.addRange(d),i.extend(c.node,c.offset)):(d.setEnd(c.node,c.offset),i.addRange(d))}}}(t,n));for(var l=[],u=a;u=u.parentNode;)1===u.nodeType&&l.push({element:u,left:u.scrollLeft,top:u.scrollTop});"function"==typeof a.focus&&a.focus();for(var c=0;c<l.length;c++){var d=l[c];d.element.scrollLeft=d.left,d.element.scrollTop=d.top}}}function zs(e){return("selectionStart"in e?{start:e.selectionStart,end:e.selectionEnd}:Ts(e))||{start:0,end:0}}var Bs=T&&"documentMode"in document&&document.documentMode<=11,Fs=null,Ds=null,Ls=null,Ns=!1;function Us(e,t,n){var r,i=(r=n).window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!Ns&&null!=Fs&&Fs===it(i)){var o=function(e){if("selectionStart"in e&&Ms(e))return{start:e.selectionStart,end:e.selectionEnd};var t=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}(Fs);if(!Ls||!_s(Ls,o)){Ls=o;var a=ml(Ds,"onSelect");if(a.length>0){var s=new Sa("onSelect","select",null,t,n);e.push({event:s,listeners:a}),s.target=Fs}}}}function Gs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Hs={animationend:Gs("Animation","AnimationEnd"),animationiteration:Gs("Animation","AnimationIteration"),animationstart:Gs("Animation","AnimationStart"),transitionend:Gs("Transition","TransitionEnd")},Ws={},Vs={};function Xs(e){if(Ws[e])return Ws[e];if(!Hs[e])return e;var t=Hs[e];for(var n in t)if(t.hasOwnProperty(n)&&n in Vs)return Ws[e]=t[n];return e}T&&(Vs=document.createElement("div").style,"AnimationEvent"in window||(delete Hs.animationend.animation,delete Hs.animationiteration.animation,delete Hs.animationstart.animation),"TransitionEvent"in window||delete Hs.transitionend.transition);var Ks=Xs("animationend"),qs=Xs("animationiteration"),Qs=Xs("animationstart"),Ys=Xs("transitionend"),Zs=new Map,$s=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function Js(e,t){Zs.set(e,t),E(t,[e])}function el(e,t,n,r,i,o,a){var s=Zs.get(t);if(void 0!==s){var l=Sa,u=t;switch(t){case"keypress":if(0===ha(r))return;case"keydown":case"keyup":l=Da;break;case"focusin":u="focus",l=Pa;break;case"focusout":u="blur",l=Pa;break;case"beforeblur":case"afterblur":l=Pa;break;case"click":if(2===r.button)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Ca;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=Ta;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Na;break;case Ks:case qs:case Qs:l=ka;break;case Ys:l=Ua;break;case"scroll":l=wa;break;case"wheel":l=Ga;break;case"copy":case"cut":case"paste":l=Ra;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=La}var c=!!(4&o),d=!c&&"scroll"===t,f=function(e,t,n,r,i){for(var o=null!==t?t+"Capture":null,a=r?o:t,s=[],l=e,u=null;null!==l;){var c=l,d=c.stateNode;if(5===c.tag&&null!==d&&(u=d,null!==a)){var f=Ln(l,a);null!=f&&s.push(hl(l,f,u))}if(i)break;l=l.return}return s}(n,s,r.type,c,d);if(f.length>0){var p=new l(s,u,null,r,i);e.push({event:p,listeners:f})}}}function tl(e,t,n,r,i,o,a){el(e,t,n,r,i,o),!(7&o)&&(xs(e,t,n,r,i),bs(e,t,n,r,i),function(e,t,n,r,i){var o=n?Uu(n):window;switch(t){case"focusin":(as(o)||"true"===o.contentEditable)&&(Fs=o,Ds=n,Ls=null);break;case"focusout":Fs=null,Ds=null,Ls=null;break;case"mousedown":Ns=!0;break;case"contextmenu":case"mouseup":case"dragend":Ns=!1,Us(e,r,i);break;case"selectionchange":if(Bs)break;case"keydown":case"keyup":Us(e,r,i)}}(e,t,n,r,i),function(e,t,n,r,i){ns(e,t,n,r,i),is(e,t,n,r,i)}(e,t,n,r,i))}!function(){for(var e=0;e<$s.length;e++){var t=$s[e];Js(t.toLowerCase(),"on"+(t[0].toUpperCase()+t.slice(1)))}Js(Ks,"onAnimationEnd"),Js(qs,"onAnimationIteration"),Js(Qs,"onAnimationStart"),Js("dblclick","onDoubleClick"),Js("focusin","onFocus"),Js("focusout","onBlur"),Js(Ys,"onTransitionEnd")}(),C("onMouseEnter",["mouseout","mouseover"]),C("onMouseLeave",["mouseout","mouseover"]),C("onPointerEnter",["pointerout","pointerover"]),C("onPointerLeave",["pointerout","pointerover"]),E("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"]),E("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"]),E("onBeforeInput",["compositionend","keypress","textInput","paste"]),E("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),E("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),E("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"]);var nl=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],rl=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(nl));function il(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(Zn.apply(this,arguments),Xn){var u=$n();qn||(qn=!0,Qn=u)}}(r,t,void 0,e),e.currentTarget=null}function ol(e,t,n){var r;if(n)for(var i=t.length-1;i>=0;i--){var o=t[i],a=o.instance,s=o.currentTarget,l=o.listener;if(a!==r&&e.isPropagationStopped())return;il(e,l,s),r=a}else for(var u=0;u<t.length;u++){var c=t[u],d=c.instance,f=c.currentTarget,p=c.listener;if(d!==r&&e.isPropagationStopped())return;il(e,p,f),r=d}}function al(e,t){for(var n=!!(4&t),r=0;r<e.length;r++){var i=e[r];ol(i.event,i.listeners,n)}!function(){if(qn){var e=Qn;throw qn=!1,Qn=null,e}}()}function sl(e,t){rl.has(e)||a('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n,r,i=!1,o=(void 0===(r=(n=t)[Ou])&&(r=n[Ou]=new Set),r),s=function(e,t){return e+"__"+(t?"capture":"bubble")}(e,i);o.has(s)||(dl(t,e,2,i),o.add(s))}function ll(e,t,n){rl.has(e)&&!t&&a('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),dl(n,e,r,t)}var ul="_reactListening"+Math.random().toString(36).slice(2);function cl(e){if(!e[ul]){e[ul]=!0,S.forEach((function(t){"selectionchange"!==t&&(rl.has(t)||ll(t,!1,e),ll(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null!==t&&(t[ul]||(t[ul]=!0,ll("selectionchange",!1,t)))}}function dl(e,t,n,r,i){var o=function(e,t,n){var r;switch(la(t)){case Co:r=ra;break;case To:r=ia;break;default:r=oa}return r.bind(null,t,n,e)}(e,t,n),a=void 0;Nn&&("touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0)),r?void 0!==a?function(e,t,n,r){e.addEventListener(t,n,{capture:!0,passive:r})}(e,t,o,a):function(e,t,n){e.addEventListener(t,n,!0)}(e,t,o):void 0!==a?function(e,t,n,r){e.addEventListener(t,n,{passive:r})}(e,t,o,a):function(e,t,n){e.addEventListener(t,n,!1)}(e,t,o)}function fl(e,t){return e===t||8===e.nodeType&&e.parentNode===t}function pl(e,t,n,r,i){var o=r;if(!(1&t||2&t)){var a=i;if(null!==r){var s=r;e:for(;;){if(null===s)return;var l=s.tag;if(3===l||4===l){var u=s.stateNode.containerInfo;if(fl(u,a))break;if(4===l)for(var c=s.return;null!==c;){var d=c.tag;if((3===d||4===d)&&fl(c.stateNode.containerInfo,a))return;c=c.return}for(;null!==u;){var f=Lu(u);if(null===f)return;var p=f.tag;if(5===p||6===p){s=o=f;continue e}u=u.parentNode}}s=s.return}}}Dn((function(){return function(e,t,n,r){var i=[];tl(i,e,r,n,Tn(n),t),al(i,t)}(e,t,n,o)}))}function hl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ml(e,t){for(var n=t+"Capture",r=[],i=e;null!==i;){var o=i,a=o.stateNode;if(5===o.tag&&null!==a){var s=a,l=Ln(i,n);null!=l&&r.unshift(hl(i,l,s));var u=Ln(i,t);null!=u&&r.push(hl(i,u,s))}i=i.return}return r}function Al(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function gl(e,t,n,r,i){for(var o=t._reactName,a=[],s=n;null!==s&&s!==r;){var l=s,u=l.alternate,c=l.stateNode,d=l.tag;if(null!==u&&u===r)break;if(5===d&&null!==c){var f=c;if(i){var p=Ln(s,o);null!=p&&a.unshift(hl(s,p,f))}else if(!i){var h=Ln(s,o);null!=h&&a.push(hl(s,h,f))}}s=s.return}0!==a.length&&e.push({event:t,listeners:a})}var vl,yl,bl,xl,Sl,_l,wl,El=!1,Cl="dangerouslySetInnerHTML",Tl="suppressContentEditableWarning",Pl="suppressHydrationWarning",kl="autoFocus",Rl="children",Il="style",Ol="__html";vl={dialog:!0,webview:!0},yl=function(e,t){gn(e,t),function(e,t){"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||yn||(yn=!0,"select"===e&&t.multiple?a("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):a("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}(e,t),En(e,t,{registrationNameDependencies:_,possibleRegistrationNames:w})},_l=T&&!document.documentMode,bl=function(e,t,n){if(!El){var r=zl(n),i=zl(t);i!==r&&(El=!0,a("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(i),JSON.stringify(r)))}},xl=function(e){if(!El){El=!0;var t=[];e.forEach((function(e){t.push(e)})),a("Extra attributes from the server: %s",t)}},Sl=function(e,t){!1===t?a("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):a("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},wl=function(e,t){var n=e.namespaceURI===jt?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var Ml=/\r\n?/g,jl=/\u0000|\uFFFD/g;function zl(e){return function(e){R(e)&&(a("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",k(e)),I(e))}(e),("string"==typeof e?e:""+e).replace(Ml,"\n").replace(jl,"")}function Bl(e,t,n,r){var i=zl(t),o=zl(e);if(o!==i&&(r&&(El||(El=!0,a('Text content did not match. Server: "%s" Client: "%s"',o,i))),n))throw new Error("Text content does not match server-rendered HTML.")}function Fl(e){return 9===e.nodeType?e:e.ownerDocument}function Dl(){}function Ll(e){e.onclick=Dl}function Nl(e,t,n,r){var i,o=cn(t,n);switch(yl(t,n),t){case"dialog":sl("cancel",e),sl("close",e),i=n;break;case"iframe":case"object":case"embed":sl("load",e),i=n;break;case"video":case"audio":for(var a=0;a<nl.length;a++)sl(nl[a],e);i=n;break;case"source":sl("error",e),i=n;break;case"img":case"image":case"link":sl("error",e),sl("load",e),i=n;break;case"details":sl("toggle",e),i=n;break;case"input":dt(e,n),i=ct(e,n),sl("invalid",e);break;case"option":bt(0,n),i=n;break;case"select":Pt(e,n),i=Tt(0,n),sl("invalid",e);break;case"textarea":It(e,n),i=Rt(e,n),sl("invalid",e);break;default:i=n}switch(un(t,i),function(e,t,n,r,i){for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];if(o===Il)a&&Object.freeze(a),an(t,a);else if(o===Cl){var s=a?a[Ol]:void 0;null!=s&&Nt(t,s)}else o===Rl?"string"==typeof a?("textarea"!==e||""!==a)&&Ut(t,a):"number"==typeof a&&Ut(t,""+a):o===Tl||o===Pl||o===kl||(_.hasOwnProperty(o)?null!=a&&("function"!=typeof a&&Sl(o,a),"onScroll"===o&&sl("scroll",t)):null!=a&&J(t,o,a,i))}}(t,e,0,i,o),t){case"input":nt(e),ht(e,n,!1);break;case"textarea":nt(e),Mt(e);break;case"option":!function(e,t){null!=t.value&&e.setAttribute("value",Ye(Ze(t.value)))}(e,n);break;case"select":!function(e,t){var n=e;n.multiple=!!t.multiple;var r=t.value;null!=r?Ct(n,!!t.multiple,r,!1):null!=t.defaultValue&&Ct(n,!!t.multiple,t.defaultValue,!0)}(e,n);break;default:"function"==typeof i.onClick&&Ll(e)}}function Ul(e,t,n,r,i){yl(t,r);var o,s,l,u,c=null;switch(t){case"input":o=ct(e,n),s=ct(e,r),c=[];break;case"select":o=Tt(0,n),s=Tt(0,r),c=[];break;case"textarea":o=Rt(e,n),s=Rt(e,r),c=[];break;default:s=r,"function"!=typeof(o=n).onClick&&"function"==typeof s.onClick&&Ll(e)}un(t,s);var d=null;for(l in o)if(!s.hasOwnProperty(l)&&o.hasOwnProperty(l)&&null!=o[l])if(l===Il){var f=o[l];for(u in f)f.hasOwnProperty(u)&&(d||(d={}),d[u]="")}else l===Cl||l===Rl||l===Tl||l===Pl||l===kl||(_.hasOwnProperty(l)?c||(c=[]):(c=c||[]).push(l,null));for(l in s){var p=s[l],h=null!=o?o[l]:void 0;if(s.hasOwnProperty(l)&&p!==h&&(null!=p||null!=h))if(l===Il)if(p&&Object.freeze(p),h){for(u in h)!h.hasOwnProperty(u)||p&&p.hasOwnProperty(u)||(d||(d={}),d[u]="");for(u in p)p.hasOwnProperty(u)&&h[u]!==p[u]&&(d||(d={}),d[u]=p[u])}else d||(c||(c=[]),c.push(l,d)),d=p;else if(l===Cl){var m=p?p[Ol]:void 0,A=h?h[Ol]:void 0;null!=m&&A!==m&&(c=c||[]).push(l,m)}else l===Rl?"string"!=typeof p&&"number"!=typeof p||(c=c||[]).push(l,""+p):l===Tl||l===Pl||(_.hasOwnProperty(l)?(null!=p&&("function"!=typeof p&&Sl(l,p),"onScroll"===l&&sl("scroll",e)),c||h===p||(c=[])):(c=c||[]).push(l,p))}return d&&(function(e,t){if(t){var n,r=sn(e),i=sn(t),o={};for(var s in r){var l=r[s],u=i[s];if(u&&l!==u){var c=l+","+u;if(o[c])continue;o[c]=!0,a("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",null==(n=e[l])||"boolean"==typeof n||""===n?"Removing":"Updating",l,u)}}}}(d,s[Il]),(c=c||[]).push(Il,d)),c}function Gl(e,t,n,r,i){switch("input"===n&&"radio"===i.type&&null!=i.name&&ft(e,i),cn(n,r),function(e,t,n,r){for(var i=0;i<t.length;i+=2){var o=t[i],a=t[i+1];o===Il?an(e,a):o===Cl?Nt(e,a):o===Rl?Ut(e,a):J(e,o,a,r)}}(e,t,0,cn(n,i)),n){case"input":pt(e,i);break;case"textarea":Ot(e,i);break;case"select":!function(e,t){var n=e,r=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var i=t.value;null!=i?Ct(n,!!t.multiple,i,!1):r!==!!t.multiple&&(null!=t.defaultValue?Ct(n,!!t.multiple,t.defaultValue,!0):Ct(n,!!t.multiple,t.multiple?[]:"",!1))}(e,i)}}function Hl(e,t){El||(El=!0,a("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase()))}function Wl(e,t){El||(El=!0,a('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase()))}function Vl(e,t,n){El||(El=!0,a("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase()))}function Xl(e,t){""!==t&&(El||(El=!0,a('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())))}var Kl,ql,Ql=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],Yl=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Zl=Yl.concat(["button"]),$l=["dd","dt","li","option","optgroup","p","rp","rt"],Jl={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};ql=function(e,t){var n=we({},e||Jl),r={tag:t};return-1!==Yl.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==Zl.indexOf(t)&&(n.pTagInButtonScope=null),-1!==Ql.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),n};var eu={};Kl=function(e,t,n){var r=(n=n||Jl).current,i=r&&r.tag;null!=t&&(null!=e&&a("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var o=function(e,t){switch(t){case"select":return"option"===e||"optgroup"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===$l.indexOf(t);case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t}return!0}(e,i)?null:r,s=o?null:function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}(e,n),l=o||s;if(l){var u=l.tag,c=!!o+"|"+e+"|"+u;if(!eu[c]){eu[c]=!0;var d=e,f="";if("#text"===e?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",f=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",o){var p="";"table"===u&&"tr"===e&&(p+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),a("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,f,p)}else a("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}};var tu="suppressHydrationWarning",nu="$",ru="/$",iu="$?",ou="$!",au=null,su=null;function lu(e){var t;return au=ta,t=Os(),su={focusedElem:t,selectionRange:Ms(t)?zs(t):null},na(!1),null}function uu(e,t,n,r,i){var o=r;if(Kl(e,null,o.ancestorInfo),"string"==typeof t.children||"number"==typeof t.children){var s=""+t.children,l=ql(o.ancestorInfo,e);Kl(null,s,l)}var u=function(e,t,n,r){var i,o,s=Fl(n),l=r;if(l===jt&&(l=Bt(e)),l===jt){if((i=cn(e,t))||e===e.toLowerCase()||a("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),"script"===e){var u=s.createElement("div");u.innerHTML="<script><\/script>";var c=u.firstChild;o=u.removeChild(c)}else if("string"==typeof t.is)o=s.createElement(e,{is:t.is});else if(o=s.createElement(e),"select"===e){var d=o;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else o=s.createElementNS(l,e);return l===jt&&(i||"[object HTMLUnknownElement]"!==Object.prototype.toString.call(o)||P.call(vl,e)||(vl[e]=!0,a("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e))),o}(e,t,n,o.namespace);return zu(i,u),Hu(u,t),u}function cu(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function du(e,t,n,r){Kl(null,e,n.ancestorInfo);var i=function(e,t){return Fl(t).createTextNode(e)}(e,t);return zu(r,i),i}var fu="function"==typeof setTimeout?setTimeout:void 0,pu="function"==typeof clearTimeout?clearTimeout:void 0,hu="function"==typeof Promise?Promise:void 0,mu="function"==typeof queueMicrotask?queueMicrotask:void 0!==hu?function(e){return hu.resolve(null).then(e).catch(Au)}:fu;function Au(e){setTimeout((function(){throw e}))}function gu(e){Ut(e,"")}function vu(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType){var o=i.data;if(o===ru){if(0===r)return e.removeChild(i),void Jo(t);r--}else o!==nu&&o!==iu&&o!==ou||r++}n=i}while(n);Jo(t)}function yu(e){var t=e.style;"function"==typeof t.setProperty?t.setProperty("display","none","important"):t.display="none"}function bu(e,t){var n=t.style,r=null!=n&&n.hasOwnProperty("display")?n.display:null;e.style.display=Vt("display",r)}function xu(e,t){e.nodeValue=t}function Su(e){return e.data===iu}function _u(e){return e.data===ou}function wu(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){var n=e.data;if(n===nu||n===ou||n===iu)break;if(n===ru)return null}}return e}function Eu(e){return wu(e.nextSibling)}function Cu(e,t,n,r,i,o,a){return zu(o,e),Hu(e,n),function(e,t,n,r,i,o,a){var s,l;switch(s=cn(t,n),yl(t,n),t){case"dialog":sl("cancel",e),sl("close",e);break;case"iframe":case"object":case"embed":sl("load",e);break;case"video":case"audio":for(var u=0;u<nl.length;u++)sl(nl[u],e);break;case"source":sl("error",e);break;case"img":case"image":case"link":sl("error",e),sl("load",e);break;case"details":sl("toggle",e);break;case"input":dt(e,n),sl("invalid",e);break;case"option":bt(0,n);break;case"select":Pt(e,n),sl("invalid",e);break;case"textarea":It(e,n),sl("invalid",e)}un(t,n),l=new Set;for(var c=e.attributes,d=0;d<c.length;d++)switch(c[d].name.toLowerCase()){case"value":case"checked":case"selected":break;default:l.add(c[d].name)}var f,p=null;for(var h in n)if(n.hasOwnProperty(h)){var m=n[h];if(h===Rl)"string"==typeof m?e.textContent!==m&&(!0!==n[Pl]&&Bl(e.textContent,m,o,a),p=[Rl,m]):"number"==typeof m&&e.textContent!==""+m&&(!0!==n[Pl]&&Bl(e.textContent,m,o,a),p=[Rl,""+m]);else if(_.hasOwnProperty(h))null!=m&&("function"!=typeof m&&Sl(h,m),"onScroll"===h&&sl("scroll",e));else if(a&&"boolean"==typeof s){var A=void 0,g=H(h);if(!0===n[Pl]);else if(h===Tl||h===Pl||"value"===h||"checked"===h||"selected"===h);else if(h===Cl){var v=e.innerHTML,y=m?m[Ol]:void 0;if(null!=y){var b=wl(e,y);b!==v&&bl(h,v,b)}}else if(h===Il){if(l.delete(h),_l){var x=on(m);x!==(A=e.getAttribute("style"))&&bl(h,A,x)}}else if(s)l.delete(h.toLowerCase()),m!==(A=$(e,h,m))&&bl(h,A,m);else if(!N(h,g,s)&&!G(h,m,g,s)){var S=!1;if(null!==g)l.delete(g.attributeName),A=Z(e,h,m,g);else{var w=r;if(w===jt&&(w=Bt(t)),w===jt)l.delete(h.toLowerCase());else{var E=(f=void 0,f=h.toLowerCase(),dn.hasOwnProperty(f)&&dn[f]||null);null!==E&&E!==h&&(S=!0,l.delete(E)),l.delete(h)}A=$(e,h,m)}m===A||S||bl(h,A,m)}}}switch(a&&l.size>0&&!0!==n[Pl]&&xl(l),t){case"input":nt(e),ht(e,n,!0);break;case"textarea":nt(e),Mt(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&Ll(e)}return p}(e,t,n,i.namespace,0,!!(1&o.mode),a)}function Tu(e){for(var t=e.previousSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===nu||r===ou||r===iu){if(0===n)return t;n--}else r===ru&&n++}t=t.previousSibling}return null}var Pu=Math.random().toString(36).slice(2),ku="__reactFiber$"+Pu,Ru="__reactProps$"+Pu,Iu="__reactContainer$"+Pu,Ou="__reactEvents$"+Pu,Mu="__reactListeners$"+Pu,ju="__reactHandles$"+Pu;function zu(e,t){t[ku]=e}function Bu(e,t){t[Iu]=e}function Fu(e){e[Iu]=null}function Du(e){return!!e[Iu]}function Lu(e){var t=e[ku];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Iu]||n[ku]){var r=t.alternate;if(null!==t.child||null!==r&&null!==r.child)for(var i=Tu(e);null!==i;){var o=i[ku];if(o)return o;i=Tu(i)}return t}n=(e=n).parentNode}return null}function Nu(e){var t=e[ku]||e[Iu];return!t||5!==t.tag&&6!==t.tag&&t.tag!==d&&3!==t.tag?null:t}function Uu(e){if(5===e.tag||6===e.tag)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Gu(e){return e[Ru]||null}function Hu(e,t){e[Ru]=t}var Wu={},Vu=r.ReactDebugCurrentFrame;function Xu(e){if(e){var t=e._owner,n=ze(e.type,e._source,t?t.type:null);Vu.setExtraStackFrame(n)}else Vu.setExtraStackFrame(null)}function Ku(e,t,n,r,i){var o=Function.call.bind(P);for(var s in e)if(o(e,s)){var l=void 0;try{if("function"!=typeof e[s]){var u=Error((r||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[s](t,s,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){l=c}!l||l instanceof Error||(Xu(i),a("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,s,typeof l),Xu(null)),l instanceof Error&&!(l.message in Wu)&&(Wu[l.message]=!0,Xu(i),a("Failed %s type: %s",n,l.message),Xu(null))}}var qu,Qu=[];qu=[];var Yu,Zu=-1;function $u(e){return{current:e}}function Ju(e,t){Zu<0?a("Unexpected pop."):(t!==qu[Zu]&&a("Unexpected Fiber popped."),e.current=Qu[Zu],Qu[Zu]=null,qu[Zu]=null,Zu--)}function ec(e,t,n){Zu++,Qu[Zu]=e.current,qu[Zu]=n,e.current=t}Yu={};var tc={};Object.freeze(tc);var nc=$u(tc),rc=$u(!1),ic=tc;function oc(e,t,n){return n&&uc(t)?ic:nc.current}function ac(e,t,n){var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}function sc(e,t){var n=e.type.contextTypes;if(!n)return tc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={};for(var o in n)i[o]=t[o];return Ku(n,i,"context",Ue(e)||"Unknown"),r&&ac(e,t,i),i}function lc(){return rc.current}function uc(e){var t=e.childContextTypes;return null!=t}function cc(e){Ju(rc,e),Ju(nc,e)}function dc(e){Ju(rc,e),Ju(nc,e)}function fc(e,t,n){if(nc.current!==tc)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");ec(nc,t,e),ec(rc,n,e)}function pc(e,t,n){var r=e.stateNode,i=t.childContextTypes;if("function"!=typeof r.getChildContext){var o=Ue(e)||"Unknown";return Yu[o]||(Yu[o]=!0,a("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",o,o)),n}var s=r.getChildContext();for(var l in s)if(!(l in i))throw new Error((Ue(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return Ku(i,s,"child context",Ue(e)||"Unknown"),we({},n,s)}function hc(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||tc;return ic=nc.current,ec(nc,n,e),ec(rc,rc.current,e),!0}function mc(e,t,n){var r=e.stateNode;if(!r)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var i=pc(e,t,ic);r.__reactInternalMemoizedMergedChildContext=i,Ju(rc,e),Ju(nc,e),ec(nc,i,e),ec(rc,n,e)}else Ju(rc,e),ec(rc,n,e)}function Ac(e){if(!function(e){return _r(e)===e}(e)||1!==e.tag)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case 3:return t.stateNode.context;case 1:if(uc(t.type))return t.stateNode.__reactInternalMemoizedMergedChildContext}t=t.return}while(null!==t);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}var gc=null,vc=!1,yc=!1;function bc(e){null===gc?gc=[e]:gc.push(e)}function xc(){vc&&Sc()}function Sc(){if(!yc&&null!==gc){yc=!0;var e=0,t=Io();try{var n=gc;for(Oo(Co);e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}gc=null,vc=!1}catch(i){throw null!==gc&&(gc=gc.slice(e+1)),Or(Dr,Sc),i}finally{Oo(t),yc=!1}}return null}var _c=[],wc=0,Ec=null,Cc=0,Tc=[],Pc=0,kc=null,Rc=1,Ic="";function Oc(){var e=Ic;return(Rc&~function(e){return 1<<Bc(e)-1}(Rc)).toString(32)+e}function Mc(e,t){Dc(),_c[wc++]=Cc,_c[wc++]=Ec,Ec=e,Cc=t}function jc(e,t,n){Dc(),Tc[Pc++]=Rc,Tc[Pc++]=Ic,Tc[Pc++]=kc,kc=e;var r=Rc,i=Ic,o=Bc(r)-1,a=r&~(1<<o),s=n+1,l=Bc(t)+o;if(l>30){var u=o-o%5,c=(a&(1<<u)-1).toString(32),d=a>>u,f=o-u,p=Bc(t)+f;Rc=1<<p|s<<f|d,Ic=c+i}else Rc=1<<l|s<<o|a,Ic=i}function zc(e){Dc(),null!==e.return&&(Mc(e,1),jc(e,1,0))}function Bc(e){return 32-di(e)}function Fc(e){for(;e===Ec;)Ec=_c[--wc],_c[wc]=null,Cc=_c[--wc],_c[wc]=null;for(;e===kc;)kc=Tc[--Pc],Tc[Pc]=null,Ic=Tc[--Pc],Tc[Pc]=null,Rc=Tc[--Pc],Tc[Pc]=null}function Dc(){ud()||a("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Lc=null,Nc=null,Uc=!1,Gc=!1,Hc=null;function Wc(){Gc=!0}function Vc(e){var t=e.stateNode.containerInfo;return Nc=wu(t.firstChild),Lc=e,Uc=!0,Hc=null,Gc=!1,!0}function Xc(e,t,n){var r,i;return Nc=wu(t.nextSibling),Lc=e,Uc=!0,Hc=null,Gc=!1,null!==n&&(r=e,i=n,Dc(),Tc[Pc++]=Rc,Tc[Pc++]=Ic,Tc[Pc++]=kc,Rc=i.id,Ic=i.overflow,kc=r),!0}function Kc(e,t){switch(e.tag){case 3:!function(e,t){1===t.nodeType?Hl(e,t):8===t.nodeType||Wl(e,t)}(e.stateNode.containerInfo,t);break;case 5:var n=!!(1&e.mode);!function(e,t,n,r,i){(i||!0!==t[tu])&&(1===r.nodeType?Hl(n,r):8===r.nodeType||Wl(n,r))}(e.type,e.memoizedProps,e.stateNode,t,n);break;case d:var r=e.memoizedState;null!==r.dehydrated&&function(e,t){var n=e.parentNode;null!==n&&(1===t.nodeType?Hl(n,t):8===t.nodeType||Wl(n,t))}(r.dehydrated,t)}}function qc(e,t){Kc(e,t);var n,r=((n=Xy(5,null,null,0)).elementType="DELETED",n);r.stateNode=t,r.return=e;var i=e.deletions;null===i?(e.deletions=[r],e.flags|=er):i.push(r)}function Qc(e,t){if(!Gc)switch(e.tag){case 3:var n=e.stateNode.containerInfo;switch(t.tag){case 5:var r=t.type;t.pendingProps,function(e,t){Vl(e,t)}(n,r);break;case 6:!function(e,t){Xl(e,t)}(n,t.pendingProps)}break;case 5:e.type;var i=e.memoizedProps,o=e.stateNode;switch(t.tag){case 5:var a=t.type;t.pendingProps,function(e,t,n,r,i,o){(o||!0!==t[tu])&&Vl(n,r)}(0,i,o,a,0,!!(1&e.mode));break;case 6:!function(e,t,n,r,i){(i||!0!==t[tu])&&Xl(n,r)}(0,i,o,t.pendingProps,!!(1&e.mode))}break;case d:var s=e.memoizedState.dehydrated;if(null!==s)switch(t.tag){case 5:var l=t.type;t.pendingProps,function(e,t){var n=e.parentNode;null!==n&&Vl(n,t)}(s,l);break;case 6:!function(e,t){var n=e.parentNode;null!==n&&Xl(n,t)}(s,t.pendingProps)}break;default:return}}function Yc(e,t){t.flags=-4097&t.flags|2,Qc(e,t)}function Zc(e,t){switch(e.tag){case 5:var n=e.type,r=(e.pendingProps,function(e,t){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}(t,n));return null!==r&&(e.stateNode=r,Lc=e,Nc=wu(r.firstChild),!0);case 6:var i=function(e,t){return""===t||3!==e.nodeType?null:e}(t,e.pendingProps);return null!==i&&(e.stateNode=i,Lc=e,Nc=null,!0);case d:var o=function(e){return 8!==e.nodeType?null:e}(t);if(null!==o){var a={dehydrated:o,treeContext:(Dc(),null!==kc?{id:Rc,overflow:Ic}:null),retryLane:Vi};e.memoizedState=a;var s=function(e){var t=Xy(m,null,null,0);return t.stateNode=e,t}(o);return s.return=e,e.child=s,Lc=e,Nc=null,!0}return!1;default:return!1}}function $c(e){return!(!(1&e.mode)||e.flags&tr)}function Jc(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function ed(e){if(Uc){var t=Nc;if(!t)return $c(e)&&(Qc(Lc,e),Jc()),Yc(Lc,e),Uc=!1,void(Lc=e);var n=t;if(!Zc(e,t)){$c(e)&&(Qc(Lc,e),Jc()),t=Eu(n);var r=Lc;if(!t||!Zc(e,t))return Yc(Lc,e),Uc=!1,void(Lc=e);qc(r,n)}}}function td(e){var t=e.stateNode,n=e.memoizedProps,r=function(e,t,n){return zu(n,e),n.mode,function(e,t){return e.nodeValue!==t}(e,t)}(t,n,e);if(r){var i=Lc;if(null!==i)switch(i.tag){case 3:i.stateNode.containerInfo,function(e,t,n,r){Bl(t.nodeValue,n,r,!0)}(0,t,n,!!(1&i.mode));break;case 5:i.type;var o=i.memoizedProps;i.stateNode,function(e,t,n,r,i,o){!0!==t[tu]&&Bl(r.nodeValue,i,o,!0)}(0,o,0,t,n,!!(1&i.mode))}}return r}function nd(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");!function(e,t){zu(t,e)}(n,e)}function rd(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return function(e){for(var t=e.nextSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===ru){if(0===n)return Eu(t);n--}else r!==nu&&r!==ou&&r!==iu||n++}t=t.nextSibling}return null}(n)}function id(e){for(var t=e.return;null!==t&&5!==t.tag&&3!==t.tag&&t.tag!==d;)t=t.return;Lc=t}function od(e){if(e!==Lc)return!1;if(!Uc)return id(e),Uc=!0,!1;if(3!==e.tag&&(5!==e.tag||"head"!==(n=e.type)&&"body"!==n&&!cu(e.type,e.memoizedProps))){var t=Nc;if(t)if($c(e))ad(e),Jc();else for(;t;)qc(e,t),t=Eu(t)}var n;return id(e),Nc=e.tag===d?rd(e):Lc?Eu(e.stateNode):null,!0}function ad(e){for(var t=Nc;t;)Kc(e,t),t=Eu(t)}function sd(){Lc=null,Nc=null,Uc=!1,Gc=!1}function ld(){null!==Hc&&(Hv(Hc),Hc=null)}function ud(){return Uc}function cd(e){null===Hc?Hc=[e]:Hc.push(e)}var dd=r.ReactCurrentBatchConfig,fd={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},pd=function(e){var t=[];return e.forEach((function(e){t.push(e)})),t.sort().join(", ")},hd=[],md=[],Ad=[],gd=[],vd=[],yd=[],bd=new Set;fd.recordUnsafeLifecycleWarnings=function(e,t){bd.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&hd.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillMount&&md.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&Ad.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&gd.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&vd.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillUpdate&&yd.push(e))},fd.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;hd.length>0&&(hd.forEach((function(t){e.add(Ue(t)||"Component"),bd.add(t.type)})),hd=[]);var t=new Set;md.length>0&&(md.forEach((function(e){t.add(Ue(e)||"Component"),bd.add(e.type)})),md=[]);var n=new Set;Ad.length>0&&(Ad.forEach((function(e){n.add(Ue(e)||"Component"),bd.add(e.type)})),Ad=[]);var r=new Set;gd.length>0&&(gd.forEach((function(e){r.add(Ue(e)||"Component"),bd.add(e.type)})),gd=[]);var i=new Set;vd.length>0&&(vd.forEach((function(e){i.add(Ue(e)||"Component"),bd.add(e.type)})),vd=[]);var s=new Set;yd.length>0&&(yd.forEach((function(e){s.add(Ue(e)||"Component"),bd.add(e.type)})),yd=[]),t.size>0&&a("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",pd(t)),r.size>0&&a("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s",pd(r)),s.size>0&&a("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",pd(s)),e.size>0&&o("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",pd(e)),n.size>0&&o("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",pd(n)),i.size>0&&o("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",pd(i))};var xd=new Map,Sd=new Set;function _d(e,t){if(e&&e.defaultProps){var n=we({},t),r=e.defaultProps;for(var i in r)void 0===n[i]&&(n[i]=r[i]);return n}return t}fd.recordLegacyContextWarning=function(e,t){var n=function(e){for(var t=null,n=e;null!==n;)8&n.mode&&(t=n),n=n.return;return t}(e);if(null!==n){if(!Sd.has(e.type)){var r=xd.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],xd.set(n,r)),r.push(e))}}else a("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.")},fd.flushLegacyContextWarning=function(){xd.forEach((function(e,t){if(0!==e.length){var n=e[0],r=new Set;e.forEach((function(e){r.add(Ue(e)||"Component"),Sd.add(e.type)}));var i=pd(r);try{qe(n),a("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",i)}finally{Ke()}}}))},fd.discardPendingWarnings=function(){hd=[],md=[],Ad=[],gd=[],vd=[],yd=[],xd=new Map};var wd,Ed=$u(null);wd={};var Cd=null,Td=null,Pd=null,kd=!1;function Rd(){Cd=null,Td=null,Pd=null,kd=!1}function Id(){kd=!0}function Od(){kd=!1}function Md(e,t,n){ec(Ed,t._currentValue,e),t._currentValue=n,void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==wd&&a("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=wd}function jd(e,t){var n=Ed.current;Ju(Ed,t),e._currentValue=n}function zd(e,t,n){for(var r=e;null!==r;){var i=r.alternate;if(co(r.childLanes,t)?null===i||co(i.childLanes,t)||(i.childLanes=fo(i.childLanes,t)):(r.childLanes=fo(r.childLanes,t),null!==i&&(i.childLanes=fo(i.childLanes,t))),r===n)break;r=r.return}r!==n&&a("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Bd(e,t,n){!function(e,t,n){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var i=void 0,o=r.dependencies;if(null!==o){i=r.child;for(var a=o.firstContext;null!==a;){if(a.context===t){if(1===r.tag){var s=ao(n),u=$d(Ki,s);u.tag=qd;var c=r.updateQueue;if(null===c);else{var d=c.shared,f=d.pending;null===f?u.next=u:(u.next=f.next,f.next=u),d.pending=u}}r.lanes=fo(r.lanes,n);var p=r.alternate;null!==p&&(p.lanes=fo(p.lanes,n)),zd(r.return,n,e),o.lanes=fo(o.lanes,n);break}a=a.next}}else if(r.tag===l)i=r.type===e.type?null:r.child;else if(r.tag===m){var h=r.return;if(null===h)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");h.lanes=fo(h.lanes,n);var A=h.alternate;null!==A&&(A.lanes=fo(A.lanes,n)),zd(h,n,e),i=r.sibling}else i=r.child;if(null!==i)i.return=r;else for(i=r;null!==i;){if(i===e){i=null;break}var g=i.sibling;if(null!==g){g.return=i.return,i=g;break}i=i.return}r=i}}(e,t,n)}function Fd(e,t){Cd=e,Td=null,Pd=null;var n=e.dependencies;null!==n&&null!==n.firstContext&&(uo(n.lanes,t)&&pA(),n.firstContext=null)}function Dd(e){kd&&a("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(Pd===e);else{var n={context:e,memoizedValue:t,next:null};if(null===Td){if(null===Cd)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Td=n,Cd.dependencies={lanes:0,firstContext:n}}else Td=Td.next=n}return t}var Ld=null;function Nd(e){null===Ld?Ld=[e]:Ld.push(e)}function Ud(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Nd(t)):(n.next=i.next,i.next=n),t.interleaved=n,Wd(e,r)}function Gd(e,t){return Wd(e,t)}var Hd=Wd;function Wd(e,t){e.lanes=fo(e.lanes,t);var n=e.alternate;null!==n&&(n.lanes=fo(n.lanes,t)),null===n&&4098&e.flags&&Sy(e);for(var r=e,i=e.return;null!==i;)i.childLanes=fo(i.childLanes,t),null!==(n=i.alternate)?n.childLanes=fo(n.childLanes,t):4098&i.flags&&Sy(e),r=i,i=i.return;return 3===r.tag?r.stateNode:null}var Vd,Xd,Kd=0,qd=2,Qd=!1;function Yd(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null};e.updateQueue=t}function Zd(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var i={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=i}}function $d(e,t){return{eventTime:e,lane:t,tag:Kd,payload:null,callback:null,next:null}}function Jd(e,t,n){var r=e.updateQueue;if(null===r)return null;var i=r.shared;if(Xd!==i||Vd||(a("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Vd=!0),(Qg&Ng)!==Lg){var o=i.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),i.pending=t,Hd(e,n)}return function(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Nd(t)):(n.next=i.next,i.next=n),t.interleaved=n,Wd(e,r)}(e,i,t,n)}function ef(e,t,n){var r=t.updateQueue;if(null!==r){var i=r.shared;if(ro(n)){var o=i.lanes,a=fo(o=ho(o,e.pendingLanes),n);i.lanes=a,vo(e,a)}}}function tf(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var i=r.updateQueue;if(n===i){var o=null,a=null,s=n.firstBaseUpdate;if(null!==s){var l=s;do{var u={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};null===a?o=a=u:(a.next=u,a=u),l=l.next}while(null!==l);null===a?o=a=t:(a.next=t,a=t)}else o=a=t;return n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}}var c=n.lastBaseUpdate;null===c?n.firstBaseUpdate=t:c.next=t,n.lastBaseUpdate=t}function nf(e,t,n,r,i,o){switch(n.tag){case 1:var a=n.payload;if("function"==typeof a){Id();var s=a.call(o,r,i);if(8&e.mode){Yr(!0);try{a.call(o,r,i)}finally{Yr(!1)}}return Od(),s}return a;case 3:e.flags=-65537&e.flags|tr;case Kd:var l,u=n.payload;if("function"==typeof u){if(Id(),l=u.call(o,r,i),8&e.mode){Yr(!0);try{u.call(o,r,i)}finally{Yr(!1)}}Od()}else l=u;return null==l?r:we({},r,l);case qd:return Qd=!0,r}return r}function rf(e,t,n,r){var i=e.updateQueue;Qd=!1,Xd=i.shared;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;if(null!==c){var d=c.updateQueue,f=d.lastBaseUpdate;f!==a&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=l)}}if(null!==o){for(var p=i.baseState,h=0,m=null,A=null,g=null,v=o;;){var y=v.lane,b=v.eventTime;if(co(r,y)){if(null!==g){var x={eventTime:b,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null};g=g.next=x}if(p=nf(e,0,v,p,t,n),null!==v.callback&&0!==v.lane){e.flags|=64;var S=i.effects;null===S?i.effects=[v]:S.push(v)}}else{var _={eventTime:b,lane:y,tag:v.tag,payload:v.payload,callback:v.callback,next:null};null===g?(A=g=_,m=p):g=g.next=_,h=fo(h,y)}if(null===(v=v.next)){if(null===(s=i.shared.pending))break;var w=s,E=w.next;w.next=null,v=E,i.lastBaseUpdate=w,i.shared.pending=null}}null===g&&(m=p),i.baseState=m,i.firstBaseUpdate=A,i.lastBaseUpdate=g;var C=i.shared.interleaved;if(null!==C){var T=C;do{h=fo(h,T.lane),T=T.next}while(T!==C)}else null===o&&(i.shared.lanes=0);ty(h),e.lanes=h,e.memoizedState=p}Xd=null}function of(e,t){if("function"!=typeof e)throw new Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function af(){Qd=!1}function sf(){return Qd}function lf(e,t,n){var r=t.effects;if(t.effects=null,null!==r)for(var i=0;i<r.length;i++){var o=r[i],a=o.callback;null!==a&&(o.callback=null,of(a,n))}}Vd=!1,Xd=null;var uf,cf,df,ff,pf,hf,mf,Af,gf,vf,yf={},bf=(new t.Component).refs;uf=new Set,cf=new Set,df=new Set,ff=new Set,Af=new Set,pf=new Set,gf=new Set,vf=new Set;var xf=new Set;function Sf(e,t,n,r){var i=e.memoizedState,o=n(r,i);if(8&e.mode){Yr(!0);try{o=n(r,i)}finally{Yr(!1)}}hf(t,o);var a=null==o?i:we({},i,o);e.memoizedState=a,0===e.lanes&&(e.updateQueue.baseState=a)}mf=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;xf.has(n)||(xf.add(n),a("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},hf=function(e,t){if(void 0===t){var n=Le(e)||"Component";pf.has(n)||(pf.add(n),a("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(yf,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(yf);var _f,wf,Ef,Cf,Tf,Pf,kf={isMounted:function(e){var t=Sr.current;if(null!==t&&1===t.tag){var n=t,r=n.stateNode;r._warnedAboutRefsInRender||a("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Ue(n)||"A component"),r._warnedAboutRefsInRender=!0}var i=Jn(e);return!!i&&_r(i)===i},enqueueSetState:function(e,t,n){var r=Jn(e),i=Bv(),o=Fv(r),a=$d(i,o);a.payload=t,null!=n&&(mf(n,"setState"),a.callback=n);var s=Jd(r,a,o);null!==s&&(Lv(s,r,o,i),ef(s,r,o)),ui(r,o)},enqueueReplaceState:function(e,t,n){var r=Jn(e),i=Bv(),o=Fv(r),a=$d(i,o);a.tag=1,a.payload=t,null!=n&&(mf(n,"replaceState"),a.callback=n);var s=Jd(r,a,o);null!==s&&(Lv(s,r,o,i),ef(s,r,o)),ui(r,o)},enqueueForceUpdate:function(e,t){var n=Jn(e),r=Bv(),i=Fv(n),o=$d(r,i);o.tag=qd,null!=t&&(mf(t,"forceUpdate"),o.callback=t);var a=Jd(n,o,i);null!==a&&(Lv(a,n,i,r),ef(a,n,i)),function(e,t){null!==Kr&&"function"==typeof Kr.markForceUpdateScheduled&&Kr.markForceUpdateScheduled(e,t)}(n,i)}};function Rf(e,t,n,r,i,o,s){var l=e.stateNode;if("function"==typeof l.shouldComponentUpdate){var u=l.shouldComponentUpdate(r,o,s);if(8&e.mode){Yr(!0);try{u=l.shouldComponentUpdate(r,o,s)}finally{Yr(!1)}}return void 0===u&&a("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Le(t)||"Component"),u}return!(t.prototype&&t.prototype.isPureReactComponent&&_s(n,r)&&_s(i,o))}function If(e,t){var n;t.updater=kf,e.stateNode=t,n=e,t._reactInternals=n,t._reactInternalInstance=yf}function Of(e,t,n){var r=!1,i=tc,o=tc,s=t.contextType;if("contextType"in t&&null!==s&&(void 0===s||s.$$typeof!==se||void 0!==s._context)&&!vf.has(t)){vf.add(t);var l="";l=void 0===s?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof s?" However, it is set to a "+typeof s+".":s.$$typeof===ae?" Did you accidentally pass the Context.Provider instead?":void 0!==s._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(s).join(", ")+"}.",a("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Le(t)||"Component",l)}if("object"==typeof s&&null!==s)o=Dd(s);else{i=oc(0,t,!0);var u=t.contextTypes;o=(r=null!=u)?sc(e,i):tc}var c=new t(n,o);if(8&e.mode){Yr(!0);try{c=new t(n,o)}finally{Yr(!1)}}var d=e.memoizedState=null!==c.state&&void 0!==c.state?c.state:null;if(If(e,c),"function"==typeof t.getDerivedStateFromProps&&null===d){var f=Le(t)||"Component";cf.has(f)||(cf.add(f),a("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",f,null===c.state?"null":"undefined",f))}if("function"==typeof t.getDerivedStateFromProps||"function"==typeof c.getSnapshotBeforeUpdate){var p=null,h=null,m=null;if("function"==typeof c.componentWillMount&&!0!==c.componentWillMount.__suppressDeprecationWarning?p="componentWillMount":"function"==typeof c.UNSAFE_componentWillMount&&(p="UNSAFE_componentWillMount"),"function"==typeof c.componentWillReceiveProps&&!0!==c.componentWillReceiveProps.__suppressDeprecationWarning?h="componentWillReceiveProps":"function"==typeof c.UNSAFE_componentWillReceiveProps&&(h="UNSAFE_componentWillReceiveProps"),"function"==typeof c.componentWillUpdate&&!0!==c.componentWillUpdate.__suppressDeprecationWarning?m="componentWillUpdate":"function"==typeof c.UNSAFE_componentWillUpdate&&(m="UNSAFE_componentWillUpdate"),null!==p||null!==h||null!==m){var A=Le(t)||"Component",g="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ff.has(A)||(ff.add(A),a("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles",A,g,null!==p?"\n "+p:"",null!==h?"\n "+h:"",null!==m?"\n "+m:""))}}return r&&ac(e,i,o),c}function Mf(e,t,n,r){var i=t.state;if("function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i){var o=Ue(e)||"Component";uf.has(o)||(uf.add(o),a("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",o)),kf.enqueueReplaceState(t,t.state,null)}}function jf(e,t,n,r){!function(e,t,n){var r=e.stateNode,i=Le(t)||"Component";r.render||(t.prototype&&"function"==typeof t.prototype.render?a("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",i):a("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",i)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||a("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",i),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&a("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",i),r.propTypes&&a("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",i),r.contextType&&a("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",i),r.contextTypes&&a("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",i),t.contextType&&t.contextTypes&&!gf.has(t)&&(gf.add(t),a("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",i)),"function"==typeof r.componentShouldUpdate&&a("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",i),t.prototype&&t.prototype.isPureReactComponent&&void 0!==r.shouldComponentUpdate&&a("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Le(t)||"A pure component"),"function"==typeof r.componentDidUnmount&&a("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",i),"function"==typeof r.componentDidReceiveProps&&a("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",i),"function"==typeof r.componentWillRecieveProps&&a("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",i),"function"==typeof r.UNSAFE_componentWillRecieveProps&&a("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",i);var o=r.props!==n;void 0!==r.props&&o&&a("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",i,i),r.defaultProps&&a("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",i,i),"function"!=typeof r.getSnapshotBeforeUpdate||"function"==typeof r.componentDidUpdate||df.has(t)||(df.add(t),a("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Le(t))),"function"==typeof r.getDerivedStateFromProps&&a("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",i),"function"==typeof r.getDerivedStateFromError&&a("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",i),"function"==typeof t.getSnapshotBeforeUpdate&&a("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",i);var s=r.state;s&&("object"!=typeof s||_t(s))&&a("%s.state: must be set to an object or null",i),"function"==typeof r.getChildContext&&"object"!=typeof t.childContextTypes&&a("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",i)}(e,t,n);var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=bf,Yd(e);var o=t.contextType;if("object"==typeof o&&null!==o)i.context=Dd(o);else{var s=oc(0,t,!0);i.context=sc(e,s)}if(i.state===n){var l=Le(t)||"Component";Af.has(l)||(Af.add(l),a("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",l))}8&e.mode&&fd.recordLegacyContextWarning(e,i),fd.recordUnsafeLifecycleWarnings(e,i),i.state=e.memoizedState;var u=t.getDerivedStateFromProps;if("function"==typeof u&&(Sf(e,t,u,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(function(e,t){var n=t.state;"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),n!==t.state&&(a("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ue(e)||"Component"),kf.enqueueReplaceState(t,t.state,null))}(e,i),rf(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount){var c=4;c|=hr,e.mode&ci&&(c|=mr),e.flags|=c}}function zf(e,t,n){var r=n.ref;if(null!==r&&"function"!=typeof r&&"object"!=typeof r){if(8&e.mode&&(!n._owner||!n._self||n._owner.stateNode===n._self)){var i=Ue(e)||"Component";Ef[i]||(a('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r),Ef[i]=!0)}if(n._owner){var o,s=n._owner;if(s){var l=s;if(1!==l.tag)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");o=l.stateNode}if(!o)throw new Error("Missing owner for string ref "+r+". This error is likely caused by a bug in React. Please file an issue.");var u=o;!function(e,t){R(e)&&(a("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,k(e)),I(e))}(r,"ref");var c=""+r;if(null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===c)return t.ref;var d=function(e){var t=u.refs;t===bf&&(t=u.refs={}),null===e?delete t[c]:t[c]=e};return d._stringRef=c,d}if("string"!=typeof r)throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+r+") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.")}return r}function Bf(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Ff(e){var t=Ue(e)||"Component";Tf[t]||(Tf[t]=!0,a("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."))}function Df(e){var t=e._payload;return(0,e._init)(t)}function Lf(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=er):r.push(n)}}function n(n,r){if(!e)return null;for(var i=r;null!==i;)t(n,i),i=i.sibling;return null}function r(e,t){for(var n=new Map,r=t;null!==r;)null!==r.key?n.set(r.key,r):n.set(r.index,r),r=r.sibling;return n}function i(e,t){var n=qy(e,t);return n.index=0,n.sibling=null,n}function o(t,n,r){if(t.index=r,!e)return t.flags|=fr,n;var i=t.alternate;if(null!==i){var o=i.index;return o<n?(t.flags|=2,n):o}return t.flags|=2,n}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){if(null===t||6!==t.tag){var o=eb(n,e.mode,r);return o.return=e,o}var a=i(t,n);return a.return=e,a}function u(e,t,n,r){var o=n.type;if(o===ne)return d(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===o||Fy(t,n)||"object"==typeof o&&null!==o&&o.$$typeof===fe&&Df(o)===t.type)){var a=i(t,n.props);return a.ref=zf(e,t,n),a.return=e,a._debugSource=n._source,a._debugOwner=n._owner,a}var s=Zy(n,e.mode,r);return s.ref=zf(e,t,n),s.return=e,s}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var o=tb(n,e.mode,r);return o.return=e,o}var a=i(t,n.children||[]);return a.return=e,a}function d(e,t,n,r,o){if(null===t||7!==t.tag){var a=$y(n,e.mode,r,o);return a.return=e,a}var s=i(t,n);return s.return=e,s}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t){var r=eb(""+t,e.mode,n);return r.return=e,r}if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:var i=Zy(t,e.mode,n);return i.ref=zf(e,null,t),i.return=e,i;case te:var o=tb(t,e.mode,n);return o.return=e,o;case fe:var a=t._payload;return f(e,(0,t._init)(a),n)}if(_t(t)||me(t)){var s=$y(t,e.mode,n,null);return s.return=e,s}Bf(0,t)}return"function"==typeof t&&Ff(e),null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?u(e,t,n,r):null;case te:return n.key===i?c(e,t,n,r):null;case fe:var o=n._payload;return p(e,t,(0,n._init)(o),r)}if(_t(n)||me(n))return null!==i?null:d(e,t,n,r,null);Bf(0,n)}return"function"==typeof n&&Ff(e),null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return u(t,e.get(null===r.key?n:r.key)||null,r,i);case te:return c(t,e.get(null===r.key?n:r.key)||null,r,i);case fe:var o=r._payload;return h(e,t,n,(0,r._init)(o),i)}if(_t(r)||me(r))return d(t,e.get(n)||null,r,i,null);Bf(0,r)}return"function"==typeof r&&Ff(t),null}function m(e,t,n){if("object"!=typeof e||null===e)return t;switch(e.$$typeof){case ee:case te:Pf(e,n);var r=e.key;if("string"!=typeof r)break;if(null===t){(t=new Set).add(r);break}if(!t.has(r)){t.add(r);break}a("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",r);break;case fe:var i=e._payload;m((0,e._init)(i),t,n)}return t}return function l(u,c,d,A){if("object"==typeof d&&null!==d&&d.type===ne&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case ee:return s(function(e,r,o,a){for(var s=o.key,l=r;null!==l;){if(l.key===s){var u=o.type;if(u===ne){if(7===l.tag){n(e,l.sibling);var c=i(l,o.props.children);return c.return=e,c._debugSource=o._source,c._debugOwner=o._owner,c}}else if(l.elementType===u||Fy(l,o)||"object"==typeof u&&null!==u&&u.$$typeof===fe&&Df(u)===l.type){n(e,l.sibling);var d=i(l,o.props);return d.ref=zf(e,l,o),d.return=e,d._debugSource=o._source,d._debugOwner=o._owner,d}n(e,l);break}t(e,l),l=l.sibling}if(o.type===ne){var f=$y(o.props.children,e.mode,a,o.key);return f.return=e,f}var p=Zy(o,e.mode,a);return p.ref=zf(e,r,o),p.return=e,p}(u,c,d,A));case te:return s(function(e,r,o,a){for(var s=o.key,l=r;null!==l;){if(l.key===s){if(4===l.tag&&l.stateNode.containerInfo===o.containerInfo&&l.stateNode.implementation===o.implementation){n(e,l.sibling);var u=i(l,o.children||[]);return u.return=e,u}n(e,l);break}t(e,l),l=l.sibling}var c=tb(o,e.mode,a);return c.return=e,c}(u,c,d,A));case fe:var g=d._payload;return l(u,c,(0,d._init)(g),A)}if(_t(d))return function(i,a,s,l){for(var u=null,c=0;c<s.length;c++)u=m(s[c],u,i);for(var d=null,A=null,g=a,v=0,y=0,b=null;null!==g&&y<s.length;y++){g.index>y?(b=g,g=null):b=g.sibling;var x=p(i,g,s[y],l);if(null===x){null===g&&(g=b);break}e&&g&&null===x.alternate&&t(i,g),v=o(x,v,y),null===A?d=x:A.sibling=x,A=x,g=b}if(y===s.length)return n(i,g),ud()&&Mc(i,y),d;if(null===g){for(;y<s.length;y++){var S=f(i,s[y],l);null!==S&&(v=o(S,v,y),null===A?d=S:A.sibling=S,A=S)}return ud()&&Mc(i,y),d}for(var _=r(0,g);y<s.length;y++){var w=h(_,i,y,s[y],l);null!==w&&(e&&null!==w.alternate&&_.delete(null===w.key?y:w.key),v=o(w,v,y),null===A?d=w:A.sibling=w,A=w)}return e&&_.forEach((function(e){return t(i,e)})),ud()&&Mc(i,y),d}(u,c,d,A);if(me(d))return function(i,s,l,u){var c=me(l);if("function"!=typeof c)throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");"function"==typeof Symbol&&"Generator"===l[Symbol.toStringTag]&&(wf||a("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),wf=!0),l.entries===c&&(_f||a("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),_f=!0);var d=c.call(l);if(d)for(var A=null,g=d.next();!g.done;g=d.next())A=m(g.value,A,i);var v=c.call(l);if(null==v)throw new Error("An iterable object provided no iterator.");for(var y=null,b=null,x=s,S=0,_=0,w=null,E=v.next();null!==x&&!E.done;_++,E=v.next()){x.index>_?(w=x,x=null):w=x.sibling;var C=p(i,x,E.value,u);if(null===C){null===x&&(x=w);break}e&&x&&null===C.alternate&&t(i,x),S=o(C,S,_),null===b?y=C:b.sibling=C,b=C,x=w}if(E.done)return n(i,x),ud()&&Mc(i,_),y;if(null===x){for(;!E.done;_++,E=v.next()){var T=f(i,E.value,u);null!==T&&(S=o(T,S,_),null===b?y=T:b.sibling=T,b=T)}return ud()&&Mc(i,_),y}for(var P=r(0,x);!E.done;_++,E=v.next()){var k=h(P,i,_,E.value,u);null!==k&&(e&&null!==k.alternate&&P.delete(null===k.key?_:k.key),S=o(k,S,_),null===b?y=k:b.sibling=k,b=k)}return e&&P.forEach((function(e){return t(i,e)})),ud()&&Mc(i,_),y}(u,c,d,A);Bf(0,d)}return"string"==typeof d&&""!==d||"number"==typeof d?s(function(e,t,r,o){if(null!==t&&6===t.tag){n(e,t.sibling);var a=i(t,r);return a.return=e,a}n(e,t);var s=eb(r,e.mode,o);return s.return=e,s}(u,c,""+d,A)):("function"==typeof d&&Ff(u),n(u,c))}}_f=!1,wf=!1,Ef={},Cf={},Tf={},Pf=function(e,t){if(null!==e&&"object"==typeof e&&e._store&&!e._store.validated&&null==e.key){if("object"!=typeof e._store)throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=Ue(t)||"Component";Cf[n]||(Cf[n]=!0,a('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var Nf=Lf(!0),Uf=Lf(!1);function Gf(e,t){for(var n=e.child;null!==n;)Qy(n,t),n=n.sibling}var Hf={},Wf=$u(Hf),Vf=$u(Hf),Xf=$u(Hf);function Kf(e){if(e===Hf)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function qf(){return Kf(Xf.current)}function Qf(e,t){ec(Xf,t,e),ec(Vf,e,e),ec(Wf,Hf,e);var n=function(e){var t,n,r=e.nodeType;switch(r){case 9:case 11:t=9===r?"#document":"#fragment";var i=e.documentElement;n=i?i.namespaceURI:Ft(null,"");break;default:var o=8===r?e.parentNode:e;n=Ft(o.namespaceURI||null,t=o.tagName)}var a=t.toLowerCase();return{namespace:n,ancestorInfo:ql(null,a)}}(t);Ju(Wf,e),ec(Wf,n,e)}function Yf(e){Ju(Wf,e),Ju(Vf,e),Ju(Xf,e)}function Zf(){return Kf(Wf.current)}function $f(e){Kf(Xf.current);var t,n,r,i=Kf(Wf.current),o=(t=i,n=e.type,{namespace:Ft((r=t).namespace,n),ancestorInfo:ql(r.ancestorInfo,n)});i!==o&&(ec(Vf,e,e),ec(Wf,o,e))}function Jf(e){Vf.current===e&&(Ju(Wf,e),Ju(Vf,e))}var ep=1,tp=1,np=2,rp=$u(0);function ip(e,t){return!!(e&t)}function op(e){return e&ep}function ap(e,t){return e&ep|t}function sp(e,t){ec(rp,t,e)}function lp(e){Ju(rp,e)}function up(e,t){var n=e.memoizedState;return null!==n?null!==n.dehydrated:(e.memoizedProps,!0)}function cp(e){for(var t=e;null!==t;){if(t.tag===d){var n=t.memoizedState;if(null!==n){var r=n.dehydrated;if(null===r||Su(r)||_u(r))return t}}else if(t.tag===A&&void 0!==t.memoizedProps.revealOrder){if(t.flags&tr)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dp=0,fp=1,pp=2,hp=4,mp=8,Ap=[];function gp(){for(var e=0;e<Ap.length;e++)Ap[e]._workInProgressVersionPrimary=null;Ap.length=0}function vp(e,t){var n=(0,t._getVersion)(t._source);null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)}var yp,bp,xp=r.ReactCurrentDispatcher,Sp=r.ReactCurrentBatchConfig;yp=new Set;var _p=0,wp=null,Ep=null,Cp=null,Tp=!1,Pp=!1,kp=0,Rp=0,Ip=null,Op=null,Mp=-1,jp=!1;function zp(){var e=Ip;null===Op?Op=[e]:Op.push(e)}function Bp(){var e=Ip;null!==Op&&(Mp++,Op[Mp]!==e&&function(e){var t=Ue(wp);if(!yp.has(t)&&(yp.add(t),null!==Op)){for(var n="",r=30,i=0;i<=Mp;i++){for(var o=Op[i],s=i===Mp?e:o,l=i+1+". "+o;l.length<r;)l+=" ";n+=l+=s+"\n"}a("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}(e))}function Fp(e){null==e||_t(e)||a("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ip,typeof e)}function Dp(){throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.")}function Lp(e,t){if(jp)return!1;if(null===t)return a("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ip),!1;e.length!==t.length&&a("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",Ip,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Ss(e[n],t[n]))return!1;return!0}function Np(e,t,n,r,i,o){_p=o,wp=t,Op=null!==e?e._debugHookTypes:null,Mp=-1,jp=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=0,null!==e&&null!==e.memoizedState?xp.current=Xh:xp.current=null!==Op?Vh:Wh;var s=n(r,i);if(Pp){var l=0;do{if(Pp=!1,kp=0,l>=25)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,jp=!1,Ep=null,Cp=null,t.updateQueue=null,Mp=-1,xp.current=Kh,s=n(r,i)}while(Pp)}xp.current=Hh,t._debugHookTypes=Op;var u=null!==Ep&&null!==Ep.next;if(_p=0,wp=null,Ep=null,Cp=null,Ip=null,Op=null,Mp=-1,null!==e&&(e.flags&xr)!=(t.flags&xr)&&1&e.mode&&a("Internal React error: Expected static flag was missing. Please notify the React team."),Tp=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return s}function Up(){var e=0!==kp;return kp=0,e}function Gp(e,t,n){t.updateQueue=e.updateQueue,t.mode&ci?t.flags&=-50333701:t.flags&=-2053,e.lanes=po(e.lanes,n)}function Hp(){if(xp.current=Hh,Tp){for(var e=wp.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Tp=!1}_p=0,wp=null,Ep=null,Cp=null,Op=null,Mp=-1,Ip=null,jh=!1,Pp=!1,kp=0}function Wp(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Cp?wp.memoizedState=Cp=e:Cp=Cp.next=e,Cp}function Vp(){var e,t;if(null===Ep){var n=wp.alternate;e=null!==n?n.memoizedState:null}else e=Ep.next;if(null!==(t=null===Cp?wp.memoizedState:Cp.next))t=(Cp=t).next,Ep=e;else{if(null===e)throw new Error("Rendered more hooks than during the previous render.");var r={memoizedState:(Ep=e).memoizedState,baseState:Ep.baseState,baseQueue:Ep.baseQueue,queue:Ep.queue,next:null};null===Cp?wp.memoizedState=Cp=r:Cp=Cp.next=r}return Cp}function Xp(e,t){return"function"==typeof t?t(e):t}function Kp(e,t,n){var r,i=Wp();r=void 0!==n?n(t):t,i.memoizedState=i.baseState=r;var o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};i.queue=o;var a=o.dispatch=Fh.bind(null,wp,o);return[i.memoizedState,a]}function qp(e,t,n){var r=Vp(),i=r.queue;if(null===i)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");i.lastRenderedReducer=e;var o=Ep,s=o.baseQueue,l=i.pending;if(null!==l){if(null!==s){var u=s.next,c=l.next;s.next=c,l.next=u}o.baseQueue!==s&&a("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),o.baseQueue=s=l,i.pending=null}if(null!==s){var d=s.next,f=o.baseState,p=null,h=null,m=null,A=d;do{var g=A.lane;if(co(_p,g)){if(null!==m){var v={lane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};m=m.next=v}f=A.hasEagerState?A.eagerState:e(f,A.action)}else{var y={lane:g,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};null===m?(h=m=y,p=f):m=m.next=y,wp.lanes=fo(wp.lanes,g),ty(g)}A=A.next}while(null!==A&&A!==d);null===m?p=f:m.next=h,Ss(f,r.memoizedState)||pA(),r.memoizedState=f,r.baseState=p,r.baseQueue=m,i.lastRenderedState=f}var b=i.interleaved;if(null!==b){var x=b;do{var S=x.lane;wp.lanes=fo(wp.lanes,S),ty(S),x=x.next}while(x!==b)}else null===s&&(i.lanes=0);var _=i.dispatch;return[r.memoizedState,_]}function Qp(e,t,n){var r=Vp(),i=r.queue;if(null===i)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");i.lastRenderedReducer=e;var o=i.dispatch,a=i.pending,s=r.memoizedState;if(null!==a){i.pending=null;var l=a.next,u=l;do{s=e(s,u.action),u=u.next}while(u!==l);Ss(s,r.memoizedState)||pA(),r.memoizedState=s,null===r.baseQueue&&(r.baseState=s),i.lastRenderedState=s}return[s,o]}function Yp(e,t,n){var r,i=wp,o=Wp();if(ud()){if(void 0===n)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=n(),bp||r!==n()&&(a("The result of getServerSnapshot should be cached to avoid an infinite loop"),bp=!0)}else{if(r=t(),!bp){var s=t();Ss(r,s)||(a("The result of getSnapshot should be cached to avoid an infinite loop"),bp=!0)}var l=zv();if(null===l)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");no(0,_p)||$p(i,t,r)}o.memoizedState=r;var u={value:r,getSnapshot:t};return o.queue=u,dh(eh.bind(null,i,u,e),[e]),i.flags|=or,ah(fp|mp,Jp.bind(null,i,u,r,t),void 0,null),r}function Zp(e,t,n){var r=wp,i=Vp(),o=t();if(!bp){var s=t();Ss(o,s)||(a("The result of getSnapshot should be cached to avoid an infinite loop"),bp=!0)}var l=i.memoizedState,u=!Ss(l,o);u&&(i.memoizedState=o,pA());var c=i.queue;if(fh(eh.bind(null,r,c,e),[e]),c.getSnapshot!==t||u||null!==Cp&&Cp.memoizedState.tag&fp){r.flags|=or,ah(fp|mp,Jp.bind(null,r,c,o,t),void 0,null);var d=zv();if(null===d)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");no(0,_p)||$p(r,t,o)}return o}function $p(e,t,n){e.flags|=lr;var r={getSnapshot:t,value:n},i=wp.updateQueue;if(null===i)i={lastEffect:null,stores:null},wp.updateQueue=i,i.stores=[r];else{var o=i.stores;null===o?i.stores=[r]:o.push(r)}}function Jp(e,t,n,r){t.value=n,t.getSnapshot=r,th(t)&&nh(e)}function eh(e,t,n){return n((function(){th(t)&&nh(e)}))}function th(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!Ss(n,r)}catch(i){return!0}}function nh(e){var t=Gd(e,mi);null!==t&&Lv(t,e,mi,Ki)}function rh(e){var t=Wp();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xp,lastRenderedState:e};t.queue=n;var r=n.dispatch=Dh.bind(null,wp,n);return[t.memoizedState,r]}function ih(e){return qp(Xp)}function oh(e){return Qp(Xp)}function ah(e,t,n,r){var i={tag:e,create:t,destroy:n,deps:r,next:null},o=wp.updateQueue;if(null===o)o={lastEffect:null,stores:null},wp.updateQueue=o,o.lastEffect=i.next=i;else{var a=o.lastEffect;if(null===a)o.lastEffect=i.next=i;else{var s=a.next;a.next=i,i.next=s,o.lastEffect=i}}return i}function sh(e){var t={current:e};return Wp().memoizedState=t,t}function lh(e){return Vp().memoizedState}function uh(e,t,n,r){var i=Wp(),o=void 0===r?null:r;wp.flags|=e,i.memoizedState=ah(fp|t,n,void 0,o)}function ch(e,t,n,r){var i=Vp(),o=void 0===r?null:r,a=void 0;if(null!==Ep){var s=Ep.memoizedState;if(a=s.destroy,null!==o&&Lp(o,s.deps))return void(i.memoizedState=ah(t,n,a,o))}wp.flags|=e,i.memoizedState=ah(fp|t,n,a,o)}function dh(e,t){return wp.mode&ci?uh(41945088,mp,e,t):uh(8390656,mp,e,t)}function fh(e,t){return ch(or,mp,e,t)}function ph(e,t){return uh(4,pp,e,t)}function hh(e,t){return ch(4,pp,e,t)}function mh(e,t){var n=4;return n|=hr,wp.mode&ci&&(n|=mr),uh(n,hp,e,t)}function Ah(e,t){return ch(4,hp,e,t)}function gh(e,t){if("function"==typeof t){var n=t,r=e();return n(r),function(){n(null)}}if(null!=t){var i=t;i.hasOwnProperty("current")||a("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(i).join(", ")+"}");var o=e();return i.current=o,function(){i.current=null}}}function vh(e,t,n){"function"!=typeof t&&a("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null,i=4;return i|=hr,wp.mode&ci&&(i|=mr),uh(i,hp,gh.bind(null,t,e),r)}function yh(e,t,n){"function"!=typeof t&&a("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return ch(4,hp,gh.bind(null,t,e),r)}function bh(e,t){}var xh=bh;function Sh(e,t){var n=void 0===t?null:t;return Wp().memoizedState=[e,n],e}function _h(e,t){var n=Vp(),r=void 0===t?null:t,i=n.memoizedState;return null!==i&&null!==r&&Lp(r,i[1])?i[0]:(n.memoizedState=[e,r],e)}function wh(e,t){var n=Wp(),r=void 0===t?null:t,i=e();return n.memoizedState=[i,r],i}function Eh(e,t){var n=Vp(),r=void 0===t?null:t,i=n.memoizedState;if(null!==i&&null!==r&&Lp(r,i[1]))return i[0];var o=e();return n.memoizedState=[o,r],o}function Ch(e){return Wp().memoizedState=e,e}function Th(e){return kh(Vp(),Ep.memoizedState,e)}function Ph(e){var t=Vp();return null===Ep?(t.memoizedState=e,e):kh(t,Ep.memoizedState,e)}function kh(e,t,n){if(_p&(mi|gi|yi)){if(!Ss(n,t)){var r=io();wp.lanes=fo(wp.lanes,r),ty(r),e.baseState=!0}return t}return e.baseState&&(e.baseState=!1,pA()),e.memoizedState=n,n}function Rh(e,t,n){var r,i,a=Io();Oo((i=To,0!==(r=a)&&r<i?r:i)),e(!0);var s=Sp.transition;Sp.transition={};var l=Sp.transition;Sp.transition._updatedFibers=new Set;try{e(!1),t()}finally{Oo(a),Sp.transition=s,null===s&&l._updatedFibers&&(l._updatedFibers.size>10&&o("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),l._updatedFibers.clear())}}function Ih(){var e=rh(!1),t=e[0],n=e[1],r=Rh.bind(null,n);return Wp().memoizedState=r,[t,r]}function Oh(){return[ih()[0],Vp().memoizedState]}function Mh(){return[oh()[0],Vp().memoizedState]}var jh=!1;function zh(){var e,t=Wp(),n=zv().identifierPrefix;if(ud()){e=":"+n+"R"+Oc();var r=kp++;r>0&&(e+="H"+r.toString(32)),e+=":"}else e=":"+n+"r"+(Rp++).toString(32)+":";return t.memoizedState=e,e}function Bh(){return Vp().memoizedState}function Fh(e,t,n){"function"==typeof arguments[3]&&a("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=Fv(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Lh(e))Nh(t,i);else{var o=Ud(e,t,i,r);null!==o&&(Lv(o,e,r,Bv()),Uh(o,t,r))}Gh(e,r)}function Dh(e,t,n){"function"==typeof arguments[3]&&a("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=Fv(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Lh(e))Nh(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)){var s=t.lastRenderedReducer;if(null!==s){var l;l=xp.current,xp.current=Qh;try{var u=t.lastRenderedState,c=s(u,n);if(i.hasEagerState=!0,i.eagerState=c,Ss(c,u))return void function(e,t,n){var r=t.interleaved;null===r?(n.next=n,Nd(t)):(n.next=r.next,r.next=n),t.interleaved=n}(0,t,i)}catch(f){}finally{xp.current=l}}}var d=Ud(e,t,i,r);null!==d&&(Lv(d,e,r,Bv()),Uh(d,t,r))}Gh(e,r)}function Lh(e){var t=e.alternate;return e===wp||null!==t&&t===wp}function Nh(e,t){Pp=Tp=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Uh(e,t,n){if(ro(n)){var r=t.lanes,i=fo(r=ho(r,e.pendingLanes),n);t.lanes=i,vo(e,i)}}function Gh(e,t,n){ui(e,t)}var Hh={readContext:Dd,useCallback:Dp,useContext:Dp,useEffect:Dp,useImperativeHandle:Dp,useInsertionEffect:Dp,useLayoutEffect:Dp,useMemo:Dp,useReducer:Dp,useRef:Dp,useState:Dp,useDebugValue:Dp,useDeferredValue:Dp,useTransition:Dp,useMutableSource:Dp,useSyncExternalStore:Dp,useId:Dp,unstable_isNewReconciler:b},Wh=null,Vh=null,Xh=null,Kh=null,qh=null,Qh=null,Yh=null,Zh=function(){a("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},$h=function(){a("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Wh={readContext:function(e){return Dd(e)},useCallback:function(e,t){return Ip="useCallback",zp(),Fp(t),Sh(e,t)},useContext:function(e){return Ip="useContext",zp(),Dd(e)},useEffect:function(e,t){return Ip="useEffect",zp(),Fp(t),dh(e,t)},useImperativeHandle:function(e,t,n){return Ip="useImperativeHandle",zp(),Fp(n),vh(e,t,n)},useInsertionEffect:function(e,t){return Ip="useInsertionEffect",zp(),Fp(t),ph(e,t)},useLayoutEffect:function(e,t){return Ip="useLayoutEffect",zp(),Fp(t),mh(e,t)},useMemo:function(e,t){Ip="useMemo",zp(),Fp(t);var n=xp.current;xp.current=qh;try{return wh(e,t)}finally{xp.current=n}},useReducer:function(e,t,n){Ip="useReducer",zp();var r=xp.current;xp.current=qh;try{return Kp(e,t,n)}finally{xp.current=r}},useRef:function(e){return Ip="useRef",zp(),sh(e)},useState:function(e){Ip="useState",zp();var t=xp.current;xp.current=qh;try{return rh(e)}finally{xp.current=t}},useDebugValue:function(e,t){Ip="useDebugValue",zp()},useDeferredValue:function(e){return Ip="useDeferredValue",zp(),Ch(e)},useTransition:function(){return Ip="useTransition",zp(),Ih()},useMutableSource:function(e,t,n){Ip="useMutableSource",zp()},useSyncExternalStore:function(e,t,n){return Ip="useSyncExternalStore",zp(),Yp(e,t,n)},useId:function(){return Ip="useId",zp(),zh()},unstable_isNewReconciler:b},Vh={readContext:function(e){return Dd(e)},useCallback:function(e,t){return Ip="useCallback",Bp(),Sh(e,t)},useContext:function(e){return Ip="useContext",Bp(),Dd(e)},useEffect:function(e,t){return Ip="useEffect",Bp(),dh(e,t)},useImperativeHandle:function(e,t,n){return Ip="useImperativeHandle",Bp(),vh(e,t,n)},useInsertionEffect:function(e,t){return Ip="useInsertionEffect",Bp(),ph(e,t)},useLayoutEffect:function(e,t){return Ip="useLayoutEffect",Bp(),mh(e,t)},useMemo:function(e,t){Ip="useMemo",Bp();var n=xp.current;xp.current=qh;try{return wh(e,t)}finally{xp.current=n}},useReducer:function(e,t,n){Ip="useReducer",Bp();var r=xp.current;xp.current=qh;try{return Kp(e,t,n)}finally{xp.current=r}},useRef:function(e){return Ip="useRef",Bp(),sh(e)},useState:function(e){Ip="useState",Bp();var t=xp.current;xp.current=qh;try{return rh(e)}finally{xp.current=t}},useDebugValue:function(e,t){Ip="useDebugValue",Bp()},useDeferredValue:function(e){return Ip="useDeferredValue",Bp(),Ch(e)},useTransition:function(){return Ip="useTransition",Bp(),Ih()},useMutableSource:function(e,t,n){Ip="useMutableSource",Bp()},useSyncExternalStore:function(e,t,n){return Ip="useSyncExternalStore",Bp(),Yp(e,t,n)},useId:function(){return Ip="useId",Bp(),zh()},unstable_isNewReconciler:b},Xh={readContext:function(e){return Dd(e)},useCallback:function(e,t){return Ip="useCallback",Bp(),_h(e,t)},useContext:function(e){return Ip="useContext",Bp(),Dd(e)},useEffect:function(e,t){return Ip="useEffect",Bp(),fh(e,t)},useImperativeHandle:function(e,t,n){return Ip="useImperativeHandle",Bp(),yh(e,t,n)},useInsertionEffect:function(e,t){return Ip="useInsertionEffect",Bp(),hh(e,t)},useLayoutEffect:function(e,t){return Ip="useLayoutEffect",Bp(),Ah(e,t)},useMemo:function(e,t){Ip="useMemo",Bp();var n=xp.current;xp.current=Qh;try{return Eh(e,t)}finally{xp.current=n}},useReducer:function(e,t,n){Ip="useReducer",Bp();var r=xp.current;xp.current=Qh;try{return qp(e)}finally{xp.current=r}},useRef:function(e){return Ip="useRef",Bp(),lh()},useState:function(e){Ip="useState",Bp();var t=xp.current;xp.current=Qh;try{return ih()}finally{xp.current=t}},useDebugValue:function(e,t){return Ip="useDebugValue",Bp(),xh()},useDeferredValue:function(e){return Ip="useDeferredValue",Bp(),Th(e)},useTransition:function(){return Ip="useTransition",Bp(),Oh()},useMutableSource:function(e,t,n){Ip="useMutableSource",Bp()},useSyncExternalStore:function(e,t,n){return Ip="useSyncExternalStore",Bp(),Zp(e,t)},useId:function(){return Ip="useId",Bp(),Bh()},unstable_isNewReconciler:b},Kh={readContext:function(e){return Dd(e)},useCallback:function(e,t){return Ip="useCallback",Bp(),_h(e,t)},useContext:function(e){return Ip="useContext",Bp(),Dd(e)},useEffect:function(e,t){return Ip="useEffect",Bp(),fh(e,t)},useImperativeHandle:function(e,t,n){return Ip="useImperativeHandle",Bp(),yh(e,t,n)},useInsertionEffect:function(e,t){return Ip="useInsertionEffect",Bp(),hh(e,t)},useLayoutEffect:function(e,t){return Ip="useLayoutEffect",Bp(),Ah(e,t)},useMemo:function(e,t){Ip="useMemo",Bp();var n=xp.current;xp.current=Yh;try{return Eh(e,t)}finally{xp.current=n}},useReducer:function(e,t,n){Ip="useReducer",Bp();var r=xp.current;xp.current=Yh;try{return Qp(e)}finally{xp.current=r}},useRef:function(e){return Ip="useRef",Bp(),lh()},useState:function(e){Ip="useState",Bp();var t=xp.current;xp.current=Yh;try{return oh()}finally{xp.current=t}},useDebugValue:function(e,t){return Ip="useDebugValue",Bp(),xh()},useDeferredValue:function(e){return Ip="useDeferredValue",Bp(),Ph(e)},useTransition:function(){return Ip="useTransition",Bp(),Mh()},useMutableSource:function(e,t,n){Ip="useMutableSource",Bp()},useSyncExternalStore:function(e,t,n){return Ip="useSyncExternalStore",Bp(),Zp(e,t)},useId:function(){return Ip="useId",Bp(),Bh()},unstable_isNewReconciler:b},qh={readContext:function(e){return Zh(),Dd(e)},useCallback:function(e,t){return Ip="useCallback",$h(),zp(),Sh(e,t)},useContext:function(e){return Ip="useContext",$h(),zp(),Dd(e)},useEffect:function(e,t){return Ip="useEffect",$h(),zp(),dh(e,t)},useImperativeHandle:function(e,t,n){return Ip="useImperativeHandle",$h(),zp(),vh(e,t,n)},useInsertionEffect:function(e,t){return Ip="useInsertionEffect",$h(),zp(),ph(e,t)},useLayoutEffect:function(e,t){return Ip="useLayoutEffect",$h(),zp(),mh(e,t)},useMemo:function(e,t){Ip="useMemo",$h(),zp();var n=xp.current;xp.current=qh;try{return wh(e,t)}finally{xp.current=n}},useReducer:function(e,t,n){Ip="useReducer",$h(),zp();var r=xp.current;xp.current=qh;try{return Kp(e,t,n)}finally{xp.current=r}},useRef:function(e){return Ip="useRef",$h(),zp(),sh(e)},useState:function(e){Ip="useState",$h(),zp();var t=xp.current;xp.current=qh;try{return rh(e)}finally{xp.current=t}},useDebugValue:function(e,t){Ip="useDebugValue",$h(),zp()},useDeferredValue:function(e){return Ip="useDeferredValue",$h(),zp(),Ch(e)},useTransition:function(){return Ip="useTransition",$h(),zp(),Ih()},useMutableSource:function(e,t,n){Ip="useMutableSource",$h(),zp()},useSyncExternalStore:function(e,t,n){return Ip="useSyncExternalStore",$h(),zp(),Yp(e,t,n)},useId:function(){return Ip="useId",$h(),zp(),zh()},unstable_isNewReconciler:b},Qh={readContext:function(e){return Zh(),Dd(e)},useCallback:function(e,t){return Ip="useCallback",$h(),Bp(),_h(e,t)},useContext:function(e){return Ip="useContext",$h(),Bp(),Dd(e)},useEffect:function(e,t){return Ip="useEffect",$h(),Bp(),fh(e,t)},useImperativeHandle:function(e,t,n){return Ip="useImperativeHandle",$h(),Bp(),yh(e,t,n)},useInsertionEffect:function(e,t){return Ip="useInsertionEffect",$h(),Bp(),hh(e,t)},useLayoutEffect:function(e,t){return Ip="useLayoutEffect",$h(),Bp(),Ah(e,t)},useMemo:function(e,t){Ip="useMemo",$h(),Bp();var n=xp.current;xp.current=Qh;try{return Eh(e,t)}finally{xp.current=n}},useReducer:function(e,t,n){Ip="useReducer",$h(),Bp();var r=xp.current;xp.current=Qh;try{return qp(e)}finally{xp.current=r}},useRef:function(e){return Ip="useRef",$h(),Bp(),lh()},useState:function(e){Ip="useState",$h(),Bp();var t=xp.current;xp.current=Qh;try{return ih()}finally{xp.current=t}},useDebugValue:function(e,t){return Ip="useDebugValue",$h(),Bp(),xh()},useDeferredValue:function(e){return Ip="useDeferredValue",$h(),Bp(),Th(e)},useTransition:function(){return Ip="useTransition",$h(),Bp(),Oh()},useMutableSource:function(e,t,n){Ip="useMutableSource",$h(),Bp()},useSyncExternalStore:function(e,t,n){return Ip="useSyncExternalStore",$h(),Bp(),Zp(e,t)},useId:function(){return Ip="useId",$h(),Bp(),Bh()},unstable_isNewReconciler:b},Yh={readContext:function(e){return Zh(),Dd(e)},useCallback:function(e,t){return Ip="useCallback",$h(),Bp(),_h(e,t)},useContext:function(e){return Ip="useContext",$h(),Bp(),Dd(e)},useEffect:function(e,t){return Ip="useEffect",$h(),Bp(),fh(e,t)},useImperativeHandle:function(e,t,n){return Ip="useImperativeHandle",$h(),Bp(),yh(e,t,n)},useInsertionEffect:function(e,t){return Ip="useInsertionEffect",$h(),Bp(),hh(e,t)},useLayoutEffect:function(e,t){return Ip="useLayoutEffect",$h(),Bp(),Ah(e,t)},useMemo:function(e,t){Ip="useMemo",$h(),Bp();var n=xp.current;xp.current=Qh;try{return Eh(e,t)}finally{xp.current=n}},useReducer:function(e,t,n){Ip="useReducer",$h(),Bp();var r=xp.current;xp.current=Qh;try{return Qp(e)}finally{xp.current=r}},useRef:function(e){return Ip="useRef",$h(),Bp(),lh()},useState:function(e){Ip="useState",$h(),Bp();var t=xp.current;xp.current=Qh;try{return oh()}finally{xp.current=t}},useDebugValue:function(e,t){return Ip="useDebugValue",$h(),Bp(),xh()},useDeferredValue:function(e){return Ip="useDeferredValue",$h(),Bp(),Ph(e)},useTransition:function(){return Ip="useTransition",$h(),Bp(),Mh()},useMutableSource:function(e,t,n){Ip="useMutableSource",$h(),Bp()},useSyncExternalStore:function(e,t,n){return Ip="useSyncExternalStore",$h(),Bp(),Zp(e,t)},useId:function(){return Ip="useId",$h(),Bp(),Bh()},unstable_isNewReconciler:b};var Jh=n.unstable_now,em=0,tm=-1,nm=-1,rm=-1,im=!1,om=!1;function am(){return im}function sm(){return em}function lm(){em=Jh()}function um(e){nm=Jh(),e.actualStartTime<0&&(e.actualStartTime=Jh())}function cm(e){nm=-1}function dm(e,t){if(nm>=0){var n=Jh()-nm;e.actualDuration+=n,t&&(e.selfBaseDuration=n),nm=-1}}function fm(e){if(tm>=0){var t=Jh()-tm;tm=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:case c:return void(n.stateNode.effectDuration+=t)}n=n.return}}}function pm(e){if(rm>=0){var t=Jh()-rm;rm=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:var r=n.stateNode;return void(null!==r&&(r.passiveEffectDuration+=t));case c:var i=n.stateNode;return void(null!==i&&(i.passiveEffectDuration+=t))}n=n.return}}}function hm(){tm=Jh()}function mm(){rm=Jh()}function Am(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function gm(e,t){return{value:e,source:t,stack:Fe(t),digest:null}}function vm(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ym(e,t){try{var n=t.value,r=t.source,i=t.stack,o=null!==i?i:"";if(null!=n&&n._suppressLogging){if(1===e.tag)return;console.error(n)}var a=r?Ue(r):null,s=(a?"The above error occurred in the <"+a+"> component:":"The above error occurred in one of your React components:")+"\n"+o+"\n\n"+(3===e.tag?"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.":"React will try to recreate this component tree from scratch using the error boundary you provided, "+(Ue(e)||"Anonymous")+".");console.error(s)}catch(ex){setTimeout((function(){throw ex}))}}var bm="function"==typeof WeakMap?WeakMap:Map;function xm(e,t,n){var r=$d(Ki,n);r.tag=3,r.payload={element:null};var i=t.value;return r.callback=function(){dy(i),ym(e,t)},r}function Sm(e,t,n){var r=$d(Ki,n);r.tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var o=t.value;r.payload=function(){return i(o)},r.callback=function(){Dy(e),ym(e,t)}}var s=e.stateNode;return null!==s&&"function"==typeof s.componentDidCatch&&(r.callback=function(){var n;Dy(e),ym(e,t),"function"!=typeof i&&(n=this,null===vv?vv=new Set([n]):vv.add(n));var r=t.value,o=t.stack;this.componentDidCatch(r,{componentStack:null!==o?o:""}),"function"!=typeof i&&(uo(e.lanes,mi)||a("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ue(e)||"Unknown"))}),r}function _m(e,t,n){var r,i=e.pingCache;if(null===i?(i=e.pingCache=new bm,r=new Set,i.set(t,r)):void 0===(r=i.get(t))&&(r=new Set,i.set(t,r)),!r.has(n)){r.add(n);var o=hy.bind(null,e,t,n);Qr&&Ey(e,n),t.then(o,o)}}function wm(e){var t=e;do{if(t.tag===d&&up(t))return t;t=t.return}while(null!==t);return null}function Em(e,t,n,r,i){if(!(1&e.mode)){if(e===t)e.flags|=cr;else{if(e.flags|=tr,n.flags|=dr,n.flags&=-52805,1===n.tag)if(null===n.alternate)n.tag=h;else{var o=$d(Ki,mi);o.tag=qd,Jd(n,o,mi)}n.lanes=fo(n.lanes,mi)}return e}return e.flags|=cr,e.lanes=i,e}function Cm(e,t,n,r,i){if(n.flags|=ur,Qr&&Ey(e,i),null!==r&&"object"==typeof r&&"function"==typeof r.then){var o=r;!function(e){var t=e.tag;if(!(1&e.mode||0!==t&&t!==u&&t!==p)){var n=e.alternate;n?(e.updateQueue=n.updateQueue,e.memoizedState=n.memoizedState,e.lanes=n.lanes):(e.updateQueue=null,e.memoizedState=null)}}(n),ud()&&1&n.mode&&Wc();var a=wm(t);if(null!==a)return a.flags&=-257,Em(a,t,n,0,i),1&a.mode&&_m(e,o,i),void function(e,t,n){var r=e.updateQueue;if(null===r){var i=new Set;i.add(n),e.updateQueue=i}else r.add(n)}(a,0,o);if(!(i&mi))return _m(e,o,i),void ny();r=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.")}else if(ud()&&1&n.mode){Wc();var s=wm(t);if(null!==s)return s.flags&cr||(s.flags|=nr),Em(s,t,n,0,i),void cd(gm(r,n))}var l;l=r=gm(r,n),tv!==Xg&&(tv=Wg),null===sv?sv=[l]:sv.push(l);var c=t;do{switch(c.tag){case 3:var d=r;c.flags|=cr;var f=ao(i);return c.lanes=fo(c.lanes,f),void tf(c,xm(c,d,f));case 1:var h=r,m=c.type,A=c.stateNode;if(!(c.flags&tr||"function"!=typeof m.getDerivedStateFromError&&(null===A||"function"!=typeof A.componentDidCatch||cy(A)))){c.flags|=cr;var g=ao(i);return c.lanes=fo(c.lanes,g),void tf(c,Sm(c,h,g))}}c=c.return}while(null!==c)}var Tm,Pm,km,Rm,Im,Om,Mm,jm,zm=r.ReactCurrentOwner,Bm=!1;function Fm(e,t,n,r){t.child=null===e?Uf(t,null,n,r):Nf(t,e.child,n,r)}function Dm(e,t,n,r,i){if(t.type!==t.elementType){var o=n.propTypes;o&&Ku(o,r,"prop",Le(n))}var a,s,l=n.render,u=t.ref;if(Fd(t,i),ei(t),zm.current=t,Qe(!0),a=Np(e,t,l,r,u,i),s=Up(),8&t.mode){Yr(!0);try{a=Np(e,t,l,r,u,i),s=Up()}finally{Yr(!1)}}return Qe(!1),ti(),null===e||Bm?(ud()&&s&&zc(t),t.flags|=1,Fm(e,t,a,i),t.child):(Gp(e,t,i),mA(e,t,i))}function Lm(e,t,n,r,i){if(null===e){var o,a=n.type;if(function(e){return"function"==typeof e&&!Ky(e)&&void 0===e.defaultProps}(a)&&null===n.compare&&void 0===n.defaultProps)return o=jy(a),t.tag=p,t.type=o,Qm(t,a),Nm(e,t,o,r,i);var s=a.propTypes;s&&Ku(s,r,"prop",Le(a));var l=Yy(n.type,null,r,t,t.mode,i);return l.ref=t.ref,l.return=t,t.child=l,l}var u=n.type,c=u.propTypes;c&&Ku(c,r,"prop",Le(u));var d=e.child;if(!AA(e,i)){var f=d.memoizedProps,h=n.compare;if((h=null!==h?h:_s)(f,r)&&e.ref===t.ref)return mA(e,t,i)}t.flags|=1;var m=qy(d,r);return m.ref=t.ref,m.return=t,t.child=m,m}function Nm(e,t,n,r,i){if(t.type!==t.elementType){var o=t.elementType;if(o.$$typeof===fe){var a=o,s=a._payload,l=a._init;try{o=l(s)}catch(d){o=null}var u=o&&o.propTypes;u&&Ku(u,r,"prop",Le(o))}}if(null!==e){var c=e.memoizedProps;if(_s(c,r)&&e.ref===t.ref&&t.type===e.type){if(Bm=!1,t.pendingProps=r=c,!AA(e,i))return t.lanes=e.lanes,mA(e,t,i);e.flags&dr&&(Bm=!0)}}return Hm(e,t,n,r,i)}function Um(e,t,n){var r,i=t.pendingProps,o=i.children,a=null!==e?e.memoizedState:null;if("hidden"===i.mode)if(1&t.mode){if(!uo(n,Vi)){var s;s=null!==a?fo(a.baseLanes,n):n,t.lanes=t.childLanes=Vi;var l={baseLanes:s,cachePool:null,transitions:null};return t.memoizedState=l,t.updateQueue=null,Qv(t,s),null}var u={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=u,Qv(t,null!==a?a.baseLanes:n)}else{var c={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=c,Qv(t,n)}else null!==a?(r=fo(a.baseLanes,n),t.memoizedState=null):r=n,Qv(t,r);return Fm(e,t,o,n),t.child}function Gm(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=rr,t.flags|=pr)}function Hm(e,t,n,r,i){if(t.type!==t.elementType){var o=n.propTypes;o&&Ku(o,r,"prop",Le(n))}var a,s,l;if(a=sc(t,oc(0,n,!0)),Fd(t,i),ei(t),zm.current=t,Qe(!0),s=Np(e,t,n,r,a,i),l=Up(),8&t.mode){Yr(!0);try{s=Np(e,t,n,r,a,i),l=Up()}finally{Yr(!1)}}return Qe(!1),ti(),null===e||Bm?(ud()&&l&&zc(t),t.flags|=1,Fm(e,t,s,i),t.child):(Gp(e,t,i),mA(e,t,i))}function Wm(e,t,n,r,i){switch(Cb(t)){case!1:var o=t.stateNode,s=new(0,t.type)(t.memoizedProps,o.context).state;o.updater.enqueueSetState(o,s,null);break;case!0:t.flags|=tr,t.flags|=cr;var l=new Error("Simulated error coming from DevTools"),u=ao(i);t.lanes=fo(t.lanes,u),tf(t,Sm(t,gm(l,t),u))}if(t.type!==t.elementType){var c=n.propTypes;c&&Ku(c,r,"prop",Le(n))}var d,f;uc(n)?(d=!0,hc(t)):d=!1,Fd(t,i),null===t.stateNode?(hA(e,t),Of(t,n,r),jf(t,n,r,i),f=!0):f=null===e?function(e,t,n,r){var i=e.stateNode,o=e.memoizedProps;i.props=o;var a=i.context,s=t.contextType,l=tc;l="object"==typeof s&&null!==s?Dd(s):sc(e,oc(0,t,!0));var u=t.getDerivedStateFromProps,c="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;c||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||o===n&&a===l||Mf(e,i,n,l),af();var d=e.memoizedState,f=i.state=d;if(rf(e,n,i,r),f=e.memoizedState,o===n&&d===f&&!lc()&&!sf()){if("function"==typeof i.componentDidMount){var p=4;p|=hr,e.mode&ci&&(p|=mr),e.flags|=p}return!1}"function"==typeof u&&(Sf(e,t,u,n),f=e.memoizedState);var h=sf()||Rf(e,t,o,n,d,f,l);if(h){if(c||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount){var m=4;m|=hr,e.mode&ci&&(m|=mr),e.flags|=m}}else{if("function"==typeof i.componentDidMount){var A=4;A|=hr,e.mode&ci&&(A|=mr),e.flags|=A}e.memoizedProps=n,e.memoizedState=f}return i.props=n,i.state=f,i.context=l,h}(t,n,r,i):function(e,t,n,r,i){var o=t.stateNode;Zd(e,t);var a=t.memoizedProps,s=t.type===t.elementType?a:_d(t.type,a);o.props=s;var l=t.pendingProps,u=o.context,c=n.contextType,d=tc;d="object"==typeof c&&null!==c?Dd(c):sc(t,oc(0,n,!0));var f=n.getDerivedStateFromProps,p="function"==typeof f||"function"==typeof o.getSnapshotBeforeUpdate;p||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||a===l&&u===d||Mf(t,o,r,d),af();var h=t.memoizedState,m=o.state=h;if(rf(t,r,o,i),m=t.memoizedState,a===l&&h===m&&!lc()&&!sf())return"function"==typeof o.componentDidUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof o.getSnapshotBeforeUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=ir)),!1;"function"==typeof f&&(Sf(t,n,f,r),m=t.memoizedState);var A=sf()||Rf(t,n,s,r,h,m,d)||x;return A?(p||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,d),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,d)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=ir)):("function"==typeof o.componentDidUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof o.getSnapshotBeforeUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=ir)),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=d,A}(e,t,n,r,i);var p=Vm(e,t,n,f,d,i),h=t.stateNode;return f&&h.props!==r&&(Om||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ue(t)||"a component"),Om=!0),p}function Vm(e,t,n,r,i,o){Gm(e,t);var a=!!(t.flags&tr);if(!r&&!a)return i&&mc(t,n,!1),mA(e,t,o);var s,l=t.stateNode;if(zm.current=t,a&&"function"!=typeof n.getDerivedStateFromError)s=null,cm();else{if(ei(t),Qe(!0),s=l.render(),8&t.mode){Yr(!0);try{l.render()}finally{Yr(!1)}}Qe(!1),ti()}return t.flags|=1,null!==e&&a?function(e,t,n,r){t.child=Nf(t,e.child,null,r),t.child=Nf(t,null,n,r)}(e,t,s,o):Fm(e,t,s,o),t.memoizedState=l.state,i&&mc(t,n,!0),t.child}function Xm(e){var t=e.stateNode;t.pendingContext?fc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fc(e,t.context,!1),Qf(e,t.containerInfo)}function Km(e,t,n,r,i){return sd(),cd(i),t.flags|=nr,Fm(e,t,n,r),t.child}function qm(e,t,n,r){hA(e,t);var i=t.pendingProps,o=n,a=o._payload,s=(0,o._init)(a);t.type=s;var l=t.tag=function(e){if("function"==typeof e)return Ky(e)?1:0;if(null!=e){var t=e.$$typeof;if(t===le)return u;if(t===de)return f}return 2}(s),c=_d(s,i);switch(l){case 0:return Qm(t,s),t.type=s=jy(s),Hm(null,t,s,c,r);case 1:return t.type=s=zy(s),Wm(null,t,s,c,r);case u:return t.type=s=By(s),Dm(null,t,s,c,r);case f:if(t.type!==t.elementType){var d=s.propTypes;d&&Ku(d,c,"prop",Le(s))}return Lm(null,t,s,_d(s.type,c),r)}var p="";throw null!==s&&"object"==typeof s&&s.$$typeof===fe&&(p=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+s+". Lazy element type must resolve to a class or function."+p)}function Qm(e,t){if(t&&t.childContextTypes&&a("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),null!==e.ref){var n="",r=Ve();r&&(n+="\n\nCheck the render method of `"+r+"`.");var i=r||"",o=e._debugSource;o&&(i=o.fileName+":"+o.lineNumber),Im[i]||(Im[i]=!0,a("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if("function"==typeof t.getDerivedStateFromProps){var s=Le(t)||"Unknown";Rm[s]||(a("%s: Function components do not support getDerivedStateFromProps.",s),Rm[s]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var l=Le(t)||"Unknown";km[l]||(a("%s: Function components do not support contextType.",l),km[l]=!0)}}Tm={},Pm={},km={},Rm={},Im={},Om=!1,Mm={},jm={};var Ym={dehydrated:null,treeContext:null,retryLane:0};function Zm(e){return{baseLanes:e,cachePool:null,transitions:null}}function $m(e,t,n){var r=t.pendingProps;Tb(t)&&(t.flags|=tr);var i=rp.current,o=!1,s=!!(t.flags&tr);if(s||function(e,t){return(null===t||null!==t.memoizedState)&&ip(e,np)}(i,e)?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=tp),sp(t,i=op(i)),null===e){ed(t);var l=t.memoizedState;if(null!==l){var u=l.dehydrated;if(null!==u)return function(e,t){return 1&e.mode?_u(t)?e.lanes=vi:e.lanes=Vi:(a("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=mi),null}(t,u)}var c=r.children,d=r.fallback;if(o){var f=function(e,t,n,r){var i,o,a=e.mode,s=e.child,l={mode:"hidden",children:t};return 1&a||null===s?(i=eA(l,a),o=$y(n,a,r,null)):((i=s).childLanes=0,i.pendingProps=l,2&e.mode&&(i.actualDuration=0,i.actualStartTime=-1,i.selfBaseDuration=0,i.treeBaseDuration=0),o=$y(n,a,r,null)),i.return=e,o.return=e,i.sibling=o,e.child=i,o}(t,c,d,n);return t.child.memoizedState=Zm(n),t.memoizedState=Ym,f}return Jm(t,c)}var p=e.memoizedState;if(null!==p){var h=p.dehydrated;if(null!==h)return function(e,t,n,r,i,o,s){if(n){if(t.flags&nr)return t.flags&=-257,nA(e,t,s,vm(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")));if(null!==t.memoizedState)return t.child=e.child,t.flags|=tr,null;var l=function(e,t,n,r,i){var o=t.mode,a={mode:"visible",children:n},s=eA(a,o),l=$y(r,o,i,null);return l.flags|=2,s.return=t,l.return=t,s.sibling=l,t.child=s,!(1&t.mode)||Nf(t,e.child,null,i),l}(e,t,r.children,r.fallback,s);return t.child.memoizedState=Zm(s),t.memoizedState=Ym,l}if(Uc&&a("We should not be hydrating here. This is a bug in React. Please file a bug."),!(1&t.mode))return nA(e,t,s,null);if(_u(i)){var u,c,d,f=function(e){var t,n,r,i=e.nextSibling&&e.nextSibling.dataset;return i&&(t=i.dgst,n=i.msg,r=i.stck),{message:n,digest:t,stack:r}}(i);return u=f.digest,c=f.message,d=f.stack,nA(e,t,s,vm(c?new Error(c):new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),u,d))}var p=uo(s,e.childLanes);if(Bm||p){var h=zv();if(null!==h){var m=function(e,t){var n;switch(oo(t)){case gi:n=Ai;break;case yi:n=vi;break;case 64:case 128:case 256:case 512:case Si:case _i:case wi:case Ei:case Ci:case Ti:case Pi:case ki:case Ri:case Ii:case Oi:case Mi:case zi:case Bi:case Fi:case Di:case Li:n=bi;break;case Wi:n=Hi;break;default:n=0}return n&(e.suspendedLanes|t)?0:n}(h,s);if(0!==m&&m!==o.retryLane){o.retryLane=m;var A=Ki;Gd(e,m),Lv(h,e,m,A)}}return ny(),nA(e,t,s,vm(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}if(Su(i)){t.flags|=tr,t.child=e.child;var g=Ay.bind(null,e);return v=g,i._reactRetry=v,null}Xc(t,i,o.treeContext);var v,y=Jm(t,r.children);return y.flags|=ar,y}(e,t,s,r,h,p,n)}if(o){var m=r.fallback,A=function(e,t,n,r,i){var o,a,s=t.mode,l=e.child,u=l.sibling,c={mode:"hidden",children:n};return 1&s||t.child===l?(o=tA(l,c)).subtreeFlags=l.subtreeFlags&xr:((o=t.child).childLanes=0,o.pendingProps=c,2&t.mode&&(o.actualDuration=0,o.actualStartTime=-1,o.selfBaseDuration=l.selfBaseDuration,o.treeBaseDuration=l.treeBaseDuration),t.deletions=null),null!==u?a=qy(u,r):(a=$y(r,s,i,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,a}(e,t,r.children,m,n),g=t.child,v=e.child.memoizedState;return g.memoizedState=null===v?Zm(n):function(e,t){return{baseLanes:fo(e.baseLanes,t),cachePool:null,transitions:e.transitions}}(v,n),g.childLanes=function(e,t){return po(e.childLanes,t)}(e,n),t.memoizedState=Ym,A}var y=function(e,t,n,r){var i=e.child,o=i.sibling,a=tA(i,{mode:"visible",children:n});if(1&t.mode||(a.lanes=r),a.return=t,a.sibling=null,null!==o){var s=t.deletions;null===s?(t.deletions=[o],t.flags|=er):s.push(o)}return t.child=a,a}(e,t,r.children,n);return t.memoizedState=null,y}function Jm(e,t,n){var r=eA({mode:"visible",children:t},e.mode);return r.return=e,e.child=r,r}function eA(e,t,n){return Jy(e,t,0,null)}function tA(e,t){return qy(e,t)}function nA(e,t,n,r){null!==r&&cd(r),Nf(t,e.child,null,n);var i=Jm(t,t.pendingProps.children);return i.flags|=2,t.memoizedState=null,i}function rA(e,t,n){e.lanes=fo(e.lanes,t);var r=e.alternate;null!==r&&(r.lanes=fo(r.lanes,t)),zd(e.return,t,n)}function iA(e,t){var n=_t(e),r=!n&&"function"==typeof me(e);if(n||r){var i=n?"array":"iterable";return a("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",i,t,i),!1}return!0}function oA(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function aA(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail,s=r.children;!function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!Mm[e])if(Mm[e]=!0,"string"==typeof e)switch(e.toLowerCase()){case"together":case"forwards":case"backwards":a('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break;case"forward":case"backward":a('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break;default:a('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}else a('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}(i),function(e,t){void 0===e||jm[e]||("collapsed"!==e&&"hidden"!==e?(jm[e]=!0,a('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):"forwards"!==t&&"backwards"!==t&&(jm[e]=!0,a('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}(o,i),function(e,t){if(("forwards"===t||"backwards"===t)&&null!=e&&!1!==e)if(_t(e)){for(var n=0;n<e.length;n++)if(!iA(e[n],n))return}else{var r=me(e);if("function"==typeof r){var i=r.call(e);if(i)for(var o=i.next(),s=0;!o.done;o=i.next()){if(!iA(o.value,s))return;s++}}else a('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}(s,i),Fm(e,t,s,n);var l=rp.current;if(ip(l,np)?(l=ap(l,np),t.flags|=tr):(null!==e&&!!(e.flags&tr)&&function(e,t,n){for(var r=t;null!==r;){if(r.tag===d)null!==r.memoizedState&&rA(r,n,e);else if(r.tag===A)rA(r,n,e);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(t,t.child,n),l=op(l)),sp(t,l),1&t.mode)switch(i){case"forwards":var u,c=function(e){for(var t=e,n=null;null!==t;){var r=t.alternate;null!==r&&null===cp(r)&&(n=t),t=t.sibling}return n}(t.child);null===c?(u=t.child,t.child=null):(u=c.sibling,c.sibling=null),oA(t,!1,u,c,o);break;case"backwards":var f=null,p=t.child;for(t.child=null;null!==p;){var h=p.alternate;if(null!==h&&null===cp(h)){t.child=p;break}var m=p.sibling;p.sibling=f,f=p,p=m}oA(t,!0,f,null,o);break;case"together":oA(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}var sA,lA,uA,cA,dA=!1,fA=!1;function pA(){Bm=!0}function hA(e,t){1&t.mode||null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mA(e,t,n){return null!==e&&(t.dependencies=e.dependencies),cm(),ty(t.lanes),uo(n,t.childLanes)?(function(e,t){if(null!==e&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(null!==t.child){var n=t.child,r=qy(n,n.pendingProps);for(t.child=r,r.return=t;null!==n.sibling;)n=n.sibling,(r=r.sibling=qy(n,n.pendingProps)).return=t;r.sibling=null}}(e,t),t.child):null}function AA(e,t){return!!uo(e.lanes,t)}function gA(e,t,n){if(t._debugNeedsRemount&&null!==e)return function(e,t,n){var r=t.return;if(null===r)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===r.child)r.child=n;else{var i=r.child;if(null===i)throw new Error("Expected parent to have a child.");for(;i.sibling!==t;)if(null===(i=i.sibling))throw new Error("Expected to find the previous sibling.");i.sibling=n}var o=r.deletions;return null===o?(r.deletions=[e],r.flags|=er):o.push(e),n.flags|=2,n}(e,t,Yy(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(null!==e)if(e.memoizedProps!==t.pendingProps||lc()||t.type!==e.type)Bm=!0;else{if(!(AA(e,n)||t.flags&tr))return Bm=!1,function(e,t,n){switch(t.tag){case 3:Xm(t),t.stateNode,sd();break;case 5:$f(t);break;case 1:uc(t.type)&&hc(t);break;case 4:Qf(t,t.stateNode.containerInfo);break;case l:var r=t.memoizedProps.value;Md(t,t.type._context,r);break;case c:uo(n,t.childLanes)&&(t.flags|=4);var i=t.stateNode;i.effectDuration=0,i.passiveEffectDuration=0;break;case d:var o=t.memoizedState;if(null!==o){if(null!==o.dehydrated)return sp(t,op(rp.current)),t.flags|=tr,null;if(uo(n,t.child.childLanes))return $m(e,t,n);sp(t,op(rp.current));var a=mA(e,t,n);return null!==a?a.sibling:null}sp(t,op(rp.current));break;case A:var s=!!(e.flags&tr),u=uo(n,t.childLanes);if(s){if(u)return aA(e,t,n);t.flags|=tr}var f=t.memoizedState;if(null!==f&&(f.rendering=null,f.tail=null,f.lastEffect=null),sp(t,rp.current),u)break;return null;case v:case y:return t.lanes=0,Um(e,t,n)}return mA(e,t,n)}(e,t,n);Bm=!!(e.flags&dr)}else if(Bm=!1,ud()&&function(e){return Dc(),!!(e.flags&fr)}(t)){var r=t.index;jc(t,(Dc(),Cc),r)}switch(t.lanes=0,t.tag){case 2:return function(e,t,n,r){hA(e,t);var i,o,s,l=t.pendingProps;if(i=sc(t,oc(0,n,!1)),Fd(t,r),ei(t),n.prototype&&"function"==typeof n.prototype.render){var u=Le(n)||"Unknown";Tm[u]||(a("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",u,u),Tm[u]=!0)}if(8&t.mode&&fd.recordLegacyContextWarning(t,null),Qe(!0),zm.current=t,o=Np(null,t,n,l,i,r),s=Up(),Qe(!1),ti(),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){var c=Le(n)||"Unknown";Pm[c]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",c,c,c),Pm[c]=!0)}if("object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){var d=Le(n)||"Unknown";Pm[d]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",d,d,d),Pm[d]=!0),t.tag=1,t.memoizedState=null,t.updateQueue=null;var f=!1;return uc(n)?(f=!0,hc(t)):f=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Yd(t),If(t,o),jf(t,n,l,r),Vm(null,t,n,!0,f,r)}if(t.tag=0,8&t.mode){Yr(!0);try{o=Np(null,t,n,l,i,r),s=Up()}finally{Yr(!1)}}return ud()&&s&&zc(t),Fm(null,t,o,r),Qm(t,n),t.child}(e,t,t.type,n);case 16:return qm(e,t,t.elementType,n);case 0:var i=t.type,o=t.pendingProps;return Hm(e,t,i,t.elementType===i?o:_d(i,o),n);case 1:var s=t.type,m=t.pendingProps;return Wm(e,t,s,t.elementType===s?m:_d(s,m),n);case 3:return function(e,t,n){if(Xm(t),null===e)throw new Error("Should have a current fiber. This is a bug in React.");var r=t.pendingProps,i=t.memoizedState,o=i.element;Zd(e,t),rf(t,r,null,n);var a=t.memoizedState,s=(t.stateNode,a.element);if(i.isDehydrated){var l={element:s,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions};if(t.updateQueue.baseState=l,t.memoizedState=l,t.flags&nr)return Km(e,t,s,n,gm(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t));if(s!==o)return Km(e,t,s,n,gm(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t));Vc(t);var u=Uf(t,null,s,n);t.child=u;for(var c=u;c;)c.flags=-3&c.flags|ar,c=c.sibling}else{if(sd(),s===o)return mA(e,t,n);Fm(e,t,s,n)}return t.child}(e,t,n);case 5:return function(e,t,n){$f(t),null===e&&ed(t);var r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children;return cu(r,i)?a=null:null!==o&&cu(r,o)&&(t.flags|=32),Gm(e,t),Fm(e,t,a,n),t.child}(e,t,n);case 6:return function(e,t){return null===e&&ed(t),null}(e,t);case d:return $m(e,t,n);case 4:return function(e,t,n){Qf(t,t.stateNode.containerInfo);var r=t.pendingProps;return null===e?t.child=Nf(t,null,r,n):Fm(e,t,r,n),t.child}(e,t,n);case u:var b=t.type,x=t.pendingProps;return Dm(e,t,b,t.elementType===b?x:_d(b,x),n);case 7:return function(e,t,n){return Fm(e,t,t.pendingProps,n),t.child}(e,t,n);case 8:return function(e,t,n){return Fm(e,t,t.pendingProps.children,n),t.child}(e,t,n);case c:return function(e,t,n){t.flags|=4;var r=t.stateNode;return r.effectDuration=0,r.passiveEffectDuration=0,Fm(e,t,t.pendingProps.children,n),t.child}(e,t,n);case l:return function(e,t,n){var r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value;"value"in i||dA||(dA=!0,a("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var l=t.type.propTypes;if(l&&Ku(l,i,"prop","Context.Provider"),Md(t,r,s),null!==o){var u=o.value;if(Ss(u,s)){if(o.children===i.children&&!lc())return mA(e,t,n)}else Bd(t,r,n)}return Fm(e,t,i.children,n),t.child}(e,t,n);case 9:return function(e,t,n){var r=t.type;void 0===r._context?r!==r.Consumer&&(fA||(fA=!0,a("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var i=t.pendingProps.children;"function"!=typeof i&&a("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Fd(t,n);var o,s=Dd(r);return ei(t),zm.current=t,Qe(!0),o=i(s),Qe(!1),ti(),t.flags|=1,Fm(e,t,o,n),t.child}(e,t,n);case f:var S=t.type,_=_d(S,t.pendingProps);if(t.type!==t.elementType){var w=S.propTypes;w&&Ku(w,_,"prop",Le(S))}return Lm(e,t,S,_=_d(S.type,_),n);case p:return Nm(e,t,t.type,t.pendingProps,n);case h:var E=t.type,C=t.pendingProps;return function(e,t,n,r,i){var o;return hA(e,t),t.tag=1,uc(n)?(o=!0,hc(t)):o=!1,Fd(t,i),Of(t,n,r),jf(t,n,r,i),Vm(null,t,n,!0,o,i)}(e,t,E,t.elementType===E?C:_d(E,C),n);case A:return aA(e,t,n);case g:break;case v:return Um(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function vA(e){e.flags|=4}function yA(e){e.flags|=rr,e.flags|=pr}function bA(e,t){if(!ud())switch(e.tailMode){case"hidden":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":for(var i=e.tail,o=null;null!==i;)null!==i.alternate&&(o=i),i=i.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function xA(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t){if(2&e.mode){for(var i=e.selfBaseDuration,o=e.child;null!==o;)n=fo(n,fo(o.lanes,o.childLanes)),r|=o.subtreeFlags&xr,r|=o.flags&xr,i+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=i}else for(var a=e.child;null!==a;)n=fo(n,fo(a.lanes,a.childLanes)),r|=a.subtreeFlags&xr,r|=a.flags&xr,a.return=e,a=a.sibling;e.subtreeFlags|=r}else{if(2&e.mode){for(var s=e.actualDuration,l=e.selfBaseDuration,u=e.child;null!==u;)n=fo(n,fo(u.lanes,u.childLanes)),r|=u.subtreeFlags,r|=u.flags,s+=u.actualDuration,l+=u.treeBaseDuration,u=u.sibling;e.actualDuration=s,e.treeBaseDuration=l}else for(var c=e.child;null!==c;)n=fo(n,fo(c.lanes,c.childLanes)),r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;e.subtreeFlags|=r}return e.childLanes=n,t}function SA(e,t,n){if(Uc&&null!==Nc&&1&t.mode&&!(t.flags&tr))return ad(t),sd(),t.flags|=98560,!1;var r=od(t);if(null!==n&&null!==n.dehydrated){if(null===e){if(!r)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(nd(t),xA(t),2&t.mode&&null!==n){var i=t.child;null!==i&&(t.treeBaseDuration-=i.treeBaseDuration)}return!1}if(sd(),t.flags&tr||(t.memoizedState=null),t.flags|=4,xA(t),2&t.mode&&null!==n){var o=t.child;null!==o&&(t.treeBaseDuration-=o.treeBaseDuration)}return!1}return ld(),!0}function _A(e,t,n){var r=t.pendingProps;switch(Fc(t),t.tag){case 2:case 16:case p:case 0:case u:case 7:case 8:case c:case 9:case f:return xA(t),null;case 1:return uc(t.type)&&cc(t),xA(t),null;case 3:var i=t.stateNode;return Yf(t),dc(t),gp(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===e||null===e.child)&&(od(t)?vA(t):null!==e&&(!e.memoizedState.isDehydrated||t.flags&nr)&&(t.flags|=ir,ld())),lA(e,t),xA(t),null;case 5:Jf(t);var o=qf(),a=t.type;if(null!==e&&null!=t.stateNode)uA(e,t,a,r,o),e.ref!==t.ref&&yA(t);else{if(!r){if(null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return xA(t),null}var s=Zf();if(od(t))(function(e,t,n){var r=e.stateNode,i=!Gc,o=Cu(r,e.type,e.memoizedProps,0,n,e,i);return e.updateQueue=o,null!==o})(t,0,s)&&vA(t);else{var m=uu(a,r,o,s,t);sA(m,t,!1,!1),t.stateNode=m,function(e,t,n){switch(Nl(e,t,n),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}(m,a,r)&&vA(t)}null!==t.ref&&yA(t)}return xA(t),null;case 6:var b=r;if(e&&null!=t.stateNode){var x=e.memoizedProps;cA(e,t,x,b)}else{if("string"!=typeof b&&null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var S=qf(),_=Zf();od(t)?td(t)&&vA(t):t.stateNode=du(b,S,_,t)}return xA(t),null;case d:lp(t);var w=t.memoizedState;if((null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated)&&!SA(e,t,w))return t.flags&cr?t:null;if(t.flags&tr)return t.lanes=n,2&t.mode&&Am(t),t;var E=null!==w;if(E!==(null!==e&&null!==e.memoizedState)&&E&&(t.child.flags|=sr,1&t.mode&&(null===e&&(t.memoizedProps.unstable_avoidThisFallback,1)||ip(rp.current,tp)?tv===Gg&&(tv=Vg):ny())),null!==t.updateQueue&&(t.flags|=4),xA(t),2&t.mode&&E){var C=t.child;null!==C&&(t.treeBaseDuration-=C.treeBaseDuration)}return null;case 4:return Yf(t),lA(e,t),null===e&&cl(t.stateNode.containerInfo),xA(t),null;case l:return jd(t.type._context,t),xA(t),null;case h:return uc(t.type)&&cc(t),xA(t),null;case A:lp(t);var T=t.memoizedState;if(null===T)return xA(t),null;var P=!!(t.flags&tr),k=T.rendering;if(null===k)if(P)bA(T,!1);else{if(tv!==Gg||null!==e&&e.flags&tr)for(var R=t.child;null!==R;){var I=cp(R);if(null!==I){P=!0,t.flags|=tr,bA(T,!1);var O=I.updateQueue;return null!==O&&(t.updateQueue=O,t.flags|=4),t.subtreeFlags=0,Gf(t,n),sp(t,ap(rp.current,np)),t.child}R=R.sibling}null!==T.tail&&Br()>mv()&&(t.flags|=tr,P=!0,bA(T,!1),t.lanes=Ni)}else{if(!P){var M=cp(k);if(null!==M){t.flags|=tr,P=!0;var j=M.updateQueue;if(null!==j&&(t.updateQueue=j,t.flags|=4),bA(T,!0),null===T.tail&&"hidden"===T.tailMode&&!k.alternate&&!ud())return xA(t),null}else 2*Br()-T.renderingStartTime>mv()&&n!==Vi&&(t.flags|=tr,P=!0,bA(T,!1),t.lanes=Ni)}if(T.isBackwards)k.sibling=t.child,t.child=k;else{var z=T.last;null!==z?z.sibling=k:t.child=k,T.last=k}}if(null!==T.tail){var B=T.tail;T.rendering=B,T.tail=B.sibling,T.renderingStartTime=Br(),B.sibling=null;var F=rp.current;return sp(t,F=P?ap(F,np):op(F)),B}return xA(t),null;case g:break;case v:case y:Yv(t);var D=null!==t.memoizedState;return null!==e&&null!==e.memoizedState!==D&&(t.flags|=sr),D&&1&t.mode?uo(Jg,Vi)&&(xA(t),6&t.subtreeFlags&&(t.flags|=sr)):xA(t),null;case 24:case 25:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function wA(e,t,n){switch(Fc(t),t.tag){case 1:uc(t.type)&&cc(t);var r=t.flags;return r&cr?(t.flags=-65537&r|tr,2&t.mode&&Am(t),t):null;case 3:t.stateNode,Yf(t),dc(t),gp();var i=t.flags;return i&cr&&!(i&tr)?(t.flags=-65537&i|tr,t):null;case 5:return Jf(t),null;case d:lp(t);var o=t.memoizedState;if(null!==o&&null!==o.dehydrated){if(null===t.alternate)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");sd()}var a=t.flags;return a&cr?(t.flags=-65537&a|tr,2&t.mode&&Am(t),t):null;case A:return lp(t),null;case 4:return Yf(t),null;case l:return jd(t.type._context,t),null;case v:case y:return Yv(t),null;default:return null}}function EA(e,t,n){switch(Fc(t),t.tag){case 1:var r=t.type.childContextTypes;null!=r&&cc(t);break;case 3:t.stateNode,Yf(t),dc(t),gp();break;case 5:Jf(t);break;case 4:Yf(t);break;case d:case A:lp(t);break;case l:jd(t.type._context,t);break;case v:case y:Yv(t)}}sA=function(e,t,n,r){for(var i,o,a=t.child;null!==a;){if(5===a.tag||6===a.tag)i=e,o=a.stateNode,i.appendChild(o);else if(4===a.tag);else if(null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)return;for(;null===a.sibling;){if(null===a.return||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},lA=function(e,t){},uA=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a=function(e,t,n,r,i,o){var a=o;if(typeof r.children!=typeof n.children&&("string"==typeof r.children||"number"==typeof r.children)){var s=""+r.children,l=ql(a.ancestorInfo,t);Kl(null,s,l)}return Ul(e,t,n,r)}(t.stateNode,n,o,r,0,Zf());t.updateQueue=a,a&&vA(t)}},cA=function(e,t,n,r){n!==r&&vA(t)};var CA=null;CA=new Set;var TA=!1,PA=!1,kA="function"==typeof WeakSet?WeakSet:Set,RA=null,IA=null,OA=null,MA=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,2&e.mode)try{hm(),t.componentWillUnmount()}finally{fm(e)}else t.componentWillUnmount()};function jA(e,t){try{WA(hp,e)}catch(n){py(e,t,n)}}function zA(e,t,n){try{MA(e,n)}catch(r){py(e,t,r)}}function BA(e,t){try{qA(e)}catch(n){py(e,t,n)}}function FA(e,t){var n=e.ref;if(null!==n)if("function"==typeof n){var r;try{if(2&e.mode)try{hm(),r=n(null)}finally{fm(e)}else r=n(null)}catch(i){py(e,t,i)}"function"==typeof r&&a("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ue(e))}else n.current=null}function DA(e,t,n){try{n()}catch(r){py(e,t,r)}}var LA=!1;function NA(e,t){lu(e.containerInfo),RA=t,function(){for(;null!==RA;){var e=RA,t=e.child;e.subtreeFlags&gr&&null!==t?(t.return=e,RA=t):UA()}}();var n=LA;return LA=!1,n}function UA(){for(;null!==RA;){var e=RA;qe(e);try{GA(e)}catch(n){py(e,e.return,n)}Ke();var t=e.sibling;if(null!==t)return t.return=e.return,void(RA=t);RA=e.return}}function GA(e){var t,n=e.alternate;if(e.flags&ir){switch(qe(e),e.tag){case 0:case u:case p:break;case 1:if(null!==n){var r=n.memoizedProps,i=n.memoizedState,o=e.stateNode;e.type!==e.elementType||Om||(o.props!==e.memoizedProps&&a("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ue(e)||"instance"),o.state!==e.memoizedState&&a("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ue(e)||"instance"));var s=o.getSnapshotBeforeUpdate(e.elementType===e.type?r:_d(e.type,r),i),l=CA;void 0!==s||l.has(e.type)||(l.add(e.type),a("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ue(e))),o.__reactInternalSnapshotBeforeUpdate=s}break;case 3:var c=e.stateNode;1===(t=c.containerInfo).nodeType?t.textContent="":9===t.nodeType&&t.documentElement&&t.removeChild(t.documentElement);break;case 5:case 6:case 4:case h:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Ke()}}function HA(e,t,n){var r,i=t.updateQueue,o=null!==i?i.lastEffect:null;if(null!==o){var a=o.next,s=a;do{if((s.tag&e)===e){var l=s.destroy;s.destroy=void 0,void 0!==l&&((e&mp)!==dp?(r=t,null!==Kr&&"function"==typeof Kr.markComponentPassiveEffectUnmountStarted&&Kr.markComponentPassiveEffectUnmountStarted(r)):(e&hp)!==dp&&ri(t),(e&pp)!==dp&&Ry(!0),DA(t,n,l),(e&pp)!==dp&&Ry(!1),(e&mp)!==dp?null!==Kr&&"function"==typeof Kr.markComponentPassiveEffectUnmountStopped&&Kr.markComponentPassiveEffectUnmountStopped():(e&hp)!==dp&&ii())}s=s.next}while(s!==a)}}function WA(e,t){var n,r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next,s=o;do{if((s.tag&e)===e){(e&mp)!==dp?(n=t,null!==Kr&&"function"==typeof Kr.markComponentPassiveEffectMountStarted&&Kr.markComponentPassiveEffectMountStarted(n)):(e&hp)!==dp&&ni(t);var l=s.create;(e&pp)!==dp&&Ry(!0),s.destroy=l(),(e&pp)!==dp&&Ry(!1),(e&mp)!==dp?null!==Kr&&"function"==typeof Kr.markComponentPassiveEffectMountStopped&&Kr.markComponentPassiveEffectMountStopped():(e&hp)!==dp&&null!==Kr&&"function"==typeof Kr.markComponentLayoutEffectMountStopped&&Kr.markComponentLayoutEffectMountStopped();var u=s.destroy;if(void 0!==u&&"function"!=typeof u){var c=void 0;a("%s must not return anything besides a function, which is used for clean-up.%s",c=s.tag&hp?"useLayoutEffect":s.tag&pp?"useInsertionEffect":"useEffect",null===u?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof u.then?"\n\nIt looks like you wrote "+c+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+c+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching":" You returned: "+u)}}s=s.next}while(s!==o)}}function VA(e,t){if(4&t.flags&&t.tag===c){var n=t.stateNode.passiveEffectDuration,r=t.memoizedProps,i=r.id,o=r.onPostCommit,a=sm(),s=null===t.alternate?"mount":"update";am()&&(s="nested-update"),"function"==typeof o&&o(i,s,n,a);var l=t.return;e:for(;null!==l;){switch(l.tag){case 3:case c:l.stateNode.passiveEffectDuration+=n;break e}l=l.return}}}function XA(e,t,n,r){if(n.flags&yr)switch(n.tag){case 0:case u:case p:if(!PA)if(2&n.mode)try{hm(),WA(hp|fp,n)}finally{fm(n)}else WA(hp|fp,n);break;case 1:var i=n.stateNode;if(4&n.flags&&!PA)if(null===t)if(n.type!==n.elementType||Om||(i.props!==n.memoizedProps&&a("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ue(n)||"instance"),i.state!==n.memoizedState&&a("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ue(n)||"instance")),2&n.mode)try{hm(),i.componentDidMount()}finally{fm(n)}else i.componentDidMount();else{var o=n.elementType===n.type?t.memoizedProps:_d(n.type,t.memoizedProps),s=t.memoizedState;if(n.type!==n.elementType||Om||(i.props!==n.memoizedProps&&a("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ue(n)||"instance"),i.state!==n.memoizedState&&a("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ue(n)||"instance")),2&n.mode)try{hm(),i.componentDidUpdate(o,s,i.__reactInternalSnapshotBeforeUpdate)}finally{fm(n)}else i.componentDidUpdate(o,s,i.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;null!==l&&(n.type!==n.elementType||Om||(i.props!==n.memoizedProps&&a("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ue(n)||"instance"),i.state!==n.memoizedState&&a("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ue(n)||"instance")),lf(0,l,i));break;case 3:var f=n.updateQueue;if(null!==f){var m=null;if(null!==n.child)switch(n.child.tag){case 5:case 1:m=n.child.stateNode}lf(0,f,m)}break;case 5:var b=n.stateNode;null===t&&4&n.flags&&function(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":return void(n.autoFocus&&e.focus());case"img":n.src&&(e.src=n.src)}}(b,n.type,n.memoizedProps);break;case 6:case 4:break;case c:var x=n.memoizedProps,S=x.onCommit,_=x.onRender,w=n.stateNode.effectDuration,E=sm(),C=null===t?"mount":"update";am()&&(C="nested-update"),"function"==typeof _&&_(n.memoizedProps.id,C,n.actualDuration,n.treeBaseDuration,n.actualStartTime,E),"function"==typeof S&&S(n.memoizedProps.id,C,w,E),P=n,Sv.push(P),yv||(yv=!0,Ty(Nr,(function(){return uy(),null})));var T=n.return;e:for(;null!==T;){switch(T.tag){case 3:case c:T.stateNode.effectDuration+=w;break e}T=T.return}break;case d:!function(e,t){var n=t.memoizedState;if(null===n){var r=t.alternate;if(null!==r){var i=r.memoizedState;if(null!==i){var o=i.dehydrated;null!==o&&function(e){Jo(e)}(o)}}}}(0,n);break;case A:case h:case g:case v:case y:case 25:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}var P;PA||n.flags&rr&&qA(n)}function KA(e){switch(e.tag){case 0:case u:case p:if(2&e.mode)try{hm(),jA(e,e.return)}finally{fm(e)}else jA(e,e.return);break;case 1:var t=e.stateNode;"function"==typeof t.componentDidMount&&function(e,t,n){try{n.componentDidMount()}catch(r){py(e,t,r)}}(e,e.return,t),BA(e,e.return);break;case 5:BA(e,e.return)}}function qA(e){var t=e.ref;if(null!==t){var n,r=e.stateNode;if(e.tag,n=r,"function"==typeof t){var i;if(2&e.mode)try{hm(),i=t(n)}finally{fm(e)}else i=t(n);"function"==typeof i&&a("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ue(e))}else t.hasOwnProperty("current")||a("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ue(e)),t.current=n}}function QA(e){var t,n=e.alternate;if(null!==n&&(e.alternate=null,QA(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag){var r=e.stateNode;null!==r&&(delete(t=r)[ku],delete t[Ru],delete t[Ou],delete t[Mu],delete t[ju])}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function YA(e){return 5===e.tag||3===e.tag||4===e.tag}function ZA(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||YA(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&t.tag!==m;){if(2&t.flags)continue e;if(null===t.child||4===t.tag)continue e;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function $A(e){var t=function(e){for(var t=e.return;null!==t;){if(YA(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}(e);switch(t.tag){case 5:var n=t.stateNode;32&t.flags&&(gu(n),t.flags&=-33),eg(e,ZA(e),n);break;case 3:case 4:var r=t.stateNode.containerInfo;JA(e,ZA(e),r);break;default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function JA(e,t,n){var r=e.tag;if(5===r||6===r){var i=e.stateNode;t?function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}(n,i,t):function(e,t){var n;8===e.nodeType?(n=e.parentNode).insertBefore(t,e):(n=e).appendChild(t),null==e._reactRootContainer&&null===n.onclick&&Ll(n)}(n,i)}else if(4===r);else{var o=e.child;if(null!==o){JA(o,t,n);for(var a=o.sibling;null!==a;)JA(a,t,n),a=a.sibling}}}function eg(e,t,n){var r=e.tag;if(5===r||6===r){var i=e.stateNode;t?function(e,t,n){e.insertBefore(t,n)}(n,i,t):function(e,t){e.appendChild(t)}(n,i)}else if(4===r);else{var o=e.child;if(null!==o){eg(o,t,n);for(var a=o.sibling;null!==a;)eg(a,t,n),a=a.sibling}}}var tg=null,ng=!1;function rg(e,t,n){var r,i,o=t;e:for(;null!==o;){switch(o.tag){case 5:tg=o.stateNode,ng=!1;break e;case 3:case 4:tg=o.stateNode.containerInfo,ng=!0;break e}o=o.return}if(null===tg)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");og(e,t,n),tg=null,ng=!1,null!==(i=(r=n).alternate)&&(i.return=null),r.return=null}function ig(e,t,n){for(var r=n.child;null!==r;)og(e,t,r),r=r.sibling}function og(e,t,n){switch(function(e){if(Xr&&"function"==typeof Xr.onCommitFiberUnmount)try{Xr.onCommitFiberUnmount(Vr,e)}catch(t){qr||(qr=!0,a("React instrumentation encountered an error: %s",t))}}(n),n.tag){case 5:PA||FA(n,t);case 6:var r=tg,i=ng;return tg=null,ig(e,t,n),ng=i,void(null!==(tg=r)&&(ng?(_=tg,w=n.stateNode,8===_.nodeType?_.parentNode.removeChild(w):_.removeChild(w)):function(e,t){e.removeChild(t)}(tg,n.stateNode)));case m:return void(null!==tg&&(ng?function(e,t){8===e.nodeType?vu(e.parentNode,t):1===e.nodeType&&vu(e,t),Jo(e)}(tg,n.stateNode):vu(tg,n.stateNode)));case 4:var o=tg,s=ng;return tg=n.stateNode.containerInfo,ng=!0,ig(e,t,n),tg=o,void(ng=s);case 0:case u:case f:case p:if(!PA){var l=n.updateQueue;if(null!==l){var c=l.lastEffect;if(null!==c){var d=c.next,h=d;do{var A=h,y=A.destroy,b=A.tag;void 0!==y&&((b&pp)!==dp?DA(n,t,y):(b&hp)!==dp&&(ri(n),2&n.mode?(hm(),DA(n,t,y),fm(n)):DA(n,t,y),ii())),h=h.next}while(h!==d)}}}return void ig(e,t,n);case 1:if(!PA){FA(n,t);var x=n.stateNode;"function"==typeof x.componentWillUnmount&&zA(n,t,x)}return void ig(e,t,n);case g:return void ig(e,t,n);case v:if(1&n.mode){var S=PA;PA=S||null!==n.memoizedState,ig(e,t,n),PA=S}else ig(e,t,n);break;default:return void ig(e,t,n)}var _,w}function ag(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new kA),t.forEach((function(t){var r=gy.bind(null,e,t);if(!n.has(t)){if(n.add(t),Qr){if(null===IA||null===OA)throw Error("Expected finished root and lanes to be set. This is a bug in React.");Ey(OA,IA)}t.then(r,r)}}))}}function sg(e,t,n){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var o=r[i];try{rg(e,t,o)}catch(l){py(o,t,l)}}var a=He;if(t.subtreeFlags&vr)for(var s=t.child;null!==s;)qe(s),lg(s,e),s=s.sibling;qe(a)}function lg(e,t,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case u:case f:case p:if(sg(t,e),ug(e),4&i){try{HA(pp|fp,e,e.return),WA(pp|fp,e)}catch(R){py(e,e.return,R)}if(2&e.mode){try{hm(),HA(hp|fp,e,e.return)}catch(R){py(e,e.return,R)}fm(e)}else try{HA(hp|fp,e,e.return)}catch(R){py(e,e.return,R)}}return;case 1:return sg(t,e),ug(e),void(i&rr&&null!==r&&FA(r,r.return));case 5:if(sg(t,e),ug(e),i&rr&&null!==r&&FA(r,r.return),32&e.flags){var o=e.stateNode;try{gu(o)}catch(R){py(e,e.return,R)}}if(4&i){var a=e.stateNode;if(null!=a){var s=e.memoizedProps,l=null!==r?r.memoizedProps:s,c=e.type,h=e.updateQueue;if(e.updateQueue=null,null!==h)try{!function(e,t,n,r,i){Gl(e,t,n,r,i),Hu(e,i)}(a,h,c,l,s)}catch(R){py(e,e.return,R)}}}return;case 6:if(sg(t,e),ug(e),4&i){if(null===e.stateNode)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var m=e.stateNode,b=e.memoizedProps;null!==r&&r.memoizedProps;try{!function(e,t,n){e.nodeValue=n}(m,0,b)}catch(R){py(e,e.return,R)}}return;case 3:if(sg(t,e),ug(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{Jo(t.containerInfo)}catch(R){py(e,e.return,R)}return;case 4:return sg(t,e),void ug(e);case d:sg(t,e),ug(e);var x=e.child;if(x.flags&sr){var S=x.stateNode,_=null!==x.memoizedState;S.isHidden=_,_&&(null!==x.alternate&&null!==x.alternate.memoizedState||(uv=Br()))}if(4&i){try{!function(e){e.memoizedState}(e)}catch(R){py(e,e.return,R)}ag(e)}return;case v:var w=null!==r&&null!==r.memoizedState;if(1&e.mode){var E=PA;PA=E||w,sg(t,e),PA=E}else sg(t,e);if(ug(e),i&sr){var C=e.stateNode,T=null!==e.memoizedState,P=e;if(C.isHidden=T,T&&!w&&1&P.mode){RA=P;for(var k=P.child;null!==k;)RA=k,pg(k),k=k.sibling}!function(e,t){for(var n=null,r=e;;){if(5===r.tag){if(null===n){n=r;try{var i=r.stateNode;t?yu(i):bu(r.stateNode,r.memoizedProps)}catch(R){py(e,e.return,R)}}}else if(6===r.tag){if(null===n)try{var o=r.stateNode;t?o.nodeValue="":xu(o,r.memoizedProps)}catch(R){py(e,e.return,R)}}else if((r.tag!==v&&r.tag!==y||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;n===r&&(n=null),r=r.return}n===r&&(n=null),r.sibling.return=r.return,r=r.sibling}}(P,T)}return;case A:return sg(t,e),ug(e),void(4&i&&ag(e));case g:return;default:return sg(t,e),void ug(e)}}function ug(e){var t=e.flags;if(2&t){try{$A(e)}catch(n){py(e,e.return,n)}e.flags&=-3}t&ar&&(e.flags&=-4097)}function cg(e,t,n){IA=n,OA=t,RA=e,dg(e,t,n),IA=null,OA=null}function dg(e,t,n){for(var r=!!(1&e.mode);null!==RA;){var i=RA,o=i.child;if(i.tag===v&&r){var a=null!==i.memoizedState||TA;if(a){fg(e);continue}var s=i.alternate,l=null!==s&&null!==s.memoizedState,u=TA,c=PA;TA=a,(PA=l||PA)&&!c&&(RA=i,mg(i));for(var d=o;null!==d;)RA=d,dg(d,t,n),d=d.sibling;RA=i,TA=u,PA=c,fg(e)}else i.subtreeFlags&yr&&null!==o?(o.return=i,RA=o):fg(e)}}function fg(e,t,n){for(;null!==RA;){var r=RA;if(r.flags&yr){var i=r.alternate;qe(r);try{XA(0,i,r)}catch(a){py(r,r.return,a)}Ke()}if(r===e)return void(RA=null);var o=r.sibling;if(null!==o)return o.return=r.return,void(RA=o);RA=r.return}}function pg(e){for(;null!==RA;){var t=RA,n=t.child;switch(t.tag){case 0:case u:case f:case p:if(2&t.mode)try{hm(),HA(hp,t,t.return)}finally{fm(t)}else HA(hp,t,t.return);break;case 1:FA(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&zA(t,t.return,r);break;case 5:FA(t,t.return);break;case v:if(null!==t.memoizedState){hg(e);continue}}null!==n?(n.return=t,RA=n):hg(e)}}function hg(e){for(;null!==RA;){var t=RA;if(t===e)return void(RA=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(RA=n);RA=t.return}}function mg(e){for(;null!==RA;){var t=RA,n=t.child;t.tag!==v||null===t.memoizedState?null!==n?(n.return=t,RA=n):Ag(e):Ag(e)}}function Ag(e){for(;null!==RA;){var t=RA;qe(t);try{KA(t)}catch(r){py(t,t.return,r)}if(Ke(),t===e)return void(RA=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(RA=n);RA=t.return}}function gg(e,t,n,r){RA=t,function(e,t,n,r){for(;null!==RA;){var i=RA,o=i.child;i.subtreeFlags&br&&null!==o?(o.return=i,RA=o):vg(e,t,n,r)}}(t,e,n,r)}function vg(e,t,n,r){for(;null!==RA;){var i=RA;if(i.flags&or){qe(i);try{yg(0,i)}catch(a){py(i,i.return,a)}Ke()}if(i===e)return void(RA=null);var o=i.sibling;if(null!==o)return o.return=i.return,void(RA=o);RA=i.return}}function yg(e,t,n,r){switch(t.tag){case 0:case u:case p:if(2&t.mode){mm();try{WA(mp|fp,t)}finally{pm(t)}}else WA(mp|fp,t)}}function bg(e){RA=e,function(){for(;null!==RA;){var e=RA,t=e.child;if(RA.flags&er){var n=e.deletions;if(null!==n){for(var r=0;r<n.length;r++){var i=n[r];RA=i,_g(i,e)}var o=e.alternate;if(null!==o){var a=o.child;if(null!==a){o.child=null;do{var s=a.sibling;a.sibling=null,a=s}while(null!==a)}}RA=e}}e.subtreeFlags&br&&null!==t?(t.return=e,RA=t):xg()}}()}function xg(){for(;null!==RA;){var e=RA;e.flags&or&&(qe(e),Sg(e),Ke());var t=e.sibling;if(null!==t)return t.return=e.return,void(RA=t);RA=e.return}}function Sg(e){switch(e.tag){case 0:case u:case p:2&e.mode?(mm(),HA(mp|fp,e,e.return),pm(e)):HA(mp|fp,e,e.return)}}function _g(e,t){for(;null!==RA;){var n=RA;qe(n),Eg(n,t),Ke();var r=n.child;null!==r?(r.return=n,RA=r):wg(e)}}function wg(e){for(;null!==RA;){var t=RA,n=t.sibling,r=t.return;if(QA(t),t===e)return void(RA=null);if(null!==n)return n.return=r,void(RA=n);RA=r}}function Eg(e,t){switch(e.tag){case 0:case u:case p:2&e.mode?(mm(),HA(mp,e,t),pm(e)):HA(mp,e,t)}}function Cg(e){switch(e.tag){case 0:case u:case p:try{WA(hp|fp,e)}catch(n){py(e,e.return,n)}break;case 1:var t=e.stateNode;try{t.componentDidMount()}catch(n){py(e,e.return,n)}}}function Tg(e){switch(e.tag){case 0:case u:case p:try{WA(mp|fp,e)}catch(t){py(e,e.return,t)}}}function Pg(e){switch(e.tag){case 0:case u:case p:try{HA(hp|fp,e,e.return)}catch(n){py(e,e.return,n)}break;case 1:var t=e.stateNode;"function"==typeof t.componentWillUnmount&&zA(e,e.return,t)}}function kg(e){switch(e.tag){case 0:case u:case p:try{HA(mp|fp,e,e.return)}catch(t){py(e,e.return,t)}}}if("function"==typeof Symbol&&Symbol.for){var Rg=Symbol.for;Rg("selector.component"),Rg("selector.has_pseudo_class"),Rg("selector.role"),Rg("selector.test_id"),Rg("selector.text")}var Ig=[],Og=r.ReactCurrentActQueue;function Mg(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===Og.current||a("The current testing environment is not configured to support act(...)"),e}var jg=Math.ceil,zg=r.ReactCurrentDispatcher,Bg=r.ReactCurrentOwner,Fg=r.ReactCurrentBatchConfig,Dg=r.ReactCurrentActQueue,Lg=0,Ng=2,Ug=4,Gg=0,Hg=1,Wg=2,Vg=3,Xg=4,Kg=5,qg=6,Qg=Lg,Yg=null,Zg=null,$g=0,Jg=0,ev=$u(0),tv=Gg,nv=null,rv=0,iv=0,ov=0,av=0,sv=null,lv=null,uv=0,cv=500,dv=1/0,fv=500,pv=null;function hv(){dv=Br()+fv}function mv(){return dv}var Av=!1,gv=null,vv=null,yv=!1,bv=null,xv=0,Sv=[],_v=null,wv=50,Ev=0,Cv=null,Tv=!1,Pv=!1,kv=50,Rv=0,Iv=null,Ov=Ki,Mv=0,jv=!1;function zv(){return Yg}function Bv(){return(Qg&(Ng|Ug))!==Lg?Br():Ov!==Ki?Ov:Ov=Br()}function Fv(e){if(!(1&e.mode))return mi;if((Qg&Ng)!==Lg&&0!==$g)return ao($g);if(null!==dd.transition){if(null!==Fg.transition){var t=Fg.transition;t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e)}return 0===Mv&&(Mv=io()),Mv}var n,r=Io();return 0!==r?r:void 0===(n=window.event)?Po:la(n.type)}function Dv(e){var t;return 1&e.mode?(t=Qi,(Qi<<=1)&ji||(Qi=zi),t):mi}function Lv(e,t,n,r){!function(){if(Ev>wv)throw Ev=0,Cv=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Rv>kv&&(Rv=0,Iv=null,a("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}(),jv&&a("useInsertionEffect must not schedule updates."),Tv&&(Pv=!0),Ao(e,n,r),Qg&Ng&&e===Yg?function(e){if(We&&!jh)switch(e.tag){case 0:case u:case p:var t=Zg&&Ue(Zg)||"Unknown",n=t;_y.has(n)||(_y.add(n),a("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",Ue(e)||"Unknown",t,t));break;case 1:wy||(a("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),wy=!0)}}(t):(Qr&&yo(e,t,n),function(e){if(1&e.mode){if(!Mg())return}else{if(t="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0,"undefined"==typeof jest||!1===t)return;if(Qg!==Lg)return;if(0!==e.tag&&e.tag!==u&&e.tag!==p)return}var t;if(null===Dg.current){var n=He;try{qe(e),a("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act",Ue(e))}finally{n?qe(e):Ke()}}}(t),e===Yg&&((Qg&Ng)===Lg&&(ov=fo(ov,n)),tv===Xg&&Wv(e,$g)),Nv(e,r),n!==mi||Qg!==Lg||1&t.mode||Dg.isBatchingLegacy||(hv(),xc()))}function Nv(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=n;a>0;){var s=so(a),l=1<<s,u=o[s];u===Ki?l&r&&!(l&i)||(o[s]=$i(l,t)):u<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=Zi(e,e===Yg?$g:0);if(0===r)return null!==n&&Py(n),e.callbackNode=null,void(e.callbackPriority=0);var i=oo(r),o=e.callbackPriority;if(o!==i||null!==Dg.current&&n!==Cy){var s,l;if(null!=n&&Py(n),i===mi)0===e.tag?(null!==Dg.isBatchingLegacy&&(Dg.didScheduleLegacyUpdate=!0),l=Vv.bind(null,e),vc=!0,bc(l)):bc(Vv.bind(null,e)),null!==Dg.current?Dg.current.push(Sc):mu((function(){(Qg&(Ng|Ug))===Lg&&Sc()})),s=null;else{var u;switch(jo(r)){case Co:u=Dr;break;case To:u=Lr;break;case Po:u=Nr;break;case ko:u=Gr;break;default:u=Nr}s=Ty(u,Uv.bind(null,e))}e.callbackPriority=i,e.callbackNode=s}else null==n&&o!==mi&&a("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.")}function Uv(e,t){if(im=!1,om=!1,Ov=Ki,Mv=0,(Qg&(Ng|Ug))!==Lg)throw new Error("Should not already be working.");var n=e.callbackNode;if(uy()&&e.callbackNode!==n)return null;var r=Zi(e,e===Yg?$g:0);if(0===r)return null;var i=!no(0,r)&&!function(e,t){return!!(t&e.expiredLanes)}(e,r)&&!t,o=i?function(e,t){var n=Qg;Qg|=Ng;var r=Jv();if(Yg!==e||$g!==t){if(Qr){var i=e.memoizedUpdaters;i.size>0&&(Ey(e,$g),i.clear()),bo(e,t)}pv=null,hv(),Zv(e,t)}for(si(t);;)try{oy();break}catch(o){$v(e,o)}return Rd(),ey(r),Qg=n,null!==Zg?(null!==Kr&&"function"==typeof Kr.markRenderYielded&&Kr.markRenderYielded(),Gg):(li(),Yg=null,$g=0,tv)}(e,r):ry(e,r);if(o!==Gg){if(o===Wg){var a=Ji(e);0!==a&&(r=a,o=Gv(e,a))}if(o===Hg){var s=nv;throw Zv(e,0),Wv(e,r),Nv(e,Br()),s}if(o===qg)Wv(e,r);else{var l=!no(0,r),u=e.current.alternate;if(l&&!function(e){for(var t=e;;){if(t.flags&lr){var n=t.updateQueue;if(null!==n){var r=n.stores;if(null!==r)for(var i=0;i<r.length;i++){var o=r[i],a=o.getSnapshot,s=o.value;try{if(!Ss(a(),s))return!1}catch(u){return!1}}}}var l=t.child;if(t.subtreeFlags&lr&&null!==l)l.return=t,t=l;else{if(t===e)return!0;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(u)){if((o=ry(e,r))===Wg){var c=Ji(e);0!==c&&(r=c,o=Gv(e,c))}if(o===Hg){var d=nv;throw Zv(e,0),Wv(e,r),Nv(e,Br()),d}}e.finishedWork=u,e.finishedLanes=r,function(e,t,n){switch(t){case Gg:case Hg:throw new Error("Root did not complete. This is a bug in React.");case Wg:ly(e,lv,pv);break;case Vg:if(Wv(e,n),to(n)&&!ky()){var r=uv+cv-Br();if(r>10){if(0!==Zi(e,0))break;var i=e.suspendedLanes;if(!co(i,n)){Bv(),go(e,i);break}e.timeoutHandle=fu(ly.bind(null,e,lv,pv),r);break}}ly(e,lv,pv);break;case Xg:if(Wv(e,n),function(e){return(e&xi)===e}(n))break;if(!ky()){var o=function(e,t){for(var n=e.eventTimes,r=Ki;t>0;){var i=so(t),o=1<<i,a=n[i];a>r&&(r=a),t&=~o}return r}(e,n),a=o,s=Br()-a,l=((u=s)<120?120:u<480?480:u<1080?1080:u<1920?1920:u<3e3?3e3:u<4320?4320:1960*jg(u/1960))-s;if(l>10){e.timeoutHandle=fu(ly.bind(null,e,lv,pv),l);break}}ly(e,lv,pv);break;case Kg:ly(e,lv,pv);break;default:throw new Error("Unknown root exit status.")}var u}(e,o,r)}}return Nv(e,Br()),e.callbackNode===n?Uv.bind(null,e):null}function Gv(e,t){var n=sv;zo(e)&&(Zv(e,t).flags|=nr,a("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.containerInfo.nodeName.toLowerCase()));var r=ry(e,t);if(r!==Wg){var i=lv;lv=n,null!==i&&Hv(i)}return r}function Hv(e){null===lv?lv=e:lv.push.apply(lv,e)}function Wv(e,t){t=po(t,av),function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var i=so(r),o=1<<i;n[i]=Ki,r&=~o}}(e,t=po(t,ov))}function Vv(e){if(im=om,om=!1,(Qg&(Ng|Ug))!==Lg)throw new Error("Should not already be working.");uy();var t=Zi(e,0);if(!uo(t,mi))return Nv(e,Br()),null;var n=ry(e,t);if(0!==e.tag&&n===Wg){var r=Ji(e);0!==r&&(t=r,n=Gv(e,r))}if(n===Hg){var i=nv;throw Zv(e,0),Wv(e,t),Nv(e,Br()),i}if(n===qg)throw new Error("Root did not complete. This is a bug in React.");var o=e.current.alternate;return e.finishedWork=o,e.finishedLanes=t,ly(e,lv,pv),Nv(e,Br()),null}function Xv(e,t){var n=Qg;Qg|=1;try{return e(t)}finally{(Qg=n)!==Lg||Dg.isBatchingLegacy||(hv(),xc())}}function Kv(e){null!==bv&&0===bv.tag&&(Qg&(Ng|Ug))===Lg&&uy();var t=Qg;Qg|=1;var n=Fg.transition,r=Io();try{return Fg.transition=null,Oo(Co),e?e():void 0}finally{Oo(r),Fg.transition=n,((Qg=t)&(Ng|Ug))===Lg&&Sc()}}function qv(){return(Qg&(Ng|Ug))!==Lg}function Qv(e,t){ec(ev,Jg,e),Jg=fo(Jg,t),rv=fo(rv,t)}function Yv(e){Jg=ev.current,Ju(ev,e)}function Zv(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,pu(n)),null!==Zg)for(var r=Zg.return;null!==r;)r.alternate,EA(0,r),r=r.return;Yg=e;var i=qy(e.current,null);return Zg=i,$g=Jg=rv=t,tv=Gg,nv=null,iv=0,ov=0,av=0,sv=null,lv=null,function(){if(null!==Ld){for(var e=0;e<Ld.length;e++){var t=Ld[e],n=t.interleaved;if(null!==n){t.interleaved=null;var r=n.next,i=t.pending;if(null!==i){var o=i.next;i.next=r,n.next=o}t.pending=n}}Ld=null}}(),fd.discardPendingWarnings(),i}function $v(e,t){for(;;){var n=Zg;try{if(Rd(),Hp(),Ke(),Bg.current=null,null===n||null===n.return)return tv=Hg,nv=t,void(Zg=null);2&n.mode&&dm(n,!0),ti(),null!==t&&"object"==typeof t&&"function"==typeof t.then?ai(n,t,$g):oi(n,t,$g),Cm(e,n.return,n,t,$g),sy(n)}catch(r){t=r,Zg===n&&null!==n?(n=n.return,Zg=n):n=Zg;continue}return}}function Jv(){var e=zg.current;return zg.current=Hh,null===e?Hh:e}function ey(e){zg.current=e}function ty(e){iv=fo(e,iv)}function ny(){tv!==Gg&&tv!==Vg&&tv!==Wg||(tv=Xg),null!==Yg&&(eo(iv)||eo(ov))&&Wv(Yg,$g)}function ry(e,t){var n=Qg;Qg|=Ng;var r=Jv();if(Yg!==e||$g!==t){if(Qr){var i=e.memoizedUpdaters;i.size>0&&(Ey(e,$g),i.clear()),bo(e,t)}pv=null,Zv(e,t)}for(si(t);;)try{iy();break}catch(o){$v(e,o)}if(Rd(),Qg=n,ey(r),null!==Zg)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return li(),Yg=null,$g=0,tv}function iy(){for(;null!==Zg;)ay(Zg)}function oy(){for(;null!==Zg&&!jr();)ay(Zg)}function ay(e){var t,n=e.alternate;qe(e),2&e.mode?(um(e),t=by(n,e,Jg),dm(e,!0)):t=by(n,e,Jg),Ke(),e.memoizedProps=e.pendingProps,null===t?sy(e):Zg=t,Bg.current=null}function sy(e){var t=e;do{var n=t.alternate,r=t.return;if(t.flags&ur){var i=wA(0,t);if(null!==i)return i.flags&=32767,void(Zg=i);if(2&t.mode){dm(t,!1);for(var o=t.actualDuration,a=t.child;null!==a;)o+=a.actualDuration,a=a.sibling;t.actualDuration=o}if(null===r)return tv=qg,void(Zg=null);r.flags|=ur,r.subtreeFlags=0,r.deletions=null}else{qe(t);var s=void 0;if(2&t.mode?(um(t),s=_A(n,t,Jg),dm(t,!1)):s=_A(n,t,Jg),Ke(),null!==s)return void(Zg=s)}var l=t.sibling;if(null!==l)return void(Zg=l);Zg=t=r}while(null!==t);tv===Gg&&(tv=Kg)}function ly(e,t,n){var r=Io(),i=Fg.transition;try{Fg.transition=null,Oo(Co),function(e,t,n,r){do{uy()}while(null!==bv);if(fd.flushLegacyContextWarning(),fd.flushPendingUnsafeLifecycleWarnings(),(Qg&(Ng|Ug))!==Lg)throw new Error("Should not already be working.");var i=e.finishedWork,o=e.finishedLanes;if(function(e){null!==Kr&&"function"==typeof Kr.markCommitStarted&&Kr.markCommitStarted(e)}(o),null===i)return Jr(),null;if(0===o&&a("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=0,i===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var s=fo(i.lanes,i.childLanes);(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var r=e.entanglements,i=e.eventTimes,o=e.expirationTimes,a=n;a>0;){var s=so(a),l=1<<s;r[s]=0,i[s]=Ki,o[s]=Ki,a&=~l}})(e,s),e===Yg&&(Yg=null,Zg=null,$g=0),(i.subtreeFlags&br||i.flags&br)&&(yv||(yv=!0,_v=n,Ty(Nr,(function(){return uy(),null}))));var l=!!(15990&i.subtreeFlags),u=!!(15990&i.flags);if(l||u){var c=Fg.transition;Fg.transition=null;var d=Io();Oo(Co);var f=Qg;Qg|=Ug,Bg.current=null,NA(e,i),lm(),function(e,t,n){IA=n,OA=e,qe(t),lg(t,e),qe(t),IA=null,OA=null}(e,i,o),e.containerInfo,js(su),na(au),au=null,su=null,e.current=i,function(e){null!==Kr&&"function"==typeof Kr.markLayoutEffectsStarted&&Kr.markLayoutEffectsStarted(e)}(o),cg(i,e,o),null!==Kr&&"function"==typeof Kr.markLayoutEffectsStopped&&Kr.markLayoutEffectsStopped(),zr(),Qg=f,Oo(d),Fg.transition=c}else e.current=i,lm();var p=yv;if(yv?(yv=!1,bv=e,xv=o):(Rv=0,Iv=null),0===(s=e.pendingLanes)&&(vv=null),p||vy(e.current,!1),function(e,t){if(Xr&&"function"==typeof Xr.onCommitFiberRoot)try{var n,r=(e.current.flags&tr)===tr;switch(t){case Co:n=Dr;break;case To:n=Lr;break;case Po:n=Nr;break;case ko:n=Gr;break;default:n=Nr}Xr.onCommitFiberRoot(Vr,e,n,r)}catch(i){qr||(qr=!0,a("React instrumentation encountered an error: %s",i))}}(i.stateNode,r),Qr&&e.memoizedUpdaters.clear(),Ig.forEach((function(e){return e()})),Nv(e,Br()),null!==t)for(var h=e.onRecoverableError,m=0;m<t.length;m++){var A=t[m],g=A.stack,v=A.digest;h(A.value,{componentStack:g,digest:v})}if(Av){Av=!1;var y=gv;throw gv=null,y}uo(xv,mi)&&0!==e.tag&&uy(),uo(s=e.pendingLanes,mi)?(om=!0,e===Cv?Ev++:(Ev=0,Cv=e)):Ev=0,Sc(),Jr()}(e,t,n,r)}finally{Fg.transition=i,Oo(r)}return null}function uy(){if(null!==bv){var e=jo(xv),t=(o=e,0===(i=Po)||i>o?i:o),n=Fg.transition,r=Io();try{return Fg.transition=null,Oo(t),function(){if(null===bv)return!1;var e=_v;_v=null;var t=bv,n=xv;if(bv=null,xv=0,(Qg&(Ng|Ug))!==Lg)throw new Error("Cannot flush passive effects while already rendering.");Tv=!0,Pv=!1,function(e){null!==Kr&&"function"==typeof Kr.markPassiveEffectsStarted&&Kr.markPassiveEffectsStarted(e)}(n);var r=Qg;Qg|=Ug,bg(t.current),gg(t,t.current,n,e);var i=Sv;Sv=[];for(var o=0;o<i.length;o++)VA(0,i[o]);null!==Kr&&"function"==typeof Kr.markPassiveEffectsStopped&&Kr.markPassiveEffectsStopped(),vy(t.current,!0),Qg=r,Sc(),Pv?t===Iv?Rv++:(Rv=0,Iv=t):Rv=0,Tv=!1,Pv=!1,function(e){if(Xr&&"function"==typeof Xr.onPostCommitFiberRoot)try{Xr.onPostCommitFiberRoot(Vr,e)}catch(t){qr||(qr=!0,a("React instrumentation encountered an error: %s",t))}}(t);var s=t.current.stateNode;return s.effectDuration=0,s.passiveEffectDuration=0,!0}()}finally{Oo(r),Fg.transition=n}}var i,o;return!1}function cy(e){return null!==vv&&vv.has(e)}var dy=function(e){Av||(Av=!0,gv=e)};function fy(e,t,n){var r=Jd(e,xm(e,gm(n,t),mi),mi),i=Bv();null!==r&&(Ao(r,mi,i),Nv(r,i))}function py(e,t,n){var r;if(r=n,Zn(null,(function(){throw r})),$n(),Ry(!1),3!==e.tag){var i=null;for(i=t;null!==i;){if(3===i.tag)return void fy(i,e,n);if(1===i.tag){var o=i.type,s=i.stateNode;if("function"==typeof o.getDerivedStateFromError||"function"==typeof s.componentDidCatch&&!cy(s)){var l=Jd(i,Sm(i,gm(n,e),mi),mi),u=Bv();return void(null!==l&&(Ao(l,mi,u),Nv(l,u)))}}i=i.return}a("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}else fy(e,e,n)}function hy(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);var i=Bv();go(e,n),function(e){0!==e.tag&&Mg()&&null===Dg.current&&a("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act")}(e),Yg===e&&co($g,n)&&(tv===Xg||tv===Vg&&to($g)&&Br()-uv<cv?Zv(e,0):av=fo(av,n)),Nv(e,i)}function my(e,t){0===t&&(t=Dv(e));var n=Bv(),r=Gd(e,t);null!==r&&(Ao(r,t,n),Nv(r,n))}function Ay(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),my(e,n)}function gy(e,t){var n,r=0;switch(e.tag){case d:n=e.stateNode;var i=e.memoizedState;null!==i&&(r=i.retryLane);break;case A:n=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==n&&n.delete(t),my(e,r)}function vy(e,t){qe(e),yy(e,mr,Pg),t&&yy(e,Ar,kg),yy(e,mr,Cg),t&&yy(e,Ar,Tg),Ke()}function yy(e,t,n){for(var r=e,i=null;null!==r;){var o=r.subtreeFlags&t;r!==i&&null!==r.child&&0!==o?r=r.child:(r.flags&t&&n(r),r=null!==r.sibling?r.sibling:i=r.return)}}var by,xy=null;function Sy(e){if((Qg&Ng)===Lg&&1&e.mode){var t=e.tag;if(2===t||3===t||1===t||0===t||t===u||t===f||t===p){var n=Ue(e)||"ReactComponent";if(null!==xy){if(xy.has(n))return;xy.add(n)}else xy=new Set([n]);var r=He;try{qe(e),a("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{r?qe(e):Ke()}}}}by=function(e,t,n){var r=nb(null,t);try{return gA(e,t,n)}catch(o){if(Gc||null!==o&&"object"==typeof o&&"function"==typeof o.then)throw o;if(Rd(),Hp(),EA(0,t),nb(t,r),2&t.mode&&um(t),Zn(null,gA,null,e,t,n),Xn){var i=$n();"object"==typeof i&&null!==i&&i._suppressLogging&&"object"==typeof o&&null!==o&&!o._suppressLogging&&(o._suppressLogging=!0)}throw o}};var _y,wy=!1;function Ey(e,t){Qr&&e.memoizedUpdaters.forEach((function(n){yo(e,n,t)}))}_y=new Set;var Cy={};function Ty(e,t){var n=Dg.current;return null!==n?(n.push(t),Cy):Or(e,t)}function Py(e){if(e!==Cy)return Mr(e)}function ky(){return null!==Dg.current}function Ry(e){jv=e}var Iy=null,Oy=null,My=function(e){Iy=e};function jy(e){if(null===Iy)return e;var t=Iy(e);return void 0===t?e:t.current}function zy(e){return jy(e)}function By(e){if(null===Iy)return e;var t=Iy(e);if(void 0===t){if(null!=e&&"function"==typeof e.render){var n=jy(e.render);if(e.render!==n){var r={$$typeof:le,render:n};return void 0!==e.displayName&&(r.displayName=e.displayName),r}}return e}return t.current}function Fy(e,t){if(null===Iy)return!1;var n=e.elementType,r=t.type,i=!1,o="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case 1:"function"==typeof r&&(i=!0);break;case 0:("function"==typeof r||o===fe)&&(i=!0);break;case u:(o===le||o===fe)&&(i=!0);break;case f:case p:(o===de||o===fe)&&(i=!0);break;default:return!1}if(i){var a=Iy(n);if(void 0!==a&&a===Iy(r))return!0}return!1}function Dy(e){null!==Iy&&"function"==typeof WeakSet&&(null===Oy&&(Oy=new WeakSet),Oy.add(e))}var Ly=function(e,t){if(null!==Iy){var n=t.staleFamilies,r=t.updatedFamilies;uy(),Kv((function(){Uy(e.current,r,n)}))}},Ny=function(e,t){e.context===tc&&(uy(),Kv((function(){fb(t,e,null,null)})))};function Uy(e,t,n){var r=e.alternate,i=e.child,o=e.sibling,a=e.tag,s=e.type,l=null;switch(a){case 0:case p:case 1:l=s;break;case u:l=s.render}if(null===Iy)throw new Error("Expected resolveFamily to be set during hot reload.");var c=!1,d=!1;if(null!==l){var f=Iy(l);void 0!==f&&(n.has(f)?d=!0:t.has(f)&&(1===a?d=!0:c=!0))}if(null!==Oy&&(Oy.has(e)||null!==r&&Oy.has(r))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||c){var h=Gd(e,mi);null!==h&&Lv(h,e,mi,Ki)}null===i||d||Uy(i,t,n),null!==o&&Uy(o,t,n)}var Gy,Hy=function(e,t){var n=new Set,r=new Set(t.map((function(e){return e.current})));return Wy(e.current,r,n),n};function Wy(e,t,n){var r=e.child,i=e.sibling,o=e.tag,a=e.type,s=null;switch(o){case 0:case p:case 1:s=a;break;case u:s=a.render}var l=!1;null!==s&&t.has(s)&&(l=!0),l?function(e,t){var n=function(e,t){for(var n=e,r=!1;;){if(5===n.tag)r=!0,t.add(n.stateNode);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;null===n.sibling;){if(null===n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}(e,t);if(!n)for(var r=e;;){switch(r.tag){case 5:return void t.add(r.stateNode);case 4:case 3:return void t.add(r.stateNode.containerInfo)}if(null===r.return)throw new Error("Expected to reach root first.");r=r.return}}(e,n):null!==r&&Wy(r,t,n),null!==i&&Wy(i,t,n)}Gy=!1;try{Object.preventExtensions({})}catch(ex){Gy=!0}function Vy(e,t,n,r){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=r,this.flags=0,this.subtreeFlags=0,this.deletions=null,this.lanes=0,this.childLanes=0,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Gy||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}var Xy=function(e,t,n,r){return new Vy(e,t,n,r)};function Ky(e){var t=e.prototype;return!(!t||!t.isReactComponent)}function qy(e,t){var n=e.alternate;null===n?((n=Xy(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&xr,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var r=e.dependencies;switch(n.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 2:case 0:case p:n.type=jy(e.type);break;case 1:n.type=zy(e.type);break;case u:n.type=By(e.type)}return n}function Qy(e,t){e.flags&=14680066;var n=e.alternate;if(null===n)e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function Yy(e,t,n,r,i,o){var s=2,p=e;if("function"==typeof e)Ky(e)?(s=1,p=zy(p)):p=jy(p);else if("string"==typeof e)s=5;else e:switch(e){case ne:return $y(n.children,i,o,t);case ie:s=8,1&(i|=8)&&(i|=ci);break;case oe:return function(e,t,n,r){"string"!=typeof e.id&&a('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var i=Xy(c,e,r,2|t);return i.elementType=oe,i.lanes=n,i.stateNode={effectDuration:0,passiveEffectDuration:0},i}(n,i,o,t);case ue:return function(e,t,n,r){var i=Xy(d,e,r,t);return i.elementType=ue,i.lanes=n,i}(n,i,o,t);case ce:return function(e,t,n,r){var i=Xy(A,e,r,t);return i.elementType=ce,i.lanes=n,i}(n,i,o,t);case pe:return Jy(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ae:s=l;break e;case se:s=9;break e;case le:s=u,p=By(p);break e;case de:s=f;break e;case fe:s=16,p=null;break e}var h="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var m=r?Ue(r):null;throw m&&(h+="\n\nCheck the render method of `"+m+"`."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+"."+h)}var g=Xy(s,n,t,i);return g.elementType=e,g.type=p,g.lanes=o,g._debugOwner=r,g}function Zy(e,t,n){var r;r=e._owner;var i=Yy(e.type,e.key,e.props,r,t,n);return i._debugSource=e._source,i._debugOwner=e._owner,i}function $y(e,t,n,r){var i=Xy(7,e,r,t);return i.lanes=n,i}function Jy(e,t,n,r){var i=Xy(v,e,r,t);return i.elementType=pe,i.lanes=n,i.stateNode={isHidden:!1},i}function eb(e,t,n){var r=Xy(6,e,null,t);return r.lanes=n,r}function tb(e,t,n){var r=null!==e.children?e.children:[],i=Xy(4,r,e.key,t);return i.lanes=n,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}function nb(e,t){return null===e&&(e=Xy(2,null,null,0)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function rb(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=-1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=mo(0),this.expirationTimes=mo(Ki),this.pendingLanes=0,this.suspendedLanes=0,this.pingedLanes=0,this.expiredLanes=0,this.mutableReadLanes=0,this.finishedLanes=0,this.entangledLanes=0,this.entanglements=mo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0,this.memoizedUpdaters=new Set;for(var o=this.pendingUpdatersLaneMap=[],a=0;a<hi;a++)o.push(new Set);switch(t){case 1:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case 0:this._debugRootType=n?"hydrate()":"render()"}}function ib(e,t,n,r,i,o,a,s,l,u){var c=new rb(e,t,n,s,l),d=function(e,t){var n;return 1===e?(n=1,!0===t&&(n|=8,n|=ci)):n=0,Qr&&(n|=2),Xy(3,null,null,n)}(t,o);c.current=d,d.stateNode=c;var f={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};return d.memoizedState=f,Yd(d),c}var ob,ab,sb="18.2.0";function lb(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return function(e){R(e)&&(a("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",k(e)),I(e))}(r),{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ub(e){if(!e)return tc;var t=Jn(e),n=Ac(t);if(1===t.tag){var r=t.type;if(uc(r))return pc(t,r,n)}return n}function cb(e,t,n,r,i,o,a,s){return ib(e,t,!1,null,0,r,0,o,a)}function db(e,t,n,r,i,o,a,s,l,u){var c=ib(n,r,!0,e,0,o,0,s,l);c.context=ub(null);var d=c.current,f=Bv(),p=Fv(d),h=$d(f,p);return h.callback=null!=t?t:null,Jd(d,h,p),function(e,t,n){e.current.lanes=t,Ao(e,t,n),Nv(e,n)}(c,p,f),c}function fb(e,t,n,r){!function(e,t){if(Xr&&"function"==typeof Xr.onScheduleFiberRoot)try{Xr.onScheduleFiberRoot(Vr,e,t)}catch(n){qr||(qr=!0,a("React instrumentation encountered an error: %s",n))}}(t,e);var i=t.current,o=Bv(),s=Fv(i);!function(e){null!==Kr&&"function"==typeof Kr.markRenderScheduled&&Kr.markRenderScheduled(e)}(s);var l=ub(n);null===t.context?t.context=l:t.pendingContext=l,We&&null!==He&&!ob&&(ob=!0,a("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",Ue(He)||"Unknown"));var u=$d(o,s);u.payload={element:e},null!==(r=void 0===r?null:r)&&("function"!=typeof r&&a("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r),u.callback=r);var c=Jd(i,u,s);return null!==c&&(Lv(c,i,s,o),ef(c,i,s)),s}function pb(e){var t=e.current;return t.child?(t.child.tag,t.child.stateNode):null}function hb(e,t){var n,r,i=e.memoizedState;null!==i&&null!==i.dehydrated&&(i.retryLane=(n=i.retryLane,r=t,0!==n&&n<r?n:r))}function mb(e,t){hb(e,t);var n=e.alternate;n&&hb(n,t)}function Ab(e){var t=Rr(e);return null===t?null:t.stateNode}ob=!1,ab={};var gb,vb,yb,bb,xb,Sb,_b,wb,Eb,Cb=function(e){return null},Tb=function(e){return!1},Pb=function(e,t,n){var r=t[n],i=_t(e)?e.slice():we({},e);return n+1===t.length?(_t(i)?i.splice(r,1):delete i[r],i):(i[r]=Pb(e[r],t,n+1),i)},kb=function(e,t){return Pb(e,t,0)},Rb=function(e,t,n,r){var i=t[r],o=_t(e)?e.slice():we({},e);return r+1===t.length?(o[n[r]]=o[i],_t(o)?o.splice(i,1):delete o[i]):o[i]=Rb(e[i],t,n,r+1),o},Ib=function(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void o("copyWithRename() expects paths to be the same except for the deepest key");return Rb(e,t,n,0)}o("copyWithRename() expects paths of the same length")},Ob=function(e,t,n,r){if(n>=t.length)return r;var i=t[n],o=_t(e)?e.slice():we({},e);return o[i]=Ob(e[i],t,n+1,r),o},Mb=function(e,t,n){return Ob(e,t,0,n)},jb=function(e,t){for(var n=e.memoizedState;null!==n&&t>0;)n=n.next,t--;return n};function zb(e){var t=Pr(e);return null===t?null:t.stateNode}function Bb(e){return null}function Fb(){return He}gb=function(e,t,n,r){var i=jb(e,t);if(null!==i){var o=Mb(i.memoizedState,n,r);i.memoizedState=o,i.baseState=o,e.memoizedProps=we({},e.memoizedProps);var a=Gd(e,mi);null!==a&&Lv(a,e,mi,Ki)}},vb=function(e,t,n){var r=jb(e,t);if(null!==r){var i=kb(r.memoizedState,n);r.memoizedState=i,r.baseState=i,e.memoizedProps=we({},e.memoizedProps);var o=Gd(e,mi);null!==o&&Lv(o,e,mi,Ki)}},yb=function(e,t,n,r){var i=jb(e,t);if(null!==i){var o=Ib(i.memoizedState,n,r);i.memoizedState=o,i.baseState=o,e.memoizedProps=we({},e.memoizedProps);var a=Gd(e,mi);null!==a&&Lv(a,e,mi,Ki)}},bb=function(e,t,n){e.pendingProps=Mb(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Gd(e,mi);null!==r&&Lv(r,e,mi,Ki)},xb=function(e,t){e.pendingProps=kb(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=Gd(e,mi);null!==n&&Lv(n,e,mi,Ki)},Sb=function(e,t,n){e.pendingProps=Ib(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Gd(e,mi);null!==r&&Lv(r,e,mi,Ki)},_b=function(e){var t=Gd(e,mi);null!==t&&Lv(t,e,mi,Ki)},wb=function(e){Cb=e},Eb=function(e){Tb=e};var Db="function"==typeof reportError?reportError:function(e){console.error(e)};function Lb(e){this._internalRoot=e}function Nb(e){this._internalRoot=e}function Ub(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gb(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Hb(e){1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&a("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Du(e)&&(e._reactRootContainer?a("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):a("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}Nb.prototype.render=Lb.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw new Error("Cannot update an unmounted root.");"function"==typeof arguments[1]?a("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Ub(arguments[1])?a("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):void 0!==arguments[1]&&a("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(8!==n.nodeType){var r=Ab(t.current);r&&r.parentNode!==n&&a("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}fb(e,t,null,null)},Nb.prototype.unmount=Lb.prototype.unmount=function(){"function"==typeof arguments[0]&&a("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;qv()&&a("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Kv((function(){fb(null,e,null,null)})),Fu(t)}},Nb.prototype.unstable_scheduleHydration=function(e){e&&function(e){for(var t=wo(),n={blockedOn:null,target:e,priority:t},r=0;r<Wo.length&&Mo(t,Wo[r].priority);r++);Wo.splice(r,0,n),0===r&&qo(n)}(e)};var Wb,Vb=r.ReactCurrentOwner;function Xb(e){return e?9===e.nodeType?e.documentElement:e.firstChild:null}function Kb(){}function qb(e,t,n,r,i){Wb(n),function(e,t){null!==e&&"function"!=typeof e&&a("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}(void 0===i?null:i,"render");var o,s=n._reactRootContainer;if(s){if("function"==typeof i){var l=i;i=function(){var e=pb(o);l.call(e)}}fb(t,o=s,e,i)}else o=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=pb(a);o.call(e)}}var a=db(t,r,e,0,0,!1,0,"",Kb);return e._reactRootContainer=a,Bu(a.current,e),cl(8===e.nodeType?e.parentNode:e),Kv(),a}for(var s;s=e.lastChild;)e.removeChild(s);if("function"==typeof r){var l=r;r=function(){var e=pb(u);l.call(e)}}var u=cb(e,0,0,!1,0,"",Kb);return e._reactRootContainer=u,Bu(u.current,e),cl(8===e.nodeType?e.parentNode:e),Kv((function(){fb(t,u,n,r)})),u}(n,t,e,i,r);return pb(o)}Wb=function(e){if(e._reactRootContainer&&8!==e.nodeType){var t=Ab(e._reactRootContainer.current);t&&t.parentNode!==e&&a("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,r=Xb(e);!(!r||!Nu(r))&&!n&&a("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&a("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")},xo=function(e){switch(e.tag){case 3:var t=e.stateNode;if(zo(t)){var n=function(e){return Yi(e.pendingLanes)}(t);!function(e,t){0!==t&&(vo(e,fo(t,mi)),Nv(e,Br()),(Qg&(Ng|Ug))===Lg&&(hv(),Sc()))}(t,n)}break;case d:Kv((function(){var t=Gd(e,mi);if(null!==t){var n=Bv();Lv(t,e,mi,n)}})),mb(e,mi)}},function(e){So=e}((function(e){if(e.tag===d){var t=Ui,n=Gd(e,t);null!==n&&Lv(n,e,t,Bv()),mb(e,t)}})),function(e){_o=e}((function(e){if(e.tag===d){var t=Fv(e),n=Gd(e,t);null!==n&&Lv(n,e,t,Bv()),mb(e,t)}})),function(e){wo=e}(Io),function(e){Eo=e}((function(e,t){var n=Ro;try{return Ro=e,t()}finally{Ro=n}})),"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||a("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Pn=function(e,t,n){switch(t){case"input":return void mt(e,n);case"textarea":return void function(e,t){Ot(e,t)}(e,n);case"select":return void function(e,t){var n=e,r=t.value;null!=r&&Ct(n,!!t.multiple,r,!1)}(e,n)}},jn=Xv,zn=Kv;var Qb,Yb,Zb,$b={usingClientEntryPoint:!1,Events:[Nu,Uu,Gu,On,Mn,Xv]};if(Yb=(Qb={findFiberByHostInstance:Lu,bundleType:1,version:sb,rendererPackageName:"react-dom"}).findFiberByHostInstance,Zb=r.ReactCurrentDispatcher,!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return a("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{e=we({},e,{getLaneLabelMap:$r,injectProfilingHooks:Zr}),Vr=t.inject(e),Xr=t}catch(n){a("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}({bundleType:Qb.bundleType,version:Qb.version,rendererPackageName:Qb.rendererPackageName,rendererConfig:Qb.rendererConfig,overrideHookState:gb,overrideHookStateDeletePath:vb,overrideHookStateRenamePath:yb,overrideProps:bb,overridePropsDeletePath:xb,overridePropsRenamePath:Sb,setErrorHandler:wb,setSuspenseHandler:Eb,scheduleUpdate:_b,currentDispatcherRef:Zb,findHostInstanceByFiber:zb,findFiberByHostInstance:Yb||Bb,findHostInstancesForRefresh:Hy,scheduleRefresh:Ly,scheduleRoot:Ny,setRefreshHandler:My,getCurrentFiber:Fb,reconcilerVersion:sb})&&T&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var Jb=window.location.protocol;/^(https?|file):$/.test(Jb)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+("file:"===Jb?"\nYou might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq":""),"font-weight:bold")}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$b,e.createPortal=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!Ub(t))throw new Error("Target container is not a DOM element.");return lb(e,t,null,n)},e.createRoot=function(e,t){return $b.usingClientEntryPoint||a('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t){if(!Ub(e))throw new Error("createRoot(...): Target container is not a DOM element.");Hb(e);var n=!1,r="",i=Db;null!=t&&(t.hydrate?o("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===ee&&a("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"),!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError),void 0!==t.transitionCallbacks&&t.transitionCallbacks);var s=cb(e,1,0,n,0,r,i);return Bu(s.current,e),cl(8===e.nodeType?e.parentNode:e),new Lb(s)}(e,t)},e.findDOMNode=function(e){var t=Vb.current;return null!==t&&null!==t.stateNode&&(t.stateNode._warnedAboutRefsInRender||a("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Le(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0),null==e?null:1===e.nodeType?e:function(e,t){var n=Jn(e);if(void 0===n){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var r=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+r)}var i=Pr(n);if(null===i)return null;if(8&i.mode){var o=Ue(n)||"Component";if(!ab[o]){ab[o]=!0;var s=He;try{qe(i),8&n.mode?a("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,o):a("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,o)}finally{s?qe(s):Ke()}}}return i.stateNode}(e,"findDOMNode")},e.flushSync=function(e){return qv()&&a("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Kv(e)},e.hydrate=function(e,t,n){if(a("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Gb(t))throw new Error("Target container is not a DOM element.");return Du(t)&&void 0===t._reactRootContainer&&a("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?"),qb(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){return $b.usingClientEntryPoint||a('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t,n){if(!Ub(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");Hb(e),void 0===t&&a("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=null!=n&&n.hydratedSources||null,i=!1,o="",s=Db;null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError));var l=db(t,null,e,1,0,i,0,o,s);if(Bu(l.current,e),cl(e),r)for(var u=0;u<r.length;u++)vp(l,r[u]);return new Nb(l)}(e,t,n)},e.render=function(e,t,n){if(a("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Gb(t))throw new Error("Target container is not a DOM element.");return Du(t)&&void 0===t._reactRootContainer&&a("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?"),qb(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Gb(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");if(Du(e)&&void 0===e._reactRootContainer&&a("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?"),e._reactRootContainer){var t=Xb(e);return t&&!Nu(t)&&a("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."),Kv((function(){qb(null,null,e,!1,(function(){e._reactRootContainer=null,Fu(e)}))})),!0}var n=Xb(e),r=!(!n||!Nu(n)),i=1===e.nodeType&&Gb(e.parentNode)&&!!e.parentNode._reactRootContainer;return r&&a("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",i?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."),!1},e.unstable_batchedUpdates=Xv,e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){return function(e,t,n,r){if(a("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Gb(n))throw new Error("Target container is not a DOM element.");if(null==e||void 0===e._reactInternals)throw new Error("parentComponent must be a valid React Component");return qb(e,t,n,!1,r)}(e,t,n,r)},e.version=sb,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),be=$({"../../node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.js"(e,t){t.exports=ye()}}),xe=$({"../../node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js"(e,t){var n,r;n=e,r=function(){var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",a="day",s="week",l="month",u="quarter",c="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},A=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:A,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+A(r,2,"0")+":"+A(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),o=n-i<0,a=t.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:s,d:a,D:d,h:o,m:i,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",y={};y[v]=m;var b="$isDayjsObject",x=function(e){return e instanceof E||!(!e||!e[b])},S=function e(t,n,r){var i;if(!t)return v;if("string"==typeof t){var o=t.toLowerCase();y[o]&&(i=o),n&&(y[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;y[s]=t,i=s}return!r&&i&&(v=i),i||!r&&v},_=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},w=g;w.l=S,w.i=x,w.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var A=m.prototype;return A.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},A.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},A.$utils=function(){return w},A.isValid=function(){return!(this.$d.toString()===f)},A.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},A.isAfter=function(e,t){return _(e)<this.startOf(t)},A.isBefore=function(e,t){return this.endOf(t)<_(e)},A.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(e,t){var n=this,u=!!w.u(t)||t,f=w.p(e),p=function(e,t){var r=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(a)},h=function(e,t){return w.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,A=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case c:return u?p(1,0):p(31,11);case l:return u?p(1,A):p(0,A+1);case s:var y=this.$locale().weekStart||0,b=(m<y?m+7:m)-y;return p(u?g-b:g+(6-b),A);case a:case d:return h(v+"Hours",0);case o:return h(v+"Minutes",1);case i:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},A.endOf=function(e){return this.startOf(e,!1)},A.$set=function(e,t){var s,u=w.p(e),f="set"+(this.$u?"UTC":""),p=(s={},s[a]=f+"Date",s[d]=f+"Date",s[l]=f+"Month",s[c]=f+"FullYear",s[o]=f+"Hours",s[i]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"Milliseconds",s)[u],h=u===a?this.$D+(t-this.$W):t;if(u===l||u===c){var m=this.clone().set(d,1);m.$d[p](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},A.set=function(e,t){return this.clone().$set(e,t)},A.get=function(e){return this[w.p(e)]()},A.add=function(n,u){var d,f=this;n=Number(n);var p=w.p(u),h=function(e){var t=_(f);return w.w(t.date(t.date()+Math.round(e*n)),f)};if(p===l)return this.set(l,this.$M+n);if(p===c)return this.set(c,this.$y+n);if(p===a)return h(1);if(p===s)return h(7);var m=(d={},d[i]=e,d[o]=t,d[r]=1e3,d)[p]||1,A=this.$d.getTime()+n*m;return w.w(A,this)},A.subtract=function(e,t){return this.add(-1*e,t)},A.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=w.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},p=function(e){return w.s(o%12||12,e,"0")},m=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return w.s(t.$y,4,"0");case"M":return s+1;case"MM":return w.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,u,3);case"MMMM":return d(u,s);case"D":return t.$D;case"DD":return w.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return w.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(o,a,!0);case"A":return m(o,a,!1);case"m":return String(a);case"mm":return w.s(a,2,"0");case"s":return String(t.$s);case"ss":return w.s(t.$s,2,"0");case"SSS":return w.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(n,d,f){var p,h=this,m=w.p(d),A=_(n),g=(A.utcOffset()-this.utcOffset())*e,v=this-A,y=function(){return w.m(h,A)};switch(m){case c:p=y()/12;break;case l:p=y();break;case u:p=y()/3;break;case s:p=(v-g)/6048e5;break;case a:p=(v-g)/864e5;break;case o:p=v/t;break;case i:p=v/e;break;case r:p=v/1e3;break;default:p=v}return f?p:w.a(p)},A.daysInMonth=function(){return this.endOf(l).$D},A.$locale=function(){return y[this.$L]},A.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},A.clone=function(){return w.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},m}(),C=E.prototype;return _.prototype=C,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",a],["$M",l],["$y",c],["$D",d]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),_.extend=function(e,t){return e.$i||(e(t,E,_),e.$i=!0),_},_.locale=S,_.isDayjs=x,_.unix=function(e){return _(1e3*e)},_.en=y[v],_.Ls=y,_.p={},_},"object"==typeof e&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs=r()}}),Se=$({"../../node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/client.js"(e){var t,n=be();t=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,e.createRoot=function(e,r){t.usingClientEntryPoint=!0;try{return n.createRoot(e,r)}finally{t.usingClientEntryPoint=!1}},e.hydrateRoot=function(e,r,i){t.usingClientEntryPoint=!0;try{return n.hydrateRoot(e,r,i)}finally{t.usingClientEntryPoint=!1}}}}),_e=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/extensions/Extensions.mjs"(){t=(e=>(e.Application="application",e.WebGLPipes="webgl-pipes",e.WebGLPipesAdaptor="webgl-pipes-adaptor",e.WebGLSystem="webgl-system",e.WebGPUPipes="webgpu-pipes",e.WebGPUPipesAdaptor="webgpu-pipes-adaptor",e.WebGPUSystem="webgpu-system",e.CanvasSystem="canvas-system",e.CanvasPipesAdaptor="canvas-pipes-adaptor",e.CanvasPipes="canvas-pipes",e.Asset="asset",e.LoadParser="load-parser",e.ResolveParser="resolve-parser",e.CacheParser="cache-parser",e.DetectionParser="detection-parser",e.MaskEffect="mask-effect",e.BlendMode="blend-mode",e.TextureSource="texture-source",e.Environment="environment",e))(t||{}),n=e=>{if("function"==typeof e||"object"==typeof e&&e.extension){if(!e.extension)throw new Error("Extension class must have an extension object");const t="object"!=typeof e.extension?{type:e.extension}:e.extension;e=Q(q({},t),{ref:e})}if("object"!=typeof e)throw new Error("Invalid extension type");return"string"==typeof(e=q({},e)).type&&(e.type=[e.type]),e},r=(e,t)=>{var r;return null!=(r=n(e).priority)?r:t},i={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...e){return e.map(n).forEach((e=>{e.type.forEach((t=>{var n,r;return null==(r=(n=this._removeHandlers)[t])?void 0:r.call(n,e)}))})),this},add(...e){return e.map(n).forEach((e=>{e.type.forEach((t=>{var n,r;const i=this._addHandlers,o=this._queue;i[t]?null==(r=i[t])||r.call(i,e):(o[t]=o[t]||[],null==(n=o[t])||n.push(e))}))})),this},handle(e,t,n){var r;const i=this._addHandlers,o=this._removeHandlers;if(i[e]||o[e])throw new Error(`Extension type ${e} already has a handler`);i[e]=t,o[e]=n;const a=this._queue;return a[e]&&(null==(r=a[e])||r.forEach((e=>t(e))),delete a[e]),this},handleByMap(e,t){return this.handle(e,(e=>{e.name&&(t[e.name]=e.ref)}),(e=>{e.name&&delete t[e.name]}))},handleByNamedList(e,t,n=-1){return this.handle(e,(e=>{t.findIndex((t=>t.name===e.name))>=0||(t.push({name:e.name,value:e.ref}),t.sort(((e,t)=>r(t.value,n)-r(e.value,n))))}),(e=>{const n=t.findIndex((t=>t.name===e.name));-1!==n&&t.splice(n,1)}))},handleByList(e,t,n=-1){return this.handle(e,(e=>{t.includes(e.ref)||(t.push(e.ref),t.sort(((e,t)=>r(t,n)-r(e,n))))}),(e=>{const n=t.indexOf(e.ref);-1!==n&&t.splice(n,1)}))}}}}),we=$({"../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js"(e,t){var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||e,a),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function l(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},l.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,o),!0;case 6:return c.fn.call(c.context,t,n,i,o,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},l.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||i&&!a.once||n&&a.context!==n||s(this,o);else{for(var l=0,u=[],c=a.length;l<c;l++)(a[l].fn!==t||i&&!a[l].once||n&&a[l].context!==n)&&u.push(a[l]);u.length?this._events[o]=1===u.length?u[0]:u:s(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,void 0!==t&&(t.exports=l)}}),Ee=Z({"../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.mjs"(){o=ee(we(),1),a=o.default}}),Ce=Z({"../../node_modules/.pnpm/@pixi+colord@2.9.6/node_modules/@pixi/colord/index.mjs"(){s={grad:.9,turn:360,rad:360/(2*Math.PI)},l=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},u=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},c=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},d=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},f=function(e){return{r:c(e.r,0,255),g:c(e.g,0,255),b:c(e.b,0,255),a:c(e.a)}},p=function(e){return{r:u(e.r),g:u(e.g),b:u(e.b),a:u(e.a,3)}},h=/^#([0-9a-f]{3,8})$/i,m=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},A=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),a=o-Math.min(t,n,r),s=a?o===t?(n-r)/a:o===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:o?a/o*100:0,v:o/255*100,a:i}},g=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),a=r*(1-n),s=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),u=o%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],a:i}},v=function(e){return{h:d(e.h),s:c(e.s,0,100),l:c(e.l,0,100),a:c(e.a)}},y=function(e){return{h:u(e.h),s:u(e.s),l:u(e.l),a:u(e.a,3)}},b=function(e){return g((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},x=function(e){return{h:(t=A(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,r,i},S=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C={string:[[function(e){var t=h.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?u(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?u(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=w.exec(e)||E.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:f({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=S.exec(e)||_.exec(e);if(!t)return null;var n,r,i=v({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(s[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return b(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=void 0===i?1:i;return l(t)&&l(n)&&l(r)?f({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,i=e.a,o=void 0===i?1:i;if(!l(t)||!l(n)||!l(r))return null;var a=v({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return b(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,i=e.a,o=void 0===i?1:i;if(!l(t)||!l(n)||!l(r))return null;var a,s=(a={h:Number(t),s:Number(n),v:Number(r),a:Number(o)},{h:d(a.h),s:c(a.s,0,100),v:c(a.v,0,100),a:c(a.a)});return g(s)},"hsv"]]},T=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},P=function(e){return"string"==typeof e?T(e.trim(),C.string):"object"==typeof e&&null!==e?T(e,C.object):[null,void 0]},k=function(e,t){var n=x(e);return{h:n.h,s:c(n.s+100*t,0,100),l:n.l,a:n.a}},R=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},I=function(e,t){var n=x(e);return{h:n.h,s:n.s,l:c(n.l+100*t,0,100),a:n.a}},O=function(){function e(e){this.parsed=P(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return u(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=p(this.rgba)).r,n=e.g,r=e.b,o=(i=e.a)<1?m(u(255*i)):"","#"+m(t)+m(n)+m(r)+o;var e,t,n,r,i,o},e.prototype.toRgb=function(){return p(this.rgba)},e.prototype.toRgbString=function(){return t=(e=p(this.rgba)).r,n=e.g,r=e.b,(i=e.a)<1?"rgba("+t+", "+n+", "+r+", "+i+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,i},e.prototype.toHsl=function(){return y(x(this.rgba))},e.prototype.toHslString=function(){return t=(e=y(x(this.rgba))).h,n=e.s,r=e.l,(i=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+i+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,i},e.prototype.toHsv=function(){return e=A(this.rgba),{h:u(e.h),s:u(e.s),v:u(e.v),a:u(e.a,3)};var e},e.prototype.invert=function(){return M({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),M(k(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),M(k(this.rgba,-e))},e.prototype.grayscale=function(){return M(k(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),M(I(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),M(I(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?M({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):u(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=x(this.rgba);return"number"==typeof e?M({h:e,s:t.s,l:t.l,a:t.a}):u(t.h)},e.prototype.isEqual=function(e){return this.toHex()===M(e).toHex()},e}(),M=function(e){return e instanceof O?e:new O(e)},j=[],z=function(e){e.forEach((function(e){j.indexOf(e)<0&&(e(O,C),j.push(e))}))}}});function Te(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var i in n)r[n[i]]=i;var o={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var i,a,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),u=1/0,c="black";if(!o.length)for(var d in n)o[d]=new e(n[d]).toRgb();for(var f in n){var p=(i=l,a=o[f],Math.pow(i.r-a.r,2)+Math.pow(i.g-a.g,2)+Math.pow(i.b-a.b,2));p<u&&(u=p,c=f)}return c}},t.string.push([function(t){var r=t.toLowerCase(),i="transparent"===r?"#0000":n[r];return i?new e(i).toRgb():null},"name"])}var Pe,ke,Re,Ie,Oe,Me,je,ze,Be,Fe,De,Le,Ne,Ue=Z({"../../node_modules/.pnpm/@pixi+colord@2.9.6/node_modules/@pixi/colord/plugins/names.mjs"(){}}),Ge=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/color/Color.mjs"(){Ce(),Ue(),z([Te]),(Pe=class e{get red(){return this._components[0]}get green(){return this._components[1]}get blue(){return this._components[2]}get alpha(){return this._components[3]}setValue(e){return this.value=e,this}set value(t){if(t instanceof e)this._value=this._cloneSource(t._value),this._int=t._int,this._components.set(t._components);else{if(null===t)throw new Error("Cannot set Color#value to null");null!==this._value&&this._isSourceEqual(this._value,t)||(this._normalize(t),this._value=this._cloneSource(t))}}get value(){return this._value}_cloneSource(e){return"string"==typeof e||"number"==typeof e||e instanceof Number||null===e?e:Array.isArray(e)||ArrayBuffer.isView(e)?e.slice(0):"object"==typeof e&&null!==e?q({},e):e}_isSourceEqual(e,t){const n=typeof e;if(n!==typeof t)return!1;if("number"===n||"string"===n||e instanceof Number)return e===t;if(Array.isArray(e)&&Array.isArray(t)||ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return e.length===t.length&&e.every(((e,n)=>e===t[n]));if(null!==e&&null!==t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>e[n]===t[n]))}return e===t}toRgba(){const[e,t,n,r]=this._components;return{r:e,g:t,b:n,a:r}}toRgb(){const[e,t,n]=this._components;return{r:e,g:t,b:n}}toRgbaString(){const[e,t,n]=this.toUint8RgbArray();return`rgba(${e},${t},${n},${this.alpha})`}toUint8RgbArray(e){const[t,n,r]=this._components;return this._arrayRgb||(this._arrayRgb=[]),(e=e||this._arrayRgb)[0]=Math.round(255*t),e[1]=Math.round(255*n),e[2]=Math.round(255*r),e}toArray(e){this._arrayRgba||(this._arrayRgba=[]),e=e||this._arrayRgba;const[t,n,r,i]=this._components;return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}toRgbArray(e){this._arrayRgb||(this._arrayRgb=[]),e=e||this._arrayRgb;const[t,n,r]=this._components;return e[0]=t,e[1]=n,e[2]=r,e}toNumber(){return this._int}toBgrNumber(){const[e,t,n]=this.toUint8RgbArray();return(n<<16)+(t<<8)+e}toLittleEndianNumber(){const e=this._int;return(e>>16)+(65280&e)+((255&e)<<16)}multiply(t){const[n,r,i,o]=e._temp.setValue(t)._components;return this._components[0]*=n,this._components[1]*=r,this._components[2]*=i,this._components[3]*=o,this._refreshInt(),this._value=null,this}premultiply(e,t=!0){return t&&(this._components[0]*=e,this._components[1]*=e,this._components[2]*=e),this._components[3]=e,this._refreshInt(),this._value=null,this}toPremultiplied(e,t=!0){if(1===e)return(255<<24)+this._int;if(0===e)return t?0:this._int;let n=this._int>>16&255,r=this._int>>8&255,i=255&this._int;return t&&(n=n*e+.5|0,r=r*e+.5|0,i=i*e+.5|0),(255*e<<24)+(n<<16)+(r<<8)+i}toHex(){const e=this._int.toString(16);return`#${"000000".substring(0,6-e.length)+e}`}toHexa(){const e=Math.round(255*this._components[3]).toString(16);return this.toHex()+"00".substring(0,2-e.length)+e}setAlpha(e){return this._components[3]=this._clamp(e),this}_normalize(t){let n,r,i,o;if(("number"==typeof t||t instanceof Number)&&t>=0&&t<=16777215)n=(t>>16&255)/255,r=(t>>8&255)/255,i=(255&t)/255,o=1;else if((Array.isArray(t)||t instanceof Float32Array)&&t.length>=3&&t.length<=4)t=this._clamp(t),[n,r,i,o=1]=t;else if((t instanceof Uint8Array||t instanceof Uint8ClampedArray)&&t.length>=3&&t.length<=4)t=this._clamp(t,0,255),[n,r,i,o=255]=t,n/=255,r/=255,i/=255,o/=255;else if("string"==typeof t||"object"==typeof t){if("string"==typeof t){const n=e.HEX_PATTERN.exec(t);n&&(t=`#${n[2]}`)}const a=M(t);a.isValid()&&(({r:n,g:r,b:i,a:o}=a.rgba),n/=255,r/=255,i/=255)}if(void 0===n)throw new Error(`Unable to convert color ${t}`);this._components[0]=n,this._components[1]=r,this._components[2]=i,this._components[3]=o,this._refreshInt()}_refreshInt(){this._clamp(this._components);const[e,t,n]=this._components;this._int=(255*e<<16)+(255*t<<8)+(255*n|0)}_clamp(e,t=0,n=1){return"number"==typeof e?Math.min(Math.max(e,t),n):(e.forEach(((r,i)=>{e[i]=Math.min(Math.max(r,t),n)})),e)}static isColorLike(t){return"number"==typeof t||"string"==typeof t||t instanceof Number||t instanceof e||Array.isArray(t)||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Float32Array||void 0!==t.r&&void 0!==t.g&&void 0!==t.b||void 0!==t.r&&void 0!==t.g&&void 0!==t.b&&void 0!==t.a||void 0!==t.h&&void 0!==t.s&&void 0!==t.l||void 0!==t.h&&void 0!==t.s&&void 0!==t.l&&void 0!==t.a||void 0!==t.h&&void 0!==t.s&&void 0!==t.v||void 0!==t.h&&void 0!==t.s&&void 0!==t.v&&void 0!==t.a}constructor(e=16777215){this._value=null,this._components=new Float32Array(4),this._components.fill(1),this._int=16777215,this.value=e}}).shared=new Pe,Pe._temp=new Pe,Pe.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i,ke=Pe}}),He=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/culling/cullingMixin.mjs"(){Re={cullArea:null,cullable:!1,cullableChildren:!0}}}),We=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/maths/misc/const.mjs"(){Ie=2*Math.PI,Oe=180/Math.PI,Me=Math.PI/180}}),Ve=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/maths/point/Point.mjs"(){je=class e{clone(){return new e(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 ze.x=0,ze.y=0,ze}constructor(e=0,t=0){this.x=0,this.y=0,this.x=e,this.y=t}},ze=new je}}),Xe=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/maths/matrix/Matrix.mjs"(){We(),Ve(),Be=class e{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,n,r,i,o){return this.a=e,this.b=t,this.c=n,this.d=r,this.tx=i,this.ty=o,this}toArray(e,t){this.array||(this.array=new Float32Array(9));const n=t||this.array;return e?(n[0]=this.a,n[1]=this.b,n[2]=0,n[3]=this.c,n[4]=this.d,n[5]=0,n[6]=this.tx,n[7]=this.ty,n[8]=1):(n[0]=this.a,n[1]=this.c,n[2]=this.tx,n[3]=this.b,n[4]=this.d,n[5]=this.ty,n[6]=0,n[7]=0,n[8]=1),n}apply(e,t){t=t||new je;const n=e.x,r=e.y;return t.x=this.a*n+this.c*r+this.tx,t.y=this.b*n+this.d*r+this.ty,t}applyInverse(e,t){t=t||new je;const n=this.a,r=this.b,i=this.c,o=this.d,a=this.tx,s=this.ty,l=1/(n*o+i*-r),u=e.x,c=e.y;return t.x=o*l*u+-i*l*c+(s*i-a*o)*l,t.y=n*l*c+-r*l*u+(-s*n+a*r)*l,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){const t=Math.cos(e),n=Math.sin(e),r=this.a,i=this.c,o=this.tx;return this.a=r*t-this.b*n,this.b=r*n+this.b*t,this.c=i*t-this.d*n,this.d=i*n+this.d*t,this.tx=o*t-this.ty*n,this.ty=o*n+this.ty*t,this}append(e){const t=this.a,n=this.b,r=this.c,i=this.d;return this.a=e.a*t+e.b*r,this.b=e.a*n+e.b*i,this.c=e.c*t+e.d*r,this.d=e.c*n+e.d*i,this.tx=e.tx*t+e.ty*r+this.tx,this.ty=e.tx*n+e.ty*i+this.ty,this}appendFrom(e,t){const n=e.a,r=e.b,i=e.c,o=e.d,a=e.tx,s=e.ty,l=t.a,u=t.b,c=t.c,d=t.d;return this.a=n*l+r*c,this.b=n*u+r*d,this.c=i*l+o*c,this.d=i*u+o*d,this.tx=a*l+s*c+t.tx,this.ty=a*u+s*d+t.ty,this}setTransform(e,t,n,r,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-(n*this.a+r*this.c),this.ty=t-(n*this.b+r*this.d),this}prepend(e){const t=this.tx;if(1!==e.a||0!==e.b||0!==e.c||1!==e.d){const t=this.a,n=this.c;this.a=t*e.a+this.b*e.c,this.b=t*e.b+this.b*e.d,this.c=n*e.a+this.d*e.c,this.d=n*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){const t=this.a,n=this.b,r=this.c,i=this.d,o=e.pivot,a=-Math.atan2(-r,i),s=Math.atan2(n,t),l=Math.abs(a+s);return l<1e-5||Math.abs(Ie-l)<1e-5?(e.rotation=s,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=a,e.skew.y=s),e.scale.x=Math.sqrt(t*t+n*n),e.scale.y=Math.sqrt(r*r+i*i),e.position.x=this.tx+(o.x*t+o.y*r),e.position.y=this.ty+(o.x*n+o.y*i),e}invert(){const e=this.a,t=this.b,n=this.c,r=this.d,i=this.tx,o=e*r-t*n;return this.a=r/o,this.b=-t/o,this.c=-n/o,this.d=e/o,this.tx=(n*this.ty-r*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(){const t=new e;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}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 De.identity()}static get shared(){return Fe.identity()}constructor(e=1,t=0,n=0,r=1,i=0,o=0){this.array=null,this.a=e,this.b=t,this.c=n,this.d=r,this.tx=i,this.ty=o}},Fe=new Be,De=new Be}}),Ke=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/maths/point/ObservablePoint.mjs"(){Le=class e{clone(t){return new e(null!=t?t: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))}constructor(e,t,n){this._x=t||0,this._y=n||0,this._observer=e}}}});function qe(e="default"){return void 0===Ne[e]&&(Ne[e]=-1),++Ne[e]}var Qe,Ye,Ze=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/data/uid.mjs"(){Ne={default:-1}}});function $e(e,t,n=3){if(Qe[t])return;let r=(new Error).stack;void 0===r?console.warn("PixiJS Deprecation Warning: ",`${t}\nDeprecated since v${e}`):(r=r.split("\n").splice(n).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${t}\nDeprecated since v${e}`),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${t}\nDeprecated since v${e}`),console.warn(r))),Qe[t]=!0}var Je=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/logging/deprecation.mjs"(){Qe={},Ye="8.0.0"}});function et(e,t,n){const r=e.length;let i;if(t>=r||0===n)return;const o=r-(n=t+n>r?r-t:n);for(i=t;i<o;++i)e[i]=e[i+n];e.length=o}var tt,nt,rt,it,ot,at,st,lt,ut,ct,dt,ft,pt,ht=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/data/removeItems.mjs"(){}}),mt=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.mjs"(){ht(),Je(),tt={allowChildren:!0,removeChildren(e=0,t){const n=null!=t?t:this.children.length,r=n-e,i=[];if(r>0&&r<=n){for(let t=n-1;t>=e;t--){const e=this.children[t];e&&(this.renderGroup&&this.renderGroup.removeChild(e),i.push(e),e.parent=null)}et(this.children,e,n);for(let e=0;e<i.length;++e)this.emit("childRemoved",i[e],this,e),i[e].emit("removed",this);return i}if(0===r&&0===this.children.length)return i;throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},removeChildAt(e){const t=this.getChildAt(e);return this.removeChild(t)},getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]},setChildIndex(e,t){if(t<0||t>=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);this.getChildIndex(e),this.addChildAt(e,t)},getChildIndex(e){const t=this.children.indexOf(e);if(-1===t)throw new Error("The supplied Container must be a child of the caller");return t},addChildAt(e,t){this.allowChildren||$e(Ye,"addChildAt: Only Containers will be allowed to add children in v8.0.0");const{children:n}=this;if(t<0||t>n.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${n.length}`);if(e.parent){const n=e.parent.children.indexOf(e);if(e.parent===this&&n===t)return e;-1!==n&&e.parent.children.splice(n,1)}return t===n.length?n.push(e):n.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;const n=this.getChildIndex(e),r=this.getChildIndex(t);this.children[n]=t,this.children[r]=e},removeFromParent(){var e;null==(e=this.parent)||e.removeChild(this)}}}}),At=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/filters/FilterEffect.mjs"(){nt=class{destroy(){for(let e=0;e<this.filters.length;e++)this.filters[e].destroy();this.filters=null,this.filterArea=null}constructor(e){this.pipe="filter",this.priority=1,this.filters=null==e?void 0:e.filters,this.filterArea=null==e?void 0:e.filterArea}}}}),gt=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/pool/Pool.mjs"(){rt=class{prepopulate(e){for(let t=0;t<e;t++)this._pool[this._index++]=new this._classType;this._count+=e}get(e){var t;let n;return n=this._index>0?this._pool[--this._index]:new this._classType,null==(t=n.init)||t.call(n,e),n}return(e){var t;null==(t=e.reset)||t.call(e),this._pool[this._index++]=e}get totalSize(){return this._count}get totalFree(){return this._index}get totalUsed(){return this._count-this._index}constructor(e,t){this._pool=[],this._count=0,this._index=0,this._classType=e,t&&this.prepopulate(t)}}}}),vt=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/pool/PoolGroup.mjs"(){gt(),it=new class{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 rt(e)),this._poolsByClass.get(e)}stats(){const e={};return this._poolsByClass.forEach((t=>{const n=e[t._classType.name]?t._classType.name+t._classType.ID:t._classType.name;e[n]={free:t.totalFree,used:t.totalUsed,size:t.totalSize}})),e}constructor(){this._poolsByClass=new Map}}}}),yt=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/mask/MaskEffectManager.mjs"(){_e(),vt(),ot=new class{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++){const n=this._tests[t];if(n.test(e))return it.get(n.maskClass,e)}return e}returnMaskEffect(e){it.return(e)}constructor(){this._effectClasses=[],this._tests=[],this._initialized=!1}},i.handleByList(t.MaskEffect,ot._effectClasses)}}),bt=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.mjs"(){At(),yt(),vt(),at={_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){const t=this.effects.indexOf(e);-1!==t&&(this.effects.splice(t,1),!this.isRenderGroupRoot&&this.renderGroup&&(this.renderGroup.structureDidChange=!0),this._updateIsSimple())},set mask(e){if(this._mask||(this._mask={mask:null,effect:null}),this._mask.mask===e)return;if(this._mask.effect&&(this.removeEffect(this._mask.effect),ot.returnMaskEffect(this._mask.effect),this._mask.effect=null),this._mask.mask=e,null==e)return;const t=ot.getMaskEffect(e);this._mask.effect=t,this.addEffect(t)},get mask(){var e;return null==(e=this._mask)?void 0:e.mask},set filters(e){!Array.isArray(e)&&e&&(e=[e]),this._filters||(this._filters={filters:null,effect:null,filterArea:null});const t=(null==e?void 0:e.length)>0,n=this._filters.effect&&!t||!this._filters.effect&&t;if(e=Array.isArray(e)?e.slice(0):e,this._filters.filters=Object.freeze(e),n)if(t){const e=it.get(nt);this._filters.effect=e,this.addEffect(e)}else{const e=this._filters.effect;this.removeEffect(e),e.filterArea=null,e.filters=null,this._filters.effect=null,it.return(e)}t&&(this._filters.effect.filters=e,this._filters.effect.filterArea=this.filterArea)},get filters(){var e;return null==(e=this._filters)?void 0:e.filters},set filterArea(e){this._filters||(this._filters={filters:null,effect:null,filterArea:null}),this._filters.filterArea=e},get filterArea(){var e;return null==(e=this._filters)?void 0:e.filterArea}}}}),xt=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.mjs"(){Je(),st={label:null,get name(){return $e(Ye,"Container.name property has been removed, use Container.label instead"),this.label},set name(e){$e(Ye,"Container.name property has been removed, use Container.label instead"),this.label=e},getChildByName(e,t=!1){return this.getChildByLabel(e,t)},getChildByLabel(e,t=!1){const n=this.children;for(let r=0;r<n.length;r++){const t=n[r];if(t.label===e||e instanceof RegExp&&e.test(t.label))return t}if(t)for(let r=0;r<n.length;r++){const t=n[r].getChildByLabel(e,!0);if(t)return t}return null},getChildrenByLabel(e,t=!1,n=[]){const r=this.children;for(let i=0;i<r.length;i++){const t=r[i];(t.label===e||e instanceof RegExp&&e.test(t.label))&&n.push(t)}if(t)for(let i=0;i<r.length;i++)r[i].getChildrenByLabel(e,!0,n);return n}}}}),St=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/maths/shapes/Rectangle.mjs"(){Ve(),lt=[new je,new je,new je,new je],ut=class e{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 e(0,0,0,0)}clone(){return new e(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,n){const{width:r,height:i}=this;if(r<=0||i<=0)return!1;const o=this.x,a=this.y;return e>=o-n/2&&e<=o+r+n/2&&t>=a-n/2&&t<=a+i+n/2&&!(e>o+n/2&&e<o+r-n/2&&t>a+n/2&&t<a+i-n/2)}intersects(e,t){if(!t){const t=this.x<e.x?e.x:this.x;if((this.right>e.right?e.right:this.right)<=t)return!1;const n=this.y<e.y?e.y:this.y;return(this.bottom>e.bottom?e.bottom:this.bottom)>n}const n=this.left,r=this.right,i=this.top,o=this.bottom;if(r<=n||o<=i)return!1;const a=lt[0].set(e.left,e.top),s=lt[1].set(e.left,e.bottom),l=lt[2].set(e.right,e.top),u=lt[3].set(e.right,e.bottom);if(l.x<=a.x||s.y<=a.y)return!1;const c=Math.sign(t.a*t.d-t.b*t.c);if(0===c)return!1;if(t.apply(a,a),t.apply(s,s),t.apply(l,l),t.apply(u,u),Math.max(a.x,s.x,l.x,u.x)<=n||Math.min(a.x,s.x,l.x,u.x)>=r||Math.max(a.y,s.y,l.y,u.y)<=i||Math.min(a.y,s.y,l.y,u.y)>=o)return!1;const d=c*(s.y-a.y),f=c*(a.x-s.x),p=d*n+f*i,h=d*r+f*i,m=d*n+f*o,A=d*r+f*o;if(Math.max(p,h,m,A)<=d*a.x+f*a.y||Math.min(p,h,m,A)>=d*u.x+f*u.y)return!1;const g=c*(a.y-l.y),v=c*(l.x-a.x),y=g*n+v*i,b=g*r+v*i,x=g*n+v*o,S=g*r+v*o;return!(Math.max(y,b,x,S)<=g*a.x+v*a.y||Math.min(y,b,x,S)>=g*u.x+v*u.y)}pad(e=0,t=e){return this.x-=e,this.y-=t,this.width+=2*e,this.height+=2*t,this}fit(e){const t=Math.max(this.x,e.x),n=Math.min(this.x+this.width,e.x+e.width),r=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(n-t,0),this.y=r,this.height=Math.max(i-r,0),this}ceil(e=1,t=.001){const n=Math.ceil((this.x+this.width-t)*e)/e,r=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=n-this.x,this.height=r-this.y,this}enlarge(e){const t=Math.min(this.x,e.x),n=Math.max(this.x+this.width,e.x+e.width),r=Math.min(this.y,e.y),i=Math.max(this.y+this.height,e.y+e.height);return this.x=t,this.width=n-t,this.y=r,this.height=i-r,this}getBounds(t){return(t=t||new e).copyFrom(this),t}toString(){return`[pixi.js/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}constructor(e=0,t=0,n=0,r=0){this.type="rectangle",this.x=Number(e),this.y=Number(t),this.width=Number(n),this.height=Number(r)}}}}),_t=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/bounds/Bounds.mjs"(){Xe(),St(),ct=new Be,dt=class e{isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}get rectangle(){this._rectangle||(this._rectangle=new ut);const 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=ct,this}set(e,t,n,r){this.minX=e,this.minY=t,this.maxX=n,this.maxY=r}addFrame(e,t,n,r,i){i||(i=this.matrix);const o=i.a,a=i.b,s=i.c,l=i.d,u=i.tx,c=i.ty;let d=this.minX,f=this.minY,p=this.maxX,h=this.maxY,m=o*e+s*t+u,A=a*e+l*t+c;m<d&&(d=m),A<f&&(f=A),m>p&&(p=m),A>h&&(h=A),m=o*n+s*t+u,A=a*n+l*t+c,m<d&&(d=m),A<f&&(f=A),m>p&&(p=m),A>h&&(h=A),m=o*e+s*r+u,A=a*e+l*r+c,m<d&&(d=m),A<f&&(f=A),m>p&&(p=m),A>h&&(h=A),m=o*n+s*r+u,A=a*n+l*r+c,m<d&&(d=m),A<f&&(f=A),m>p&&(p=m),A>h&&(h=A),this.minX=d,this.minY=f,this.maxX=p,this.maxY=h}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){const t=this.minX,n=this.minY,r=this.maxX,i=this.maxY,{a:o,b:a,c:s,d:l,tx:u,ty:c}=e;let d=o*t+s*n+u,f=a*t+l*n+c;this.minX=d,this.minY=f,this.maxX=d,this.maxY=f,d=o*r+s*n+u,f=a*r+l*n+c,this.minX=d<this.minX?d:this.minX,this.minY=f<this.minY?f:this.minY,this.maxX=d>this.maxX?d:this.maxX,this.maxY=f>this.maxY?f:this.maxY,d=o*t+s*i+u,f=a*t+l*i+c,this.minX=d<this.minX?d:this.minX,this.minY=f<this.minY?f:this.minY,this.maxX=d>this.maxX?d:this.maxX,this.maxY=f>this.maxY?f:this.maxY,d=o*r+s*i+u,f=a*r+l*i+c,this.minX=d<this.minX?d:this.minX,this.minY=f<this.minY?f:this.minY,this.maxX=d>this.maxX?d:this.maxX,this.maxY=f>this.maxY?f: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,n,r){return this.minX<e&&(this.minX=e),this.maxX>t&&(this.maxX=t),this.minY<n&&(this.minY=n),this.maxY>r&&(this.maxY=r),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 e(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){const t=this.maxX-this.minX;this.minX=e,this.maxX=e+t}get y(){return this.minY}set y(e){const 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,n,r){let i=this.minX,o=this.minY,a=this.maxX,s=this.maxY;r||(r=this.matrix);const l=r.a,u=r.b,c=r.c,d=r.d,f=r.tx,p=r.ty;for(let h=t;h<n;h+=2){const t=e[h],n=e[h+1],r=l*t+c*n+f,m=u*t+d*n+p;i=r<i?r:i,o=m<o?m:o,a=r>a?r: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}]`}constructor(e=1/0,t=1/0,n=-1/0,r=-1/0){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=ct,this.minX=e,this.minY=t,this.maxX=n,this.maxY=r}}}}),wt=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/bounds/utils/matrixAndBoundsPool.mjs"(){Xe(),gt(),_t(),ft=new rt(Be),pt=new rt(dt)}});function Et(e,t,n){let r,i;return n.clear(),e.parent?t?r=e.parent.worldTransform:(i=ft.get().identity(),r=Tt(e,i)):r=Be.IDENTITY,Ct(e,n,r,t),i&&ft.return(i),n.isValid||n.set(0,0,0,0),n}function Ct(e,t,n,r){var i,o;if(!e.visible||!e.measurable)return;let a;r?a=e.worldTransform:(e.updateLocalTransform(),a=ft.get(),a.appendFrom(e.localTransform,n));const s=t,l=!!e.effects.length;if(l&&(t=pt.get().clear()),e.boundsArea)t.addRect(e.boundsArea,a);else{e.addBounds&&(t.matrix=a,e.addBounds(t));for(let n=0;n<e.children.length;n++)Ct(e.children[n],t,a,r)}if(l){for(let n=0;n<e.effects.length;n++)null==(o=(i=e.effects[n]).addBounds)||o.call(i,t);s.addBounds(t,Be.IDENTITY),pt.return(t)}r||ft.return(a)}function Tt(e,t){const n=e.parent;return n&&(Tt(n,t),n.updateLocalTransform(),t.append(n.localTransform)),t}var Pt,kt,Rt=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/bounds/getGlobalBounds.mjs"(){Xe(),wt()}});function It(...e){Pt!==kt&&(++Pt===kt?console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS."):console.warn("PixiJS Warning: ",...e))}var Ot=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/logging/warn.mjs"(){Pt=0,kt=500}});function Mt(e,t,n){return t.clear(),n||(n=Be.IDENTITY),jt(e,t,n,e,!0),t.isValid||t.set(0,0,0,0),t}function jt(e,t,n,r,i){var o,a;let s;if(i)s=ft.get(),s=n.copyTo(s);else{if(!e.visible||!e.measurable)return;e.updateLocalTransform();const t=e.localTransform;s=ft.get(),s.appendFrom(t,n)}const l=t,u=!!e.effects.length;if(u&&(t=pt.get().clear()),e.boundsArea)t.addRect(e.boundsArea,s);else{e.renderPipeId&&(t.matrix=s,e.addBounds(t));const n=e.children;for(let e=0;e<n.length;e++)jt(n[e],t,s,r,!1)}if(u){for(let n=0;n<e.effects.length;n++)null==(a=(o=e.effects[n]).addLocalBounds)||a.call(o,t,r);l.addBounds(t,Be.IDENTITY),pt.return(t)}ft.return(s)}var zt=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/bounds/getLocalBounds.mjs"(){Xe(),wt()}});function Bt(e,t){const n=e.children;for(let r=0;r<n.length;r++){const e=n[r],i=(255&e.uid)<<24|16777215&e._didChangeId;t.data[t.index]!==i&&(t.data[t.index]=i,t.didChange=!0),t.index++,e.children.length&&Bt(e,t)}return t.didChange}var Ft,Dt,Lt,Nt,Ut=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/utils/checkChildrenDidChange.mjs"(){}}),Gt=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.mjs"(){Xe(),_t(),Rt(),zt(),Ut(),Ft=new Be,Dt={_localBoundsCacheId:-1,_localBoundsCacheData:null,_setWidth(e,t){const n=Math.sign(this.scale.x)||1;this.scale.x=0!==t?e/t*n:n},_setHeight(e,t){const n=Math.sign(this.scale.y)||1;this.scale.y=0!==t?e/t*n:n},getLocalBounds(){this._localBoundsCacheData||(this._localBoundsCacheData={data:[],index:1,didChange:!1,localBounds:new dt});const 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),Bt(this,e),e.didChange&&Mt(this,e.localBounds,Ft),e.localBounds},getBounds(e,t){return Et(this,e,t||new dt)}}}}),Ht=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.mjs"(){Lt={_onRender:null,set onRender(e){const t=this.renderGroup;if(!e)return this._onRender&&(null==t||t.removeOnRender(this)),void(this._onRender=null);this._onRender||null==t||t.addOnRender(this),this._onRender=e},get onRender(){return this._onRender}}}});function Wt(e,t){return e._zIndex-t._zIndex}var Vt,Xt,Kt,qt,Qt,Yt,Zt,$t,Jt,en,tn,nn,rn,on,an,sn,ln,un,cn,dn,fn,pn,hn,mn,An,gn,vn,yn=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.mjs"(){Nt={_zIndex:0,sortDirty:!1,sortableChildren:!1,get zIndex(){return this._zIndex},set zIndex(e){this._zIndex!==e&&(this._zIndex=e,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(Wt))}}}}),bn=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.mjs"(){Xe(),Ve(),Rt(),Vt={getGlobalPosition(e=new je,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,n=!1){if(!n){this.updateLocalTransform();const n=Tt(this,new Be);return n.append(this.localTransform),n.apply(e,t)}return this.worldTransform.apply(e,t)},toLocal(e,t,n,r){if(t&&(e=t.toGlobal(e,n,r)),!r){this.updateLocalTransform();const t=Tt(this,new Be);return t.append(this.localTransform),t.applyInverse(e,n)}return this.worldTransform.applyInverse(e,n)}}}}),xn=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/instructions/InstructionSet.mjs"(){Ze(),Xt=class{reset(){this.instructionSize=0}add(e){this.instructions[this.instructionSize++]=e}log(){this.instructions.length=this.instructionSize,console.table(this.instructions,["type","action"])}constructor(){this.uid=qe("instructionSet"),this.instructions=[],this.instructionSize=0}}}}),Sn=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/RenderGroup.mjs"(){Xe(),xn(),Kt=class{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);const 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));const t=e.children;e.isRenderGroupRoot||this.onChildUpdate(e);for(let n=0;n<t.length;n++)this.addChild(t[n])}removeChild(e){if(this.structureDidChange=!0,e._onRender&&(e.isRenderGroupRoot?e.renderGroup.root===e&&this.removeOnRender(e):this.removeOnRender(e)),e.renderGroup.root!==e){const 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);const 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){const t=this.childrenToUpdate[e.relativeRenderGroupDepth];if(!t)return;const n=t.list.indexOf(e);n>-1&&t.list.splice(n,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()}constructor(e){this.renderPipeId="renderGroup",this.root=null,this.canBundle=!1,this.renderGroupParent=null,this.renderGroupChildren=[],this._children=[],this.worldTransform=new Be,this.worldColorAlpha=4294967295,this.worldColor=16777215,this.worldAlpha=1,this.childrenToUpdate=Object.create(null),this.updateTick=0,this.childrenRenderablesToUpdate={list:[],index:0},this.structureDidChange=!0,this.instructionSet=new Xt,this._onRenderContainers=[],this.root=e,this.addChild(e)}}}}),_n=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/utils/assignWithIgnore.mjs"(){}}),wn=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/Container.mjs"(){Ee(),Ge(),He(),Xe(),We(),Ke(),Ze(),Je(),mt(),bt(),xt(),Gt(),Ht(),yn(),bn(),Sn(),_n(),qt=new Le(null),Qt=new Le(null),Yt=new Le(null,1,1),Zt=1,$t=2,Jt=4,(en=class e extends a{static mixin(t){Object.defineProperties(e.prototype,Object.getOwnPropertyDescriptors(t))}addChild(...e){if(this.allowChildren||$e(Ye,"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]}const 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):(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]}const t=e[0],n=this.children.indexOf(t);return n>-1&&(this._didChangeId+=4096,this.children.splice(n,1),this.renderGroup&&this.renderGroup.removeChild(t),t.parent=null,this.emit("childRemoved",t,this,n),t.emit("removed",this)),t}_onUpdate(e){if(e&&e===this._skew&&this._updateSkew(),this._didChangeId++,!this.didChange)if(this.didChange=!0,this.isRenderGroupRoot){const e=this.renderGroup.renderGroupParent;e&&e.onChildUpdate(this)}else this.renderGroup&&this.renderGroup.onChildUpdate(this)}set isRenderGroup(e){if(this.isRenderGroupRoot&&!1===e)throw new 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;const e=this.renderGroup;if(e&&e.removeChild(this),this.renderGroup=new Kt(this),e){for(let t=0;t<e.renderGroupChildren.length;t++){const n=e.renderGroupChildren[t];let r=n.root;for(;r;){if(r===this){this.renderGroup.addRenderGroupChild(n);break}r=r.parent}}e.addRenderGroupChild(this.renderGroup)}this._updateIsSimple(),this.groupTransform=Be.IDENTITY}_updateIsSimple(){this.isSimple=!this.isRenderGroupRoot&&0===this.effects.length}get worldTransform(){return this._worldTransform||(this._worldTransform=new Be),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*Oe}set angle(e){this.rotation=e*Me}get pivot(){return this._pivot===Qt&&(this._pivot=new Le(this,0,0)),this._pivot}set pivot(e){this._pivot===Qt&&(this._pivot=new Le(this,0,0)),"number"==typeof e?this._pivot.set(e):this._pivot.copyFrom(e)}get skew(){return this._skew===qt&&(this._skew=new Le(this,0,0)),this._skew}set skew(e){this._skew===qt&&(this._skew=new Le(this,0,0)),this._skew.copyFrom(e)}get scale(){return this._scale===Yt&&(this._scale=new Le(this,1,1)),this._scale}set scale(e){this._scale===Yt&&(this._scale=new Le(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){const t=this.getLocalBounds().width;this._setWidth(e,t)}get height(){return Math.abs(this.scale.y*this.getLocalBounds().height)}set height(e){const t=this.getLocalBounds().height;this._setHeight(e,t)}getSize(e){e||(e={});const 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){var n;const r=this.getLocalBounds();let i,o;"object"!=typeof e?(i=e,o=null!=t?t:e):(i=e.width,o=null!=(n=e.height)?n:e.width),void 0!==i&&this._setWidth(i,r.width),void 0!==o&&this._setHeight(o,r.height)}_updateSkew(){const 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;const e=this.localTransform,t=this._scale,n=this._pivot,r=this._position,i=t._x,o=t._y,a=n._x,s=n._y;e.a=this._cx*i,e.b=this._sx*i,e.c=this._cy*o,e.d=this._sy*o,e.tx=r._x-(a*e.a+s*e.c),e.ty=r._y-(a*e.b+s*e.d)}set alpha(e){e!==this.localAlpha&&(this.localAlpha=e,this._updateFlags|=Zt,this._onUpdate())}get alpha(){return this.localAlpha}set tint(e){const t=ke.shared.setValue(null!=e?e:16777215).toBgrNumber();t!==this.localColor&&(this.localColor=t,this._updateFlags|=Zt,this._onUpdate())}get tint(){const 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|=$t,this.localBlendMode=e,this._onUpdate())}get blendMode(){return this.localBlendMode}get visible(){return!!(2&this.localDisplayStatus)}set visible(e){const t=e?1:0;(2&this.localDisplayStatus)>>1!==t&&(this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0),this._updateFlags|=Jt,this.localDisplayStatus^=2,this._onUpdate())}get culled(){return!(4&this.localDisplayStatus)}set culled(e){const t=e?1:0;(4&this.localDisplayStatus)>>2!==t&&(this.renderGroup&&!this.isRenderGroupRoot&&(this.renderGroup.structureDidChange=!0),this._updateFlags|=Jt,this.localDisplayStatus^=4,this._onUpdate())}get renderable(){return!!(1&this.localDisplayStatus)}set renderable(e){const t=e?1:0;(1&this.localDisplayStatus)!==t&&(this._updateFlags|=Jt,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();const t="boolean"==typeof e?e:null==e?void 0:e.children,n=this.removeChildren(0,this.children.length);if(t)for(let r=0;r<n.length;++r)n[r].destroy(e)}constructor(e={}){var t,n;super(),this.uid=qe("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 Be,this.relativeGroupTransform=new Be,this.groupTransform=this.relativeGroupTransform,this.destroyed=!1,this._position=new Le(this,0,0),this._scale=Yt,this._pivot=Qt,this._skew=qt,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._rotation=0,this.localColor=16777215,this.localAlpha=1,this.groupAlpha=1,this.groupColor=16777215,this.groupColorAlpha=4294967295,this.localBlendMode="inherit",this.groupBlendMode="normal",this.localDisplayStatus=7,this.globalDisplayStatus=7,this._didChangeId=0,this._didLocalTransformChangeId=-1,function(e,t,n={}){for(const r in t)n[r]||void 0===t[r]||(e[r]=t[r])}(this,e,{children:!0,parent:!0,effects:!0}),null==(t=e.children)||t.forEach((e=>this.addChild(e))),this.effects=[],null==(n=e.parent)||n.addChild(this)}}).mixin(tt),en.mixin(Vt),en.mixin(Lt),en.mixin(Dt),en.mixin(at),en.mixin(st),en.mixin(Nt),en.mixin(Re)}}),En=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/events/FederatedEvent.mjs"(){Ve(),tn=class e{get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}get data(){return this}composedPath(){return!this.manager||this.path&&this.path[this.path.length-1]===this.target||(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}initEvent(e,t,n){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(e,t,n,r,i){throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}preventDefault(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}stopImmediatePropagation(){this.propagationImmediatelyStopped=!0}stopPropagation(){this.propagationStopped=!0}constructor(t){this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.composed=!1,this.defaultPrevented=!1,this.eventPhase=e.prototype.NONE,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new je,this.page=new je,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=t}}}});function Cn(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,r=n.split("[FBAN");void 0!==r[1]&&(n=r[0]),void 0!==(r=n.split("Twitter"))[1]&&(n=r[0]);var i=function(e){return function(t){return t.test(e)}}(n),o={apple:{phone:i(nn)&&!i(dn),ipod:i(rn),tablet:!i(nn)&&(i(on)||vn(t))&&!i(dn),universal:i(an),device:(i(nn)||i(rn)||i(on)||i(an)||vn(t))&&!i(dn)},amazon:{phone:i(un),tablet:!i(un)&&i(cn),device:i(un)||i(cn)},android:{phone:!i(dn)&&i(un)||!i(dn)&&i(sn),tablet:!i(dn)&&!i(un)&&!i(sn)&&(i(cn)||i(ln)),device:!i(dn)&&(i(un)||i(cn)||i(sn)||i(ln))||i(/\bokhttp\b/i)},windows:{phone:i(dn),tablet:i(fn),device:i(dn)||i(fn)},other:{blackberry:i(pn),blackberry10:i(hn),opera:i(mn),firefox:i(gn),chrome:i(An),device:i(pn)||i(hn)||i(mn)||i(gn)||i(An)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}var Tn,Pn,kn,Rn,In,On,Mn,jn,zn,Bn,Fn,Dn,Ln,Nn,Un,Gn,Hn,Wn,Vn,Xn,Kn,qn,Qn,Yn,Zn,$n,Jn,er=Z({"../../node_modules/.pnpm/ismobilejs@1.1.1/node_modules/ismobilejs/esm/isMobile.js"(){nn=/iPhone/i,rn=/iPod/i,on=/iPad/i,an=/\biOS-universal(?:.+)Mac\b/i,sn=/\bAndroid(?:.+)Mobile\b/i,ln=/Android/i,un=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,cn=/Silk/i,dn=/Windows Phone/i,fn=/\bWindows(?:.+)ARM\b/i,pn=/BlackBerry/i,hn=/BB10/i,mn=/Opera Mini/i,An=/\b(CriOS|Chrome)(?:.+)Mobile/i,gn=/Mobile(?:.+)Firefox\b/i,vn=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream}}}),tr=Z({"../../node_modules/.pnpm/ismobilejs@1.1.1/node_modules/ismobilejs/esm/index.js"(){er(),er()}}),nr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/browser/isMobile.mjs"(){tr(),Pn=null!=(Tn=Cn.default)?Tn:Cn,kn=Pn(globalThis.navigator)}}),rr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/accessibility/AccessibilitySystem.mjs"(){En(),_e(),nr(),ht(),(Rn=class{get isActive(){return this._isActive}get isMobileAccessibility(){return this._isMobileAccessibility}get hookDiv(){return this._hookDiv}_createTouchHook(){const e=document.createElement("button");e.style.width="1px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.style.zIndex=2..toString(),e.style.backgroundColor="#FF0000",e.title="select to enable accessibility for this content",e.addEventListener("focus",(()=>{this._isMobileAccessibility=!0,this._activate(),this._destroyTouchHook()})),document.body.appendChild(e),this._hookDiv=e}_destroyTouchHook(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)}_activate(){var e;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this._renderer.runners.postrender.add(this),null==(e=this._renderer.view.canvas.parentNode)||e.appendChild(this._div))}_deactivate(){var e;this._isActive&&!this._isMobileAccessibility&&(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this._renderer.runners.postrender.remove(this),null==(e=this._div.parentNode)||e.removeChild(this._div))}_updateAccessibleObjects(e){if(!e.visible||!e.accessibleChildren)return;e.accessible&&e.isInteractive()&&(e._accessibleActive||this._addChild(e),e._renderId=this._renderId);const t=e.children;if(t)for(let n=0;n<t.length;n++)this._updateAccessibleObjects(t[n])}init(e){var t;this.debug=null!=(t=null==e?void 0:e.debug)?t:this.debug,this._renderer.runners.postrender.remove(this)}postrender(){const e=performance.now();if(this._mobileInfo.android.device&&e<this._androidUpdateCount)return;if(this._androidUpdateCount=e+this._androidUpdateFrequency,!this._renderer.renderingToScreen||!this._renderer.view.canvas)return;this._renderer.lastObjectRendered&&this._updateAccessibleObjects(this._renderer.lastObjectRendered);const{x:t,y:n,width:r,height:i}=this._renderer.view.canvas.getBoundingClientRect(),{width:o,height:a,resolution:s}=this._renderer,l=r/o*s,u=i/a*s;let c=this._div;c.style.left=`${t}px`,c.style.top=`${n}px`,c.style.width=`${o}px`,c.style.height=`${a}px`;for(let d=0;d<this._children.length;d++){const e=this._children[d];if(e._renderId!==this._renderId)e._accessibleActive=!1,et(this._children,d,1),this._div.removeChild(e._accessibleDiv),this._pool.push(e._accessibleDiv),e._accessibleDiv=null,d--;else{c=e._accessibleDiv;let t=e.hitArea;const n=e.worldTransform;e.hitArea?(c.style.left=(n.tx+t.x*n.a)*l+"px",c.style.top=(n.ty+t.y*n.d)*u+"px",c.style.width=t.width*n.a*l+"px",c.style.height=t.height*n.d*u+"px"):(t=e.getBounds().rectangle,this._capHitArea(t),c.style.left=t.x*l+"px",c.style.top=t.y*u+"px",c.style.width=t.width*l+"px",c.style.height=t.height*u+"px",c.title!==e.accessibleTitle&&null!==e.accessibleTitle&&(c.title=e.accessibleTitle||""),c.getAttribute("aria-label")!==e.accessibleHint&&null!==e.accessibleHint&&c.setAttribute("aria-label",e.accessibleHint||"")),e.accessibleTitle===c.title&&e.tabIndex===c.tabIndex||(c.title=e.accessibleTitle||"",c.tabIndex=e.tabIndex,this.debug&&this._updateDebugHTML(c))}}this._renderId++}_updateDebugHTML(e){e.innerHTML=`type: ${e.type}</br> title : ${e.title}</br> tabIndex: ${e.tabIndex}`}_capHitArea(e){e.x<0&&(e.width+=e.x,e.x=0),e.y<0&&(e.height+=e.y,e.y=0);const{width:t,height:n}=this._renderer;e.x+e.width>t&&(e.width=t-e.x),e.y+e.height>n&&(e.height=n-e.y)}_addChild(e){let t=this._pool.pop();t||(t=document.createElement("button"),t.style.width="100px",t.style.height="100px",t.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",t.style.position="absolute",t.style.zIndex=2..toString(),t.style.borderStyle="none",navigator.userAgent.toLowerCase().includes("chrome")?t.setAttribute("aria-live","off"):t.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?t.setAttribute("aria-relevant","additions"):t.setAttribute("aria-relevant","text"),t.addEventListener("click",this._onClick.bind(this)),t.addEventListener("focus",this._onFocus.bind(this)),t.addEventListener("focusout",this._onFocusOut.bind(this))),t.style.pointerEvents=e.accessiblePointerEvents,t.type=e.accessibleType,e.accessibleTitle&&null!==e.accessibleTitle?t.title=e.accessibleTitle:e.accessibleHint&&null!==e.accessibleHint||(t.title=`container ${e.tabIndex}`),e.accessibleHint&&null!==e.accessibleHint&&t.setAttribute("aria-label",e.accessibleHint),this.debug&&this._updateDebugHTML(t),e._accessibleActive=!0,e._accessibleDiv=t,t.container=e,this._children.push(e),this._div.appendChild(e._accessibleDiv),e._accessibleDiv.tabIndex=e.tabIndex}_dispatchEvent(e,t){const{container:n}=e.target,r=this._renderer.events.rootBoundary,i=Object.assign(new tn(r),{target:n});r.rootTarget=this._renderer.lastObjectRendered,t.forEach((e=>r.dispatchEvent(i,e)))}_onClick(e){this._dispatchEvent(e,["click","pointertap","tap"])}_onFocus(e){e.target.getAttribute("aria-live")||e.target.setAttribute("aria-live","assertive"),this._dispatchEvent(e,["mouseover"])}_onFocusOut(e){e.target.getAttribute("aria-live")||e.target.setAttribute("aria-live","polite"),this._dispatchEvent(e,["mouseout"])}_onKeyDown(e){9===e.keyCode&&this._activate()}_onMouseMove(e){0===e.movementX&&0===e.movementY||this._deactivate()}destroy(){this._destroyTouchHook(),this._div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this._pool=null,this._children=null,this._renderer=null}constructor(e,t=kn){this._mobileInfo=t,this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this._pool=[],this._renderId=0,this._children=[],this._androidUpdateCount=0,this._androidUpdateFrequency=500,this._hookDiv=null,(t.tablet||t.phone)&&this._createTouchHook();const n=document.createElement("div");n.style.width="100px",n.style.height="100px",n.style.position="absolute",n.style.top="0px",n.style.left="0px",n.style.zIndex=2..toString(),this._div=n,this._renderer=e,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}}).extension={type:[t.WebGLSystem,t.WebGPUSystem],name:"accessibility"}}}),ir=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/accessibility/accessibilityTarget.mjs"(){In={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,_renderId:-1}}}),or=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/accessibility/init.mjs"(){_e(),wn(),rr(),ir(),i.add(Rn),en.mixin(In)}}),ar=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/app/ResizePlugin.mjs"(){_e(),(On=class{static init(e){Object.defineProperty(this,"resizeTo",{set(e){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=e,e&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this._cancelResize(),this._resizeId=requestAnimationFrame((()=>this.resize())))},this._cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{if(!this._resizeTo)return;let e,t;if(this._cancelResize(),this._resizeTo===globalThis.window)e=globalThis.innerWidth,t=globalThis.innerHeight;else{const{clientWidth:n,clientHeight:r}=this._resizeTo;e=n,t=r}this.renderer.resize(e,t),this.render()},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this._cancelResize(),this._cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}).extension=t.Application}}),sr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/ticker/const.mjs"(){Mn=(e=>(e[e.INTERACTION=50]="INTERACTION",e[e.HIGH=25]="HIGH",e[e.NORMAL=0]="NORMAL",e[e.LOW=-25]="LOW",e[e.UTILITY=-50]="UTILITY",e))(Mn||{})}}),lr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/ticker/TickerListener.mjs"(){jn=class{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));const 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);const t=this.next;return this.next=e?null:t,this.previous=null,t}constructor(e,t=null,n=0,r=!1){this.next=null,this.previous=null,this._destroyed=!1,this._fn=e,this._context=t,this.priority=n,this._once=r}}}}),ur=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/ticker/Ticker.mjs"(){sr(),lr(),(zn=class e{_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,n=Mn.NORMAL){return this._addListener(new jn(e,t,n))}addOnce(e,t,n=Mn.NORMAL){return this._addListener(new jn(e,t,n,!0))}_addListener(e){let t=this._head.next,n=this._head;if(t){for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}else e.connect(n);return this._startIfPossible(),this}remove(e,t){let n=this._head.next;for(;n;)n=n.match(e,t)?n.destroy():n.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 n;if(t>this.lastTime){if(n=this.elapsedMS=t-this.lastTime,n>this._maxElapsedMS&&(n=this._maxElapsedMS),n*=this.speed,this._minElapsedMS){const e=t-this._lastFrame|0;if(e<this._minElapsedMS)return;this._lastFrame=t-e%this._minElapsedMS}this.deltaMS=n,this.deltaTime=this.deltaMS*e.targetFPMS;const r=this._head;let i=r.next;for(;i;)i=i.emit(this);r.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){const n=Math.min(this.maxFPS,t),r=Math.min(Math.max(0,n)/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{const t=Math.max(this.minFPS,e);this._minElapsedMS=1/(t/1e3)}}static get shared(){if(!e._shared){const t=e._shared=new e;t.autoStart=!0,t._protected=!0}return e._shared}static get system(){if(!e._system){const t=e._system=new e;t.autoStart=!0,t._protected=!0}return e._system}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 jn(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)))}}}).targetFPMS=.06,Bn=zn}}),cr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/app/TickerPlugin.mjs"(){_e(),sr(),ur(),(Fn=class{static init(e){e=Object.assign({autoStart:!0,sharedTicker:!1},e),Object.defineProperty(this,"ticker",{set(e){this._ticker&&this._ticker.remove(this.render,this),this._ticker=e,e&&e.add(this.render,this,Mn.LOW)},get(){return this._ticker}}),this.stop=()=>{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=e.sharedTicker?Bn.shared:new Bn,e.autoStart&&this.start()}static destroy(){if(this._ticker){const e=this._ticker;this.ticker=null,e.destroy()}}}).extension=t.Application}}),dr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/app/init.mjs"(){_e(),ar(),cr(),i.add(On),i.add(Fn)}}),fr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/events/EventTicker.mjs"(){sr(),ur(),Dn=new class{init(e){this.removeTickerListener(),this.events=e,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this._tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(e){this._pauseUpdate=e}addTickerListener(){!this._tickerAdded&&this.domElement&&(Bn.system.add(this._tickerUpdate,this,Mn.INTERACTION),this._tickerAdded=!0)}removeTickerListener(){this._tickerAdded&&(Bn.system.remove(this._tickerUpdate,this),this._tickerAdded=!1)}pointerMoved(){this._didMove=!0}_update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove)return void(this._didMove=!1);const e=this.events._rootPointerEvent;this.events.supportsTouchEvents&&"touch"===e.pointerType||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:e.clientX,clientY:e.clientY}))}_tickerUpdate(e){this._deltaTime+=e.deltaTime,this._deltaTime<this.interactionFrequency||(this._deltaTime=0,this._update())}constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this._tickerAdded=!1,this._pauseUpdate=!0}}}}),pr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/events/FederatedMouseEvent.mjs"(){Ve(),En(),Ln=class extends tn{get clientX(){return this.client.x}get clientY(){return this.client.y}get x(){return this.clientX}get y(){return this.clientY}get movementX(){return this.movement.x}get movementY(){return this.movement.y}get offsetX(){return this.offset.x}get offsetY(){return this.offset.y}get globalX(){return this.global.x}get globalY(){return this.global.y}get screenX(){return this.screen.x}get screenY(){return this.screen.y}getLocalPosition(e,t,n){return e.worldTransform.applyInverse(n||this.global,t)}getModifierState(e){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(e)}initMouseEvent(e,t,n,r,i,o,a,s,l,u,c,d,f,p,h){throw new Error("Method not implemented.")}constructor(){super(...arguments),this.client=new je,this.movement=new je,this.offset=new je,this.global=new je,this.screen=new je}}}}),hr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/events/FederatedPointerEvent.mjs"(){pr(),Nn=class extends Ln{getCoalescedEvents(){return"pointermove"===this.type||"mousemove"===this.type||"touchmove"===this.type?[this]:[]}getPredictedEvents(){throw new Error("getPredictedEvents is not supported!")}constructor(){super(...arguments),this.width=0,this.height=0,this.isPrimary=!1}}}}),mr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/events/FederatedWheelEvent.mjs"(){pr(),Un=class extends Ln{constructor(){super(...arguments),this.DOM_DELTA_PIXEL=0,this.DOM_DELTA_LINE=1,this.DOM_DELTA_PAGE=2}},Un.DOM_DELTA_PIXEL=0,Un.DOM_DELTA_LINE=1,Un.DOM_DELTA_PAGE=2}}),Ar=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/events/EventBoundary.mjs"(){Ee(),Ve(),Ot(),fr(),pr(),hr(),mr(),Gn=new je,Hn=new je,Wn=class{addEventMapping(e,t){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:t,priority:0}),this.mappingTable[e].sort(((e,t)=>e.priority-t.priority))}dispatchEvent(e,t){e.propagationStopped=!1,e.propagationImmediatelyStopped=!1,this.propagate(e,t),this.dispatch.emit(t||e.type,e)}mapEvent(e){if(!this.rootTarget)return;const t=this.mappingTable[e.type];if(t)for(let n=0,r=t.length;n<r;n++)t[n].fn(e);else It(`[EventBoundary]: Event mapping not defined for ${e.type}`)}hitTest(e,t){Dn.pauseUpdate=!0;const n=this[this._isPointerMoveEvent&&this.enableGlobalMoveEvents?"hitTestMoveRecursive":"hitTestRecursive"](this.rootTarget,this.rootTarget.eventMode,Gn.set(e,t),this.hitTestFn,this.hitPruneFn);return n&&n[0]}propagate(e,t){if(!e.target)return;const n=e.composedPath();e.eventPhase=e.CAPTURING_PHASE;for(let r=0,i=n.length-1;r<i;r++)if(e.currentTarget=n[r],this.notifyTarget(e,t),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,t),!e.propagationStopped&&!e.propagationImmediatelyStopped){e.eventPhase=e.BUBBLING_PHASE;for(let r=n.length-2;r>=0;r--)if(e.currentTarget=n[r],this.notifyTarget(e,t),e.propagationStopped||e.propagationImmediatelyStopped)return}}all(e,t,n=this._allInteractiveElements){if(0===n.length)return;e.eventPhase=e.BUBBLING_PHASE;const r=Array.isArray(t)?t:[t];for(let i=n.length-1;i>=0;i--)r.forEach((t=>{e.currentTarget=n[i],this.notifyTarget(e,t)}))}propagationPath(e){const t=[e];for(let n=0;n<2048&&e!==this.rootTarget&&e.parent;n++){if(!e.parent)throw new Error("Cannot find propagation path to disconnected target");t.push(e.parent),e=e.parent}return t.reverse(),t}hitTestMoveRecursive(e,t,n,r,i,o=!1){let a=!1;if(this._interactivePrune(e))return null;if("dynamic"!==e.eventMode&&"dynamic"!==t||(Dn.pauseUpdate=!1),e.interactiveChildren&&e.children){const s=e.children;for(let l=s.length-1;l>=0;l--){const u=s[l],c=this.hitTestMoveRecursive(u,this._isInteractive(t)?t:u.eventMode,n,r,i,o||i(e,n));if(c){if(c.length>0&&!c[c.length-1].parent)continue;const t=e.isInteractive();(c.length>0||t)&&(t&&this._allInteractiveElements.push(e),c.push(e)),0===this._hitElements.length&&(this._hitElements=c),a=!0}}}const s=this._isInteractive(t),l=e.isInteractive();return l&&l&&this._allInteractiveElements.push(e),o||this._hitElements.length>0?null:a?this._hitElements:s&&!i(e,n)&&r(e,n)?l?[e]:[]:null}hitTestRecursive(e,t,n,r,i){if(this._interactivePrune(e)||i(e,n))return null;if("dynamic"!==e.eventMode&&"dynamic"!==t||(Dn.pauseUpdate=!1),e.interactiveChildren&&e.children){const o=e.children,a=n;for(let n=o.length-1;n>=0;n--){const s=o[n],l=this.hitTestRecursive(s,this._isInteractive(t)?t:s.eventMode,a,r,i);if(l){if(l.length>0&&!l[l.length-1].parent)continue;const t=e.isInteractive();return(l.length>0||t)&&l.push(e),l}}}const o=this._isInteractive(t),a=e.isInteractive();return o&&r(e,n)?a?[e]:[]:null}_isInteractive(e){return"static"===e||"dynamic"===e}_interactivePrune(e){return!(e&&e.visible&&e.renderable)||"none"===e.eventMode||"passive"===e.eventMode&&!e.interactiveChildren}hitPruneFn(e,t){if(e.hitArea&&(e.worldTransform.applyInverse(t,Hn),!e.hitArea.contains(Hn.x,Hn.y)))return!0;if(e.effects&&e.effects.length)for(let n=0;n<e.effects.length;n++){const r=e.effects[n];if(r.containsPoint&&!r.containsPoint(t,this.hitTestFn))return!0}return!1}hitTestFn(e,t){return!!e.hitArea||!!(null==e?void 0:e.containsPoint)&&(e.worldTransform.applyInverse(t,Hn),e.containsPoint(Hn))}notifyTarget(e,t){var n,r;const i=`on${t=null!=t?t:e.type}`;null==(r=(n=e.currentTarget)[i])||r.call(n,e);const o=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?`${t}capture`:t;this._notifyListeners(e,o),e.eventPhase===e.AT_TARGET&&this._notifyListeners(e,t)}mapPointerDown(e){if(!(e instanceof Nn))return void It("EventBoundary cannot map a non-pointer event as a pointer event");const t=this.createPointerEvent(e);if(this.dispatchEvent(t,"pointerdown"),"touch"===t.pointerType)this.dispatchEvent(t,"touchstart");else if("mouse"===t.pointerType||"pen"===t.pointerType){const e=2===t.button;this.dispatchEvent(t,e?"rightdown":"mousedown")}this.trackingData(e.pointerId).pressTargetsByButton[e.button]=t.composedPath(),this.freeEvent(t)}mapPointerMove(e){var t,n,r;if(!(e instanceof Nn))return void It("EventBoundary cannot map a non-pointer event as a pointer event");this._allInteractiveElements.length=0,this._hitElements.length=0,this._isPointerMoveEvent=!0;const i=this.createPointerEvent(e);this._isPointerMoveEvent=!1;const o="mouse"===i.pointerType||"pen"===i.pointerType,a=this.trackingData(e.pointerId),s=this.findMountedTarget(a.overTargets);if((null==(t=a.overTargets)?void 0:t.length)>0&&s!==i.target){const t="mousemove"===e.type?"mouseout":"pointerout",n=this.createPointerEvent(e,t,s);if(this.dispatchEvent(n,"pointerout"),o&&this.dispatchEvent(n,"mouseout"),!i.composedPath().includes(s)){const t=this.createPointerEvent(e,"pointerleave",s);for(t.eventPhase=t.AT_TARGET;t.target&&!i.composedPath().includes(t.target);)t.currentTarget=t.target,this.notifyTarget(t),o&&this.notifyTarget(t,"mouseleave"),t.target=t.target.parent;this.freeEvent(t)}this.freeEvent(n)}if(s!==i.target){const t="mousemove"===e.type?"mouseover":"pointerover",n=this.clonePointerEvent(i,t);this.dispatchEvent(n,"pointerover"),o&&this.dispatchEvent(n,"mouseover");let r=null==s?void 0:s.parent;for(;r&&r!==this.rootTarget.parent&&r!==i.target;)r=r.parent;if(!r||r===this.rootTarget.parent){const e=this.clonePointerEvent(i,"pointerenter");for(e.eventPhase=e.AT_TARGET;e.target&&e.target!==s&&e.target!==this.rootTarget.parent;)e.currentTarget=e.target,this.notifyTarget(e),o&&this.notifyTarget(e,"mouseenter"),e.target=e.target.parent;this.freeEvent(e)}this.freeEvent(n)}const l=[],u=null==(n=this.enableGlobalMoveEvents)||n;this.moveOnAll?l.push("pointermove"):this.dispatchEvent(i,"pointermove"),u&&l.push("globalpointermove"),"touch"===i.pointerType&&(this.moveOnAll?l.splice(1,0,"touchmove"):this.dispatchEvent(i,"touchmove"),u&&l.push("globaltouchmove")),o&&(this.moveOnAll?l.splice(1,0,"mousemove"):this.dispatchEvent(i,"mousemove"),u&&l.push("globalmousemove"),this.cursor=null==(r=i.target)?void 0:r.cursor),l.length>0&&this.all(i,l),this._allInteractiveElements.length=0,this._hitElements.length=0,a.overTargets=i.composedPath(),this.freeEvent(i)}mapPointerOver(e){var t;if(!(e instanceof Nn))return void It("EventBoundary cannot map a non-pointer event as a pointer event");const n=this.trackingData(e.pointerId),r=this.createPointerEvent(e),i="mouse"===r.pointerType||"pen"===r.pointerType;this.dispatchEvent(r,"pointerover"),i&&this.dispatchEvent(r,"mouseover"),"mouse"===r.pointerType&&(this.cursor=null==(t=r.target)?void 0:t.cursor);const o=this.clonePointerEvent(r,"pointerenter");for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==this.rootTarget.parent;)o.currentTarget=o.target,this.notifyTarget(o),i&&this.notifyTarget(o,"mouseenter"),o.target=o.target.parent;n.overTargets=r.composedPath(),this.freeEvent(r),this.freeEvent(o)}mapPointerOut(e){if(!(e instanceof Nn))return void It("EventBoundary cannot map a non-pointer event as a pointer event");const t=this.trackingData(e.pointerId);if(t.overTargets){const n="mouse"===e.pointerType||"pen"===e.pointerType,r=this.findMountedTarget(t.overTargets),i=this.createPointerEvent(e,"pointerout",r);this.dispatchEvent(i),n&&this.dispatchEvent(i,"mouseout");const o=this.createPointerEvent(e,"pointerleave",r);for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==this.rootTarget.parent;)o.currentTarget=o.target,this.notifyTarget(o),n&&this.notifyTarget(o,"mouseleave"),o.target=o.target.parent;t.overTargets=null,this.freeEvent(i),this.freeEvent(o)}this.cursor=null}mapPointerUp(e){if(!(e instanceof Nn))return void It("EventBoundary cannot map a non-pointer event as a pointer event");const t=performance.now(),n=this.createPointerEvent(e);if(this.dispatchEvent(n,"pointerup"),"touch"===n.pointerType)this.dispatchEvent(n,"touchend");else if("mouse"===n.pointerType||"pen"===n.pointerType){const e=2===n.button;this.dispatchEvent(n,e?"rightup":"mouseup")}const r=this.trackingData(e.pointerId),i=this.findMountedTarget(r.pressTargetsByButton[e.button]);let o=i;if(i&&!n.composedPath().includes(i)){let t=i;for(;t&&!n.composedPath().includes(t);){if(n.currentTarget=t,this.notifyTarget(n,"pointerupoutside"),"touch"===n.pointerType)this.notifyTarget(n,"touchendoutside");else if("mouse"===n.pointerType||"pen"===n.pointerType){const e=2===n.button;this.notifyTarget(n,e?"rightupoutside":"mouseupoutside")}t=t.parent}delete r.pressTargetsByButton[e.button],o=t}if(o){const i=this.clonePointerEvent(n,"click");i.target=o,i.path=null,r.clicksByButton[e.button]||(r.clicksByButton[e.button]={clickCount:0,target:i.target,timeStamp:t});const a=r.clicksByButton[e.button];if(a.target===i.target&&t-a.timeStamp<200?++a.clickCount:a.clickCount=1,a.target=i.target,a.timeStamp=t,i.detail=a.clickCount,"mouse"===i.pointerType){const e=2===i.button;this.dispatchEvent(i,e?"rightclick":"click")}else"touch"===i.pointerType&&this.dispatchEvent(i,"tap");this.dispatchEvent(i,"pointertap"),this.freeEvent(i)}this.freeEvent(n)}mapPointerUpOutside(e){if(!(e instanceof Nn))return void It("EventBoundary cannot map a non-pointer event as a pointer event");const t=this.trackingData(e.pointerId),n=this.findMountedTarget(t.pressTargetsByButton[e.button]),r=this.createPointerEvent(e);if(n){let i=n;for(;i;)r.currentTarget=i,this.notifyTarget(r,"pointerupoutside"),"touch"===r.pointerType?this.notifyTarget(r,"touchendoutside"):"mouse"!==r.pointerType&&"pen"!==r.pointerType||this.notifyTarget(r,2===r.button?"rightupoutside":"mouseupoutside"),i=i.parent;delete t.pressTargetsByButton[e.button]}this.freeEvent(r)}mapWheel(e){if(!(e instanceof Un))return void It("EventBoundary cannot map a non-wheel event as a wheel event");const t=this.createWheelEvent(e);this.dispatchEvent(t),this.freeEvent(t)}findMountedTarget(e){if(!e)return null;let t=e[0];for(let n=1;n<e.length&&e[n].parent===t;n++)t=e[n];return t}createPointerEvent(e,t,n){var r;const i=this.allocateEvent(Nn);return this.copyPointerData(e,i),this.copyMouseData(e,i),this.copyData(e,i),i.nativeEvent=e.nativeEvent,i.originalEvent=e,i.target=null!=(r=null!=n?n:this.hitTest(i.global.x,i.global.y))?r:this._hitElements[0],"string"==typeof t&&(i.type=t),i}createWheelEvent(e){const t=this.allocateEvent(Un);return this.copyWheelData(e,t),this.copyMouseData(e,t),this.copyData(e,t),t.nativeEvent=e.nativeEvent,t.originalEvent=e,t.target=this.hitTest(t.global.x,t.global.y),t}clonePointerEvent(e,t){const n=this.allocateEvent(Nn);return n.nativeEvent=e.nativeEvent,n.originalEvent=e.originalEvent,this.copyPointerData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.target=e.target,n.path=e.composedPath().slice(),n.type=null!=t?t:n.type,n}copyWheelData(e,t){t.deltaMode=e.deltaMode,t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ}copyPointerData(e,t){e instanceof Nn&&t instanceof Nn&&(t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist)}copyMouseData(e,t){e instanceof Ln&&t instanceof Ln&&(t.altKey=e.altKey,t.button=e.button,t.buttons=e.buttons,t.client.copyFrom(e.client),t.ctrlKey=e.ctrlKey,t.metaKey=e.metaKey,t.movement.copyFrom(e.movement),t.screen.copyFrom(e.screen),t.shiftKey=e.shiftKey,t.global.copyFrom(e.global))}copyData(e,t){t.isTrusted=e.isTrusted,t.srcElement=e.srcElement,t.timeStamp=performance.now(),t.type=e.type,t.detail=e.detail,t.view=e.view,t.which=e.which,t.layer.copyFrom(e.layer),t.page.copyFrom(e.page)}trackingData(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]}allocateEvent(e){this.eventPool.has(e)||this.eventPool.set(e,[]);const t=this.eventPool.get(e).pop()||new e(this);return t.eventPhase=t.NONE,t.currentTarget=null,t.path=null,t.target=null,t}freeEvent(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");const t=e.constructor;this.eventPool.has(t)||this.eventPool.set(t,[]),this.eventPool.get(t).push(e)}_notifyListeners(e,t){const n=e.currentTarget._events[t];if(n&&e.currentTarget.isInteractive())if("fn"in n)n.once&&e.currentTarget.removeListener(t,n.fn,void 0,!0),n.fn.call(n.context,e);else for(let r=0,i=n.length;r<i&&!e.propagationImmediatelyStopped;r++)n[r].once&&e.currentTarget.removeListener(t,n[r].fn,void 0,!0),n[r].fn.call(n[r].context,e)}constructor(e){this.dispatch=new a,this.moveOnAll=!1,this.enableGlobalMoveEvents=!0,this.mappingState={trackingData:{}},this.eventPool=new Map,this._allInteractiveElements=[],this._hitElements=[],this._isPointerMoveEvent=!1,this.rootTarget=e,this.hitPruneFn=this.hitPruneFn.bind(this),this.hitTestFn=this.hitTestFn.bind(this),this.mapPointerDown=this.mapPointerDown.bind(this),this.mapPointerMove=this.mapPointerMove.bind(this),this.mapPointerOut=this.mapPointerOut.bind(this),this.mapPointerOver=this.mapPointerOver.bind(this),this.mapPointerUp=this.mapPointerUp.bind(this),this.mapPointerUpOutside=this.mapPointerUpOutside.bind(this),this.mapWheel=this.mapWheel.bind(this),this.mappingTable={},this.addEventMapping("pointerdown",this.mapPointerDown),this.addEventMapping("pointermove",this.mapPointerMove),this.addEventMapping("pointerout",this.mapPointerOut),this.addEventMapping("pointerleave",this.mapPointerOut),this.addEventMapping("pointerover",this.mapPointerOver),this.addEventMapping("pointerup",this.mapPointerUp),this.addEventMapping("pointerupoutside",this.mapPointerUpOutside),this.addEventMapping("wheel",this.mapWheel)}}}}),gr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/events/EventSystem.mjs"(){_e(),Ar(),fr(),hr(),mr(),Vn={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},(Xn=class e{static get defaultEventMode(){return this._defaultEventMode}init(t){var n,r;const{canvas:i,resolution:o}=this.renderer;this.setTargetElement(i),this.resolution=o,e._defaultEventMode=null!=(n=t.eventMode)?n:"passive",Object.assign(this.features,null!=(r=t.eventFeatures)?r:{}),this.rootBoundary.enableGlobalMoveEvents=this.features.globalMove}resolutionChange(e){this.resolution=e}destroy(){this.setTargetElement(null),this.renderer=null,this._currentCursor=null}setCursor(e){e=e||"default";let t=!0;if(globalThis.OffscreenCanvas&&this.domElement instanceof OffscreenCanvas&&(t=!1),this._currentCursor===e)return;this._currentCursor=e;const n=this.cursorStyles[e];if(n)switch(typeof n){case"string":t&&(this.domElement.style.cursor=n);break;case"function":n(e);break;case"object":t&&Object.assign(this.domElement.style,n)}else t&&"string"==typeof e&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.domElement.style.cursor=e)}get pointer(){return this._rootPointerEvent}_onPointerDown(e){if(!this.features.click)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered;const t=this._normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&(e.cancelable||!("cancelable"in e))&&e.preventDefault();for(let n=0,r=t.length;n<r;n++){const e=t[n],r=this._bootstrapEvent(this._rootPointerEvent,e);this.rootBoundary.mapEvent(r)}this.setCursor(this.rootBoundary.cursor)}_onPointerMove(e){if(!this.features.move)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered,Dn.pointerMoved();const t=this._normalizeToPointerData(e);for(let n=0,r=t.length;n<r;n++){const e=this._bootstrapEvent(this._rootPointerEvent,t[n]);this.rootBoundary.mapEvent(e)}this.setCursor(this.rootBoundary.cursor)}_onPointerUp(e){if(!this.features.click)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered;let t=e.target;e.composedPath&&e.composedPath().length>0&&(t=e.composedPath()[0]);const n=t!==this.domElement?"outside":"",r=this._normalizeToPointerData(e);for(let i=0,o=r.length;i<o;i++){const e=this._bootstrapEvent(this._rootPointerEvent,r[i]);e.type+=n,this.rootBoundary.mapEvent(e)}this.setCursor(this.rootBoundary.cursor)}_onPointerOverOut(e){if(!this.features.click)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered;const t=this._normalizeToPointerData(e);for(let n=0,r=t.length;n<r;n++){const e=this._bootstrapEvent(this._rootPointerEvent,t[n]);this.rootBoundary.mapEvent(e)}this.setCursor(this.rootBoundary.cursor)}onWheel(e){if(!this.features.wheel)return;const t=this.normalizeWheelEvent(e);this.rootBoundary.rootTarget=this.renderer.lastObjectRendered,this.rootBoundary.mapEvent(t)}setTargetElement(e){this._removeEvents(),this.domElement=e,Dn.domElement=e,this._addEvents()}_addEvents(){if(this._eventsAdded||!this.domElement)return;Dn.addTickerListener();const e=this.domElement.style;e&&(globalThis.navigator.msPointerEnabled?(e.msContentZooming="none",e.msTouchAction="none"):this.supportsPointerEvents&&(e.touchAction="none")),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this._onPointerMove,!0),this.domElement.addEventListener("pointerdown",this._onPointerDown,!0),this.domElement.addEventListener("pointerleave",this._onPointerOverOut,!0),this.domElement.addEventListener("pointerover",this._onPointerOverOut,!0),globalThis.addEventListener("pointerup",this._onPointerUp,!0)):(globalThis.document.addEventListener("mousemove",this._onPointerMove,!0),this.domElement.addEventListener("mousedown",this._onPointerDown,!0),this.domElement.addEventListener("mouseout",this._onPointerOverOut,!0),this.domElement.addEventListener("mouseover",this._onPointerOverOut,!0),globalThis.addEventListener("mouseup",this._onPointerUp,!0),this.supportsTouchEvents&&(this.domElement.addEventListener("touchstart",this._onPointerDown,!0),this.domElement.addEventListener("touchend",this._onPointerUp,!0),this.domElement.addEventListener("touchmove",this._onPointerMove,!0))),this.domElement.addEventListener("wheel",this.onWheel,{passive:!0,capture:!0}),this._eventsAdded=!0}_removeEvents(){if(!this._eventsAdded||!this.domElement)return;Dn.removeTickerListener();const e=this.domElement.style;e&&(globalThis.navigator.msPointerEnabled?(e.msContentZooming="",e.msTouchAction=""):this.supportsPointerEvents&&(e.touchAction="")),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this._onPointerMove,!0),this.domElement.removeEventListener("pointerdown",this._onPointerDown,!0),this.domElement.removeEventListener("pointerleave",this._onPointerOverOut,!0),this.domElement.removeEventListener("pointerover",this._onPointerOverOut,!0),globalThis.removeEventListener("pointerup",this._onPointerUp,!0)):(globalThis.document.removeEventListener("mousemove",this._onPointerMove,!0),this.domElement.removeEventListener("mousedown",this._onPointerDown,!0),this.domElement.removeEventListener("mouseout",this._onPointerOverOut,!0),this.domElement.removeEventListener("mouseover",this._onPointerOverOut,!0),globalThis.removeEventListener("mouseup",this._onPointerUp,!0),this.supportsTouchEvents&&(this.domElement.removeEventListener("touchstart",this._onPointerDown,!0),this.domElement.removeEventListener("touchend",this._onPointerUp,!0),this.domElement.removeEventListener("touchmove",this._onPointerMove,!0))),this.domElement.removeEventListener("wheel",this.onWheel,!0),this.domElement=null,this._eventsAdded=!1}mapPositionToPoint(e,t,n){const r=this.domElement.isConnected?this.domElement.getBoundingClientRect():{x:0,y:0,width:this.domElement.width,height:this.domElement.height,left:0,top:0},i=1/this.resolution;e.x=(t-r.left)*(this.domElement.width/r.width)*i,e.y=(n-r.top)*(this.domElement.height/r.height)*i}_normalizeToPointerData(e){const t=[];if(this.supportsTouchEvents&&e instanceof TouchEvent)for(let n=0,r=e.changedTouches.length;n<r;n++){const r=e.changedTouches[n];void 0===r.button&&(r.button=0),void 0===r.buttons&&(r.buttons=1),void 0===r.isPrimary&&(r.isPrimary=1===e.touches.length&&"touchstart"===e.type),void 0===r.width&&(r.width=r.radiusX||1),void 0===r.height&&(r.height=r.radiusY||1),void 0===r.tiltX&&(r.tiltX=0),void 0===r.tiltY&&(r.tiltY=0),void 0===r.pointerType&&(r.pointerType="touch"),void 0===r.pointerId&&(r.pointerId=r.identifier||0),void 0===r.pressure&&(r.pressure=r.force||.5),void 0===r.twist&&(r.twist=0),void 0===r.tangentialPressure&&(r.tangentialPressure=0),void 0===r.layerX&&(r.layerX=r.offsetX=r.clientX),void 0===r.layerY&&(r.layerY=r.offsetY=r.clientY),r.isNormalized=!0,r.type=e.type,t.push(r)}else if(!globalThis.MouseEvent||e instanceof MouseEvent&&!(this.supportsPointerEvents&&e instanceof globalThis.PointerEvent)){const n=e;void 0===n.isPrimary&&(n.isPrimary=!0),void 0===n.width&&(n.width=1),void 0===n.height&&(n.height=1),void 0===n.tiltX&&(n.tiltX=0),void 0===n.tiltY&&(n.tiltY=0),void 0===n.pointerType&&(n.pointerType="mouse"),void 0===n.pointerId&&(n.pointerId=1),void 0===n.pressure&&(n.pressure=.5),void 0===n.twist&&(n.twist=0),void 0===n.tangentialPressure&&(n.tangentialPressure=0),n.isNormalized=!0,t.push(n)}else t.push(e);return t}normalizeWheelEvent(e){const t=this._rootWheelEvent;return this._transferMouseData(t,e),t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ,t.deltaMode=e.deltaMode,this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.copyFrom(t.screen),t.offset.copyFrom(t.screen),t.nativeEvent=e,t.type=e.type,t}_bootstrapEvent(e,t){return e.originalEvent=null,e.nativeEvent=t,e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist,this._transferMouseData(e,t),this.mapPositionToPoint(e.screen,t.clientX,t.clientY),e.global.copyFrom(e.screen),e.offset.copyFrom(e.screen),e.isTrusted=t.isTrusted,"pointerleave"===e.type&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=Vn[e.type]||e.type),e}_transferMouseData(e,t){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=performance.now(),e.type=t.type,e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.relatedTarget=null,e.shiftKey=t.shiftKey}constructor(t){this.supportsTouchEvents="ontouchstart"in globalThis,this.supportsPointerEvents=!!globalThis.PointerEvent,this.domElement=null,this.resolution=1,this.renderer=t,this.rootBoundary=new Wn(null),Dn.init(this),this.autoPreventDefault=!0,this._eventsAdded=!1,this._rootPointerEvent=new Nn(null),this._rootWheelEvent=new Un(null),this.cursorStyles={default:"inherit",pointer:"pointer"},this.features=new Proxy(q({},e.defaultEventFeatures),{set:(e,t,n)=>("globalMove"===t&&(this.rootBoundary.enableGlobalMoveEvents=n),e[t]=n,!0)}),this._onPointerDown=this._onPointerDown.bind(this),this._onPointerMove=this._onPointerMove.bind(this),this._onPointerUp=this._onPointerUp.bind(this),this._onPointerOverOut=this._onPointerOverOut.bind(this),this.onWheel=this.onWheel.bind(this)}}).extension={name:"events",type:[t.WebGLSystem,t.CanvasSystem,t.WebGPUSystem],priority:-1},Xn.defaultEventFeatures={move:!0,globalMove:!0,click:!0,wheel:!0},Kn=Xn}}),vr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/events/FederatedEventTarget.mjs"(){gr(),En(),qn={onclick:null,onmousedown:null,onmouseenter:null,onmouseleave:null,onmousemove:null,onglobalmousemove:null,onmouseout:null,onmouseover:null,onmouseup:null,onmouseupoutside:null,onpointercancel:null,onpointerdown:null,onpointerenter:null,onpointerleave:null,onpointermove:null,onglobalpointermove:null,onpointerout:null,onpointerover:null,onpointertap:null,onpointerup:null,onpointerupoutside:null,onrightclick:null,onrightdown:null,onrightup:null,onrightupoutside:null,ontap:null,ontouchcancel:null,ontouchend:null,ontouchendoutside:null,ontouchmove:null,onglobaltouchmove:null,ontouchstart:null,onwheel:null,get interactive(){return"dynamic"===this.eventMode||"static"===this.eventMode},set interactive(e){this.eventMode=e?"static":"passive"},_internalEventMode:void 0,get eventMode(){var e;return null!=(e=this._internalEventMode)?e:Kn.defaultEventMode},set eventMode(e){this._internalEventMode=e},isInteractive(){return"static"===this.eventMode||"dynamic"===this.eventMode},interactiveChildren:!0,hitArea:null,addEventListener(e,t,n){const r="boolean"==typeof n&&n||"object"==typeof n&&n.capture,i="object"==typeof n?n.signal:void 0,o="object"==typeof n&&!0===n.once,a="function"==typeof t?void 0:t;e=r?`${e}capture`:e;const s="function"==typeof t?t:t.handleEvent,l=this;i&&i.addEventListener("abort",(()=>{l.off(e,s,a)})),o?l.once(e,s,a):l.on(e,s,a)},removeEventListener(e,t,n){const r="function"==typeof t?void 0:t;e="boolean"==typeof n&&n||"object"==typeof n&&n.capture?`${e}capture`:e,t="function"==typeof t?t:t.handleEvent,this.off(e,t,r)},dispatchEvent(e){if(!(e instanceof tn))throw new Error("Container cannot propagate events outside of the Federated Events API");return e.defaultPrevented=!1,e.path=null,e.target=this,e.manager.dispatchEvent(e),!e.defaultPrevented}}}}),yr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/events/init.mjs"(){_e(),wn(),gr(),vr(),i.add(Kn),en.mixin(qn)}}),br=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/assets/loader/parsers/LoaderParser.mjs"(){Qn=(e=>(e[e.Low=0]="Low",e[e.Normal=1]="Normal",e[e.High=2]="High",e))(Qn||{})}}),xr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/environment-browser/BrowserAdapter.mjs"(){Yn={createCanvas:(e,t)=>{const n=document.createElement("canvas");return n.width=e,n.height=t,n},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>{var e;return null!=(e=document.baseURI)?e:window.location.href},getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>(new DOMParser).parseFromString(e,"text/xml")}}}),Sr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/environment/adapter.mjs"(){xr(),Zn=Yn,$n={get:()=>Zn,set(e){Zn=e}}}});function _r(e){if("string"!=typeof e)throw new TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function wr(e){return e.split("?")[0].split("#")[0]}var Er,Cr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/path.mjs"(){Sr(),Jn={toPosix(e){return t="\\",n="/",e.replace(new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),n);var t,n},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){_r(e),e=this.toPosix(e);const t=/^file:\/\/\//.exec(e);if(t)return t[0];const n=/^[^/:]+:\/{0,2}/.exec(e);return n?n[0]:""},toAbsolute(e,t,n){if(_r(e),this.isDataUrl(e)||this.isBlobUrl(e))return e;const r=wr(this.toPosix(null!=t?t:$n.get().getBaseUrl())),i=wr(this.toPosix(null!=n?n:this.rootname(r)));return(e=this.toPosix(e)).startsWith("/")?Jn.join(i,e.slice(1)):this.isAbsolute(e)?e:this.join(r,e)},normalize(e){if(_r(e),0===e.length)return".";if(this.isDataUrl(e)||this.isBlobUrl(e))return e;let t="";const n=(e=this.toPosix(e)).startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));const r=e.endsWith("/");return(e=function(e,t){let n="",r=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;a=47}if(47===a){if(i===s-1||1===o);else if(i!==s-1&&2===o){if(n.length<2||2!==r||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){const e=n.lastIndexOf("/");if(e!==n.length-1){-1===e?(n="",r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(2===n.length||1===n.length){n="",r=0,i=s,o=0;continue}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else 46===a&&-1!==o?++o:o=-1}return n}(e,!1)).length>0&&r&&(e+="/"),n?`/${e}`:t+e},isAbsolute(e){return _r(e),e=this.toPosix(e),!!this.hasProtocol(e)||e.startsWith("/")},join(...e){var t;if(0===e.length)return".";let n;for(let r=0;r<e.length;++r){const i=e[r];if(_r(i),i.length>0)if(void 0===n)n=i;else{const o=null!=(t=e[r-1])?t:"";this.joinExtensions.includes(this.extname(o).toLowerCase())?n+=`/../${i}`:n+=`/${i}`}}return void 0===n?".":this.normalize(n)},dirname(e){if(_r(e),0===e.length)return".";let t=(e=this.toPosix(e)).charCodeAt(0);const n=47===t;let r=-1,i=!0;const o=this.getProtocol(e),a=e;for(let s=(e=e.slice(o.length)).length-1;s>=1;--s)if(t=e.charCodeAt(s),47===t){if(!i){r=s;break}}else i=!1;return-1===r?n?"/":this.isUrl(a)?o+e:o:n&&1===r?"//":o+e.slice(0,r)},rootname(e){_r(e);let t="";if(t=(e=this.toPosix(e)).startsWith("/")?"/":this.getProtocol(e),this.isUrl(e)){const n=e.indexOf("/",t.length);t=-1!==n?e.slice(0,n):e,t.endsWith("/")||(t+="/")}return t},basename(e,t){_r(e),t&&_r(t),e=wr(this.toPosix(e));let n,r=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(47===l){if(!o){r=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){_r(e);let t=-1,n=0,r=-1,i=!0,o=0;for(let a=(e=wr(this.toPosix(e))).length-1;a>=0;--a){const s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},parse(e){_r(e);const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let n=(e=wr(this.toPosix(e))).charCodeAt(0);const r=this.isAbsolute(e);let i;t.root=this.rootname(e),i=r||this.hasProtocol(e)?1:0;let o=-1,a=0,s=-1,l=!0,u=e.length-1,c=0;for(;u>=i;--u)if(n=e.charCodeAt(u),47!==n)-1===s&&(l=!1,s=u+1),46===n?-1===o?o=u:1!==c&&(c=1):-1!==o&&(c=-1);else if(!l){a=u+1;break}return-1===o||-1===s||0===c||1===c&&o===s-1&&o===a+1?-1!==s&&(t.base=t.name=0===a&&r?e.slice(1,s):e.slice(a,s)):(0===a&&r?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(a,o),t.base=e.slice(a,s)),t.ext=e.slice(o,s)),t.dir=this.dirname(e),t},sep:"/",delimiter:":",joinExtensions:[".html"]}}}),Tr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/assets/utils/convertToList.mjs"(){Er=(e,t,n=!1)=>(Array.isArray(e)||(e=[e]),t?e.map((e=>"string"==typeof e||n?t(e):e)):e)}});function Pr(e,t,n,r,i){const o=t[n];for(let a=0;a<o.length;a++){const s=o[a];n<t.length-1?Pr(e.replace(r[n],s),t,n+1,r,i):i.push(e.replace(r[n],s))}}function kr(e){const t=e.match(/\{(.*?)\}/g),n=[];if(t){const r=[];t.forEach((e=>{const t=e.substring(1,e.length-1).split(",");r.push(t)})),Pr(e,r,0,t,n)}else n.push(e);return n}var Rr,Ir,Or,Mr,jr,zr,Br,Fr,Dr,Lr,Nr,Ur,Gr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/assets/utils/createStringVariations.mjs"(){}}),Hr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/assets/utils/isSingleItem.mjs"(){Rr=e=>!Array.isArray(e)}}),Wr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/assets/resolver/Resolver.mjs"(){Ot(),Cr(),Tr(),Gr(),Hr(),(Ir=class{setBundleIdentifier(e){var t,n,r;if(this._bundleIdConnector=null!=(t=e.connector)?t:this._bundleIdConnector,this._createBundleAssetId=null!=(n=e.createBundleAssetId)?n:this._createBundleAssetId,this._extractAssetIdFromBundle=null!=(r=e.extractAssetIdFromBundle)?r:this._extractAssetIdFromBundle,"bar"!==this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar")))throw new Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...e){e.forEach((e=>{this._preferredOrder.push(e),e.priority||(e.priority=Object.keys(e.params))})),this._resolverHash={}}set basePath(e){this._basePath=e}get basePath(){return this._basePath}set rootPath(e){this._rootPath=e}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(e){if("string"==typeof e)this._defaultSearchParams=e;else{const t=e;this._defaultSearchParams=Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&")}}getAlias(e){const{alias:t,src:n}=e;return Er(t||n,(e=>"string"==typeof e?e:Array.isArray(e)?e.map((e=>{var t;return null!=(t=null==e?void 0:e.src)?t:e})):(null==e?void 0:e.src)?e.src:e),!0)}addManifest(e){this._manifest&&It("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=e,e.bundles.forEach((e=>{this.addBundle(e.name,e.assets)}))}addBundle(e,t){const n=[];let r=t;Array.isArray(t)||(r=Object.entries(t).map((([e,t])=>"string"==typeof t||Array.isArray(t)?{alias:e,src:t}:q({alias:e},t)))),r.forEach((t=>{const r=t.src,i=t.alias;let o;if("string"==typeof i){const t=this._createBundleAssetId(e,i);n.push(t),o=[i,t]}else{const t=i.map((t=>this._createBundleAssetId(e,t)));n.push(...t),o=[...i,...t]}this.add(q(q({},t),{alias:o,src:r}))})),this._bundles[e]=n}add(e){const t=[];let n;Array.isArray(e)?t.push(...e):t.push(e),n=e=>{this.hasKey(e)&&It(`[Resolver] already has key: ${e} overwriting`)},Er(t).forEach((e=>{const{src:t}=e;let{data:r,format:i,loadParser:o}=e;const a=Er(t).map((e=>"string"==typeof e?kr(e):Array.isArray(e)?e:[e])),s=this.getAlias(e);Array.isArray(s)?s.forEach(n):n(s);const l=[];a.forEach((e=>{e.forEach((e=>{var t,n,a;let u={};if("object"!=typeof e){u.src=e;for(let t=0;t<this._parsers.length;t++){const n=this._parsers[t];if(n.test(e)){u=n.parse(e);break}}}else r=null!=(t=e.data)?t:r,i=null!=(n=e.format)?n:i,o=null!=(a=e.loadParser)?a:o,u=q(q({},u),e);if(!s)throw new Error(`[Resolver] alias is undefined for this asset: ${u.src}`);u=this._buildResolvedAsset(u,{aliases:s,data:r,format:i,loadParser:o}),l.push(u)}))})),s.forEach((e=>{this._assetMap[e]=l}))}))}resolveBundle(e){const t=Rr(e);e=Er(e);const n={};return e.forEach((e=>{const t=this._bundles[e];if(t){const r=this.resolve(t),i={};for(const t in r){const n=r[t];i[this._extractAssetIdFromBundle(e,t)]=n}n[e]=i}})),t?n[e[0]]:n}resolveUrl(e){const t=this.resolve(e);if("string"!=typeof e){const e={};for(const n in t)e[n]=t[n].src;return e}return t.src}resolve(e){const t=Rr(e);e=Er(e);const n={};return e.forEach((e=>{if(!this._resolverHash[e])if(this._assetMap[e]){let t=this._assetMap[e];const n=this._getPreferredOrder(t);null==n||n.priority.forEach((e=>{n.params[e].forEach((n=>{const r=t.filter((t=>!!t[e]&&t[e]===n));r.length&&(t=r)}))})),this._resolverHash[e]=t[0]}else this._resolverHash[e]=this._buildResolvedAsset({alias:[e],src:e},{});n[e]=this._resolverHash[e]})),t?n[e[0]]:n}hasKey(e){return!!this._assetMap[e]}hasBundle(e){return!!this._bundles[e]}_getPreferredOrder(e){for(let t=0;t<e.length;t++){const t=e[0],n=this._preferredOrder.find((e=>e.params.format.includes(t.format)));if(n)return n}return this._preferredOrder[0]}_appendDefaultSearchParams(e){return this._defaultSearchParams?`${e}${/\?/.test(e)?"&":"?"}${this._defaultSearchParams}`:e}_buildResolvedAsset(e,t){var n,r;const{aliases:i,data:o,loadParser:a,format:s}=t;return(this._basePath||this._rootPath)&&(e.src=Jn.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=null!=(n=null!=i?i:e.alias)?n:[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data=q(q({},o||{}),e.data),e.loadParser=null!=a?a:e.loadParser,e.format=null!=(r=null!=s?s:e.format)?r:e.src.split(".").pop().split("?").shift().split("#").shift(),e}constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(e,t)=>`${e}${this._bundleIdConnector}${t}`,extractAssetIdFromBundle:(e,t)=>t.replace(`${e}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}}).RETINA_PREFIX=/@([0-9\.]+)x/}}),Vr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/assets/utils/copySearchParams.mjs"(){Or=(e,t)=>{const n=t.split("?")[1];return n&&(e+=`?${n}`),e}}}),Xr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/maths/matrix/groupD8.mjs"(){Xe(),Mr=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],jr=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],zr=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],Br=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],Fr=[],Dr=[],Lr=Math.sign,function(){for(let e=0;e<16;e++){const t=[];Fr.push(t);for(let n=0;n<16;n++){const r=Lr(Mr[e]*Mr[n]+zr[e]*jr[n]),i=Lr(jr[e]*Mr[n]+Br[e]*jr[n]),o=Lr(Mr[e]*zr[n]+zr[e]*Br[n]),a=Lr(jr[e]*zr[n]+Br[e]*Br[n]);for(let e=0;e<16;e++)if(Mr[e]===r&&jr[e]===i&&zr[e]===o&&Br[e]===a){t.push(e);break}}}for(let e=0;e<16;e++){const t=new Be;t.set(Mr[e],jr[e],zr[e],Br[e],0,0),Dr.push(t)}}(),Nr={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=>Mr[e],uY:e=>jr[e],vX:e=>zr[e],vY:e=>Br[e],inv:e=>8&e?15&e:7&-e,add:(e,t)=>Fr[e][t],sub:(e,t)=>Fr[e][Nr.inv(t)],rotate180:e=>4^e,isVertical:e=>2==(3&e),byDirection:(e,t)=>2*Math.abs(e)<=Math.abs(t)?t>=0?Nr.S:Nr.N:2*Math.abs(t)<=Math.abs(e)?e>0?Nr.E:Nr.W:t>0?e>0?Nr.SE:Nr.SW:e>0?Nr.NE:Nr.NW,matrixAppendRotationInv:(e,t,n=0,r=0)=>{const i=Dr[Nr.inv(t)];i.tx=n,i.ty=r,e.append(i)}}}}),Kr=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/misc/NOOP.mjs"(){Ur=()=>{}}});function qr(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,1+(e|=e>>>16)}function Qr(e){return!(e&e-1||!e)}var Yr,Zr,$r,Jr,ei,ti,ni,ri,ii,oi,ai,si,li,ui=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/maths/misc/pow2.mjs"(){}}),ci=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/utils/definedProps.mjs"(){}}),di=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureStyle.mjs"(){Ee(),Ze(),Je(),Yr=Object.create(null),(Zr=class e extends a{set addressMode(e){this.addressModeU=e,this.addressModeV=e,this.addressModeW=e}get addressMode(){return this.addressModeU}set wrapMode(e){$e(Ye,"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(){const e=`${this.addressModeU}-${this.addressModeV}-${this.addressModeW}-${this.magFilter}-${this.minFilter}-${this.mipmapFilter}-${this.lodMinClamp}-${this.lodMaxClamp}-${this.compare}-${this._maxAnisotropy}`;return this._sharedResourceId=function(e){const t=Yr[e];return void 0===t&&(Yr[e]=qe("resource")),t}(e),this._resourceId}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this.removeAllListeners()}constructor(t={}){var n,r,i,o,a,s,l;super(),this._resourceType="textureSampler",this._touched=0,this._maxAnisotropy=1,this.destroyed=!1,t=q(q({},e.defaultOptions),t),this.addressMode=t.addressMode,this.addressModeU=null!=(n=t.addressModeU)?n:this.addressModeU,this.addressModeV=null!=(r=t.addressModeV)?r:this.addressModeV,this.addressModeW=null!=(i=t.addressModeW)?i:this.addressModeW,this.scaleMode=t.scaleMode,this.magFilter=null!=(o=t.magFilter)?o:this.magFilter,this.minFilter=null!=(a=t.minFilter)?a:this.minFilter,this.mipmapFilter=null!=(s=t.mipmapFilter)?s:this.mipmapFilter,this.lodMinClamp=t.lodMinClamp,this.lodMaxClamp=t.lodMaxClamp,this.compare=t.compare,this.maxAnisotropy=null!=(l=t.maxAnisotropy)?l:1}}).defaultOptions={addressMode:"clamp-to-edge",scaleMode:"linear"},$r=Zr}}),fi=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/TextureSource.mjs"(){Ee(),ui(),ci(),Ze(),di(),(Jr=class e extends a{get source(){return this}get style(){return this._style}set style(e){var t,n;this.style!==e&&(null==(t=this._style)||t.off("change",this._onStyleChange,this),this._style=e,null==(n=this._style)||n.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){const 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=qe("resource"),this.emit("change",this),this.emit("unload",this)}get resourceWidth(){const{resource:e}=this;return e.naturalWidth||e.videoWidth||e.displayWidth||e.width}get resourceHeight(){const{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,n){n=n||this._resolution,e=e||this.width,t=t||this.height;const r=Math.round(e*n),i=Math.round(t*n);return this.width=r/n,this.height=i/n,this._resolution=n,(this.pixelWidth!==r||this.pixelHeight!==i)&&(this._refreshPOT(),this.pixelWidth=r,this.pixelHeight=i,this.emit("resize",this),this._resourceId=qe("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=Qr(this.pixelWidth)&&Qr(this.pixelHeight)}static test(e){throw new Error("Unimplemented")}constructor(t={}){var n,r,i;super(),this.options=t,this.uid=qe("textureSource"),this._resourceType="textureSource",this._resourceId=qe("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=q(q({},e.defaultOptions),t),this.label=null!=(n=t.label)?n:"",this.resource=t.resource,this.autoGarbageCollect=t.autoGarbageCollect,this._resolution=t.resolution,t.width?this.pixelWidth=t.width*this._resolution:this.pixelWidth=this.resource&&null!=(r=this.resourceWidth)?r:1,t.height?this.pixelHeight=t.height*this._resolution:this.pixelHeight=this.resource&&null!=(i=this.resourceHeight)?i: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 $r(function(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}(t)),this.destroyed=!1,this._refreshPOT()}}).defaultOptions={resolution:1,format:"bgra8unorm",alphaMode:"premultiply-alpha-on-upload",dimensions:"2d",mipLevelCount:1,autoGenerateMipmaps:!1,sampleCount:1,antialias:!1,autoGarbageCollect:!1},ei=Jr}}),pi=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/BufferSource.mjs"(){_e(),fi(),(ti=class extends ei{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}constructor(e){const t=e.resource||new Float32Array(e.width*e.height*4);let n=e.format;n||(n=t instanceof Float32Array?"rgba32float":t instanceof Int32Array||t instanceof Uint32Array?"rgba32uint":t instanceof Int16Array||t instanceof Uint16Array?"rgba16uint":(Int8Array,"bgra8unorm")),super(Q(q({},e),{resource:t,format:n})),this.uploadMethodId="buffer"}}).extension=t.TextureSource}}),hi=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureMatrix.mjs"(){Xe(),ni=new Be,ri=class{get texture(){return this._texture}set texture(e){var t;this.texture!==e&&(null==(t=this._texture)||t.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);const n=this.mapCoord;for(let r=0;r<e.length;r+=2){const i=e[r],o=e[r+1];t[r]=i*n.a+o*n.c+n.tx,t[r+1]=i*n.b+o*n.d+n.ty}return t}update(){const e=this._texture;this._updateID++;const 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);const n=e.orig,r=e.trim;r&&(ni.set(n.width/r.width,0,0,n.height/r.height,-r.x/r.width,-r.y/r.height),this.mapCoord.append(ni));const i=e.source,o=this.uClampFrame,a=this.clampMargin/i._resolution,s=this.clampOffset;return o[0]=(e.frame.x+a+s)/i.width,o[1]=(e.frame.y+a+s)/i.height,o[2]=(e.frame.x+e.frame.width-a+s)/i.width,o[3]=(e.frame.y+e.frame.height-a+s)/i.height,this.uClampOffset[0]=s/i.pixelWidth,this.uClampOffset[1]=s/i.pixelHeight,this.isSimple=e.frame.width===i.width&&e.frame.height===i.height&&0===e.rotate,!0}constructor(e,t){this.mapCoord=new Be,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=void 0===t?e.width<10?0:.5:t,this.isSimple=!1,this.texture=e}}}}),mi=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.mjs"(){Ee(),Xr(),St(),Ze(),Je(),Kr(),pi(),fi(),hi(),(ii=class extends a{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 ri(this)),this._textureMatrix}get width(){return this.orig.width}get height(){return this.orig.height}updateUvs(){const{uvs:e,frame:t}=this,{width:n,height:r}=this._source,i=t.x/n,o=t.y/r,a=t.width/n,s=t.height/r;let l=this.rotate;if(l){const t=a/2,n=s/2,r=i+t,u=o+n;l=Nr.add(l,Nr.NW),e.x0=r+t*Nr.uX(l),e.y0=u+n*Nr.uY(l),l=Nr.add(l,2),e.x1=r+t*Nr.uX(l),e.y1=u+n*Nr.uY(l),l=Nr.add(l,2),e.x2=r+t*Nr.uX(l),e.y2=u+n*Nr.uY(l),l=Nr.add(l,2),e.x3=r+t*Nr.uX(l),e.y3=u+n*Nr.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 $e(Ye,"Texture.baseTexture is now Texture.source"),this._source}constructor({source:e,label:t,frame:n,orig:r,trim:i,defaultAnchor:o,defaultBorders:a,rotate:s,dynamic:l}={}){var u;if(super(),this.uid=qe("texture"),this.uvs={x0:0,y0:0,x1:0,y1:0,x2:0,y2:0,x3:0,y3:0},this.frame=new ut,this.noFrame=!1,this.dynamic=!1,this.isTexture=!0,this.label=t,this.source=null!=(u=null==e?void 0:e.source)?u:new ei,this.noFrame=!n,n)this.frame.copyFrom(n);else{const{width:e,height:t}=this._source;this.frame.width=e,this.frame.height=t}this.orig=r||this.frame,this.trim=i,this.rotate=null!=s?s:0,this.defaultAnchor=o,this.defaultBorders=a,this.destroyed=!1,this.dynamic=l||!1,this.updateUvs()}}).EMPTY=new ii({label:"EMPTY",source:new ei({label:"EMPTY"})}),ii.EMPTY.destroy=Ur,ii.WHITE=new ii({source:new ti({resource:new Uint8Array([255,255,255,255]),width:1,height:1,alphaMode:"premultiply-alpha-on-upload",label:"WHITE"}),label:"WHITE"}),ii.WHITE.destroy=Ur}}),Ai=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/spritesheet/Spritesheet.mjs"(){St(),mi(),(oi=class e{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 n=t;const r=e.BATCH_SIZE;for(;n-t<r&&n<this._frameKeys.length;){const e=this._frameKeys[n],t=this._frames[e],r=t.frame;if(r){let n=null,i=null;const o=!1!==t.trimmed&&t.sourceSize?t.sourceSize:t.frame,a=new ut(0,0,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution);n=t.rotated?new ut(Math.floor(r.x)/this.resolution,Math.floor(r.y)/this.resolution,Math.floor(r.h)/this.resolution,Math.floor(r.w)/this.resolution):new ut(Math.floor(r.x)/this.resolution,Math.floor(r.y)/this.resolution,Math.floor(r.w)/this.resolution,Math.floor(r.h)/this.resolution),!1!==t.trimmed&&t.spriteSourceSize&&(i=new ut(Math.floor(t.spriteSourceSize.x)/this.resolution,Math.floor(t.spriteSourceSize.y)/this.resolution,Math.floor(r.w)/this.resolution,Math.floor(r.h)/this.resolution)),this.textures[e]=new ii({source:this.textureSource,frame:n,orig:a,trim:i,rotate:t.rotated?2:0,defaultAnchor:t.anchor,defaultBorders:t.borders,label:e.toString()})}n++}}_processAnimations(){const e=this.data.animations||{};for(const t in e){this.animations[t]=[];for(let n=0;n<e[t].length;n++){const r=e[t][n];this.animations[t].push(this.textures[r])}}}_parseComplete(){const 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){var t;for(const n in this.textures)this.textures[n].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&(null==(t=this._texture)||t.destroy(),this.textureSource.destroy()),this._texture=null,this.textureSource=null,this.linkedSheets=[]}constructor(e,t){this.linkedSheets=[],this._texture=e instanceof ii?e:null,this.textureSource=e.source,this.textures={},this.animations={},this.data=t;const n=parseFloat(t.meta.scale);n?(this.resolution=n,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}}).BATCH_SIZE=1e3,ai=oi}});function gi(e,t,n){const r={};if(e.forEach((e=>{r[e]=t})),Object.keys(t.textures).forEach((e=>{r[e]=t.textures[e]})),!n){const n=Jn.dirname(e[0]);t.linkedSheets.forEach(((e,i)=>{const o=gi([`${n}/${t.data.meta.related_multi_packs[i]}`],e,!0);Object.assign(r,o)}))}return r}var vi=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/spritesheet/spritesheetAsset.mjs"(){br(),Wr(),Vr(),_e(),mi(),Cr(),Ai(),si=["jpg","png","jpeg","avif","webp","basis","etc2","bc7","bc6h","bc5","bc4","bc3","bc2","bc1","eac","astc"],li={extension:t.Asset,cache:{test:e=>e instanceof ai,getCacheableAssets:(e,t)=>gi(e,t,!1)},resolver:{test:e=>{const t=e.split("?")[0].split("."),n=t.pop(),r=t.pop();return"json"===n&&si.includes(r)},parse:e=>{var t,n;const r=e.split(".");return{resolution:parseFloat(null!=(n=null==(t=Ir.RETINA_PREFIX.exec(e))?void 0:t[1])?n:"1"),format:r[r.length-2],src:e}}},loader:{name:"spritesheetLoader",extension:{type:t.LoadParser,priority:Qn.Normal},testParse(e,t){return te(this,null,(function*(){return".json"===Jn.extname(t.src).toLowerCase()&&!!e.frames}))},parse(e,t,n){return te(this,null,(function*(){var r,i,o;const{texture:a,imageFilename:s}=null!=(r=null==t?void 0:t.data)?r:{};let l,u=Jn.dirname(t.src);if(u&&u.lastIndexOf("/")!==u.length-1&&(u+="/"),a instanceof ii)l=a;else{const r=Or(u+(null!=s?s:e.meta.image),t.src);l=(yield n.load([r]))[r]}const c=new ai(l.source,e);yield c.parse();const d=null==(i=null==e?void 0:e.meta)?void 0:i.related_multi_packs;if(Array.isArray(d)){const e=[];for(const i of d){if("string"!=typeof i)continue;let r=u+i;(null==(o=t.data)?void 0:o.ignoreMultiPack)||(r=Or(r,t.src),e.push(n.load({src:r,data:{ignoreMultiPack:!0}})))}const r=yield Promise.all(e);c.linkedSheets=r,r.forEach((e=>{e.linkedSheets=[c].concat(c.linkedSheets.filter((t=>t!==e)))}))}return c}))},unload(e,t,n){return te(this,null,(function*(){yield n.unload(e.textureSource._sourceOrigin),e.destroy(!1)}))}}}}}),yi=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/spritesheet/init.mjs"(){_e(),vi(),i.add(li)}});function bi(e,t,n,r){const{width:i,height:o}=n.orig,a=n.trim;if(a){const n=a.width,s=a.height;e.minX=a.x-t._x*i-r,e.maxX=e.minX+n,e.minY=a.y-t._y*o-r,e.maxY=e.minY+s}else e.minX=-t._x*i-r,e.maxX=e.minX+i,e.minY=-t._y*o-r,e.maxY=e.minY+o}var xi,Si,_i=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/data/updateQuadBounds.mjs"(){}}),wi=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite/Sprite.mjs"(){Ke(),mi(),_i(),wn(),xi=class e extends en{static from(t,n=!1){return new e(t instanceof ii?t:ii.from(t,n))}set texture(e){e||(e=ii.EMPTY);const 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){const t=this.sourceBounds;return e.x>=t.maxX&&e.x<=t.minX&&e.y>=t.maxY&&e.y<=t.minY}addBounds(e){const 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(){bi(this._bounds,this._anchor,this._texture,0)}_updateSourceBounds(){const e=this._anchor,t=this._texture,n=this._sourceBounds,{width:r,height:i}=t.orig;n.maxX=-e._x*r,n.minX=n.maxX+r,n.maxY=-e._y*i,n.minY=n.maxY+i}destroy(e=!1){if(super.destroy(e),"boolean"==typeof e?e:null==e?void 0:e.texture){const t="boolean"==typeof e?e:null==e?void 0: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?1:0}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){var n;let r,i;"object"!=typeof e?(r=e,i=null!=t?t:e):(r=e.width,i=null!=(n=e.height)?n:e.width),void 0!==r&&this._setWidth(r,this._texture.orig.width),void 0!==i&&this._setHeight(i,this._texture.orig.height)}constructor(e=ii.EMPTY){e instanceof ii&&(e={texture:e});const t=e,{texture:n,anchor:r,roundPixels:i,width:o,height:a}=t,s=Y(t,["texture","anchor","roundPixels","width","height"]);super(q({label:"Sprite"},s)),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 Le({_onUpdate:()=>{this.onViewUpdate()}}),r?this.anchor=r:n.defaultAnchor&&(this.anchor=n.defaultAnchor),this.texture=n,this.allowChildren=!1,this.roundPixels=null!=i&&i,o&&(this.width=o),a&&(this.height=a)}}}});function Ei(e,t,n){const r=Si;e.measurable=!0,Et(e,n,r),t.addBoundsMask(r),e.measurable=!1}var Ci=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/mask/utils/addMaskBounds.mjs"(){_t(),Rt(),Si=new dt}});function Ti(e,t,n){const r=pt.get();e.measurable=!0;const i=ft.get().identity();Mt(e,r,Pi(e,n,i)),e.measurable=!1,t.addBoundsMask(r),ft.return(i),pt.return(r)}function Pi(e,t,n){return e?(e!==t&&(Pi(e.parent,t,n),e.updateLocalTransform(),n.append(e.localTransform)),n):(It("Mask bounds, renderable is not inside the root container"),n)}var ki,Ri,Ii,Oi,Mi,ji,zi=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/mask/utils/addMaskLocalBounds.mjs"(){zt(),wt(),Ot()}}),Bi=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/mask/alpha/AlphaMask.mjs"(){_e(),wi(),Ci(),zi(),(ki=class{init(e){this.mask=e,this.renderMaskToTexture=!(e instanceof xi),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){Ei(this.mask,e,t)}addLocalBounds(e,t){Ti(this.mask,e,t)}containsPoint(e,t){return t(this.mask,e)}destroy(){this.reset()}static test(e){return e instanceof xi}constructor(e){this.priority=0,this.pipe="alphaMask",(null==e?void 0:e.mask)&&this.init(e.mask)}}).extension=t.MaskEffect}}),Fi=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/mask/color/ColorMask.mjs"(){_e(),(Ri=class{init(e){this.mask=e}destroy(){}static test(e){return"number"==typeof e}constructor(e){this.priority=0,this.pipe="colorMask",(null==e?void 0:e.mask)&&this.init(e.mask)}}).extension=t.MaskEffect}}),Di=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/mask/stencil/StencilMask.mjs"(){_e(),wn(),Ci(),zi(),(Ii=class{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){Ei(this.mask,e,t)}addLocalBounds(e,t){Ti(this.mask,e,t)}containsPoint(e,t){return t(this.mask,e)}destroy(){this.reset()}static test(e){return e instanceof en}constructor(e){this.priority=0,this.pipe="stencilMask",(null==e?void 0:e.mask)&&this.init(e.mask)}}).extension=t.MaskEffect}}),Li=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/CanvasSource.mjs"(){Sr(),_e(),fi(),(Oi=class extends ei{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,n=this._resolution){const r=super.resize(e,t,n);return r&&this.resizeCanvas(),r}static test(e){return globalThis.HTMLCanvasElement&&e instanceof HTMLCanvasElement||globalThis.OffscreenCanvas&&e instanceof OffscreenCanvas}constructor(e){e.resource||(e.resource=$n.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}}).extension=t.TextureSource}}),Ni=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/ImageSource.mjs"(){Sr(),_e(),Ot(),fi(),(Mi=class extends ei{static test(e){return globalThis.HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}constructor(e){if(e.resource&&globalThis.HTMLImageElement&&e.resource instanceof HTMLImageElement){const t=$n.get().createCanvas(e.resource.width,e.resource.height);t.getContext("2d").drawImage(e.resource,0,0),e.resource=t,It("ImageSource: Image element passed, converting to canvas. Use CanvasSource instead.")}super(e),this.uploadMethodId="image",this.autoGarbageCollect=!0}}).extension=t.TextureSource}});function Ui(){return te(this,null,(function*(){return null!=ji||(ji=(()=>te(this,null,(function*(){var e;const t=document.createElement("canvas").getContext("webgl");if(!t)return"premultiply-alpha-on-upload";const n=yield new Promise((e=>{const 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(!n)return"premultiply-alpha-on-upload";const r=t.createTexture();t.bindTexture(t.TEXTURE_2D,r);const i=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,i),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,r,0),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,t.NONE),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n);const o=new Uint8Array(4);return t.readPixels(0,0,1,1,t.RGBA,t.UNSIGNED_BYTE,o),t.deleteFramebuffer(i),t.deleteTexture(r),null==(e=t.getExtension("WEBGL_lose_context"))||e.loseContext(),o[0]<=o[3]?"premultiplied-alpha":"premultiply-alpha-on-upload"})))()),ji}))}var Gi,Hi,Wi,Vi,Xi=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/browser/detectVideoAlphaMode.mjs"(){}}),Ki=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/VideoSource.mjs"(){_e(),ur(),Xi(),fi(),(Gi=class e extends ei{updateFrame(){if(!this.destroyed){if(this._updateFPS){const e=Bn.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}load(){return te(this,null,(function*(){if(this._load)return this._load;const 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=yield Ui(),this._load=new Promise(((n,r)=>{this.isValid?n(this):(this._resolve=n,this._reject=r,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(){const 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(){const 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();const 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&&(Bn.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||(Bn.shared.add(this.updateFrame,this),this._isConnectedToTicker=!0,this._msToNextUpdate=0)):(null!==this._videoFrameRequestCallbackHandle&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(Bn.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}constructor(t){var n;super(t),this.isReady=!1,this.uploadMethodId="video",t=q(q({},e.defaultOptions),t),this._autoUpdate=!0,this._isConnectedToTicker=!1,this._updateFPS=t.updateFPS||0,this._msToNextUpdate=0,this.autoPlay=!1!==t.autoPlay,this.alphaMode=null!=(n=t.alphaMode)?n:"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()}}).extension=t.TextureSource,Gi.defaultOptions=Q(q({},ei.defaultOptions),{autoLoad:!0,autoPlay:!0,updateFPS:0,crossorigin:!0,loop:!1,muted:!0,playsinline:!0,preload:!1}),Gi.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},Hi=Gi}}),qi=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/assets/cache/Cache.mjs"(){Ot(),Tr(),Wi=new class{reset(){this._cacheMap.clear(),this._cache.clear()}has(e){return this._cache.has(e)}get(e){const t=this._cache.get(e);return t||It(`[Assets] Asset id ${e} was not found in the Cache`),t}set(e,t){const n=Er(e);let r;for(let s=0;s<this.parsers.length;s++){const e=this.parsers[s];if(e.test(t)){r=e.getCacheableAssets(n,t);break}}const i=new Map(Object.entries(r||{}));r||n.forEach((e=>{i.set(e,t)}));const o=[...i.keys()],a={cacheKeys:o,keys:n};n.forEach((e=>{this._cacheMap.set(e,a)})),o.forEach((e=>{const n=r?r[e]:t;this._cache.has(e)&&this._cache.get(e)!==n&&It("[Cache] already has key:",e),this._cache.set(e,i.get(e))}))}remove(e){if(!this._cacheMap.has(e))return void It(`[Assets] Asset id ${e} was not found in the Cache`);const t=this._cacheMap.get(e);t.cacheKeys.forEach((e=>{this._cache.delete(e)})),t.keys.forEach((e=>{this._cacheMap.delete(e)}))}get parsers(){return this._parsers}constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}}}});function Qi(e={}){const t=e&&e.resource,n=t?e.resource:e,r=t?e:{resource:e};for(let i=0;i<Vi.length;i++){const e=Vi[i];if(e.test(n))return new e(r)}throw new Error(`Could not find a source type for resource: ${r.resource}`)}function Yi(e,t=!1){return"string"==typeof e?Wi.get(e):e instanceof ei?new ii({source:e}):function(e={},t=!1){const n=e&&e.resource,r=n?e.resource:e,i=n?e:{resource:e};if(!t&&Wi.has(r))return Wi.get(r);const o=new ii({source:Qi(i)});return o.on("destroy",(()=>{Wi.has(r)&&Wi.remove(r)})),t||Wi.set(r,o),o}(e,t)}var Zi,$i,Ji=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/utils/textureFrom.mjs"(){qi(),_e(),fi(),mi(),Vi=[],i.handleByList(t.TextureSource,Vi),ii.from=Yi}}),eo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/init.mjs"(){_e(),Bi(),Fi(),Di(),pi(),Li(),Ni(),Ki(),Ji(),i.add(ki,Ri,Ii,Hi,Mi,Oi,ti)}}),to=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.mjs"(){Zi=(e=>(e[e.MAP_READ=1]="MAP_READ",e[e.MAP_WRITE=2]="MAP_WRITE",e[e.COPY_SRC=4]="COPY_SRC",e[e.COPY_DST=8]="COPY_DST",e[e.INDEX=16]="INDEX",e[e.VERTEX=32]="VERTEX",e[e.UNIFORM=64]="UNIFORM",e[e.STORAGE=128]="STORAGE",e[e.INDIRECT=256]="INDIRECT",e[e.QUERY_RESOLVE=512]="QUERY_RESOLVE",e[e.STATIC=1024]="STATIC",e))(Zi||{})}}),no=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/buffer/Buffer.mjs"(){Ee(),Ze(),to(),$i=class extends a{get data(){return this._data}set data(e){this.setDataWithSize(e,e.length,!0)}get static(){return!!(this.descriptor.usage&Zi.STATIC)}set static(e){e?this.descriptor.usage|=Zi.STATIC:this.descriptor.usage&=~Zi.STATIC}setDataWithSize(e,t,n){if(this._updateID++,this._updateSize=t*e.BYTES_PER_ELEMENT,this._data===e)return void(n&&this.emit("update",this));const r=this._data;this._data=e,r.length===e.length||!this.shrinkToFit&&e.byteLength<r.byteLength?n&&this.emit("update",this):(this.descriptor.size=e.byteLength,this._resourceId=qe("resource"),this.emit("change",this))}update(e){this._updateSize=null!=e?e:this._updateSize,this._updateID++,this.emit("update",this)}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this._data=null,this.descriptor=null,this.removeAllListeners()}constructor(e){let{data:t,size:n}=e;const{usage:r,label:i,shrinkToFit:o}=e;super(),this.uid=qe("buffer"),this._resourceType="buffer",this._resourceId=qe("resource"),this._touched=0,this._updateID=1,this.shrinkToFit=!0,this.destroyed=!1,t instanceof Array&&(t=new Float32Array(t)),this._data=t,n=null!=n?n:null==t?void 0:t.byteLength;const a=!!t;this.descriptor={size:n,usage:r,mappedAtCreation:a,label:i},this.shrinkToFit=null==o||o}}}});function ro(e,t){if(!(e instanceof $i)){let n=t?Zi.INDEX:Zi.VERTEX;e instanceof Array&&(t?(e=new Uint32Array(e),n=Zi.INDEX|Zi.COPY_DST):(e=new Float32Array(e),n=Zi.VERTEX|Zi.COPY_DST)),e=new $i({data:e,label:t?"index-mesh-buffer":"vertex-mesh-buffer",usage:n})}return e}var io,oo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/ensureIsBuffer.mjs"(){no(),to()}}),ao=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/getGeometryBounds.mjs"(){}});function so(e){return(e instanceof $i||Array.isArray(e)||e.BYTES_PER_ELEMENT)&&(e={buffer:e}),e.buffer=ro(e.buffer,!1),e}var lo,uo,co,fo,po,ho,mo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/Geometry.mjs"(){Ee(),_t(),Ze(),no(),oo(),ao(),io=class extends a{onBufferUpdate(){this._boundsDirty=!0,this.emit("update",this)}getAttribute(e){return this.attributes[e]}getIndex(){return this.indexBuffer}getBuffer(e){return this.getAttribute(e).buffer}getSize(){for(const e in this.attributes){const t=this.attributes[e];return t.buffer.data.length/(t.stride/4||t.size)}return 0}get bounds(){return this._boundsDirty?(this._boundsDirty=!1,function(e,t,n){const r=e.getAttribute(t);if(!r)return n.minX=0,n.minY=0,n.maxX=0,n.maxY=0,n;const i=r.buffer.data;let o=1/0,a=1/0,s=-1/0,l=-1/0;const u=i.BYTES_PER_ELEMENT,c=(r.offset||0)/u,d=(r.stride||8)/u;for(let f=c;f<i.length;f+=d){const e=i[f],t=i[f+1];e>s&&(s=e),t>l&&(l=t),e<o&&(o=e),t<a&&(a=t)}return n.minX=o,n.minY=a,n.maxX=s,n.maxY=l,n}(this,"aPosition",this._bounds)):this._bounds}destroy(e=!1){this.emit("destroy",this),this.removeAllListeners(),e&&this.buffers.forEach((e=>e.destroy())),this.attributes=null,this.buffers=null,this.indexBuffer=null,this._bounds=null}constructor(e){const{attributes:t,indexBuffer:n,topology:r}=e;super(),this.uid=qe("geometry"),this._layoutKey=0,this.instanceCount=1,this._bounds=new dt,this._boundsDirty=!0,this.attributes=t,this.buffers=[],this.instanceCount=e.instanceCount||1;for(const i in t){const e=t[i]=so(t[i]);-1===this.buffers.indexOf(e.buffer)&&(this.buffers.push(e.buffer),e.buffer.on("update",this.onBufferUpdate,this),e.buffer.on("change",this.onBufferUpdate,this))}n&&(this.indexBuffer=ro(n,!0),this.buffers.push(this.indexBuffer)),this.topology=r||"triangle-list"}}}}),Ao=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/batcher/gpu/BatchGeometry.mjs"(){no(),to(),mo(),lo=new Float32Array(1),uo=new Uint32Array(1),co=class extends io{constructor(){const e=new $i({data:lo,label:"attribute-batch-buffer",usage:Zi.VERTEX|Zi.COPY_DST,shrinkToFit:!1});super({attributes:{aPosition:{buffer:e,format:"float32x2",stride:24,offset:0,location:1},aUV:{buffer:e,format:"float32x2",stride:24,offset:8,location:3},aColor:{buffer:e,format:"unorm8x4",stride:24,offset:16,location:0},aTextureIdAndRound:{buffer:e,format:"uint16x2",stride:24,offset:20,location:2}},indexBuffer:new $i({data:uo,label:"index-batch-buffer",usage:Zi.INDEX|Zi.COPY_DST,shrinkToFit:!1})})}}}}),go=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/BindGroup.mjs"(){fo=class{_updateKey(){if(!this._dirty)return;this._dirty=!1;const e=[];let t=0;for(const n in this.resources)e[t++]=this.resources[n]._resourceId;this._key=e.join("|")}setResource(e,t){var n,r;const i=this.resources[t];e!==i&&(i&&(null==(n=e.off)||n.call(e,"change",this.onResourceChange,this)),null==(r=e.on)||r.call(e,"change",this.onResourceChange,this),this.resources[t]=e,this._dirty=!0)}getResource(e){return this.resources[e]}_touch(e){const t=this.resources;for(const n in t)t[n]._touched=e}destroy(){var e;const t=this.resources;for(const n in t){const r=t[n];null==(e=r.off)||e.call(r,"change",this.onResourceChange,this)}this.resources=null}onResourceChange(e){if(this._dirty=!0,e.destroyed){const t=this.resources;for(const n in t)t[n]===e&&(t[n]=null)}else this._updateKey()}constructor(e){this.resources=Object.create(null),this._dirty=!0;let t=0;for(const n in e){const r=e[n];this.setResource(r,t++)}this._updateKey()}}}}),vo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/batcher/shared/const.mjs"(){po=16}});function yo(e,t){let n=0;for(let r=0;r<t;r++)n=31*n+e[r].uid>>>0;return ho[n]||function(e,t){const n={};let r=0;for(let o=0;o<po;o++){const t=o<e.length?e[o]:ii.EMPTY.source;n[r++]=t.source,n[r++]=t.style}const i=new fo(n);return ho[t]=i,i}(e,n)}var bo,xo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/batcher/gpu/getTextureBatchBindGroup.mjs"(){go(),mi(),vo(),ho={}}}),So=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/data/ViewableBuffer.mjs"(){bo=class{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 new Error(`${e} isn't a valid view type`)}}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}}}});function _o(e,t){const n=e.byteLength/8|0,r=new Float64Array(e,0,n);new Float64Array(t,0,n).set(r);const i=e.byteLength-8*n;if(i>0){const r=new Uint8Array(e,8*n,i);new Uint8Array(t,8*n,i).set(r)}}var wo,Eo,Co=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/buffer/utils/fastCopy.mjs"(){}}),To=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/state/const.mjs"(){wo={normal:"normal-npm",add:"add-npm",screen:"screen-npm"},Eo=(e=>(e[e.DISABLED=0]="DISABLED",e[e.RENDERING_MASK_ADD=1]="RENDERING_MASK_ADD",e[e.MASK_ACTIVE=2]="MASK_ACTIVE",e[e.RENDERING_MASK_REMOVE=3]="RENDERING_MASK_REMOVE",e[e.NONE=4]="NONE",e))(Eo||{})}});function Po(e,t){return"no-premultiply-alpha"===t.alphaMode&&wo[e]||e}var ko,Ro,Io,Oo,Mo,jo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/state/getAdjustedBlendModeBlend.mjs"(){To()}}),zo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/batcher/shared/BatchTextureArray.mjs"(){ko=class{clear(){for(let e=0;e<this.count;e++){const t=this.textures[e];this.textures[e]=null,this.ids[t.uid]=null}this.count=0}constructor(){this.ids=Object.create(null),this.textures=[],this.count=0}}}}),Bo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.mjs"(){Ze(),So(),Co(),jo(),zo(),vo(),Ro=class{destroy(){this.textures=null,this.gpuBindGroup=null,this.bindGroup=null,this.batcher=null}constructor(){this.renderPipeId="batch",this.action="startBatch",this.start=0,this.size=0,this.blendMode="normal",this.canBundle=!0}},Io=0,(Oo=class e{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){const n=e.batch.textures.ids[t._source.uid];return!(!n&&0!==n||(e.textureId=n,e.texture=t,0))}updateElement(e){this.dirty=!0,e.packAttributes(this.attributeBuffer.float32View,this.attributeBuffer.uint32View,e.location,e.textureId)}break(e){const t=this._elements;let n=this._textureBatchPool[this._textureBatchPoolIndex++]||new ko;if(n.clear(),!t[this.elementStart])return;const r=t[this.elementStart];let i=Po(r.blendMode,r.texture._source);4*this.attributeSize>this.attributeBuffer.size&&this._resizeAttributeBuffer(4*this.attributeSize),this.indexSize>this.indexBuffer.length&&this._resizeIndexBuffer(this.indexSize);const o=this.attributeBuffer.float32View,a=this.attributeBuffer.uint32View,s=this.indexBuffer;let l=this._batchIndexSize,u=this._batchIndexStart,c="startBatch",d=this._batchPool[this._batchPoolIndex++]||new Ro;for(let f=this.elementStart;f<this.elementSize;++f){const r=t[f];t[f]=null;const p=r.texture._source,h=Po(r.blendMode,p),m=i!==h;p._batchTick!==Io||m?(p._batchTick=Io,(n.count>=po||m)&&(this._finishBatch(d,u,l-u,n,i,e,c),c="renderBatch",u=l,i=h,n=this._textureBatchPool[this._textureBatchPoolIndex++]||new ko,n.clear(),d=this._batchPool[this._batchPoolIndex++]||new Ro,++Io),r.textureId=p._textureBindLocation=n.count,n.ids[p.uid]=n.count,n.textures[n.count++]=p,r.batch=d,l+=r.indexSize,r.packAttributes(o,a,r.location,r.textureId),r.packIndex(s,r.indexStart,r.location/this._vertexSize)):(r.textureId=p._textureBindLocation,l+=r.indexSize,r.packAttributes(o,a,r.location,r.textureId),r.packIndex(s,r.indexStart,r.location/this._vertexSize),r.batch=d)}n.count>0&&(this._finishBatch(d,u,l-u,n,i,e,c),u=l,++Io),this.elementStart=this.elementSize,this._batchIndexStart=u,this._batchIndexSize=l}_finishBatch(e,t,n,r,i,o,a){e.gpuBindGroup=null,e.action=a,e.batcher=this,e.textures=r,e.blendMode=i,e.start=t,e.size=n,++Io,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){const t=Math.max(e,2*this.attributeBuffer.size),n=new bo(t);_o(this.attributeBuffer.rawBinaryData,n.rawBinaryData),this.attributeBuffer=n}_resizeIndexBuffer(e){const t=this.indexBuffer;let n=Math.max(e,1.5*t.length);n+=n%2;const r=n>65535?new Uint32Array(n):new Uint16Array(n);if(r.BYTES_PER_ELEMENT!==t.BYTES_PER_ELEMENT)for(let i=0;i<t.length;i++)r[i]=t[i];else _o(t.buffer,r.buffer);this.indexBuffer=r}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}constructor(t={}){this.uid=qe("batcher"),this.dirty=!0,this.batchIndex=0,this.batches=[],this._vertexSize=6,this._elements=[],this._batchPool=[],this._batchPoolIndex=0,this._textureBatchPool=[],this._textureBatchPoolIndex=0,t=q(q({},e.defaultOptions),t);const{vertexSize:n,indexSize:r}=t;this.attributeBuffer=new bo(n*this._vertexSize*4),this.indexBuffer=new Uint16Array(r)}}).defaultOptions={vertexSize:4,indexSize:6},Mo=Oo}}),Fo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/buildUvs.mjs"(){}});function Do(e,t,n,r,i){const o=t.a,a=t.b,s=t.c,l=t.d,u=t.tx,c=t.ty;n=n||0,r=r||2,i=i||e.length/r-n;let d=n*r;for(let f=0;f<i;f++){const t=e[d],n=e[d+1];e[d]=o*t+s*n+u,e[d+1]=a*t+l*n+c,d+=r}}var Lo,No,Uo,Go,Ho=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/transformVertices.mjs"(){}}),Wo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/utils/multiplyHexColors.mjs"(){}}),Vo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/BatchableGraphics.mjs"(){Wo(),Lo=class{get blendMode(){return this.applyTransform?this.renderable.groupBlendMode:"normal"}packIndex(e,t,n){const r=this.geometryData.indices;for(let i=0;i<this.indexSize;i++)e[t++]=r[i+this.indexOffset]+n-this.vertexOffset}packAttributes(e,t,n,r){const i=this.geometryData,o=this.renderable,a=i.vertices,s=i.uvs,l=2*this.vertexOffset,u=2*(this.vertexOffset+this.vertexSize),c=this.color,d=c>>16|65280&c|(255&c)<<16;if(this.applyTransform){const i=(f=d,p=o.groupColor,(16777215!==f&&p?16777215!==p&&f?((f>>16&255)*(p>>16&255)/255<<16)+((f>>8&255)*(p>>8&255)/255<<8)+(255&f)*(255&p)/255:f:p)+(this.alpha*o.groupAlpha*255<<24)),c=o.groupTransform,h=r<<16|65535&this.roundPixels,m=c.a,A=c.b,g=c.c,v=c.d,y=c.tx,b=c.ty;for(let r=l;r<u;r+=2){const o=a[r],l=a[r+1];e[n]=m*o+g*l+y,e[n+1]=A*o+v*l+b,e[n+2]=s[r],e[n+3]=s[r+1],t[n+4]=i,t[n+5]=h,n+=6}}else{const i=d+(255*this.alpha<<24);for(let o=l;o<u;o+=2)e[n]=a[o],e[n+1]=a[o+1],e[n+2]=s[o],e[n+3]=s[o+1],t[n+4]=i,t[n+5]=r<<16,n+=6}var f,p}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}constructor(){this.batcher=null,this.batch=null,this.applyTransform=!0,this.roundPixels=0}}}}),Xo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/buildCommands/buildCircle.mjs"(){No={build(e,t){let n,r,i,o,a,s;if("circle"===e.type){const t=e;n=t.x,r=t.y,a=s=t.radius,i=o=0}else if("ellipse"===e.type){const t=e;n=t.x,r=t.y,a=t.halfWidth,s=t.halfHeight,i=o=0}else{const t=e,l=t.width/2,u=t.height/2;n=t.x+l,r=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;const l=Math.ceil(2.3*Math.sqrt(a+s)),u=8*l+(i?4:0)+(o?4:0);if(0===u)return t;if(0===l)return t[0]=t[6]=n+i,t[1]=t[3]=r+o,t[2]=t[4]=n-i,t[5]=t[7]=r-o,t;let c=0,d=4*l+(i?2:0)+2,f=d,p=u,h=i+a,m=o,A=n+h,g=n-h,v=r+m;if(t[c++]=A,t[c++]=v,t[--d]=v,t[--d]=g,o){const e=r-m;t[f++]=g,t[f++]=e,t[--p]=e,t[--p]=A}for(let b=1;b<l;b++){const e=Math.PI/2*(b/l),u=i+Math.cos(e)*a,h=o+Math.sin(e)*s,m=n+u,A=n-u,g=r+h,v=r-h;t[c++]=m,t[c++]=g,t[--d]=g,t[--d]=A,t[f++]=A,t[f++]=v,t[--p]=v,t[--p]=m}h=i,m=o+s,A=n+h,g=n-h,v=r+m;const y=r-m;return t[c++]=A,t[c++]=v,t[--p]=y,t[--p]=A,i&&(t[c++]=g,t[c++]=v,t[--p]=y,t[--p]=g),t},triangulate(e,t,n,r,i,o){if(0===e.length)return;let a=0,s=0;for(let c=0;c<e.length;c+=2)a+=e[c],s+=e[c+1];a/=e.length/2,s/=e.length/2;let l=r;t[l*n]=a,t[l*n+1]=s;const u=l++;for(let c=0;c<e.length;c+=2)t[l*n]=e[c],t[l*n+1]=e[c+1],c>0&&(i[o++]=l,i[o++]=u,i[o++]=l-1),l++;i[o++]=u+1,i[o++]=u,i[o++]=l-1}}}}),Ko=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/const.mjs"(){Uo=1e-4,Go=1e-4}}),qo=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/utils/getOrientationOfPoints.mjs"(){}});function Qo(e,t,n,r,i,o,a,s){let l,u;a?(l=r,u=-n):(l=-r,u=n);const c=e-n*i+l,d=t-r*i+u,f=e+n*o+l,p=t+r*o+u;return s.push(c,d),s.push(f,p),2}function Yo(e,t,n,r,i,o,a,s){const l=n-e,u=r-t;let c=Math.atan2(l,u),d=Math.atan2(i-e,o-t);s&&c<d?c+=2*Math.PI:!s&&c>d&&(d+=2*Math.PI);let f=c;const p=d-c,h=Math.abs(p),m=Math.sqrt(l*l+u*u),A=1+(15*h*Math.sqrt(m)/Math.PI|0),g=p/A;if(f+=g,s){a.push(e,t),a.push(n,r);for(let n=1,r=f;n<A;n++,r+=g)a.push(e,t),a.push(e+Math.sin(r)*m,t+Math.cos(r)*m);a.push(e,t),a.push(i,o)}else{a.push(n,r),a.push(e,t);for(let n=1,r=f;n<A;n++,r+=g)a.push(e+Math.sin(r)*m,t+Math.cos(r)*m),a.push(e,t);a.push(i,o),a.push(e,t)}return 2*A}var Zo,$o=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/buildCommands/buildLine.mjs"(){Ve(),Ko(),qo()}}),Jo=$({"../../node_modules/.pnpm/earcut@2.2.4/node_modules/earcut/src/earcut.js"(e,t){function n(e,t,n){n=n||2;var i,a,s,l,u,f,p,m=t&&t.length,A=m?t[0]*n:e.length,g=r(e,0,A,n,!0),v=[];if(!g||g.next===g.prev)return v;if(m&&(g=function(e,t,n,i){var o,a,s,l=[];for(o=0,a=t.length;o<a;o++)(s=r(e,t[o]*i,o<a-1?t[o+1]*i:e.length,i,!1))===s.next&&(s.steiner=!0),l.push(h(s));for(l.sort(c),o=0;o<l.length;o++)n=d(l[o],n);return n}(e,t,g,n)),e.length>80*n){i=s=e[0],a=l=e[1];for(var y=n;y<A;y+=n)(u=e[y])<i&&(i=u),(f=e[y+1])<a&&(a=f),u>s&&(s=u),f>l&&(l=f);p=0!==(p=Math.max(s-i,l-a))?32767/p:0}return o(g,v,n,i,a,p,0),v}function r(e,t,n,r,i){var o,a;if(i===T(e,t,n,r)>0)for(o=t;o<n;o+=r)a=w(o,e[o],e[o+1],a);else for(o=n-r;o>=t;o-=r)a=w(o,e[o],e[o+1],a);return a&&v(a,a.next)&&(E(a),a=a.next),a}function i(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==g(r.prev,r,r.next))r=r.next;else{if(E(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function o(e,t,n,r,c,d,f){if(e){!f&&d&&function(e,t,n,r){var i=e;do{0===i.z&&(i.z=p(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,l,u=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t<u&&(s++,r=r.nextZ);t++);for(l=u;s>0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,u*=2}while(a>1)}(i)}(e,r,c,d);for(var h,m,A=e;e.prev!==e.next;)if(h=e.prev,m=e.next,d?s(e,r,c,d):a(e))t.push(h.i/n|0),t.push(e.i/n|0),t.push(m.i/n|0),E(e),e=m.next,A=m.next;else if((e=m)===A){f?1===f?o(e=l(i(e),t,n),t,n,r,c,d,2):2===f&&u(e,t,n,r,c,d):o(i(e),t,n,r,c,d,1);break}}}function a(e){var t=e.prev,n=e,r=e.next;if(g(t,n,r)>=0)return!1;for(var i=t.x,o=n.x,a=r.x,s=t.y,l=n.y,u=r.y,c=i<o?i<a?i:a:o<a?o:a,d=s<l?s<u?s:u:l<u?l:u,f=i>o?i>a?i:a:o>a?o:a,p=s>l?s>u?s:u:l>u?l:u,h=r.next;h!==t;){if(h.x>=c&&h.x<=f&&h.y>=d&&h.y<=p&&m(i,s,o,l,a,u,h.x,h.y)&&g(h.prev,h,h.next)>=0)return!1;h=h.next}return!0}function s(e,t,n,r){var i=e.prev,o=e,a=e.next;if(g(i,o,a)>=0)return!1;for(var s=i.x,l=o.x,u=a.x,c=i.y,d=o.y,f=a.y,h=s<l?s<u?s:u:l<u?l:u,A=c<d?c<f?c:f:d<f?d:f,v=s>l?s>u?s:u:l>u?l:u,y=c>d?c>f?c:f:d>f?d:f,b=p(h,A,t,n,r),x=p(v,y,t,n,r),S=e.prevZ,_=e.nextZ;S&&S.z>=b&&_&&_.z<=x;){if(S.x>=h&&S.x<=v&&S.y>=A&&S.y<=y&&S!==i&&S!==a&&m(s,c,l,d,u,f,S.x,S.y)&&g(S.prev,S,S.next)>=0)return!1;if(S=S.prevZ,_.x>=h&&_.x<=v&&_.y>=A&&_.y<=y&&_!==i&&_!==a&&m(s,c,l,d,u,f,_.x,_.y)&&g(_.prev,_,_.next)>=0)return!1;_=_.nextZ}for(;S&&S.z>=b;){if(S.x>=h&&S.x<=v&&S.y>=A&&S.y<=y&&S!==i&&S!==a&&m(s,c,l,d,u,f,S.x,S.y)&&g(S.prev,S,S.next)>=0)return!1;S=S.prevZ}for(;_&&_.z<=x;){if(_.x>=h&&_.x<=v&&_.y>=A&&_.y<=y&&_!==i&&_!==a&&m(s,c,l,d,u,f,_.x,_.y)&&g(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function l(e,t,n){var r=e;do{var o=r.prev,a=r.next.next;!v(o,a)&&y(o,r,r.next,a)&&S(o,a)&&S(a,o)&&(t.push(o.i/n|0),t.push(r.i/n|0),t.push(a.i/n|0),E(r),E(r.next),r=e=a),r=r.next}while(r!==e);return i(r)}function u(e,t,n,r,a,s){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&A(l,u)){var c=_(l,u);return l=i(l,l.next),c=i(c,c.next),o(l,t,n,r,a,s,0),void o(c,t,n,r,a,s,0)}u=u.next}l=l.next}while(l!==e)}function c(e,t){return e.x-t.x}function d(e,t){var n=function(e,t){var n,r=t,i=e.x,o=e.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a&&(a=s,n=r.x<r.next.x?r:r.next,s===i))return n}r=r.next}while(r!==t);if(!n)return null;var l,u=n,c=n.x,d=n.y,p=1/0;r=n;do{i>=r.x&&r.x>=c&&i!==r.x&&m(o<d?i:a,o,c,d,o<d?a:i,o,r.x,r.y)&&(l=Math.abs(o-r.y)/(i-r.x),S(r,e)&&(l<p||l===p&&(r.x>n.x||r.x===n.x&&f(n,r)))&&(n=r,p=l)),r=r.next}while(r!==u);return n}(e,t);if(!n)return t;var r=_(n,e);return i(r,r.next),i(n,n.next)}function f(e,t){return g(e.prev,e,t.prev)<0&&g(t.next,e,e.next)<0}function p(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function h(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function m(e,t,n,r,i,o,a,s){return(i-a)*(t-s)>=(e-a)*(o-s)&&(e-a)*(r-s)>=(n-a)*(t-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function A(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&y(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(S(e,t)&&S(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(g(e.prev,e,t.prev)||g(e,t.prev,t))||v(e,t)&&g(e.prev,e,e.next)>0&&g(t.prev,t,t.next)>0)}function g(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function v(e,t){return e.x===t.x&&e.y===t.y}function y(e,t,n,r){var i=x(g(e,t,n)),o=x(g(e,t,r)),a=x(g(n,r,e)),s=x(g(n,r,t));return i!==o&&a!==s||!(0!==i||!b(e,n,t))||!(0!==o||!b(e,r,t))||!(0!==a||!b(n,e,r))||!(0!==s||!b(n,t,r))}function b(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function x(e){return e>0?1:e<0?-1:0}function S(e,t){return g(e.prev,e,e.next)<0?g(e,t,e.next)>=0&&g(e,e.prev,t)>=0:g(e,t,e.prev)<0||g(e,e.next,t)<0}function _(e,t){var n=new C(e.i,e.x,e.y),r=new C(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function w(e,t,n,r){var i=new C(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function E(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function C(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function T(e,t,n,r){for(var i=0,o=t,a=n-r;o<n;o+=r)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}t.exports=n,t.exports.default=n,n.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,a=Math.abs(T(e,0,o,n));if(i)for(var s=0,l=t.length;s<l;s++){var u=t[s]*n,c=s<l-1?t[s+1]*n:e.length;a-=Math.abs(T(e,u,c,n))}var d=0;for(s=0;s<r.length;s+=3){var f=r[s]*n,p=r[s+1]*n,h=r[s+2]*n;d+=Math.abs((e[f]-e[h])*(e[p+1]-e[f+1])-(e[f]-e[p])*(e[h+1]-e[f+1]))}return 0===a&&0===d?0:Math.abs((d-a)/a)},n.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var a=0;a<t;a++)n.vertices.push(e[i][o][a]);i>0&&(r+=e[i-1].length,n.holes.push(r))}return n}}});function ea(e,t,n,r,i,o,a){const s=(0,Zo.default)(e,t,2);if(!s)return;for(let u=0;u<s.length;u+=3)o[a++]=s[u]+i,o[a++]=s[u+1]+i,o[a++]=s[u+2]+i;let l=i*r;for(let u=0;u<e.length;u+=2)n[l]=e[u],n[l+1]=e[u+1],l+=r}var ta,na,ra,ia,oa,aa,sa=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/utils/triangulateWithHoles.mjs"(){Zo=ee(Jo(),1)}}),la=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/buildCommands/buildPolygon.mjs"(){sa(),ta=[],na={build(e,t){for(let n=0;n<e.points.length;n++)t[n]=e.points[n];return t},triangulate(e,t,n,r,i,o){ea(e,ta,t,n,r,i,o)}}}}),ua=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/buildCommands/buildRectangle.mjs"(){ra={build(e,t){const n=e,r=n.x,i=n.y,o=n.width,a=n.height;return o>=0&&a>=0?(t[0]=r,t[1]=i,t[2]=r+o,t[3]=i,t[4]=r+o,t[5]=i+a,t[6]=r,t[7]=i+a,t):t},triangulate(e,t,n,r,i,o){let a=0;t[(r*=n)+a]=e[0],t[r+a+1]=e[1],a+=n,t[r+a]=e[2],t[r+a+1]=e[3],a+=n,t[r+a]=e[6],t[r+a+1]=e[7],a+=n,t[r+a]=e[4],t[r+a+1]=e[5],a+=n;const s=r/n;i[o++]=s,i[o++]=s+1,i[o++]=s+2,i[o++]=s+1,i[o++]=s+3,i[o++]=s+2}}}}),ca=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/buildCommands/buildTriangle.mjs"(){ia={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,n,r,i,o){let a=0;t[(r*=n)+a]=e[0],t[r+a+1]=e[1],a+=n,t[r+a]=e[2],t[r+a+1]=e[3],a+=n,t[r+a]=e[4],t[r+a+1]=e[5];const s=r/n;i[o++]=s,i[o++]=s+1,i[o++]=s+2}}}});function da(e,t,n){const{vertices:r,uvs:i,indices:o}=n,a=o.length,s=r.length/2,l=[],u=oa.rectangle,c=aa,d=e.image;c.x=e.dx,c.y=e.dy,c.width=e.dw,c.height=e.dh;const f=e.transform;u.build(c,l),f&&Do(l,f),u.triangulate(l,r,2,s,o,a);const p=d.uvs;i.push(p.x0,p.y0,p.x1,p.y1,p.x3,p.y3,p.x2,p.y2);const h=it.get(Lo);h.indexOffset=a,h.indexSize=o.length-a,h.vertexOffset=s,h.vertexSize=r.length/2-s,h.color=e.style,h.alpha=e.alpha,h.texture=d,h.geometryData=n,t.push(h)}function fa(e,t,n,r,i,o){const{vertices:a,uvs:s,indices:l}=o,u=e.shapePrimitives.length-1;e.shapePrimitives.forEach((({shape:e,transform:c},d)=>{var f;const p=l.length,h=a.length/2,m=[],A=oa[e.type];if(A.build(e,m),c&&Do(m,c),r){const n=null==(f=e.closePath)||f;!function(e,t,n,r,i,o,a,s){const l=Uo;if(0===e.length)return;const u=t;let c=u.alignment;if(.5!==t.alignment){let t=function(e){const t=e.length;if(t<6)return 1;let n=0;for(let r=0,i=e[t-2],o=e[t-1];r<t;r+=2){const t=e[r],a=e[r+1];n+=(t-i)*(a+o),i=t,o=a}return n<0?-1:1}(e);n&&(t*=-1),c=(c-.5)*t+.5}const d=new je(e[0],e[1]),f=new je(e[e.length-2],e[e.length-1]),p=r,h=Math.abs(d.x-f.x)<l&&Math.abs(d.y-f.y)<l;if(p){e=e.slice(),h&&(e.pop(),e.pop(),f.set(e[e.length-2],e[e.length-1]));const t=.5*(d.x+f.x),n=.5*(f.y+d.y);e.unshift(t,n),e.push(t,n)}const m=i,A=e.length/2;let g=e.length;const v=m.length/2,y=u.width/2,b=y*y,x=u.miterLimit*u.miterLimit;let S=e[0],_=e[1],w=e[2],E=e[3],C=0,T=0,P=-(_-E),k=S-w,R=0,I=0,O=Math.sqrt(P*P+k*k);P/=O,k/=O,P*=y,k*=y;const M=2*(1-c),j=2*c;p||("round"===u.cap?g+=Yo(S-P*(M-j)*.5,_-k*(M-j)*.5,S-P*M,_-k*M,S+P*j,_+k*j,m,!0)+2:"square"===u.cap&&(g+=Qo(S,_,P,k,M,j,!0,m))),m.push(S-P*M,_-k*M),m.push(S+P*j,_+k*j);for(let B=1;B<A-1;++B){S=e[2*(B-1)],_=e[2*(B-1)+1],w=e[2*B],E=e[2*B+1],C=e[2*(B+1)],T=e[2*(B+1)+1],P=-(_-E),k=S-w,O=Math.sqrt(P*P+k*k),P/=O,k/=O,P*=y,k*=y,R=-(E-T),I=w-C,O=Math.sqrt(R*R+I*I),R/=O,I/=O,R*=y,I*=y;const t=w-S,n=_-E,r=w-C,i=T-E,o=t*r+n*i,a=n*r-i*t,s=a<0;if(Math.abs(a)<.001*Math.abs(o)){m.push(w-P*M,E-k*M),m.push(w+P*j,E+k*j),o>=0&&("round"===u.join?g+=Yo(w,E,w-P*M,E-k*M,w-R*M,E-I*M,m,!1)+4:g+=2,m.push(w-R*j,E-I*j),m.push(w+R*M,E+I*M));continue}const l=(-P+S)*(-k+E)-(-P+w)*(-k+_),c=(-R+C)*(-I+E)-(-R+w)*(-I+T),d=(t*c-r*l)/a,f=(i*l-n*c)/a,p=(d-w)*(d-w)+(f-E)*(f-E),h=w+(d-w)*M,A=E+(f-E)*M,v=w-(d-w)*j,z=E-(f-E)*j,F=s?M:j;p<=Math.min(t*t+n*n,r*r+i*i)+F*F*b?"bevel"===u.join||p/b>x?(s?(m.push(h,A),m.push(w+P*j,E+k*j),m.push(h,A),m.push(w+R*j,E+I*j)):(m.push(w-P*M,E-k*M),m.push(v,z),m.push(w-R*M,E-I*M),m.push(v,z)),g+=2):"round"===u.join?s?(m.push(h,A),m.push(w+P*j,E+k*j),g+=Yo(w,E,w+P*j,E+k*j,w+R*j,E+I*j,m,!0)+4,m.push(h,A),m.push(w+R*j,E+I*j)):(m.push(w-P*M,E-k*M),m.push(v,z),g+=Yo(w,E,w-P*M,E-k*M,w-R*M,E-I*M,m,!1)+4,m.push(w-R*M,E-I*M),m.push(v,z)):(m.push(h,A),m.push(v,z)):(m.push(w-P*M,E-k*M),m.push(w+P*j,E+k*j),"round"===u.join?g+=s?Yo(w,E,w+P*j,E+k*j,w+R*j,E+I*j,m,!0)+2:Yo(w,E,w-P*M,E-k*M,w-R*M,E-I*M,m,!1)+2:"miter"===u.join&&p/b<=x&&(s?(m.push(v,z),m.push(v,z)):(m.push(h,A),m.push(h,A)),g+=2),m.push(w-R*M,E-I*M),m.push(w+R*j,E+I*j),g+=2)}S=e[2*(A-2)],_=e[2*(A-2)+1],w=e[2*(A-1)],E=e[2*(A-1)+1],P=-(_-E),k=S-w,O=Math.sqrt(P*P+k*k),P/=O,k/=O,P*=y,k*=y,m.push(w-P*M,E-k*M),m.push(w+P*j,E+k*j),p||("round"===u.cap?g+=Yo(w-P*(M-j)*.5,E-k*(M-j)*.5,w-P*M,E-k*M,w+P*j,E+k*j,m,!1)+2:"square"===u.cap&&(g+=Qo(w,E,P,k,M,j,!1,m)));const z=Go*Go;for(let B=v;B<g+v-2;++B)S=m[2*B],_=m[2*B+1],w=m[2*(B+1)],E=m[2*(B+1)+1],C=m[2*(B+2)],T=m[2*(B+2)+1],Math.abs(S*(E-T)+w*(T-_)+C*(_-E))<z||s.push(B,B+1,B+2)}(m,t,!1,n,a,0,0,l)}else if(n&&u===d){0!==u&&console.warn("[Pixi Graphics] only the last shape have be cut out");const e=[],t=m.slice(),r=function(e){if(!e)return[];const t=e.shapePrimitives,n=[];for(let r=0;r<t.length;r++){const e=t[r].shape,i=[];oa[e.type].build(e,i),n.push(i)}return n}(n.shapePath);r.forEach((n=>{e.push(t.length/2),t.push(...n)})),ea(t,e,a,2,h,l,p)}else A.triangulate(m,a,2,h,l,p);const g=s.length/2,v=t.texture;if(v!==ii.WHITE){const e=t.matrix;c&&e.append(c.clone().invert()),function(e,t,n,r,i,o,a,s=null){let l=0;n*=t,i*=o;const u=s.a,c=s.b,d=s.c,f=s.d,p=s.tx,h=s.ty;for(;l<a;){const a=e[n],s=e[n+1];r[i]=u*a+d*s+p,r[i+1]=c*a+f*s+h,i+=o,n+=t,l++}}(a,2,h,s,g,2,a.length/2-h,e)}else!function(e,t,n,r){let i=0;for(t*=n;i<r;)e[t]=0,e[t+1]=0,t+=n,i++}(s,g,2,a.length/2-h);const y=it.get(Lo);y.indexOffset=p,y.indexSize=l.length-p,y.vertexOffset=h,y.vertexSize=a.length/2-h,y.color=t.color,y.alpha=t.alpha,y.texture=v,y.geometryData=o,i.push(y)}))}var pa,ha,ma,Aa,ga,va,ya,ba=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/utils/buildContextBatches.mjs"(){St(),Fo(),Ho(),mi(),vt(),Vo(),Xo(),$o(),la(),ua(),ca(),sa(),oa={rectangle:ra,polygon:na,triangle:ia,circle:No,ellipse:No,roundedRectangle:No},aa=new ut}}),xa=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/GraphicsContextSystem.mjs"(){_e(),Ao(),xo(),Bo(),xn(),vt(),ba(),pa=class{constructor(){this.batches=[],this.geometryData={vertices:[],uvs:[],indices:[]}}},ha=class{init(){this.instructions.reset()}constructor(){this.geometry=new co,this.instructions=new Xt}},(ma=class e{init(t){var n;e.defaultOptions.bezierSmoothness=null!=(n=null==t?void 0:t.bezierSmoothness)?n: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),function(e,t){const{geometryData:n,batches:r}=t;r.length=0,n.indices.length=0,n.vertices.length=0,n.uvs.length=0;for(let i=0;i<e.instructions.length;i++){const t=e.instructions[i];if("texture"===t.action)da(t.data,r,n);else if("fill"===t.action||"stroke"===t.action){const e="stroke"===t.action,i=t.data.path.shapePath,o=t.data.style,a=t.data.hole;e&&a&&fa(a.shapePath,o,null,!0,r,n),fa(i,o,a,e,r,n)}}}(e,t);const n=e.batchMode;e.customShader||"no-batch"===n?t.isBatchable=!1:"auto"===n&&(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++)it.return(this._activeBatchers[e]);this._activeBatchers.length=0}_initContextRenderData(e){const t=it.get(ha),{batches:n,geometryData:r}=this._gpuContextHash[e.uid],i=r.vertices.length,o=r.indices.length;for(let u=0;u<n.length;u++)n[u].applyTransform=!1;const a=it.get(Mo);this._activeBatchers.push(a),a.ensureAttributeBuffer(i),a.ensureIndexBuffer(o),a.begin();for(let u=0;u<n.length;u++){const e=n[u];a.add(e)}a.finish(t.instructions);const s=t.geometry;s.indexBuffer.setDataWithSize(a.indexBuffer,a.indexSize,!0),s.buffers[0].setDataWithSize(a.attributeBuffer.float32View,a.attributeSize,!0);const l=a.batches;for(let u=0;u<l.length;u++){const e=l[u];e.bindGroup=yo(e.textures.textures,e.textures.count)}return this._graphicsDataContextHash[e.uid]=t,t}_initContext(e){const t=new pa;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){const t=this._gpuContextHash[e.uid];t.isBatchable||this._graphicsDataContextHash[e.uid]&&(it.return(this.getContextRenderData(e)),this._graphicsDataContextHash[e.uid]=null),t.batches&&t.batches.forEach((e=>{it.return(e)}))}destroy(){for(const e of this._needsContextNeedsRebuild)this._gpuContextHash[e.uid]&&this.onGraphicsContextDestroy(e);this._needsContextNeedsRebuild.length=0}constructor(){this._activeBatchers=[],this._gpuContextHash={},this._graphicsDataContextHash=Object.create(null),this._needsContextNeedsRebuild=[]}}).extension={type:[t.WebGLSystem,t.WebGPUSystem,t.CanvasSystem],name:"graphicsContext"},ma.defaultOptions={bezierSmoothness:.5},Aa=ma}}),Sa=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/state/State.mjs"(){ga={normal:0,add:1,multiply:2,screen:3,overlay:4,erase:5,"normal-npm":6,"add-npm":7,"screen-npm":8},(va=class e{get blend(){return!!(1&this.data)}set blend(e){!!(1&this.data)!==e&&(this.data^=1)}get offsets(){return!!(2&this.data)}set offsets(e){!!(2&this.data)!==e&&(this.data^=2)}set cullMode(e){"none"!==e?(this.culling=!0,this.clockwiseFrontFace="front"===e):this.culling=!1}get cullMode(){return this.culling?this.clockwiseFrontFace?"front":"back":"none"}get culling(){return!!(4&this.data)}set culling(e){!!(4&this.data)!==e&&(this.data^=4)}get depthTest(){return!!(8&this.data)}set depthTest(e){!!(8&this.data)!==e&&(this.data^=8)}get depthMask(){return!!(32&this.data)}set depthMask(e){!!(32&this.data)!==e&&(this.data^=32)}get clockwiseFrontFace(){return!!(16&this.data)}set clockwiseFrontFace(e){!!(16&this.data)!==e&&(this.data^=16)}get blendMode(){return this._blendMode}set blendMode(e){this.blend="none"!==e,this._blendMode=e,this._blendModeId=ga[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(){const t=new e;return t.depthTest=!1,t.blend=!0,t}constructor(){this.data=0,this.blendMode="normal",this.polygonOffset=0,this.blend=!0,this.depthMask=!0}}).default2d=va.for2d(),ya=va}});function _a(e,t,n){const r=(e>>24&255)/255;t[n++]=(255&e)/255*r,t[n++]=(e>>8&255)/255*r,t[n++]=(e>>16&255)/255*r,t[n++]=r}var wa,Ea,Ca,Ta=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/gpu/colorToUniform.mjs"(){}}),Pa=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/GraphicsPipe.mjs"(){_e(),Sa(),vt(),Ta(),Vo(),(wa=class{validateRenderable(e){const t=e.context,n=!!this._graphicsBatchesHash[e.uid],r=this.renderer.graphicsContext.updateGpuContext(t);return!(!r.isBatchable&&n===r.isBatchable)}addRenderable(e,t){const n=this.renderer.graphicsContext.updateGpuContext(e.context);e._didGraphicsUpdate&&(e._didGraphicsUpdate=!1,this._rebuild(e)),n.isBatchable?this._addToBatcher(e,t):(this.renderer.renderPipes.batch.break(t),t.add(e))}updateRenderable(e){const t=this._graphicsBatchesHash[e.uid];if(t)for(let n=0;n<t.length;n++){const e=t[n];e.batcher.updateElement(e)}}destroyRenderable(e){this._graphicsBatchesHash[e.uid]&&this._removeBatchForRenderable(e.uid)}execute(e){if(!e.isRenderable)return;const t=this.renderer,n=e.context;if(!t.graphicsContext.getGpuContext(n).batches.length)return;const r=n.customShader||this._adaptor.shader;this.state.blendMode=e.groupBlendMode;const i=r.resources.localUniforms.uniforms;i.uTransformMatrix=e.groupTransform,i.uRound=t._roundPixels|e._roundPixels,_a(e.groupColorAlpha,i.uColor,0),this._adaptor.execute(this,e)}_rebuild(e){const t=!!this._graphicsBatchesHash[e.uid],n=this.renderer.graphicsContext.updateGpuContext(e.context);t&&this._removeBatchForRenderable(e.uid),n.isBatchable&&this._initBatchesForRenderable(e),e.batched=n.isBatchable}_addToBatcher(e,t){const n=this.renderer.renderPipes.batch,r=this._getBatchesForRenderable(e);for(let i=0;i<r.length;i++){const e=r[i];n.addToBatch(e,t)}}_getBatchesForRenderable(e){return this._graphicsBatchesHash[e.uid]||this._initBatchesForRenderable(e)}_initBatchesForRenderable(e){const t=e.context,n=this.renderer.graphicsContext.getGpuContext(t),r=this.renderer._roundPixels|e._roundPixels,i=n.batches.map((t=>{const n=it.get(Lo);return t.copyTo(n),n.renderable=e,n.roundPixels=r,n}));return this._graphicsBatchesHash[e.uid]=i,e.on("destroyed",(()=>{this.destroyRenderable(e)})),i}_removeBatchForRenderable(e){this._graphicsBatchesHash[e].forEach((e=>{it.return(e)})),this._graphicsBatchesHash[e]=null}destroy(){this.renderer=null,this._adaptor.destroy(),this._adaptor=null,this.state=null;for(const e in this._graphicsBatchesHash)this._removeBatchForRenderable(e);this._graphicsBatchesHash=null}constructor(e,t){this.state=ya.for2d(),this._graphicsBatchesHash=Object.create(null),this.renderer=e,this._adaptor=t,this._adaptor.init()}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"graphics"}}}),ka=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/init.mjs"(){_e(),xa(),Pa(),i.add(wa),i.add(Aa)}});function Ra(e,t){let n=Ca[e];return void 0===n&&(void 0===Ea[t]&&(Ea[t]=1),Ca[e]=n=Ea[t]++),n}var Ia=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/utils/createIdFromString.mjs"(){Ea=Object.create(null),Ca=Object.create(null)}});function Oa(e,t){switch(e){case"f32":return 0;case"vec2<f32>":return new Float32Array(2*t);case"vec3<f32>":return new Float32Array(3*t);case"vec4<f32>":return new Float32Array(4*t);case"mat2x2<f32>":return new Float32Array([1,0,0,1]);case"mat3x3<f32>":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4x4<f32>":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var Ma,ja,za,Ba,Fa,Da,La,Na,Ua,Ga=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/shader/utils/getDefaultUniformValue.mjs"(){}}),Ha=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/shader/UniformGroup.mjs"(){Ze(),Ia(),Ga(),(Ma=class e{update(){this._dirtyId++}constructor(t,n){var r;this._touched=0,this.uid=qe("uniform"),this._resourceType="uniformGroup",this._resourceId=qe("resource"),this.isUniformGroup=!0,this._dirtyId=0,this.destroyed=!1,n=q(q({},e.defaultOptions),n),this.uniformStructures=t;const i={};for(const e in t){const n=t[e];n.name=e,n.size=null!=(r=n.size)?r:1,null!=n.value||(n.value=Oa(n.type,n.size)),i[e]=n.value}this.uniforms=i,this._dirtyId=1,this.ubo=n.ubo,this.isStatic=n.isStatic,this._signature=Ra(Object.keys(i).map((e=>`${e}-${t[e].type}`)).join("-"),"uniform-group")}}).defaultOptions={ubo:!1,isStatic:!1},ja=Ma}}),Wa=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/mesh/shared/BatchableMesh.mjs"(){za=class{get blendMode(){return this.mesh.groupBlendMode}reset(){this.mesh=null,this.texture=null,this.batcher=null,this.batch=null}packIndex(e,t,n){const r=this.geometry.indices;for(let i=0;i<r.length;i++)e[t++]=r[i]+n}packAttributes(e,t,n,r){const i=this.mesh,o=this.geometry,a=i.groupTransform,s=r<<16|65535&this.roundPixels,l=a.a,u=a.b,c=a.c,d=a.d,f=a.tx,p=a.ty,h=o.positions,m=o.getBuffer("aUV"),A=m.data;let g=A;const v=this.texture.textureMatrix;v.isSimple||(g=this._transformedUvs,this._textureMatrixUpdateId===v._updateID&&this._uvUpdateId===m._updateID||((!g||g.length<A.length)&&(g=this._transformedUvs=new Float32Array(A.length)),this._textureMatrixUpdateId=v._updateID,this._uvUpdateId=m._updateID,v.multiplyUvs(A,g)));const y=i.groupColorAlpha;for(let b=0;b<h.length;b+=2){const r=h[b],i=h[b+1];e[n]=l*r+c*i+f,e[n+1]=u*r+d*i+p,e[n+2]=g[b],e[n+3]=g[b+1],t[n+4]=y,t[n+5]=s,n+=6}}get vertexSize(){return this.geometry.positions.length/2}get indexSize(){return this.geometry.indices.length}constructor(){this.batcher=null,this.batch=null,this.roundPixels=0,this._uvUpdateId=-1,this._textureMatrixUpdateId=-1}}}}),Va=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/mesh/shared/MeshPipe.mjs"(){_e(),Xe(),go(),Ha(),vt(),Ta(),Wa(),(Ba=class{validateRenderable(e){const t=this._getMeshData(e),n=t.batched,r=e.batched;if(t.batched=r,n!==r)return!0;if(r){const n=e._geometry;if(n.indices.length!==t.indexSize||n.positions.length!==t.vertexSize)return t.indexSize=n.indices.length,t.vertexSize=n.positions.length,!0;const r=this._getBatchableMesh(e),i=e.texture;if(r.texture._source!==i._source&&r.texture._source!==i._source)return!r.batcher.checkAndUpdateTexture(r,i)}return!1}addRenderable(e,t){const n=this.renderer.renderPipes.batch,{batched:r}=this._getMeshData(e);if(r){const t=this._getBatchableMesh(e);t.texture=e._texture,t.geometry=e._geometry,n.addToBatch(t)}else n.break(t),t.add({renderPipeId:"mesh",mesh:e})}updateRenderable(e){if(e.batched){const t=this._gpuBatchableMeshHash[e.uid];t.texture=e._texture,t.geometry=e._geometry,t.batcher.updateElement(t)}}destroyRenderable(e){this._meshDataHash[e.uid]=null;const t=this._gpuBatchableMeshHash[e.uid];t&&(it.return(t),this._gpuBatchableMeshHash[e.uid]=null)}execute({mesh:e}){if(!e.isRenderable)return;e.state.blendMode=e.groupBlendMode;const t=this.localUniforms;t.uniforms.uTransformMatrix=e.groupTransform,t.uniforms.uRound=this.renderer._roundPixels|e._roundPixels,t.update(),_a(e.groupColorAlpha,t.uniforms.uColor,0),this._adaptor.execute(this,e)}_getMeshData(e){return this._meshDataHash[e.uid]||this._initMeshData(e)}_initMeshData(e){var t,n;return this._meshDataHash[e.uid]={batched:e.batched,indexSize:null==(t=e._geometry.indices)?void 0:t.length,vertexSize:null==(n=e._geometry.positions)?void 0:n.length},e.on("destroyed",(()=>{this.destroyRenderable(e)})),this._meshDataHash[e.uid]}_getBatchableMesh(e){return this._gpuBatchableMeshHash[e.uid]||this._initBatchableMesh(e)}_initBatchableMesh(e){const t=it.get(za);return t.mesh=e,t.texture=e._texture,t.roundPixels=this.renderer._roundPixels|e._roundPixels,this._gpuBatchableMeshHash[e.uid]=t,t.mesh=e,t}destroy(){for(const e in this._gpuBatchableMeshHash)this._gpuBatchableMeshHash[e]&&it.return(this._gpuBatchableMeshHash[e]);this._gpuBatchableMeshHash=null,this._meshDataHash=null,this.localUniforms=null,this.localUniformsBindGroup=null,this._adaptor.destroy(),this._adaptor=null,this.renderer=null}constructor(e,t){this.localUniforms=new ja({uTransformMatrix:{value:new Be,type:"mat3x3<f32>"},uColor:{value:new Float32Array([1,1,1,1]),type:"vec4<f32>"},uRound:{value:0,type:"f32"}}),this.localUniformsBindGroup=new fo({0:this.localUniforms}),this._meshDataHash=Object.create(null),this._gpuBatchableMeshHash=Object.create(null),this.renderer=e,this._adaptor=t,this._adaptor.init()}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"mesh"}}}),Xa=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/mesh/init.mjs"(){_e(),Va(),i.add(Ba)}}),Ka=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite/BatchableSprite.mjs"(){Fa=class{get blendMode(){return this.renderable.groupBlendMode}packAttributes(e,t,n,r){const i=this.renderable,o=this.texture,a=i.groupTransform,s=a.a,l=a.b,u=a.c,c=a.d,d=a.tx,f=a.ty,p=this.bounds,h=p.maxX,m=p.minX,A=p.maxY,g=p.minY,v=o.uvs,y=i.groupColorAlpha,b=r<<16|65535&this.roundPixels;e[n+0]=s*m+u*g+d,e[n+1]=c*g+l*m+f,e[n+2]=v.x0,e[n+3]=v.y0,t[n+4]=y,t[n+5]=b,e[n+6]=s*h+u*g+d,e[n+7]=c*g+l*h+f,e[n+8]=v.x1,e[n+9]=v.y1,t[n+10]=y,t[n+11]=b,e[n+12]=s*h+u*A+d,e[n+13]=c*A+l*h+f,e[n+14]=v.x2,e[n+15]=v.y2,t[n+16]=y,t[n+17]=b,e[n+18]=s*m+u*A+d,e[n+19]=c*A+l*m+f,e[n+20]=v.x3,e[n+21]=v.y3,t[n+22]=y,t[n+23]=b}packIndex(e,t,n){e[t]=n+0,e[t+1]=n+1,e[t+2]=n+2,e[t+3]=n+0,e[t+4]=n+2,e[t+5]=n+3}reset(){this.renderable=null,this.texture=null,this.batcher=null,this.batch=null,this.bounds=null}constructor(){this.vertexSize=4,this.indexSize=6,this.location=0,this.batcher=null,this.batch=null,this.roundPixels=0}}}}),qa=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text/canvas/CanvasTextPipe.mjs"(){_e(),_i(),vt(),Ka(),(Da=class{validateRenderable(e){var t;const n=this._getGpuText(e),r=e._getKey();if(n.currentKey!==r){const r=null!=(t=e.resolution)?t:this._renderer.resolution,{width:i,height:o}=this._renderer.canvasText.getTextureSize(e.text,r,e._style);return 1!==this._renderer.canvasText.getReferenceCount(n.currentKey)||i!==n.texture._source.width||o!==n.texture._source.height}return!1}addRenderable(e,t){const n=this._getGpuText(e).batchableSprite;e._didTextUpdate&&this._updateText(e),this._renderer.renderPipes.batch.addToBatch(n)}updateRenderable(e){const t=this._getGpuText(e).batchableSprite;e._didTextUpdate&&this._updateText(e),t.batcher.updateElement(t)}destroyRenderable(e){this._destroyRenderableById(e.uid)}_destroyRenderableById(e){const t=this._gpuText[e];this._renderer.canvasText.decreaseReferenceCount(t.currentKey),it.return(t.batchableSprite),this._gpuText[e]=null}_updateText(e){const t=e._getKey(),n=this._getGpuText(e),r=n.batchableSprite;n.currentKey!==t&&this._updateGpuText(e),e._didTextUpdate=!1;const i=e._style.padding;bi(r.bounds,e._anchor,r.texture,i)}_updateGpuText(e){const t=this._getGpuText(e),n=t.batchableSprite;t.texture&&this._renderer.canvasText.decreaseReferenceCount(t.currentKey),t.texture=n.texture=this._renderer.canvasText.getManagedTexture(e),t.currentKey=e._getKey(),n.texture=t.texture}_getGpuText(e){return this._gpuText[e.uid]||this.initGpuText(e)}initGpuText(e){const t={texture:null,currentKey:"--",batchableSprite:it.get(Fa)};return t.batchableSprite.renderable=e,t.batchableSprite.bounds={minX:0,maxX:1,minY:0,maxY:0},t.batchableSprite.roundPixels=this._renderer._roundPixels|e._roundPixels,this._gpuText[e.uid]=t,this._updateText(e),e.on("destroyed",(()=>{this.destroyRenderable(e)})),t}destroy(){for(const e in this._gpuText)this._destroyRenderableById(e);this._gpuText=null,this._renderer=null}constructor(e){this._gpuText=Object.create(null),this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"text"}}}),Qa=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/CanvasPool.mjs"(){Sr(),ui(),La=new class{_createCanvasAndContext(e,t){const n=$n.get().createCanvas();n.width=e,n.height=t;const r=n.getContext("2d");return{canvas:n,context:r}}getOptimalCanvasAndContext(e,t,n=1){e=Math.ceil(e*n-1e-6),t=Math.ceil(t*n-1e-6);const r=((e=qr(e))<<17)+((t=qr(t))<<1);this._canvasPool[r]||(this._canvasPool[r]=[]);let i=this._canvasPool[r].pop();return i||(i=this._createCanvasAndContext(e,t)),i}returnCanvasAndContext(e){const{width:t,height:n}=e.canvas,r=(t<<17)+(n<<1);this._canvasPool[r].push(e)}clear(){this._canvasPool={}}constructor(e){this._canvasPool=Object.create(null),this.canvasOptions=e||{},this.enableFullScreen=!1}}}}),Ya=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TexturePool.mjs"(){ui(),fi(),mi(),Na=0,Ua=new class{createTexture(e,t,n){const r=new ei(Q(q({},this.textureOptions),{width:e,height:t,resolution:1,antialias:n,autoGarbageCollect:!0}));return new ii({source:r,label:"texturePool_"+Na++})}getOptimalTexture(e,t,n=1,r){let i=Math.ceil(e*n-1e-6),o=Math.ceil(t*n-1e-6);i=qr(i),o=qr(o);const a=(i<<17)+(o<<1)+(r?1:0);this._texturePool[a]||(this._texturePool[a]=[]);let s=this._texturePool[a].pop();return s||(s=this.createTexture(i,o,r)),s.source._resolution=n,s.source.width=i/n,s.source.height=o/n,s.source.pixelWidth=i,s.source.pixelHeight=o,s.frame.x=0,s.frame.y=0,s.frame.width=e,s.frame.height=t,s.updateUvs(),this._poolKeyHash[s.uid]=a,s}getSameSizeTexture(e,t=!1){const n=e.source;return this.getOptimalTexture(e.width,e.height,n._resolution,t)}returnTexture(e){const t=this._poolKeyHash[e.uid];this._texturePool[t].push(e)}clear(e){if(e=!1!==e)for(const t in this._texturePool){const e=this._texturePool[t];if(e)for(let t=0;t<e.length;t++)e[t].destroy(!0)}this._texturePool={}}constructor(e){this._poolKeyHash=Object.create(null),this._texturePool={},this.textureOptions=e||{},this.enableFullScreen=!1}}}});function Za(e,t,n){for(let r=0,i=4*n*t;r<t;++r,i+=4)if(0!==e[i+3])return!1;return!0}function $a(e,t,n,r,i){const o=4*t;for(let a=r,s=r*o+4*n;a<=i;++a,s+=o)if(0!==e[s+3])return!1;return!0}var Ja,es,ts,ns,rs,is=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/canvas/getCanvasBoundingBox.mjs"(){St()}}),os=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/fill/FillGradient.mjs"(){Ge(),Sr(),Xe(),Ni(),mi(),Ze(),(Ja=class e{addColorStop(e,t){return this.gradientStops.push({offset:e,color:ke.shared.setValue(t).toHex()}),this}buildLinearGradient(){const t=e.defaultTextureSize,{gradientStops:n}=this,r=$n.get().createCanvas();r.width=t,r.height=t;const i=r.getContext("2d"),o=i.createLinearGradient(0,0,e.defaultTextureSize,1);for(let e=0;e<n.length;e++){const t=n[e];o.addColorStop(t.offset,t.color)}i.fillStyle=o,i.fillRect(0,0,t,t),this.texture=new ii({source:new Mi({resource:r,addressModeU:"clamp-to-edge",addressModeV:"repeat"})});const{x0:a,y0:s,x1:l,y1:u}=this,c=new Be,d=l-a,f=u-s,p=Math.sqrt(d*d+f*f),h=Math.atan2(f,d);c.translate(-a,-s),c.scale(1/t,1/t),c.rotate(-h),c.scale(256/p,1),this.transform=c}constructor(e,t,n,r){this.uid=qe("fillGradient"),this.type="linear",this.gradientStops=[],this.x0=e,this.y0=t,this.x1=n,this.y1=r}}).defaultTextureSize=256,es=Ja}}),as=$({"../../node_modules/.pnpm/parse-svg-path@0.1.2/node_modules/parse-svg-path/index.js"(e,t){t.exports=function(e){var t=[];return e.replace(r,(function(e,r,o){var a=r.toLowerCase();for(o=function(e){var t=e.match(i);return t?t.map(Number):[]}(o),"m"==a&&o.length>2&&(t.push([r].concat(o.splice(0,2))),a="l",r="m"==r?"l":"L");;){if(o.length==n[a])return o.unshift(r),t.push(o);if(o.length<n[a])throw new Error("malformed path data");t.push([r].concat(o.splice(0,n[a])))}})),t};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=/([astvzqmhlc])([^astvzqmhlc]*)/gi,i=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi}}),ss=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/svg/SVGToGraphicsPath.mjs"(){ts=ee(as(),1),Ot()}}),ls=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/maths/shapes/Circle.mjs"(){St(),ns=class e{clone(){return new e(this.x,this.y,this.radius)}contains(e,t){if(this.radius<=0)return!1;const n=this.radius*this.radius;let r=this.x-e,i=this.y-t;return r*=r,i*=i,r+i<=n}strokeContains(e,t,n){if(0===this.radius)return!1;const r=this.x-e,i=this.y-t,o=this.radius,a=n/2,s=Math.sqrt(r*r+i*i);return s<o+a&&s>o-a}getBounds(e){return(e=e||new ut).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}]`}constructor(e=0,t=0,n=0){this.type="circle",this.x=e,this.y=t,this.radius=n}}}}),us=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/maths/shapes/Ellipse.mjs"(){St(),rs=class e{clone(){return new e(this.x,this.y,this.halfWidth,this.halfHeight)}contains(e,t){if(this.halfWidth<=0||this.halfHeight<=0)return!1;let n=(e-this.x)/this.halfWidth,r=(t-this.y)/this.halfHeight;return n*=n,r*=r,n+r<=1}strokeContains(e,t,n){const{halfWidth:r,halfHeight:i}=this;if(r<=0||i<=0)return!1;const o=n/2,a=r-o,s=i-o,l=r+o,u=i+o,c=e-this.x,d=t-this.y;return c*c/(a*a)+d*d/(s*s)>1&&c*c/(l*l)+d*d/(u*u)<=1}getBounds(){return new ut(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}]`}constructor(e=0,t=0,n=0,r=0){this.type="ellipse",this.x=e,this.y=t,this.halfWidth=n,this.halfHeight=r}}}});function cs(e,t,n,r,i,o){const a=i-n,s=o-r,l=a*a+s*s;let u,c,d=-1;0!==l&&(d=((e-n)*a+(t-r)*s)/l),d<0?(u=n,c=r):d>1?(u=i,c=o):(u=n+d*a,c=r+d*s);const f=e-u,p=t-c;return f*f+p*p}var ds,fs,ps,hs,ms,As,gs,vs,ys,bs=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/maths/misc/squaredDistanceToLineSegment.mjs"(){}}),xs=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/maths/shapes/Polygon.mjs"(){bs(),St(),ds=class e{clone(){const t=this.points.slice(),n=new e(t);return n.closePath=this.closePath,n}contains(e,t){let n=!1;const r=this.points.length/2;for(let i=0,o=r-1;i<r;o=i++){const r=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-r)+r&&(n=!n)}return n}strokeContains(e,t,n){const r=n/2,i=r*r,{points:o}=this,a=o.length-(this.closePath?0:2);for(let s=0;s<a;s+=2)if(cs(e,t,o[s],o[s+1],o[(s+2)%o.length],o[(s+3)%o.length])<=i)return!0;return!1}getBounds(e){e=e||new ut;const t=this.points;let n=1/0,r=-1/0,i=1/0,o=-1/0;for(let a=0,s=t.length;a<s;a+=2){const e=t[a],s=t[a+1];n=e<n?e:n,r=e>r?e:r,i=s<i?s:i,o=s>o?s:o}return e.x=n,e.width=r-n,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]}constructor(...e){this.type="polygon";let t=Array.isArray(e[0])?e[0]:e;if("number"!=typeof t[0]){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(t[n].x,t[n].y);t=e}this.points=t,this.closePath=!0}}}}),Ss=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/maths/shapes/RoundedRectangle.mjs"(){St(),fs=(e,t,n,r,i,o)=>{const a=e-n,s=t-r,l=Math.sqrt(a*a+s*s);return l>=i-o&&l<=i+o},ps=class e{getBounds(e){return(e=e||new ut).x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e}clone(){return new e(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){const n=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(t>=this.y+n&&t<=this.y+this.height-n||e>=this.x+n&&e<=this.x+this.width-n)return!0;let r=e-(this.x+n),i=t-(this.y+n);const o=n*n;if(r*r+i*i<=o)return!0;if(r=e-(this.x+this.width-n),r*r+i*i<=o)return!0;if(i=t-(this.y+this.height-n),r*r+i*i<=o)return!0;if(r=e-(this.x+n),r*r+i*i<=o)return!0}return!1}strokeContains(e,t,n){const{x:r,y:i,width:o,height:a,radius:s}=this,l=n/2,u=r+s,c=i+s,d=r+o,f=i+a;return(e>=r-l&&e<=r+l||e>=d-l&&e<=d+l)&&t>=c&&t<=c+(a-2*s)||(t>=i-l&&t<=i+l||t>=f-l&&t<=f+l)&&e>=u&&e<=u+(o-2*s)||e<u&&t<c&&fs(e,t,u,c,s,l)||e>d-s&&t<c&&fs(e,t,d-s,c,s,l)||e>d-s&&t>f-s&&fs(e,t,d-s,f-s,s,l)||e<u&&t>f-s&&fs(e,t,u,f-s,s,l)}toString(){return`[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}constructor(e=0,t=0,n=0,r=0,i=20){this.type="roundedRectangle",this.x=e,this.y=t,this.width=n,this.height=r,this.radius=i}}}});function _s(e,t,n,r,i,o,a,s,l,u){const c=Math.min(.99,Math.max(0,null!=u?u:Aa.defaultOptions.bezierSmoothness));let d=(As-c)/1;return d*=d,function(e,t,n,r,i,o,a,s,l,u){ws(e,t,n,r,i,o,a,s,l,u,0),l.push(a,s)}(t,n,r,i,o,a,s,l,e,d),e}function ws(e,t,n,r,i,o,a,s,l,u,c){if(c>hs)return;const d=Math.PI,f=(e+n)/2,p=(t+r)/2,h=(n+i)/2,m=(r+o)/2,A=(i+a)/2,g=(o+s)/2,v=(f+h)/2,y=(p+m)/2,b=(h+A)/2,x=(m+g)/2,S=(v+b)/2,_=(y+x)/2;if(c>0){let c=a-e,f=s-t;const p=Math.abs((n-a)*f-(r-s)*c),h=Math.abs((i-a)*f-(o-s)*c);let m,A;if(p>ms&&h>ms){if((p+h)*(p+h)<=u*(c*c+f*f)){if(vs<gs)return void l.push(S,_);const u=Math.atan2(o-r,i-n);if(m=Math.abs(u-Math.atan2(r-t,n-e)),A=Math.abs(Math.atan2(s-o,a-i)-u),m>=d&&(m=2*d-m),A>=d&&(A=2*d-A),m+A<vs)return void l.push(S,_);if(0!==ys){if(m>ys)return void l.push(n,r);if(A>ys)return void l.push(i,o)}}}else if(p>ms){if(p*p<=u*(c*c+f*f)){if(vs<gs)return void l.push(S,_);if(m=Math.abs(Math.atan2(o-r,i-n)-Math.atan2(r-t,n-e)),m>=d&&(m=2*d-m),m<vs)return l.push(n,r),void l.push(i,o);if(0!==ys&&m>ys)return void l.push(n,r)}}else if(h>ms){if(h*h<=u*(c*c+f*f)){if(vs<gs)return void l.push(S,_);if(m=Math.abs(Math.atan2(s-o,a-i)-Math.atan2(o-r,i-n)),m>=d&&(m=2*d-m),m<vs)return l.push(n,r),void l.push(i,o);if(0!==ys&&m>ys)return void l.push(i,o)}}else if(c=S-(e+a)/2,f=_-(t+s)/2,c*c+f*f<=u)return void l.push(S,_)}ws(e,t,f,p,v,y,S,_,l,u,c+1),ws(S,_,b,x,A,g,a,s,l,u,c+1)}var Es,Cs,Ts,Ps,ks,Rs=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/buildCommands/buildAdaptiveBezier.mjs"(){xa(),hs=8,ms=1.1920929e-7,As=1,gs=.01,vs=0,ys=0}});function Is(e,t,n,r,i,o,a,s){const l=Math.min(.99,Math.max(0,null!=s?s:Aa.defaultOptions.bezierSmoothness));let u=(Ts-l)/1;return u*=u,function(e,t,n,r,i,o,a,s){Os(a,e,t,n,r,i,o,s,0),a.push(i,o)}(t,n,r,i,o,a,e,u),e}function Os(e,t,n,r,i,o,a,s,l){if(l>Es)return;const u=Math.PI,c=(t+r)/2,d=(n+i)/2,f=(r+o)/2,p=(i+a)/2,h=(c+f)/2,m=(d+p)/2;let A=o-t,g=a-n;const v=Math.abs((r-o)*g-(i-a)*A);if(v>Cs){if(v*v<=s*(A*A+g*g)){if(ks<Ps)return void e.push(h,m);let s=Math.abs(Math.atan2(a-i,o-r)-Math.atan2(i-n,r-t));if(s>=u&&(s=2*u-s),s<ks)return void e.push(h,m)}}else if(A=h-(t+o)/2,g=m-(n+a)/2,A*A+g*g<=s)return void e.push(h,m);Os(e,t,n,c,d,h,m,s,l+1),Os(e,h,m,f,p,o,a,s,l+1)}var Ms=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/buildCommands/buildAdaptiveQuadratic.mjs"(){xa(),Es=8,Cs=1.1920929e-7,Ts=1,Ps=.01,ks=0}});function js(e,t,n,r,i,o,a,s){let l=Math.abs(i-o);(!a&&i>o||a&&o>i)&&(l=2*Math.PI-l),s=s||Math.max(6,Math.floor(6*Math.pow(r,1/3)*(l/Math.PI)));let u=l/(s=Math.max(s,3)),c=i;u*=a?-1:1;for(let d=0;d<s+1;d++){const i=t+Math.cos(c)*r,o=n+Math.sin(c)*r;e.push(i,o),c+=u}}var zs,Bs,Fs,Ds,Ls,Ns=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/buildCommands/buildArc.mjs"(){}}),Us=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/buildCommands/buildArcTo.mjs"(){Ns()}});function Gs(e,t){const n=-1.5707963267948966===t?-.551915024494:4/3*Math.tan(t/4),r=1.5707963267948966===t?.551915024494:n,i=Math.cos(e),o=Math.sin(e),a=Math.cos(e+t),s=Math.sin(e+t);return[{x:i-o*r,y:o+i*r},{x:a+s*r,y:s-a*r},{x:a,y:s}]}var Hs,Ws,Vs,Xs=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/buildCommands/buildArcToSvg.mjs"(){Rs(),zs=2*Math.PI,Bs={centerX:0,centerY:0,ang1:0,ang2:0},Fs=({x:e,y:t},n,r,i,o,a,s,l)=>{const u=i*(e*=n)-o*(t*=r),c=o*e+i*t;return l.x=u+a,l.y=c+s,l},Ds=(e,t,n,r)=>{let i=e*n+t*r;return i>1&&(i=1),i<-1&&(i=-1),(e*r-t*n<0?-1:1)*Math.acos(i)},Ls=(e,t,n,r,i,o,a,s,l,u,c,d,f)=>{const p=Math.pow(i,2),h=Math.pow(o,2),m=Math.pow(c,2),A=Math.pow(d,2);let g=p*h-p*A-h*m;g<0&&(g=0),g/=p*A+h*m,g=Math.sqrt(g)*(a===s?-1:1);const v=g*i/o*d,y=g*-o/i*c,b=u*v-l*y+(e+n)/2,x=l*v+u*y+(t+r)/2,S=(c-v)/i,_=(d-y)/o,w=(-c-v)/i,E=(-d-y)/o,C=Ds(1,0,S,_);let T=Ds(S,_,w,E);0===s&&T>0&&(T-=zs),1===s&&T<0&&(T+=zs),f.centerX=b,f.centerY=x,f.ang1=C,f.ang2=T}}}),Ks=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/path/roundShape.mjs"(){}}),qs=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/path/ShapePath.mjs"(){ls(),us(),xs(),St(),Ss(),_t(),Rs(),Ms(),Ns(),Us(),Xs(),Ks(),Hs=new ut,Ws=class{moveTo(e,t){return this.startPoly(e,t),this}lineTo(e,t){this._ensurePoly();const n=this._currentPoly.points,r=n[n.length-2],i=n[n.length-1];return r===e&&i===t||n.push(e,t),this}arc(e,t,n,r,i,o){return this._ensurePoly(!1),js(this._currentPoly.points,e,t,n,r,i,o),this}arcTo(e,t,n,r,i){return this._ensurePoly(),function(e,t,n,r,i,o){const a=e[e.length-2],s=e[e.length-1]-n,l=a-t,u=i-n,c=r-t,d=Math.abs(s*c-l*u);if(d<1e-8||0===o)return void(e[e.length-2]===t&&e[e.length-1]===n||e.push(t,n));const f=s*s+l*l,p=u*u+c*c,h=s*u+l*c,m=o*Math.sqrt(f)/d,A=o*Math.sqrt(p)/d,g=m*h/f,v=A*h/p,y=m*c+A*l,b=m*u+A*s,x=l*(A+g),S=s*(A+g),_=c*(m+v),w=u*(m+v);js(e,y+t,b+n,o,Math.atan2(S-b,x-y),Math.atan2(w-b,_-y),l*u>c*s)}(this._currentPoly.points,e,t,n,r,i),this}arcToSvg(e,t,n,r,i,o,a){return function(e,t,n,r,i,o,a,s=0,l=0,u=0){if(0===o||0===a)return;const c=Math.sin(s*zs/360),d=Math.cos(s*zs/360),f=d*(t-r)/2+c*(n-i)/2,p=-c*(t-r)/2+d*(n-i)/2;if(0===f&&0===p)return;o=Math.abs(o),a=Math.abs(a);const h=Math.pow(f,2)/Math.pow(o,2)+Math.pow(p,2)/Math.pow(a,2);h>1&&(o*=Math.sqrt(h),a*=Math.sqrt(h)),Ls(t,n,r,i,o,a,l,u,c,d,f,p,Bs);let{ang1:m,ang2:A}=Bs;const{centerX:g,centerY:v}=Bs;let y=Math.abs(A)/(zs/4);Math.abs(1-y)<1e-7&&(y=1);const b=Math.max(Math.ceil(y),1);A/=b;let x=e[e.length-2],S=e[e.length-1];const _={x:0,y:0};for(let w=0;w<b;w++){const t=Gs(m,A),{x:n,y:r}=Fs(t[0],o,a,d,c,g,v,_),{x:i,y:s}=Fs(t[1],o,a,d,c,g,v,_),{x:l,y:u}=Fs(t[2],o,a,d,c,g,v,_);_s(e,x,S,n,r,i,s,l,u),x=l,S=u,m+=A}}(this._currentPoly.points,this._currentPoly.lastX,this._currentPoly.lastY,o,a,e,t,n,r,i),this}bezierCurveTo(e,t,n,r,i,o,a){this._ensurePoly();const s=this._currentPoly;return _s(this._currentPoly.points,s.lastX,s.lastY,e,t,n,r,i,o,a),this}quadraticCurveTo(e,t,n,r,i){this._ensurePoly();const o=this._currentPoly;return Is(this._currentPoly.points,o.lastX,o.lastY,e,t,n,r,i),this}closePath(){return this.endPoly(!0),this}addPath(e,t){this.endPoly(),t&&!t.isIdentity()&&(e=e.clone(!0)).transform(t);for(let n=0;n<e.instructions.length;n++){const t=e.instructions[n];this[t.action](...t.data)}return this}finish(e=!1){this.endPoly(e)}rect(e,t,n,r,i){return this.drawShape(new ut(e,t,n,r),i),this}circle(e,t,n,r){return this.drawShape(new ns(e,t,n),r),this}poly(e,t,n){const r=new ds(e);return r.closePath=t,this.drawShape(r,n),this}regularPoly(e,t,n,r,i=0,o){r=Math.max(0|r,3);const a=-1*Math.PI/2+i,s=2*Math.PI/r,l=[];for(let u=0;u<r;u++){const r=u*s+a;l.push(e+n*Math.cos(r),t+n*Math.sin(r))}return this.poly(l,!0,o),this}roundPoly(e,t,n,r,i,o=0,a){if(r=Math.max(0|r,3),i<=0)return this.regularPoly(e,t,n,r,o);const s=n*Math.sin(Math.PI/r)-.001;i=Math.min(i,s);const l=-1*Math.PI/2+o,u=2*Math.PI/r,c=(r-2)*Math.PI/r/2;for(let d=0;d<r;d++){const r=d*u+l,o=e+n*Math.cos(r),s=t+n*Math.sin(r),f=r+Math.PI+c,p=r-Math.PI-c,h=o+i*Math.cos(f),m=s+i*Math.sin(f),A=o+i*Math.cos(p),g=s+i*Math.sin(p);0===d?this.moveTo(h,m):this.lineTo(h,m),this.quadraticCurveTo(o,s,A,g,a)}return this.closePath()}roundShape(e,t,n=!1,r){return e.length<3?this:(n?function(e,t,n,r){var i;const o=(e,t)=>Math.sqrt(X(e.x-t.x,2)+X(e.y-t.y,2)),a=(e,t,n)=>({x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}),s=t.length;for(let l=0;l<s;l++){const u=t[(l+1)%s],c=null!=(i=u.radius)?i:n;if(c<=0){0===l?e.moveTo(u.x,u.y):e.lineTo(u.x,u.y);continue}const d=t[l],f=t[(l+2)%s],p=o(d,u);let h;h=p<1e-4?u:a(u,d,Math.min(p/2,c)/p);const m=o(f,u);let A;A=m<1e-4?u:a(u,f,Math.min(m/2,c)/m),0===l?e.moveTo(h.x,h.y):e.lineTo(h.x,h.y),e.quadraticCurveTo(u.x,u.y,A.x,A.y,r)}}(this,e,t,r):function(e,t,n){var r;const i=(e,t)=>{const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);return{len:i,nx:n/i,ny:r/i}},o=(t,n)=>{0===t?e.moveTo(n.x,n.y):e.lineTo(n.x,n.y)};let a=t[t.length-1];for(let s=0;s<t.length;s++){const l=t[s%t.length],u=null!=(r=l.radius)?r:n;if(u<=0){o(s,l),a=l;continue}const c=t[(s+1)%t.length],d=i(l,a),f=i(l,c);if(d.len<1e-4||f.len<1e-4){o(s,l),a=l;continue}let p=Math.asin(d.nx*f.ny-d.ny*f.nx),h=1,m=!1;d.nx*f.nx-d.ny*-f.ny<0?p<0?p=Math.PI+p:(p=Math.PI-p,h=-1,m=!0):p>0&&(h=-1,m=!0);const A=p/2;let g,v=Math.abs(Math.cos(A)*u/Math.sin(A));v>Math.min(d.len/2,f.len/2)?(v=Math.min(d.len/2,f.len/2),g=Math.abs(v*Math.sin(A)/Math.cos(A))):g=u;const y=l.x+f.nx*v+-f.ny*g*h,b=l.y+f.ny*v+f.nx*g*h,x=Math.atan2(d.ny,d.nx)+Math.PI/2*h,S=Math.atan2(f.ny,f.nx)-Math.PI/2*h;0===s&&e.moveTo(y+Math.cos(x)*g,b+Math.sin(x)*g),e.arc(y,b,g,x,S,m),a=l}}(this,e,t),this.closePath())}filletRect(e,t,n,r,i){if(0===i)return this.rect(e,t,n,r);const o=Math.min(n,r)/2,a=Math.min(o,Math.max(-o,i)),s=e+n,l=t+r,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+n-c,l,c).lineTo(e+c,l).arcTo(e+u,l-u,e,l-c,c).closePath()}chamferRect(e,t,n,r,i,o){if(i<=0)return this.rect(e,t,n,r);const a=Math.min(i,Math.min(n,r)/2),s=e+n,l=t+r,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 c=u.length-1;c>=2;c-=2)u[c]===u[c-2]&&u[c-1]===u[c-3]&&u.splice(c-1,2);return this.poly(u,!0,o)}ellipse(e,t,n,r,i){return this.drawShape(new rs(e,t,n,r),i),this}roundRect(e,t,n,r,i,o){return this.drawShape(new ps(e,t,n,r,i),o),this}drawShape(e,t){return this.endPoly(),this.shapePrimitives.push({shape:e,transform:t}),this}startPoly(e,t){let n=this._currentPoly;return n&&this.endPoly(),n=new ds,n.points.push(e,t),this._currentPoly=n,this}endPoly(e=!1){const 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 ds,e)){const e=this.shapePrimitives[this.shapePrimitives.length-1];if(e){let t=e.shape.x,n=e.shape.y;if(!e.transform.isIdentity()){const r=e.transform,i=t;t=r.a*t+r.c*n+r.tx,n=r.b*i+r.d*n+r.ty}this._currentPoly.points.push(t,n)}else this._currentPoly.points.push(0,0)}}buildPath(){const e=this._graphicsPath2D;this.shapePrimitives.length=0,this._currentPoly=null;for(let t=0;t<e.instructions.length;t++){const n=e.instructions[t];this[n.action](...n.data)}this.finish()}get bounds(){const e=this._bounds;e.clear();const t=this.shapePrimitives;for(let n=0;n<t.length;n++){const r=t[n],i=r.shape.getBounds(Hs);r.transform?e.addRect(i,r.transform):e.addRect(i)}return e}constructor(e){this.shapePrimitives=[],this._currentPoly=null,this._bounds=new dt,this._graphicsPath2D=e}}}});function Qs(e,t){return e?e.prepend(t):t.clone()}var Ys=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/path/GraphicsPath.mjs"(){Ve(),Ze(),Ot(),ss(),qs(),Vs=class e{get shapePath(){return this._shapePath||(this._shapePath=new Ws(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,n,r,i){const o=this.instructions[this.instructions.length-1],a=this.getLastPoint(je.shared);let s=0,l=0;if(o&&"bezierCurveTo"===o.action){s=o.data[2],l=o.data[3];const e=a.x,t=a.y;s=e+(e-s),l=t+(t-l)}else s=a.x,l=a.y;return this.instructions.push({action:"bezierCurveTo",data:[s,l,e,t,n,r,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,n){const r=this.instructions[this.instructions.length-1],i=this.getLastPoint(je.shared);let o=0,a=0;if(r&&"quadraticCurveTo"===r.action){o=r.data[0],a=r.data[1];const e=i.x,t=i.y;o=e+(e-o),a=t+(t-a)}else o=i.x,a=i.y;return this.instructions.push({action:"quadraticCurveTo",data:[o,a,e,t,n]}),this._dirty=!0,this}rect(e,t,n,r,i){return this.instructions.push({action:"rect",data:[e,t,n,r,i]}),this._dirty=!0,this}circle(e,t,n,r){return this.instructions.push({action:"circle",data:[e,t,n,r]}),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,n,r,i,o,a){i=i||r/2;const s=-1*Math.PI/2+o,l=2*n,u=2*Math.PI/l,c=[];for(let d=0;d<l;d++){const n=d%2?i:r,o=d*u+s;c.push(e+n*Math.cos(o),t+n*Math.sin(o))}return this.poly(c,!0,a),this}clone(t=!1){const n=new e;if(t)for(let e=0;e<this.instructions.length;e++){const t=this.instructions[e];n.instructions.push({action:t.action,data:t.data.slice()})}else n.instructions=this.instructions.slice();return n}clear(){return this.instructions.length=0,this._dirty=!0,this}transform(e){if(e.isIdentity())return this;const t=e.a,n=e.b,r=e.c,i=e.d,o=e.tx,a=e.ty;let s=0,l=0,u=0,c=0,d=0,f=0,p=0,h=0;for(let m=0;m<this.instructions.length;m++){const A=this.instructions[m],g=A.data;switch(A.action){case"moveTo":case"lineTo":s=g[0],l=g[1],g[0]=t*s+r*l+o,g[1]=n*s+i*l+a;break;case"bezierCurveTo":u=g[0],c=g[1],d=g[2],f=g[3],s=g[4],l=g[5],g[0]=t*u+r*c+o,g[1]=n*u+i*c+a,g[2]=t*d+r*f+o,g[3]=n*d+i*f+a,g[4]=t*s+r*l+o,g[5]=n*s+i*l+a;break;case"quadraticCurveTo":u=g[0],c=g[1],s=g[2],l=g[3],g[0]=t*u+r*c+o,g[1]=n*u+i*c+a,g[2]=t*s+r*l+o,g[3]=n*s+i*l+a;break;case"arcToSvg":s=g[5],l=g[6],p=g[0],h=g[1],g[0]=t*p+r*h,g[1]=n*p+i*h,g[5]=t*s+r*l+o,g[6]=n*s+i*l+a;break;case"circle":g[4]=Qs(g[3],e);break;case"rect":g[4]=Qs(g[4],e);break;case"ellipse":g[8]=Qs(g[8],e);break;case"roundRect":g[5]=Qs(g[5],e);break;case"addPath":g[0].transform(e);break;case"poly":g[2]=Qs(g[2],e);break;default:It("unknown transform action",A.action)}}return this._dirty=!0,this}get bounds(){return this.shapePath.bounds}getLastPoint(e){let t=this.instructions.length-1,n=this.instructions[t];if(!n)return e.x=0,e.y=0,e;for(;"closePath"===n.action;){if(t--,t<0)return e.x=0,e.y=0,e;n=this.instructions[t]}switch(n.action){case"moveTo":case"lineTo":e.x=n.data[0],e.y=n.data[1];break;case"quadraticCurveTo":e.x=n.data[2],e.y=n.data[3];break;case"bezierCurveTo":e.x=n.data[4],e.y=n.data[5];break;case"arc":case"arcToSvg":e.x=n.data[5],e.y=n.data[6];break;case"addPath":n.data[0].getLastPoint(e)}return e}constructor(e){var t;this.instructions=[],this.uid=qe("graphicsPath"),this._dirty=!0,"string"==typeof e?function(e,t){const n=(0,ts.default)(e),r=[];let i=null,o=0,a=0;for(let s=0;s<n.length;s++){const e=n[s],l=e[0],u=e;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(),r.length>0&&(i=r.pop(),i?(o=i.startX,a=i.startY):(o=0,a=0)),i=null;break;default:It(`Unknown SVG path command: ${l}`)}"Z"!==l&&"z"!==l&&null===i&&(i={startX:o,startY:a},r.push(i))}}(e,this):this.instructions=null!=(t=null==e?void 0:e.slice())?t:[]}}}});function Zs(e,t){if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e.trim(),e=t.querySelector("svg")}return $s(e,{context:t,path:new Vs},null,null),t}function $s(e,t,n,r){const i=e.children,{fillStyle:o,strokeStyle:a}=function(e){const t=e.getAttribute("style"),n={},r={};let i=!1,o=!1;if(t){const e=t.split(";");for(let t=0;t<e.length;t++){const a=e[t],[s,l]=a.split(":");switch(s){case"stroke":"none"!==l&&(n.color=ke.shared.setValue(l).toNumber(),o=!0);break;case"stroke-width":n.width=Number(l);break;case"fill":"none"!==l&&(i=!0,r.color=ke.shared.setValue(l).toNumber());break;case"fill-opacity":r.alpha=Number(l);break;case"stroke-opacity":n.alpha=Number(l);break;case"opacity":r.alpha=Number(l),n.alpha=Number(l)}}}else{const t=e.getAttribute("stroke");t&&"none"!==t&&(o=!0,n.color=ke.shared.setValue(t).toNumber(),n.width=Js(e,"stroke-width",1));const a=e.getAttribute("fill");a&&"none"!==a&&(i=!0,r.color=ke.shared.setValue(a).toNumber())}return{strokeStyle:o?n:null,fillStyle:i?r:null}}(e);let s,l,u,c,d,f,p,h,m,A,g,v,y,b,x,S,_;switch(o&&n?n=q(q({},n),o):o&&(n=o),a&&r?r=q(q({},r),a):a&&(r=a),t.context.fillStyle=n,t.context.strokeStyle=r,e.nodeName.toLowerCase()){case"path":b=e.getAttribute("d"),x=new Vs(b),t.context.path(x),n&&t.context.fill(),r&&t.context.stroke();break;case"circle":p=Js(e,"cx",0),h=Js(e,"cy",0),m=Js(e,"r",0),t.context.ellipse(p,h,m,m),n&&t.context.fill(),r&&t.context.stroke();break;case"rect":s=Js(e,"x",0),l=Js(e,"y",0),S=Js(e,"width",0),_=Js(e,"height",0),A=Js(e,"rx",0),g=Js(e,"ry",0),A||g?t.context.roundRect(s,l,S,_,A||g):t.context.rect(s,l,S,_),n&&t.context.fill(),r&&t.context.stroke();break;case"ellipse":p=Js(e,"cx",0),h=Js(e,"cy",0),A=Js(e,"rx",0),g=Js(e,"ry",0),t.context.beginPath(),t.context.ellipse(p,h,A,g),n&&t.context.fill(),r&&t.context.stroke();break;case"line":u=Js(e,"x1",0),c=Js(e,"y1",0),d=Js(e,"x2",0),f=Js(e,"y2",0),t.context.beginPath(),t.context.moveTo(u,c),t.context.lineTo(d,f),r&&t.context.stroke();break;case"polygon":y=e.getAttribute("points"),v=y.match(/\d+/g).map((e=>parseInt(e,10))),t.context.poly(v,!0),n&&t.context.fill(),r&&t.context.stroke();break;case"polyline":y=e.getAttribute("points"),v=y.match(/\d+/g).map((e=>parseInt(e,10))),t.context.poly(v,!1),r&&t.context.stroke();break;case"g":case"svg":break;default:console.info(`[SVG parser] <${e.nodeName}> elements unsupported`)}for(let w=0;w<i.length;w++)$s(i[w],t,n,r)}function Js(e,t,n){const r=e.getAttribute(t);return r?Number(r):n}var el,tl,nl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/svg/SVGParser.mjs"(){Ge(),Ys()}}),rl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/fill/FillPattern.mjs"(){Xe(),Ze(),el={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"}},tl=class{setTransform(e){const t=this.texture;this.transform.copyFrom(e),this.transform.invert(),this.transform.scale(1/t.frame.width,1/t.frame.height)}constructor(e,t){this.uid=qe("fillPattern"),this.transform=new Be,this.texture=e,this.transform.scale(1/e.frame.width,1/e.frame.height),t&&(e.source.style.addressModeU=el[t].addressModeU,e.source.style.addressModeV=el[t].addressModeV)}}}});function il(e,t){var n,r;if(null==e)return null;let i,o;if((null==e?void 0:e.fill)?(o=e.fill,i=q(q({},t),e)):(o=e,i=t),ke.isColorLike(o)){const e=ke.shared.setValue(null!=o?o:0);return Q(q({},i),{color:e.toNumber(),alpha:1===e.alpha?i.alpha:e.alpha,texture:ii.WHITE})}if(o instanceof tl){const e=o;return Q(q({},i),{color:16777215,texture:e.texture,matrix:e.transform,fill:null!=(n=i.fill)?n:null})}if(o instanceof es){const e=o;return e.buildLinearGradient(),Q(q({},i),{color:16777215,texture:e.texture,matrix:e.transform})}const a=q(q({},t),e);if(a.texture){if(a.texture!==ii.WHITE){const e=(null==(r=a.matrix)?void 0:r.invert())||new Be;e.scale(1/a.texture.frame.width,1/a.texture.frame.height),a.matrix=e}const e=a.texture.source.style;"clamp-to-edge"===e.addressMode&&(e.addressMode="repeat")}const s=ke.shared.setValue(a.color);return a.alpha*=s.alpha,a.color=s.toNumber(),a.matrix=a.matrix?a.matrix.clone():null,a}var ol,al,sl,ll,ul,cl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/utils/convertFillInputToFillStyle.mjs"(){Ge(),Xe(),mi(),os(),rl()}}),dl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/GraphicsContext.mjs"(){Ee(),Ge(),Xe(),Ve(),mi(),Ze(),Je(),_t(),Ys(),nl(),cl(),ol=new je,al=new Be,sl=class e extends a{clone(){const 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=q({},this._fillStyle),t._strokeStyle=q({},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=il(t,e.defaultFillStyle)}get strokeStyle(){return this._strokeStyle}set strokeStyle(t){this._strokeStyle=il(t,e.defaultStrokeStyle)}setFillStyle(t){return this._fillStyle=il(t,e.defaultFillStyle),this}setStrokeStyle(t){return this._strokeStyle=il(t,e.defaultStrokeStyle),this}texture(e,t,n,r,i,o){return this.instructions.push({action:"texture",data:{image:e,dx:n||0,dy:r||0,dw:i||e.frame.width,dh:o||e.frame.height,transform:this._transform.clone(),alpha:this._fillStyle.alpha,style:t?ke.shared.setValue(t).toNumber():16777215}}),this.onUpdate(),this}beginPath(){return this._activePath=new Vs,this}fill(t,n){let r;const i=this.instructions[this.instructions.length-1];return r=0===this._tick&&i&&"stroke"===i.action?i.data.path:this._activePath.clone(),r?(null!=t&&(void 0!==n&&"number"==typeof t&&($e(Ye,"GraphicsContext.fill(color, alpha) is deprecated, use GraphicsContext.fill({ color, alpha }) instead"),t={color:t,alpha:n}),this._fillStyle=il(t,e.defaultFillStyle)),this.instructions.push({action:"fill",data:{style:this.fillStyle,path:r}}),this.onUpdate(),this._initNextPathLocation(),this._tick=0,this):this}_initNextPathLocation(){const{x:e,y:t}=this._activePath.getLastPoint(je.shared);this._activePath.clear(),this._activePath.moveTo(e,t)}stroke(t){let n;const r=this.instructions[this.instructions.length-1];return n=0===this._tick&&r&&"fill"===r.action?r.data.path:this._activePath.clone(),n?(null!=t&&(this._strokeStyle=il(t,e.defaultStrokeStyle)),this.instructions.push({action:"stroke",data:{style:this.strokeStyle,path:n}}),this.onUpdate(),this._initNextPathLocation(),this._tick=0,this):this}cut(){for(let e=0;e<2;e++){const t=this.instructions[this.instructions.length-1-e],n=this._activePath.clone();if(t&&("stroke"===t.action||"fill"===t.action)){if(!t.data.hole){t.data.hole=n;break}t.data.hole.addPath(n)}}return this._initNextPathLocation(),this}arc(e,t,n,r,i,o){this._tick++;const a=this._transform;return this._activePath.arc(a.a*e+a.c*t+a.tx,a.b*e+a.d*t+a.ty,n,r,i,o),this}arcTo(e,t,n,r,i){this._tick++;const 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*n+o.c*r+o.tx,o.b*n+o.d*r+o.ty,i),this}arcToSvg(e,t,n,r,i,o,a){this._tick++;const s=this._transform;return this._activePath.arcToSvg(e,t,n,r,i,s.a*o+s.c*a+s.tx,s.b*o+s.d*a+s.ty),this}bezierCurveTo(e,t,n,r,i,o,a){this._tick++;const 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*n+s.c*r+s.tx,s.b*n+s.d*r+s.ty,s.a*i+s.c*o+s.tx,s.b*i+s.d*o+s.ty,a),this}closePath(){var e;return this._tick++,null==(e=this._activePath)||e.closePath(),this}ellipse(e,t,n,r){return this._tick++,this._activePath.ellipse(e,t,n,r,this._transform.clone()),this}circle(e,t,n){return this._tick++,this._activePath.circle(e,t,n,this._transform.clone()),this}path(e){return this._tick++,this._activePath.addPath(e,this._transform.clone()),this}lineTo(e,t){this._tick++;const n=this._transform;return this._activePath.lineTo(n.a*e+n.c*t+n.tx,n.b*e+n.d*t+n.ty),this}moveTo(e,t){this._tick++;const n=this._transform,r=this._activePath.instructions,i=n.a*e+n.c*t+n.tx,o=n.b*e+n.d*t+n.ty;return 1===r.length&&"moveTo"===r[0].action?(r[0].data[0]=i,r[0].data[1]=o,this):(this._activePath.moveTo(i,o),this)}quadraticCurveTo(e,t,n,r,i){this._tick++;const 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*n+o.c*r+o.tx,o.b*n+o.d*r+o.ty,i),this}rect(e,t,n,r){return this._tick++,this._activePath.rect(e,t,n,r,this._transform.clone()),this}roundRect(e,t,n,r,i){return this._tick++,this._activePath.roundRect(e,t,n,r,i,this._transform.clone()),this}poly(e,t){return this._tick++,this._activePath.poly(e,t,this._transform.clone()),this}regularPoly(e,t,n,r,i=0,o){return this._tick++,this._activePath.regularPoly(e,t,n,r,i,o),this}roundPoly(e,t,n,r,i,o){return this._tick++,this._activePath.roundPoly(e,t,n,r,i,o),this}roundShape(e,t,n,r){return this._tick++,this._activePath.roundShape(e,t,n,r),this}filletRect(e,t,n,r,i){return this._tick++,this._activePath.filletRect(e,t,n,r,i),this}chamferRect(e,t,n,r,i,o){return this._tick++,this._activePath.chamferRect(e,t,n,r,i,o),this}star(e,t,n,r,i=0,o=0){return this._tick++,this._activePath.star(e,t,n,r,i,o,this._transform.clone()),this}svg(e){return this._tick++,Zs(e,this),this}restore(){const 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:q({},this._fillStyle),strokeStyle:q({},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,n,r,i,o){return e instanceof Be?(this._transform.set(e.a,e.b,e.c,e.d,e.tx,e.ty),this):(this._transform.set(e,t,n,r,i,o),this)}transform(e,t,n,r,i,o){return e instanceof Be?(this._transform.append(e),this):(al.set(e,t,n,r,i,o),this._transform.append(al),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;const e=this._bounds;e.clear();for(let t=0;t<this.instructions.length;t++){const n=this.instructions[t],r=n.action;if("fill"===r){const t=n.data;e.addBounds(t.path.bounds)}else if("texture"===r){const t=n.data;e.addFrame(t.dx,t.dy,t.dx+t.dw,t.dy+t.dh,t.transform)}if("stroke"===r){const t=n.data,r=t.style.width/2,i=t.path.bounds;e.addFrame(i.minX-r,i.minY-r,i.maxX+r,i.maxY+r)}}return e}containsPoint(e){var t;if(!this.bounds.containsPoint(e.x,e.y))return!1;const n=this.instructions;let r=!1;for(let i=0;i<n.length;i++){const o=n[i],a=o.data,s=a.path;if(!o.action||!s)continue;const l=a.style,u=s.shapePath.shapePrimitives;for(let n=0;n<u.length;n++){const i=u[n].shape;if(!l||!i)continue;const s=u[n].transform,c=s?s.applyInverse(e,ol):e;r="fill"===o.action?i.contains(c.x,c.y):i.strokeContains(c.x,c.y,l.width);const d=a.hole;if(d){const e=null==(t=d.shapePath)?void 0:t.shapePrimitives;if(e)for(let t=0;t<e.length;t++)e[t].shape.contains(c.x,c.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:null==e?void 0:e.texture){const t="boolean"==typeof e?e:null==e?void 0: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}constructor(){super(...arguments),this.uid=qe("graphicsContext"),this.dirty=!0,this.batchMode="auto",this.instructions=[],this._activePath=new Vs,this._transform=new Be,this._fillStyle=q({},e.defaultFillStyle),this._strokeStyle=q({},e.defaultStrokeStyle),this._stateStack=[],this._tick=0,this._bounds=new dt,this._boundsDirty=!0}},sl.defaultFillStyle={color:16777215,alpha:1,texture:ii.WHITE,matrix:null,fill:null},sl.defaultStrokeStyle={width:1,color:16777215,alpha:1,alignment:.5,miterLimit:10,cap:"butt",join:"miter",texture:ii.WHITE,matrix:null,fill:null},ll=sl}});function fl(e){const t=[];let n=0;for(let r=0;r<ul.length;r++){const i=ul[r];t[n++]=e[i]}return n=pl(e._fill,t,n),n=function(e,t,n){return e?(n=pl(e,t,n),t[n++]=e.width,t[n++]=e.alignment,t[n++]=e.cap,t[n++]=e.join,t[n++]=e.miterLimit,n):n}(e._stroke,t,n),t.join("-")}function pl(e,t,n){var r;return e?(t[n++]=e.color,t[n++]=e.alpha,t[n++]=null==(r=e.fill)?void 0:r.uid,n):n}var hl,ml,Al,gl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text/utils/generateTextStyleKey.mjs"(){ul=["_fontFamily","_fontStyle","_fontSize","_fontVariant","_fontWeight","_breakWords","_align","_leading","_letterSpacing","_lineHeight","_textBaseline","_whiteSpace","_wordWrap","_wordWrapWidth","_padding","_cssOverrides","_trim"]}}),vl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text/TextStyle.mjs"(){Ee(),Ge(),Je(),os(),dl(),cl(),gl(),(hl=class e extends a{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){this._dropShadow=null!==t&&"object"==typeof t?q(q({},e.defaultDropShadow),t):t?q({},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){this._fontSize="string"==typeof e?parseInt(e,10):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=il(0===e?"black":e,ll.defaultFillStyle),this.update())}get stroke(){return this._originalStroke}set stroke(e){e!==this._originalStroke&&(this._originalStroke=e,this._stroke=il(e,ll.defaultStrokeStyle),this.update())}_generateKey(){return this._styleKey=fl(this),this._styleKey}update(){this._styleKey=null,this.emit("update",this)}reset(){const t=e.defaultTextStyle;for(const 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){var t,n,r,i;if(this.removeAllListeners(),"boolean"==typeof e?e:null==e?void 0:e.texture){const o="boolean"==typeof e?e:null==e?void 0:e.textureSource;(null==(t=this._fill)?void 0:t.texture)&&this._fill.texture.destroy(o),(null==(n=this._originalFill)?void 0:n.texture)&&this._originalFill.texture.destroy(o),(null==(r=this._stroke)?void 0:r.texture)&&this._stroke.texture.destroy(o),(null==(i=this._originalStroke)?void 0:i.texture)&&this._originalStroke.texture.destroy(o)}this._fill=null,this._stroke=null,this.dropShadow=null,this._originalStroke=null,this._originalFill=null}constructor(t={}){super(),function(e){var t,n,r,i,o;const a=e;if("boolean"==typeof a.dropShadow&&a.dropShadow){const s=ml.defaultDropShadow;e.dropShadow={alpha:null!=(t=a.dropShadowAlpha)?t:s.alpha,angle:null!=(n=a.dropShadowAngle)?n:s.angle,blur:null!=(r=a.dropShadowBlur)?r:s.blur,color:null!=(i=a.dropShadowColor)?i:s.color,distance:null!=(o=a.dropShadowDistance)?o:s.distance}}if(void 0!==a.strokeThickness){$e(Ye,"strokeThickness is now a part of stroke");const t=a.stroke;e.stroke={color:t,width:a.strokeThickness}}if(Array.isArray(a.fill)){$e(Ye,"gradient fill is now a fill pattern: `new FillGradient(...)`");const t=new es(0,0,0,1.7*e.fontSize),n=a.fill.map((e=>ke.shared.setValue(e).toNumber()));n.forEach(((e,r)=>{var i;const o=null!=(i=a.fillGradientStops[r])?i:r/n.length;t.addColorStop(o,e)})),e.fill={fill:t}}}(t);const n=q(q({},e.defaultTextStyle),t);for(const e in n)this[e]=n[e];this.update()}}).defaultDropShadow={alpha:1,angle:Math.PI/6,blur:0,color:"black",distance:5},hl.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},ml=hl}});function yl(e,t,n,r){const i=Al;i.minX=0,i.minY=0,i.maxX=e.width/r|0,i.maxY=e.height/r|0;const o=Ua.getOptimalTexture(i.width,i.height,r,!1);return o.source.uploadMethodId="image",o.source.resource=e,o.source.alphaMode="premultiply-alpha-on-upload",o.frame.width=t/r,o.frame.height=n/r,o.source.emit("update",o.source),o.updateUvs(),o}var bl,xl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text/utils/getPo2TextureFromSource.mjs"(){Ya(),_t(),Al=new dt}});function Sl(e){const t="number"==typeof e.fontSize?`${e.fontSize}px`:e.fontSize;let n=e.fontFamily;Array.isArray(e.fontFamily)||(n=e.fontFamily.split(","));for(let r=n.length-1;r>=0;r--){let e=n[r].trim();/([\"\'])[^\'\"]+\1/.test(e)||bl.includes(e)||(e=`"${e}"`),n[r]=e}return`${e.fontStyle} ${e.fontVariant} ${e.fontWeight} ${t} ${n.join(",")}`}var _l,wl,El,Cl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text/canvas/utils/fontStringFromTextStyle.mjs"(){bl=["serif","sans-serif","monospace","cursive","fantasy","system-ui"]}}),Tl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text/canvas/CanvasTextMetrics.mjs"(){Sr(),Cl(),_l={willReadFrequently:!0},(wl=class e{static get experimentalLetterSpacingSupported(){let t=e._experimentalLetterSpacingSupported;if(void 0!==t){const n=$n.get().getCanvasRenderingContext2D().prototype;t=e._experimentalLetterSpacingSupported="letterSpacing"in n||"textLetterSpacing"in n}return t}static measureText(t=" ",n,r=e._canvas,i=n.wordWrap){var o;const a=`${t}:${n.styleKey}`;if(e._measurementCache[a])return e._measurementCache[a];const s=Sl(n),l=e.measureFont(s);0===l.fontSize&&(l.fontSize=n.fontSize,l.ascent=n.fontSize);const u=e.__context;u.font=s;const c=(i?e._wordWrap(t,n,r):t).split(/(?:\r\n|\r|\n)/),d=new Array(c.length);let f=0;for(let g=0;g<c.length;g++){const t=e._measureText(c[g],n.letterSpacing,u);d[g]=t,f=Math.max(f,t)}const p=(null==(o=n._stroke)?void 0:o.width)||0;let h=f+p;n.dropShadow&&(h+=n.dropShadow.distance);const m=n.lineHeight||l.fontSize+p;let A=Math.max(m,l.fontSize+2*p)+(c.length-1)*(m+n.leading);return n.dropShadow&&(A+=n.dropShadow.distance),new e(t,n,h,A,c,d,m+n.leading,f,l)}static _measureText(t,n,r){let i=!1;e.experimentalLetterSpacingSupported&&(e.experimentalLetterSpacing?(r.letterSpacing=`${n}px`,r.textLetterSpacing=`${n}px`,i=!0):(r.letterSpacing="0px",r.textLetterSpacing="0px"));let o=r.measureText(t).width;return o>0&&(i?o-=n:o+=(e.graphemeSegmenter(t).length-1)*n),o}static _wordWrap(t,n,r=e._canvas){const i=r.getContext("2d",_l);let o=0,a="",s="";const l=Object.create(null),{letterSpacing:u,whiteSpace:c}=n,d=e._collapseSpaces(c),f=e._collapseNewlines(c);let p=!d;const h=n.wordWrapWidth+u,m=e._tokenize(t);for(let A=0;A<m.length;A++){let t=m[A];if(e._isNewline(t)){if(!f){s+=e._addLine(a),p=!d,a="",o=0;continue}t=" "}if(d){const n=e.isBreakingSpace(t),r=e.isBreakingSpace(a[a.length-1]);if(n&&r)continue}const r=e._getFromCache(t,u,l,i);if(r>h)if(""!==a&&(s+=e._addLine(a),a="",o=0),e.canBreakWords(t,n.breakWords)){const r=e.wordWrapSplit(t);for(let c=0;c<r.length;c++){let d=r[c],f=d,m=1;for(;r[c+m];){const i=r[c+m];if(e.canBreakChars(f,i,t,c,n.breakWords))break;d+=i,f=i,m++}c+=m-1;const A=e._getFromCache(d,u,l,i);A+o>h&&(s+=e._addLine(a),p=!1,a="",o=0),a+=d,o+=A}}else{a.length>0&&(s+=e._addLine(a),a="",o=0);const n=A===m.length-1;s+=e._addLine(t,!n),p=!1,a="",o=0}else r+o>h&&(p=!1,s+=e._addLine(a),a="",o=0),(a.length>0||!e.isBreakingSpace(t)||p)&&(a+=t,o+=r)}return s+=e._addLine(a,!1),s}static _addLine(t,n=!0){return t=e._trimRight(t),t=n?`${t}\n`:t}static _getFromCache(t,n,r,i){let o=r[t];return"number"!=typeof o&&(o=e._measureText(t,n,i)+n,r[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 n=t.length-1;n>=0;n--){const r=t[n];if(!e.isBreakingSpace(r))break;t=t.slice(0,-1)}return t}static _isNewline(t){return"string"==typeof t&&e._newlines.includes(t.charCodeAt(0))}static isBreakingSpace(t,n){return"string"==typeof t&&e._breakingSpaces.includes(t.charCodeAt(0))}static _tokenize(t){const n=[];let r="";if("string"!=typeof t)return n;for(let i=0;i<t.length;i++){const o=t[i],a=t[i+1];e.isBreakingSpace(o,a)||e._isNewline(o)?(""!==r&&(n.push(r),r=""),n.push(o)):r+=o}return""!==r&&n.push(r),n}static canBreakWords(e,t){return t}static canBreakChars(e,t,n,r,i){return!0}static wordWrapSplit(t){return e.graphemeSegmenter(t)}static measureFont(t){if(e._fonts[t])return e._fonts[t];const n=e._context;n.font=t;const r=n.measureText(e.METRICS_STRING+e.BASELINE_SYMBOL),i={ascent:r.actualBoundingBoxAscent,descent:r.actualBoundingBoxDescent,fontSize:r.actualBoundingBoxAscent+r.actualBoundingBoxDescent};return e._fonts[t]=i,i}static clearMetrics(t=""){t?delete e._fonts[t]:e._fonts={}}static get _canvas(){if(!e.__canvas){let n;try{const t=new OffscreenCanvas(0,0),r=t.getContext("2d",_l);if(null==r?void 0:r.measureText)return e.__canvas=t,t;n=$n.get().createCanvas()}catch(t){n=$n.get().createCanvas()}n.width=n.height=10,e.__canvas=n}return e.__canvas}static get _context(){return e.__context||(e.__context=e._canvas.getContext("2d",_l)),e.__context}constructor(e,t,n,r,i,o,a,s,l){this.text=e,this.style=t,this.width=n,this.height=r,this.lines=i,this.lineWidths=o,this.lineHeight=a,this.maxLineWidth=s,this.fontProperties=l}}).METRICS_STRING="|ÉqÅ",wl.BASELINE_SYMBOL="M",wl.BASELINE_MULTIPLIER=1.4,wl.HEIGHT_MULTIPLIER=2,wl.graphemeSegmenter=(()=>{if("function"==typeof(null==Intl?void 0:Intl.Segmenter)){const e=new Intl.Segmenter;return t=>[...e.segment(t)].map((e=>e.segment))}return e=>[...e]})(),wl.experimentalLetterSpacing=!1,wl._fonts={},wl._newlines=[10,13],wl._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288],wl._measurementCache={},El=wl}});function Pl(e,t){if(e.texture===ii.WHITE&&!e.fill)return ke.shared.setValue(e.color).toHex();if(!e.fill){const n=t.createPattern(e.texture.source.resource,"repeat"),r=e.matrix.copyTo(Be.shared);return r.scale(e.texture.frame.width,e.texture.frame.height),n.setTransform(r),n}if(e.fill instanceof tl){const n=e.fill,r=t.createPattern(n.texture.source.resource,"repeat"),i=n.transform.copyTo(Be.shared);return i.scale(n.texture.frame.width,n.texture.frame.height),r.setTransform(i),r}if(e.fill instanceof es){const n=e.fill;if("linear"===n.type){const e=t.createLinearGradient(n.x0,n.y0,n.x1,n.y1);return n.gradientStops.forEach((t=>{e.addColorStop(t.offset,ke.shared.setValue(t.color).toHex())})),e}}return It("FillStyle not recognised",e),"red"}var kl,Rl,Il=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text/canvas/utils/getCanvasFillStyle.mjs"(){Ge(),Xe(),mi(),Ot(),os(),rl()}}),Ol=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text/canvas/CanvasTextSystem.mjs"(){Ge(),_e(),ui(),Qa(),Ya(),is(),Je(),vl(),xl(),Tl(),Cl(),Il(),(kl=class{getTextureSize(e,t,n){const r=El.measureText(e||" ",n);let i=Math.ceil(Math.ceil(Math.max(1,r.width)+2*n.padding)*t),o=Math.ceil(Math.ceil(Math.max(1,r.height)+2*n.padding)*t);return i=Math.ceil(i-1e-6),o=Math.ceil(o-1e-6),i=qr(i),o=qr(o),{width:i,height:o}}getTexture(e,t,n,r){"string"==typeof e&&($e("8.0.0","CanvasTextSystem.getTexture: Use object TextOptions instead of separate arguments"),e={text:e,style:n,resolution:t}),e.style instanceof ml||(e.style=new ml(e.style));const{texture:i,canvasAndContext:o}=this.createTextureAndCanvas(e);return this._renderer.texture.initSource(i._source),La.returnCanvasAndContext(o),i}createTextureAndCanvas(e){var t;const{text:n,style:r}=e,i=null!=(t=e.resolution)?t:this._renderer.resolution,o=El.measureText(n||" ",r),a=Math.ceil(Math.ceil(Math.max(1,o.width)+2*r.padding)*i),s=Math.ceil(Math.ceil(Math.max(1,o.height)+2*r.padding)*i),l=La.getOptimalCanvasAndContext(a,s),{canvas:u}=l;this.renderTextToCanvas(n,r,i,l);const c=yl(u,a,s,i);if(r.trim){const e=function(e,t=1){const{width:n,height:r}=e,i=e.getContext("2d",{willReadFrequently:!0});if(null===i)throw new TypeError("Failed to get canvas 2D context");const o=i.getImageData(0,0,n,r).data;let a=0,s=0,l=n-1,u=r-1;for(;s<r&&Za(o,n,s);)++s;if(s===r)return ut.EMPTY;for(;Za(o,n,u);)--u;for(;$a(o,n,a,s,u);)++a;for(;$a(o,n,l,s,u);)--l;return++l,++u,new ut(a/t,s/t,(l-a)/t,(u-s)/t)}(u,i);c.frame.copyFrom(e),c.updateUvs()}return{texture:c,canvasAndContext:l}}getManagedTexture(e){const t=e._getKey();if(this._activeTextures[t])return this._increaseReferenceCount(t),this._activeTextures[t].texture;const{texture:n,canvasAndContext:r}=this.createTextureAndCanvas(e);return this._activeTextures[t]={canvasAndContext:r,texture:n,usageCount:1},n}_increaseReferenceCount(e){this._activeTextures[e].usageCount++}decreaseReferenceCount(e){const t=this._activeTextures[e];if(t.usageCount--,0===t.usageCount){La.returnCanvasAndContext(t.canvasAndContext),Ua.returnTexture(t.texture);const n=t.texture.source;n.resource=null,n.uploadMethodId="unknown",n.alphaMode="no-premultiply-alpha",this._activeTextures[e]=null}}getReferenceCount(e){return this._activeTextures[e].usageCount}renderTextToCanvas(e,t,n,r){var i,o,a,s,l,u,c;const{canvas:d,context:f}=r,p=Sl(t),h=El.measureText(e||" ",t),m=h.lines,A=h.lineHeight,g=h.lineWidths,v=h.maxLineWidth,y=h.fontProperties,b=d.height;f.resetTransform(),f.scale(n,n);const x=2*t.padding;if(f.clearRect(0,0,h.width+4+x,h.height+4+x),null==(i=t._stroke)?void 0:i.width){const e=t._stroke;f.lineWidth=e.width,f.miterLimit=e.miterLimit,f.lineJoin=e.join,f.lineCap=e.cap}let S,_;f.font=p;const w=t.dropShadow?2:1;for(let E=0;E<w;++E){const e=t.dropShadow&&0===E,i=e?Math.ceil(Math.max(1,b)+2*t.padding):0,d=i*n;if(e){f.fillStyle="black",f.strokeStyle="black";const e=t.dropShadow,r=e.color,i=e.alpha;f.shadowColor=ke.shared.setValue(r).setAlpha(i).toRgbaString();const o=e.blur*n,a=e.distance*n;f.shadowBlur=o,f.shadowOffsetX=Math.cos(e.angle)*a,f.shadowOffsetY=Math.sin(e.angle)*a+d}else f.globalAlpha=null!=(a=null==(o=t._fill)?void 0:o.alpha)?a:1,f.fillStyle=t._fill?Pl(t._fill,f):null,(null==(s=t._stroke)?void 0:s.width)&&(f.strokeStyle=Pl(t._stroke,f)),f.shadowColor="black";let p=(A-y.fontSize)/2;A-y.fontSize<0&&(p=0);const h=null!=(u=null==(l=t._stroke)?void 0:l.width)?u:0;for(let n=0;n<m.length;n++)S=h/2,_=h/2+n*A+y.ascent+p,"right"===t.align?S+=v-g[n]:"center"===t.align&&(S+=(v-g[n])/2),(null==(c=t._stroke)?void 0:c.width)&&this._drawLetterSpacing(m[n],t,r,S+t.padding,_+t.padding-i,!0),void 0!==t._fill&&this._drawLetterSpacing(m[n],t,r,S+t.padding,_+t.padding-i)}}_drawLetterSpacing(e,t,n,r,i,o=!1){const{context:a}=n,s=t.letterSpacing;let l=!1;if(El.experimentalLetterSpacingSupported&&(El.experimentalLetterSpacing?(a.letterSpacing=`${s}px`,a.textLetterSpacing=`${s}px`,l=!0):(a.letterSpacing="0px",a.textLetterSpacing="0px")),0===s||l)return void(o?a.strokeText(e,r,i):a.fillText(e,r,i));let u=r;const c=El.graphemeSegmenter(e);let d=a.measureText(e).width,f=0;for(let p=0;p<c.length;++p){const e=c[p];o?a.strokeText(e,u,i):a.fillText(e,u,i);let t="";for(let n=p+1;n<c.length;++n)t+=c[n];f=a.measureText(t).width,u+=d-f+s,d=f}}destroy(){this._activeTextures=null}constructor(e){this._activeTextures={},this._renderer=e}}).extension={type:[t.WebGLSystem,t.WebGPUSystem,t.CanvasSystem],name:"canvasText"}}}),Ml=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text/init.mjs"(){_e(),qa(),Ol(),i.add(kl),i.add(Da)}}),jl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-bitmap/AbstractBitmapFont.mjs"(){Ee(),Je(),Rl=class extends a{get font(){return $e(Ye,"BitmapFont.font is deprecated, please use BitmapFont.fontFamily instead."),this.fontFamily}get pageTextures(){return $e(Ye,"BitmapFont.pageTextures is deprecated, please use BitmapFont.pages instead."),this.pages}get size(){return $e(Ye,"BitmapFont.size is deprecated, please use BitmapFont.fontMetrics.fontSize instead."),this.fontMetrics.fontSize}get distanceFieldRange(){return $e(Ye,"BitmapFont.distanceFieldRange is deprecated, please use BitmapFont.distanceField.range instead."),this.distanceField.range}get distanceFieldType(){return $e(Ye,"BitmapFont.distanceFieldType is deprecated, please use BitmapFont.distanceField.type instead."),this.distanceField.type}destroy(e=!1){this.emit("destroy",this),this.removeAllListeners();for(const t in this.chars)this.chars[t].texture.destroy();this.chars=null,e&&(this.pages.forEach((e=>e.texture.destroy(!0))),this.pages=null)}constructor(){super(...arguments),this.chars=Object.create(null),this.lineHeight=0,this.fontFamily="",this.fontMetrics={fontSize:0,ascent:0,descent:0},this.baseLineOffset=0,this.distanceField={type:"none",range:0},this.pages=[],this.baseMeasurementFontSize=100,this.baseRenderedFontSize=100}}}});function zl(e){if(""===e)return[];"string"==typeof e&&(e=[e]);const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];if(Array.isArray(r)){if(2!==r.length)throw new Error(`[BitmapFont]: Invalid character range length, expecting 2 got ${r.length}.`);if(0===r[0].length||0===r[1].length)throw new Error("[BitmapFont]: Invalid character delimiter.");const e=r[0].charCodeAt(0),n=r[1].charCodeAt(0);if(n<e)throw new Error("[BitmapFont]: Invalid character range.");for(let r=e,i=n;r<=i;r++)t.push(String.fromCharCode(r))}else t.push(...Array.from(r))}if(0===t.length)throw new Error("[BitmapFont]: Empty set when resolving characters.");return t}var Bl,Fl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-bitmap/utils/resolveCharacters.mjs"(){}}),Dl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-bitmap/DynamicBitmapFont.mjs"(){Ge(),St(),Qa(),Ni(),mi(),Je(),Tl(),Cl(),Il(),jl(),Fl(),Bl=class extends Rl{ensureCharacters(e){var t,n,r,i;const o=zl(e).filter((e=>!this._currentChars.includes(e))).filter(((e,t,n)=>n.indexOf(e)===t));if(!o.length)return;let a;this._currentChars=[...this._currentChars,...o],a=-1===this._currentPageIndex?this._nextPage():this.pages[this._currentPageIndex];let{canvas:s,context:l}=a.canvasAndContext,u=a.texture.source;const c=this._style;let d=this._currentX,f=this._currentY;const p=this.baseRenderedFontSize/this.baseMeasurementFontSize,h=this._padding*p,m="italic"===c.fontStyle?2:1;let A=0,g=!1;for(let v=0;v<o.length;v++){const e=o[v],a=El.measureText(e,c,s,!1);a.lineHeight=a.height;const y=m*a.width*p,b=y+2*h,x=a.height*p+2*h;if(g=!1,"\n"!==e&&"\r"!==e&&"\t"!==e&&" "!==e&&(g=!0,A=Math.ceil(Math.max(x,A))),d+b>512&&(f+=A,A=x,d=0,f+A>512)){u.update();const e=this._nextPage();s=e.canvasAndContext.canvas,l=e.canvasAndContext.context,u=e.texture.source,f=0}const S=y/p-(null!=(n=null==(t=c.dropShadow)?void 0:t.distance)?n:0)-(null!=(i=null==(r=c._stroke)?void 0:r.width)?i:0);if(this.chars[e]={id:e.codePointAt(0),xOffset:-this._padding,yOffset:-this._padding,xAdvance:S,kerning:{}},g){this._drawGlyph(l,a,d+h,f+h,p,c);const t=u.width*p,n=u.height*p,r=new ut(d/t*u.width,f/n*u.height,b/t*u.width,x/n*u.height);this.chars[e].texture=new ii({source:u,frame:r}),d+=Math.ceil(b)}}u.update(),this._currentX=d,this._currentY=f,this._skipKerning&&this._applyKerning(o,l)}get pageTextures(){return $e(Ye,"BitmapFont.pageTextures is deprecated, please use BitmapFont.pages instead."),this.pages}_applyKerning(e,t){const n=this._measureCache;for(let r=0;r<e.length;r++){const i=e[r];for(let e=0;e<this._currentChars.length;e++){const r=this._currentChars[e];let o=n[i];o||(o=n[i]=t.measureText(i).width);let a=n[r];a||(a=n[r]=t.measureText(r).width);let s=t.measureText(i+r).width,l=s-(o+a);l&&(this.chars[i].kerning[r]=l),s=t.measureText(i+r).width,l=s-(o+a),l&&(this.chars[r].kerning[i]=l)}}}_nextPage(){this._currentPageIndex++;const e=this.resolution,t=La.getOptimalCanvasAndContext(512,512,e);this._setupContext(t.context,this._style,e);const n=e*(this.baseRenderedFontSize/this.baseMeasurementFontSize),r={canvasAndContext:t,texture:new ii({source:new Mi({resource:t.canvas,resolution:n,alphaMode:"premultiply-alpha-on-upload"})})};return this.pages[this._currentPageIndex]=r,r}_setupContext(e,t,n){var r;t.fontSize=this.baseRenderedFontSize,e.scale(n,n),e.font=Sl(t),t.fontSize=this.baseMeasurementFontSize,e.textBaseline=t.textBaseline;const i=t._stroke,o=null!=(r=null==i?void 0:i.width)?r:0;if(i&&(e.lineWidth=o,e.lineJoin=i.join,e.miterLimit=i.miterLimit,e.strokeStyle=Pl(i,e)),t._fill&&(e.fillStyle=Pl(t._fill,e)),t.dropShadow){const r=t.dropShadow,i=ke.shared.setValue(r.color).toArray(),o=r.blur*n,a=r.distance*n;e.shadowColor=`rgba(${255*i[0]},${255*i[1]},${255*i[2]},${r.alpha})`,e.shadowBlur=o,e.shadowOffsetX=Math.cos(r.angle)*a,e.shadowOffsetY=Math.sin(r.angle)*a}else e.shadowColor="black",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0}_drawGlyph(e,t,n,r,i,o){var a;const s=t.text,l=t.fontProperties,u=o._stroke,c=(null!=(a=null==u?void 0:u.width)?a:0)*i,d=n+c/2,f=r-c/2,p=l.descent*i,h=t.lineHeight*i;o.stroke&&c&&e.strokeText(s,d,f+h-p),o._fill&&e.fillText(s,d,f+h-p)}destroy(){super.destroy();for(let e=0;e<this.pages.length;e++){const{canvasAndContext:t,texture:n}=this.pages[e];La.returnCanvasAndContext(t),n.destroy(!0)}this.pages=null}constructor(e){var t,n,r;super(),this.resolution=1,this.pages=[],this._padding=4,this._measureCache=Object.create(null),this._currentChars=[],this._currentX=0,this._currentY=0,this._currentPageIndex=-1,this._skipKerning=!1;const i=e,o=i.style.clone();i.overrideFill&&(o._fill.color=16777215,o._fill.alpha=1,o._fill.texture=ii.WHITE,o._fill.fill=null);const a=o.fontSize;o.fontSize=this.baseMeasurementFontSize;const s=Sl(o);i.overrideSize?o._stroke&&(o._stroke.width*=this.baseRenderedFontSize/a):o.fontSize=this.baseRenderedFontSize=a,this._style=o,this._skipKerning=null!=(t=i.skipKerning)&&t,this.resolution=null!=(n=i.resolution)?n:1,this._padding=null!=(r=i.padding)?r:4,this.fontMetrics=El.measureFont(s),this.lineHeight=o.lineHeight||this.fontMetrics.fontSize||o.fontSize}}}});function Ll(e,t,n){const r={width:0,height:0,offsetY:0,scale:t.fontSize/n.baseMeasurementFontSize,lines:[{width:0,charPositions:[],spaceWidth:0,spacesIndex:[],chars:[]}]};r.offsetY=n.baseLineOffset;let i=r.lines[0],o=null,a=!0;const s={spaceWord:!1,width:0,start:0,index:0,positions:[],chars:[]},l=e=>{const t=i.width;for(let n=0;n<s.index;n++){const r=e.positions[n];i.chars.push(e.chars[n]),i.charPositions.push(r+t)}i.width+=e.width,a=!1,s.width=0,s.index=0,s.chars.length=0},u=()=>{let e=i.chars.length-1,t=i.chars[e];for(;" "===t;)i.width-=n.chars[t].xAdvance,t=i.chars[--e];r.width=Math.max(r.width,i.width),i={width:0,charPositions:[],chars:[],spaceWidth:0,spacesIndex:[]},a=!0,r.lines.push(i),r.height+=n.lineHeight},c=n.baseMeasurementFontSize/t.fontSize,d=t.letterSpacing*c,f=t.wordWrapWidth*c;for(let p=0;p<e.length+1;p++){let r;const c=p===e.length;c||(r=e[p]);const h=n.chars[r]||n.chars[" "];if(/(?:\s)/.test(r)||"\r"===r||"\n"===r||c){if(!a&&t.wordWrap&&i.width+s.width-d>f?(u(),l(s),c||i.charPositions.push(0)):(s.start=i.width,l(s),c||i.charPositions.push(0)),"\r"===r||"\n"===r)0!==i.width&&u();else if(!c){const e=h.xAdvance+(h.kerning[o]||0)+d;i.width+=e,i.spaceWidth=e,i.spacesIndex.push(i.charPositions.length),i.chars.push(r)}}else{const e=h.kerning[o]||0,t=h.xAdvance+e+d;s.positions[s.index++]=s.width+e,s.chars.push(r),s.width+=t}o=r}return u(),"center"===t.align?function(e){for(let t=0;t<e.lines.length;t++){const n=e.lines[t],r=e.width/2-n.width/2;for(let e=0;e<n.charPositions.length;e++)n.charPositions[e]+=r}}(r):"right"===t.align?function(e){for(let t=0;t<e.lines.length;t++){const n=e.lines[t],r=e.width-n.width;for(let e=0;e<n.charPositions.length;e++)n.charPositions[e]+=r}}(r):"justify"===t.align&&function(e){const t=e.width;for(let n=0;n<e.lines.length;n++){const r=e.lines[n];let i=0,o=r.spacesIndex[i++],a=0;const s=r.spacesIndex.length,l=(t-r.width)/s;for(let e=0;e<r.charPositions.length;e++)e===o&&(o=r.spacesIndex[i++],a+=l),r.charPositions[e]+=a}}(r),r}var Nl,Ul,Gl,Hl,Wl,Vl,Xl,Kl,ql,Ql,Yl,Zl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-bitmap/utils/getBitmapTextLayout.mjs"(){}}),$l=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-bitmap/BitmapFontManager.mjs"(){qi(),Je(),vl(),Dl(),Zl(),Fl(),Nl=new class{getFont(e,t){var n;let r=`${t.fontFamily}-bitmap`,i=!0;if(t._fill.fill&&(r+=t._fill.fill.uid,i=!1),!Wi.has(r)){const e=new Bl(q({style:t,overrideFill:i,overrideSize:!0},this.defaultOptions));e.once("destroy",(()=>Wi.remove(r))),Wi.set(r,e)}const o=Wi.get(r);return null==(n=o.ensureCharacters)||n.call(o,e),o}getLayout(e,t){const n=this.getFont(e,t);return Ll(e.split(""),t,n)}measureText(e,t){return this.getLayout(e,t)}install(...e){var t,n,r,i;let o=e[0];"string"==typeof o&&(o={name:o,style:e[1],chars:null==(t=e[2])?void 0:t.chars,resolution:null==(n=e[2])?void 0:n.resolution,padding:null==(r=e[2])?void 0:r.padding,skipKerning:null==(i=e[2])?void 0:i.skipKerning},$e(Ye,"BitmapFontManager.install(name, style, options) is deprecated, use BitmapFontManager.install({name, style, ...options})"));const a=null==o?void 0:o.name;if(!a)throw new Error("[BitmapFontManager] Property `name` is required.");o=q(q({},this.defaultOptions),o);const s=o.style,l=s instanceof ml?s:new ml(s),u=null!==l._fill.fill&&void 0!==l._fill.fill,c=new Bl({style:l,overrideFill:u,skipKerning:o.skipKerning,padding:o.padding,resolution:o.resolution,overrideSize:!1}),d=zl(o.chars);return c.ensureCharacters(d.join("")),Wi.set(`${a}-bitmap`,c),c.once("destroy",(()=>Wi.remove(`${a}-bitmap`))),c}uninstall(e){const t=`${e}-bitmap`,n=Wi.get(t);n&&(Wi.remove(t),n.destroy())}constructor(){this.ALPHA=[["a","z"],["A","Z"]," "],this.NUMERIC=[["0","9"]],this.ALPHANUMERIC=[["a","z"],["A","Z"],["0","9"]," "],this.ASCII=[[" ","~"]],this.defaultOptions={chars:this.ALPHANUMERIC,resolution:1,padding:4,skipKerning:!1}}}}}),Jl=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-bitmap/BitmapFont.mjs"(){St(),mi(),jl(),$l(),Ul=class extends Rl{destroy(){super.destroy();for(let e=0;e<this.pages.length;e++){const{texture:t}=this.pages[e];t.destroy(!0)}this.pages=null}static install(e){Nl.install(e)}static uninstall(e){Nl.uninstall(e)}constructor(e,t){var n;super();const{textures:r,data:i}=e;Object.keys(i.pages).forEach((e=>{const t=i.pages[parseInt(e,10)],n=r[t.id];this.pages.push({texture:n})})),Object.keys(i.chars).forEach((e=>{var t;const n=i.chars[e],{frame:o,source:a}=r[n.page],s=new ut(n.x+o.x,n.y+o.y,n.width,n.height),l=new ii({source:a,frame:s});this.chars[e]={id:e.codePointAt(0),xOffset:n.xOffset,yOffset:n.yOffset,xAdvance:n.xAdvance,kerning:null!=(t=n.kerning)?t:{},texture:l}})),this.baseRenderedFontSize=i.fontSize,this.baseMeasurementFontSize=i.fontSize,this.fontMetrics={ascent:0,descent:0,fontSize:i.fontSize},this.baseLineOffset=i.baseLineOffset,this.lineHeight=i.lineHeight,this.fontFamily=i.fontFamily,this.distanceField=null!=(n=i.distanceField)?n:{type:"none",range:0},this.url=t}}}}),eu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-bitmap/asset/bitmapFontTextParser.mjs"(){Gl={test:e=>"string"==typeof e&&e.startsWith("info face="),parse(e){var t,n,r;const i=e.match(/^[a-z]+\s+.+$/gm),o={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(const h in i){const e=i[h].match(/^[a-z]+/gm)[0],t=i[h].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),n={};for(const r in t){const e=t[r].split("="),i=e[0],o=e[1].replace(/"/gm,""),a=parseFloat(o),s=isNaN(a)?o:a;n[i]=s}o[e].push(n)}const a={chars:{},pages:[],lineHeight:0,fontSize:0,fontFamily:"",distanceField:null,baseLineOffset:0},[s]=o.info,[l]=o.common,[u]=null!=(t=o.distanceField)?t:[];u&&(a.distanceField={range:parseInt(u.distanceRange,10),type:u.fieldType}),a.fontSize=parseInt(s.size,10),a.fontFamily=s.face,a.lineHeight=parseInt(l.lineHeight,10);const c=o.page;for(let h=0;h<c.length;h++)a.pages.push({id:parseInt(c[h].id,10)||0,file:c[h].file});const d={};a.baseLineOffset=a.lineHeight-parseInt(l.base,10);const f=o.char;for(let h=0;h<f.length;h++){const e=f[h],t=parseInt(e.id,10);let i=null!=(r=null!=(n=e.letter)?n:e.char)?r:String.fromCharCode(t);"space"===i&&(i=" "),d[t]=i,a.chars[i]={id:t,page:parseInt(e.page,10)||0,x:parseInt(e.x,10),y:parseInt(e.y,10),width:parseInt(e.width,10),height:parseInt(e.height,10),xOffset:parseInt(e.xoffset,10),yOffset:parseInt(e.yoffset,10),xAdvance:parseInt(e.xadvance,10),kerning:{}}}const p=o.kerning||[];for(let h=0;h<p.length;h++){const e=parseInt(p[h].first,10),t=parseInt(p[h].second,10),n=parseInt(p[h].amount,10);a.chars[d[t]].kerning[d[e]]=n}return a}}}}),tu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-bitmap/asset/bitmapFontXMLParser.mjs"(){Hl={test(e){const t=e;return"string"!=typeof t&&"getElementsByTagName"in t&&t.getElementsByTagName("page").length&&null!==t.getElementsByTagName("info")[0].getAttribute("face")},parse(e){var t,n;const r={chars:{},pages:[],lineHeight:0,fontSize:0,fontFamily:"",distanceField:null,baseLineOffset:0},i=e.getElementsByTagName("info")[0],o=e.getElementsByTagName("common")[0],a=e.getElementsByTagName("distanceField")[0];a&&(r.distanceField={type:a.getAttribute("fieldType"),range:parseInt(a.getAttribute("distanceRange"),10)});const s=e.getElementsByTagName("page"),l=e.getElementsByTagName("char"),u=e.getElementsByTagName("kerning");r.fontSize=parseInt(i.getAttribute("size"),10),r.fontFamily=i.getAttribute("face"),r.lineHeight=parseInt(o.getAttribute("lineHeight"),10);for(let d=0;d<s.length;d++)r.pages.push({id:parseInt(s[d].getAttribute("id"),10)||0,file:s[d].getAttribute("file")});const c={};r.baseLineOffset=r.lineHeight-parseInt(o.getAttribute("base"),10);for(let d=0;d<l.length;d++){const e=l[d],i=parseInt(e.getAttribute("id"),10);let o=null!=(n=null!=(t=e.getAttribute("letter"))?t:e.getAttribute("char"))?n:String.fromCharCode(i);"space"===o&&(o=" "),c[i]=o,r.chars[o]={id:i,page:parseInt(e.getAttribute("page"),10)||0,x:parseInt(e.getAttribute("x"),10),y:parseInt(e.getAttribute("y"),10),width:parseInt(e.getAttribute("width"),10),height:parseInt(e.getAttribute("height"),10),xOffset:parseInt(e.getAttribute("xoffset"),10),yOffset:parseInt(e.getAttribute("yoffset"),10),xAdvance:parseInt(e.getAttribute("xadvance"),10),kerning:{}}}for(let d=0;d<u.length;d++){const e=parseInt(u[d].getAttribute("first"),10),t=parseInt(u[d].getAttribute("second"),10),n=parseInt(u[d].getAttribute("amount"),10);r.chars[c[t]].kerning[c[e]]=n}return r}}}}),nu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-bitmap/asset/bitmapFontXMLStringParser.mjs"(){Sr(),tu(),Wl={test:e=>!("string"!=typeof e||!e.includes("<font>"))&&Hl.test($n.get().parseXML(e)),parse:e=>Hl.parse($n.get().parseXML(e))}}}),ru=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-bitmap/asset/loadBitmapFont.mjs"(){br(),Vr(),Sr(),_e(),Cr(),Jl(),eu(),nu(),Vl=[".xml",".fnt"],Xl={extension:t.CacheParser,test:e=>e instanceof Ul,getCacheableAssets(e,t){const n={};return e.forEach((e=>{n[e]=t})),n[`${t.fontFamily}-bitmap`]=t,n}},Kl={extension:{type:t.LoadParser,priority:Qn.Normal},test:e=>Vl.includes(Jn.extname(e).toLowerCase()),testParse(e){return te(this,null,(function*(){return Gl.test(e)||Wl.test(e)}))},parse(e,t,n){return te(this,null,(function*(){const r=Gl.test(e)?Gl.parse(e):Wl.parse(e),{src:i}=t,{pages:o}=r,a=[];for(let e=0;e<o.length;++e){const t=o[e].file;let n=Jn.join(Jn.dirname(i),t);n=Or(n,i),a.push(n)}const s=yield n.load(a),l=a.map((e=>s[e]));return new Ul({data:r,textures:l},i)}))},load(e,t){return te(this,null,(function*(){const t=yield $n.get().fetch(e);return yield t.text()}))},unload(e,t,n){return te(this,null,(function*(){yield Promise.all(e.pages.map((e=>n.unload(e.texture.source._sourceOrigin)))),e.destroy()}))}}}}),iu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/shared/Graphics.mjs"(){Je(),wn(),dl(),ql=class e extends en{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?1:0}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&&!0!==(null==e?void 0:e.context)||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(t=!1){return t?new e(this._context.clone()):(this._ownedContext=null,new e(this._context))}lineStyle(e,t,n){$e(Ye,"Graphics#lineStyle is no longer needed. Use Graphics#setStrokeStyle to set the stroke style.");const r={};return e&&(r.width=e),t&&(r.color=t),n&&(r.alpha=n),this.context.strokeStyle=r,this}beginFill(e,t){$e(Ye,"Graphics#beginFill is no longer needed. Use Graphics#fill to fill the shape with the desired style.");const n={};return e&&(n.color=e),t&&(n.alpha=t),this.context.fillStyle=n,this}endFill(){$e(Ye,"Graphics#endFill is no longer needed. Use Graphics#fill to fill the shape with the desired style."),this.context.fill();const e=this.context.strokeStyle;return e.width===ll.defaultStrokeStyle.width&&e.color===ll.defaultStrokeStyle.color&&e.alpha===ll.defaultStrokeStyle.alpha||this.context.stroke(),this}drawCircle(...e){return $e(Ye,"Graphics#drawCircle has been renamed to Graphics#circle"),this._callContextMethod("circle",e)}drawEllipse(...e){return $e(Ye,"Graphics#drawEllipse has been renamed to Graphics#ellipse"),this._callContextMethod("ellipse",e)}drawPolygon(...e){return $e(Ye,"Graphics#drawPolygon has been renamed to Graphics#poly"),this._callContextMethod("poly",e)}drawRect(...e){return $e(Ye,"Graphics#drawRect has been renamed to Graphics#rect"),this._callContextMethod("rect",e)}drawRoundedRect(...e){return $e(Ye,"Graphics#drawRoundedRect has been renamed to Graphics#roundRect"),this._callContextMethod("roundRect",e)}drawStar(...e){return $e(Ye,"Graphics#drawStar has been renamed to Graphics#star"),this._callContextMethod("star",e)}constructor(e){e instanceof ll&&(e={context:e});const t=e||{},{context:n,roundPixels:r}=t,i=Y(t,["context","roundPixels"]);super(q({label:"Graphics"},i)),this.canBundle=!0,this.renderPipeId="graphics",this._roundPixels=0,this._context=n||(this._ownedContext=new ll),this._context.on("update",this.onViewUpdate,this),this.allowChildren=!1,this.roundPixels=null!=r&&r}}}}),ou=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/getTestContext.mjs"(){Sr()}});function au(){if(!Yl){Yl="mediump";const e=function(){if(!Ql||(null==Ql?void 0:Ql.isContextLost())){const e=$n.get().createCanvas();Ql=e.getContext("webgl",{})}return Ql}();if(e&&e.getShaderPrecisionFormat){const t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);Yl=t.precision?"highp":"mediump"}}return Yl}var su=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/getMaxFragmentPrecision.mjs"(){ou()}});function lu(e,t,n){return t?e:n?`\n \n #ifdef GL_ES // This checks if it is WebGL1\n #define in varying\n #define finalColor gl_FragColor\n #define texture texture2D\n #endif\n ${e=e.replace("out vec4 finalColor;","")}\n `:`\n \n #ifdef GL_ES // This checks if it is WebGL1\n #define in attribute\n #define out varying\n #endif\n ${e}\n `}var uu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/addProgramDefines.mjs"(){}});function cu(e,t,n){const r=n?t.maxSupportedFragmentPrecision:t.maxSupportedVertexPrecision;if("precision"!==e.substring(0,9)){let i=n?t.requestedFragmentPrecision:t.requestedVertexPrecision;return"highp"===i&&"highp"!==r&&(i="mediump"),`precision ${i} float;\n${e}`}return"highp"!==r&&"precision highp"===e.substring(0,15)?e.replace("precision highp","precision mediump"):e}var du=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/ensurePrecision.mjs"(){}});function fu(e,t){return t?`#version 300 es\n${e}`:e}var pu,hu,mu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/insertVersion.mjs"(){}});function Au(e,{name:t="pixi-program"},n=!0){t=t.replace(/\s+/g,"-");const r=n?pu:hu;return r[t+=n?"-fragment":"-vertex"]?(r[t]++,t+=`-${r[t]}`):r[t]=1,-1!==e.indexOf("#define SHADER_NAME")?e:`#define SHADER_NAME ${t}\n${e}`}var gu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/setProgramName.mjs"(){pu={},hu={}}});function vu(e,t){return t?e.replace("#version 300 es",""):e}var yu,bu,xu,Su,_u,wu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/stripVersion.mjs"(){}}),Eu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/GlProgram.mjs"(){Ia(),su(),uu(),du(),mu(),gu(),wu(),yu={stripVersion:vu,ensurePrecision:cu,addProgramDefines:lu,setProgramName:Au,insertVersion:fu},bu=Object.create(null),(xu=class e{destroy(){this.fragment=null,this.vertex=null,this._attributeData=null,this._uniformData=null,this._uniformBlockData=null,this.transformFeedbackVaryings=null}static from(t){const n=`${t.vertex}:${t.fragment}`;return bu[n]||(bu[n]=new e(t)),bu[n]}constructor(t){const n=-1!==(t=q(q({},e.defaultOptions),t)).fragment.indexOf("#version 300 es"),r={stripVersion:n,ensurePrecision:{requestedFragmentPrecision:t.preferredFragmentPrecision,requestedVertexPrecision:t.preferredVertexPrecision,maxSupportedVertexPrecision:"highp",maxSupportedFragmentPrecision:au()},setProgramName:{name:t.name},addProgramDefines:n,insertVersion:n};let i=t.fragment,o=t.vertex;Object.keys(yu).forEach((e=>{const t=r[e];i=yu[e](i,t,!0),o=yu[e](o,t,!1)})),this.fragment=i,this.vertex=o,this._key=Ra(`${this.vertex}:${this.fragment}`,"gl-program")}}).defaultOptions={preferredVertexPrecision:"highp",preferredFragmentPrecision:"mediump"},Su=xu}});function Cu(e){var t;return null!=(t=_u[e])?t:_u.float32}var Tu,Pu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/getAttributeInfoFromFormat.mjs"(){_u={uint8x2:{size:2,stride:2,normalised:!1},uint8x4:{size:4,stride:4,normalised:!1},sint8x2:{size:2,stride:2,normalised:!1},sint8x4:{size:4,stride:4,normalised:!1},unorm8x2:{size:2,stride:2,normalised:!0},unorm8x4:{size:4,stride:4,normalised:!0},snorm8x2:{size:2,stride:2,normalised:!0},snorm8x4:{size:4,stride:4,normalised:!0},uint16x2:{size:2,stride:4,normalised:!1},uint16x4:{size:4,stride:8,normalised:!1},sint16x2:{size:2,stride:4,normalised:!1},sint16x4:{size:4,stride:8,normalised:!1},unorm16x2:{size:2,stride:4,normalised:!0},unorm16x4:{size:4,stride:8,normalised:!0},snorm16x2:{size:2,stride:4,normalised:!0},snorm16x4:{size:4,stride:8,normalised:!0},float16x2:{size:2,stride:4,normalised:!1},float16x4:{size:4,stride:8,normalised:!1},float32:{size:1,stride:4,normalised:!1},float32x2:{size:2,stride:8,normalised:!1},float32x3:{size:3,stride:12,normalised:!1},float32x4:{size:4,stride:16,normalised:!1},uint32:{size:1,stride:4,normalised:!1},uint32x2:{size:2,stride:8,normalised:!1},uint32x3:{size:3,stride:12,normalised:!1},uint32x4:{size:4,stride:16,normalised:!1},sint32:{size:1,stride:4,normalised:!1},sint32x2:{size:2,stride:8,normalised:!1},sint32x3:{size:3,stride:12,normalised:!1},sint32x4:{size:4,stride:16,normalised:!1}}}}),ku=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractAttributesFromGpuProgram.mjs"(){Pu(),Tu={f32:"float32","vec2<f32>":"float32x2","vec3<f32>":"float32x3","vec4<f32>":"float32x4",vec2f:"float32x2",vec3f:"float32x3",vec4f:"float32x4",i32:"sint32","vec2<i32>":"sint32x2","vec3<i32>":"sint32x3","vec4<i32>":"sint32x4",u32:"uint32","vec2<u32>":"uint32x2","vec3<u32>":"uint32x3","vec4<u32>":"uint32x4",bool:"uint32","vec2<bool>":"uint32x2","vec3<bool>":"uint32x3","vec4<bool>":"uint32x4"}}});function Ru(e){var t,n,r;const i=/@group\((\d+)\)/,o=/@binding\((\d+)\)/,a=/var(<[^>]+>)? (\w+)/,s=/:\s*(\w+)/,l=/(\w+)\s*:\s*([\w\<\>]+)/g,u=/struct\s+(\w+)/,c=null==(t=e.match(/(^|[^/])@(group|binding)\(\d+\)[^;]+;/g))?void 0:t.map((e=>({group:parseInt(e.match(i)[1],10),binding:parseInt(e.match(o)[1],10),name:e.match(a)[2],isUniform:"<uniform>"===e.match(a)[1],type:e.match(s)[1]})));if(!c)return{groups:[],structs:[]};const d=null!=(r=null==(n=e.match(/struct\s+(\w+)\s*{([^}]+)}/g))?void 0:n.map((e=>{const t=e.match(u)[1],n=e.match(l).reduce(((e,t)=>{const[n,r]=t.split(":");return e[n.trim()]=r.trim(),e}),{});return n?{name:t,members:n}:null})).filter((({name:e})=>c.some((t=>t.type===e)))))?r:[];return{groups:c,structs:d}}var Iu,Ou,Mu,ju=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractStructAndGroups.mjs"(){}}),zu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/shader/const.mjs"(){Iu=(e=>(e[e.VERTEX=1]="VERTEX",e[e.FRAGMENT=2]="FRAGMENT",e[e.COMPUTE=4]="COMPUTE",e))(Iu||{})}}),Bu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/generateGpuLayoutGroups.mjs"(){zu()}}),Fu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/generateLayoutHash.mjs"(){}}),Du=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/removeStructAndGroupDuplicates.mjs"(){}}),Lu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/GpuProgram.mjs"(){Ia(),ku(),ju(),Bu(),Fu(),Du(),Ou=Object.create(null),Mu=class e{_generateProgramKey(){const{vertex:e,fragment:t}=this,n=e.source+t.source+e.entryPoint+t.entryPoint;this._layoutKey=Ra(n,"program")}get attributeData(){return null!=this._attributeData||(this._attributeData=function({source:e,entryPoint:t}){var n;const r={},i=e.indexOf(`fn ${t}`);if(-1!==i){const t=e.indexOf("->",i);if(-1!==t){const o=e.substring(i,t),a=/@location\((\d+)\)\s+([a-zA-Z0-9_]+)\s*:\s*([a-zA-Z0-9_<>]+)(?:,|\s|$)/g;let s;for(;null!==(s=a.exec(o));){const e=null!=(n=Tu[s[3]])?n:"float32";r[s[2]]={location:parseInt(s[1],10),format:e,stride:Cu(e).stride,offset:0,instance:!1,start:0}}}}return r}(this.vertex)),this._attributeData}destroy(){this.gpuLayout=null,this.layout=null,this.structsAndGroups=null,this.fragment=null,this.vertex=null}static from(t){const n=`${t.vertex.source}:${t.fragment.source}:${t.fragment.entryPoint}:${t.vertex.entryPoint}`;return Ou[n]||(Ou[n]=new e(t)),Ou[n]}constructor(e){var t,n;this._layoutKey=0;const{fragment:r,vertex:i,layout:o,gpuLayout:a,name:s}=e;if(this.name=s,this.fragment=r,this.vertex=i,r.source===i.source){const e=Ru(r.source);this.structsAndGroups=e}else{const e=Ru(i.source),t=Ru(r.source);this.structsAndGroups=function(e,t){const n=new Set,r=new Set;return{structs:[...e.structs,...t.structs].filter((e=>!n.has(e.name)&&(n.add(e.name),!0))),groups:[...e.groups,...t.groups].filter((e=>{const t=`${e.name}-${e.binding}`;return!r.has(t)&&(r.add(t),!0)}))}}(e,t)}this.layout=null!=o?o:function({groups:e}){const t=[];for(let n=0;n<e.length;n++){const r=e[n];t[r.group]||(t[r.group]={}),t[r.group][r.name]=r.binding}return t}(this.structsAndGroups),this.gpuLayout=null!=a?a:function({groups:e}){const t=[];for(let n=0;n<e.length;n++){const r=e[n];t[r.group]||(t[r.group]=[]),r.isUniform?t[r.group].push({binding:r.binding,visibility:Iu.VERTEX|Iu.FRAGMENT,buffer:{type:"uniform"}}):"sampler"===r.type?t[r.group].push({binding:r.binding,visibility:Iu.FRAGMENT,sampler:{type:"filtering"}}):"texture_2d"===r.type&&t[r.group].push({binding:r.binding,visibility:Iu.FRAGMENT,texture:{sampleType:"float",viewDimension:"2d",multisampled:!1}})}return t}(this.structsAndGroups),this.autoAssignGlobalUniforms=!(void 0===(null==(t=this.layout[0])?void 0:t.globalUniforms)),this.autoAssignLocalUniforms=!(void 0===(null==(n=this.layout[1])?void 0:n.localUniforms)),this._generateProgramKey()}}}});function Nu(e,t,n){if(e)for(const r in e){const i=t[r.toLocaleLowerCase()];if(i){let t=e[r];"header"===r&&(t=t.replace(/@in\s+[^;]+;\s*/g,"").replace(/@out\s+[^;]+;\s*/g,"")),n&&i.push(`//----${n}----//`),i.push(t)}else It(`${r} placement hook does not exist in shader`)}}var Uu,Gu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/addBits.mjs"(){Ot()}});function Hu(e){var t,n;const r={};return(null!=(n=null==(t=e.match(Uu))?void 0:t.map((e=>e.replace(/[{()}]/g,""))))?n:[]).forEach((e=>{r[e]=[]})),r}var Wu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileHooks.mjs"(){Uu=/\{\{(.*?)\}\}/g}});function Vu(e,t){let n;const r=/@in\s+([^;]+);/g;for(;null!==(n=r.exec(e));)t.push(n[1])}function Xu(e,t,n=!1){const r=[];Vu(t,r),e.forEach((e=>{e.header&&Vu(e.header,r)}));const i=r;n&&i.sort();const o=i.map(((e,t)=>` @location(${t}) ${e},`)).join("\n");let a=t.replace(/@in\s+[^;]+;\s*/g,"");return a=a.replace("{{in}}",`\n${o}\n`),a}var Ku=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileInputs.mjs"(){}});function qu(e,t){let n;const r=/@out\s+([^;]+);/g;for(;null!==(n=r.exec(e));)t.push(n[1])}var Qu=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileOutputs.mjs"(){}});function Yu(e,t){let n=e;for(const r in t){const e=t[r];n=e.join("\n").length?n.replace(`{{${r}}}`,`//-----${r} START-----//\n${e.join("\n")}\n//----${r} FINISH----//`):n.replace(`{{${r}}}`,"")}return n}var Zu,$u,Ju,ec=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/injectBits.mjs"(){}});function tc({template:e,bits:t}){const n=nc(e,t);if(Zu[n])return Zu[n];const{vertex:r,fragment:i}=function(e,t){const n=t.map((e=>e.vertex)).filter((e=>!!e)),r=t.map((e=>e.fragment)).filter((e=>!!e));let i=Xu(n,e.vertex,!0);i=function(e,t){const n=[];qu(t,n),e.forEach((e=>{e.header&&qu(e.header,n)}));let r=0;const i=n.sort().map((e=>e.indexOf("builtin")>-1?e:`@location(${r++}) ${e}`)).join(",\n"),o=n.sort().map((e=>{return` var ${t=e,t.replace(/@.*?\s+/g,"")};`;var t})).join("\n"),a=`return VSOutput(\n ${n.sort().map((e=>` ${function(e){const t=/\b(\w+)\s*:/g.exec(e);return t?t[1]:""}(e)}`)).join(",\n")});`;let s=t.replace(/@out\s+[^;]+;\s*/g,"");return s=s.replace("{{struct}}",`\n${i}\n`),s=s.replace("{{start}}",`\n${o}\n`),s=s.replace("{{return}}",`\n${a}\n`),s}(n,i);const o=Xu(r,e.fragment,!0);return{vertex:i,fragment:o}}(e,t);return Zu[n]=rc(r,i,t),Zu[n]}function nc(e,t){return t.map((e=>($u.has(e)||$u.set(e,Ju++),$u.get(e)))).sort(((e,t)=>e-t)).join("-")+e.vertex+e.fragment}function rc(e,t,n){const r=Hu(e),i=Hu(t);return n.forEach((e=>{Nu(e.vertex,r,e.name),Nu(e.fragment,i,e.name)})),{vertex:Yu(e,r),fragment:Yu(t,i)}}var ic,oc,ac,sc,lc,uc,cc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/compileHighShader.mjs"(){Gu(),Wu(),Ku(),Qu(),ec(),Zu=Object.create(null),$u=new Map,Ju=0}}),dc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/defaultProgramTemplate.mjs"(){ic="\n @in aPosition: vec2<f32>;\n @in aUV: vec2<f32>;\n\n @out @builtin(position) vPosition: vec4<f32>;\n @out vUV : vec2<f32>;\n @out vColor : vec4<f32>;\n\n {{header}}\n\n struct VSOutput {\n {{struct}}\n };\n\n @vertex\n fn main( {{in}} ) -> VSOutput {\n\n var worldTransformMatrix = globalUniforms.uWorldTransformMatrix;\n var modelMatrix = mat3x3<f32>(\n 1.0, 0.0, 0.0,\n 0.0, 1.0, 0.0,\n 0.0, 0.0, 1.0\n );\n var position = aPosition;\n var uv = aUV;\n\n {{start}}\n \n vColor = vec4<f32>(1., 1., 1., 1.);\n\n {{main}}\n\n vUV = uv;\n\n var modelViewProjectionMatrix = globalUniforms.uProjectionMatrix * worldTransformMatrix * modelMatrix;\n\n vPosition = vec4<f32>((modelViewProjectionMatrix * vec3<f32>(position, 1.0)).xy, 0.0, 1.0);\n \n vColor *= globalUniforms.uWorldColorAlpha;\n\n {{end}}\n\n {{return}}\n };\n",oc="\n @in vUV : vec2<f32>;\n @in vColor : vec4<f32>;\n \n {{header}}\n\n @fragment\n fn main(\n {{in}}\n ) -> @location(0) vec4<f32> {\n \n {{start}}\n\n var outColor:vec4<f32>;\n \n {{main}}\n \n return outColor * vColor;\n };\n",ac="\n in vec2 aPosition;\n in vec2 aUV;\n\n out vec4 vColor;\n out vec2 vUV;\n\n {{header}}\n\n void main(void){\n\n mat3 worldTransformMatrix = uWorldTransformMatrix;\n mat3 modelMatrix = mat3(\n 1.0, 0.0, 0.0,\n 0.0, 1.0, 0.0,\n 0.0, 0.0, 1.0\n );\n vec2 position = aPosition;\n vec2 uv = aUV;\n \n {{start}}\n \n vColor = vec4(1.);\n \n {{main}}\n \n vUV = uv;\n \n mat3 modelViewProjectionMatrix = uProjectionMatrix * worldTransformMatrix * modelMatrix;\n\n gl_Position = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n\n vColor *= uWorldColorAlpha;\n\n {{end}}\n }\n",sc="\n \n in vec4 vColor;\n in vec2 vUV;\n\n out vec4 finalColor;\n\n {{header}}\n\n void main(void) {\n \n {{start}}\n\n vec4 outColor;\n \n {{main}}\n \n finalColor = outColor * vColor;\n }\n"}}),fc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/globalUniformsBit.mjs"(){lc={name:"global-uniforms-bit",vertex:{header:"\n struct GlobalUniforms {\n uProjectionMatrix:mat3x3<f32>,\n uWorldTransformMatrix:mat3x3<f32>,\n uWorldColorAlpha: vec4<f32>,\n uResolution: vec2<f32>,\n }\n\n @group(0) @binding(0) var<uniform> globalUniforms : GlobalUniforms;\n "}},uc={name:"global-uniforms-bit",vertex:{header:"\n uniform mat3 uProjectionMatrix;\n uniform mat3 uWorldTransformMatrix;\n uniform vec4 uWorldColorAlpha;\n uniform vec2 uResolution;\n "}}}});function pc({bits:e,name:t}){const n=tc({template:{fragment:oc,vertex:ic},bits:[lc,...e]});return Mu.from({name:t,vertex:{source:n.vertex,entryPoint:"main"},fragment:{source:n.fragment,entryPoint:"main"}})}function hc({bits:e,name:t}){return new Su(q({name:t},function({template:e,bits:t}){const n=nc(e,t);return Zu[n]||(Zu[n]=rc(e.vertex,e.fragment,t)),Zu[n]}({template:{vertex:ac,fragment:sc},bits:[uc,...e]})))}var mc,Ac,gc,vc,yc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compileHighShaderToProgram.mjs"(){Eu(),Lu(),cc(),dc(),fc()}}),bc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/colorBit.mjs"(){mc={name:"color-bit",vertex:{header:"\n @in aColor: vec4<f32>;\n ",main:"\n vColor *= vec4<f32>(aColor.rgb * aColor.a, aColor.a);\n "}},Ac={name:"color-bit",vertex:{header:"\n in vec4 aColor;\n ",main:"\n vColor *= vec4(aColor.rgb * aColor.a, aColor.a);\n "}}}});function xc(e){const t=[];if(1===e)t.push("@group(1) @binding(0) var textureSource1: texture_2d<f32>;"),t.push("@group(1) @binding(1) var textureSampler1: sampler;");else{let n=0;for(let r=0;r<e;r++)t.push(`@group(1) @binding(${n++}) var textureSource${r+1}: texture_2d<f32>;`),t.push(`@group(1) @binding(${n++}) var textureSampler${r+1}: sampler;`)}return t.join("\n")}function Sc(e){const t=[];if(1===e)t.push("outColor = textureSampleGrad(textureSource1, textureSampler1, vUV, uvDx, uvDy);");else{t.push("switch vTextureId {");for(let n=0;n<e;n++)n===e-1?t.push(" default:{"):t.push(` case ${n}:{`),t.push(` outColor = textureSampleGrad(textureSource${n+1}, textureSampler${n+1}, vUV, uvDx, uvDy);`),t.push(" break;}");t.push("}")}return t.join("\n")}function _c(e){return gc[e]||(gc[e]={name:"texture-batch-bit",vertex:{header:"\n @in aTextureIdAndRound: vec2<u32>;\n @out @interpolate(flat) vTextureId : u32;\n ",main:"\n vTextureId = aTextureIdAndRound.y;\n ",end:"\n if(aTextureIdAndRound.x == 1)\n {\n vPosition = vec4<f32>(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw);\n }\n "},fragment:{header:`\n @in @interpolate(flat) vTextureId: u32;\n \n ${xc(16)}\n `,main:`\n var uvDx = dpdx(vUV);\n var uvDy = dpdy(vUV);\n \n ${Sc(16)}\n `}}),gc[e]}function wc(e){const t=[];for(let n=0;n<e;n++)n>0&&t.push("else"),n<e-1&&t.push(`if(vTextureId < ${n}.5)`),t.push("{"),t.push(`\toutColor = texture(uTextures[${n}], vUV);`),t.push("}");return t.join("\n")}function Ec(e){return vc[e]||(vc[e]={name:"texture-batch-bit",vertex:{header:"\n in vec2 aTextureIdAndRound;\n out float vTextureId;\n \n ",main:"\n vTextureId = aTextureIdAndRound.y;\n ",end:"\n if(aTextureIdAndRound.x == 1.)\n {\n gl_Position.xy = roundPixels(gl_Position.xy, uResolution);\n }\n "},fragment:{header:`\n in float vTextureId;\n \n uniform sampler2D uTextures[${e}];\n \n `,main:`\n \n ${wc(16)}\n `}}),vc[e]}var Cc,Tc,Pc,kc,Rc,Ic,Oc,Mc,jc,zc,Bc,Fc,Dc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/generateTextureBatchBit.mjs"(){gc={},vc={}}}),Lc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/roundPixelsBit.mjs"(){Cc={name:"round-pixels-bit",vertex:{header:"\n fn roundPixels(position: vec2<f32>, targetSize: vec2<f32>) -> vec2<f32> \n {\n return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;\n }\n "}},Tc={name:"round-pixels-bit",vertex:{header:" \n vec2 roundPixels(vec2 position, vec2 targetSize)\n { \n return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;\n }\n "}}}}),Nc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/batchSamplersUniformGroup.mjs"(){vo(),Ha(),Pc=new Int32Array(po);for(let e=0;e<po;e++)Pc[e]=e;kc=new ja({uTextures:{value:Pc,type:"i32",size:po}},{isStatic:!0})}}),Uc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/types.mjs"(){Rc=(e=>(e[e.WEBGL=1]="WEBGL",e[e.WEBGPU=2]="WEBGPU",e[e.BOTH=3]="BOTH",e))(Rc||{})}}),Gc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/shader/Shader.mjs"(){Ee(),Eu(),go(),Lu(),Uc(),Ha(),Ic=class e extends a{addResource(e,t,n){var r,i;(r=this._uniformBindMap)[t]||(r[t]={}),(i=this._uniformBindMap[t])[n]||(i[n]=e),this.groups[t]||(this.groups[t]=new fo,this._ownedBindGroups.push(this.groups[t]))}_buildResourceAccessor(e,t){const n={};for(const r in t){const i=t[r];Object.defineProperty(n,i.name,{get:()=>e[i.group].getResource(i.binding),set(t){e[i.group].setResource(t,i.binding)}})}return n}destroy(e=!1){var t,n;this.emit("destroy",this),e&&(null==(t=this.gpuProgram)||t.destroy(),null==(n=this.glProgram)||n.destroy()),this.gpuProgram=null,this.glProgram=null,this.removeAllListeners(),this._uniformBindMap=null,this._ownedBindGroups.forEach((e=>{e.destroy()})),this._ownedBindGroups=null,this.resources=null,this.groups=null}static from(t){const n=t,{gpu:r,gl:i}=n,o=Y(n,["gpu","gl"]);let a,s;return r&&(a=Mu.from(r)),i&&(s=Su.from(i)),new e(q({gpuProgram:a,glProgram:s},o))}constructor(e){super(),this._uniformBindMap=Object.create(null),this._ownedBindGroups=[];let{gpuProgram:t,glProgram:n,groups:r,resources:i,compatibleRenderers:o,groupMap:a}=e;this.gpuProgram=t,this.glProgram=n,void 0===o&&(o=0,t&&(o|=Rc.WEBGPU),n&&(o|=Rc.WEBGL)),this.compatibleRenderers=o;const s={};if(i||r||(i={}),i&&r)throw new Error("[Shader] Cannot have both resources and groups");if(!t&&r&&!a)throw new Error("[Shader] No group map or WebGPU shader provided - consider using resources instead.");if(!t&&r&&a)for(const l in a)for(const e in a[l]){const t=a[l][e];s[t]={group:l,binding:e,name:t}}else if(t&&r&&!a){const e=t.structsAndGroups.groups;a={},e.forEach((e=>{a[e.group]=a[e.group]||{},a[e.group][e.binding]=e.name,s[e.name]=e}))}else if(i){if(t){const e=t.structsAndGroups.groups;a={},e.forEach((e=>{a[e.group]=a[e.group]||{},a[e.group][e.binding]=e.name,s[e.name]=e}))}else{a={},r={99:new fo},this._ownedBindGroups.push(r[99]);let e=0;for(const t in i)s[t]={group:99,binding:e,name:t},a[99]=a[99]||{},a[99][e]=t,e++}r={};for(const e in i){const t=e;let n=i[e];n.source||n._resourceType||(n=new ja(n));const o=s[t];o&&(r[o.group]||(r[o.group]=new fo,this._ownedBindGroups.push(r[o.group])),r[o.group].setResource(n,o.binding))}}this.groups=r,this._uniformBindMap=a,this.resources=this._buildResourceAccessor(r,s)}}}}),Hc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text/sdfShader/shader-bits/localUniformMSDFBit.mjs"(){Oc={name:"local-uniform-msdf-bit",vertex:{header:"\n struct LocalUniforms {\n uColor:vec4<f32>,\n uTransformMatrix:mat3x3<f32>,\n uDistance: f32,\n uRound:f32,\n }\n\n @group(2) @binding(0) var<uniform> localUniforms : LocalUniforms;\n ",main:"\n vColor *= localUniforms.uColor;\n modelMatrix *= localUniforms.uTransformMatrix;\n ",end:"\n if(localUniforms.uRound == 1)\n {\n vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw);\n }\n "},fragment:{header:"\n struct LocalUniforms {\n uColor:vec4<f32>,\n uTransformMatrix:mat3x3<f32>,\n uDistance: f32\n }\n\n @group(2) @binding(0) var<uniform> localUniforms : LocalUniforms;\n ",main:" \n outColor = vColor * calculateMSDFAlpha(outColor, localUniforms.uDistance);\n "}},Mc={name:"local-uniform-msdf-bit",vertex:{header:"\n uniform mat3 uTransformMatrix;\n uniform vec4 uColor;\n uniform float uRound;\n ",main:"\n vColor *= uColor;\n modelMatrix *= uTransformMatrix;\n ",end:"\n if(uRound == 1.)\n {\n gl_Position.xy = roundPixels(gl_Position.xy, uResolution);\n }\n "},fragment:{header:"\n uniform float uDistance;\n ",main:" \n outColor = vColor * calculateMSDFAlpha(outColor, uDistance);\n "}}}}),Wc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text/sdfShader/shader-bits/mSDFBit.mjs"(){jc={name:"msdf-bit",fragment:{header:"\n fn calculateMSDFAlpha(msdfColor:vec4<f32>, distance:f32) -> f32 {\n \n // MSDF\n var median = msdfColor.r + msdfColor.g + msdfColor.b -\n min(msdfColor.r, min(msdfColor.g, msdfColor.b)) -\n max(msdfColor.r, max(msdfColor.g, msdfColor.b));\n \n // SDF\n median = min(median, msdfColor.a);\n\n var screenPxDistance = distance * (median - 0.5);\n var alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0);\n if (median < 0.01) {\n alpha = 0.0;\n } else if (median > 0.99) {\n alpha = 1.0;\n }\n\n return alpha;\n }\n "}},zc={name:"msdf-bit",fragment:{header:"\n float calculateMSDFAlpha(vec4 msdfColor, float distance) {\n \n // MSDF\n float median = msdfColor.r + msdfColor.g + msdfColor.b -\n min(msdfColor.r, min(msdfColor.g, msdfColor.b)) -\n max(msdfColor.r, max(msdfColor.g, msdfColor.b));\n \n // SDF\n median = min(median, msdfColor.a);\n \n float screenPxDistance = distance * (median - 0.5);\n float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0);\n \n if (median < 0.01) {\n alpha = 0.0;\n } else if (median > 0.99) {\n alpha = 1.0;\n }\n\n return alpha;\n }\n "}}}}),Vc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text/sdfShader/SdfShader.mjs"(){Xe(),vo(),yc(),bc(),Dc(),Lc(),Nc(),Gc(),Ha(),Hc(),Wc(),Bc=class extends Ic{constructor(){const e=new ja({uColor:{value:new Float32Array([1,1,1,1]),type:"vec4<f32>"},uTransformMatrix:{value:new Be,type:"mat3x3<f32>"},uDistance:{value:4,type:"f32"},uRound:{value:0,type:"f32"}}),t=pc({name:"sdf-shader",bits:[mc,_c(po),Oc,jc,Cc]});super({glProgram:hc({name:"sdf-shader",bits:[Ac,Ec(po),Mc,zc,Tc]}),gpuProgram:t,resources:{localUniforms:e,batchSamplers:kc}})}}}});function Xc(e,t){t.groupTransform=e.groupTransform,t.groupColorAlpha=e.groupColorAlpha,t.groupColor=e.groupColor,t.groupBlendMode=e.groupBlendMode,t.globalDisplayStatus=e.globalDisplayStatus,t.groupTransform=e.groupTransform,t.localDisplayStatus=e.localDisplayStatus,t.groupAlpha=e.groupAlpha,t._roundPixels=e._roundPixels}var Kc,qc,Qc,Yc,Zc,$c,Jc=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-bitmap/BitmapTextPipe.mjs"(){qi(),_e(),vt(),iu(),Vc(),$l(),Zl(),(Fc=class{validateRenderable(e){const t=this._getGpuBitmapText(e);return e._didTextUpdate&&(e._didTextUpdate=!1,this._updateContext(e,t)),this._renderer.renderPipes.graphics.validateRenderable(t)}addRenderable(e,t){const n=this._getGpuBitmapText(e);Xc(e,n),e._didTextUpdate&&(e._didTextUpdate=!1,this._updateContext(e,n)),this._renderer.renderPipes.graphics.addRenderable(n,t),n.context.customShader&&this._updateDistanceField(e)}destroyRenderable(e){this._destroyRenderableByUid(e.uid)}_destroyRenderableByUid(e){it.return(this._gpuBitmapText[e]),this._gpuBitmapText[e]=null}updateRenderable(e){const t=this._getGpuBitmapText(e);Xc(e,t),this._renderer.renderPipes.graphics.updateRenderable(t),t.context.customShader&&this._updateDistanceField(e)}_updateContext(e,t){var n;const{context:r}=t,i=Nl.getFont(e.text,e._style);r.clear(),"none"!==i.distanceField.type&&(r.customShader||(this._sdfShader||(this._sdfShader=new Bc),r.customShader=this._sdfShader));const o=Array.from(e.text),a=e._style;let s=((null==(n=a._stroke)?void 0:n.width)||0)/2;s+=i.baseLineOffset;const l=Ll(o,a,i);let u=0;const c=a.padding,d=l.scale;r.translate(-e._anchor._x*l.width-c,-e._anchor._y*(l.height+l.offsetY)-c).scale(d,d);const f=a._fill.color;for(let p=0;p<l.lines.length;p++){const e=l.lines[p];for(let t=0;t<e.charPositions.length;t++){const n=o[u++],a=i.chars[n];(null==a?void 0:a.texture)&&r.texture(a.texture,f||"black",Math.round(e.charPositions[t]+a.xOffset),Math.round(s+a.yOffset))}s+=i.lineHeight}}_getGpuBitmapText(e){return this._gpuBitmapText[e.uid]||this.initGpuText(e)}initGpuText(e){const t=it.get(ql);return this._gpuBitmapText[e.uid]=t,this._updateContext(e,t),e.on("destroyed",(()=>{this.destroyRenderable(e)})),this._gpuBitmapText[e.uid]}_updateDistanceField(e){var t;const n=this._getGpuBitmapText(e).context,r=e._style.fontFamily,i=Wi.get(`${r}-bitmap`),{a:o,b:a,c:s,d:l}=e.groupTransform,u=Math.sqrt(o*o+a*a),c=Math.sqrt(s*s+l*l),d=(Math.abs(u)+Math.abs(c))/2,f=i.baseRenderedFontSize/e._style.fontSize,p=null!=(t=e.resolution)?t:this._renderer.resolution,h=d*i.distanceField.range*(1/f)*p;n.customShader.resources.localUniforms.uniforms.uDistance=h}destroy(){var e;for(const t in this._gpuBitmapText)this._destroyRenderableByUid(t);this._gpuBitmapText=null,null==(e=this._sdfShader)||e.destroy(!0),this._sdfShader=null,this._renderer=null}constructor(e){this._gpuBitmapText={},this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"bitmapText"}}}),ed=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-bitmap/init.mjs"(){_e(),ru(),Jc(),i.add(Fc,Kl,Xl)}}),td=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/HTMLTextPipe.mjs"(){_e(),mi(),_i(),vt(),Ka(),(Kc=class{validateRenderable(e){const t=this._getGpuText(e),n=e._getKey();return t.textureNeedsUploading?(t.textureNeedsUploading=!1,!0):t.currentKey!==n}addRenderable(e){const t=this._getGpuText(e).batchableSprite;e._didTextUpdate&&this._updateText(e),this._renderer.renderPipes.batch.addToBatch(t)}updateRenderable(e){const t=this._getGpuText(e).batchableSprite;e._didTextUpdate&&this._updateText(e),t.batcher.updateElement(t)}destroyRenderable(e){this._destroyRenderableById(e.uid)}_destroyRenderableById(e){const t=this._gpuText[e];this._renderer.htmlText.decreaseReferenceCount(t.currentKey),it.return(t.batchableSprite),this._gpuText[e]=null}_updateText(e){const t=e._getKey(),n=this._getGpuText(e),r=n.batchableSprite;n.currentKey!==t&&this._updateGpuText(e).catch((e=>{console.error(e)})),e._didTextUpdate=!1;const i=e._style.padding;bi(r.bounds,e._anchor,r.texture,i)}_updateGpuText(e){return te(this,null,(function*(){var t;e._didTextUpdate=!1;const n=this._getGpuText(e);if(n.generatingTexture)return;const r=e._getKey();this._renderer.htmlText.decreaseReferenceCount(n.currentKey),n.generatingTexture=!0,n.currentKey=r;const i=null!=(t=e.resolution)?t:this._renderer.resolution,o=yield this._renderer.htmlText.getManagedTexture(e.text,i,e._style,e._getKey()),a=n.batchableSprite;a.texture=n.texture=o,n.generatingTexture=!1,n.textureNeedsUploading=!0,e.onViewUpdate();const s=e._style.padding;bi(a.bounds,e._anchor,a.texture,s)}))}_getGpuText(e){return this._gpuText[e.uid]||this.initGpuText(e)}initGpuText(e){const t={texture:ii.EMPTY,currentKey:"--",batchableSprite:it.get(Fa),textureNeedsUploading:!1,generatingTexture:!1},n=t.batchableSprite;return n.renderable=e,n.texture=ii.EMPTY,n.bounds={minX:0,maxX:1,minY:0,maxY:0},n.roundPixels=this._renderer._roundPixels|e._roundPixels,this._gpuText[e.uid]=t,e.on("destroyed",(()=>{this.destroyRenderable(e)})),t}destroy(){for(const e in this._gpuText)this._destroyRenderableById(e);this._gpuText=null,this._renderer=null}constructor(e){this._gpuText=Object.create(null),this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"htmlText"}}}),nd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/browser/isSafari.mjs"(){Sr()}}),rd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/HTMLTextRenderData.mjs"(){qc="http://www.w3.org/2000/svg",Qc="http://www.w3.org/1999/xhtml",Yc=class{constructor(){this.svgRoot=document.createElementNS(qc,"svg"),this.foreignObject=document.createElementNS(qc,"foreignObject"),this.domElement=document.createElementNS(Qc,"div"),this.styleElement=document.createElementNS(Qc,"style"),this.image=new Image;const{foreignObject:e,svgRoot:t,styleElement:n,domElement:r}=this;e.setAttribute("width","10000"),e.setAttribute("height","10000"),e.style.overflow="hidden",t.appendChild(e),e.appendChild(n),e.appendChild(r)}}}});function id(e){const t=e._stroke,n=e._fill,r=[`div { ${[`color: ${ke.shared.setValue(n.color).toHex()}`,`font-size: ${e.fontSize}px`,`font-family: ${e.fontFamily}`,`font-weight: ${e.fontWeight}`,`font-style: ${e.fontStyle}`,`font-variant: ${e.fontVariant}`,`letter-spacing: ${e.letterSpacing}px`,`text-align: ${e.align}`,`padding: ${e.padding}px`,`white-space: ${"pre"===e.whiteSpace&&e.wordWrap?"pre-wrap":e.whiteSpace}`,...e.lineHeight?[`line-height: ${e.lineHeight}px`]:[],...e.wordWrap?["word-wrap: "+(e.breakWords?"break-all":"break-word"),`max-width: ${e.wordWrapWidth}px`]:[],...t?[ad(t)]:[],...e.dropShadow?[od(e.dropShadow)]:[],...e.cssOverrides].join(";")} }`];return function(e,t){for(const n in e){const r=e[n],i=[];for(const e in r)$c[e]?i.push($c[e](r[e])):Zc[e]&&i.push(Zc[e].replace("{{VALUE}}",r[e]));t.push(`${n} { ${i.join(";")} }`)}}(e.tagStyles,r),r.join(" ")}function od(e){const t=ke.shared.setValue(e.color).setAlpha(e.alpha).toHexa(),n=`${Math.round(Math.cos(e.angle)*e.distance)}px ${Math.round(Math.sin(e.angle)*e.distance)}px`;return e.blur>0?`text-shadow: ${n} ${e.blur}px ${t}`:`text-shadow: ${n} ${t}`}function ad(e){return[`-webkit-text-stroke-width: ${e.width}px`,`-webkit-text-stroke-color: ${ke.shared.setValue(e.color).toHex()}`,`text-stroke-width: ${e.width}px`,`text-stroke-color: ${ke.shared.setValue(e.color).toHex()}`,"paint-order: stroke"].join(";")}var sd,ld=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/utils/textStyleToCSS.mjs"(){Ge(),Zc={fontSize:"font-size: {{VALUE}}px",fontFamily:"font-family: {{VALUE}}",fontWeight:"font-weight: {{VALUE}}",fontStyle:"font-style: {{VALUE}}",fontVariant:"font-variant: {{VALUE}}",letterSpacing:"letter-spacing: {{VALUE}}px",align:"text-align: {{VALUE}}",padding:"padding: {{VALUE}}px",whiteSpace:"white-space: {{VALUE}}",lineHeight:"line-height: {{VALUE}}px",wordWrapWidth:"max-width: {{VALUE}}px"},$c={fill:e=>`color: ${ke.shared.setValue(e).toHex()}`,breakWords:e=>"word-wrap: "+(e?"break-all":"break-word"),stroke:ad,dropShadow:od}}}),ud=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/HtmlTextStyle.mjs"(){Ot(),vl(),gl(),ld(),sd=class e extends ml{set cssOverrides(e){this._cssOverrides=e instanceof Array?e:[e],this.update()}get cssOverrides(){return this._cssOverrides}_generateKey(){return this._styleKey=fl(this)+this._cssOverrides.join("-"),this._styleKey}update(){this._cssStyle=null,super.update()}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,letterSpacing:this.letterSpacing,lineHeight:this.lineHeight,padding:this.padding,stroke:this._stroke,whiteSpace:this.whiteSpace,wordWrap:this.wordWrap,wordWrapWidth:this.wordWrapWidth,cssOverrides:this.cssOverrides})}get cssStyle(){return this._cssStyle||(this._cssStyle=id(this)),this._cssStyle}addOverride(...e){const t=e.filter((e=>!this.cssOverrides.includes(e)));t.length>0&&(this.cssOverrides.push(...t),this.update())}removeOverride(...e){const t=e.filter((e=>this.cssOverrides.includes(e)));t.length>0&&(this.cssOverrides=this.cssOverrides.filter((e=>!t.includes(e))),this.update())}set fill(e){"string"!=typeof e&&"number"!=typeof e&&It("[HTMLTextStyle] only color fill is not supported by HTMLText"),super.fill=e}set stroke(e){e&&"string"!=typeof e&&"number"!=typeof e&&It("[HTMLTextStyle] only color stroke is not supported by HTMLText"),super.stroke=e}constructor(e={}){var t;super(e),this._cssOverrides=[],null!=this.cssOverrides||(this.cssOverrides=e.cssOverrides),this.tagStyles=null!=(t=e.tagStyles)?t:{}}}}}),cd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/utils/extractFontFamilies.mjs"(){}}),dd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/utils/loadFontAsBase64.mjs"(){Sr()}});function fd(e,t){return te(this,null,(function*(){const n=yield function(e){return te(this,null,(function*(){const t=yield $n.get().fetch(e),n=yield t.blob(),r=new FileReader;return yield new Promise(((e,t)=>{r.onloadend=()=>e(r.result),r.onerror=t,r.readAsDataURL(n)}))}))}(t);return`@font-face {\n font-family: "${e.fontFamily}";\n src: url('${n}');\n font-weight: ${e.fontWeight};\n font-style: ${e.fontStyle};\n }`}))}var pd,hd,md,Ad,gd,vd,yd,bd,xd,Sd,_d,wd,Ed,Cd,Td,Pd,kd,Rd,Id,Od,Md,jd,zd,Bd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/utils/loadFontCSS.mjs"(){dd()}}),Fd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/utils/getFontCss.mjs"(){qi(),Bd(),pd=new Map}}),Dd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/utils/getSVGUrl.mjs"(){}}),Ld=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/utils/getTemporaryCanvasFromImage.mjs"(){Qa()}}),Nd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/utils/loadSVGImage.mjs"(){}}),Ud=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/utils/measureHtmlText.mjs"(){Tl(),rd()}}),Gd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/HTMLTextSystem.mjs"(){_e(),Ya(),Uc(),nd(),Ot(),vt(),xl(),rd(),ud(),cd(),Fd(),Dd(),Ld(),Nd(),Ud(),(md=class{getTexture(e){return this._buildTexturePromise(e.text,e.resolution,e.style)}getManagedTexture(e,t,n,r){if(this._activeTextures[r])return this._increaseReferenceCount(r),this._activeTextures[r].promise;const i=this._buildTexturePromise(e,t,n).then((e=>(this._activeTextures[r].texture=e,e)));return this._activeTextures[r]={texture:null,promise:i,usageCount:1},i}_buildTexturePromise(e,t,n){return te(this,null,(function*(){const r=it.get(Yc),i=function(e,t){const n=t.fontFamily,r=[],i={},o=e.match(/font-family:([^;"\s]+)/g);function a(e){i[e]||(r.push(e),i[e]=!0)}if(Array.isArray(n))for(let s=0;s<n.length;s++)a(n[s]);else a(n);o&&o.forEach((e=>{a(e.split(":")[1].trim())}));for(const s in t.tagStyles)a(t.tagStyles[s].fontFamily);return r}(e,n),o=yield function(e,t,n){return te(this,null,(function*(){const r=e.filter((e=>Wi.has(`${e}-and-url`))).map(((e,r)=>{if(!pd.has(e)){const{url:i}=Wi.get(`${e}-and-url`);0===r?pd.set(e,fd(t,i)):pd.set(e,fd({fontWeight:n.fontWeight,fontStyle:n.fontStyle,fontFamily:e},i))}return pd.get(e)}));return(yield Promise.all(r)).join("\n")}))}(i,n,sd.defaultTextStyle),a=function(e,t,n,r){r=r||hd||(hd=new Yc);const{domElement:i,styleElement:o,svgRoot:a}=r;i.innerHTML=`<style>${t.cssStyle}</style><div>${e}</div>`,i.setAttribute("style","transform-origin: top left; display: inline-block"),n&&(o.textContent=n),document.body.appendChild(a);const s=i.getBoundingClientRect();a.remove();const l=El.measureFont(t.fontStyle).descent;return{width:s.width,height:s.height+l}}(e,n,o,r),s=Math.ceil(Math.ceil(Math.max(1,a.width)+2*n.padding)*t),l=Math.ceil(Math.ceil(Math.max(1,a.height)+2*n.padding)*t),u=r.image;u.width=0|s,u.height=0|l;const c=function(e,t,n,r,i){const{domElement:o,styleElement:a,svgRoot:s}=i;o.innerHTML=`<style>${t.cssStyle}</style><div>${e}</div>`,o.setAttribute("style",`transform: scale(${n});transform-origin: top left; display: inline-block`),a.textContent=r;const{width:l,height:u}=i.image;return s.setAttribute("width",l.toString()),s.setAttribute("height",u.toString()),(new XMLSerializer).serializeToString(s)}(e,n,t,o,r);yield function(e,t,n){return new Promise((r=>te(this,null,(function*(){n&&(yield new Promise((e=>setTimeout(e,100)))),e.onload=()=>{r()},e.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(t)}`,e.crossOrigin="anonymous"}))))}(u,c,function(){const{userAgent:e}=$n.get().getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}()&&i.length>0);let d=u;this._createCanvas&&(d=function(e,t){const n=La.getOptimalCanvasAndContext(e.width,e.height,t),{context:r}=n;return r.clearRect(0,0,e.width,e.height),r.drawImage(e,0,0),La.returnCanvasAndContext(n),n.canvas}(u,t));const f=yl(d,u.width,u.height,t);return this._createCanvas&&this._renderer.texture.initSource(f.source),it.return(r),f}))}_increaseReferenceCount(e){this._activeTextures[e].usageCount++}decreaseReferenceCount(e){const t=this._activeTextures[e];t&&(t.usageCount--,0===t.usageCount&&(t.texture?this._cleanUp(t):t.promise.then((e=>{t.texture=e,this._cleanUp(t)})).catch((()=>{It("HTMLTextSystem: Failed to clean texture")})),this._activeTextures[e]=null))}_cleanUp(e){Ua.returnTexture(e.texture),e.texture.source.resource=null,e.texture.source.uploadMethodId="unknown"}getReferenceCount(e){return this._activeTextures[e].usageCount}destroy(){this._activeTextures=null}constructor(e){this._activeTextures={},this._renderer=e,this._createCanvas=e.type===Rc.WEBGPU}}).extension={type:[t.WebGLSystem,t.WebGPUSystem,t.CanvasSystem],name:"htmlText"},md.defaultFontOptions={fontFamily:"Arial",fontStyle:"normal",fontWeight:"normal"}}}),Hd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/text-html/init.mjs"(){_e(),td(),Gd(),i.add(md),i.add(Kc)}}),Wd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/mesh/shared/MeshGeometry.mjs"(){no(),to(),mo(),Je(),(Ad=class e extends io{get positions(){return this.attributes.aPosition.buffer.data}set positions(e){this.attributes.aPosition.buffer.data=e}get uvs(){return this.attributes.aUV.buffer.data}set uvs(e){this.attributes.aUV.buffer.data=e}get indices(){return this.indexBuffer.data}set indices(e){this.indexBuffer.data=e}constructor(...t){var n;let r=null!=(n=t[0])?n:{};r instanceof Float32Array&&($e(Ye,"use new MeshGeometry({ positions, uvs, indices }) instead"),r={positions:r,uvs:t[1],indices:t[2]}),r=q(q({},e.defaultOptions),r);const i=r.positions||new Float32Array([0,0,1,0,1,1,0,1]),o=r.uvs||new Float32Array([0,0,1,0,1,1,0,1]),a=r.indices||new Uint32Array([0,1,2,0,2,3]),s=r.shrinkBuffersToFit;super({attributes:{aPosition:{buffer:new $i({data:i,label:"attribute-mesh-positions",shrinkToFit:s,usage:Zi.VERTEX|Zi.COPY_DST}),format:"float32x2",stride:8,offset:0},aUV:{buffer:new $i({data:o,label:"attribute-mesh-uvs",shrinkToFit:s,usage:Zi.VERTEX|Zi.COPY_DST}),format:"float32x2",stride:8,offset:0}},indexBuffer:new $i({data:a,label:"index-mesh-buffer",shrinkToFit:s,usage:Zi.INDEX|Zi.COPY_DST}),topology:r.topology}),this.batchMode="auto"}}).defaultOptions={topology:"triangle-list",shrinkBuffersToFit:!1},gd=Ad}}),Vd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/localUniformBit.mjs"(){yd=Q(q({},vd={name:"local-uniform-bit",vertex:{header:"\n\n struct LocalUniforms {\n uTransformMatrix:mat3x3<f32>,\n uColor:vec4<f32>,\n uRound:f32,\n }\n\n @group(1) @binding(0) var<uniform> localUniforms : LocalUniforms;\n ",main:"\n vColor *= localUniforms.uColor;\n modelMatrix *= localUniforms.uTransformMatrix;\n ",end:"\n if(localUniforms.uRound == 1)\n {\n vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw);\n }\n "}}),{vertex:Q(q({},vd.vertex),{header:vd.vertex.header.replace("group(1)","group(2)")})}),bd={name:"local-uniform-bit",vertex:{header:"\n\n uniform mat3 uTransformMatrix;\n uniform vec4 uColor;\n uniform float uRound;\n ",main:"\n vColor *= uColor;\n modelMatrix = uTransformMatrix;\n ",end:"\n if(uRound == 1.)\n {\n gl_Position.xy = roundPixels(gl_Position.xy, uResolution);\n }\n "}}}}),Xd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite-tiling/shader/tilingBit.mjs"(){xd={name:"tiling-bit",vertex:{header:"\n struct TilingUniforms {\n uMapCoord:mat3x3<f32>,\n uClampFrame:vec4<f32>,\n uClampOffset:vec2<f32>,\n uTextureTransform:mat3x3<f32>,\n uSizeAnchor:vec4<f32>\n };\n\n @group(2) @binding(0) var<uniform> tilingUniforms: TilingUniforms;\n @group(2) @binding(1) var uTexture: texture_2d<f32>;\n @group(2) @binding(2) var uSampler: sampler;\n ",main:"\n uv = (tilingUniforms.uTextureTransform * vec3(uv, 1.0)).xy;\n\n position = (position - tilingUniforms.uSizeAnchor.zw) * tilingUniforms.uSizeAnchor.xy;\n "},fragment:{header:"\n struct TilingUniforms {\n uMapCoord:mat3x3<f32>,\n uClampFrame:vec4<f32>,\n uClampOffset:vec2<f32>,\n uTextureTransform:mat3x3<f32>,\n uSizeAnchor:vec4<f32>\n };\n\n @group(2) @binding(0) var<uniform> tilingUniforms: TilingUniforms;\n @group(2) @binding(1) var uTexture: texture_2d<f32>;\n @group(2) @binding(2) var uSampler: sampler;\n ",main:"\n\n var coord = vUV + ceil(tilingUniforms.uClampOffset - vUV);\n coord = (tilingUniforms.uMapCoord * vec3(coord, 1.0)).xy;\n var unclamped = coord;\n coord = clamp(coord, tilingUniforms.uClampFrame.xy, tilingUniforms.uClampFrame.zw);\n\n var bias = 0.;\n\n if(unclamped.x == coord.x && unclamped.y == coord.y)\n {\n bias = -32.;\n } \n\n outColor = textureSampleBias(uTexture, uSampler, coord, bias);\n "}},Sd={name:"tiling-bit",vertex:{header:"\n uniform mat3 uTextureTransform;\n uniform vec4 uSizeAnchor;\n \n ",main:"\n uv = (uTextureTransform * vec3(aUV, 1.0)).xy;\n\n position = (position - uSizeAnchor.zw) * uSizeAnchor.xy;\n "},fragment:{header:"\n uniform sampler2D uTexture;\n uniform mat3 uMapCoord;\n uniform vec4 uClampFrame;\n uniform vec2 uClampOffset;\n ",main:"\n\n vec2 coord = vUV + ceil(uClampOffset - vUV);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n vec2 unclamped = coord;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n \n outColor = texture(uTexture, coord, unclamped == coord ? 0.0 : -32.0);// lod-bias very negative to force lod 0\n \n "}}}}),Kd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite-tiling/shader/TilingSpriteShader.mjs"(){Xe(),yc(),Vd(),Lc(),Gc(),Ha(),mi(),Xd(),Ed=class extends Ic{updateUniforms(e,t,n,r,i,o){const a=this.resources.tilingUniforms,s=o.width,l=o.height,u=o.textureMatrix,c=a.uniforms.uTextureTransform;c.set(n.a*s/e,n.b*s/t,n.c*l/e,n.d*l/t,n.tx/e,n.ty/t),c.invert(),a.uniforms.uMapCoord=u.mapCoord,a.uniforms.uClampFrame=u.uClampFrame,a.uniforms.uClampOffset=u.uClampOffset,a.uniforms.uTextureTransform=c,a.uniforms.uSizeAnchor[0]=e,a.uniforms.uSizeAnchor[1]=t,a.uniforms.uSizeAnchor[2]=r,a.uniforms.uSizeAnchor[3]=i,o&&(this.resources.uTexture=o.source,this.resources.uSampler=o.source.style)}constructor(){null!=_d||(_d=pc({name:"tiling-sprite-shader",bits:[vd,xd,Cc]})),null!=wd||(wd=hc({name:"tiling-sprite-shader",bits:[bd,Sd,Tc]}));const e=new ja({uMapCoord:{value:new Be,type:"mat3x3<f32>"},uClampFrame:{value:new Float32Array([0,0,1,1]),type:"vec4<f32>"},uClampOffset:{value:new Float32Array([0,0]),type:"vec2<f32>"},uTextureTransform:{value:new Be,type:"mat3x3<f32>"},uSizeAnchor:{value:new Float32Array([100,100,.5,.5]),type:"vec4<f32>"}});super({glProgram:wd,gpuProgram:_d,resources:{localUniforms:new ja({uTransformMatrix:{value:new Be,type:"mat3x3<f32>"},uColor:{value:new Float32Array([1,1,1,1]),type:"vec4<f32>"},uRound:{value:0,type:"f32"}}),tilingUniforms:e,uTexture:ii.EMPTY.source,uSampler:ii.EMPTY.source.style}})}}}}),qd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite-tiling/utils/QuadGeometry.mjs"(){Wd(),Cd=class extends gd{constructor(){super({positions:new Float32Array([0,0,1,0,1,1,0,1]),uvs:new Float32Array([0,0,1,0,1,1,0,1]),indices:new Uint32Array([0,1,2,0,2,3])})}}}}),Qd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite-tiling/utils/setPositions.mjs"(){}}),Yd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite-tiling/utils/applyMatrix.mjs"(){}}),Zd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite-tiling/utils/setUvs.mjs"(){Xe(),Yd()}}),$d=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite-tiling/TilingSpritePipe.mjs"(){_e(),Sa(),Uc(),Ta(),Wa(),Wd(),Kd(),qd(),Qd(),Zd(),Td=new Cd,(Pd=class{validateRenderable(e){const t=this._getTilingSpriteData(e),n=t.canBatch;this._updateCanBatch(e);const r=t.canBatch;if(r&&r===n){const{batchableMesh:n}=t;if(n.texture._source!==e.texture._source)return!n.batcher.checkAndUpdateTexture(n,e.texture)}return n!==r}addRenderable(e,t){const n=this._renderer.renderPipes.batch;this._updateCanBatch(e);const r=this._getTilingSpriteData(e),{geometry:i,canBatch:o}=r;if(o){r.batchableMesh||(r.batchableMesh=new za);const t=r.batchableMesh;e._didTilingSpriteUpdate&&(e._didTilingSpriteUpdate=!1,this._updateBatchableMesh(e),t.geometry=i,t.mesh=e,t.texture=e._texture),t.roundPixels=this._renderer._roundPixels|e._roundPixels,n.addToBatch(t)}else n.break(t),r.shader||(r.shader=new Ed),this.updateRenderable(e),t.add(e)}execute(e){const{shader:t}=this._tilingSpriteDataHash[e.uid];t.groups[0]=this._renderer.globalUniforms.bindGroup;const n=t.resources.localUniforms.uniforms;n.uTransformMatrix=e.groupTransform,n.uRound=this._renderer._roundPixels|e._roundPixels,_a(e.groupColorAlpha,n.uColor,0),this._renderer.encoder.draw({geometry:Td,shader:t,state:ya.default2d})}updateRenderable(e){const t=this._getTilingSpriteData(e),{canBatch:n}=t;if(n){const{batchableMesh:n}=t;e._didTilingSpriteUpdate&&this._updateBatchableMesh(e),n.batcher.updateElement(n)}else if(e._didTilingSpriteUpdate){const{shader:n}=t;n.updateUniforms(e.width,e.height,e._tileTransform.matrix,e.anchor.x,e.anchor.y,e.texture)}e._didTilingSpriteUpdate=!1}destroyRenderable(e){var t;const n=this._getTilingSpriteData(e);n.batchableMesh=null,null==(t=n.shader)||t.destroy(),this._tilingSpriteDataHash[e.uid]=null}_getTilingSpriteData(e){return this._tilingSpriteDataHash[e.uid]||this._initTilingSpriteData(e)}_initTilingSpriteData(e){const t=new gd({indices:Td.indices,positions:Td.positions.slice(),uvs:Td.uvs.slice()});return this._tilingSpriteDataHash[e.uid]={canBatch:!0,renderable:e,geometry:t},e.on("destroyed",(()=>{this.destroyRenderable(e)})),this._tilingSpriteDataHash[e.uid]}_updateBatchableMesh(e){const t=this._getTilingSpriteData(e),{geometry:n}=t,r=e.texture.source.style;"repeat"!==r.addressMode&&(r.addressMode="repeat",r.update()),function(e,t){const n=e.texture,r=n.frame.width,i=n.frame.height;let o=0,a=0;e._applyAnchorToTexture&&(o=e.anchor.x,a=e.anchor.y),t[0]=t[6]=-o,t[2]=t[4]=1-o,t[1]=t[3]=-a,t[5]=t[7]=1-a;const s=Be.shared;s.copyFrom(e._tileTransform.matrix),s.tx/=e.width,s.ty/=e.height,s.invert(),s.scale(e.width/r,e.height/i),function(e,t,n,r){let i=0;const o=e.length/(t||2),a=r.a,s=r.b,l=r.c,u=r.d,c=r.tx,d=r.ty;for(n*=t;i<o;){const r=e[n],o=e[n+1];e[n]=a*r+l*o+c,e[n+1]=s*r+u*o+d,n+=t,i++}}(t,2,0,s)}(e,n.uvs),function(e,t){const n=e.anchor.x,r=e.anchor.y;t[0]=-n*e.width,t[1]=-r*e.height,t[2]=(1-n)*e.width,t[3]=-r*e.height,t[4]=(1-n)*e.width,t[5]=(1-r)*e.height,t[6]=-n*e.width,t[7]=(1-r)*e.height}(e,n.positions)}destroy(){for(const e in this._tilingSpriteDataHash)this.destroyRenderable(this._tilingSpriteDataHash[e].renderable);this._tilingSpriteDataHash=null,this._renderer=null}_updateCanBatch(e){const t=this._getTilingSpriteData(e),n=e.texture;let r=!0;return this._renderer.type===Rc.WEBGL&&(r=this._renderer.context.supports.nonPowOf2wrapping),t.canBatch=n.textureMatrix.isSimple&&(r||n.source.isPowerOfTwo),t.canBatch}constructor(e){this._tilingSpriteDataHash=Object.create(null),this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"tilingSprite"}}}),Jd=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite-tiling/init.mjs"(){_e(),$d(),i.add(Pd)}}),ef=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/mesh-plane/PlaneGeometry.mjs"(){Je(),Wd(),(kd=class e extends gd{build(t){var n,r,i,o;t=q(q({},e.defaultOptions),t),this.verticesX=null!=(n=this.verticesX)?n:t.verticesX,this.verticesY=null!=(r=this.verticesY)?r:t.verticesY,this.width=null!=(i=this.width)?i:t.width,this.height=null!=(o=this.height)?o:t.height;const a=this.verticesX*this.verticesY,s=[],l=[],u=[],c=this.verticesX-1,d=this.verticesY-1,f=this.width/c,p=this.height/d;for(let e=0;e<a;e++){const t=e%this.verticesX,n=e/this.verticesX|0;s.push(t*f,n*p),l.push(t/c,n/d)}const h=c*d;for(let e=0;e<h;e++){const t=e%c,n=e/c|0,r=n*this.verticesX+t,i=n*this.verticesX+t+1,o=(n+1)*this.verticesX+t,a=(n+1)*this.verticesX+t+1;u.push(r,i,o,i,a,o)}this.buffers[0].data=new Float32Array(s),this.buffers[1].data=new Float32Array(l),this.indexBuffer.data=new Uint32Array(u),this.buffers[0].update(),this.buffers[1].update(),this.indexBuffer.update()}constructor(...e){var t;super({});let n=null!=(t=e[0])?t:{};"number"==typeof n&&($e(Ye,"PlaneGeometry constructor changed please use { width, height, verticesX, verticesY } instead"),n={width:n,height:e[1],verticesX:e[2],verticesY:e[3]}),this.build(n)}}).defaultOptions={width:100,height:100,verticesX:10,verticesY:10},Rd=kd}}),tf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite-nine-slice/NineSliceGeometry.mjs"(){ef(),(Id=class e extends Rd{update(e){var t,n,r,i,o,a,s,l;this.width=null!=(t=e.width)?t:this.width,this.height=null!=(n=e.height)?n:this.height,this._originalWidth=null!=(r=e.originalWidth)?r:this._originalWidth,this._originalHeight=null!=(i=e.originalHeight)?i:this._originalHeight,this._leftWidth=null!=(o=e.leftWidth)?o:this._leftWidth,this._rightWidth=null!=(a=e.rightWidth)?a:this._rightWidth,this._topHeight=null!=(s=e.topHeight)?s:this._topHeight,this._bottomHeight=null!=(l=e.bottomHeight)?l:this._bottomHeight,this.updateUvs(),this.updatePositions()}updatePositions(){const e=this.positions,t=this._leftWidth+this._rightWidth,n=this.width>t?1:this.width/t,r=this._topHeight+this._bottomHeight,i=this.height>r?1:this.height/r,o=Math.min(n,i);e[9]=e[11]=e[13]=e[15]=this._topHeight*o,e[17]=e[19]=e[21]=e[23]=this.height-this._bottomHeight*o,e[25]=e[27]=e[29]=e[31]=this.height,e[2]=e[10]=e[18]=e[26]=this._leftWidth*o,e[4]=e[12]=e[20]=e[28]=this.width-this._rightWidth*o,e[6]=e[14]=e[22]=e[30]=this.width,this.getBuffer("aPosition").update()}updateUvs(){const e=this.uvs;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1;const t=1/this._originalWidth,n=1/this._originalHeight;e[2]=e[10]=e[18]=e[26]=t*this._leftWidth,e[9]=e[11]=e[13]=e[15]=n*this._topHeight,e[4]=e[12]=e[20]=e[28]=1-t*this._rightWidth,e[17]=e[19]=e[21]=e[23]=1-n*this._bottomHeight,this.getBuffer("aUV").update()}constructor(t={}){super({width:(t=q(q({},e.defaultOptions),t)).width,height:t.height,verticesX:4,verticesY:4}),this.update(t)}}).defaultOptions={width:100,height:100,leftWidth:10,topHeight:10,rightWidth:10,bottomHeight:10,originalWidth:100,originalHeight:100},Od=Id}}),nf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite-nine-slice/NineSliceSpritePipe.mjs"(){_e(),vt(),Wa(),tf(),(Md=class{addRenderable(e,t){const n=this._getGpuSprite(e);e._didSpriteUpdate&&this._updateBatchableSprite(e,n),this._renderer.renderPipes.batch.addToBatch(n)}updateRenderable(e){const t=this._gpuSpriteHash[e.uid];e._didSpriteUpdate&&this._updateBatchableSprite(e,t),t.batcher.updateElement(t)}validateRenderable(e){const t=e._texture,n=this._getGpuSprite(e);return n.texture._source!==t._source&&!n.batcher.checkAndUpdateTexture(n,t)}destroyRenderable(e){const t=this._gpuSpriteHash[e.uid];it.return(t),this._gpuSpriteHash[e.uid]=null}_updateBatchableSprite(e,t){e._didSpriteUpdate=!1,t.geometry.update(e),t.texture=e._texture}_getGpuSprite(e){return this._gpuSpriteHash[e.uid]||this._initGPUSprite(e)}_initGPUSprite(e){const t=new za;return t.geometry=new Od,t.mesh=e,t.texture=e._texture,t.roundPixels=this._renderer._roundPixels|e._roundPixels,this._gpuSpriteHash[e.uid]=t,e.on("destroyed",(()=>{this.destroyRenderable(e)})),t}destroy(){for(const e in this._gpuSpriteHash)this._gpuSpriteHash[e].geometry.destroy();this._gpuSpriteHash=null,this._renderer=null}constructor(e){this._gpuSpriteHash=Object.create(null),this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"nineSliceSprite"}}}),rf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite-nine-slice/init.mjs"(){_e(),nf(),i.add(Md)}}),of=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/filters/FilterPipe.mjs"(){_e(),(jd=class{push(e,t,n){this._renderer.renderPipes.batch.break(n),n.add({renderPipeId:"filter",canBundle:!1,action:"pushFilter",container:t,filterEffect:e})}pop(e,t,n){this._renderer.renderPipes.batch.break(n),n.add({renderPipeId:"filter",action:"popFilter",canBundle:!1})}execute(e){"pushFilter"===e.action?this._renderer.filter.push(e):"popFilter"===e.action&&this._renderer.filter.pop()}destroy(){this._renderer=null}constructor(e){this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"filter"}}});function af(e,t){return t.clear(),sf(e,t),t.isValid||t.set(0,0,0,0),e.isRenderGroupRoot?t.applyMatrix(e.renderGroup.localTransform):t.applyMatrix(e.renderGroup.worldTransform),t}function sf(e,t){if(7!==e.localDisplayStatus||!e.measurable)return;const n=!!e.effects.length;let r=t;if((e.isRenderGroupRoot||n)&&(r=pt.get().clear()),e.boundsArea)t.addRect(e.boundsArea,e.worldTransform);else{if(e.renderPipeId){const t=e.bounds;r.addFrame(t.minX,t.minY,t.maxX,t.maxY,e.groupTransform)}const t=e.children;for(let e=0;e<t.length;e++)sf(t[e],r)}if(n){let n=!1;for(let t=0;t<e.effects.length;t++)e.effects[t].addBounds&&(n||(n=!0,r.applyMatrix(e.renderGroup.worldTransform)),e.effects[t].addBounds(r,!0));n&&(r.applyMatrix(e.renderGroup.worldTransform.copyTo(zd).invert()),t.addBounds(r,e.relativeGroupTransform)),t.addBounds(r),pt.return(r)}else e.isRenderGroupRoot&&(t.addBounds(r,e.relativeGroupTransform),pt.return(r))}var lf,uf,cf,df,ff,pf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/bounds/getFastGlobalBounds.mjs"(){Xe(),wt(),zd=new Be}}),hf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/bounds/getRenderableBounds.mjs"(){}}),mf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/filters/FilterSystem.mjs"(){_e(),Xe(),Ve(),go(),mo(),Ha(),mi(),Ya(),Uc(),_t(),pf(),hf(),Ot(),lf=new io({attributes:{aPosition:{buffer:new Float32Array([0,0,1,0,1,1,0,1]),location:0,format:"float32x2",stride:8,offset:0}},indexBuffer:new Uint32Array([0,1,2,0,2,3])}),(uf=class{get activeBackTexture(){var e;return null==(e=this._activeFilterData)?void 0:e.backTexture}push(e){var t,n;const r=this.renderer,i=e.filterEffect.filters;this._filterStack[this._filterStackIndex]||(this._filterStack[this._filterStackIndex]=this._getFilterData());const o=this._filterStack[this._filterStackIndex];if(this._filterStackIndex++,0===i.length)return void(o.skip=!0);const a=o.bounds;e.renderables?function(e,t){t.clear();const n=t.matrix;for(let r=0;r<e.length;r++){const n=e[r];n.globalDisplayStatus<7||(t.matrix=n.worldTransform,n.addBounds(t))}t.matrix=n}(e.renderables,a):e.filterEffect.filterArea?(a.clear(),a.addRect(e.filterEffect.filterArea),a.applyMatrix(e.container.worldTransform)):af(e.container,a);const s=r.renderTarget.rootRenderTarget.colorTexture.source;let l=s._resolution,u=0,c=s.antialias,d=!1,f=!1;for(let h=0;h<i.length;h++){const e=i[h];if(l=Math.min(l,e.resolution),u+=e.padding,"inherit"!==e.antialias&&(c="on"===e.antialias),!(e.compatibleRenderers&r.type)){f=!1;break}if(e.blendRequired&&null!=(n=null==(t=r.backBuffer)?void 0:t.useBackBuffer)&&!n){It("Blend filter requires backBuffer on WebGL renderer to be enabled. Set `useBackBuffer: true` in the renderer options."),f=!1;break}f=e.enabled||f,d=d||e.blendRequired}if(!f)return void(o.skip=!0);const p=r.renderTarget.rootViewPort;a.scale(l).fitBounds(0,p.width,0,p.height).scale(1/l).pad(u).ceil(),a.isPositive?(o.skip=!1,o.bounds=a,o.blendRequired=d,o.container=e.container,o.filterEffect=e.filterEffect,o.previousRenderSurface=r.renderTarget.renderSurface,o.inputTexture=Ua.getOptimalTexture(a.width,a.height,l,c),r.renderTarget.bind(o.inputTexture,!0),r.globalUniforms.push({offset:a})):o.skip=!0}pop(){const e=this.renderer;this._filterStackIndex--;const t=this._filterStack[this._filterStackIndex];if(t.skip)return;this._activeFilterData=t;const n=t.inputTexture,r=t.bounds;let i=ii.EMPTY;if(e.renderTarget.finishRenderPass(),t.blendRequired){const n=this._filterStackIndex>0?this._filterStack[this._filterStackIndex-1].bounds:null,o=e.renderTarget.getRenderTarget(t.previousRenderSurface);i=this.getBackTexture(o,r,n)}t.backTexture=i;const o=t.filterEffect.filters;if(this._globalFilterBindGroup.setResource(n.source.style,2),this._globalFilterBindGroup.setResource(i.source,3),e.globalUniforms.pop(),1===o.length)o[0].apply(this,n,t.previousRenderSurface,!1),Ua.returnTexture(n);else{let e=t.inputTexture,n=Ua.getOptimalTexture(r.width,r.height,e.source._resolution,!1),i=0;for(i=0;i<o.length-1;++i){o[i].apply(this,e,n,!0);const t=e;e=n,n=t}o[i].apply(this,e,t.previousRenderSurface,!1),Ua.returnTexture(e),Ua.returnTexture(n)}t.blendRequired&&Ua.returnTexture(i)}getBackTexture(e,t,n){const r=e.colorTexture.source._resolution,i=Ua.getOptimalTexture(t.width,t.height,r,!1);let o=t.minX,a=t.minY;n&&(o-=n.minX,a-=n.minY),o=Math.floor(o*r),a=Math.floor(a*r);const s=Math.ceil(t.width*r),l=Math.ceil(t.height*r);return this.renderer.renderTarget.copyToTexture(e,i,{x:o,y:a},{width:s,height:l},{x:0,y:0}),i}applyFilter(e,t,n,r){const i=this.renderer,o=this._filterStack[this._filterStackIndex],a=o.bounds,s=je.shared,l=o.previousRenderSurface===n;let u=this.renderer.renderTarget.rootRenderTarget.colorTexture.source._resolution,c=this._filterStackIndex-1;for(;c>0&&this._filterStack[c].skip;)--c;c>0&&(u=this._filterStack[c].inputTexture.source._resolution);const d=this._filterGlobalUniforms,f=d.uniforms,p=f.uOutputFrame,h=f.uInputSize,m=f.uInputPixel,A=f.uInputClamp,g=f.uGlobalFrame,v=f.uOutputTexture;if(l){let e=this._filterStackIndex;for(;e>0;){e--;const t=this._filterStack[this._filterStackIndex-1];if(!t.skip){s.x=t.bounds.minX,s.y=t.bounds.minY;break}}p[0]=a.minX-s.x,p[1]=a.minY-s.y}else p[0]=0,p[1]=0;p[2]=t.frame.width,p[3]=t.frame.height,h[0]=t.source.width,h[1]=t.source.height,h[2]=1/h[0],h[3]=1/h[1],m[0]=t.source.pixelWidth,m[1]=t.source.pixelHeight,m[2]=1/m[0],m[3]=1/m[1],A[0]=.5*m[2],A[1]=.5*m[3],A[2]=t.frame.width*h[2]-.5*m[2],A[3]=t.frame.height*h[3]-.5*m[3];const y=this.renderer.renderTarget.rootRenderTarget.colorTexture;g[0]=s.x*u,g[1]=s.y*u,g[2]=y.source.width*u,g[3]=y.source.height*u;const b=this.renderer.renderTarget.getRenderTarget(n);if(i.renderTarget.bind(n,!!r),n instanceof ii?(v[0]=n.frame.width,v[1]=n.frame.height):(v[0]=b.width,v[1]=b.height),v[2]=b.isRoot?-1:1,d.update(),i.renderPipes.uniformBatch){const e=i.renderPipes.uniformBatch.getUboResource(d);this._globalFilterBindGroup.setResource(e,0)}else this._globalFilterBindGroup.setResource(d,0);this._globalFilterBindGroup.setResource(t.source,1),this._globalFilterBindGroup.setResource(t.source.style,2),e.groups[0]=this._globalFilterBindGroup,i.encoder.draw({geometry:lf,shader:e,state:e._state,topology:"triangle-list"}),i.type===Rc.WEBGL&&i.renderTarget.finishRenderPass()}_getFilterData(){return{skip:!1,inputTexture:null,bounds:new dt,container:null,filterEffect:null,blendRequired:!1,previousRenderSurface:null}}calculateSpriteMatrix(e,t){const n=this._activeFilterData,r=e.set(n.inputTexture._source.width,0,0,n.inputTexture._source.height,n.bounds.minX,n.bounds.minY),i=t.worldTransform.copyTo(Be.shared);return i.invert(),r.prepend(i),r.scale(1/t.texture.frame.width,1/t.texture.frame.height),r.translate(t.anchor.x,t.anchor.y),r}constructor(e){this._filterStackIndex=0,this._filterStack=[],this._filterGlobalUniforms=new ja({uInputSize:{value:new Float32Array(4),type:"vec4<f32>"},uInputPixel:{value:new Float32Array(4),type:"vec4<f32>"},uInputClamp:{value:new Float32Array(4),type:"vec4<f32>"},uOutputFrame:{value:new Float32Array(4),type:"vec4<f32>"},uGlobalFrame:{value:new Float32Array(4),type:"vec4<f32>"},uOutputTexture:{value:new Float32Array(4),type:"vec4<f32>"}}),this._globalFilterBindGroup=new fo({}),this.renderer=e}}).extension={type:[t.WebGLSystem,t.WebGPUSystem],name:"filter"}}}),Af=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/filters/init.mjs"(){_e(),of(),mf(),i.add(uf),i.add(jd)}}),gf={},vf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/environment-browser/browserAll.mjs"(){or(),dr(),yr(),yi(),eo(),ka(),Xa(),Ml(),ed(),Hd(),Jd(),rf(),Af()}}),yf={},bf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/environment-webworker/webworkerAll.mjs"(){dr(),yi(),eo(),ka(),Xa(),Ml(),ed(),Hd(),Jd(),rf(),Af()}}),xf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/filters/Filter.mjs"(){Eu(),Lu(),Gc(),Sa(),(cf=class e extends Ic{apply(e,t,n,r){e.applyFilter(this,t,n,r)}get blendMode(){return this._state.blendMode}set blendMode(e){this._state.blendMode=e}static from(t){const n=t,{gpu:r,gl:i}=n,o=Y(n,["gpu","gl"]);let a,s;return r&&(a=Mu.from(r)),i&&(s=Su.from(i)),new e(q({gpuProgram:a,glProgram:s},o))}constructor(t){super(t=q(q({},e.defaultOptions),t)),this.enabled=!0,this._state=ya.for2d(),this.padding=t.padding,"boolean"==typeof t.antialias?this.antialias=t.antialias?"on":"off":this.antialias=t.antialias,this.resolution=t.resolution,this.blendRequired=t.blendRequired,this.addResource("uTexture",0,1)}}).defaultOptions={blendMode:"normal",resolution:1,padding:0,antialias:"off",blendRequired:!1},df=cf}});function Sf(){if("boolean"==typeof ff)return ff;try{const e=new Function("param1","param2","param3","return param1[param2] === param3;");ff=!0===e({a:"b"},"a","b")}catch(e){ff=!1}return ff}var _f,wf,Ef,Cf,Tf,Pf,kf,Rf,If,Of,Mf,jf,zf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/browser/unsafeEvalSupported.mjs"(){}}),Bf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/const.mjs"(){_f=(e=>(e[e.NONE=0]="NONE",e[e.COLOR=16384]="COLOR",e[e.STENCIL=1024]="STENCIL",e[e.DEPTH=256]="DEPTH",e[e.COLOR_DEPTH=16640]="COLOR_DEPTH",e[e.COLOR_STENCIL=17408]="COLOR_STENCIL",e[e.DEPTH_STENCIL=1280]="DEPTH_STENCIL",e[e.ALL=17664]="ALL",e))(_f||{})}}),Ff=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/system/SystemRunner.mjs"(){wf=class{emit(e,t,n,r,i,o,a,s){const{name:l,items:u}=this;for(let c=0,d=u.length;c<d;c++)u[c][l](e,t,n,r,i,o,a,s);return this}add(e){return e[this._name]&&(this.remove(e),this.items.push(e)),this}remove(e){const 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}constructor(e){this.items=[],this._name=e}}}}),Df=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/system/AbstractRenderer.mjs"(){Ge(),wn(),zf(),Je(),Bf(),Ff(),Ee(),Ef=["init","destroy","contextChange","resolutionChange","reset","renderEnd","renderStart","render","update","postrender","prerender"],Cf=class e extends a{init(){return te(this,arguments,(function*(t={}){for(const e in this._systemsHash){const n=this._systemsHash[e].constructor.defaultOptions;t=q(q({},n),t)}t=q(q({},e.defaultOptions),t),this._roundPixels=t.roundPixels?1:0;for(let e=0;e<this.runners.init.items.length;e++)yield this.runners.init.items[e].init(t);this._initOptions=t}))}render(e,t){let n=e;if(n instanceof en&&(n={container:n},t&&($e(Ye,"passing a second argument is deprecated, please use render options instead"),n.target=t.renderTexture)),n.target||(n.target=this.view.renderTarget),n.target===this.view.renderTarget&&(this._lastObjectRendered=n.container,n.clearColor=this.background.colorRgba),n.clearColor){const e=Array.isArray(n.clearColor)&&4===n.clearColor.length;n.clearColor=e?n.clearColor:ke.shared.setValue(n.clearColor).toArray()}n.transform||(n.container.updateLocalTransform(),n.transform=n.container.localTransform),this.runners.prerender.emit(n),this.runners.renderStart.emit(n),this.runners.render.emit(n),this.runners.renderEnd.emit(n),this.runners.postrender.emit(n)}resize(e,t,n){this.view.resize(e,t,n),this.emit("resize",this.view.screen.width,this.view.screen.height)}clear(e={}){e.target||(e.target=this.renderTarget.renderTarget),e.clearColor||(e.clearColor=this.background.colorRgba),null!=e.clear||(e.clear=_f.ALL);const{clear:t,clearColor:n,target:r}=e;ke.shared.setValue(null!=n?n:this.background.colorRgba),this.renderTarget.clear(r,t,ke.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(){return this.renderTarget.renderingToScreen}get screen(){return this.view.screen}_addRunners(...e){e.forEach((e=>{this.runners[e]=new wf(e)}))}_addSystems(e){let t;for(t in e){const n=e[t];this._addSystem(n.value,n.name)}}_addSystem(e,t){const n=new e(this);if(this[t])throw new Error(`Whoops! The name "${t}" is already in use`);this[t]=n,this._systemsHash[t]=n;for(const r in this.runners)this.runners[r].add(n);return this}_addPipes(e,t){const n=t.reduce(((e,t)=>(e[t.name]=t.value,e)),{});e.forEach((e=>{const t=e.value,r=e.name,i=n[r];this.renderPipes[r]=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(!Sf())throw new Error("Current environment does not allow unsafe-eval, please use pixi.js/unsafe-eval module to enable support.")}constructor(e){var t;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 n=[...Ef,...null!=(t=e.runners)?t:[]];this._addRunners(...n),this._addSystems(e.systems),this._addPipes(e.renderPipes,e.renderPipeAdaptors),this._unsafeEvalCheck()}},Cf.defaultOptions={resolution:1,failIfMajorPerformanceCaveat:!1,roundPixels:!1},Tf=Cf}}),Lf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/gpu/GpuGraphicsAdaptor.mjs"(){_e(),Xe(),xo(),vo(),yc(),bc(),Dc(),Vd(),Lc(),Gc(),Ha(),(Pf=class{init(){const e=new ja({uTransformMatrix:{value:new Be,type:"mat3x3<f32>"},uColor:{value:new Float32Array([1,1,1,1]),type:"vec4<f32>"},uRound:{value:0,type:"f32"}}),t=pc({name:"graphics",bits:[mc,_c(po),yd,Cc]});this.shader=new Ic({gpuProgram:t,resources:{localUniforms:e}})}execute(e,t){const n=t.context,r=n.customShader||this.shader,i=e.renderer,o=i.graphicsContext,{geometry:a,instructions:s}=o.getContextRenderData(n),l=i.encoder;l.setPipelineFromGeometryProgramAndState(a,r.gpuProgram,e.state),l.setGeometry(a);const u=i.globalUniforms.bindGroup;l.setBindGroup(0,u,r.gpuProgram);const c=i.renderPipes.uniformBatch.getUniformBindGroup(r.resources.localUniforms,!0);l.setBindGroup(2,c,r.gpuProgram);const d=s.instructions;for(let f=0;f<s.instructionSize;f++){const e=d[f];if(r.groups[1]=e.bindGroup,!e.gpuBindGroup){const t=e.textures;e.bindGroup=yo(t.textures,t.count),e.gpuBindGroup=i.bindGroup.getBindGroup(e.bindGroup,r.gpuProgram,1)}l.setBindGroup(1,e.bindGroup,r.gpuProgram),l.renderPassEncoder.drawIndexed(e.size,1,e.start)}}destroy(){this.shader.destroy(!0),this.shader=null}}).extension={type:[t.WebGPUPipesAdaptor],name:"graphics"}}}),Nf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/textureBit.mjs"(){kf={name:"texture-bit",vertex:{header:"\n\n struct TextureUniforms {\n uTextureMatrix:mat3x3<f32>,\n }\n\n @group(2) @binding(2) var<uniform> textureUniforms : TextureUniforms;\n ",main:"\n uv = (textureUniforms.uTextureMatrix * vec3(uv, 1.0)).xy;\n "},fragment:{header:"\n @group(2) @binding(0) var uTexture: texture_2d<f32>;\n @group(2) @binding(1) var uSampler: sampler;\n\n \n ",main:"\n outColor = textureSample(uTexture, uSampler, vUV);\n "}},Rf={name:"texture-bit",vertex:{header:"\n uniform mat3 uTextureMatrix;\n ",main:"\n uv = (uTextureMatrix * vec3(uv, 1.0)).xy;\n "},fragment:{header:"\n uniform sampler2D uTexture;\n\n \n ",main:"\n outColor = texture(uTexture, vUV);\n "}}}}),Uf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/mesh/gpu/GpuMeshAdapter.mjs"(){_e(),Xe(),yc(),Vd(),Lc(),Nf(),Gc(),mi(),Ot(),(If=class{init(){const e=pc({name:"mesh",bits:[vd,kf,Cc]});this._shader=new Ic({gpuProgram:e,resources:{uTexture:ii.EMPTY._source,uSampler:ii.EMPTY._source.style,textureUniforms:{uTextureMatrix:{type:"mat3x3<f32>",value:new Be}}}})}execute(e,t){const n=e.renderer;let r=t._shader;if(r){if(!r.gpuProgram)return void It("Mesh shader has no gpuProgram",t.shader)}else r=this._shader,r.resources.uTexture=t.texture.source,r.resources.uSampler=t.texture.source.style,r.resources.textureUniforms.uniforms.uTextureMatrix=t.texture.textureMatrix.mapCoord;const i=r.gpuProgram;if(i.autoAssignGlobalUniforms&&(r.groups[0]=n.globalUniforms.bindGroup),i.autoAssignLocalUniforms){const t=e.localUniforms;r.groups[1]=n.renderPipes.uniformBatch.getUniformBindGroup(t,!0)}n.encoder.draw({geometry:t._geometry,shader:r,state:t.state})}destroy(){this._shader.destroy(!0),this._shader=null}}).extension={type:[t.WebGPUPipesAdaptor],name:"mesh"}}}),Gf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/batcher/gpu/GpuBatchAdaptor.mjs"(){_e(),yc(),bc(),Dc(),Lc(),Gc(),Sa(),vo(),xo(),Of=ya.for2d(),(Mf=class{init(){const e=pc({name:"batch",bits:[mc,_c(po),Cc]});this._shader=new Ic({gpuProgram:e,groups:{}})}start(e,t){const n=e.renderer,r=n.encoder,i=this._shader.gpuProgram;this._geometry=t,r.setGeometry(t),Of.blendMode="normal",n.pipeline.getPipeline(t,i,Of);const o=n.globalUniforms.bindGroup;r.resetBindGroup(1),r.setBindGroup(0,o,i)}execute(e,t){const n=this._shader.gpuProgram,r=e.renderer,i=r.encoder;if(!t.bindGroup){const e=t.textures;t.bindGroup=yo(e.textures,e.count)}Of.blendMode=t.blendMode;const o=r.bindGroup.getBindGroup(t.bindGroup,n,1),a=r.pipeline.getPipeline(this._geometry,n,Of);t.bindGroup._touch(r.textureGC.count),i.setPipeline(a),i.renderPassEncoder.setBindGroup(1,o),i.renderPassEncoder.drawIndexed(t.size,1,t.start)}destroy(){this._shader.destroy(!0),this._shader=null}}).extension={type:[t.WebGPUPipesAdaptor],name:"batch"}}}),Hf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/CustomRenderPipe.mjs"(){_e(),(jf=class{addRenderable(e,t){this._renderer.renderPipes.batch.break(t),t.add(e)}execute(e){e.isRenderable&&e.render(this._renderer)}destroy(){this._renderer=null}constructor(e){this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"customRender"}}});function Wf(e,t){const n=e.instructionSet,r=n.instructions;for(let i=0;i<n.instructionSize;i++){const e=r[i];t[e.renderPipeId].execute(e)}}var Vf,Xf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/utils/executeInstructions.mjs"(){}}),Kf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/RenderGroupPipe.mjs"(){_e(),Xf(),(Vf=class{addRenderGroup(e,t){this._renderer.renderPipes.batch.break(t),t.add(e)}execute(e){e.isRenderable&&(this._renderer.globalUniforms.push({worldTransformMatrix:e.worldTransform,worldColor:e.worldColorAlpha}),Wf(e,this._renderer.renderPipes),this._renderer.globalUniforms.pop())}destroy(){this._renderer=null}constructor(e){this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"renderGroup"}}});function qf(e,t){const n=e.root,r=e.instructionSet;r.reset(),t.batch.buildStart(r),t.blendMode.buildStart(),t.colorMask.buildStart(),n.sortableChildren&&n.sortChildren(),Yf(n,r,t,!0),t.batch.buildEnd(r),t.blendMode.buildEnd(r)}function Qf(e,t,n){e.globalDisplayStatus<7||!e.includeInBuild||(e.sortableChildren&&e.sortChildren(),e.isSimple?function(e,t,n){if(e.renderPipeId&&(n.blendMode.setBlendMode(e,e.groupBlendMode,t),e.didViewUpdate=!1,n[e.renderPipeId].addRenderable(e,t)),!e.isRenderGroupRoot){const r=e.children,i=r.length;for(let e=0;e<i;e++)Qf(r[e],t,n)}}(e,t,n):Yf(e,t,n,!1))}function Yf(e,t,n,r){if(!r&&e.isRenderGroupRoot)n.renderGroup.addRenderGroup(e.renderGroup,t);else{for(let o=0;o<e.effects.length;o++){const r=e.effects[o];n[r.pipe].push(r,e,t)}const r=e.renderPipeId;r&&(n.blendMode.setBlendMode(e,e.groupBlendMode,t),e.didViewUpdate=!1,n[r].addRenderable(e,t));const i=e.children;if(i.length)for(let e=0;e<i.length;e++)Qf(i[e],t,n);for(let o=e.effects.length-1;o>=0;o--){const r=e.effects[o];n[r.pipe].pop(r,e,t)}}}var Zf=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/utils/buildInstructions.mjs"(){}});function $f(e,t=[]){t.push(e);for(let n=0;n<e.renderGroupChildren.length;n++)$f(e.renderGroupChildren[n],t);return t}var Jf,ep=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/utils/collectRenderGroups.mjs"(){}}),tp=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/utils/mixHexColors.mjs"(){}});function np(e,t){return e===Jf||t===Jf?e+t-Jf:function(e,t,n){const r=e>>16&255,i=e>>8&255,o=255&e;return(r+((t>>16&255)-r)*n<<16)+(i+((t>>8&255)-i)*n<<8)+(o+((255&t)-o)*n)}(e,t,.5)}var rp,ip=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/utils/mixColors.mjs"(){tp(),Jf=16777215}});function op(e,t=!1){!function(e){const t=e.root;let n;if(e.renderGroupParent){const r=e.renderGroupParent;e.worldTransform.appendFrom(t.relativeGroupTransform,r.worldTransform),e.worldColor=np(t.groupColor,r.worldColor),n=t.groupAlpha*r.worldAlpha}else e.worldTransform.copyFrom(t.localTransform),e.worldColor=t.localColor,n=t.localAlpha;n=n<0?0:n>1?1:n,e.worldAlpha=n,e.worldColorAlpha=e.worldColor+(255*n<<24)}(e);const n=e.childrenToUpdate,r=e.updateTick;e.updateTick++;for(const i in n){const e=n[i],t=e.list,o=e.index;for(let n=0;n<o;n++)ap(t[n],r,0);e.index=0}if(t)for(let i=0;i<e.renderGroupChildren.length;i++)op(e.renderGroupChildren[i],t)}function ap(e,t,n){if(t===e.updateTick)return;e.updateTick=t,e.didChange=!1;const r=e.localTransform;e.updateLocalTransform();const i=e.parent;if(i&&!i.isRenderGroupRoot?(n|=e._updateFlags,e.relativeGroupTransform.appendFrom(r,i.relativeGroupTransform),n&&sp(e,i,n)):(n=e._updateFlags,e.relativeGroupTransform.copyFrom(r),n&&sp(e,rp,n)),!e.isRenderGroupRoot){const r=e.children,i=r.length;for(let e=0;e<i;e++)ap(r[e],t,n);const o=e.renderGroup;e.renderPipeId&&!o.structureDidChange&&o.updateRenderable(e)}}function sp(e,t,n){if(n&Zt){e.groupColor=np(e.localColor,t.groupColor);let n=e.localAlpha*t.groupAlpha;n=n<0?0:n>1?1:n,e.groupAlpha=n,e.groupColorAlpha=e.groupColor+(255*n<<24)}n&$t&&(e.groupBlendMode="inherit"===e.localBlendMode?t.groupBlendMode:e.localBlendMode),n&Jt&&(e.globalDisplayStatus=e.localDisplayStatus&t.globalDisplayStatus),e._updateFlags=0}var lp=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/utils/updateRenderGroupTransforms.mjs"(){wn(),ip(),rp=new en}});function up(e,t){const{list:n,index:r}=e.childrenRenderablesToUpdate;let i=!1;for(let o=0;o<r;o++){const e=n[o];if(i=t[e.renderPipeId].validateRenderable(e),i)break}return e.structureDidChange=i,i}var cp,dp,fp=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/utils/validateRenderables.mjs"(){}});function pp(e){const{list:t,index:n}=e.childrenRenderablesToUpdate;for(let r=0;r<n;r++){const n=t[r];n.didViewUpdate&&e.updateRenderable(n)}}var hp,mp,Ap,gp,vp,yp,bp,xp,Sp,_p,wp,Ep,Cp,Tp,Pp,kp,Rp,Ip,Op,Mp,jp,zp,Bp,Fp,Dp,Lp,Np,Up,Gp,Hp,Wp,Vp,Xp=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/container/RenderGroupSystem.mjs"(){_e(),Xe(),Zf(),ep(),Xf(),lp(),fp(),cp=new Be,(dp=class{render({container:e,transform:t}){e.isRenderGroup=!0;const n=e.parent,r=e.renderGroup.renderGroupParent;e.parent=null,e.renderGroup.renderGroupParent=null;const i=this._renderer,o=$f(e.renderGroup,[]);let a=cp;t&&(a=a.copyFrom(e.renderGroup.localTransform),e.renderGroup.localTransform.copyFrom(t));const s=i.renderPipes;for(let l=0;l<o.length;l++){const e=o[l];e.runOnRender(),e.instructionSet.renderPipes=s,e.structureDidChange||up(e,s),op(e),e.structureDidChange?(e.structureDidChange=!1,qf(e,s)):pp(e),e.childrenRenderablesToUpdate.index=0,i.renderPipes.batch.upload(e.instructionSet)}i.globalUniforms.start({worldTransformMatrix:t?e.renderGroup.localTransform:e.renderGroup.worldTransform,worldColor:e.renderGroup.worldColorAlpha}),Wf(e.renderGroup,s),s.uniformBatch&&s.uniformBatch.renderEnd(),t&&e.renderGroup.localTransform.copyFrom(a),e.parent=n,e.renderGroup.renderGroupParent=r}destroy(){this._renderer=null}constructor(e){this._renderer=e}}).extension={type:[t.WebGLSystem,t.WebGPUSystem,t.CanvasSystem],name:"renderGroup"}}}),Kp=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite/SpritePipe.mjs"(){_e(),vt(),Ka(),(hp=class{addRenderable(e,t){const n=this._getGpuSprite(e);e._didSpriteUpdate&&this._updateBatchableSprite(e,n),this._renderer.renderPipes.batch.addToBatch(n)}updateRenderable(e){const t=this._gpuSpriteHash[e.uid];e._didSpriteUpdate&&this._updateBatchableSprite(e,t),t.batcher.updateElement(t)}validateRenderable(e){const t=e._texture,n=this._getGpuSprite(e);return n.texture._source!==t._source&&!n.batcher.checkAndUpdateTexture(n,t)}destroyRenderable(e){const t=this._gpuSpriteHash[e.uid];it.return(t),this._gpuSpriteHash[e.uid]=null}_updateBatchableSprite(e,t){e._didSpriteUpdate=!1,t.bounds=e.bounds,t.texture=e._texture}_getGpuSprite(e){return this._gpuSpriteHash[e.uid]||this._initGPUSprite(e)}_initGPUSprite(e){const t=it.get(Fa);return t.renderable=e,t.texture=e._texture,t.bounds=e.bounds,t.roundPixels=this._renderer._roundPixels|e._roundPixels,this._gpuSpriteHash[e.uid]=t,e._didSpriteUpdate=!1,e.on("destroyed",(()=>{this.destroyRenderable(e)})),t}destroy(){for(const e in this._gpuSpriteHash)it.return(this._gpuSpriteHash[e]);this._gpuSpriteHash=null,this._renderer=null}constructor(e){this._gpuSpriteHash=Object.create(null),this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"sprite"}}}),qp=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/batcher/shared/BatcherPipe.mjs"(){_e(),Sa(),Ao(),Bo(),(mp=class{buildStart(e){if(!this._batches[e.uid]){const t=new Mo;this._batches[e.uid]=t,this._geometries[t.uid]=new co}this._activeBatch=this._batches[e.uid],this._activeGeometry=this._geometries[this._activeBatch.uid],this._activeBatch.begin()}addToBatch(e){this._activeBatch.add(e)}break(e){this._activeBatch.break(e)}buildEnd(e){const t=this._activeBatch,n=this._activeGeometry;t.finish(e),n.indexBuffer.setDataWithSize(t.indexBuffer,t.indexSize,!0),n.buffers[0].setDataWithSize(t.attributeBuffer.float32View,t.attributeSize,!1)}upload(e){const t=this._batches[e.uid],n=this._geometries[t.uid];t.dirty&&(t.dirty=!1,n.buffers[0].update(4*t.attributeSize))}execute(e){if("startBatch"===e.action){const t=e.batcher,n=this._geometries[t.uid];this._adaptor.start(this,n)}this._adaptor.execute(this,e)}destroy(){this.state=null,this.renderer=null,this._adaptor.destroy(),this._adaptor=null;for(const e in this._batches)this._batches[e].destroy();this._batches=null;for(const e in this._geometries)this._geometries[e].destroy();this._geometries=null}constructor(e,t){this.state=ya.for2d(),this._batches=Object.create(null),this._geometries=Object.create(null),this.renderer=e,this._adaptor=t,this._adaptor.init(this)}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"batch"}}}),Qp=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/filters/mask/mask.frag.mjs"(){Ap="in vec2 vMaskCoord;\nin vec2 vTextureCoord;\n\nuniform sampler2D uTexture;\nuniform sampler2D uMaskTexture;\n\nuniform float uAlpha;\nuniform vec4 uMaskClamp;\n\nout vec4 finalColor;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(uMaskClamp.x, vMaskCoord.x) +\n step(uMaskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, uMaskClamp.z) +\n step(vMaskCoord.y, uMaskClamp.w));\n\n // TODO look into why this is needed\n float npmAlpha = uAlpha; \n vec4 original = texture(uTexture, vTextureCoord);\n vec4 masky = texture(uMaskTexture, vMaskCoord);\n float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);\n\n original *= (alphaMul * masky.r * uAlpha * clip);\n\n finalColor = original;\n}\n"}}),Yp=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/filters/mask/mask.vert.mjs"(){gp="in vec2 aPosition;\n\nout vec2 vTextureCoord;\nout vec2 vMaskCoord;\n\n\nuniform vec4 uInputSize;\nuniform vec4 uOutputFrame;\nuniform vec4 uOutputTexture;\nuniform mat3 uFilterMatrix;\n\nvec4 filterVertexPosition( vec2 aPosition )\n{\n vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy;\n \n position.x = position.x * (2.0 / uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( vec2 aPosition )\n{\n return aPosition * (uOutputFrame.zw * uInputSize.zw);\n}\n\nvec2 getFilterCoord( vec2 aPosition )\n{\n return ( uFilterMatrix * vec3( filterTextureCoord(aPosition), 1.0) ).xy;\n} \n\nvoid main(void)\n{\n gl_Position = filterVertexPosition(aPosition);\n vTextureCoord = filterTextureCoord(aPosition);\n vMaskCoord = getFilterCoord(aPosition);\n}\n"}}),Zp=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/filters/mask/mask.wgsl.mjs"(){vp="struct 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 MaskUniforms {\n uFilterMatrix:mat3x3<f32>,\n uMaskClamp:vec4<f32>,\n uAlpha:f32,\n};\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> filterUniforms : MaskUniforms;\n@group(1) @binding(1) var uMaskTexture: texture_2d<f32>;\n\nstruct VSOutput {\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>,\n @location(1) filterUv : vec2<f32>,\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 getFilterCoord(aPosition:vec2<f32> ) -> vec2<f32>\n{\n return ( filterUniforms.uFilterMatrix * vec3( filterTextureCoord(aPosition), 1.0) ).xy;\n}\n\nfn getSize() -> vec2<f32>\n{\n\n \n return gfu.uGlobalFrame.zw;\n}\n \n@vertex\nfn mainVertex(\n @location(0) aPosition : vec2<f32>, \n) -> VSOutput {\n return VSOutput(\n filterVertexPosition(aPosition),\n filterTextureCoord(aPosition),\n getFilterCoord(aPosition)\n );\n}\n\n@fragment\nfn mainFragment(\n @location(0) uv: vec2<f32>,\n @location(1) filterUv: vec2<f32>,\n @builtin(position) position: vec4<f32>\n) -> @location(0) vec4<f32> {\n\n var maskClamp = filterUniforms.uMaskClamp;\n\n var clip = step(3.5,\n step(maskClamp.x, filterUv.x) +\n step(maskClamp.y, filterUv.y) +\n step(filterUv.x, maskClamp.z) +\n step(filterUv.y, maskClamp.w));\n\n var mask = textureSample(uMaskTexture, uSampler, filterUv);\n var source = textureSample(uTexture, uSampler, uv);\n \n var npmAlpha = 0.0;\n\n var alphaMul = 1.0 - npmAlpha * (1.0 - mask.a);\n\n var a = (alphaMul * mask.r) * clip;\n\n return vec4(source.rgb, source.a) * a;\n}"}}),$p=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/filters/mask/MaskFilter.mjs"(){Xe(),Eu(),Lu(),Ha(),hi(),xf(),Qp(),Yp(),Zp(),yp=class extends df{apply(e,t,n,r){this._textureMatrix.texture=this.sprite.texture,e.calculateSpriteMatrix(this.resources.filterUniforms.uniforms.uFilterMatrix,this.sprite).prepend(this._textureMatrix.mapCoord),this.resources.uMaskTexture=this.sprite.texture.source,e.applyFilter(this,t,n,r)}constructor(e){const t=e,{sprite:n}=t,r=Y(t,["sprite"]),i=new ri(n.texture),o=new ja({uFilterMatrix:{value:new Be,type:"mat3x3<f32>"},uMaskClamp:{value:i.uClampFrame,type:"vec4<f32>"},uAlpha:{value:1,type:"f32"}}),a=Mu.from({vertex:{source:vp,entryPoint:"mainVertex"},fragment:{source:vp,entryPoint:"mainFragment"}}),s=Su.from({vertex:gp,fragment:Ap,name:"mask-filter"});super(Q(q({},r),{gpuProgram:a,glProgram:s,resources:{filterUniforms:o,uMaskTexture:n.texture.source}})),this.sprite=n,this._textureMatrix=i}}}}),Jp=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/mask/alpha/AlphaMaskPipe.mjs"(){_e(),At(),$p(),_t(),Rt(),Zf(),wi(),vt(),mi(),Ya(),bp=new dt,xp=class extends nt{get sprite(){return this.filters[0].sprite}set sprite(e){this.filters[0].sprite=e}constructor(){super({filters:[new yp({sprite:new xi(ii.EMPTY)})]})}},(Sp=class{push(e,t,n){const r=this._renderer;if(r.renderPipes.batch.break(n),n.add({renderPipeId:"alphaMask",action:"pushMaskBegin",mask:e,canBundle:!1,maskedContainer:t}),e.renderMaskToTexture){const t=e.mask;t.includeInBuild=!0,Qf(t,n,r.renderPipes),t.includeInBuild=!1}r.renderPipes.batch.break(n),n.add({renderPipeId:"alphaMask",action:"pushMaskEnd",mask:e,maskedContainer:t,canBundle:!1})}pop(e,t,n){this._renderer.renderPipes.batch.break(n),n.add({renderPipeId:"alphaMask",action:"popMaskEnd",mask:e,canBundle:!1})}execute(e){const t=this._renderer,n=e.mask.renderMaskToTexture;if("pushMaskBegin"===e.action){const r=it.get(xp);if(n){e.mask.mask.measurable=!0;const n=Et(e.mask.mask,!0,bp);e.mask.mask.measurable=!1,n.ceil();const i=Ua.getOptimalTexture(n.width,n.height,1,!1);t.renderTarget.push(i,!0),t.globalUniforms.push({offset:n,worldColor:4294967295});const o=r.sprite;o.texture=i,o.worldTransform.tx=n.minX,o.worldTransform.ty=n.minY,this._activeMaskStage.push({filterEffect:r,maskedContainer:e.maskedContainer,filterTexture:i})}else r.sprite=e.mask.mask,this._activeMaskStage.push({filterEffect:r,maskedContainer:e.maskedContainer})}else if("pushMaskEnd"===e.action){const e=this._activeMaskStage[this._activeMaskStage.length-1];n&&(t.renderTarget.pop(),t.globalUniforms.pop()),t.filter.push({renderPipeId:"filter",action:"pushFilter",container:e.maskedContainer,filterEffect:e.filterEffect,canBundle:!1})}else if("popMaskEnd"===e.action){t.filter.pop();const e=this._activeMaskStage.pop();n&&Ua.returnTexture(e.filterTexture),it.return(e.filterEffect)}}destroy(){this._renderer=null,this._activeMaskStage=null}constructor(e){this._activeMaskStage=[],this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"alphaMask"}}}),eh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/mask/color/ColorMaskPipe.mjs"(){_e(),(_p=class{buildStart(){this._colorStack[0]=15,this._colorStackIndex=1,this._currentColor=15}push(e,t,n){this._renderer.renderPipes.batch.break(n);const r=this._colorStack;r[this._colorStackIndex]=r[this._colorStackIndex-1]&e.mask;const i=this._colorStack[this._colorStackIndex];i!==this._currentColor&&(this._currentColor=i,n.add({renderPipeId:"colorMask",colorMask:i,canBundle:!1})),this._colorStackIndex++}pop(e,t,n){this._renderer.renderPipes.batch.break(n);const r=this._colorStack;this._colorStackIndex--;const i=r[this._colorStackIndex-1];i!==this._currentColor&&(this._currentColor=i,n.add({renderPipeId:"colorMask",colorMask:i,canBundle:!1}))}execute(e){this._renderer.colorMask.setMask(e.colorMask)}destroy(){this._colorStack=null}constructor(e){this._colorStack=[],this._colorStackIndex=0,this._currentColor=0,this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"colorMask"}}}),th=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/mask/stencil/StencilMaskPipe.mjs"(){_e(),Zf(),Bf(),To(),(wp=class{push(e,t,n){var r;const i=e,o=this._renderer;o.renderPipes.batch.break(n),o.renderPipes.blendMode.setBlendMode(i.mask,"none",n),n.add({renderPipeId:"stencilMask",action:"pushMaskBegin",mask:e,canBundle:!1});const a=i.mask;a.includeInBuild=!0,this._maskHash.has(i)||this._maskHash.set(i,{instructionsStart:0,instructionsLength:0});const s=this._maskHash.get(i);s.instructionsStart=n.instructionSize,Qf(a,n,o.renderPipes),a.includeInBuild=!1,o.renderPipes.batch.break(n),n.add({renderPipeId:"stencilMask",action:"pushMaskEnd",mask:e,canBundle:!1});const l=n.instructionSize-s.instructionsStart-1;s.instructionsLength=l;const u=o.renderTarget.renderTarget.uid;null!=(r=this._maskStackHash)[u]||(r[u]=0)}pop(e,t,n){const r=e,i=this._renderer;i.renderPipes.batch.break(n),i.renderPipes.blendMode.setBlendMode(r.mask,"none",n),n.add({renderPipeId:"stencilMask",action:"popMaskBegin",canBundle:!1});const o=this._maskHash.get(e);for(let a=0;a<o.instructionsLength;a++)n.instructions[n.instructionSize++]=n.instructions[o.instructionsStart++];n.add({renderPipeId:"stencilMask",action:"popMaskEnd",canBundle:!1})}execute(e){var t,n;const r=this._renderer,i=r.renderTarget.renderTarget.uid;let o=null!=(t=(n=this._maskStackHash)[i])?t:n[i]=0;"pushMaskBegin"===e.action?(r.renderTarget.ensureDepthStencil(),r.stencil.setStencilMode(Eo.RENDERING_MASK_ADD,o),o++,r.colorMask.setMask(0)):"pushMaskEnd"===e.action?(r.stencil.setStencilMode(Eo.MASK_ACTIVE,o),r.colorMask.setMask(15)):"popMaskBegin"===e.action?(r.colorMask.setMask(0),0!==o?r.stencil.setStencilMode(Eo.RENDERING_MASK_REMOVE,o):(r.renderTarget.clear(null,_f.STENCIL),r.stencil.setStencilMode(Eo.DISABLED,o)),o--):"popMaskEnd"===e.action&&(r.stencil.setStencilMode(Eo.MASK_ACTIVE,o),r.colorMask.setMask(15)),this._maskStackHash[i]=o}destroy(){this._renderer=null,this._maskStackHash=null,this._maskHash=null}constructor(e){this._maskStackHash={},this._maskHash=new WeakMap,this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"stencilMask"}}}),nh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/background/BackgroundSystem.mjs"(){Ge(),_e(),(Ep=class e{init(t){t=q(q({},e.defaultOptions),t),this.clearBeforeRender=t.clearBeforeRender,this.color=t.background||t.backgroundColor||this._backgroundColor,this.alpha=t.backgroundAlpha,this._backgroundColor.setAlpha(t.backgroundAlpha)}get color(){return this._backgroundColor}set color(e){this._backgroundColor.setValue(e)}get alpha(){return this._backgroundColor.alpha}set alpha(e){this._backgroundColor.setAlpha(e)}get colorRgba(){return this._backgroundColor.toArray()}destroy(){}constructor(){this.clearBeforeRender=!0,this._backgroundColor=new ke(0),this.color=this._backgroundColor,this.alpha=1}}).extension={type:[t.WebGLSystem,t.WebGPUSystem,t.CanvasSystem],name:"background",priority:0},Ep.defaultOptions={backgroundAlpha:1,backgroundColor:0,clearBeforeRender:!0},Cp=Ep}}),rh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/blendModes/BlendModePipe.mjs"(){_e(),At(),Ot(),Tp={},i.handle(t.BlendMode,(e=>{if(!e.name)throw new Error("BlendMode extension must have a name property");Tp[e.name]=e.ref}),(e=>{delete Tp[e.name]})),(Pp=class{setBlendMode(e,t,n){this._activeBlendMode!==t?(this._activeBlendMode=t,this._isAdvanced&&this._endAdvancedBlendMode(n),this._isAdvanced=!!Tp[t],this._isAdvanced&&(this._beginAdvancedBlendMode(n),this._renderableList.push(e))):this._isAdvanced&&this._renderableList.push(e)}_beginAdvancedBlendMode(e){this._renderer.renderPipes.batch.break(e);const t=this._activeBlendMode;if(!Tp[t])return void It(`Unable to assign BlendMode: '${t}'. You may want to include: import 'pixi.js/advanced-blend-modes'`);this._filterHash[t]||(this._filterHash[t]=new nt({filters:[new Tp[t]]}));const n={renderPipeId:"filter",action:"pushFilter",renderables:[],filterEffect:this._filterHash[t],canBundle:!1};this._renderableList=n.renderables,e.add(n)}_endAdvancedBlendMode(e){this._renderableList=null,this._renderer.renderPipes.batch.break(e),e.add({renderPipeId:"filter",action:"popFilter",canBundle:!1})}buildStart(){this._isAdvanced=!1}buildEnd(e){this._isAdvanced&&this._endAdvancedBlendMode(e)}destroy(){this._renderer=null,this._renderableList=null;for(const e in this._filterHash)this._filterHash[e].destroy();this._filterHash=null}constructor(e){this._isAdvanced=!1,this._filterHash=Object.create(null),this._renderer=e}}).extension={type:[t.WebGLPipes,t.WebGPUPipes,t.CanvasPipes],name:"blendMode"}}}),ih=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/extract/ExtractSystem.mjs"(){_e(),wn(),mi(),kp={png:"image/png",jpg:"image/jpeg",webp:"image/webp"},(Rp=class e{_normalizeOptions(e,t={}){return e instanceof en||e instanceof ii?q({target:e},t):q(q({},t),e)}image(e){return te(this,null,(function*(){const t=new Image;return t.src=yield this.base64(e),t}))}base64(t){return te(this,null,(function*(){t=this._normalizeOptions(t,e.defaultImageOptions);const{format:n,quality:r}=t,i=this.canvas(t);if(void 0!==i.toBlob)return new Promise(((e,t)=>{i.toBlob((n=>{if(!n)return void t(new Error("ICanvas.toBlob failed!"));const r=new FileReader;r.onload=()=>e(r.result),r.onerror=t,r.readAsDataURL(n)}),kp[n],r)}));if(void 0!==i.toDataURL)return i.toDataURL(kp[n],r);if(void 0!==i.convertToBlob){const e=yield i.convertToBlob({type:kp[n],quality:r});return new Promise(((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=n,r.readAsDataURL(e)}))}throw new Error("Extract.base64() requires ICanvas.toDataURL, ICanvas.toBlob, or ICanvas.convertToBlob to be implemented")}))}canvas(e){const t=(e=this._normalizeOptions(e)).target,n=this._renderer;if(t instanceof ii)return n.texture.generateCanvas(t);const r=n.textureGenerator.generateTexture(e),i=n.texture.generateCanvas(r);return r.destroy(),i}pixels(e){const t=(e=this._normalizeOptions(e)).target,n=this._renderer,r=t instanceof ii?t:n.textureGenerator.generateTexture(e),i=n.texture.getPixels(r);return t instanceof en&&r.destroy(),i}texture(e){return(e=this._normalizeOptions(e)).target instanceof ii?e.target:this._renderer.textureGenerator.generateTexture(e)}download(e){var t;e=this._normalizeOptions(e);const n=this.canvas(e),r=document.createElement("a");r.download=null!=(t=e.filename)?t:"image.png",r.href=n.toDataURL("image/png"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}log(e){var t;const n=null!=(t=e.width)?t:200;e=this._normalizeOptions(e);const r=this.canvas(e),i=r.toDataURL();console.log(`[Pixi Texture] ${r.width}px ${r.height}px`);const o=["font-size: 1px;",`padding: ${n}px 300px;`,`background: url(${i}) no-repeat;`,"background-size: contain;"].join(" ");console.log("%c ",o)}destroy(){this._renderer=null}constructor(e){this._renderer=e}}).extension={type:[t.WebGLSystem,t.WebGPUSystem],name:"extract"},Rp.defaultImageOptions={format:"png",quality:1},Ip=Rp}}),oh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/RenderTexture.mjs"(){fi(),mi(),Op=class extends ii{static create(e){return new ii({source:new ei(e)})}resize(e,t,n){return this.source.resize(e,t,n),this}}}}),ah=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/extract/GenerateTextureSystem.mjs"(){Ge(),_e(),Xe(),St(),_t(),zt(),wn(),oh(),Mp=new ut,jp=new dt,zp=[0,0,0,0],(Bp=class{generateTexture(e){var t;e instanceof en&&(e={target:e,frame:void 0,textureSourceOptions:{},resolution:void 0});const n=e.resolution||this._renderer.resolution,r=e.antialias||this._renderer.view.antialias,i=e.target;let o=e.clearColor;o=o?Array.isArray(o)&&4===o.length?o:ke.shared.setValue(o).toArray():zp;const a=(null==(t=e.frame)?void 0:t.copyTo(Mp))||Mt(i,jp).rectangle;a.width=0|Math.max(a.width,1/n),a.height=0|Math.max(a.height,1/n);const s=Op.create(Q(q({},e.textureSourceOptions),{width:a.width,height:a.height,resolution:n,antialias:r})),l=Be.shared.translate(-a.x,-a.y);return this._renderer.render({container:i,transform:l,target:s,clearColor:o}),s}destroy(){this._renderer=null}constructor(e){this._renderer=e}}).extension={type:[t.WebGLSystem,t.WebGPUSystem],name:"textureGenerator"}}}),sh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/renderTarget/GlobalUniformSystem.mjs"(){_e(),Xe(),Ve(),Ta(),go(),Uc(),Ha(),(Fp=class{reset(){this._stackIndex=0;for(let e=0;e<this._activeUniforms.length;e++)this._uniformsPool.push(this._activeUniforms[e]);for(let e=0;e<this._activeBindGroups.length;e++)this._bindGroupPool.push(this._activeBindGroups[e]);this._activeUniforms.length=0,this._activeBindGroups.length=0}start(e){this.reset(),this.push(e)}bind({size:e,projectionMatrix:t,worldTransformMatrix:n,worldColor:r,offset:i}){const o=this._renderer.renderTarget.renderTarget,a=this._stackIndex?this._globalUniformDataStack[this._stackIndex-1]:{projectionData:o,worldTransformMatrix:new Be,worldColor:4294967295,offset:new je},s={projectionMatrix:t||this._renderer.renderTarget.projectionMatrix,resolution:e||o.size,worldTransformMatrix:n||a.worldTransformMatrix,worldColor:r||a.worldColor,offset:i||a.offset,bindGroup:null},l=this._uniformsPool.pop()||this._createUniforms();this._activeUniforms.push(l);const u=l.uniforms;let c;u.uProjectionMatrix=s.projectionMatrix,u.uResolution=s.resolution,u.uWorldTransformMatrix.copyFrom(s.worldTransformMatrix),u.uWorldTransformMatrix.tx-=s.offset.x,u.uWorldTransformMatrix.ty-=s.offset.y,_a(s.worldColor,u.uWorldColorAlpha,0),l.update(),this._renderer.renderPipes.uniformBatch?c=this._renderer.renderPipes.uniformBatch.getUniformBindGroup(l,!1):(c=this._bindGroupPool.pop()||new fo,this._activeBindGroups.push(c),c.setResource(l,0)),s.bindGroup=c,this._currentGlobalUniformData=s}push(e){this.bind(e),this._globalUniformDataStack[this._stackIndex++]=this._currentGlobalUniformData}pop(){this._currentGlobalUniformData=this._globalUniformDataStack[--this._stackIndex-1],this._renderer.type===Rc.WEBGL&&this._currentGlobalUniformData.bindGroup.resources[0].update()}get bindGroup(){return this._currentGlobalUniformData.bindGroup}get uniformGroup(){return this._currentGlobalUniformData.bindGroup.resources[0]}_createUniforms(){return new ja({uProjectionMatrix:{value:new Be,type:"mat3x3<f32>"},uWorldTransformMatrix:{value:new Be,type:"mat3x3<f32>"},uWorldColorAlpha:{value:new Float32Array(4),type:"vec4<f32>"},uResolution:{value:[0,0],type:"vec2<f32>"}},{isStatic:!0})}destroy(){this._renderer=null}constructor(e){this._stackIndex=0,this._globalUniformDataStack=[],this._uniformsPool=[],this._activeUniforms=[],this._bindGroupPool=[],this._activeBindGroups=[],this._renderer=e}}).extension={type:[t.WebGLSystem,t.WebGPUSystem,t.CanvasSystem],name:"globalUniforms"}}}),lh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/utils/sayHello.mjs"(){Sr(),Dp=!1,Lp="8.1.1"}}),uh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/startup/HelloSystem.mjs"(){_e(),lh(),Uc(),(Np=class{init(e){if(e.hello){let e=this._renderer.name;this._renderer.type===Rc.WEBGL&&(e+=` ${this._renderer.context.webGLVersion}`),function(e){if(!Dp){if($n.get().getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){const t=[`%c %c %c %c %c PixiJS %c v${Lp} (${e}) http://www.pixijs.com/\n\n`,"background: #E72264; padding:5px 0;","background: #6CA2EA; padding:5px 0;","background: #B5D33D; padding:5px 0;","background: #FED23F; padding:5px 0;","color: #FFFFFF; background: #E72264; padding:5px 0;","color: #E72264; background: #FFFFFF; padding:5px 0;"];globalThis.console.log(...t)}else globalThis.console&&globalThis.console.log(`PixiJS ${Lp} - ${e} - http://www.pixijs.com/`);Dp=!0}}(e)}}constructor(e){this._renderer=e}}).extension={type:[t.WebGLSystem,t.WebGPUSystem,t.CanvasSystem],name:"hello",priority:-2},Np.defaultOptions={hello:!1}}}),ch=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureGCSystem.mjs"(){_e(),(Up=class e{init(t){t=q(q({},e.defaultOptions),t),this.checkCountMax=t.textureGCCheckCountMax,this.maxIdle=t.textureGCAMaxIdle,this.active=t.textureGCActive}postrender(){this._renderer.renderingToScreen&&(this.count++,this.active&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))}run(){const e=this._renderer.texture.managedTextures;for(let t=0;t<e.length;t++){const n=e[t];n.autoGarbageCollect&&n.resource&&n._touched>-1&&this.count-n._touched>this.maxIdle&&(n._touched=-1,n.unload())}}destroy(){this._renderer=null}constructor(e){this._renderer=e,this.count=0,this.checkCount=0}}).extension={type:[t.WebGLSystem,t.WebGPUSystem],name:"textureGC"},Up.defaultOptions={textureGCActive:!0,textureGCAMaxIdle:3600,textureGCCheckCountMax:600},Gp=Up,i.add(Gp)}}),dh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/renderTarget/RenderTarget.mjs"(){Ze(),fi(),mi(),(Hp=class e{get size(){const e=this._size;return e[0]=this.pixelWidth,e[1]=this.pixelHeight,e}get width(){return this.colorTexture.source.width}get height(){return this.colorTexture.source.height}get pixelWidth(){return this.colorTexture.source.pixelWidth}get pixelHeight(){return this.colorTexture.source.pixelHeight}get resolution(){return this.colorTexture.source._resolution}get colorTexture(){return this.colorTextures[0]}onSourceResize(e){this.resize(e.width,e.height,e._resolution,!0)}ensureDepthStencilTexture(){this.depthStencilTexture||(this.depthStencilTexture=new ei({width:this.width,height:this.height,resolution:this.resolution,format:"depth24plus-stencil8",autoGenerateMipmaps:!1,antialias:!1,mipLevelCount:1}))}resize(e,t,n=this.resolution,r=!1){this.dirtyId++,this.colorTextures.forEach(((i,o)=>{r&&0===o||i.source.resize(e,t,n)})),this.depthStencilTexture&&this.depthStencilTexture.source.resize(e,t,n)}destroy(){this.colorTexture.source.off("resize",this.onSourceResize,this),this._managedColorTextures&&this.colorTextures.forEach((e=>{e.destroy()})),this.depthStencilTexture&&(this.depthStencilTexture.destroy(),delete this.depthStencilTexture)}constructor(t={}){if(this.uid=qe("renderTarget"),this.colorTextures=[],this.dirtyId=0,this.isRoot=!1,this._size=new Float32Array(2),this._managedColorTextures=!1,t=q(q({},e.defaultOptions),t),this.stencil=t.stencil,this.depth=t.depth,this.isRoot=t.isRoot,"number"==typeof t.colorTextures){this._managedColorTextures=!0;for(let e=0;e<t.colorTextures;e++)this.colorTextures.push(new ei({width:t.width,height:t.height,resolution:t.resolution,antialias:t.antialias}))}else{this.colorTextures=[...t.colorTextures.map((e=>e.source))];const e=this.colorTexture.source;this.resize(e.width,e.height,e._resolution)}this.colorTexture.source.on("resize",this.onSourceResize,this),(t.depthStencilTexture||this.stencil)&&(t.depthStencilTexture instanceof ii||t.depthStencilTexture instanceof ei?this.depthStencilTexture=t.depthStencilTexture.source:this.ensureDepthStencilTexture())}}).defaultOptions={width:0,height:0,resolution:1,colorTextures:1,stencil:!1,depth:!1,antialias:!1,isRoot:!1},Wp=Hp}});function fh(e,t){if(!Vp.has(e)){const n=new ii({source:new Oi(q({resource:e},t))}),r=()=>{Vp.get(e)===n&&Vp.delete(e)};n.once("destroy",r),n.source.once("destroy",r),Vp.set(e,n)}return Vp.get(e)}var ph,hh,mh,Ah,gh,vh,yh,bh,xh,Sh,_h,wh,Eh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/utils/getCanvasTexture.mjs"(){Li(),mi(),Vp=new Map}}),Ch=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/view/ViewSystem.mjs"(){Sr(),_e(),St(),Je(),dh(),Eh(),(ph=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=q(q({},e.defaultOptions),t)).view&&($e(Ye,"ViewSystem.view has been renamed to ViewSystem.canvas"),t.canvas=t.view),this.screen=new ut(0,0,t.width,t.height),this.canvas=t.canvas||$n.get().createCanvas(),this.antialias=!!t.antialias,this.texture=fh(this.canvas,t),this.renderTarget=new Wp({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,n){this.texture.source.resize(e,t,n),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:null==e?void 0:e.removeView)&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)}}).extension={type:[t.WebGLSystem,t.WebGPUSystem,t.CanvasSystem],name:"view",priority:0},ph.defaultOptions={width:800,height:600,autoDensity:!1,antialias:!1},hh=ph}}),Th=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/system/SharedSystems.mjs"(){Hf(),Kf(),Xp(),Kp(),qp(),Jp(),eh(),th(),nh(),rh(),ih(),ah(),sh(),uh(),ch(),Ch(),mh=[Cp,Fp,Np,hh,dp,Gp,Bp,Ip],Ah=[Pp,mp,hp,Vf,Sp,wp,_p,jf]}}),Ph=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/BindGroupSystem.mjs"(){_e(),(gh=class{contextChange(e){this._gpu=e}getBindGroup(e,t,n){return e._updateKey(),this._hash[e._key]||this._createBindGroup(e,t,n)}_createBindGroup(e,t,n){var r;const i=this._gpu.device,o=t.layout[n],a=[],s=this._renderer;for(const c in o){const t=null!=(r=e.resources[c])?r:e.resources[o[c]];let n;if("uniformGroup"===t._resourceType){const e=t;s.ubo.updateUniformGroup(e);const r=e.buffer;n={buffer:s.buffer.getGPUBuffer(r),offset:0,size:r.descriptor.size}}else if("buffer"===t._resourceType){const e=t;n={buffer:s.buffer.getGPUBuffer(e),offset:0,size:e.descriptor.size}}else if("bufferResource"===t._resourceType){const e=t;n={buffer:s.buffer.getGPUBuffer(e.buffer),offset:e.offset,size:e.size}}else if("textureSampler"===t._resourceType){const e=t;n=s.texture.getGpuSampler(e)}else if("textureSource"===t._resourceType){const e=t;n=s.texture.getGpuSource(e).createView({})}a.push({binding:o[c],resource:n})}const l=s.shader.getProgramData(t).bindGroups[n],u=i.createBindGroup({layout:l,entries:a});return this._hash[e._key]=u,u}destroy(){for(const e of Object.keys(this._hash))this._hash[e]=null;this._hash=null,this._renderer=null}constructor(e){this._hash=Object.create(null),this._renderer=e}}).extension={type:[t.WebGPUSystem],name:"bindGroup"}}}),kh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/buffer/GpuBufferSystem.mjs"(){_e(),Co(),(vh=class{contextChange(e){this._gpu=e}getGPUBuffer(e){return this._gpuBuffers[e.uid]||this.createGPUBuffer(e)}updateBuffer(e){const t=this._gpuBuffers[e.uid]||this.createGPUBuffer(e),n=e.data;return e._updateID&&n&&(e._updateID=0,this._gpu.device.queue.writeBuffer(t,0,n.buffer,0,(e._updateSize||n.byteLength)+3&-4)),t}destroyAll(){for(const e in this._gpuBuffers)this._gpuBuffers[e].destroy();this._gpuBuffers={}}createGPUBuffer(e){this._gpuBuffers[e.uid]||(e.on("update",this.updateBuffer,this),e.on("change",this.onBufferChange,this),e.on("destroy",this.onBufferDestroy,this));const t=this._gpu.device.createBuffer(e.descriptor);return e._updateID=0,e.data&&(_o(e.data.buffer,t.getMappedRange()),t.unmap()),this._gpuBuffers[e.uid]=t,this._managedBuffers.push(e),t}onBufferChange(e){this._gpuBuffers[e.uid].destroy(),e._updateID=0,this._gpuBuffers[e.uid]=this.createGPUBuffer(e)}onBufferDestroy(e){this._managedBuffers.splice(this._managedBuffers.indexOf(e),1),this._destroyBuffer(e)}destroy(){this._managedBuffers.forEach((e=>this._destroyBuffer(e))),this._managedBuffers=null,this._gpuBuffers=null}_destroyBuffer(e){this._gpuBuffers[e.uid].destroy(),e.off("update",this.updateBuffer,this),e.off("change",this.onBufferChange,this),e.off("destroy",this.onBufferDestroy,this),this._gpuBuffers[e.uid]=null}constructor(){this._gpuBuffers=Object.create(null),this._managedBuffers=[]}}).extension={type:[t.WebGPUSystem],name:"buffer"}}}),Rh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/GpuColorMaskSystem.mjs"(){_e(),(yh=class{setMask(e){this._colorMaskCache!==e&&(this._colorMaskCache=e,this._renderer.pipeline.setColorMask(e))}destroy(){this._renderer=null,this._colorMaskCache=null}constructor(e){this._colorMaskCache=15,this._renderer=e}}).extension={type:[t.WebGPUSystem],name:"colorMask"}}}),Ih=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/GpuDeviceSystem.mjs"(){_e(),(bh=class{init(e){return te(this,null,(function*(){return this._initPromise||(this._initPromise=this._createDeviceAndAdaptor(e).then((e=>{this.gpu=e,this._renderer.runners.contextChange.emit(this.gpu)}))),this._initPromise}))}contextChange(e){this._renderer.gpu=e}_createDeviceAndAdaptor(e){return te(this,null,(function*(){const t=yield navigator.gpu.requestAdapter({powerPreference:e.powerPreference,forceFallbackAdapter:e.forceFallbackAdapter}),n=["texture-compression-bc","texture-compression-astc","texture-compression-etc2"].filter((e=>t.features.has(e))),r=yield t.requestDevice({requiredFeatures:n});return{adapter:t,device:r}}))}destroy(){this.gpu=null,this._renderer=null}constructor(e){this._renderer=e}}).extension={type:[t.WebGPUSystem],name:"device"},bh.defaultOptions={powerPreference:void 0,forceFallbackAdapter:!1}}}),Oh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/GpuEncoderSystem.mjs"(){_e(),(xh=class{renderStart(){this.commandFinished=new Promise((e=>{this._resolveCommandFinished=e})),this.commandEncoder=this._renderer.gpu.device.createCommandEncoder()}beginRenderPass(e){this.endRenderPass(),this._clearCache(),this.renderPassEncoder=this.commandEncoder.beginRenderPass(e.descriptor)}endRenderPass(){this.renderPassEncoder&&this.renderPassEncoder.end(),this.renderPassEncoder=null}setViewport(e){this.renderPassEncoder.setViewport(e.x,e.y,e.width,e.height,0,1)}setPipelineFromGeometryProgramAndState(e,t,n,r){const i=this._renderer.pipeline.getPipeline(e,t,n,r);this.setPipeline(i)}setPipeline(e){this._boundPipeline!==e&&(this._boundPipeline=e,this.renderPassEncoder.setPipeline(e))}_setVertexBuffer(e,t){this._boundVertexBuffer[e]!==t&&(this._boundVertexBuffer[e]=t,this.renderPassEncoder.setVertexBuffer(e,this._renderer.buffer.updateBuffer(t)))}_setIndexBuffer(e){if(this._boundIndexBuffer===e)return;this._boundIndexBuffer=e;const t=2===e.data.BYTES_PER_ELEMENT?"uint16":"uint32";this.renderPassEncoder.setIndexBuffer(this._renderer.buffer.updateBuffer(e),t)}resetBindGroup(e){this._boundBindGroup[e]=null}setBindGroup(e,t,n){if(this._boundBindGroup[e]===t)return;this._boundBindGroup[e]=t,t._touch(this._renderer.textureGC.count);const r=this._renderer.bindGroup.getBindGroup(t,n,e);this.renderPassEncoder.setBindGroup(e,r)}setGeometry(e){for(const t in e.attributes){const n=e.attributes[t];this._setVertexBuffer(n.location,n.buffer)}e.indexBuffer&&this._setIndexBuffer(e.indexBuffer)}_setShaderBindGroups(e,t){for(const n in e.groups){const r=e.groups[n];t||this._syncBindGroup(r),this.setBindGroup(n,r,e.gpuProgram)}}_syncBindGroup(e){for(const t in e.resources){const n=e.resources[t];n.isUniformGroup&&this._renderer.ubo.updateUniformGroup(n)}}draw(e){const{geometry:t,shader:n,state:r,topology:i,size:o,start:a,instanceCount:s,skipSync:l}=e;this.setPipelineFromGeometryProgramAndState(t,n.gpuProgram,r,i),this.setGeometry(t),this._setShaderBindGroups(n,l),t.indexBuffer?this.renderPassEncoder.drawIndexed(o||t.indexBuffer.data.length,s||t.instanceCount,a||0):this.renderPassEncoder.draw(o||t.getSize(),s||t.instanceCount,a||0)}finishRenderPass(){this.renderPassEncoder&&(this.renderPassEncoder.end(),this.renderPassEncoder=null)}postrender(){this.finishRenderPass(),this._gpu.device.queue.submit([this.commandEncoder.finish()]),this._resolveCommandFinished(),this.commandEncoder=null}restoreRenderPass(){const e=this._renderer.renderTarget.adaptor.getDescriptor(this._renderer.renderTarget.renderTarget,!1,[0,0,0,1]);this.renderPassEncoder=this.commandEncoder.beginRenderPass(e);const t=this._boundPipeline,n=q({},this._boundVertexBuffer),r=this._boundIndexBuffer,i=q({},this._boundBindGroup);this._clearCache();const o=this._renderer.renderTarget.viewport;this.renderPassEncoder.setViewport(o.x,o.y,o.width,o.height,0,1),this.setPipeline(t);for(const a in n)this._setVertexBuffer(a,n[a]);for(const a in i)this.setBindGroup(a,i[a],null);this._setIndexBuffer(r)}_clearCache(){for(let e=0;e<16;e++)this._boundBindGroup[e]=null,this._boundVertexBuffer[e]=null;this._boundIndexBuffer=null,this._boundPipeline=null}destroy(){this._renderer=null,this._gpu=null,this._boundBindGroup=null,this._boundVertexBuffer=null,this._boundIndexBuffer=null,this._boundPipeline=null}contextChange(e){this._gpu=e}constructor(e){this._boundBindGroup=Object.create(null),this._boundVertexBuffer=Object.create(null),this._renderer=e}}).extension={type:[t.WebGPUSystem],name:"encoder",priority:1}}}),Mh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/GpuStencilSystem.mjs"(){_e(),To(),(Sh=class{onRenderTargetChange(e){let t=this._renderTargetStencilState[e.uid];t||(t=this._renderTargetStencilState[e.uid]={stencilMode:Eo.DISABLED,stencilReference:0}),this._activeRenderTarget=e,this.setStencilMode(t.stencilMode,t.stencilReference)}setStencilMode(e,t){const n=this._renderTargetStencilState[this._activeRenderTarget.uid];n.stencilMode=e,n.stencilReference=t;const r=this._renderer;r.pipeline.setStencilMode(e),r.encoder.renderPassEncoder.setStencilReference(t)}destroy(){this._renderer.renderTarget.onRenderTargetChange.remove(this),this._renderer=null,this._activeRenderTarget=null,this._renderTargetStencilState=null}constructor(e){this._renderTargetStencilState=Object.create(null),this._renderer=e,e.renderTarget.onRenderTargetChange.add(this)}}).extension={type:[t.WebGPUSystem],name:"stencil"}}}),jh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/shader/UboSystem.mjs"(){zf(),no(),to(),_h=class{_systemCheck(){if(!Sf())throw new Error("Current environment does not allow unsafe-eval, please use pixi.js/unsafe-eval module to enable support.")}ensureUniformGroup(e){const t=this.getUniformGroupData(e);e.buffer||(e.buffer=new $i({data:new Float32Array(t.layout.size/4),usage:Zi.UNIFORM|Zi.COPY_DST}))}getUniformGroupData(e){return this._syncFunctionHash[e._signature]||this._initUniformGroup(e)}_initUniformGroup(e){const t=e._signature;let n=this._syncFunctionHash[t];if(!n){const r=Object.keys(e.uniformStructures).map((t=>e.uniformStructures[t])),i=this._adaptor.createUboElements(r),o=this._generateUboSync(i.uboElements);n=this._syncFunctionHash[t]={layout:i,syncFunction:o}}return this._syncFunctionHash[t]}_generateUboSync(e){return this._adaptor.generateUboSync(e)}syncUniformGroup(e,t,n){const r=this.getUniformGroupData(e);return e.buffer||(e.buffer=new $i({data:new Float32Array(r.layout.size/4),usage:Zi.UNIFORM|Zi.COPY_DST})),t||(t=e.buffer.data),n||(n=0),r.syncFunction(e.uniforms,t,n),!0}updateUniformGroup(e){if(e.isStatic&&!e._dirtyId)return!1;e._dirtyId=0;const t=this.syncUniformGroup(e);return e.buffer.update(),t}destroy(){this._syncFunctionHash=null}constructor(e){this._syncFunctionHash=Object.create(null),this._adaptor=e,this._systemCheck()}}}});function zh(e){const t=e.map((e=>({data:e,offset:0,size:0})));let n=0;for(let r=0;r<t.length;r++){const e=t[r];let i=wh[e.data.type].size;const o=wh[e.data.type].align;if(!wh[e.data.type])throw new Error(`[Pixi.js] WebGPU UniformBuffer: Unknown type ${e.data.type}`);e.data.size>1&&(i=Math.max(i,o)*e.data.size),n=Math.ceil(n/o)*o,e.size=i,e.offset=n,n+=i}return n=16*Math.ceil(n/16),{uboElements:t,size:n}}var Bh,Fh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/createUboElementsWGSL.mjs"(){wh={i32:{align:4,size:4},u32:{align:4,size:4},f32:{align:4,size:4},f16:{align:2,size:2},"vec2<i32>":{align:8,size:8},"vec2<u32>":{align:8,size:8},"vec2<f32>":{align:8,size:8},"vec2<f16>":{align:4,size:4},"vec3<i32>":{align:16,size:12},"vec3<u32>":{align:16,size:12},"vec3<f32>":{align:16,size:12},"vec3<f16>":{align:8,size:6},"vec4<i32>":{align:16,size:16},"vec4<u32>":{align:16,size:16},"vec4<f32>":{align:16,size:16},"vec4<f16>":{align:8,size:8},"mat2x2<f32>":{align:8,size:16},"mat2x2<f16>":{align:4,size:8},"mat3x2<f32>":{align:8,size:24},"mat3x2<f16>":{align:4,size:12},"mat4x2<f32>":{align:8,size:32},"mat4x2<f16>":{align:4,size:16},"mat2x3<f32>":{align:16,size:32},"mat2x3<f16>":{align:8,size:16},"mat3x3<f32>":{align:16,size:48},"mat3x3<f16>":{align:8,size:24},"mat4x3<f32>":{align:16,size:64},"mat4x3<f16>":{align:8,size:32},"mat2x4<f32>":{align:16,size:32},"mat2x4<f16>":{align:8,size:16},"mat3x4<f32>":{align:16,size:48},"mat3x4<f16>":{align:8,size:24},"mat4x4<f32>":{align:16,size:64},"mat4x4<f16>":{align:8,size:32}}}}),Dh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/shader/utils/uniformParsers.mjs"(){Bh=[{type:"mat3x3<f32>",test:e=>void 0!==e.value.a,ubo:"\n var matrix = uv[name].toArray(true);\n data[offset] = matrix[0];\n data[offset + 1] = matrix[1];\n data[offset + 2] = matrix[2];\n data[offset + 4] = matrix[3];\n data[offset + 5] = matrix[4];\n data[offset + 6] = matrix[5];\n data[offset + 8] = matrix[6];\n data[offset + 9] = matrix[7];\n data[offset + 10] = matrix[8];\n ",uniform:" \n gl.uniformMatrix3fv(ud[name].location, false, uv[name].toArray(true));\n "},{type:"vec4<f32>",test:e=>"vec4<f32>"===e.type&&1===e.size&&void 0!==e.value.width,ubo:"\n v = uv[name];\n data[offset] = v.x;\n data[offset + 1] = v.y;\n data[offset + 2] = v.width;\n data[offset + 3] = v.height;\n ",uniform:"\n cv = ud[name].value;\n v = uv[name];\n if (cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height) {\n cv[0] = v.x;\n cv[1] = v.y;\n cv[2] = v.width;\n cv[3] = v.height;\n gl.uniform4f(ud[name].location, v.x, v.y, v.width, v.height);\n }\n "},{type:"vec2<f32>",test:e=>"vec2<f32>"===e.type&&1===e.size&&void 0!==e.value.x,ubo:"\n v = uv[name];\n data[offset] = v.x;\n data[offset + 1] = v.y;\n ",uniform:"\n cv = ud[name].value;\n v = uv[name];\n if (cv[0] !== v.x || cv[1] !== v.y) {\n cv[0] = v.x;\n cv[1] = v.y;\n gl.uniform2f(ud[name].location, v.x, v.y);\n }\n "},{type:"vec4<f32>",test:e=>"vec4<f32>"===e.type&&1===e.size&&void 0!==e.value.red,ubo:"\n v = uv[name];\n data[offset] = v.red;\n data[offset + 1] = v.green;\n data[offset + 2] = v.blue;\n data[offset + 3] = v.alpha;\n ",uniform:"\n cv = ud[name].value;\n v = uv[name];\n if (cv[0] !== v.red || cv[1] !== v.green || cv[2] !== v.blue || cv[3] !== v.alpha) {\n cv[0] = v.red;\n cv[1] = v.green;\n cv[2] = v.blue;\n cv[3] = v.alpha;\n gl.uniform4f(ud[name].location, v.red, v.green, v.blue, v.alpha);\n }\n "},{type:"vec3<f32>",test:e=>"vec3<f32>"===e.type&&1===e.size&&void 0!==e.value.red,ubo:"\n v = uv[name];\n data[offset] = v.red;\n data[offset + 1] = v.green;\n data[offset + 2] = v.blue;\n ",uniform:"\n cv = ud[name].value;\n v = uv[name];\n if (cv[0] !== v.red || cv[1] !== v.green || cv[2] !== v.blue) {\n cv[0] = v.red;\n cv[1] = v.green;\n cv[2] = v.blue;\n gl.uniform3f(ud[name].location, v.red, v.green, v.blue);\n }\n "}]}});function Lh(e,t,n,r){const i=["\n var v = null;\n var v2 = null;\n var t = 0;\n var index = 0;\n var name = null;\n var arrayOffset = null;\n "];let o=0;for(let s=0;s<e.length;s++){const a=e[s],l=a.data.name;let u=!1,c=0;for(let e=0;e<Bh.length;e++)if(Bh[e].test(a.data)){c=a.offset/4,i.push(`name = "${l}";`,`offset += ${c-o};`,Bh[e][t]||Bh[e].ubo),u=!0;break}if(!u)if(a.data.size>1)c=a.offset/4,i.push(n(a,c-o));else{const e=r[a.data.type];c=a.offset/4,i.push(`\n v = uv.${l};\n offset += ${c-o};\n ${e};\n `)}o=c}const a=i.join("\n");return new Function("uv","data","offset",a)}var Nh,Uh,Gh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/shader/utils/createUboSyncFunction.mjs"(){Dh()}});function Hh(e,t){return`\n for (let i = 0; i < ${e*t}; i++) {\n data[offset + (((i / ${e})|0) * 4) + (i % ${e})] = v[i];\n }\n `}var Wh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/shader/utils/uboSyncFunctions.mjs"(){Nh={f32:"\n data[offset] = v;",i32:"\n data[offset] = v;","vec2<f32>":"\n data[offset] = v[0];\n data[offset + 1] = v[1];","vec3<f32>":"\n data[offset] = v[0];\n data[offset + 1] = v[1];\n data[offset + 2] = v[2];","vec4<f32>":"\n data[offset] = v[0];\n data[offset + 1] = v[1];\n data[offset + 2] = v[2];\n data[offset + 3] = v[3];","mat2x2<f32>":"\n data[offset] = v[0];\n data[offset + 1] = v[1];\n data[offset + 4] = v[2];\n data[offset + 5] = v[3];","mat3x3<f32>":"\n data[offset] = v[0];\n data[offset + 1] = v[1];\n data[offset + 2] = v[2];\n data[offset + 4] = v[3];\n data[offset + 5] = v[4];\n data[offset + 6] = v[5];\n data[offset + 8] = v[6];\n data[offset + 9] = v[7];\n data[offset + 10] = v[8];","mat4x4<f32>":"\n for (let i = 0; i < 16; i++) {\n data[offset + i] = v[i];\n }","mat3x2<f32>":Hh(3,2),"mat4x2<f32>":Hh(4,2),"mat2x3<f32>":Hh(2,3),"mat4x3<f32>":Hh(4,3),"mat2x4<f32>":Hh(2,4),"mat3x4<f32>":Hh(3,4)},Uh=Q(q({},Nh),{"mat2x2<f32>":"\n data[offset] = v[0];\n data[offset + 1] = v[1];\n data[offset + 2] = v[2];\n data[offset + 3] = v[3];\n "})}});function Vh(e,t){const{size:n,align:r}=wh[e.data.type],i=(r-n)/4;return`\n v = uv.${e.data.name};\n ${0!==t?`offset += ${t};`:""}\n\n arrayOffset = offset;\n\n t = 0;\n\n for(var i=0; i < ${e.data.size*(n/4)}; i++)\n {\n for(var j = 0; j < ${n/4}; j++)\n {\n data[arrayOffset++] = v[t++];\n }\n ${0!==i?`arrayOffset += ${i};`:""}\n }\n `}var Xh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/generateArraySyncWGSL.mjs"(){Fh()}});function Kh(e){return Lh(e,"uboWgsl",Vh,Uh)}var qh,Qh,Yh,Zh,$h,Jh=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/createUboSyncFunctionWGSL.mjs"(){Gh(),Wh(),Xh()}}),em=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/GpuUboSystem.mjs"(){_e(),jh(),Fh(),Jh(),(qh=class extends _h{constructor(){super({createUboElements:zh,generateUboSync:Kh})}}).extension={type:[t.WebGPUSystem],name:"ubo"}}}),tm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/buffer/BufferResource.mjs"(){Ee(),Ze(),Qh=class extends a{onBufferChange(){this._resourceId=qe("resource"),this.emit("change",this)}destroy(e=!1){this.destroyed=!0,e&&this.buffer.destroy(),this.emit("change",this),this.buffer=null}constructor({buffer:e,offset:t,size:n}){super(),this.uid=qe("buffer"),this._resourceType="bufferResource",this._touched=0,this._resourceId=qe("resource"),this._bufferResource=!0,this.destroyed=!1,this.buffer=e,this.offset=0|t,this.size=n,this.buffer.on("change",this.onBufferChange,this)}}}}),nm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/buffer/UboBatch.mjs"(){Yh=class{clear(){this.byteIndex=0}addEmptyGroup(e){if(e>this._minUniformOffsetAlignment/4)throw new Error("UniformBufferBatch: array is too large: "+4*e);const t=this.byteIndex;let n=t+4*e;if(n=Math.ceil(n/this._minUniformOffsetAlignment)*this._minUniformOffsetAlignment,n>4*this.data.length)throw new Error("UniformBufferBatch: ubo batch got too big");return this.byteIndex=n,t}addGroup(e){const t=this.addEmptyGroup(e.length);for(let n=0;n<e.length;n++)this.data[t/4+n]=e[n];return t}destroy(){this._buffer.destroy(),this._buffer=null,this.data=null}constructor({minUniformOffsetAlignment:e}){this._minUniformOffsetAlignment=256,this.byteIndex=0,this._minUniformOffsetAlignment=e,this.data=new Float32Array(65535)}}}}),rm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/GpuUniformBatchPipe.mjs"(){_e(),no(),tm(),to(),nm(),go(),Zh=128,($h=class{renderEnd(){this._uploadBindGroups(),this._resetBindGroups()}_resetBindGroups(){for(const e in this._bindGroupHash)this._bindGroupHash[e]=null;this._batchBuffer.clear()}getUniformBindGroup(e,t){if(!t&&this._bindGroupHash[e.uid])return this._bindGroupHash[e.uid];this._renderer.ubo.ensureUniformGroup(e);const n=e.buffer.data,r=this._batchBuffer.addEmptyGroup(n.length);return this._renderer.ubo.syncUniformGroup(e,this._batchBuffer.data,r/4),this._bindGroupHash[e.uid]=this._getBindGroup(r/Zh),this._bindGroupHash[e.uid]}getUboResource(e){this._renderer.ubo.updateUniformGroup(e);const t=e.buffer.data,n=this._batchBuffer.addGroup(t);return this._getBufferResource(n/Zh)}getArrayBindGroup(e){const t=this._batchBuffer.addGroup(e);return this._getBindGroup(t/Zh)}getArrayBufferResource(e){const t=this._batchBuffer.addGroup(e)/Zh;return this._getBufferResource(t)}_getBufferResource(e){if(!this._bufferResources[e]){const t=this._buffers[e%2];this._bufferResources[e]=new Qh({buffer:t,offset:256*(e/2|0),size:Zh})}return this._bufferResources[e]}_getBindGroup(e){if(!this._bindGroups[e]){const t=new fo({0:this._getBufferResource(e)});this._bindGroups[e]=t}return this._bindGroups[e]}_uploadBindGroups(){const e=this._renderer.buffer,t=this._buffers[0];t.update(this._batchBuffer.byteIndex),e.updateBuffer(t);const n=this._renderer.gpu.device.createCommandEncoder();for(let r=1;r<this._buffers.length;r++){const i=this._buffers[r];n.copyBufferToBuffer(e.getGPUBuffer(t),Zh,e.getGPUBuffer(i),0,this._batchBuffer.byteIndex)}this._renderer.gpu.device.queue.submit([n.finish()])}destroy(){for(let e=0;e<this._bindGroups.length;e++)this._bindGroups[e].destroy();this._bindGroups=null,this._bindGroupHash=null;for(let e=0;e<this._buffers.length;e++)this._buffers[e].destroy();this._buffers=null;for(let e=0;e<this._bufferResources.length;e++)this._bufferResources[e].destroy();this._bufferResources=null,this._batchBuffer.destroy(),this._bindGroupHash=null,this._renderer=null}constructor(e){this._bindGroupHash=Object.create(null),this._buffers=[],this._bindGroups=[],this._bufferResources=[],this._renderer=e,this._batchBuffer=new Yh({minUniformOffsetAlignment:Zh});for(let t=0;t<2;t++){let e=Zi.UNIFORM|Zi.COPY_DST;0===t&&(e|=Zi.COPY_SRC),this._buffers.push(new $i({data:this._batchBuffer.data,usage:e}))}}}).extension={type:[t.WebGPUPipes],name:"uniformBatch"}}});function im(e,t){for(const n in e.attributes){const r=e.attributes[n],i=t[n];i?(null!=r.location||(r.location=i.location),null!=r.format||(r.format=i.format),null!=r.offset||(r.offset=i.offset),null!=r.instance||(r.instance=i.instance)):It(`Attribute ${n} is not present in the shader, but is present in the geometry. Unable to infer attribute details.`)}!function(e){const{buffers:t,attributes:n}=e,r={},i={};for(const o in t){const e=t[o];r[e.uid]=0,i[e.uid]=0}for(const o in n){const e=n[o];r[e.buffer.uid]+=Cu(e.format).stride}for(const o in n){const e=n[o];null!=e.stride||(e.stride=r[e.buffer.uid]),null!=e.start||(e.start=i[e.buffer.uid]),i[e.buffer.uid]+=Cu(e.format).stride}}(e)}var om,am,sm,lm,um,cm,dm,fm,pm,hm,mm,Am,gm,vm,ym,bm,xm,Sm,_m,wm,Em,Cm,Tm,Pm,km,Rm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/ensureAttributes.mjs"(){Ot(),Pu()}}),Im=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/state/GpuStencilModesToPixi.mjs"(){To(),(om=[])[Eo.NONE]=void 0,om[Eo.DISABLED]={stencilWriteMask:0,stencilReadMask:0},om[Eo.RENDERING_MASK_ADD]={stencilFront:{compare:"equal",passOp:"increment-clamp"},stencilBack:{compare:"equal",passOp:"increment-clamp"}},om[Eo.RENDERING_MASK_REMOVE]={stencilFront:{compare:"equal",passOp:"decrement-clamp"},stencilBack:{compare:"equal",passOp:"decrement-clamp"}},om[Eo.MASK_ACTIVE]={stencilWriteMask:0,stencilFront:{compare:"equal",passOp:"keep"},stencilBack:{compare:"equal",passOp:"keep"}}}}),Om=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/pipeline/PipelineSystem.mjs"(){_e(),Rm(),To(),Ia(),Im(),am={"point-list":0,"line-list":1,"line-strip":2,"triangle-list":3,"triangle-strip":4},(sm=class{contextChange(e){this._gpu=e,this.setStencilMode(Eo.DISABLED),this._updatePipeHash()}setMultisampleCount(e){this._multisampleCount!==e&&(this._multisampleCount=e,this._updatePipeHash())}setRenderTarget(e){this._multisampleCount=e.msaaSamples,this._depthStencilAttachment=e.descriptor.depthStencilAttachment?1:0,this._updatePipeHash()}setColorMask(e){this._colorMask!==e&&(this._colorMask=e,this._updatePipeHash())}setStencilMode(e){this._stencilMode!==e&&(this._stencilMode=e,this._stencilState=om[e],this._updatePipeHash())}setPipeline(e,t,n,r){const i=this.getPipeline(e,t,n);r.setPipeline(i)}getPipeline(e,t,n,r){e._layoutKey||(im(e,t.attributeData),this._generateBufferKey(e)),r=r||e.topology;const i=function(e,t,n,r,i){return e<<24|t<<16|n<<10|r<<5|i}(e._layoutKey,t._layoutKey,n.data,n._blendModeId,am[r]);return this._pipeCache[i]||(this._pipeCache[i]=this._createPipeline(e,t,n,r)),this._pipeCache[i]}_createPipeline(e,t,n,r){const i=this._gpu.device,o=this._createVertexBufferLayouts(e),a=this._renderer.state.getColorTargets(n);a[0].writeMask=this._stencilMode===Eo.RENDERING_MASK_ADD?0:this._colorMask;const s=this._renderer.shader.getProgramData(t).pipeline,l={vertex:{module:this._getModule(t.vertex.source),entryPoint:t.vertex.entryPoint,buffers:o},fragment:{module:this._getModule(t.fragment.source),entryPoint:t.fragment.entryPoint,targets:a},primitive:{topology:r,cullMode:n.cullMode},layout:s,multisample:{count:this._multisampleCount},label:"PIXI Pipeline"};return this._depthStencilAttachment&&(l.depthStencil=Q(q({},this._stencilState),{format:"depth24plus-stencil8",depthWriteEnabled:n.depthTest,depthCompare:n.depthTest?"less":"always"})),i.createRenderPipeline(l)}_getModule(e){return this._moduleCache[e]||this._createModule(e)}_createModule(e){const t=this._gpu.device;return this._moduleCache[e]=t.createShaderModule({code:e}),this._moduleCache[e]}_generateBufferKey(e){const t=[];let n=0;const r=Object.keys(e.attributes).sort();for(let o=0;o<r.length;o++){const i=e.attributes[r[o]];t[n++]=i.location,t[n++]=i.offset,t[n++]=i.format,t[n++]=i.stride}const i=t.join("");return e._layoutKey=Ra(i,"geometry"),e._layoutKey}_createVertexBufferLayouts(e){if(this._bufferLayoutsCache[e._layoutKey])return this._bufferLayoutsCache[e._layoutKey];const t=[];return e.buffers.forEach((n=>{const r={arrayStride:0,stepMode:"vertex",attributes:[]},i=r.attributes;for(const t in e.attributes){const o=e.attributes[t];o.buffer===n&&(r.arrayStride=o.stride,r.stepMode=o.instance?"instance":"vertex",i.push({shaderLocation:o.location,offset:o.offset,format:o.format}))}i.length&&t.push(r)})),this._bufferLayoutsCache[e._layoutKey]=t,t}_updatePipeHash(){const e=(t=this._stencilMode,n=this._multisampleCount,r=this._colorMask,i=this._depthStencilAttachment,r<<6|t<<3|i<<1|n);var t,n,r,i;this._pipeStateCaches[e]||(this._pipeStateCaches[e]=Object.create(null)),this._pipeCache=this._pipeStateCaches[e]}destroy(){this._renderer=null,this._bufferLayoutsCache=null}constructor(e){this._moduleCache=Object.create(null),this._bufferLayoutsCache=Object.create(null),this._pipeCache=Object.create(null),this._pipeStateCaches=Object.create(null),this._colorMask=15,this._multisampleCount=1,this._renderer=e}}).extension={type:[t.WebGPUSystem],name:"pipeline"}}}),Mm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/renderTarget/calculateProjection.mjs"(){}}),jm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/renderTarget/isRenderingToScreen.mjs"(){}}),zm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/shared/renderTarget/RenderTargetSystem.mjs"(){Xe(),St(),Bf(),Mm(),Ff(),Li(),fi(),mi(),Eh(),jm(),dh(),lm=class{finishRenderPass(){this.adaptor.finishRenderPass(this.renderTarget)}renderStart({target:e,clear:t,clearColor:n,frame:r}){this._renderTargetStack.length=0,this.push(e,t,n,r),this.rootViewPort.copyFrom(this.viewport),this.rootRenderTarget=this.renderTarget,this.renderingToScreen=function(e){const t=e.colorTexture.source.resource;return globalThis.HTMLCanvasElement&&t instanceof HTMLCanvasElement&&document.body.contains(t)}(this.rootRenderTarget)}bind(e,t=!0,n,r){const i=this.getRenderTarget(e),o=this.renderTarget!==i;this.renderTarget=i,this.renderSurface=e;const a=this.getGpuRenderTarget(i);i.pixelWidth===a.width&&i.pixelHeight===a.height||(this.adaptor.resizeGpuRenderTarget(i),a.width=i.pixelWidth,a.height=i.pixelHeight);const s=i.colorTexture,l=this.viewport,u=s.pixelWidth,c=s.pixelHeight;if(!r&&e instanceof ii&&(r=e.frame),r){const e=s._resolution;l.x=r.x*e+.5|0,l.y=r.y*e+.5|0,l.width=r.width*e+.5|0,l.height=r.height*e+.5|0}else l.x=0,l.y=0,l.width=u,l.height=c;return function(e,t,n,r,i,o){const a=o?1:-1;e.identity(),e.a=1/r*2,e.d=a*(1/i*2),e.tx=-1-t*e.a,e.ty=-a-n*e.d}(this.projectionMatrix,0,0,l.width/s.resolution,l.height/s.resolution,!i.isRoot),this.adaptor.startRenderPass(i,t,n,l),o&&this.onRenderTargetChange.emit(i),i}clear(e,t=_f.ALL,n){t&&(e&&(e=this.getRenderTarget(e)),this.adaptor.clear(e||this.renderTarget,t,n,this.viewport))}contextChange(){this._gpuRenderTargetHash=Object.create(null)}push(e,t=_f.ALL,n,r){const i=this.bind(e,t,n,r);return this._renderTargetStack.push({renderTarget:i,frame:r}),i}pop(){this._renderTargetStack.pop();const e=this._renderTargetStack[this._renderTargetStack.length-1];this.bind(e.renderTarget,!1,null,e.frame)}getRenderTarget(e){var t;return e.isTexture&&(e=e.source),null!=(t=this._renderSurfaceToRenderTargetHash.get(e))?t:this._initRenderTarget(e)}copyToTexture(e,t,n,r,i){n.x<0&&(r.width+=n.x,i.x-=n.x,n.x=0),n.y<0&&(r.height+=n.y,i.y-=n.y,n.y=0);const{pixelWidth:o,pixelHeight:a}=e;return r.width=Math.min(r.width,o-n.x),r.height=Math.min(r.height,a-n.y),this.adaptor.copyToTexture(e,t,n,r,i)}ensureDepthStencil(){this.renderTarget.stencil||(this.renderTarget.stencil=!0,this.adaptor.startRenderPass(this.renderTarget,!1,null,this.viewport))}destroy(){this._renderer=null,this._renderSurfaceToRenderTargetHash.forEach(((e,t)=>{e!==t&&e.destroy()})),this._renderSurfaceToRenderTargetHash.clear(),this._gpuRenderTargetHash=Object.create(null)}_initRenderTarget(e){let t=null;return Oi.test(e)&&(e=fh(e)),e instanceof Wp?t=e:e instanceof ei&&(t=new Wp({colorTextures:[e]}),Oi.test(e.source.resource)&&(t.isRoot=!0),e.once("destroy",(()=>{t.destroy();const e=this._gpuRenderTargetHash[t.uid];e&&(this._gpuRenderTargetHash[t.uid]=null,this.adaptor.destroyGpuRenderTarget(e))}))),this._renderSurfaceToRenderTargetHash.set(e,t),t}getGpuRenderTarget(e){return this._gpuRenderTargetHash[e.uid]||(this._gpuRenderTargetHash[e.uid]=this.adaptor.initGpuRenderTarget(e))}constructor(e){this.rootViewPort=new ut,this.viewport=new ut,this.onRenderTargetChange=new wf("onRenderTargetChange"),this.projectionMatrix=new Be,this.defaultClearColor=[0,0,0,0],this._renderSurfaceToRenderTargetHash=new Map,this._gpuRenderTargetHash=Object.create(null),this._renderTargetStack=[],this._renderer=e}}}}),Bm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/renderTarget/GpuRenderTarget.mjs"(){um=class{constructor(){this.contexts=[],this.msaaTextures=[],this.msaaSamples=1}}}}),Fm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/renderTarget/GpuRenderTargetAdaptor.mjs"(){Bf(),Li(),fi(),Bm(),cm=class{init(e,t){this._renderer=e,this._renderTargetSystem=t}copyToTexture(e,t,n,r,i){const o=this._renderer,a=this._getGpuColorTexture(e),s=o.texture.getGpuSource(t.source);return o.encoder.commandEncoder.copyTextureToTexture({texture:a,origin:n},{texture:s,origin:i},r),t}startRenderPass(e,t=!0,n,r){const i=this._renderTargetSystem.getGpuRenderTarget(e),o=this.getDescriptor(e,t,n);i.descriptor=o,this._renderer.pipeline.setRenderTarget(i),this._renderer.encoder.beginRenderPass(i),this._renderer.encoder.setViewport(r)}finishRenderPass(){this._renderer.encoder.endRenderPass()}_getGpuColorTexture(e){const t=this._renderTargetSystem.getGpuRenderTarget(e);return t.contexts[0]?t.contexts[0].getCurrentTexture():this._renderer.texture.getGpuSource(e.colorTextures[0].source)}getDescriptor(e,t,n){"boolean"==typeof t&&(t=t?_f.ALL:_f.NONE);const r=this._renderTargetSystem,i=r.getGpuRenderTarget(e),o=e.colorTextures.map(((e,o)=>{const a=i.contexts[o];let s,l;s=a?a.getCurrentTexture().createView():this._renderer.texture.getGpuSource(e).createView({mipLevelCount:1}),i.msaaTextures[o]&&(l=s,s=this._renderer.texture.getTextureView(i.msaaTextures[o]));const u=t&_f.COLOR?"clear":"load";return null!=n||(n=r.defaultClearColor),{view:s,resolveTarget:l,clearValue:n,storeOp:"store",loadOp:u}}));let a;if(!e.stencil&&!e.depth||e.depthStencilTexture||(e.ensureDepthStencilTexture(),e.depthStencilTexture.source.sampleCount=i.msaa?4:1),e.depthStencilTexture){const n=t&_f.STENCIL?"clear":"load",r=t&_f.DEPTH?"clear":"load";a={view:this._renderer.texture.getGpuSource(e.depthStencilTexture.source).createView(),stencilStoreOp:"store",stencilLoadOp:n,depthClearValue:1,depthLoadOp:r,depthStoreOp:"store"}}return{colorAttachments:o,depthStencilAttachment:a}}clear(e,t=!0,n,r){if(!t)return;const{gpu:i,encoder:o}=this._renderer,a=i.device;if(null===o.commandEncoder){const i=a.createCommandEncoder(),o=this.getDescriptor(e,t,n),s=i.beginRenderPass(o);s.setViewport(r.x,r.y,r.width,r.height,0,1),s.end();const l=i.finish();a.queue.submit([l])}else this.startRenderPass(e,t,n,r)}initGpuRenderTarget(e){e.isRoot=!0;const t=new um;return e.colorTextures.forEach(((e,n)=>{if(Oi.test(e.resource)){const i=e.resource.getContext("webgpu"),o=e.transparent?"premultiplied":"opaque";try{i.configure({device:this._renderer.gpu.device,usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.COPY_SRC,format:"bgra8unorm",alphaMode:o})}catch(r){console.error(r)}t.contexts[n]=i}if(t.msaa=e.source.antialias,e.source.antialias){const e=new ei({width:0,height:0,sampleCount:4});t.msaaTextures[n]=e}})),t.msaa&&(t.msaaSamples=4,e.depthStencilTexture&&(e.depthStencilTexture.source.sampleCount=4)),t}destroyGpuRenderTarget(e){e.contexts.forEach((e=>{e.unconfigure()})),e.msaaTextures.forEach((e=>{e.destroy()})),e.msaaTextures.length=0,e.contexts.length=0}ensureDepthStencilTexture(e){const t=this._renderTargetSystem.getGpuRenderTarget(e);e.depthStencilTexture&&t.msaa&&(e.depthStencilTexture.source.sampleCount=4)}resizeGpuRenderTarget(e){const t=this._renderTargetSystem.getGpuRenderTarget(e);t.width=e.width,t.height=e.height,t.msaa&&e.colorTextures.forEach(((e,n)=>{const r=t.msaaTextures[n];null==r||r.resize(e.source.width,e.source.height,e.source._resolution)}))}}}}),Dm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/renderTarget/GpuRenderTargetSystem.mjs"(){_e(),zm(),Fm(),(dm=class extends lm{constructor(e){super(e),this.adaptor=new cm,this.adaptor.init(e,this)}}).extension={type:[t.WebGPUSystem],name:"renderTarget"}}}),Lm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/GpuShaderSystem.mjs"(){_e(),(fm=class{contextChange(e){this._gpu=e}getProgramData(e){return this._gpuProgramData[e._layoutKey]||this._createGPUProgramData(e)}_createGPUProgramData(e){const t=this._gpu.device,n=e.gpuLayout.map((e=>t.createBindGroupLayout({entries:e}))),r={bindGroupLayouts:n};return this._gpuProgramData[e._layoutKey]={bindGroups:n,pipeline:t.createPipelineLayout(r)},this._gpuProgramData[e._layoutKey]}destroy(){this._gpu=null,this._gpuProgramData=null}constructor(){this._gpuProgramData=Object.create(null)}}).extension={type:[t.WebGPUSystem],name:"shader"}}}),Nm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/state/GpuBlendModesToPixi.mjs"(){(pm={}).normal={alpha:{srcFactor:"one",dstFactor:"one-minus-src-alpha",operation:"add"},color:{srcFactor:"one",dstFactor:"one-minus-src-alpha",operation:"add"}},pm.add={alpha:{srcFactor:"src-alpha",dstFactor:"one-minus-src-alpha",operation:"add"},color:{srcFactor:"one",dstFactor:"one",operation:"add"}},pm.multiply={alpha:{srcFactor:"one",dstFactor:"one-minus-src-alpha",operation:"add"},color:{srcFactor:"dst",dstFactor:"one-minus-src-alpha",operation:"add"}},pm.screen={alpha:{srcFactor:"one",dstFactor:"one-minus-src-alpha",operation:"add"},color:{srcFactor:"one",dstFactor:"one-minus-src",operation:"add"}},pm.overlay={alpha:{srcFactor:"one",dstFactor:"one-minus-src-alpha",operation:"add"},color:{srcFactor:"one",dstFactor:"one-minus-src",operation:"add"}},pm.none={alpha:{srcFactor:"one",dstFactor:"one-minus-src-alpha",operation:"add"},color:{srcFactor:"zero",dstFactor:"zero",operation:"add"}},pm["normal-npm"]={alpha:{srcFactor:"one",dstFactor:"one-minus-src-alpha",operation:"add"},color:{srcFactor:"src-alpha",dstFactor:"one-minus-src-alpha",operation:"add"}},pm["add-npm"]={alpha:{srcFactor:"one",dstFactor:"one",operation:"add"},color:{srcFactor:"src-alpha",dstFactor:"one",operation:"add"}},pm["screen-npm"]={alpha:{srcFactor:"one",dstFactor:"one-minus-src-alpha",operation:"add"},color:{srcFactor:"src-alpha",dstFactor:"one-minus-src",operation:"add"}},pm.erase={alpha:{srcFactor:"zero",dstFactor:"one-minus-src-alpha",operation:"add"},color:{srcFactor:"zero",dstFactor:"one-minus-src",operation:"add"}}}}),Um=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/state/GpuStateSystem.mjs"(){_e(),Sa(),Nm(),(hm=class{contextChange(e){this.gpu=e}getColorTargets(e){return[{format:"bgra8unorm",writeMask:0,blend:pm[e.blendMode]||pm.normal}]}destroy(){this.gpu=null}constructor(){this.defaultState=new ya,this.defaultState.blend=!0}}).extension={type:[t.WebGPUSystem],name:"state"}}}),Gm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/texture/uploaders/gpuUploadBufferImageResource.mjs"(){mm={type:"image",upload(e,t,n){const r=e.resource,i=(0|e.pixelWidth)*(0|e.pixelHeight),o=r.byteLength/i;n.device.queue.writeTexture({texture:t},r,{offset:0,rowsPerImage:e.pixelHeight,bytesPerRow:e.pixelHeight*o},{width:e.pixelWidth,height:e.pixelHeight,depthOrArrayLayers:1})}}}}),Hm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/texture/uploaders/gpuUploadCompressedTextureResource.mjs"(){Am={"bc1-rgba-unorm":{blockBytes:8,blockWidth:4,blockHeight:4},"bc2-rgba-unorm":{blockBytes:16,blockWidth:4,blockHeight:4},"bc3-rgba-unorm":{blockBytes:16,blockWidth:4,blockHeight:4},"bc7-rgba-unorm":{blockBytes:16,blockWidth:4,blockHeight:4},"etc1-rgb-unorm":{blockBytes:8,blockWidth:4,blockHeight:4},"etc2-rgba8unorm":{blockBytes:16,blockWidth:4,blockHeight:4},"astc-4x4-unorm":{blockBytes:16,blockWidth:4,blockHeight:4}},gm={blockBytes:4,blockWidth:1,blockHeight:1},vm={type:"compressed",upload(e,t,n){let r=e.pixelWidth,i=e.pixelHeight;const o=Am[e.format]||gm;for(let a=0;a<e.resource.length;a++){const s=e.resource[a],l=Math.ceil(r/o.blockWidth)*o.blockBytes;n.device.queue.writeTexture({texture:t,mipLevel:a},s,{offset:0,bytesPerRow:l},{width:Math.ceil(r/o.blockWidth)*o.blockWidth,height:Math.ceil(i/o.blockHeight)*o.blockHeight,depthOrArrayLayers:1}),r=Math.max(r>>1,1),i=Math.max(i>>1,1)}}}}}),Wm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/texture/uploaders/gpuUploadImageSource.mjs"(){ym={type:"image",upload(e,t,n){const r=e.resource;if(!r)return;const i=Math.min(t.width,e.resourceWidth||e.pixelWidth),o=Math.min(t.height,e.resourceHeight||e.pixelHeight),a="premultiply-alpha-on-upload"===e.alphaMode;n.device.queue.copyExternalImageToTexture({source:r},{texture:t,premultipliedAlpha:a},{width:i,height:o})}}}}),Vm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/texture/uploaders/gpuUploadVideoSource.mjs"(){Wm(),bm={type:"video",upload(e,t,n){ym.upload(e,t,n)}}}}),Xm=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/texture/utils/GpuMipmapGenerator.mjs"(){xm=class{_getMipmapPipeline(e){let t=this.pipelines[e];return t||(this.mipmapShaderModule||(this.mipmapShaderModule=this.device.createShaderModule({code:"\n var<private> pos : array<vec2<f32>, 3> = array<vec2<f32>, 3>(\n vec2<f32>(-1.0, -1.0), vec2<f32>(-1.0, 3.0), vec2<f32>(3.0, -1.0));\n\n struct VertexOutput {\n @builtin(position) position : vec4<f32>,\n @location(0) texCoord : vec2<f32>,\n };\n\n @vertex\n fn vertexMain(@builtin(vertex_index) vertexIndex : u32) -> VertexOutput {\n var output : VertexOutput;\n output.texCoord = pos[vertexIndex] * vec2<f32>(0.5, -0.5) + vec2<f32>(0.5);\n output.position = vec4<f32>(pos[vertexIndex], 0.0, 1.0);\n return output;\n }\n\n @group(0) @binding(0) var imgSampler : sampler;\n @group(0) @binding(1) var img : texture_2d<f32>;\n\n @fragment\n fn fragmentMain(@location(0) texCoord : vec2<f32>) -> @location(0) vec4<f32> {\n return textureSample(img, imgSampler, texCoord);\n }\n "})),t=this.device.createRenderPipeline({layout:"auto",vertex:{module:this.mipmapShaderModule,entryPoint:"vertexMain"},fragment:{module:this.mipmapShaderModule,entryPoint:"fragmentMain",targets:[{format:e}]}}),this.pipelines[e]=t),t}generateMipmap(e){const t=this._getMipmapPipeline(e.format);if("3d"===e.dimension||"1d"===e.dimension)throw new Error("Generating mipmaps for non-2d textures is currently unsupported!");let n=e;const r=e.depthOrArrayLayers||1,i=e.usage&GPUTextureUsage.RENDER_ATTACHMENT;if(!i){const t={size:{width:Math.ceil(e.width/2),height:Math.ceil(e.height/2),depthOrArrayLayers:r},format:e.format,usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_SRC|GPUTextureUsage.RENDER_ATTACHMENT,mipLevelCount:e.mipLevelCount-1};n=this.device.createTexture(t)}const o=this.device.createCommandEncoder({}),a=t.getBindGroupLayout(0);for(let s=0;s<r;++s){let r=e.createView({baseMipLevel:0,mipLevelCount:1,dimension:"2d",baseArrayLayer:s,arrayLayerCount:1}),l=i?1:0;for(let i=1;i<e.mipLevelCount;++i){const e=n.createView({baseMipLevel:l++,mipLevelCount:1,dimension:"2d",baseArrayLayer:s,arrayLayerCount:1}),i=o.beginRenderPass({colorAttachments:[{view:e,storeOp:"store",loadOp:"clear",clearValue:{r:0,g:0,b:0,a:0}}]}),u=this.device.createBindGroup({layout:a,entries:[{binding:0,resource:this.sampler},{binding:1,resource:r}]});i.setPipeline(t),i.setBindGroup(0,u),i.draw(3,1,0,0),i.end(),r=e}}if(!i){const t={width:Math.ceil(e.width/2),height:Math.ceil(e.height/2),depthOrArrayLayers:r};for(let r=1;r<e.mipLevelCount;++r)o.copyTextureToTexture({texture:n,mipLevel:r-1},{texture:e,mipLevel:r},t),t.width=Math.ceil(t.width/2),t.height=Math.ceil(t.height/2)}return this.device.queue.submit([o.finish()]),i||n.destroy(),e}constructor(e){this.device=e,this.sampler=e.createSampler({minFilter:"linear"}),this.pipelines={}}}}}),Km=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.mjs"(){Sr(),_e(),Qa(),go(),Gm(),Hm(),Wm(),Vm(),Xm(),(Sm=class{contextChange(e){this._gpu=e}initSource(e){if(e.autoGenerateMipmaps){const t=Math.max(e.pixelWidth,e.pixelHeight);e.mipLevelCount=Math.floor(Math.log2(t))+1}let t=GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST;"compressed"!==e.uploadMethodId&&(t|=GPUTextureUsage.RENDER_ATTACHMENT,t|=GPUTextureUsage.COPY_SRC);const n=Am[e.format]||{blockBytes:4,blockWidth:1,blockHeight:1},r=Math.ceil(e.pixelWidth/n.blockWidth)*n.blockWidth,i=Math.ceil(e.pixelHeight/n.blockHeight)*n.blockHeight,o={label:e.label,size:{width:r,height:i},format:e.format,sampleCount:e.sampleCount,mipLevelCount:e.mipLevelCount,dimension:e.dimension,usage:t},a=this._gpu.device.createTexture(o);return this._gpuSources[e.uid]=a,this.managedTextures.includes(e)||(e.on("update",this.onSourceUpdate,this),e.on("resize",this.onSourceResize,this),e.on("destroy",this.onSourceDestroy,this),e.on("unload",this.onSourceUnload,this),e.on("updateMipmaps",this.onUpdateMipmaps,this),this.managedTextures.push(e)),this.onSourceUpdate(e),a}onSourceUpdate(e){const t=this.getGpuSource(e);t&&(this._uploads[e.uploadMethodId]&&this._uploads[e.uploadMethodId].upload(e,t,this._gpu),e.autoGenerateMipmaps&&e.mipLevelCount>1&&this.onUpdateMipmaps(e))}onSourceUnload(e){const t=this._gpuSources[e.uid];t&&(this._gpuSources[e.uid]=null,t.destroy())}onUpdateMipmaps(e){this._mipmapGenerator||(this._mipmapGenerator=new xm(this._gpu.device));const t=this.getGpuSource(e);this._mipmapGenerator.generateMipmap(t)}onSourceDestroy(e){e.off("update",this.onSourceUpdate,this),e.off("unload",this.onSourceUnload,this),e.off("destroy",this.onSourceDestroy,this),e.off("resize",this.onSourceResize,this),e.off("updateMipmaps",this.onUpdateMipmaps,this),this.managedTextures.splice(this.managedTextures.indexOf(e),1),this.onSourceUnload(e)}onSourceResize(e){const t=this._gpuSources[e.uid];t?t.width===e.pixelWidth&&t.height===e.pixelHeight||(this._textureViewHash[e.uid]=null,this._bindGroupHash[e.uid]=null,this.onSourceUnload(e),this.initSource(e)):this.initSource(e)}_initSampler(e){return this._gpuSamplers[e._resourceId]=this._gpu.device.createSampler(e),this._gpuSamplers[e._resourceId]}getGpuSampler(e){return this._gpuSamplers[e._resourceId]||this._initSampler(e)}getGpuSource(e){return this._gpuSources[e.uid]||this.initSource(e)}getTextureBindGroup(e){var t;return null!=(t=this._bindGroupHash[e.uid])?t:this._createTextureBindGroup(e)}_createTextureBindGroup(e){const t=e.source,n=t.uid;return this._bindGroupHash[n]=new fo({0:t,1:t.style}),this._bindGroupHash[n]}getTextureView(e){var t;const n=e.source;return null!=(t=this._textureViewHash[n.uid])?t:this._createTextureView(n)}_createTextureView(e){return this._textureViewHash[e.uid]=this.getGpuSource(e).createView(),this._textureViewHash[e.uid]}generateCanvas(e){const t=this._renderer,n=t.gpu.device.createCommandEncoder(),r=$n.get().createCanvas();r.width=e.source.pixelWidth,r.height=e.source.pixelHeight;const i=r.getContext("webgpu");return i.configure({device:t.gpu.device,usage:GPUTextureUsage.COPY_DST|GPUTextureUsage.COPY_SRC,format:navigator.gpu.getPreferredCanvasFormat(),alphaMode:"premultiplied"}),n.copyTextureToTexture({texture:t.texture.getGpuSource(e.source),origin:{x:0,y:0}},{texture:i.getCurrentTexture()},{width:r.width,height:r.height}),t.gpu.device.queue.submit([n.finish()]),r}getPixels(e){const t=this.generateCanvas(e),n=La.getOptimalCanvasAndContext(t.width,t.height),r=n.context;r.drawImage(t,0,0);const{width:i,height:o}=t,a=r.getImageData(0,0,i,o),s=new Uint8ClampedArray(a.data.buffer);return La.returnCanvasAndContext(n),{pixels:s,width:i,height:o}}destroy(){this.managedTextures.slice().forEach((e=>this.onSourceDestroy(e))),this.managedTextures=null;for(const e of Object.keys(this._bindGroupHash)){const t=Number(e),n=this._bindGroupHash[t];null==n||n.destroy(),this._bindGroupHash[t]=null}this._gpu=null,this._mipmapGenerator=null,this._gpuSources=null,this._bindGroupHash=null,this._textureViewHash=null,this._gpuSamplers=null}constructor(e){this.managedTextures=[],this._gpuSources=Object.create(null),this._gpuSamplers=Object.create(null),this._bindGroupHash=Object.create(null),this._textureViewHash=Object.create(null),this._uploads={image:ym,buffer:mm,video:bm,compressed:vm},this._renderer=e}}).extension={type:[t.WebGPUSystem],name:"texture"}}}),qm={};J(qm,{WebGPURenderer:()=>km});var Qm,Ym,Zm,$m,Jm,eA,tA,nA,rA,iA,oA,aA,sA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gpu/WebGPURenderer.mjs"(){_e(),Lf(),Uf(),Gf(),Df(),Th(),Uc(),Ph(),kh(),Rh(),Ih(),Oh(),Mh(),em(),rm(),Om(),Dm(),Lm(),Um(),Km(),_m=[...mh,qh,xh,bh,vh,Sm,dm,fm,hm,sm,yh,Sh,gh],wm=[...Ah,$h],Em=[Mf,If,Pf],Cm=[],Tm=[],Pm=[],i.handleByNamedList(t.WebGPUSystem,Cm),i.handleByNamedList(t.WebGPUPipes,Tm),i.handleByNamedList(t.WebGPUPipesAdaptor,Pm),i.add(..._m,...wm,...Em),km=class extends Tf{constructor(){super({name:"webgpu",type:Rc.WEBGPU,systems:Cm,renderPipes:Tm,renderPipeAdaptors:Pm})}}}}),lA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/gl/GlGraphicsAdaptor.mjs"(){_e(),Xe(),vo(),yc(),bc(),Dc(),Vd(),Lc(),Nc(),Gc(),Ha(),(Qm=class{init(){const e=new ja({uColor:{value:new Float32Array([1,1,1,1]),type:"vec4<f32>"},uTransformMatrix:{value:new Be,type:"mat3x3<f32>"},uRound:{value:0,type:"f32"}}),t=hc({name:"graphics",bits:[Ac,Ec(po),bd,Tc]});this.shader=new Ic({glProgram:t,resources:{localUniforms:e,batchSamplers:kc}})}execute(e,t){const n=t.context,r=n.customShader||this.shader,i=e.renderer,o=i.graphicsContext,{geometry:a,instructions:s}=o.getContextRenderData(n);r.groups[0]=i.globalUniforms.bindGroup,i.state.set(e.state),i.shader.bind(r),i.geometry.bind(a,r.glProgram);const l=s.instructions;for(let u=0;u<s.instructionSize;u++){const e=l[u];if(e.size){for(let t=0;t<e.textures.textures.length;t++)i.texture.bind(e.textures.textures[t],t);i.geometry.draw("triangle-list",e.size,e.start)}}}destroy(){this.shader.destroy(!0),this.shader=null}}).extension={type:[t.WebGLPipesAdaptor],name:"graphics"}}}),uA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/mesh/gl/GlMeshAdaptor.mjs"(){_e(),Xe(),yc(),Vd(),Lc(),Nf(),Gc(),mi(),Ot(),(Ym=class{init(){const e=hc({name:"mesh",bits:[bd,Rf,Tc]});this._shader=new Ic({glProgram:e,resources:{uTexture:ii.EMPTY.source,textureUniforms:{uTextureMatrix:{type:"mat3x3<f32>",value:new Be}}}})}execute(e,t){const n=e.renderer;let r=t._shader;if(r){if(!r.glProgram)return void It("Mesh shader has no glProgram",t.shader)}else{r=this._shader;const e=t.texture,n=e.source;r.resources.uTexture=n,r.resources.uSampler=n.style,r.resources.textureUniforms.uniforms.uTextureMatrix=e.textureMatrix.mapCoord}r.groups[100]=n.globalUniforms.bindGroup,r.groups[101]=e.localUniformsBindGroup,n.encoder.draw({geometry:t._geometry,shader:r,state:t.state})}destroy(){this._shader.destroy(!0),this._shader=null}}).extension={type:[t.WebGLPipesAdaptor],name:"mesh"}}}),cA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/batcher/gl/GlBatchAdaptor.mjs"(){_e(),yc(),bc(),Dc(),Lc(),Nc(),Gc(),Sa(),vo(),(Zm=class{init(e){const t=hc({name:"batch",bits:[Ac,Ec(po),Tc]});this._shader=new Ic({glProgram:t,resources:{batchSamplers:kc}}),e.renderer.runners.contextChange.add(this)}contextChange(){this._didUpload=!1}start(e,t){const n=e.renderer;n.shader.bind(this._shader,this._didUpload),n.shader.updateUniformGroup(n.globalUniforms.uniformGroup),n.geometry.bind(t,this._shader.glProgram)}execute(e,t){const n=e.renderer;this._didUpload=!0,this._tempState.blendMode=t.blendMode,n.state.set(this._tempState);const r=t.textures.textures;for(let i=0;i<r.length;i++)n.texture.bind(r[i],i);n.geometry.draw("triangle-list",t.size,t.start)}destroy(){this._shader.destroy(!0),this._shader=null}constructor(){this._didUpload=!1,this._tempState=ya.for2d()}}).extension={type:[t.WebGLPipesAdaptor],name:"batch"}}}),dA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/buffer/const.mjs"(){$m=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))($m||{})}}),fA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/buffer/GlBuffer.mjs"(){Jm=class{constructor(e,t){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.type=t}}}}),pA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/buffer/GlBufferSystem.mjs"(){_e(),to(),dA(),fA(),(eA=class{destroy(){this._renderer=null,this._gl=null,this._gpuBuffers=null,this._boundBufferBases=null}contextChange(){this._gpuBuffers=Object.create(null),this._gl=this._renderer.gl}getGlBuffer(e){return this._gpuBuffers[e.uid]||this.createGLBuffer(e)}bind(e){const{_gl:t}=this,n=this.getGlBuffer(e);t.bindBuffer(n.type,n.buffer)}bindBufferBase(e,t){const{_gl:n}=this;if(this._boundBufferBases[t]!==e){const r=this.getGlBuffer(e);this._boundBufferBases[t]=e,n.bindBufferBase(n.UNIFORM_BUFFER,t,r.buffer)}}bindBufferRange(e,t,n){const{_gl:r}=this;n=n||0;const i=this.getGlBuffer(e);r.bindBufferRange(r.UNIFORM_BUFFER,t||0,i.buffer,256*n,256)}updateBuffer(e){const{_gl:t}=this,n=this.getGlBuffer(e);if(e._updateID===n.updateID)return n;n.updateID=e._updateID,t.bindBuffer(n.type,n.buffer);const r=e.data;if(n.byteLength>=e.data.byteLength)t.bufferSubData(n.type,0,r,0,e._updateSize/r.BYTES_PER_ELEMENT);else{const i=e.descriptor.usage&Zi.STATIC?t.STATIC_DRAW:t.DYNAMIC_DRAW;n.byteLength=r.byteLength,t.bufferData(n.type,r,i)}return n}destroyAll(){const e=this._gl;for(const t in this._gpuBuffers)e.deleteBuffer(this._gpuBuffers[t].buffer);this._gpuBuffers=Object.create(null)}onBufferDestroy(e,t){const n=this._gpuBuffers[e.uid],r=this._gl;t||r.deleteBuffer(n.buffer),this._gpuBuffers[e.uid]=null}createGLBuffer(e){const{_gl:t}=this;let n=$m.ARRAY_BUFFER;e.descriptor.usage&Zi.INDEX?n=$m.ELEMENT_ARRAY_BUFFER:e.descriptor.usage&Zi.UNIFORM&&(n=$m.UNIFORM_BUFFER);const r=new Jm(t.createBuffer(),n);return this._gpuBuffers[e.uid]=r,e.on("destroy",this.onBufferDestroy,this),r}constructor(e){this._gpuBuffers=Object.create(null),this._boundBufferBases=Object.create(null),this._renderer=e}}).extension={type:[t.WebGLSystem],name:"buffer"}}}),hA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/context/GlContextSystem.mjs"(){Sr(),_e(),Ot(),(tA=class e{get isLost(){return!this.gl||this.gl.isContextLost()}contextChange(e){this.gl=e,this._renderer.gl=e}init(t){var n,r;if((t=q(q({},e.defaultOptions),t)).context)this.initFromContext(t.context);else{const e=this._renderer.background.alpha<1,i=null==(n=t.premultipliedAlpha)||n,o=t.antialias&&!this._renderer.backBuffer.useBackBuffer;this.createContext(t.preferWebGLVersion,{alpha:e,premultipliedAlpha:i,antialias:o,stencil:!0,preserveDrawingBuffer:t.preserveDrawingBuffer,powerPreference:null!=(r=t.powerPreference)?r:"default"})}}initFromContext(e){this.gl=e,this.webGLVersion=e instanceof $n.get().getWebGLRenderingContext()?1:2,this.getExtensions(),this.validateContext(e),this._renderer.runners.contextChange.emit(e);const t=this._renderer.view.canvas;t.addEventListener("webglcontextlost",this.handleContextLost,!1),t.addEventListener("webglcontextrestored",this.handleContextRestored,!1)}createContext(e,t){let n;const r=this._renderer.view.canvas;if(2===e&&(n=r.getContext("webgl2",t)),!n&&(n=r.getContext("webgl",t),!n))throw new Error("This browser does not support WebGL. Try using the canvas renderer");this.gl=n,this.initFromContext(this.gl)}getExtensions(){const{gl:e}=this,t={anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc"),bptc:e.getExtension("EXT_texture_compression_bptc"),rgtc:e.getExtension("EXT_texture_compression_rgtc"),loseContext:e.getExtension("WEBGL_lose_context")};if(1===this.webGLVersion)this.extensions=Q(q({},t),{drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_half_float_linear"),vertexAttribDivisorANGLE:e.getExtension("ANGLE_instanced_arrays"),srgb:e.getExtension("EXT_sRGB")});else{this.extensions=Q(q({},t),{colorBufferFloat:e.getExtension("EXT_color_buffer_float")});const n=e.getExtension("WEBGL_provoking_vertex");n&&n.provokingVertexWEBGL(n.FIRST_VERTEX_CONVENTION_WEBGL)}}handleContextLost(e){e.preventDefault(),this._contextLossForced&&(this._contextLossForced=!1,setTimeout((()=>{var e;this.gl.isContextLost()&&(null==(e=this.extensions.loseContext)||e.restoreContext())}),0))}handleContextRestored(){this._renderer.runners.contextChange.emit(this.gl)}destroy(){var e;const t=this._renderer.view.canvas;this._renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),null==(e=this.extensions.loseContext)||e.loseContext()}forceContextLoss(){var e;null==(e=this.extensions.loseContext)||e.loseContext(),this._contextLossForced=!0}validateContext(e){const t=e.getContextAttributes();t&&!t.stencil&&It("Provided WebGL context does not have a stencil buffer, masks may not render correctly");const n=this.supports,r=2===this.webGLVersion,i=this.extensions;n.uint32Indices=r||!!i.uint32ElementIndex,n.uniformBufferObject=r,n.vertexArrayObject=r||!!i.vertexArrayObject,n.srgbTextures=r||!!i.srgb,n.nonPowOf2wrapping=r,n.nonPowOf2mipmaps=r,n.msaa=r,n.uint32Indices||It("Provided WebGL context does not support 32 index buffer, large scenes may not render correctly")}constructor(e){this.supports={uint32Indices:!0,uniformBufferObject:!0,vertexArrayObject:!0,srgbTextures:!0,nonPowOf2wrapping:!0,msaa:!0,nonPowOf2mipmaps:!0},this._renderer=e,this.extensions=Object.create(null),this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this)}}).extension={type:[t.WebGLSystem],name:"context"},tA.defaultOptions={context:null,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:void 0,preferWebGLVersion:2},nA=tA}}),mA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/texture/const.mjs"(){rA=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(rA||{}),iA=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(iA||{}),oA=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(oA||{})}});function AA(e){var t;return null!=(t=aA[e])?t:aA.float32}var gA,vA,yA,bA,xA,SA,_A,wA,EA,CA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/geometry/utils/getGlTypeFromFormat.mjs"(){mA(),aA={uint8x2:oA.UNSIGNED_BYTE,uint8x4:oA.UNSIGNED_BYTE,sint8x2:oA.BYTE,sint8x4:oA.BYTE,unorm8x2:oA.UNSIGNED_BYTE,unorm8x4:oA.UNSIGNED_BYTE,snorm8x2:oA.BYTE,snorm8x4:oA.BYTE,uint16x2:oA.UNSIGNED_SHORT,uint16x4:oA.UNSIGNED_SHORT,sint16x2:oA.SHORT,sint16x4:oA.SHORT,unorm16x2:oA.UNSIGNED_SHORT,unorm16x4:oA.UNSIGNED_SHORT,snorm16x2:oA.SHORT,snorm16x4:oA.SHORT,float16x2:oA.HALF_FLOAT,float16x4:oA.HALF_FLOAT,float32:oA.FLOAT,float32x2:oA.FLOAT,float32x3:oA.FLOAT,float32x4:oA.FLOAT,uint32:oA.UNSIGNED_INT,uint32x2:oA.UNSIGNED_INT,uint32x3:oA.UNSIGNED_INT,uint32x4:oA.UNSIGNED_INT,sint32:oA.INT,sint32x2:oA.INT,sint32x3:oA.INT,sint32x4:oA.INT}}}),TA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/geometry/GlGeometrySystem.mjs"(){_e(),Pu(),Rm(),CA(),gA={"point-list":0,"line-list":1,"line-strip":3,"triangle-list":4,"triangle-strip":5},(vA=class{contextChange(){const e=this.gl=this._renderer.gl;if(!this._renderer.context.supports.vertexArrayObject)throw new Error("[PixiJS] Vertex Array Objects are not supported on this device");const t=this._renderer.context.extensions.vertexArrayObject;t&&(e.createVertexArray=()=>t.createVertexArrayOES(),e.bindVertexArray=e=>t.bindVertexArrayOES(e),e.deleteVertexArray=e=>t.deleteVertexArrayOES(e));const n=this._renderer.context.extensions.vertexAttribDivisorANGLE;n&&(e.drawArraysInstanced=(e,t,r,i)=>{n.drawArraysInstancedANGLE(e,t,r,i)},e.drawElementsInstanced=(e,t,r,i,o)=>{n.drawElementsInstancedANGLE(e,t,r,i,o)},e.vertexAttribDivisor=(e,t)=>n.vertexAttribDivisorANGLE(e,t)),this._activeGeometry=null,this._activeVao=null,this._geometryVaoHash=Object.create(null)}bind(e,t){const n=this.gl;this._activeGeometry=e;const r=this.getVao(e,t);this._activeVao!==r&&(this._activeVao=r,n.bindVertexArray(r)),this.updateBuffers()}reset(){this.unbind()}updateBuffers(){const e=this._activeGeometry,t=this._renderer.buffer;for(let n=0;n<e.buffers.length;n++){const r=e.buffers[n];t.updateBuffer(r)}}checkCompatibility(e,t){const n=e.attributes,r=t._attributeData;for(const i in r)if(!n[i])throw new Error(`shader and geometry incompatible, geometry missing the "${i}" attribute`)}getSignature(e,t){const n=e.attributes,r=t._attributeData,i=["g",e.uid];for(const o in n)r[o]&&i.push(o,r[o].location);return i.join("-")}getVao(e,t){var n;return(null==(n=this._geometryVaoHash[e.uid])?void 0:n[t._key])||this.initGeometryVao(e,t)}initGeometryVao(e,t,n=!0){const r=this._renderer.gl,i=this._renderer.buffer;this._renderer.shader._getProgramData(t),this.checkCompatibility(e,t);const o=this.getSignature(e,t);this._geometryVaoHash[e.uid]||(this._geometryVaoHash[e.uid]=Object.create(null),e.on("destroy",this.onGeometryDestroy,this));const a=this._geometryVaoHash[e.uid];let s=a[o];if(s)return a[t._key]=s,s;im(e,t._attributeData);const l=e.buffers;s=r.createVertexArray(),r.bindVertexArray(s);for(let u=0;u<l.length;u++){const e=l[u];i.bind(e)}return this.activateVao(e,t),a[t._key]=s,a[o]=s,r.bindVertexArray(null),s}onGeometryDestroy(e,t){const n=this._geometryVaoHash[e.uid],r=this.gl;if(n){if(t)for(const e in n)this._activeVao!==n[e]&&this.unbind(),r.deleteVertexArray(n[e]);this._geometryVaoHash[e.uid]=null}}destroyAll(e=!1){const t=this.gl;for(const n in this._geometryVaoHash){if(e)for(const e in this._geometryVaoHash[n]){const r=this._geometryVaoHash[n];this._activeVao!==r&&this.unbind(),t.deleteVertexArray(r[e])}this._geometryVaoHash[n]=null}}activateVao(e,t){var n;const r=this._renderer.gl,i=this._renderer.buffer,o=e.attributes;e.indexBuffer&&i.bind(e.indexBuffer);let a=null;for(const s in o){const e=o[s],l=e.buffer,u=i.getGlBuffer(l),c=t._attributeData[s];if(c){a!==u&&(i.bind(l),a=u);const t=e.location;r.enableVertexAttribArray(t);const o=Cu(e.format),s=AA(e.format);if("int"===(null==(n=c.format)?void 0:n.substring(1,4))?r.vertexAttribIPointer(t,o.size,s,e.stride,e.offset):r.vertexAttribPointer(t,o.size,s,o.normalised,e.stride,e.offset),e.instance){if(!this.hasInstance)throw new Error("geometry error, GPU Instancing is not supported on this device");r.vertexAttribDivisor(t,1)}}}}draw(e,t,n,r){const{gl:i}=this._renderer,o=this._activeGeometry,a=gA[o.topology||e];if(r||(r=o.instanceCount),o.indexBuffer){const e=o.indexBuffer.data.BYTES_PER_ELEMENT,s=2===e?i.UNSIGNED_SHORT:i.UNSIGNED_INT;r>1?i.drawElementsInstanced(a,t||o.indexBuffer.data.length,s,(n||0)*e,r):i.drawElements(a,t||o.indexBuffer.data.length,s,(n||0)*e)}else r>1?i.drawArraysInstanced(a,n||0,t||o.getSize(),r):i.drawArrays(a,n||0,t||o.getSize());return this}unbind(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null}destroy(){this._renderer=null,this.gl=null,this._activeVao=null,this._activeGeometry=null}constructor(e){this._geometryVaoHash=Object.create(null),this._renderer=e,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0}}).extension={type:[t.WebGLSystem],name:"geometry"}}}),PA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/GlBackBufferSystem.mjs"(){_e(),Ot(),mo(),Gc(),Sa(),fi(),mi(),Eu(),yA=new io({attributes:{aPosition:[-1,-1,3,-1,-1,3]}}),(bA=class e{init(t={}){const{useBackBuffer:n,antialias:r}=q(q({},e.defaultOptions),t);this.useBackBuffer=n,this._antialias=r,this._renderer.context.supports.msaa||(It("antialiasing, is not supported on when using the back buffer"),this._antialias=!1),this._state=ya.for2d();const i=new Su({vertex:"\n attribute vec2 aPosition;\n out vec2 vUv;\n\n void main() {\n gl_Position = vec4(aPosition, 0.0, 1.0);\n\n vUv = (aPosition + 1.0) / 2.0;\n\n // flip dem UVs\n vUv.y = 1.0 - vUv.y;\n }",fragment:"\n in vec2 vUv;\n out vec4 finalColor;\n\n uniform sampler2D uTexture;\n\n void main() {\n finalColor = texture(uTexture, vUv);\n }",name:"big-triangle"});this._bigTriangleShader=new Ic({glProgram:i,resources:{uTexture:ii.WHITE.source}})}renderStart(e){const t=this._renderer.renderTarget.getRenderTarget(e.target);if(this._useBackBufferThisRender=this.useBackBuffer&&!!t.isRoot,this._useBackBufferThisRender){const t=this._renderer.renderTarget.getRenderTarget(e.target);this._targetTexture=t.colorTexture,e.target=this._getBackBufferTexture(t.colorTexture)}}renderEnd(){this._presentBackBuffer()}_presentBackBuffer(){const e=this._renderer;e.renderTarget.finishRenderPass(),this._useBackBufferThisRender&&(e.renderTarget.bind(this._targetTexture,!1),this._bigTriangleShader.resources.uTexture=this._backBufferTexture.source,e.encoder.draw({geometry:yA,shader:this._bigTriangleShader,state:this._state}))}_getBackBufferTexture(e){return this._backBufferTexture=this._backBufferTexture||new ii({source:new ei({width:e.width,height:e.height,resolution:e._resolution,antialias:this._antialias})}),this._backBufferTexture.source.resize(e.width,e.height,e._resolution),this._backBufferTexture}destroy(){this._backBufferTexture&&(this._backBufferTexture.destroy(),this._backBufferTexture=null)}constructor(e){this.useBackBuffer=!1,this._useBackBufferThisRender=!1,this._renderer=e}}).extension={type:[t.WebGLSystem],name:"backBuffer",priority:1},bA.defaultOptions={useBackBuffer:!1},xA=bA}}),kA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/GlColorMaskSystem.mjs"(){_e(),(SA=class{setMask(e){this._colorMaskCache!==e&&(this._colorMaskCache=e,this._renderer.gl.colorMask(!!(8&e),!!(4&e),!!(2&e),!!(1&e)))}constructor(e){this._colorMaskCache=15,this._renderer=e}}).extension={type:[t.WebGLSystem],name:"colorMask"}}}),RA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/GlEncoderSystem.mjs"(){_e(),(_A=class{setGeometry(e,t){this._renderer.geometry.bind(e,t.glProgram)}finishRenderPass(){}draw(e){const t=this._renderer,{geometry:n,shader:r,state:i,skipSync:o,topology:a,size:s,start:l,instanceCount:u}=e;t.shader.bind(r,o),t.geometry.bind(n,t.shader._activeProgram),i&&t.state.set(i),t.geometry.draw(a,s,l,null!=u?u:n.instanceCount)}destroy(){this._renderer=null}constructor(e){this.commandFinished=Promise.resolve(),this._renderer=e}}).extension={type:[t.WebGLSystem],name:"encoder"}}}),IA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/GlStencilSystem.mjs"(){_e(),Im(),To(),(wA=class{contextChange(e){this._gl=e,this._comparisonFuncMapping={always:e.ALWAYS,never:e.NEVER,equal:e.EQUAL,"not-equal":e.NOTEQUAL,less:e.LESS,"less-equal":e.LEQUAL,greater:e.GREATER,"greater-equal":e.GEQUAL},this._stencilOpsMapping={keep:e.KEEP,zero:e.ZERO,replace:e.REPLACE,invert:e.INVERT,"increment-clamp":e.INCR,"decrement-clamp":e.DECR,"increment-wrap":e.INCR_WRAP,"decrement-wrap":e.DECR_WRAP},this._stencilCache.enabled=!1,this._stencilCache.stencilMode=Eo.NONE,this._stencilCache.stencilReference=0}onRenderTargetChange(e){if(this._activeRenderTarget===e)return;this._activeRenderTarget=e;let t=this._renderTargetStencilState[e.uid];t||(t=this._renderTargetStencilState[e.uid]={stencilMode:Eo.DISABLED,stencilReference:0}),this.setStencilMode(t.stencilMode,t.stencilReference)}setStencilMode(e,t){const n=this._renderTargetStencilState[this._activeRenderTarget.uid],r=this._gl,i=om[e],o=this._stencilCache;n.stencilMode=e,n.stencilReference=t,e!==Eo.DISABLED?(this._stencilCache.enabled||(this._stencilCache.enabled=!0,r.enable(r.STENCIL_TEST)),e===o.stencilMode&&o.stencilReference===t||(o.stencilMode=e,o.stencilReference=t,r.stencilFunc(this._comparisonFuncMapping[i.stencilBack.compare],t,255),r.stencilOp(r.KEEP,r.KEEP,this._stencilOpsMapping[i.stencilBack.passOp]))):this._stencilCache.enabled&&(this._stencilCache.enabled=!1,r.disable(r.STENCIL_TEST))}constructor(e){this._stencilCache={enabled:!1,stencilReference:0,stencilMode:Eo.NONE},this._renderTargetStencilState=Object.create(null),e.renderTarget.onRenderTargetChange.add(this)}}).extension={type:[t.WebGLSystem],name:"stencil"}}});function OA(e){const t=e.map((e=>({data:e,offset:0,size:0})));let n=0,r=0,i=0;for(let o=0;o<t.length;o++){const e=t[o];if(n=EA[e.data.type],!n)throw new Error(`Unknown type ${e.data.type}`);if(e.data.size>1&&(n=Math.max(n,16)*e.data.size),e.size=n,r%n!=0&&r<16){const e=r%n%16;r+=e,i+=e}r+n>16?(i=16*Math.ceil(i/16),e.offset=i,i+=n,r=n):(e.offset=i,r+=n,i+=n)}return i=16*Math.ceil(i/16),{uboElements:t,size:i}}var MA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/utils/createUboElementsSTD40.mjs"(){EA={f32:4,"vec2<f32>":8,"vec3<f32>":12,"vec4<f32>":16,"mat2x2<f32>":32,"mat3x3<f32>":48,"mat4x4<f32>":64}}});function jA(e,t){const n=Math.max(EA[e.data.type]/16,1),r=e.data.value.length/e.data.size,i=(4-r%4)%4;return`\n v = uv.${e.data.name};\n offset += ${t};\n\n arrayOffset = offset;\n\n t = 0;\n\n for(var i=0; i < ${e.data.size*n}; i++)\n {\n for(var j = 0; j < ${r}; j++)\n {\n data[arrayOffset++] = v[t++];\n }\n ${0!==i?`arrayOffset += ${i};`:""}\n }\n `}var zA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/utils/generateArraySyncSTD40.mjs"(){MA()}});function BA(e){return Lh(e,"uboStd40",jA,Nh)}var FA,DA,LA,NA,UA,GA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/utils/createUboSyncSTD40.mjs"(){Gh(),Wh(),zA()}}),HA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/GlUboSystem.mjs"(){_e(),jh(),MA(),GA(),(FA=class extends _h{constructor(){super({createUboElements:OA,generateUboSync:BA})}}).extension={type:[t.WebGLSystem],name:"ubo"}}}),WA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/GlRenderTarget.mjs"(){DA=class{constructor(){this.width=-1,this.height=-1,this.msaa=!1,this.msaaRenderBuffer=[]}}}}),VA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/renderTarget/GlRenderTargetAdaptor.mjs"(){St(),Ot(),Bf(),WA(),LA=class{init(e,t){this._renderer=e,this._renderTargetSystem=t,e.runners.contextChange.add(this)}contextChange(){this._clearColorCache=[0,0,0,0],this._viewPortCache=new ut}copyToTexture(e,t,n,r,i){const o=this._renderTargetSystem,a=this._renderer,s=o.getGpuRenderTarget(e),l=a.gl;return this.finishRenderPass(e),l.bindFramebuffer(l.FRAMEBUFFER,s.resolveTargetFramebuffer),a.texture.bind(t,0),l.copyTexSubImage2D(l.TEXTURE_2D,0,i.x,i.y,n.x,n.y,r.width,r.height),t}startRenderPass(e,t=!0,n,r){const i=this._renderTargetSystem,o=e.colorTexture,a=i.getGpuRenderTarget(e);let s=r.y;e.isRoot&&(s=o.pixelHeight-r.height),e.colorTextures.forEach((e=>{this._renderer.texture.unbind(e)}));const l=this._renderer.gl;l.bindFramebuffer(l.FRAMEBUFFER,a.framebuffer);const u=this._viewPortCache;u.x===r.x&&u.y===s&&u.width===r.width&&u.height===r.height||(u.x=r.x,u.y=s,u.width=r.width,u.height=r.height,l.viewport(r.x,s,r.width,r.height)),a.depthStencilRenderBuffer||!e.stencil&&!e.depth||this._initStencil(a),this.clear(e,t,n)}finishRenderPass(e){const t=this._renderTargetSystem.getGpuRenderTarget(e);if(!t.msaa)return;const n=this._renderer.gl;n.bindFramebuffer(n.FRAMEBUFFER,t.resolveTargetFramebuffer),n.bindFramebuffer(n.READ_FRAMEBUFFER,t.framebuffer),n.blitFramebuffer(0,0,t.width,t.height,0,0,t.width,t.height,n.COLOR_BUFFER_BIT,n.NEAREST),n.bindFramebuffer(n.FRAMEBUFFER,t.framebuffer)}initGpuRenderTarget(e){const t=this._renderer,n=t.gl,r=new DA;return e.colorTexture.resource===t.gl.canvas?(r.framebuffer=null,r):(this._initColor(e,r),n.bindFramebuffer(n.FRAMEBUFFER,null),r)}destroyGpuRenderTarget(e){const t=this._renderer.gl;e.framebuffer&&(t.deleteFramebuffer(e.framebuffer),e.framebuffer=null),e.resolveTargetFramebuffer&&(t.deleteFramebuffer(e.resolveTargetFramebuffer),e.resolveTargetFramebuffer=null),e.depthStencilRenderBuffer&&(t.deleteRenderbuffer(e.depthStencilRenderBuffer),e.depthStencilRenderBuffer=null),e.msaaRenderBuffer.forEach((e=>{t.deleteRenderbuffer(e)})),e.msaaRenderBuffer=null}clear(e,t,n){if(!t)return;const r=this._renderTargetSystem;"boolean"==typeof t&&(t=t?_f.ALL:_f.NONE);const i=this._renderer.gl;if(t&_f.COLOR){null!=n||(n=r.defaultClearColor);const e=this._clearColorCache,t=n;e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]||(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],i.clearColor(t[0],t[1],t[2],t[3]))}i.clear(t)}resizeGpuRenderTarget(e){if(e.isRoot)return;const t=this._renderTargetSystem.getGpuRenderTarget(e);this._resizeColor(e,t),e.stencil&&this._resizeStencil(t)}_initColor(e,t){const n=this._renderer,r=n.gl,i=r.createFramebuffer();if(t.resolveTargetFramebuffer=i,r.bindFramebuffer(r.FRAMEBUFFER,i),t.width=e.colorTexture.source.pixelWidth,t.height=e.colorTexture.source.pixelHeight,e.colorTextures.forEach(((e,i)=>{const o=e.source;o.antialias&&(n.context.supports.msaa?t.msaa=!0:It("[RenderTexture] Antialiasing on textures is not supported in WebGL1")),n.texture.bindSource(o,0);const a=n.texture.getGlSource(o).texture;r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0+i,3553,a,0)})),t.msaa){const n=r.createFramebuffer();t.framebuffer=n,r.bindFramebuffer(r.FRAMEBUFFER,n),e.colorTextures.forEach(((e,n)=>{const i=r.createRenderbuffer();t.msaaRenderBuffer[n]=i}))}else t.framebuffer=i;this._resizeColor(e,t)}_resizeColor(e,t){const n=e.colorTexture.source;if(t.width=n.pixelWidth,t.height=n.pixelHeight,e.colorTextures.forEach(((e,t)=>{0!==t&&e.source.resize(n.width,n.height,n._resolution)})),t.msaa){const n=this._renderer,r=n.gl,i=t.framebuffer;r.bindFramebuffer(r.FRAMEBUFFER,i),e.colorTextures.forEach(((e,i)=>{const o=e.source;n.texture.bindSource(o,0);const a=n.texture.getGlSource(o).internalFormat,s=t.msaaRenderBuffer[i];r.bindRenderbuffer(r.RENDERBUFFER,s),r.renderbufferStorageMultisample(r.RENDERBUFFER,4,a,o.pixelWidth,o.pixelHeight),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0+i,r.RENDERBUFFER,s)}))}}_initStencil(e){if(null===e.framebuffer)return;const t=this._renderer.gl,n=t.createRenderbuffer();e.depthStencilRenderBuffer=n,t.bindRenderbuffer(t.RENDERBUFFER,n),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,n),this._resizeStencil(e)}_resizeStencil(e){const t=this._renderer.gl;t.bindRenderbuffer(t.RENDERBUFFER,e.depthStencilRenderBuffer),e.msaa?t.renderbufferStorageMultisample(t.RENDERBUFFER,4,t.DEPTH24_STENCIL8,e.width,e.height):t.renderbufferStorage(t.RENDERBUFFER,2===this._renderer.context.webGLVersion?t.DEPTH24_STENCIL8:t.DEPTH_STENCIL,e.width,e.height)}constructor(){this._clearColorCache=[0,0,0,0],this._viewPortCache=new ut}}}}),XA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/renderTarget/GlRenderTargetSystem.mjs"(){_e(),zm(),VA(),(NA=class extends lm{constructor(e){super(e),this.adaptor=new LA,this.adaptor.init(e,this)}}).extension={type:[t.WebGLSystem],name:"renderTarget"}}}),KA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/GenerateShaderSyncCode.mjs"(){tm(),Ha(),fi()}}),qA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/GlProgramData.mjs"(){UA=class{destroy(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBlockBindings=null,this.program=null}constructor(e,t){this.program=e,this.uniformData=t,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBlockBindings={}}}}});function QA(e,t,n){const r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var YA=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/compileShader.mjs"(){}});function ZA(e){const t=new Array(e);for(let n=0;n<t.length;n++)t[n]=!1;return t}function $A(e,t){switch(e){case"float":case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"vec2":return new Float32Array(2*t);case"vec3":return new Float32Array(3*t);case"vec4":return new Float32Array(4*t);case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"uvec2":return new Uint32Array(2*t);case"uvec3":return new Uint32Array(3*t);case"uvec4":return new Uint32Array(4*t);case"bool":return!1;case"bvec2":return ZA(2*t);case"bvec3":return ZA(3*t);case"bvec4":return ZA(4*t);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var JA,eg,tg,ng=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/defaultValue.mjs"(){}});function rg(e,t){if(!JA){const t=Object.keys(eg);JA={};for(let n=0;n<t.length;++n){const r=t[n];JA[e[r]]=eg[r]}}return JA[t]}function ig(e,t){const n=rg(e,t);return tg[n]||"float32"}var og=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/mapType.mjs"(){JA=null,eg={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"},tg={float:"float32",vec2:"float32x2",vec3:"float32x3",vec4:"float32x4",int:"sint32",ivec2:"sint32x2",ivec3:"sint32x3",ivec4:"sint32x4",uint:"uint32",uvec2:"uint32x2",uvec3:"uint32x3",uvec4:"uint32x4",bool:"uint32",bvec2:"uint32x2",bvec3:"uint32x3",bvec4:"uint32x4"}}}),ag=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/extractAttributesFromGlProgram.mjs"(){Pu(),og()}}),sg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/getUboData.mjs"(){}}),lg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/getUniformData.mjs"(){ng(),og()}});function ug(e,t){const n=e.getShaderSource(t).split("\n").map(((e,t)=>`${t}: ${e}`)),r=e.getShaderInfoLog(t),i=r.split("\n"),o={},a=i.map((e=>parseFloat(e.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1")))).filter((e=>!(!e||o[e]||(o[e]=!0,0)))),s=[""];a.forEach((e=>{n[e-1]=`%c${n[e-1]}%c`,s.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")}));const l=n.join("\n");s[0]=l,console.error(r),console.groupCollapsed("click to view full shader code"),console.warn(...s),console.groupEnd()}var cg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/logProgramError.mjs"(){}});function dg(e,t){const n=QA(e,e.VERTEX_SHADER,t.vertex),r=QA(e,e.FRAGMENT_SHADER,t.fragment),i=e.createProgram();e.attachShader(i,n),e.attachShader(i,r);const o=t.transformFeedbackVaryings;o&&("function"!=typeof e.transformFeedbackVaryings?It("TransformFeedback is not supported but TransformFeedbackVaryings are given."):e.transformFeedbackVaryings(i,o.names,"separate"===o.bufferMode?e.SEPARATE_ATTRIBS:e.INTERLEAVED_ATTRIBS)),e.linkProgram(i),e.getProgramParameter(i,e.LINK_STATUS)||function(e,t,n,r){e.getProgramParameter(t,e.LINK_STATUS)||(e.getShaderParameter(n,e.COMPILE_STATUS)||ug(e,n),e.getShaderParameter(r,e.COMPILE_STATUS)||ug(e,r),console.error("PixiJS Error: Could not initialize shader."),""!==e.getProgramInfoLog(t)&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",e.getProgramInfoLog(t)))}(e,i,n,r),t._attributeData=function(e,t,n=!1){const r={},i=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let a=0;a<i;a++){const n=t.getActiveAttrib(e,a);if(n.name.startsWith("gl_"))continue;const i=ig(t,n.type);r[n.name]={location:0,format:i,stride:Cu(i).stride,offset:0,instance:!1,start:0}}const o=Object.keys(r);if(n){o.sort(((e,t)=>e>t?1:-1));for(let n=0;n<o.length;n++)r[o[n]].location=n,t.bindAttribLocation(e,n,o[n]);t.linkProgram(e)}else for(let a=0;a<o.length;a++)r[o[a]].location=t.getAttribLocation(e,o[a]);return r}(i,e,!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(t.vertex)),t._uniformData=function(e,t){const n={},r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS);for(let i=0;i<r;i++){const r=t.getActiveUniform(e,i),o=r.name.replace(/\[.*?\]$/,""),a=!!r.name.match(/\[.*?\]$/),s=rg(t,r.type);n[o]={name:o,index:i,type:s,size:r.size,isArray:a,value:$A(s,r.size)}}return n}(i,e),t._uniformBlockData=function(e,t){if(!t.ACTIVE_UNIFORM_BLOCKS)return{};const n={},r=t.getProgramParameter(e,t.ACTIVE_UNIFORM_BLOCKS);for(let i=0;i<r;i++){const r=t.getActiveUniformBlockName(e,i),o=t.getUniformBlockIndex(e,r),a=t.getActiveUniformBlockParameter(e,i,t.UNIFORM_BLOCK_DATA_SIZE);n[r]={name:r,index:o,size:a}}return n}(i,e),e.deleteShader(n),e.deleteShader(r);const a={};for(const s in t._uniformData){const n=t._uniformData[s];a[s]={location:e.getUniformLocation(i,s),value:$A(n.type,n.size)}}return new UA(i,a)}var fg,pg,hg,mg,Ag,gg,vg,yg,bg,xg,Sg,_g,wg,Eg,Cg,Tg,Pg,kg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/generateProgram.mjs"(){Ot(),qA(),YA(),ng(),ag(),sg(),lg(),cg()}}),Rg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/GlShaderSystem.mjs"(){_e(),KA(),kg(),fg={textureCount:0,blockIndex:0},(pg=class{contextChange(e){this._gl=e,this._maxBindings=e.MAX_UNIFORM_BUFFER_BINDINGS?e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS):0,this._programDataHash=Object.create(null),this._boundUniformsIdsToIndexHash=Object.create(null),this._boundIndexToUniformsHash=Object.create(null),this._activeProgram=null}bind(e,t){if(this._setProgram(e.glProgram),t)return;fg.textureCount=0,fg.blockIndex=0;let n=this._shaderSyncFunctions[e.glProgram._key];n||(n=this._shaderSyncFunctions[e.glProgram._key]=this._generateShaderSync(e,this)),n(this._renderer,e,fg)}updateUniformGroup(e){this._renderer.uniformGroup.updateUniformGroup(e,this._activeProgram,fg)}bindUniformBlock(e,t,n=0){const r=this._renderer.buffer,i=this._getProgramData(this._activeProgram),o=e._bufferResource;o&&this._renderer.ubo.updateUniformGroup(e),r.updateBuffer(e.buffer);let a=this._boundUniformsIdsToIndexHash[e.uid];if(void 0===a){const t=this._nextIndex++%this._maxBindings,n=this._boundIndexToUniformsHash[t];n&&(this._boundUniformsIdsToIndexHash[n.uid]=void 0),a=this._boundUniformsIdsToIndexHash[e.uid]=t,this._boundIndexToUniformsHash[t]=e,o?r.bindBufferRange(e.buffer,t,e.offset):r.bindBufferBase(e.buffer,t)}const s=this._gl,l=this._activeProgram._uniformBlockData[t].index;i.uniformBlockBindings[n]!==a&&(i.uniformBlockBindings[n]=a,s.uniformBlockBinding(i.program,l,a))}_setProgram(e){if(this._activeProgram===e)return;this._activeProgram=e;const t=this._getProgramData(e);this._gl.useProgram(t.program)}_getProgramData(e){return this._programDataHash[e._key]||this._createProgramData(e)}_createProgramData(e){const t=e._key;return this._programDataHash[t]=dg(this._gl,e),this._programDataHash[t]}destroy(){for(const e of Object.keys(this._programDataHash))this._programDataHash[e].destroy(),this._programDataHash[e]=null;this._programDataHash=null,this._boundUniformsIdsToIndexHash=null}_generateShaderSync(e,t){return function(e,t){const n=[],r=["\n var g = s.groups;\n var sS = r.shader;\n var p = s.glProgram;\n var ugS = r.uniformGroup;\n var resources;\n "];let i=!1,o=0,a=0;const s=t._getProgramData(e.glProgram);for(const u in e.groups){const l=e.groups[u];n.push(`\n resources = g[${u}].resources;\n `);for(const c in l.resources){const d=l.resources[c];if(d instanceof ja)d.ubo?n.push(`\n sS.bindUniformBlock(\n resources[${c}],\n sS._uniformBindMap[${u}[${c}],\n ${o++}\n );\n `):n.push(`\n ugS.updateUniformGroup(resources[${c}], p, sD);\n `);else if(d instanceof Qh)n.push(`\n sS.bindUniformBlock(\n resources[${c}],\n sS._uniformBindMap[${u}[${c}],\n ${o++}\n );\n `);else if(d instanceof ei){const o=e._uniformBindMap[u][c],l=s.uniformData[o];l&&(i||(i=!0,r.push("\n var tS = r.texture;\n ")),t._gl.uniform1i(l.location,a),n.push(`\n tS.bind(resources[${c}], ${a});\n `),a++)}}}const l=[...r,...n].join("\n");return new Function("r","s","sD",l)}(e,t)}constructor(e){this._activeProgram=null,this._programDataHash=Object.create(null),this._nextIndex=0,this._boundUniformsIdsToIndexHash=Object.create(null),this._boundIndexToUniformsHash=Object.create(null),this._shaderSyncFunctions=Object.create(null),this._renderer=e}}).extension={type:[t.WebGLSystem],name:"shader"}}}),Ig=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/utils/generateUniformsSyncTypes.mjs"(){hg={f32:"if (cv !== v) {\n cu.value = v;\n gl.uniform1f(location, v);\n }","vec2<f32>":"if (cv[0] !== v[0] || cv[1] !== v[1]) {\n cv[0] = v[0];\n cv[1] = v[1];\n gl.uniform2f(location, v[0], v[1]);\n }","vec3<f32>":"if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2]) {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n gl.uniform3f(location, v[0], v[1], v[2]);\n }","vec4<f32>":"if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3]) {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n gl.uniform4f(location, v[0], v[1], v[2], v[3]);\n }",i32:"if (cv !== v) {\n cu.value = v;\n gl.uniform1i(location, v);\n }","vec2<i32>":"if (cv[0] !== v[0] || cv[1] !== v[1]) {\n cv[0] = v[0];\n cv[1] = v[1];\n gl.uniform2i(location, v[0], v[1]);\n }","vec3<i32>":"if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2]) {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n gl.uniform3i(location, v[0], v[1], v[2]);\n }","vec4<i32>":"if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3]) {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }",u32:"if (cv !== v) {\n cu.value = v;\n gl.uniform1ui(location, v);\n }","vec2<u32>":"if (cv[0] !== v[0] || cv[1] !== v[1]) {\n cv[0] = v[0];\n cv[1] = v[1];\n gl.uniform2ui(location, v[0], v[1]);\n }","vec3<u32>":"if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2]) {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n gl.uniform3ui(location, v[0], v[1], v[2]);\n }","vec4<u32>":"if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3]) {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n gl.uniform4ui(location, v[0], v[1], v[2], v[3]);\n }",bool:"if (cv !== v) {\n cu.value = v;\n gl.uniform1i(location, v);\n }","vec2<bool>":"if (cv[0] !== v[0] || cv[1] !== v[1]) {\n cv[0] = v[0];\n cv[1] = v[1];\n gl.uniform2i(location, v[0], v[1]);\n }","vec3<bool>":"if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2]) {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n gl.uniform3i(location, v[0], v[1], v[2]);\n }","vec4<bool>":"if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3]) {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }","mat2x2<f32>":"gl.uniformMatrix2fv(location, false, v);","mat3x3<f32>":"gl.uniformMatrix3fv(location, false, v);","mat4x4<f32>":"gl.uniformMatrix4fv(location, false, v);"},mg={f32:"gl.uniform1fv(location, v);","vec2<f32>":"gl.uniform2fv(location, v);","vec3<f32>":"gl.uniform3fv(location, v);","vec4<f32>":"gl.uniform4fv(location, v);","mat2x2<f32>":"gl.uniformMatrix2fv(location, false, v);","mat3x3<f32>":"gl.uniformMatrix3fv(location, false, v);","mat4x4<f32>":"gl.uniformMatrix4fv(location, false, v);",i32:"gl.uniform1iv(location, v);","vec2<i32>":"gl.uniform2iv(location, v);","vec3<i32>":"gl.uniform3iv(location, v);","vec4<i32>":"gl.uniform4iv(location, v);",u32:"gl.uniform1iv(location, v);","vec2<u32>":"gl.uniform2iv(location, v);","vec3<u32>":"gl.uniform3iv(location, v);","vec4<u32>":"gl.uniform4iv(location, v);",bool:"gl.uniform1iv(location, v);","vec2<bool>":"gl.uniform2iv(location, v);","vec3<bool>":"gl.uniform3iv(location, v);","vec4<bool>":"gl.uniform4iv(location, v);"}}}),Og=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/utils/generateUniformsSync.mjs"(){tm(),Ha(),Dh(),Ig()}}),Mg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/GlUniformGroupSystem.mjs"(){_e(),Og(),(Ag=class{contextChange(e){this.gl=e}updateUniformGroup(e,t,n){const r=this._renderer.shader._getProgramData(t);e.isStatic&&e._dirtyId===r.uniformDirtyGroups[e.uid]||(r.uniformDirtyGroups[e.uid]=e._dirtyId,this._getUniformSyncFunction(e,t)(r.uniformData,e.uniforms,this._renderer,n))}_getUniformSyncFunction(e,t){var n;return(null==(n=this._uniformGroupSyncHash[e._signature])?void 0:n[t._key])||this._createUniformSyncFunction(e,t)}_createUniformSyncFunction(e,t){const n=this._uniformGroupSyncHash[e._signature]||(this._uniformGroupSyncHash[e._signature]={}),r=this._getSignature(e,t._uniformData,"u");return this._cache[r]||(this._cache[r]=this._generateUniformsSync(e,t._uniformData)),n[t._key]=this._cache[r],n[t._key]}_generateUniformsSync(e,t){return function(e,t){const n=["\n var v = null;\n var cv = null;\n var cu = null;\n var t = 0;\n var gl = renderer.gl;\n var name = null;\n "];for(const r in e.uniforms){if(!t[r]){e.uniforms[r]instanceof ja?e.uniforms[r].ubo?n.push(`\n renderer.shader.bindUniformBlock(uv.${r}, "${r}");\n `):n.push(`\n renderer.shader.updateUniformGroup(uv.${r});\n `):e.uniforms[r]instanceof Qh&&n.push(`\n renderer.shader.bindBufferResource(uv.${r}, "${r}");\n `);continue}const i=e.uniformStructures[r];let o=!1;for(let e=0;e<Bh.length;e++){const t=Bh[e];if(i.type===t.type&&t.test(i)){n.push(`name = "${r}";`,Bh[e].uniform),o=!0;break}}if(!o){const e=(1===i.size?hg:mg)[i.type].replace("location",`ud["${r}"].location`);n.push(`\n cu = ud["${r}"];\n cv = cu.value;\n v = uv["${r}"];\n ${e};`)}}return new Function("ud","uv","renderer","syncData",n.join("\n"))}(e,t)}_getSignature(e,t,n){const r=e.uniforms,i=[`${n}-`];for(const o in r)i.push(o),t[o]&&i.push(t[o].type);return i.join("-")}destroy(){this._renderer=null,this._cache=null}constructor(e){this._cache={},this._uniformGroupSyncHash={},this._renderer=e,this.gl=null,this._cache={}}}).extension={type:[t.WebGLSystem],name:"uniformGroup"}}}),jg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/state/mapWebGLBlendModesToPixi.mjs"(){}}),zg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/state/GlStateSystem.mjs"(){_e(),Sa(),jg(),(gg=class e{contextChange(e){this.gl=e,this.blendModesMap=function(e){const t={};return t.normal=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t.add=[e.ONE,e.ONE],t.multiply=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t.screen=[e.ONE,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t.none=[0,0],t["normal-npm"]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t["add-npm"]=[e.SRC_ALPHA,e.ONE,e.ONE,e.ONE],t["screen-npm"]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t.erase=[e.ZERO,e.ONE_MINUS_SRC_ALPHA],t}(e),this.reset()}set(e){if(e=e||this.defaultState,this.stateId!==e.data){let t=this.stateId^e.data,n=0;for(;t;)1&t&&this.map[n].call(this,!!(e.data&1<<n)),t>>=1,n++;this.stateId=e.data}for(let t=0;t<this.checks.length;t++)this.checks[t](this,e)}forceState(e){e=e||this.defaultState;for(let t=0;t<this.map.length;t++)this.map[t].call(this,!!(e.data&1<<t));for(let t=0;t<this.checks.length;t++)this.checks[t](this,e);this.stateId=e.data}setBlend(t){this._updateCheck(e._checkBlendMode,t),this.gl[t?"enable":"disable"](this.gl.BLEND)}setOffset(t){this._updateCheck(e._checkPolygonOffset,t),this.gl[t?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)}setDepthTest(e){this.gl[e?"enable":"disable"](this.gl.DEPTH_TEST)}setDepthMask(e){this.gl.depthMask(e)}setCullFace(e){this.gl[e?"enable":"disable"](this.gl.CULL_FACE)}setFrontFace(e){this.gl.frontFace(this.gl[e?"CW":"CCW"])}setBlendMode(e){if(this.blendModesMap[e]||(e="normal"),e===this.blendMode)return;this.blendMode=e;const t=this.blendModesMap[e],n=this.gl;2===t.length?n.blendFunc(t[0],t[1]):n.blendFuncSeparate(t[0],t[1],t[2],t[3]),6===t.length?(this._blendEq=!0,n.blendEquationSeparate(t[4],t[5])):this._blendEq&&(this._blendEq=!1,n.blendEquationSeparate(n.FUNC_ADD,n.FUNC_ADD))}setPolygonOffset(e,t){this.gl.polygonOffset(e,t)}reset(){this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.forceState(this.defaultState),this._blendEq=!0,this.blendMode="",this.setBlendMode("normal")}_updateCheck(e,t){const n=this.checks.indexOf(e);t&&-1===n?this.checks.push(e):t||-1===n||this.checks.splice(n,1)}static _checkBlendMode(e,t){e.setBlendMode(t.blendMode)}static _checkPolygonOffset(e,t){e.setPolygonOffset(1,t.polygonOffset)}destroy(){this.gl=null,this.checks.length=0}constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode="none",this._blendEq=!1,this.map=[],this.map[0]=this.setBlend,this.map[1]=this.setOffset,this.map[2]=this.setCullFace,this.map[3]=this.setDepthTest,this.map[4]=this.setFrontFace,this.map[5]=this.setDepthMask,this.checks=[],this.defaultState=ya.for2d()}}).extension={type:[t.WebGLSystem],name:"state"},vg=gg}}),Bg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTexture.mjs"(){mA(),yg=class{constructor(e){this.target=iA.TEXTURE_2D,this.texture=e,this.width=-1,this.height=-1,this.type=oA.UNSIGNED_BYTE,this.internalFormat=rA.RGBA,this.format=rA.RGBA,this.samplerType=0}}}}),Fg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/texture/uploaders/glUploadBufferImageResource.mjs"(){bg={id:"image",upload(e,t,n){t.width===e.width||t.height===e.height?n.texSubImage2D(n.TEXTURE_2D,0,0,0,t.format,t.type,e.resource):n.texImage2D(t.target,0,t.internalFormat,e.width,e.height,0,t.format,t.type,e.resource),t.width=e.width,t.height=e.height}}}}),Dg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/texture/uploaders/glUploadCompressedTextureResource.mjs"(){xg={"bc1-rgba-unorm":!0,"bc1-rgba-unorm-srgb":!0,"bc2-rgba-unorm":!0,"bc2-rgba-unorm-srgb":!0,"bc3-rgba-unorm":!0,"bc3-rgba-unorm-srgb":!0,"bc4-r-unorm":!0,"bc4-r-snorm":!0,"bc5-rg-unorm":!0,"bc5-rg-snorm":!0,"bc6h-rgb-ufloat":!0,"bc6h-rgb-float":!0,"bc7-rgba-unorm":!0,"bc7-rgba-unorm-srgb":!0,"etc2-rgb8unorm":!0,"etc2-rgb8unorm-srgb":!0,"etc2-rgb8a1unorm":!0,"etc2-rgb8a1unorm-srgb":!0,"etc2-rgba8unorm":!0,"etc2-rgba8unorm-srgb":!0,"eac-r11unorm":!0,"eac-r11snorm":!0,"eac-rg11unorm":!0,"eac-rg11snorm":!0,"astc-4x4-unorm":!0,"astc-4x4-unorm-srgb":!0,"astc-5x4-unorm":!0,"astc-5x4-unorm-srgb":!0,"astc-5x5-unorm":!0,"astc-5x5-unorm-srgb":!0,"astc-6x5-unorm":!0,"astc-6x5-unorm-srgb":!0,"astc-6x6-unorm":!0,"astc-6x6-unorm-srgb":!0,"astc-8x5-unorm":!0,"astc-8x5-unorm-srgb":!0,"astc-8x6-unorm":!0,"astc-8x6-unorm-srgb":!0,"astc-8x8-unorm":!0,"astc-8x8-unorm-srgb":!0,"astc-10x5-unorm":!0,"astc-10x5-unorm-srgb":!0,"astc-10x6-unorm":!0,"astc-10x6-unorm-srgb":!0,"astc-10x8-unorm":!0,"astc-10x8-unorm-srgb":!0,"astc-10x10-unorm":!0,"astc-10x10-unorm-srgb":!0,"astc-12x10-unorm":!0,"astc-12x10-unorm-srgb":!0,"astc-12x12-unorm":!0,"astc-12x12-unorm-srgb":!0},Sg={id:"compressed",upload(e,t,n){n.pixelStorei(n.UNPACK_ALIGNMENT,4);let r=e.pixelWidth,i=e.pixelHeight;const o=!!xg[e.format];for(let a=0;a<e.resource.length;a++){const s=e.resource[a];o?n.compressedTexImage2D(n.TEXTURE_2D,a,t.internalFormat,r,i,0,s):n.texImage2D(n.TEXTURE_2D,a,t.internalFormat,r,i,0,t.format,t.type,s),r=Math.max(r>>1,1),i=Math.max(i>>1,1)}}}}}),Lg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/texture/uploaders/glUploadImageResource.mjs"(){_g={id:"image",upload(e,t,n,r){const i="premultiply-alpha-on-upload"===e.alphaMode;n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i);const o=t.width,a=t.height,s=e.pixelWidth,l=e.pixelHeight,u=e.resourceWidth,c=e.resourceHeight;u<s||c<l?(o===s&&a===l||n.texImage2D(t.target,0,t.internalFormat,s,l,0,t.format,t.type,null),2===r?n.texSubImage2D(n.TEXTURE_2D,0,0,0,u,c,t.format,t.type,e.resource):n.texSubImage2D(n.TEXTURE_2D,0,0,0,t.format,t.type,e.resource)):o===s||a===l?n.texSubImage2D(n.TEXTURE_2D,0,0,0,t.format,t.type,e.resource):2===r?n.texImage2D(t.target,0,t.internalFormat,s,l,0,t.format,t.type,e.resource):n.texImage2D(t.target,0,t.internalFormat,t.format,t.type,e.resource),t.width=s,t.height=l}}}}),Ng=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/texture/uploaders/glUploadVideoResource.mjs"(){Lg(),wg={id:"video",upload(e,t,n,r){e.isValid?_g.upload(e,t,n,r):n.texImage2D(t.target,0,t.internalFormat,1,1,0,t.format,t.type,null)}}}}),Ug=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/texture/utils/pixiToGlMaps.mjs"(){Eg={linear:9729,nearest:9728},Cg={linear:{linear:9987,nearest:9985},nearest:{linear:9986,nearest:9984}},Tg={"clamp-to-edge":33071,repeat:10497,"mirror-repeat":33648},Pg={never:512,less:513,equal:514,"less-equal":515,greater:516,"not-equal":517,"greater-equal":518,always:519}}});function Gg(e,t,n,r,i,o,a,s){const l=o;if(!s||"repeat"!==e.addressModeU||"repeat"!==e.addressModeV||"repeat"!==e.addressModeW){const n=Tg[a?"clamp-to-edge":e.addressModeU],r=Tg[a?"clamp-to-edge":e.addressModeV],o=Tg[a?"clamp-to-edge":e.addressModeW];t[i](l,t.TEXTURE_WRAP_S,n),t[i](l,t.TEXTURE_WRAP_T,r),t.TEXTURE_WRAP_R&&t[i](l,t.TEXTURE_WRAP_R,o)}if(s&&"linear"===e.magFilter||t[i](l,t.TEXTURE_MAG_FILTER,Eg[e.magFilter]),n){if(!s||"linear"!==e.mipmapFilter){const n=Cg[e.minFilter][e.mipmapFilter];t[i](l,t.TEXTURE_MIN_FILTER,n)}}else t[i](l,t.TEXTURE_MIN_FILTER,Eg[e.minFilter]);if(r&&e.maxAnisotropy>1){const n=Math.min(e.maxAnisotropy,t.getParameter(r.MAX_TEXTURE_MAX_ANISOTROPY_EXT));t[i](l,r.TEXTURE_MAX_ANISOTROPY_EXT,n)}e.compare&&t[i](l,t.TEXTURE_COMPARE_FUNC,Pg[e.compare])}var Hg,Wg,Vg,Xg,Kg,qg,Qg,Yg,Zg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/texture/utils/applyStyleParams.mjs"(){Ug()}}),$g=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/texture/utils/mapFormatToGlFormat.mjs"(){}}),Jg=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/texture/utils/mapFormatToGlInternalFormat.mjs"(){Sr()}}),ev=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/texture/utils/mapFormatToGlType.mjs"(){}}),tv=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.mjs"(){Sr(),_e(),mi(),Bg(),Fg(),Dg(),Lg(),Ng(),Zg(),$g(),Jg(),ev(),(Hg=class{contextChange(e){this._gl=e,this._mapFormatToInternalFormat||(this._mapFormatToInternalFormat=function(e,t){let n={},r=e.RGBA;return e instanceof $n.get().getWebGLRenderingContext()?t.srgb&&(n={"rgba8unorm-srgb":t.srgb.SRGB8_ALPHA8_EXT,"bgra8unorm-srgb":t.srgb.SRGB8_ALPHA8_EXT}):(n={"rgba8unorm-srgb":e.SRGB8_ALPHA8,"bgra8unorm-srgb":e.SRGB8_ALPHA8},r=e.RGBA8),q(q(q(q(q(q(Q(q({r8unorm:e.R8,r8snorm:e.R8_SNORM,r8uint:e.R8UI,r8sint:e.R8I,r16uint:e.R16UI,r16sint:e.R16I,r16float:e.R16F,rg8unorm:e.RG8,rg8snorm:e.RG8_SNORM,rg8uint:e.RG8UI,rg8sint:e.RG8I,r32uint:e.R32UI,r32sint:e.R32I,r32float:e.R32F,rg16uint:e.RG16UI,rg16sint:e.RG16I,rg16float:e.RG16F,rgba8unorm:e.RGBA},n),{rgba8snorm:e.RGBA8_SNORM,rgba8uint:e.RGBA8UI,rgba8sint:e.RGBA8I,bgra8unorm:r,rgb9e5ufloat:e.RGB9_E5,rgb10a2unorm:e.RGB10_A2,rg11b10ufloat:e.R11F_G11F_B10F,rg32uint:e.RG32UI,rg32sint:e.RG32I,rg32float:e.RG32F,rgba16uint:e.RGBA16UI,rgba16sint:e.RGBA16I,rgba16float:e.RGBA16F,rgba32uint:e.RGBA32UI,rgba32sint:e.RGBA32I,rgba32float:e.RGBA32F,stencil8:e.STENCIL_INDEX8,depth16unorm:e.DEPTH_COMPONENT16,depth24plus:e.DEPTH_COMPONENT24,"depth24plus-stencil8":e.DEPTH24_STENCIL8,depth32float:e.DEPTH_COMPONENT32F,"depth32float-stencil8":e.DEPTH32F_STENCIL8}),t.s3tc?{"bc1-rgba-unorm":t.s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT,"bc2-rgba-unorm":t.s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT,"bc3-rgba-unorm":t.s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT}:{}),t.s3tc_sRGB?{"bc1-rgba-unorm-srgb":t.s3tc_sRGB.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,"bc2-rgba-unorm-srgb":t.s3tc_sRGB.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,"bc3-rgba-unorm-srgb":t.s3tc_sRGB.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}:{}),t.rgtc?{"bc4-r-unorm":t.rgtc.COMPRESSED_RED_RGTC1_EXT,"bc4-r-snorm":t.rgtc.COMPRESSED_SIGNED_RED_RGTC1_EXT,"bc5-rg-unorm":t.rgtc.COMPRESSED_RED_GREEN_RGTC2_EXT,"bc5-rg-snorm":t.rgtc.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}:{}),t.bptc?{"bc6h-rgb-float":t.bptc.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT,"bc6h-rgb-ufloat":t.bptc.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT,"bc7-rgba-unorm":t.bptc.COMPRESSED_RGBA_BPTC_UNORM_EXT,"bc7-rgba-unorm-srgb":t.bptc.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT}:{}),t.etc?{"etc2-rgb8unorm":t.etc.COMPRESSED_RGB8_ETC2,"etc2-rgb8unorm-srgb":t.etc.COMPRESSED_SRGB8_ETC2,"etc2-rgb8a1unorm":t.etc.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,"etc2-rgb8a1unorm-srgb":t.etc.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,"etc2-rgba8unorm":t.etc.COMPRESSED_RGBA8_ETC2_EAC,"etc2-rgba8unorm-srgb":t.etc.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,"eac-r11unorm":t.etc.COMPRESSED_R11_EAC,"eac-rg11unorm":t.etc.COMPRESSED_SIGNED_RG11_EAC}:{}),t.astc?{"astc-4x4-unorm":t.astc.COMPRESSED_RGBA_ASTC_4x4_KHR,"astc-4x4-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR,"astc-5x4-unorm":t.astc.COMPRESSED_RGBA_ASTC_5x4_KHR,"astc-5x4-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR,"astc-5x5-unorm":t.astc.COMPRESSED_RGBA_ASTC_5x5_KHR,"astc-5x5-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR,"astc-6x5-unorm":t.astc.COMPRESSED_RGBA_ASTC_6x5_KHR,"astc-6x5-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR,"astc-6x6-unorm":t.astc.COMPRESSED_RGBA_ASTC_6x6_KHR,"astc-6x6-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR,"astc-8x5-unorm":t.astc.COMPRESSED_RGBA_ASTC_8x5_KHR,"astc-8x5-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR,"astc-8x6-unorm":t.astc.COMPRESSED_RGBA_ASTC_8x6_KHR,"astc-8x6-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR,"astc-8x8-unorm":t.astc.COMPRESSED_RGBA_ASTC_8x8_KHR,"astc-8x8-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR,"astc-10x5-unorm":t.astc.COMPRESSED_RGBA_ASTC_10x5_KHR,"astc-10x5-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR,"astc-10x6-unorm":t.astc.COMPRESSED_RGBA_ASTC_10x6_KHR,"astc-10x6-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR,"astc-10x8-unorm":t.astc.COMPRESSED_RGBA_ASTC_10x8_KHR,"astc-10x8-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR,"astc-10x10-unorm":t.astc.COMPRESSED_RGBA_ASTC_10x10_KHR,"astc-10x10-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR,"astc-12x10-unorm":t.astc.COMPRESSED_RGBA_ASTC_12x10_KHR,"astc-12x10-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR,"astc-12x12-unorm":t.astc.COMPRESSED_RGBA_ASTC_12x12_KHR,"astc-12x12-unorm-srgb":t.astc.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR}:{})}(e,this._renderer.context.extensions),this._mapFormatToType=function(e){return{r8unorm:e.UNSIGNED_BYTE,r8snorm:e.BYTE,r8uint:e.UNSIGNED_BYTE,r8sint:e.BYTE,r16uint:e.UNSIGNED_SHORT,r16sint:e.SHORT,r16float:e.HALF_FLOAT,rg8unorm:e.UNSIGNED_BYTE,rg8snorm:e.BYTE,rg8uint:e.UNSIGNED_BYTE,rg8sint:e.BYTE,r32uint:e.UNSIGNED_INT,r32sint:e.INT,r32float:e.FLOAT,rg16uint:e.UNSIGNED_SHORT,rg16sint:e.SHORT,rg16float:e.HALF_FLOAT,rgba8unorm:e.UNSIGNED_BYTE,"rgba8unorm-srgb":e.UNSIGNED_BYTE,rgba8snorm:e.BYTE,rgba8uint:e.UNSIGNED_BYTE,rgba8sint:e.BYTE,bgra8unorm:e.UNSIGNED_BYTE,"bgra8unorm-srgb":e.UNSIGNED_BYTE,rgb9e5ufloat:e.UNSIGNED_INT_5_9_9_9_REV,rgb10a2unorm:e.UNSIGNED_INT_2_10_10_10_REV,rg11b10ufloat:e.UNSIGNED_INT_10F_11F_11F_REV,rg32uint:e.UNSIGNED_INT,rg32sint:e.INT,rg32float:e.FLOAT,rgba16uint:e.UNSIGNED_SHORT,rgba16sint:e.SHORT,rgba16float:e.HALF_FLOAT,rgba32uint:e.UNSIGNED_INT,rgba32sint:e.INT,rgba32float:e.FLOAT,stencil8:e.UNSIGNED_BYTE,depth16unorm:e.UNSIGNED_SHORT,depth24plus:e.UNSIGNED_INT,"depth24plus-stencil8":e.UNSIGNED_INT_24_8,depth32float:e.FLOAT,"depth32float-stencil8":e.FLOAT_32_UNSIGNED_INT_24_8_REV}}(e),this._mapFormatToFormat=function(e){return{r8unorm:e.RED,r8snorm:e.RED,r8uint:e.RED,r8sint:e.RED,r16uint:e.RED,r16sint:e.RED,r16float:e.RED,rg8unorm:e.RG,rg8snorm:e.RG,rg8uint:e.RG,rg8sint:e.RG,r32uint:e.RED,r32sint:e.RED,r32float:e.RED,rg16uint:e.RG,rg16sint:e.RG,rg16float:e.RG,rgba8unorm:e.RGBA,"rgba8unorm-srgb":e.RGBA,rgba8snorm:e.RGBA,rgba8uint:e.RGBA,rgba8sint:e.RGBA,bgra8unorm:e.RGBA,"bgra8unorm-srgb":e.RGBA,rgb9e5ufloat:e.RGB,rgb10a2unorm:e.RGBA,rg11b10ufloat:e.RGB,rg32uint:e.RG,rg32sint:e.RG,rg32float:e.RG,rgba16uint:e.RGBA,rgba16sint:e.RGBA,rgba16float:e.RGBA,rgba32uint:e.RGBA,rgba32sint:e.RGBA,rgba32float:e.RGBA,stencil8:e.STENCIL_INDEX8,depth16unorm:e.DEPTH_COMPONENT,depth24plus:e.DEPTH_COMPONENT,"depth24plus-stencil8":e.DEPTH_STENCIL,depth32float:e.DEPTH_COMPONENT,"depth32float-stencil8":e.DEPTH_STENCIL}}(e)),this._glTextures=Object.create(null),this._glSamplers=Object.create(null),this._boundSamplers=Object.create(null);for(let t=0;t<16;t++)this.bind(ii.EMPTY,t)}initSource(e){this.bind(e)}bind(e,t=0){const n=e.source;e?(this.bindSource(n,t),this._useSeparateSamplers&&this._bindSampler(n.style,t)):(this.bindSource(null,t),this._useSeparateSamplers&&this._bindSampler(null,t))}bindSource(e,t=0){const n=this._gl;if(e._touched=this._renderer.textureGC.count,this._boundTextures[t]!==e){this._boundTextures[t]=e,this._activateLocation(t),e=e||ii.EMPTY.source;const r=this.getGlSource(e);n.bindTexture(r.target,r.texture)}}_bindSampler(e,t=0){const n=this._gl;if(!e)return this._boundSamplers[t]=null,void n.bindSampler(t,null);const r=this._getGlSampler(e);this._boundSamplers[t]!==r&&(this._boundSamplers[t]=r,n.bindSampler(t,r))}unbind(e){const t=e.source,n=this._boundTextures,r=this._gl;for(let i=0;i<n.length;i++)if(n[i]===t){this._activateLocation(i);const e=this.getGlSource(t);r.bindTexture(e.target,null),n[i]=null}}_activateLocation(e){this._activeTextureLocation!==e&&(this._activeTextureLocation=e,this._gl.activeTexture(this._gl.TEXTURE0+e))}_initSource(e){const t=this._gl,n=new yg(t.createTexture());if(n.type=this._mapFormatToType[e.format],n.internalFormat=this._mapFormatToInternalFormat[e.format],n.format=this._mapFormatToFormat[e.format],e.autoGenerateMipmaps&&(this._renderer.context.supports.nonPowOf2mipmaps||e.isPowerOfTwo)){const t=Math.max(e.width,e.height);e.mipLevelCount=Math.floor(Math.log2(t))+1}return this._glTextures[e.uid]=n,this.managedTextures.includes(e)||(e.on("update",this.onSourceUpdate,this),e.on("resize",this.onSourceUpdate,this),e.on("styleChange",this.onStyleChange,this),e.on("destroy",this.onSourceDestroy,this),e.on("unload",this.onSourceUnload,this),e.on("updateMipmaps",this.onUpdateMipmaps,this),this.managedTextures.push(e)),this.onSourceUpdate(e),this.updateStyle(e,!1),n}onStyleChange(e){this.updateStyle(e,!1)}updateStyle(e,t){const n=this._gl,r=this.getGlSource(e);n.bindTexture(n.TEXTURE_2D,r.texture),this._boundTextures[this._activeTextureLocation]=e,Gg(e.style,n,e.mipLevelCount>1,this._renderer.context.extensions.anisotropicFiltering,"texParameteri",n.TEXTURE_2D,!this._renderer.context.supports.nonPowOf2wrapping&&!e.isPowerOfTwo,t)}onSourceUnload(e){const t=this._glTextures[e.uid];t&&(this.unbind(e),this._glTextures[e.uid]=null,this._gl.deleteTexture(t.texture))}onSourceUpdate(e){const t=this._gl,n=this.getGlSource(e);t.bindTexture(t.TEXTURE_2D,n.texture),this._boundTextures[this._activeTextureLocation]=e,this._uploads[e.uploadMethodId]?this._uploads[e.uploadMethodId].upload(e,n,t,this._renderer.context.webGLVersion):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e.pixelWidth,e.pixelHeight,0,t.RGBA,t.UNSIGNED_BYTE,null),e.autoGenerateMipmaps&&e.mipLevelCount>1&&this.onUpdateMipmaps(e,!1)}onUpdateMipmaps(e,t=!0){t&&this.bindSource(e,0);const n=this.getGlSource(e);this._gl.generateMipmap(n.target)}onSourceDestroy(e){e.off("destroy",this.onSourceDestroy,this),e.off("update",this.onSourceUpdate,this),e.off("resize",this.onSourceUpdate,this),e.off("unload",this.onSourceUnload,this),e.off("styleChange",this.onStyleChange,this),e.off("updateMipmaps",this.onUpdateMipmaps,this),this.managedTextures.splice(this.managedTextures.indexOf(e),1),this.onSourceUnload(e)}_initSampler(e){const t=this._gl,n=this._gl.createSampler();return this._glSamplers[e._resourceId]=n,Gg(e,t,this._boundTextures[this._activeTextureLocation].mipLevelCount>1,this._renderer.context.extensions.anisotropicFiltering,"samplerParameteri",n,!1,!0),this._glSamplers[e._resourceId]}_getGlSampler(e){return this._glSamplers[e._resourceId]||this._initSampler(e)}getGlSource(e){return this._glTextures[e.uid]||this._initSource(e)}generateCanvas(e){const{pixels:t,width:n,height:r}=this.getPixels(e),i=$n.get().createCanvas();i.width=n,i.height=r;const o=i.getContext("2d");if(o){const e=o.createImageData(n,r);e.data.set(t),o.putImageData(e,0,0)}return i}getPixels(e){const t=e.source.resolution,n=e.frame,r=Math.max(Math.round(n.width*t),1),i=Math.max(Math.round(n.height*t),1),o=new Uint8Array(4*r*i),a=this._renderer,s=a.renderTarget.getRenderTarget(e),l=a.renderTarget.getGpuRenderTarget(s),u=a.gl;return u.bindFramebuffer(u.FRAMEBUFFER,l.resolveTargetFramebuffer),u.readPixels(Math.round(n.x*t),Math.round(n.y*t),r,i,u.RGBA,u.UNSIGNED_BYTE,o),{pixels:new Uint8ClampedArray(o.buffer),width:r,height:i}}destroy(){this.managedTextures.slice().forEach((e=>this.onSourceDestroy(e))),this.managedTextures=null,this._renderer=null}constructor(e){this.managedTextures=[],this._glTextures=Object.create(null),this._glSamplers=Object.create(null),this._boundTextures=[],this._activeTextureLocation=-1,this._boundSamplers=Object.create(null),this._uploads={image:_g,buffer:bg,video:wg,compressed:Sg},this._useSeparateSamplers=!1,this._renderer=e}}).extension={type:[t.WebGLSystem],name:"texture"}}}),nv={};J(nv,{WebGLRenderer:()=>Yg});var rv=Z({"../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/renderers/gl/WebGLRenderer.mjs"(){_e(),lA(),uA(),cA(),Df(),Th(),Uc(),pA(),hA(),TA(),PA(),kA(),RA(),IA(),HA(),XA(),Rg(),Mg(),zg(),tv(),Wg=[...mh,FA,xA,nA,eA,Hg,NA,vA,Ag,pg,_A,vg,wA,SA],Vg=[...Ah],Xg=[Zm,Ym,Qm],Kg=[],qg=[],Qg=[],i.handleByNamedList(t.WebGLSystem,Kg),i.handleByNamedList(t.WebGLPipes,qg),i.handleByNamedList(t.WebGLPipesAdaptor,Qg),i.add(...Wg,...Vg,...Xg),Yg=class extends Tf{constructor(){super({name:"webgl",type:Rc.WEBGL,systems:Kg,renderPipes:qg,renderPipeAdaptors:Qg})}}}}),iv=$({"../../node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(e){!function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=re(),n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];!function(e,t,r){var i=n.ReactDebugCurrentFrame.getStackAddendum();""!==i&&(t+="%s",r=r.concat([i]));var o=r.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,r)}var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,s=t.useLayoutEffect,l=t.useDebugValue,u=!1,c=!1;function d(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!i(n,r)}catch(o){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t,n){return t()}:function(e,n,f){u||void 0!==t.startTransition&&(u=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=n();if(!c){var h=n();i(p,h)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=o({inst:{value:p,getSnapshot:n}}),A=m[0].inst,g=m[1];return s((function(){A.value=p,A.getSnapshot=n,d(A)&&g({inst:A})}),[e,p,n]),a((function(){return d(A)&&g({inst:A}),e((function(){d(A)&&g({inst:A})}))}),[e]),l(p),p},p=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:f;e.useSyncExternalStore=p,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),ov=$({"../../node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.2.0/node_modules/use-sync-external-store/shim/index.js"(e,t){t.exports=iv()}}),av=$({"../../node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"(e){!function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=re(),n=ov(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useSyncExternalStore,o=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,u,c){var d,f=o(null);null===f.current?(d={hasValue:!1,value:null},f.current=d):d=f.current;var p=s((function(){var e,i,o=!1,a=function(t){if(!o){o=!0,e=t;var n=u(t);if(void 0!==c&&d.hasValue){var a=d.value;if(c(a,n))return i=a,a}return i=n,n}var s=i;if(r(e,t))return s;var l=u(t);return void 0!==c&&c(s,l)?s:(e=t,i=l,l)},s=void 0===n?null:n;return[function(){return a(t())},null===s?void 0:function(){return a(s())}]}),[t,n,u,c]),h=p[0],m=p[1],A=i(e,h,m);return a((function(){d.hasValue=!0,d.value=A}),[A]),l(A),A},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),sv=$({"../../node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.2.0/node_modules/use-sync-external-store/shim/with-selector.js"(e,t){t.exports=av()}}),lv=$({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.js"(e){!function(){var t,n=re(),r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),A=Symbol.iterator,g=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=g.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}function y(e){return e.displayName||"Context"}function b(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case i:return"Portal";case s:return"Profiler";case a:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case u:return y(e)+".Consumer";case l:return y(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:b(e.type)||"Memo";case h:var n=e,r=n._payload,m=n._init;try{return b(m(r))}catch(A){return null}}return null}t=Symbol.for("react.module.reference");var x,S,_,w,E,C,T,P=Object.assign,k=0;function R(){}R.__reactDisabledLog=!0;var I,O=g.ReactCurrentDispatcher;function M(e,t,n){if(void 0===I)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);I=r&&r[1]||""}return"\n"+I+e}var j,z=!1,B="function"==typeof WeakMap?WeakMap:Map;function F(e,t){if(!e||z)return"";var n,r=j.get(e);if(void 0!==r)return r;z=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=O.current,O.current=null,function(){if(0===k){x=console.log,S=console.info,_=console.warn,w=console.error,E=console.group,C=console.groupCollapsed,T=console.groupEnd;var e={configurable:!0,enumerable:!0,value:R,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}k++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(h){n=h}Reflect.construct(e,[],a)}else{try{a.call()}catch(h){n=h}e.call(a.prototype)}}else{try{throw Error()}catch(h){n=h}e()}}catch(m){if(m&&n&&"string"==typeof m.stack){for(var s=m.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&j.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{z=!1,O.current=i,function(){if(0==--k){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:x}),info:P({},e,{value:S}),warn:P({},e,{value:_}),error:P({},e,{value:w}),group:P({},e,{value:E}),groupCollapsed:P({},e,{value:C}),groupEnd:P({},e,{value:T})})}k<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var f=e?e.displayName||e.name:"",p=f?M(f):"";return"function"==typeof e&&j.set(e,p),p}function D(e,t,n){if(null==e)return"";if("function"==typeof e)return F(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return M(e);switch(e){case d:return M("Suspense");case f:return M("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return F(e.render,!1);case p:return D(e.type,t,n);case h:var i=e,o=i._payload,a=i._init;try{return D(a(o),t,n)}catch(s){}}return""}j=new B;var L=Object.prototype.hasOwnProperty,N={},U=g.ReactDebugCurrentFrame;function G(e){if(e){var t=e._owner,n=D(e.type,e._source,t?t.type:null);U.setExtraStackFrame(n)}else U.setExtraStackFrame(null)}var H=Array.isArray;function W(e){return H(e)}function V(e){return""+e}function X(e){if(function(e){try{return V(e),!1}catch(t){return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),V(e)}var K,q,Q,Y=g.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};function $(e,t,n,i,o){var a,s={},l=null,u=null;for(a in void 0!==n&&(X(n),l=""+n),function(e){if(L.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(X(t.key),l=""+t.key),function(e){if(L.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&Y.current&&t&&Y.current.stateNode!==t){var n=b(Y.current.type);Q[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',b(Y.current.type),e.ref),Q[n]=!0)}}(t,o)),t)L.call(t,a)&&!Z.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps){var c=e.defaultProps;for(a in c)void 0===s[a]&&(s[a]=c[a])}if(l||u){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){K||(K=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(s,d),u&&function(e,t){var n=function(){q||(q=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(s,d)}return function(e,t,n,i,o,a,s){var l={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,u,o,i,Y.current,s)}Q={};var J,ee=g.ReactCurrentOwner,te=g.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,n=D(e.type,e._source,t?t.type:null);te.setExtraStackFrame(n)}else te.setExtraStackFrame(null)}function ie(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}function oe(){if(ee.current){var e=b(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}J=!1;var ae={};function se(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=oe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!ae[n]){ae[n]=!0;var r="";e&&e._owner&&e._owner!==ee.current&&(r=" It was passed a child from "+b(e._owner.type)+"."),ne(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ne(null)}}}function le(e,t){if("object"==typeof e)if(W(e))for(var n=0;n<e.length;n++){var r=e[n];ie(r)&&se(r,t)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var i=function(e){if(null===e||"object"!=typeof e)return null;var t=A&&e[A]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof i&&i!==e.entries)for(var o,a=i.call(e);!(o=a.next()).done;)ie(o.value)&&se(o.value,t)}}function ue(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=b(n);!function(e,t,n,r,i){var o=Function.call.bind(L);for(var a in e)if(o(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(u){s=u}!s||s instanceof Error||(G(i),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),G(null)),s instanceof Error&&!(s.message in N)&&(N[s.message]=!0,G(i),v("Failed %s type: %s",n,s.message),G(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||J||(J=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ce(e,n,i,A,g,y){var x=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===d||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===l||e.$$typeof===u||e.$$typeof===c||e.$$typeof===t||void 0!==e.getModuleId)}(e);if(!x){var S="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _,w=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);S+=w||oe(),null===e?_="null":W(e)?_="array":void 0!==e&&e.$$typeof===r?(_="<"+(b(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,S)}var E=$(e,n,i,g,y);if(null==E)return E;if(x){var C=n.children;if(void 0!==C)if(A)if(W(C)){for(var T=0;T<C.length;T++)le(C[T],e);Object.freeze&&Object.freeze(C)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(C,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ne(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ne(null);break}}null!==e.ref&&(ne(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}(E):ue(E),E}var de=function(e,t,n){return ce(e,t,n,!1)},fe=function(e,t,n){return ce(e,t,n,!0)};e.Fragment=o,e.jsx=de,e.jsxs=fe}()}}),uv=$({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js"(e,t){t.exports=lv()}}),cv=(0,ee(re()).createContext)({});function dv(){return dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dv.apply(null,arguments)}function fv(e){if(Array.isArray(e))return e}function pv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hv(e,t){if(e){if("string"==typeof e)return pv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pv(e,t):void 0}}function mv(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Av(e,t){return fv(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||hv(e,t)||mv()}function gv(e){return(gv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vv(e){var t=function(e,t){if("object"!=gv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gv(t)?t:t+""}function yv(e,t,n){return(t=vv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bv(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var xv=ee(re()),Sv=ee(ie());function _v(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function wv(e){return Math.min(1,Math.max(0,e))}function Ev(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Cv(e){return e<=1?"".concat(100*Number(e),"%"):e}function Tv(e){return 1===e.length?"0"+e:String(e)}function Pv(e,t,n){e=_v(e,255),t=_v(t,255),n=_v(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:a,l:s}}function kv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Rv(e,t,n){e=_v(e,255),t=_v(t,255),n=_v(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,v:a}}function Iv(e,t,n,r){var i=[Tv(Math.round(e).toString(16)),Tv(Math.round(t).toString(16)),Tv(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Ov(e){return Mv(e)/255}function Mv(e){return parseInt(e,16)}var jv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function zv(e){var t,n,r,i={r:0,g:0,b:0},o=1,a=null,s=null,l=null,u=!1,c=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(jv[e])e=jv[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Lv.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Lv.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Lv.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Lv.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Lv.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Lv.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Lv.hex8.exec(e))?{r:Mv(n[1]),g:Mv(n[2]),b:Mv(n[3]),a:Ov(n[4]),format:t?"name":"hex8"}:(n=Lv.hex6.exec(e))?{r:Mv(n[1]),g:Mv(n[2]),b:Mv(n[3]),format:t?"name":"hex"}:(n=Lv.hex4.exec(e))?{r:Mv(n[1]+n[1]),g:Mv(n[2]+n[2]),b:Mv(n[3]+n[3]),a:Ov(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=Lv.hex3.exec(e))&&{r:Mv(n[1]+n[1]),g:Mv(n[2]+n[2]),b:Mv(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(Nv(e.r)&&Nv(e.g)&&Nv(e.b)?(t=e.r,n=e.g,r=e.b,i={r:255*_v(t,255),g:255*_v(n,255),b:255*_v(r,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):Nv(e.h)&&Nv(e.s)&&Nv(e.v)?(a=Cv(e.s),s=Cv(e.v),i=function(e,t,n){e=6*_v(e,360),t=_v(t,100),n=_v(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,a,s),u=!0,c="hsv"):Nv(e.h)&&Nv(e.s)&&Nv(e.l)&&(a=Cv(e.s),l=Cv(e.l),i=function(e,t,n){var r,i,o;if(e=_v(e,360),t=_v(t,100),n=_v(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=kv(s,a,e+1/3),i=kv(s,a,e),o=kv(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,a,l),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=Ev(o),{ok:u,format:e.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}var Bv="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Fv="[\\s|\\(]+(".concat(Bv,")[,|\\s]+(").concat(Bv,")[,|\\s]+(").concat(Bv,")\\s*\\)?"),Dv="[\\s|\\(]+(".concat(Bv,")[,|\\s]+(").concat(Bv,")[,|\\s]+(").concat(Bv,")[,|\\s]+(").concat(Bv,")\\s*\\)?"),Lv={CSS_UNIT:new RegExp(Bv),rgb:new RegExp("rgb"+Fv),rgba:new RegExp("rgba"+Dv),hsl:new RegExp("hsl"+Fv),hsla:new RegExp("hsla"+Dv),hsv:new RegExp("hsv"+Fv),hsva:new RegExp("hsva"+Dv),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 Nv(e){return Boolean(Lv.CSS_UNIT.exec(String(e)))}var Uv=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var i=zv(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},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=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Ev(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=Rv(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=Rv(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Pv(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=Pv(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Iv(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),function(e,t,n,r,i){var o,a=[Tv(Math.round(e).toString(16)),Tv(Math.round(t).toString(16)),Tv(Math.round(n).toString(16)),Tv((o=r,Math.round(255*parseFloat(o)).toString(16)))];return i&&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("")}(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),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*_v(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*_v(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="#"+Iv(this.r,this.g,this.b,!1),t=0,n=Object.entries(jv);t<n.length;t++){var r=n[t],i=r[0];if(e===r[1])return i}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},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 n=this.toHsl();return n.l+=t/100,n.l=wv(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=wv(n.l),new e(n)},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 n=this.toHsl();return n.s-=t/100,n.s=wv(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=wv(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100;return new e({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));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 n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Gv=[{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 Hv(e){var t=Rv(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Wv(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Iv(t,n,r,!1))}function Vv(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function Xv(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Kv(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function qv(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=zv(e),i=5;i>0;i-=1){var o=Hv(r),a=Wv(zv({h:Vv(o,i,!0),s:Xv(o,i,!0),v:Kv(o,i,!0)}));n.push(a)}n.push(Wv(r));for(var s=1;s<=4;s+=1){var l=Hv(r),u=Wv(zv({h:Vv(l,s),s:Xv(l,s),v:Kv(l,s)}));n.push(u)}return"dark"===t.theme?Gv.map((function(e){var r,i,o,a=e.index,s=e.opacity;return Wv((r=zv(t.backgroundColor||"#141414"),i=zv(n[a]),o=100*s/100,{r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b}))})):n}var Qv={"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"},Yv=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Yv.primary=Yv[5];var Zv=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Zv.primary=Zv[5];var $v=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];$v.primary=$v[5];var Jv=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Jv.primary=Jv[5];var ey=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ey.primary=ey[5];var ty=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ty.primary=ty[5];var ny=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ny.primary=ny[5];var ry=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ry.primary=ry[5];var iy=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];iy.primary=iy[5];var oy=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];oy.primary=oy[5];var ay=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ay.primary=ay[5];var sy=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];sy.primary=sy[5];var ly=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ly.primary=ly[5];var uy={red:Yv,volcano:Zv,orange:$v,gold:Jv,yellow:ey,lime:ty,green:ny,cyan:ry,blue:iy,geekblue:oy,purple:ay,magenta:sy,grey:ly},cy=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];cy.primary=cy[5];var dy=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];dy.primary=dy[5];var fy=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];fy.primary=fy[5];var py=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];py.primary=py[5];var hy=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];hy.primary=hy[5];var my=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];my.primary=my[5];var Ay=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Ay.primary=Ay[5];var gy=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];gy.primary=gy[5];var vy=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];vy.primary=vy[5];var yy=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];yy.primary=yy[5];var by=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];by.primary=by[5];var xy=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];xy.primary=xy[5];var Sy=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];function _y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_y(Object(n),!0).forEach((function(t){yv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Sy.primary=Sy[5];var Ey=ee(re());function Cy(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Ty="data-rc-order",Py="data-rc-priority",ky=new Map;function Ry(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function Iy(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Oy(e){return Array.from((ky.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function My(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Cy())return null;var n=t.csp,r=t.prepend,i=t.priority,o=void 0===i?0:i,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(Ty,a),s&&o&&l.setAttribute(Py,"".concat(o)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var u=Iy(t),c=u.firstChild;if(r){if(s){var d=(t.styles||Oy(u)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Ty)))return!1;var t=Number(e.getAttribute(Py)||0);return o>=t}));if(d.length)return u.insertBefore(l,d[d.length-1].nextSibling),l}u.insertBefore(l,c)}else u.appendChild(l);return l}function jy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Iy(t);return(t.styles||Oy(n)).find((function(n){return n.getAttribute(Ry(t))===e}))}function zy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=jy(e,t);n&&Iy(t).removeChild(n)}function By(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Iy(n),i=Oy(r),o=wy(wy({},n),{},{styles:i});!function(e,t){var n=ky.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=My("",t),i=r.parentNode;ky.set(e,i),e.removeChild(r)}}(r,o);var a,s,l,u=jy(t,o);if(u)return null!==(a=o.csp)&&void 0!==a&&a.nonce&&u.nonce!==(null===(s=o.csp)||void 0===s?void 0:s.nonce)&&(u.nonce=null===(l=o.csp)||void 0===l?void 0:l.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;var c=My(e,o);return c.setAttribute(Ry(o),t),c}function Fy(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Dy(e){return function(e){return Fy(e)instanceof ShadowRoot}(e)?Fy(e):null}var Ly={},Ny=[];function Uy(e,t){if(!e&&void 0!==console){var n=Ny.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function Gy(e,t){if(!e&&void 0!==console){var n=Ny.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function Hy(){Ly={}}function Wy(e,t,n){t||Ly[n]||(e(!1,n),Ly[n]=!0)}function Vy(e,t){Wy(Uy,e,t)}Vy.preMessage=function(e){Ny.push(e)},Vy.resetWarned=Hy,Vy.noteOnce=function(e,t){Wy(Gy,e,t)};var Xy=Vy,Ky=ee(re());function qy(e){return"object"===gv(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===gv(e.icon)||"function"==typeof e.icon)}function Qy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,i=e[n];return"class"===n?(t.className=i,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i),t}),{})}function Yy(e,t,n){return n?Ky.default.createElement(e.tag,wy(wy({key:t},Qy(e.attrs)),n),(e.children||[]).map((function(n,r){return Yy(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):Ky.default.createElement(e.tag,wy({key:t},Qy(e.attrs)),(e.children||[]).map((function(n,r){return Yy(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function Zy(e){return qv(e)[0]}function $y(e){return e?Array.isArray(e)?e:[e]:[]}var Jy=["icon","className","onClick","style","primaryColor","secondaryColor"],eb={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},tb=function(e){var t,n,r,i,o,a,s,l=e.icon,u=e.className,c=e.onClick,d=e.style,f=e.primaryColor,p=e.secondaryColor,h=bv(e,Jy),m=Ey.useRef(),A=eb;if(f&&(A={primaryColor:f,secondaryColor:p||Zy(f)}),t=m,n=(0,Ky.useContext)(cv),r=n.csp,i=n.prefixCls,o="\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",i&&(o=o.replace(/anticon/g,i)),(0,Ky.useEffect)((function(){var e=Dy(t.current);By(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),a=qy(l),s="icon should be icon definiton, but got ".concat(l),Xy(a,"[@ant-design/icons] ".concat(s)),!qy(l))return null;var g=l;return g&&"function"==typeof g.icon&&(g=wy(wy({},g),{},{icon:g.icon(A.primaryColor,A.secondaryColor)})),Yy(g.icon,"svg-".concat(g.name),wy(wy({className:u,onClick:c,style:d,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:m}))};tb.displayName="IconReact",tb.getTwoToneColors=function(){return wy({},eb)},tb.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;eb.primaryColor=t,eb.secondaryColor=n||Zy(t),eb.calculated=!!n};var nb=tb;function rb(e){var t=Av($y(e),2),n=t[0],r=t[1];return nb.setTwoToneColors({primaryColor:n,secondaryColor:r})}var ib=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];rb(iy.primary);var ob=xv.forwardRef((function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=bv(e,ib),c=xv.useContext(cv),d=c.prefixCls,f=void 0===d?"anticon":d,p=c.rootClassName,h=(0,Sv.default)(p,f,yv(yv({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!i||"loading"===r.name),n),m=a;void 0===m&&s&&(m=-1);var A=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,g=Av($y(l),2),v=g[0],y=g[1];return xv.createElement("span",dv({role:"img","aria-label":r.name},u,{ref:t,tabIndex:m,onClick:s,className:h}),xv.createElement(nb,{icon:r,primaryColor:v,secondaryColor:y,style:A}))}));ob.displayName="AntdIcon",ob.getTwoToneColor=function(){var e=nb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},ob.setTwoToneColor=rb;var ab=ob,sb=ee(re()),lb={"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"},ub=function(e,t){return sb.createElement(ab,dv({},e,{ref:t,icon:lb}))},cb=sb.forwardRef(ub);cb.displayName="ArrowRightOutlined";var db=cb,fb=ee(re()),pb={"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"},hb=function(e,t){return fb.createElement(ab,dv({},e,{ref:t,icon:pb}))},mb=fb.forwardRef(hb);mb.displayName="CaretRightOutlined";var Ab=mb,gb=ee(re()),vb={"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"},yb=function(e,t){return gb.createElement(ab,dv({},e,{ref:t,icon:vb}))},bb=gb.forwardRef(yb);bb.displayName="CheckCircleFilled";var xb=bb,Sb=ee(re()),_b={"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"},wb=function(e,t){return Sb.createElement(ab,dv({},e,{ref:t,icon:_b}))},Eb=Sb.forwardRef(wb);Eb.displayName="CheckOutlined";var Cb=Eb,Tb=ee(re()),Pb={"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"},kb=function(e,t){return Tb.createElement(ab,dv({},e,{ref:t,icon:Pb}))},Rb=Tb.forwardRef(kb);Rb.displayName="ClockCircleOutlined";var Ib=Rb,Ob=ee(re()),Mb={"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"},jb=function(e,t){return Ob.createElement(ab,dv({},e,{ref:t,icon:Mb}))},zb=Ob.forwardRef(jb);zb.displayName="CloseCircleFilled";var Bb=zb,Fb=ee(re()),Db={"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"},Lb=function(e,t){return Fb.createElement(ab,dv({},e,{ref:t,icon:Db}))},Nb=Fb.forwardRef(Lb);Nb.displayName="CloseOutlined";var Ub=Nb,Gb=ee(re()),Hb={"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"},Wb=function(e,t){return Gb.createElement(ab,dv({},e,{ref:t,icon:Hb}))},Vb=Gb.forwardRef(Wb);Vb.displayName="ExclamationCircleFilled";var Xb=Vb,Kb=ee(re()),qb={"icon":{"tag":"svg","attrs":{"viewBox":"64 64 896 896","focusable":"false"},"children":[{"tag":"path","attrs":{"d":"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{"tag":"path","attrs":{"d":"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},"name":"eye-invisible","theme":"outlined"},Qb=function(e,t){return Kb.createElement(ab,dv({},e,{ref:t,icon:qb}))},Yb=Kb.forwardRef(Qb);Yb.displayName="EyeInvisibleOutlined";var Zb=Yb,$b=ee(re()),Jb={"icon":{"tag":"svg","attrs":{"viewBox":"64 64 896 896","focusable":"false"},"children":[{"tag":"path","attrs":{"d":"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},"name":"eye","theme":"outlined"},ex=function(e,t){return $b.createElement(ab,dv({},e,{ref:t,icon:Jb}))},tx=$b.forwardRef(ex);tx.displayName="EyeOutlined";var nx=tx,rx=ee(re()),ix={"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"},ox=function(e,t){return rx.createElement(ab,dv({},e,{ref:t,icon:ix}))},ax=rx.forwardRef(ox);ax.displayName="InfoCircleFilled";var sx=ax,lx=ee(re()),ux={"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"},cx=function(e,t){return lx.createElement(ab,dv({},e,{ref:t,icon:ux}))},dx=lx.forwardRef(cx);dx.displayName="LoadingOutlined";var fx=dx,px=ee(re()),hx={"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"},mx=function(e,t){return px.createElement(ab,dv({},e,{ref:t,icon:hx}))},Ax=px.forwardRef(mx);Ax.displayName="LogoutOutlined";var gx=Ax,vx=ee(re()),yx={"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"},bx=function(e,t){return vx.createElement(ab,dv({},e,{ref:t,icon:yx}))},xx=vx.forwardRef(bx);xx.displayName="MinusOutlined";var Sx=xx,_x=ee(re()),wx={"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"},Ex=function(e,t){return _x.createElement(ab,dv({},e,{ref:t,icon:wx}))},Cx=_x.forwardRef(Ex);Cx.displayName="QuestionCircleOutlined";var Tx=Cx,Px=ee(re()),kx={"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"},Rx=function(e,t){return Px.createElement(ab,dv({},e,{ref:t,icon:kx}))},Ix=Px.forwardRef(Rx);Ix.displayName="SearchOutlined";var Ox=Ix,Mx=ee(re()),jx={"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"},zx=function(e,t){return Mx.createElement(ab,dv({},e,{ref:t,icon:jx}))},Bx=Mx.forwardRef(zx);Bx.displayName="SendOutlined";var Fx=Bx,Dx=ee(re()),Lx={"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"},Nx=function(e,t){return Dx.createElement(ab,dv({},e,{ref:t,icon:Lx}))},Ux=Dx.forwardRef(Nx);Ux.displayName="WarningOutlined";var Gx=Ux,Hx=ee(re()),Wx=ee(ae()),Vx=ee(re());function Xx(e,t,n){var r=Vx.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var Kx=function(e,t){"function"==typeof e?e(t):"object"===gv(e)&&e&&"current"in e&&(e.current=t)},qx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){Kx(t,e)}))}},Qx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xx((function(){return qx.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},Yx=function(e){var t,n,r=(0,Wx.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===Wx.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===Wx.ForwardRef)};Number(Hx.version.split(".")[0]);var Zx,$x,Jx,eS,tS=ee(he()),nS=ee(me()),rS=ee(Ae()),iS=ee(re()),oS=ee(ue()),aS="bodyAttributes",sS="htmlAttributes",lS="titleAttributes",uS={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},cS=Object.keys(uS).map((function(e){return uS[e]})),dS="charset",fS="cssText",pS="href",hS="http-equiv",mS="innerHTML",AS="itemprop",gS="name",vS="property",yS="rel",bS="src",xS="target",SS={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_S="defaultTitle",wS="defer",ES="encodeSpecialCharacters",CS="onChangeClientState",TS="titleTemplate",PS=Object.keys(SS).reduce((function(e,t){return e[SS[t]]=t,e}),{}),kS=[uS.NOSCRIPT,uS.SCRIPT,uS.STYLE],RS="data-react-helmet",IS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OS=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),MS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jS=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},zS=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},BS=function(e){var t=US(e,uS.TITLE),n=US(e,TS);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=US(e,_S);return t||r||void 0},FS=function(e){return US(e,CS)||function(){}},DS=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return MS({},e,t)}),{})},LS=function(e,t){return t.filter((function(e){return void 0!==e[uS.BASE]})).map((function(e){return e[uS.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},NS=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&XS("Helmet: "+e+' should be of type "Array". Instead found type "'+IS(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n=void 0,o=Object.keys(e),a=0;a<o.length;a++){var s=o[a],l=s.toLowerCase();-1===t.indexOf(l)||n===yS&&"canonical"===e[n].toLowerCase()||l===yS&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==mS&&s!==fS&&s!==AS||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][u]&&(i[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],l=(0,oS.default)({},r[s],i[s]);r[s]=l}return e}),[]).reverse()},US=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},GS=(Zx=Date.now(),function(e){var t=Date.now();t-Zx>16?(Zx=t,e(t)):setTimeout((function(){GS(e)}),0)}),HS=function(e){return clearTimeout(e)},WS="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||GS:global.requestAnimationFrame||GS,VS="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||HS:global.cancelAnimationFrame||HS,XS=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},KS=null,qS=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,u=e.scriptTags,c=e.styleTags,d=e.title,f=e.titleAttributes;ZS(uS.BODY,r),ZS(uS.HTML,i),YS(d,f);var p={baseTag:$S(uS.BASE,n),linkTags:$S(uS.LINK,o),metaTags:$S(uS.META,a),noscriptTags:$S(uS.NOSCRIPT,s),scriptTags:$S(uS.SCRIPT,u),styleTags:$S(uS.STYLE,c)},h={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,h,m)},QS=function(e){return Array.isArray(e)?e.join(""):e},YS=function(e,t){void 0!==e&&document.title!==e&&(document.title=QS(e)),ZS(uS.TITLE,t)},ZS=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(RS),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s++){var l=a[s],u=t[l]||"";n.getAttribute(l)!==u&&n.setAttribute(l,u),-1===i.indexOf(l)&&i.push(l);var c=o.indexOf(l);-1!==c&&o.splice(c,1)}for(var d=o.length-1;d>=0;d--)n.removeAttribute(o[d]);i.length===o.length?n.removeAttribute(RS):n.getAttribute(RS)!==a.join(",")&&n.setAttribute(RS,a.join(","))}},$S=function(e,t){var n=document.head||document.querySelector(uS.HEAD),r=n.querySelectorAll(e+"["+RS+"]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===mS)n.innerHTML=t.innerHTML;else if(r===fS)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(RS,"true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):o.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:o}},JS=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},e_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[SS[n]||n]=e[n],t}),t)},t_=function(e,t,n){switch(e){case uS.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[RS]=!0,i=e_(n,r),[iS.default.createElement(uS.TITLE,i,e)];var e,n,r,i},toString:function(){return function(e,t,n,r){var i=JS(n),o=QS(t);return i?"<"+e+" "+RS+'="true" '+i+">"+zS(o,r)+"</"+e+">":"<"+e+" "+RS+'="true">'+zS(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case aS:case sS:return{toComponent:function(){return e_(t)},toString:function(){return JS(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,i=((r={key:n})[RS]=!0,r);return Object.keys(t).forEach((function(e){var n=SS[e]||e;if(n===mS||n===fS){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]})),iS.default.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===mS||e===fS)})).reduce((function(e,t){var i=void 0===r[t]?t:t+'="'+zS(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===kS.indexOf(e);return t+"<"+e+" "+RS+'="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},n_=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.scriptTags,u=e.styleTags,c=e.title,d=void 0===c?"":c,f=e.titleAttributes;return{base:t_(uS.BASE,t,r),bodyAttributes:t_(aS,n,r),htmlAttributes:t_(sS,i,r),link:t_(uS.LINK,o,r),meta:t_(uS.META,a,r),noscript:t_(uS.NOSCRIPT,s,r),script:t_(uS.SCRIPT,l,r),style:t_(uS.STYLE,u,r),title:t_(uS.TITLE,{title:d,titleAttributes:f},r)}},r_=(0,nS.default)((function(e){return{baseTag:LS([pS,xS],e),bodyAttributes:DS(aS,e),defer:US(e,wS),encode:US(e,ES),htmlAttributes:DS(sS,e),linkTags:NS(uS.LINK,[yS,pS],e),metaTags:NS(uS.META,[gS,dS,hS,vS,AS],e),noscriptTags:NS(uS.NOSCRIPT,[mS],e),onChangeClientState:FS(e),scriptTags:NS(uS.SCRIPT,[bS,mS],e),styleTags:NS(uS.STYLE,[fS],e),title:BS(e),titleAttributes:DS(lS,e)}}),(function(e){KS&&VS(KS),e.defer?KS=WS((function(){qS(e,(function(){KS=null}))})):(qS(e),KS=null)}),n_)((function(){return null})),i_=($x=r_,eS=Jx=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!(0,rS.default)(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case uS.SCRIPT:case uS.NOSCRIPT:return{innerHTML:t};case uS.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return MS({},r,((t={})[n.type]=[].concat(r[n.type]||[],[MS({},i,this.mapNestedChildrenToProps(n,o))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case uS.TITLE:return MS({},i,((t={})[r.type]=a,t.titleAttributes=MS({},o),t));case uS.BODY:return MS({},i,{bodyAttributes:MS({},o)});case uS.HTML:return MS({},i,{htmlAttributes:MS({},o)})}return MS({},i,((n={})[r.type]=MS({},o),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=MS({},t);return Object.keys(e).forEach((function(t){var r;n=MS({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){if(!cS.some((function(t){return e.type===t})))return"function"==typeof e.type?XS("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information."):XS("Only elements types "+cS.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information.");if(t&&"string"!=typeof t&&(!Array.isArray(t)||t.some((function(e){return"string"!=typeof e}))))throw new Error("Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information.");return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return iS.default.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[PS[n]||n]=e[n],t}),t)}(jS(i,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case uS.LINK:case uS.META:case uS.NOSCRIPT:case uS.SCRIPT:case uS.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=jS(e,["children"]),r=MS({},n);return t&&(r=this.mapChildrenToProps(t,r)),iS.default.createElement($x,r)},OS(t,null,[{key:"canUseDOM",set:function(e){$x.canUseDOM=e}}]),t}(iS.default.Component),Jx.propTypes={base:tS.default.object,bodyAttributes:tS.default.object,children:tS.default.oneOfType([tS.default.arrayOf(tS.default.node),tS.default.node]),defaultTitle:tS.default.string,defer:tS.default.bool,encodeSpecialCharacters:tS.default.bool,htmlAttributes:tS.default.object,link:tS.default.arrayOf(tS.default.object),meta:tS.default.arrayOf(tS.default.object),noscript:tS.default.arrayOf(tS.default.object),onChangeClientState:tS.default.func,script:tS.default.arrayOf(tS.default.object),style:tS.default.arrayOf(tS.default.object),title:tS.default.string,titleAttributes:tS.default.object,titleTemplate:tS.default.string},Jx.defaultProps={defer:!0,encodeSpecialCharacters:!0},Jx.peek=$x.peek,Jx.rewind=function(){var e=$x.rewind();return e||(e=n_({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},eS);i_.renderStatic=i_.rewind;var o_=ee(re()),a_=ee(re()),s_=ee(ae());function l_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return a_.default.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(l_(e)):(0,s_.isFragment)(e)&&e.props?n=n.concat(l_(e.props.children,t)):n.push(e))})),n}var u_=ee(re()),c_=ee(be());function d_(e){return e instanceof HTMLElement||e instanceof SVGElement}function f_(e){return e&&"object"===gv(e)&&d_(e.nativeElement)?e.nativeElement:d_(e)?e:null}function p_(e){var t,n=f_(e);return n||(e instanceof u_.default.Component?null===(t=c_.default.findDOMNode)||void 0===t?void 0:t.call(c_.default,e):null)}var h_=ee(re()),m_=ee(re()),A_=m_.createContext(null),g_=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),v_="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,y_="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),b_="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(y_):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},x_=["top","right","bottom","left","width","height","size","weight"],S_="undefined"!=typeof MutationObserver,__=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){b_(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){v_&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),S_?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){v_&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;x_.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),w_=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},E_=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||y_},C_=O_(0,0,0,0);function T_(e){return parseFloat(e)||0}function P_(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+T_(e["border-"+n+"-width"])}),0)}function k_(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return C_;var r=E_(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=T_(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=T_(r.width),l=T_(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=P_(r,"left","right")+o),Math.round(l+a)!==n&&(l-=P_(r,"top","bottom")+a)),!function(e){return e===E_(e).document.documentElement}(e)){var u=Math.round(s+o)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return O_(i.left,i.top,s,l)}var R_="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof E_(e).SVGGraphicsElement}:function(e){return e instanceof E_(e).SVGElement&&"function"==typeof e.getBBox};function I_(e){return v_?R_(e)?function(e){var t=e.getBBox();return O_(0,0,t.width,t.height)}(e):k_(e):C_}function O_(e,t,n,r){return{x:e,y:t,width:n,height:r}}var M_=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=O_(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=I_(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),j_=function(e,t){var n,r,i,o,a,s,l,u=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),w_(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);w_(this,{target:e,contentRect:u})},z_=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new g_,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof E_(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new M_(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof E_(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new j_(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),B_="undefined"!=typeof WeakMap?new WeakMap:new g_,F_=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=__.getInstance(),r=new z_(t,n,this);B_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){F_.prototype[e]=function(){var t;return(t=B_.get(this))[e].apply(t,arguments)}}));var D_=void 0!==y_.ResizeObserver?y_.ResizeObserver:F_,L_=new Map,N_=new D_((function(e){e.forEach((function(e){var t,n=e.target;null===(t=L_.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function U_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vv(r.key),r)}}function H_(e,t,n){return t&&G_(e.prototype,t),n&&G_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function W_(e,t){return(W_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function V_(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W_(e,t)}function X_(e){return(X_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function K_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(K_=function(){return!!e})()}function q_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q_(e){var t=K_();return function(){var n,r=X_(e);if(t){var i=X_(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==gv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return q_(e)}(this,n)}}var Y_=function(e){V_(n,e);var t=Q_(n);function n(){return U_(this,n),t.apply(this,arguments)}return H_(n,[{key:"render",value:function(){return this.props.children}}]),n}(ee(re()).Component);function Z_(e,t){var n=e.children,r=e.disabled,i=h_.useRef(null),o=h_.useRef(null),a=h_.useContext(A_),s="function"==typeof n,l=s?n(i):n,u=h_.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=!s&&h_.isValidElement(l)&&Yx(l),d=c?l.ref:null,f=Qx(d,i),p=function(){var e;return p_(i.current)||(i.current&&"object"===gv(i.current)?p_(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||p_(o.current)};h_.useImperativeHandle(t,(function(){return p()}));var h=h_.useRef(e);h.current=e;var m=h_.useCallback((function(e){var t=h.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),o=i.width,s=i.height,l=e.offsetWidth,c=e.offsetHeight,d=Math.floor(o),f=Math.floor(s);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var p={width:d,height:f,offsetWidth:l,offsetHeight:c};u.current=p;var m=l===Math.round(o)?o:l,A=c===Math.round(s)?s:c,g=wy(wy({},p),{},{offsetWidth:m,offsetHeight:A});null==a||a(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return h_.useEffect((function(){var e,t,n=p();return n&&!r&&(e=n,t=m,L_.has(e)||(L_.set(e,new Set),N_.observe(e)),L_.get(e).add(t)),function(){return function(e,t){L_.has(e)&&(L_.get(e).delete(t),L_.get(e).size||(N_.unobserve(e),L_.delete(e)))}(n,m)}}),[i.current,r]),h_.createElement(Y_,{ref:o},c?h_.cloneElement(l,{ref:f}):l)}var $_=h_.forwardRef(Z_);$_.displayName="SingleObserver";var J_=$_;function ew(e,t){var n=e.children,r="function"==typeof n?[n]:l_(n);return r.length>1?Uy(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&Uy(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),r.map((function(n,r){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return o_.createElement(J_,dv({},e,{key:i,ref:0===r?t:void 0}),n)}))}var tw=o_.forwardRef(ew);tw.displayName="ResizeObserver",tw.Collection=function(e){var t=e.children,n=e.onBatchResize,r=m_.useRef(0),i=m_.useRef([]),o=m_.useContext(A_),a=m_.useCallback((function(e,t,a){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===r.current&&(null==n||n(i.current),i.current=[])})),null==o||o(e,t,a)}),[n,o]);return m_.createElement(A_.Provider,{value:a},t)};var nw=tw;function rw(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function iw(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ow(e){return function(e){if(Array.isArray(e))return pv(e)}(e)||iw(e)||hv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var aw=function(e){return+setTimeout(e,16)},sw=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(aw=function(e){return window.requestAnimationFrame(e)},sw=function(e){return window.cancelAnimationFrame(e)});var lw=0,uw=new Map;function cw(e){uw.delete(e)}var dw=function(e){var t=lw+=1;return function n(r){if(0===r)cw(t),e();else{var i=aw((function(){n(r-1)}));uw.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};dw.cancel=function(e){var t=uw.get(e);return cw(e),sw(t)},dw.ids=function(){return uw};var fw=dw,pw=ee(re()),hw=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},mw=ee(re()),Aw=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(Xy(!a,"Warning: There may be circular references"),a)return!1;if(t===i)return!0;if(n&&o>1)return!1;r.add(t);var s=o+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],i[l],s))return!1;return!0}if(t&&i&&"object"===gv(t)&&"object"===gv(i)){var u=Object.keys(t);return u.length===Object.keys(i).length&&u.every((function(n){return e(t[n],i[n],s)}))}return!1}(e,t)},gw=ee(re());function vw(e){return e.join("%")}var yw=function(){function e(t){U_(this,e),yv(this,"instanceId",void 0),yv(this,"cache",new Map),this.instanceId=t}return H_(e,[{key:"get",value:function(e){return this.opGet(vw(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(vw(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),bw="data-token-hash",xw="data-css-hash",Sw="__cssinjs_instance__",_w=gw.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(xw,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Sw]=t[Sw]||e,t[Sw]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(xw,"]"))).forEach((function(t){var n,i=t.getAttribute(xw);r[i]?t[Sw]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[i]=!0}))}return new yw(e)}(),defaultCache:!0}),ww=H_((function e(){U_(this,e)})),Ew="CALC_UNIT",Cw=new RegExp(Ew,"g");function Tw(e){return"number"==typeof e?"".concat(e).concat(Ew):e}var Pw=function(e){V_(n,e);var t=Q_(n);function n(e,r){var i;U_(this,n),yv(q_(i=t.call(this)),"result",""),yv(q_(i),"unitlessCssVar",void 0),yv(q_(i),"lowPriority",void 0);var o=gv(e);return i.unitlessCssVar=r,e instanceof n?i.result="(".concat(e.result,")"):"number"===o?i.result=Tw(e):"string"===o&&(i.result=e),i}return H_(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Tw(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Tw(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?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 n?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,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(Cw,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(ww),kw=function(e){V_(n,e);var t=Q_(n);function n(e){var r;return U_(this,n),yv(q_(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return H_(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(ww),Rw=function(e,t){var n="css"===e?Pw:kw;return function(e){return new n(e,t)}},Iw=function(){function e(){U_(this,e),yv(this,"cache",void 0),yv(this,"keys",void 0),yv(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return H_(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach((function(e){var t;i=i?null===(t=i)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=i)&&void 0!==t&&t.value&&r&&(i.value[1]=this.cacheCallTimes++),null===(n=i)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=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 n=Av(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),o=Av(i,1)[0];this.delete(o)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,i){if(i===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var o=a.get(e);o?o.map||(o.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var i=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),i}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();yv(Iw,"MAX_CACHE_SIZE",20),yv(Iw,"MAX_CACHE_OFFSET",5);var Ow=0,Mw=function(){function e(t){U_(this,e),yv(this,"derivatives",void 0),yv(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ow,0===t.length&&Uy(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ow+=1}return H_(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),jw=new Iw;function zw(e){var t=Array.isArray(e)?e:[e];return jw.has(t)||jw.set(t,new Mw(t)),jw.get(t)}var Bw=new WeakMap,Fw={},Dw=new WeakMap;function Lw(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Dw.get(e)||"";return n||(Object.keys(e).forEach((function(r){var i=e[r];n+=r,i instanceof Mw?n+=i.id:i&&"object"===gv(i)?n+=Lw(i,t):n+=i})),t&&(n=hw(n)),Dw.set(e,n)),n}function Nw(e,t){return hw("".concat(t,"_").concat(Lw(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var Uw=Cy();function Gw(e){return"number"==typeof e?"".concat(e,"px"):e}function Hw(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=wy(wy({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},yv(yv({},bw,t),xw,n)),i=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Ww,Vw,Xw=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()},Kw=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=Av(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},qw=function(e,t,n){var r={},i={};return Object.entries(e).forEach((function(e){var t,o,a=Av(e,2),s=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])i[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(o=n.ignore)&&void 0!==o&&o[s])){var u,c=Xw(s,null==n?void 0:n.prefix);r[c]="number"!=typeof l||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[s]?String(l):"".concat(l,"px"),i[s]="var(".concat(c,")")}})),[i,Kw(r,t,{scope:null==n?void 0:n.scope})]},Qw=ee(re()),Yw=ee(re()),Zw=Cy()?Yw.useLayoutEffect:Yw.useEffect,$w=function(e,t){var n=Yw.useRef(!0);Zw((function(){return e(n.current)}),t),Zw((function(){return n.current=!1,function(){n.current=!0}}),[])},Jw=function(e,t){$w((function(t){if(!t)return e()}),t)},eE=$w,tE=ee(re()),nE=wy({},tE).useInsertionEffect,rE=nE?function(e,t,n){return nE((function(){return e(),t()}),n)}:function(e,t,n){tE.useMemo(e,n),eE((function(){return t(!0)}),n)},iE=ee(re()),oE=void 0!==wy({},iE).useInsertionEffect?function(e){var t=[],n=!1;return iE.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?Uy(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}},aE=!1,sE=function(){return aE};function lE(e,t,n,r,i){var o=Qw.useContext(_w).cache,a=vw([e].concat(ow(t))),s=oE([a]),l=sE(),u=function(e){o.opUpdate(a,(function(t){var i=Av(t||[void 0,void 0],2),o=i[0],a=void 0===o?0:o,s=i[1],u=s;s&&l&&(null==r||r(u,l),u=null);var c=[a,u||n()];return e?e(c):c}))};Qw.useMemo((function(){u()}),[a]);var c=o.opGet(a);c||(u(),c=o.opGet(a));var d=c[1];return rE((function(){null==i||i(d)}),(function(e){return u((function(t){var n=Av(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(d)),[r+1,o]})),function(){o.opUpdate(a,(function(t){var n=Av(t||[],2),i=n[0],l=void 0===i?0:i,u=n[1];return 0==l-1?(s((function(){!e&&o.opGet(a)||null==r||r(u,!1)})),null):[l-1,u]}))}}),[a]),d}"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window&&"function"==typeof(Ww=window).webpackHotUpdate&&(Vw=Ww.webpackHotUpdate,Ww.webpackHotUpdate=function(){return aE=!0,setTimeout((function(){aE=!1}),0),Vw.apply(void 0,arguments)});var uE={},cE=new Map;function dE(e,t){cE.set(e,(cE.get(e)||0)-1);var n=Array.from(cE.keys()),r=n.filter((function(e){return(cE.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(bw,'="').concat(e,'"]')).forEach((function(e){var n;e[Sw]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),cE.delete(e)}))}var fE="token";function pE(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,mw.useContext)(_w),i=r.cache.instanceId,o=r.container,a=n.salt,s=void 0===a?"":a,l=n.override,u=void 0===l?uE:l,c=n.formatToken,d=n.getComputedToken,f=n.cssVar,p=function(e,t){for(var n=Bw,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(Fw)||n.set(Fw,e()),n.get(Fw)}((function(){return Object.assign.apply(Object,[{}].concat(ow(t)))}),t),h=Lw(p),m=Lw(u),A=f?Lw(f):"",g=lE(fE,[s,e.id,h,m,A],(function(){var t,n=d?d(p,u,e):function(e,t,n,r){var i=wy(wy({},n.getDerivativeToken(e)),t);return r&&(i=r(i)),i}(p,u,e,c),r=wy({},n),i="";if(f){var o=Av(qw(n,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),2);n=o[0],i=o[1]}var a=Nw(n,s);n._tokenKey=a,r._tokenKey=Nw(r,s);var l=null!==(t=null==f?void 0:f.key)&&void 0!==t?t:a;n._themeKey=l,function(e){cE.set(e,(cE.get(e)||0)+1)}(l);var h="".concat("css-dev-only-do-not-override","-").concat(hw(a));return n._hashId=h,[n,h,r,i,(null==f?void 0:f.key)||""]}),(function(e){dE(e[0]._themeKey,i)}),(function(e){var t=Av(e,4),n=t[0],r=t[3];if(f&&r){var a=By(r,hw("css-variables-".concat(n._themeKey)),{mark:xw,prepend:"queue",attachTo:o,priority:-999});a[Sw]=i,a.setAttribute(bw,n._themeKey)}}));return g}var hE=ee(re()),mE=ee(re()),AE={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},gE="comm",vE="rule",yE="decl",bE=Math.abs,xE=String.fromCharCode;function SE(e){return e.trim()}function _E(e,t,n){return e.replace(t,n)}function wE(e,t,n){return e.indexOf(t,n)}function EE(e,t){return 0|e.charCodeAt(t)}function CE(e,t,n){return e.slice(t,n)}function TE(e){return e.length}function PE(e,t){return t.push(e),e}var kE=1,RE=1,IE=0,OE=0,ME=0,jE="";function zE(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:kE,column:RE,length:a,return:"",siblings:s}}function BE(){return ME=OE<IE?EE(jE,OE++):0,RE++,10===ME&&(RE=1,kE++),ME}function FE(){return EE(jE,OE)}function DE(){return OE}function LE(e,t){return CE(jE,e,t)}function NE(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 UE(e){return SE(LE(OE-1,WE(91===e?e+2:40===e?e+1:e)))}function GE(e){for(;(ME=FE())&&ME<33;)BE();return NE(e)>2||NE(ME)>3?"":" "}function HE(e,t){for(;--t&&BE()&&!(ME<48||ME>102||ME>57&&ME<65||ME>70&&ME<97););return LE(e,DE()+(t<6&&32==FE()&&32==BE()))}function WE(e){for(;BE();)switch(ME){case e:return OE;case 34:case 39:34!==e&&39!==e&&WE(ME);break;case 40:41===e&&WE(e);break;case 92:BE()}return OE}function VE(e,t){for(;BE()&&e+ME!==57&&(e+ME!==84||47!==FE()););return"/*"+LE(t,OE-1)+"*"+xE(47===e?e:BE())}function XE(e){for(;!NE(FE());)BE();return LE(e,OE)}function KE(e){return function(e){return jE="",e}(qE("",null,null,null,[""],e=function(e){return kE=RE=1,IE=TE(jE=e),OE=0,[]}(e),0,[0],e))}function qE(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,h=0,m=1,A=1,g=1,v=0,y="",b=i,x=o,S=r,_=y;A;)switch(h=v,v=BE()){case 40:if(108!=h&&58==EE(_,d-1)){-1!=wE(_+=_E(UE(v),"&","&\f"),"&\f",bE(u?s[u-1]:0))&&(g=-1);break}case 34:case 39:case 91:_+=UE(v);break;case 9:case 10:case 13:case 32:_+=GE(h);break;case 92:_+=HE(DE()-1,7);continue;case 47:switch(FE()){case 42:case 47:PE(YE(VE(BE(),DE()),t,n,l),l);break;default:_+="/"}break;case 123*m:s[u++]=TE(_)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:A=0;case 59+c:-1==g&&(_=_E(_,/\f/g,"")),p>0&&TE(_)-d&&PE(p>32?ZE(_+";",r,n,d-1,l):ZE(_E(_," ","")+";",r,n,d-2,l),l);break;case 59:_+=";";default:if(PE(S=QE(_,t,n,u,c,i,s,y,b=[],x=[],d,o),o),123===v)if(0===c)qE(_,t,S,S,b,o,d,s,x);else switch(99===f&&110===EE(_,3)?100:f){case 100:case 108:case 109:case 115:qE(e,S,S,r&&PE(QE(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x);break;default:qE(_,S,S,S,[""],x,0,s,x)}}u=c=p=0,m=g=1,y=_="",d=a;break;case 58:d=1+TE(_),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==(ME=OE>0?EE(jE,--OE):0,RE--,10===ME&&(RE=1,kE--),ME))continue;switch(_+=xE(v),v*m){case 38:g=c>0?1:(_+="\f",-1);break;case 44:s[u++]=(TE(_)-1)*g,g=1;break;case 64:45===FE()&&(_+=UE(BE())),f=FE(),c=d=TE(y=_+=XE(DE())),v++;break;case 45:45===h&&2==TE(_)&&(m=0)}}return o}function QE(e,t,n,r,i,o,a,s,l,u,c,d){for(var f=i-1,p=0===i?o:[""],h=function(e){return e.length}(p),m=0,A=0,g=0;m<r;++m)for(var v=0,y=CE(e,f+1,f=bE(A=a[m])),b=e;v<h;++v)(b=SE(A>0?p[v]+" "+y:_E(y,/&\f/g,p[v])))&&(l[g++]=b);return zE(e,t,n,0===i?vE:s,l,u,c,d)}function YE(e,t,n,r){return zE(e,t,n,gE,xE(ME),CE(e,2,-2),0,r)}function ZE(e,t,n,r,i){return zE(e,t,n,yE,CE(e,0,r),CE(e,r+1,-1),r,i)}function $E(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function JE(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case yE:return e.return=e.return||e.value;case gE:return"";case"@keyframes":return e.return=e.value+"{"+$E(e.children,r)+"}";case vE:if(!TE(e.value=e.props.join(",")))return""}return TE(n=$E(e.children,r))?e.return=e.value+"{"+n+"}":""}function eC(e,t){var n=t.path,r=t.parentSelectors;Xy(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var tC,nC=function(e,t,n){"content"===e&&("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&eC("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)},rC=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&eC("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},iC="data-ant-cssinjs-cache-path",oC="_FILE_STYLE__",aC=!0;function sC(e){return function(){if(!tC&&(tC={},Cy())){var e=document.createElement("div");e.className=iC,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=Av(e.split(":"),2),n=t[0],r=t[1];tC[n]=r}));var n,r=document.querySelector("style[".concat(iC,"]"));r&&(aC=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!tC[e]}var lC="_skip_check_",uC="_multi_value_";function cC(e){return $E(KE(e),JE).replace(/\{%%%\:[^;];}/g,";")}var dC=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer,u=n.path,c=n.hashPriority,d=n.transformers,f=void 0===d?[]:d,p=n.linters,h=void 0===p?[]:p,m="",A={};function g(t){var r=t.getName(s);if(!A[r]){var i=Av(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];A[r]="@keyframes ".concat(t.getName(s)).concat(i)}}var v=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return v.forEach((function(t){var r="string"!=typeof t||i?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)g(r);else{var l=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(l).forEach((function(t){var r=l[t];if("object"!==gv(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===gv(e)&&e&&(lC in e||uC in e)}(r)){let e=function(e,t){"object"===gv(r)&&null!=r&&r[lC]||[nC,rC].concat(ow(h)).forEach((function(n){return n(e,t,{path:u,hashId:s,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),i=t;AE[e]||"number"!=typeof i||0===i||(i="".concat(i,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),i=t.getName(s)),m+="".concat(n,":").concat(i,";")};var d,f=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===gv(r)&&null!=r&&r[uC]&&Array.isArray(f)?f.forEach((function(n){e(t,n)})):e(t,f)}else{var p=!1,v=t.trim(),y=!1;(i||o)&&s?v.startsWith("@")?p=!0:v=function(e,t,n){if(!t)return e;var r=".".concat(t),i="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",o=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(o).concat(i).concat(r.slice(o.length))].concat(ow(n.slice(1))).join(" ")})).join(",")}(t,s,c):!i||s||"&"!==v&&""!==v||(v="",y=!0);var b=Av(e(r,n,{root:y,injectHash:p,parentSelectors:[].concat(ow(a),[v])}),2),x=b[0],S=b[1];A=wy(wy({},A),S),m+="".concat(v).concat(x)}}))}})),i?l&&(m="@layer ".concat(l.name," {").concat(m,"}"),l.dependencies&&(A["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):m="{".concat(m,"}"),[m,A]};function fC(e,t){return hw("".concat(e.join("%")).concat(t))}function pC(){return null}var hC="style";function mC(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,u=void 0===l?0:l,c=mE.useContext(_w),d=c.autoClear,f=c.mock,p=c.defaultCache,h=c.hashPriority,m=c.container,A=c.ssrInline,g=c.transformers,v=c.linters,y=c.cache,b=c.layer,x=n._tokenKey,S=[x];b&&S.push("layer"),S.push.apply(S,ow(r));var _=Uw;void 0!==f&&(_="client"===f);var w=lE(hC,S,(function(){var e=S.join("|");if(sC(e)){var n=function(e){var t=tC[e],n=null;if(t&&Cy())if(aC)n=oC;else{var r=document.querySelector("style[".concat(xw,'="').concat(tC[e],'"]'));r?n=r.innerHTML:delete tC[e]}return[n,t]}(e),a=Av(n,2),l=a[0],c=a[1];if(l)return[l,x,c,{},s,u]}var d=t(),f=Av(dC(d,{hashId:i,hashPriority:h,layer:b?o:void 0,path:r.join("-"),transformers:g,linters:v}),2),p=f[0],m=f[1],A=cC(p),y=fC(S,A);return[A,x,y,m,s,u]}),(function(e,t){var n=Av(e,3)[2];(t||d)&&Uw&&zy(n,{mark:xw})}),(function(e){var t=Av(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(_&&n!==oC){var o={mark:xw,prepend:!b&&"queue",attachTo:m,priority:u},s="function"==typeof a?a():a;s&&(o.csp={nonce:s});var l=[],c=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?l.push(e):c.push(e)})),l.forEach((function(e){By(cC(i[e]),"_layer-".concat(e),wy(wy({},o),{},{prepend:!0}))}));var d=By(n,r,o);d[Sw]=y.instanceId,d.setAttribute(bw,x),d.setAttribute("data-cache-path",S.join("|")),c.forEach((function(e){By(cC(i[e]),"_effect-".concat(e),o)}))}})),E=Av(w,3),C=E[0],T=E[1],P=E[2];return function(e){var t;return t=A&&!_&&p?mE.createElement("style",dv({},yv(yv({},bw,T),xw,P),{dangerouslySetInnerHTML:{__html:C}})):mE.createElement(pC,null),mE.createElement(mE.Fragment,null,t,e)}}var AC="cssVar",gC=function(e,t){var n=e.key,r=e.prefix,i=e.unitless,o=e.ignore,a=e.token,s=e.scope,l=void 0===s?"":s,u=(0,hE.useContext)(_w),c=u.cache.instanceId,d=u.container,f=a._tokenKey,p=[].concat(ow(e.path),[n,l,f]);return lE(AC,p,(function(){var e=t(),a=Av(qw(e,n,{prefix:r,unitless:i,ignore:o,scope:l}),2),s=a[0],u=a[1];return[s,u,fC(p,u),n]}),(function(e){var t=Av(e,3)[2];Uw&&zy(t,{mark:xw})}),(function(e){var t=Av(e,3),r=t[1],i=t[2];if(r){var o=By(r,i,{mark:xw,prepend:"queue",attachTo:d,priority:-999});o[Sw]=c,o.setAttribute(bw,n)}}))},vC=(yv(yv(yv({},hC,(function(e,t,n){var r=Av(e,6),i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],u=r[5],c=(n||{}).plain;if(l)return null;var d=i,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return d=Hw(i,o,a,f,c),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Hw(cC(s[e]),o,"_effect-".concat(e),f,c);e.startsWith("@layer")?d=n+d:d+=n}})),[u,a,d]})),fE,(function(e,t,n){var r=Av(e,5),i=r[2],o=r[3],a=r[4],s=(n||{}).plain;if(!o)return null;var l=i._tokenKey;return[-999,l,Hw(o,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),AC,(function(e,t,n){var r=Av(e,4),i=r[1],o=r[2],a=r[3],s=(n||{}).plain;return i?[-999,o,Hw(i,a,o,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null})),function(){function e(t,n){U_(this,e),yv(this,"name",void 0),yv(this,"style",void 0),yv(this,"_keyframe",!0),this.name=t,this.style=n}return H_(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}()),yC=vC;function bC(e){return e.notSplit=!0,e}function xC(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function SC(e,t,n,r){if(!t.length)return n;var i,o,a=fv(i=t)||iw(i)||hv(i)||mv(),s=a[0],l=a.slice(1);return o=e||"number"!=typeof s?Array.isArray(e)?ow(e):wy({},e):[],r&&void 0===n&&1===l.length?delete o[s][l[0]]:o[s]=SC(o[s],l,n,r),o}function _C(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!xC(e,t.slice(0,-1))?e:SC(e,t,n,r)}function wC(e){return Array.isArray(e)?[]:{}}bC(["borderTop","borderBottom"]),bC(["borderTop"]),bC(["borderBottom"]),bC(["borderLeft","borderRight"]),bC(["borderLeft"]),bC(["borderRight"]);var EC="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function CC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=wC(t[0]);return t.forEach((function(e){!function t(n,i){var o,a=new Set(i),s=xC(e,n),l=Array.isArray(s);if(l||"object"===gv(o=s)&&null!==o&&Object.getPrototypeOf(o)===Object.prototype){if(!a.has(s)){a.add(s);var u=xC(r,n);l?r=_C(r,n,[]):u&&"object"===gv(u)||(r=_C(r,n,wC(s))),EC(s).forEach((function(e){t([].concat(ow(n),[e]),a)}))}}else r=_C(r,n,s)}([])})),r}var TC=ee(re());function PC(){}var kC=null,RC=PC;RC=(e,t,n)=>{Xy(e,`[antd: ${t}] ${n}`)};var IC=TC.createContext({}),OC=e=>{const{strict:t}=TC.useContext(IC),n=(n,r,i)=>{if(!n)if(!1===t&&"deprecated"===r){const t=kC;kC||(kC={}),kC[e]=kC[e]||[],kC[e].includes(i||"")||kC[e].push(i||""),t||console.warn("[antd] There exists deprecated usage in your code:",kC)}else RC(n,e,i)};return n.deprecated=(e,t,r,i)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${r}\` instead.${i?` ${i}`:""}`)},n},MC=RC,jC=(0,ee(re()).createContext)(void 0),zC=ee(re()),BC={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},FC=wy(wy({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),DC={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},LC={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},FC),timePickerLocale:Object.assign({},DC)},NC="${label} is not a valid ${type}",UC={locale:"en",Pagination:BC,DatePicker:LC,TimePicker:DC,Calendar:LC,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:NC,method:NC,array:NC,object:NC,number:NC,date:NC,boolean:NC,integer:NC,float:NC,regexp:NC,email:NC,url:NC,hex:NC},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}},GC=(Object.assign({},UC.Modal),[]),HC=()=>GC.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),UC.Modal),WC=(0,ee(re()).createContext)(void 0),VC=ee(re()),XC=(e,t)=>{const n=VC.useContext(WC);return[VC.useMemo((()=>{var r;const i=t||UC[e],o=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof i?i():i),o||{})}),[e,t,n]),VC.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?UC.locale:e}),[n])]},KC="internalMark",qC=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;OC("LocaleProvider")(r===KC,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),zC.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return GC.push(t),HC(),()=>{GC=GC.filter((e=>e!==t)),HC()}}Object.assign({},UC.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=zC.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return zC.createElement(WC.Provider,{value:i},n)};qC.displayName="LocaleProvider";var QC=qC,YC=ee(re()),ZC={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},$C=Object.assign(Object.assign({},ZC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),JC=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}},eT=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function tT(e){return(e+8)/e}var nT=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,i=e*Math.pow(Math.E,r/5),o=n>1?Math.floor(i):Math.ceil(i);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:tT(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],u=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},rT=(e,t)=>new Uv(e).setAlpha(t).toRgbString(),iT=(e,t)=>new Uv(e).darken(t).toHexString(),oT=e=>{const t=qv(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},aT=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:rT(r,.88),colorTextSecondary:rT(r,.65),colorTextTertiary:rT(r,.45),colorTextQuaternary:rT(r,.25),colorFill:rT(r,.15),colorFillSecondary:rT(r,.06),colorFillTertiary:rT(r,.04),colorFillQuaternary:rT(r,.02),colorBgLayout:iT(n,4),colorBgContainer:iT(n,0),colorBgElevated:iT(n,0),colorBgSpotlight:rT(r,.85),colorBgBlur:"transparent",colorBorder:iT(n,15),colorBorderSecondary:iT(n,6)}},sT=zw((function(e){Qv.pink=Qv.magenta,uy.pink=uy.magenta;const t=Object.keys(ZC).map((t=>{const n=e[t]===Qv[t]?uy[t]:qv(e[t]);return new Array(10).fill(1).reduce(((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:c}=e,d=n(l),f=n(i),p=n(o),h=n(a),m=n(s),A=r(u,c),g=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},A),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new Uv("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:oT,generateNeutralColorPalettes:aT})),nT(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),eT(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:i+1},JC(r))}(e))})),lT={token:$C,override:{override:$C},hashed:!0},uT=YC.default.createContext(lT),cT=ee(re()),dT="ant",fT="anticon",pT=["outlined","borderless","filled"],hT=cT.createContext({getPrefixCls:(e,t)=>t||(e?`${dT}-${e}`:dT),iconPrefixCls:fT}),{Consumer:mT}=hT,AT=`-ant-${Date.now()}-${Math.random()}`;function gT(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},i=(e,t)=>{const i=new Uv(e),o=qv(i.toRgbString());n[`${t}-color`]=r(i),n[`${t}-color-disabled`]=o[1],n[`${t}-color-hover`]=o[4],n[`${t}-color-active`]=o[6],n[`${t}-color-outline`]=i.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=o[0],n[`${t}-color-deprecated-border`]=o[2]};if(t.primaryColor){i(t.primaryColor,"primary");const e=new Uv(t.primaryColor),o=qv(e.toRgbString());o.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Uv(o[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Cy()?By(n,`${AT}-dynamic-theme`):MC(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var vT=ee(re()),yT=vT.createContext(!1),bT=e=>{let{children:t,disabled:n}=e;const r=vT.useContext(yT);return vT.createElement(yT.Provider,{value:null!=n?n:r},t)},xT=yT,ST=ee(re()),_T=ee(re()),wT=_T.createContext(void 0),ET=e=>{let{children:t,size:n}=e;const r=_T.useContext(wT);return _T.createElement(wT.Provider,{value:n||r},t)},CT=wT,TT=function(){return{componentDisabled:(0,ST.useContext)(xT),componentSize:(0,ST.useContext)(CT)}},PT=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],kT=ee(re());function RT(e){return e>=0&&e<=255}var IT=function(e,t){const{r:n,g:r,b:i,a:o}=new Uv(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new Uv(t).toRgb();for(let u=.01;u<=1;u+=.01){const e=Math.round((n-a*(1-u))/u),t=Math.round((r-s*(1-u))/u),o=Math.round((i-l*(1-u))/u);if(RT(e)&&RT(t)&&RT(o))return new Uv({r:e,g:t,b:o,a:Math.round(100*u)/100}).toRgbString()}return new Uv({r:n,g:r,b:i,a:1}).toRgbString()};function OT(e){const{override:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["override"]),r=Object.assign({},t);Object.keys($C).forEach((e=>{delete r[e]}));const i=Object.assign(Object.assign({},n),r),o=1200,a=1600;if(!1===i.motion){const e="0s";i.motionDurationFast=e,i.motionDurationMid=e,i.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:IT(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:IT(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:IT(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:4*i.lineWidth,lineWidth:i.lineWidth,controlOutlineWidth:2*i.lineWidth,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:IT(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:o,screenXLMin:o,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Uv("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Uv("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Uv("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var MT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},jT={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},zT={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},BT={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},FT=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=MT(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=OT(a),o&&Object.entries(o).forEach((e=>{let[t,n]=e;const{theme:r}=n,i=MT(n,["theme"]);let o=i;r&&(o=FT(Object.assign(Object.assign({},a),i),{override:i},r)),a[t]=o})),a};function DT(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=kT.default.useContext(uT),o=`5.19.3-${t||""}`,a=n||sT,[s,l,u]=pE(a,[$C,e],{salt:o,override:r,getComputedToken:FT,formatToken:OT,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:jT,ignore:zT,preserve:BT}});return[a,u,t?l:"",s,i]}var LT=ee(re()),NT=ee(re());function UT(e){var t=NT.useRef();t.current=e;var n=NT.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}var GT=ee(re());function HT(e){var t=GT.useRef(!1),n=Av(GT.useState(e),2),r=n[0],i=n[1];return GT.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||i(e)}]}function WT(e){return void 0!==e}function VT(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=Av(HT((function(){return WT(i)?i:WT(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],u=s[1],c=void 0!==i?i:l,d=a?a(c):c,f=UT(o),p=Av(HT([c]),2),h=p[0],m=p[1];return Jw((function(){var e=h[0];l!==e&&f(l,e)}),[h]),Jw((function(){WT(i)||u(i)}),[i]),[d,UT((function(e,t){u(e,t),m([c],t)}))]}var XT=ee(re()),KT=function(){return H_((function e(){U_(this,e),this.map=new Map,this.objectIDMap=new WeakMap,this.nextID=0,this.lastAccessBeat=new Map,this.accessBeat=0}),[{key:"set",value:function(e,t){this.clear();const n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){const t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){return e.map((e=>e&&"object"==typeof e?`obj_${this.getObjectID(e)}`:`${typeof e}_${e}`)).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);const t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){if(this.accessBeat>1e4){const e=Date.now();this.lastAccessBeat.forEach(((t,n)=>{e-t>6e5&&(this.map.delete(n),this.lastAccessBeat.delete(n))})),this.accessBeat=0}}}])}(),qT=new KT,QT=function(e,t){return XT.default.useMemo((()=>{const n=qT.get(t);if(n)return n;const r=e();return qT.set(t,r),r}),t)},YT=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},ZT=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),$T=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},JT=e=>({outline:`${Gw(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),eP=e=>({"&:focus-visible":Object.assign({},JT(e))}),tP=!0;function nP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];tP=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),tP=!0,r}var rP={};function iP(){}var oP=e=>{let t,n=e,r=iP;return"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(tP&&t.add(n),e[n])}),r=(e,n)=>{var r;rP[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=rP[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}},aP=(e,t)=>{const[n,r]=DT();return mC({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},sP=(e,t,n)=>{var r;return"function"==typeof n?n(nP(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},lP=(e,t,n,r)=>{const i=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:t}=r;t.forEach((t=>{let[n,r]=t;var o;Xy(!(null==i?void 0:i[n]),`Component Token \`${String(n)}\` of ${e} is deprecated. Please use \`${String(r)}\` instead.`),((null==i?void 0:i[n])||(null==i?void 0:i[r]))&&(null!==(o=i[r])&&void 0!==o||(i[r]=null==i?void 0:i[n]))}))}const o=Object.assign(Object.assign({},n),i);return Object.keys(o).forEach((e=>{o[e]===t[e]&&delete o[e]})),o},uP=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function cP(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=Array.isArray(e)?e:[e,e],[o]=i,a=i.join("-");return function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[s,l,u,c,d]=DT(),{getPrefixCls:f,iconPrefixCls:p,csp:h}=(0,LT.useContext)(hT),m=f(),A=d?"css":"js",g=QT((()=>{const e=new Set;return d&&Object.keys(r.unitless||{}).forEach((t=>{e.add(Xw(t,d.prefix)),e.add(Xw(t,uP(o,d.prefix)))})),Rw(A,e)}),[A,o,null==d?void 0:d.prefix]),{max:v,min:y}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`max(${t.map((e=>Gw(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`min(${t.map((e=>Gw(e))).join(",")})`}}}(A),b={theme:s,token:c,hashId:u,nonce:()=>null==h?void 0:h.nonce,clientOnly:r.clientOnly,layer:{name:"antd"},order:r.order||-999};return mC(Object.assign(Object.assign({},b),{clientOnly:!1,path:["Shared",m]}),(()=>[{"&":ZT(c)}])),aP(p,h),[mC(Object.assign(Object.assign({},b),{path:[a,e,p]}),(()=>{if(!1===r.injectStyle)return[];const{token:a,flush:s}=oP(c),f=sP(o,l,n),h=`.${e}`,A=lP(o,l,f,{deprecatedTokens:r.deprecatedTokens});d&&Object.keys(f).forEach((e=>{f[e]=`var(${Xw(e,uP(o,d.prefix))})`}));const b=nP(a,{componentCls:h,prefixCls:e,iconCls:`.${p}`,antCls:`.${m}`,calc:g,max:v,min:y},d?f:A),x=t(b,{hashId:u,prefixCls:e,rootPrefixCls:m,iconPrefixCls:p});return s(o,A),[!1===r.resetStyle?null:$T(b,e,i,r.resetFont),x]})),u]}}var dP=(e,t,n,r)=>{const i=cP(e,t,n,Object.assign({resetStyle:!1,order:-998},r)),o=e=>{let{prefixCls:t,rootCls:n=t}=e;return i(t,n),null};return o.displayName=`SubStyle_${Array.isArray(e)?e.join("."):e}`,o},fP=(e,t,n,r)=>{const i=Array.isArray(e)?e[0]:e;function o(e){return`${i}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}const a=(null==r?void 0:r.unitless)||{},s=Object.assign(Object.assign({},jT),{[o("zIndexPopup")]:!0});Object.keys(a).forEach((e=>{s[o(e)]=a[e]}));const l=Object.assign(Object.assign({},r),{unitless:s,prefixToken:o}),u=cP(e,t,n,l),c=((e,t,n)=>{const{unitless:r,injectStyle:i=!0,prefixToken:o}=n,a=i=>{let{rootCls:a,cssVar:s}=i;const[,l]=DT();return gC({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:r,ignore:zT,token:l,scope:a},(()=>{const r=sP(e,l,t),i=lP(e,l,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((e=>{i[o(e)]=i[e],delete i[e]})),i})),null};return t=>{const[,,,,n]=DT();return[r=>i&&n?LT.default.createElement(LT.default.Fragment,null,LT.default.createElement(a,{rootCls:t,cssVar:n,component:e}),r):r,null==n?void 0:n.key]}})(i,n,l);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=u(e,t),[r,i]=c(t);return[r,n,i]}};function pP(e,t){return PT.reduce(((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))}),{})}var hP=ee(re()),mP=Object.assign({},hP),{useId:AP}=mP,gP=void 0===AP?()=>"":AP,vP=ee(re()),yP=ee(ie()),bP=ee(re()),xP=ee(re()),SP=ee(re()),_P=["children"],wP=SP.createContext({});function EP(e){var t=e.children,n=bv(e,_P);return SP.createElement(wP.Provider,{value:n},t)}var CP=function(e){V_(n,e);var t=Q_(n);function n(){return U_(this,n),t.apply(this,arguments)}return H_(n,[{key:"render",value:function(){return this.props.children}}]),n}(ee(re()).Component),TP=CP,PP=ee(re()),kP=ee(re()),RP=ee(re()),IP="none",OP="appear",MP="enter",jP="leave",zP="none",BP="prepare",FP="start",DP="active",LP="end",NP="prepared",UP=ee(re()),GP=ee(re());function HP(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var WP,VP=function(e,t){var n={animationend:HP("Animation","AnimationEnd"),transitionend:HP("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Cy(),"undefined"!=typeof window?window:{}),XP={};Cy()&&(WP=document.createElement("div"),XP=WP.style);var KP={};function qP(e){if(KP[e])return KP[e];var t=VP[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in XP)return KP[e]=t[o],KP[e]}return""}var QP=qP("animationend"),YP=qP("transitionend"),ZP=!(!QP||!YP),$P=QP||"animationend",JP=YP||"transitionend";function ek(e,t){return e?"object"===gv(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var tk=ee(re()),nk=Cy()?tk.useLayoutEffect:tk.useEffect,rk=ee(re()),ik=ee(re()),ok=[BP,FP,DP,LP],ak=[BP,NP],sk=!1;function lk(e){return e===DP||e===LP}var uk=function(e,t,n){var r=Av(HT(zP),2),i=r[0],o=r[1],a=function(){var e=ik.useRef(null);function t(){fw.cancel(e.current)}return ik.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var o=fw((function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)}));e.current=o},t]}(),s=Av(a,2),l=s[0],u=s[1],c=t?ak:ok;return nk((function(){if(i!==zP&&i!==LP){var e=c.indexOf(i),t=c[e+1],r=n(i);r===sk?o(t,!0):t&&l((function(e){function n(){e.isCanceled()||o(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),rk.useEffect((function(){return function(){u()}}),[]),[function(){o(BP,!0)},i]};function ck(e,t,n,r){var i,o,a,s=r.motionEnter,l=void 0===s||s,u=r.motionAppear,c=void 0===u||u,d=r.motionLeave,f=void 0===d||d,p=r.motionDeadline,h=r.motionLeaveImmediately,m=r.onAppearPrepare,A=r.onEnterPrepare,g=r.onLeavePrepare,v=r.onAppearStart,y=r.onEnterStart,b=r.onLeaveStart,x=r.onAppearActive,S=r.onEnterActive,_=r.onLeaveActive,w=r.onAppearEnd,E=r.onEnterEnd,C=r.onLeaveEnd,T=r.onVisibleChanged,P=Av(HT(),2),k=P[0],R=P[1],I=(i=IP,o=Av(PP.useReducer((function(e){return e+1}),0),2)[1],a=PP.useRef(i),[UT((function(){return a.current})),UT((function(e){a.current="function"==typeof e?e(a.current):e,o()}))]),O=Av(I,2),M=O[0],j=O[1],z=Av(HT(null),2),B=z[0],F=z[1],D=M(),L=(0,RP.useRef)(!1),N=(0,RP.useRef)(null);function U(){return n()}var G=(0,RP.useRef)(!1);function H(){j(IP),F(null,!0)}var W=UT((function(e){var t=M();if(t!==IP){var n=U();if(!e||e.deadline||e.target===n){var r,i=G.current;t===OP&&i?r=null==w?void 0:w(n,e):t===MP&&i?r=null==E?void 0:E(n,e):t===jP&&i&&(r=null==C?void 0:C(n,e)),i&&!1!==r&&H()}}})),V=function(e){var t=(0,GP.useRef)();function n(t){t&&(t.removeEventListener(JP,e),t.removeEventListener($P,e))}return UP.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(JP,e),r.addEventListener($P,e),t.current=r)},n]}(W),X=Av(V,1)[0],K=function(e){switch(e){case OP:return yv(yv(yv({},BP,m),FP,v),DP,x);case MP:return yv(yv(yv({},BP,A),FP,y),DP,S);case jP:return yv(yv(yv({},BP,g),FP,b),DP,_);default:return{}}},q=kP.useMemo((function(){return K(D)}),[D]),Q=Av(uk(D,!e,(function(e){if(e===BP){var t=q[BP];return t?t(U()):sk}var n;return Z in q&&F((null===(n=q[Z])||void 0===n?void 0:n.call(q,U(),null))||null),Z===DP&&D!==IP&&(X(U()),p>0&&(clearTimeout(N.current),N.current=setTimeout((function(){W({deadline:!0})}),p))),Z===NP&&H(),!0})),2),Y=Q[0],Z=Q[1],$=lk(Z);G.current=$,nk((function(){R(t);var n,r=L.current;L.current=!0,!r&&t&&c&&(n=OP),r&&t&&l&&(n=MP),(r&&!t&&f||!r&&h&&!t&&f)&&(n=jP);var i=K(n);n&&(e||i[BP])?(j(n),Y()):j(IP)}),[t]),(0,RP.useEffect)((function(){(D===OP&&!c||D===MP&&!l||D===jP&&!f)&&j(IP)}),[c,l,f]),(0,RP.useEffect)((function(){return function(){L.current=!1,clearTimeout(N.current)}}),[]);var J=kP.useRef(!1);(0,RP.useEffect)((function(){k&&(J.current=!0),void 0!==k&&D===IP&&((J.current||k)&&(null==T||T(k)),J.current=!0)}),[k,D]);var ee=B;return q[BP]&&Z===FP&&(ee=wy({transition:"none"},ee)),[D,Z,ee,null!=k?k:t]}var dk=function(e){var t=e;"object"===gv(e)&&(t=e.transitionSupport);var n=bP.forwardRef((function(e,n){var r=e.visible,i=void 0===r||r,o=e.removeOnLeave,a=void 0===o||o,s=e.forceRender,l=e.children,u=e.motionName,c=e.leavedClassName,d=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,bP.useContext(wP).motion),p=(0,xP.useRef)(),h=(0,xP.useRef)(),m=Av(ck(f,i,(function(){try{return p.current instanceof HTMLElement?p.current:p_(h.current)}catch(e){return null}}),e),4),A=m[0],g=m[1],v=m[2],y=m[3],b=bP.useRef(y);y&&(b.current=!0);var x,S=bP.useCallback((function(e){p.current=e,Kx(n,e)}),[n]),_=wy(wy({},d),{},{visible:i});if(l)if(A===IP)x=y?l(wy({},_),S):!a&&b.current&&c?l(wy(wy({},_),{},{className:c}),S):s||!a&&!c?l(wy(wy({},_),{},{style:{display:"none"}}),S):null;else{var w;g===BP?w="prepare":lk(g)?w="active":g===FP&&(w="start");var E=ek(u,"".concat(A,"-").concat(w));x=l(wy(wy({},_),{},{className:(0,yP.default)(ek(u,A),yv(yv({},E,E&&w),u,"string"==typeof u)),style:v}),S)}else x=null;return bP.isValidElement(x)&&Yx(x)&&(x.ref||(x=bP.cloneElement(x,{ref:S}))),bP.createElement(TP,{ref:h},x)}));return n.displayName="CSSMotion",n}(ZP),fk=ee(re()),pk="add",hk="keep",mk="remove",Ak="removed";function gk(e){var t;return wy(wy({},t=e&&"object"===gv(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function vk(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(gk)}var yk=["component","children","onVisibleChanged","onAllRemoved"],bk=["status"],xk=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],Sk=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dk,t=function(t){V_(r,t);var n=Q_(r);function r(){var e;U_(this,r);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return yv(q_(e=n.call.apply(n,[this].concat(i))),"state",{keyEntities:[]}),yv(q_(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:wy(wy({},e),{},{status:Ak})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Ak})).length})),e}return H_(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,i=r.component,o=r.children,a=r.onVisibleChanged,s=r.onAllRemoved,l=bv(r,yk),u=i||fk.Fragment,c={};return xk.forEach((function(e){c[e]=l[e],delete l[e]})),delete l.keys,fk.createElement(u,l,n.map((function(n,r){var i=n.status,l=bv(n,bk),u=i===pk||i===hk;return fk.createElement(e,dv({},c,{key:l.key,visible:u,eventProps:l,onVisibleChanged:function(e){null==a||a(e,{key:l.key}),e||0===t.removeKey(l.key)&&s&&s()}}),(function(e,t){return o(wy(wy({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=vk(n),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=vk(e),a=vk(t);o.forEach((function(e){for(var t=!1,o=r;o<i;o+=1){var s=a[o];if(s.key===e.key){r<o&&(n=n.concat(a.slice(r,o).map((function(e){return wy(wy({},e),{},{status:pk})}))),r=o),n.push(wy(wy({},s),{},{status:hk})),r+=1,t=!0;break}}t||n.push(wy(wy({},e),{},{status:mk}))})),r<i&&(n=n.concat(a.slice(r).map((function(e){return wy(wy({},e),{},{status:pk})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==mk}))).forEach((function(t){t.key===e&&(t.status=hk)}))})),n}(r,i);return{keyEntities:o.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Ak||e.status!==mk}))}}}]),r}(fk.Component);return yv(t,"defaultProps",{component:"div"}),t}(ZP),_k=dk;function wk(e){const{children:t}=e,[,n]=DT(),{motion:r}=n,i=vP.useRef(!1);return i.current=i.current||!1===r,i.current?vP.createElement(EP,{motion:r},t):t}var Ek=ee(re()).memo((e=>{let{dropdownMatchSelectWidth:t}=e;return OC("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));Ek.displayName="PropWarning";var Ck,Tk,Pk,kk,Rk=Ek,Ik=!1,Ok=e=>{MC(!Ik,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")},Mk=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];function jk(){return Ck||dT}function zk(){return Tk||fT}var Bk=()=>({getPrefixCls:(e,t)=>t||(e?`${jk()}-${e}`:jk()),getIconPrefixCls:zk,getRootPrefixCls:()=>Ck||jk(),getTheme:()=>Pk,holderRender:kk}),Fk=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:s,componentSize:l,direction:u,space:c,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:m,parentContext:A,iconPrefixCls:g,theme:v,componentDisabled:y,segmented:b,statistic:x,spin:S,calendar:_,carousel:w,cascader:E,collapse:C,typography:T,checkbox:P,descriptions:k,divider:R,drawer:I,skeleton:O,steps:M,image:j,layout:z,list:B,mentions:F,modal:D,progress:L,result:N,slider:U,breadcrumb:G,menu:H,pagination:W,input:V,textArea:X,empty:K,badge:q,radio:Q,rate:Y,switch:Z,transfer:$,avatar:J,message:ee,tag:te,table:ne,card:re,tabs:ie,timeline:oe,timePicker:ae,upload:se,notification:le,tree:ue,colorPicker:ce,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:me,warning:Ae,tour:ge,floatButtonGroup:ve,variant:ye,inputNumber:be,treeSelect:xe}=e,Se=pw.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const i=r||A.getPrefixCls("");return t?`${i}-${t}`:i}),[A.getPrefixCls,e.prefixCls]),_e=g||A.iconPrefixCls||fT,we=n||A.csp;aP(_e,we);const Ee=function(e,t,n){var r,i;const o=OC("ConfigProvider"),a=e||{},s=!1!==a.inherit&&t?t:Object.assign(Object.assign({},lT),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:lT.hashed,cssVar:null==t?void 0:t.cssVar}),l=gP();{const e=a.cssVar||s.cssVar,t=!!("object"==typeof a.cssVar&&(null===(i=a.cssVar)||void 0===i?void 0:i.key)||l);o(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Xx((()=>{var r,i;if(!e)return t;const o=Object.assign({},s.components);Object.keys(e.components||{}).forEach((t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])}));const u=`css-var-${l.replace(/:/g,"")}`,c=(null!==(r=a.cssVar)&&void 0!==r?r:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof s.cssVar?s.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(i=a.cssVar)||void 0===i?void 0:i.key)||u});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:o,cssVar:c})}),[a,s],((e,t)=>e.some(((e,n)=>{const r=t[n];return!Aw(e,r,!0)}))))}(v,A.theme,{prefixCls:Se("")});Ik=Ik||!!Ee;const Ce={csp:we,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||m,direction:u,space:c,virtual:d,popupMatchSelectWidth:null!=p?p:f,popupOverflow:h,getPrefixCls:Se,iconPrefixCls:_e,theme:Ee,segmented:b,statistic:x,spin:S,calendar:_,carousel:w,cascader:E,collapse:C,typography:T,checkbox:P,descriptions:k,divider:R,drawer:I,skeleton:O,steps:M,image:j,input:V,textArea:X,layout:z,list:B,mentions:F,modal:D,progress:L,result:N,slider:U,breadcrumb:G,menu:H,pagination:W,empty:K,badge:q,radio:Q,rate:Y,switch:Z,transfer:$,avatar:J,message:ee,tag:te,table:ne,card:re,tabs:ie,timeline:oe,timePicker:ae,upload:se,notification:le,tree:ue,colorPicker:ce,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:me,warning:Ae,tour:ge,floatButtonGroup:ve,variant:ye,inputNumber:be,treeSelect:xe};OC("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Te=Object.assign({},A);Object.keys(Ce).forEach((e=>{void 0!==Ce[e]&&(Te[e]=Ce[e])})),Mk.forEach((t=>{const n=e[t];n&&(Te[t]=n)})),void 0!==r&&(Te.button=Object.assign({autoInsertSpace:r},Te.button));const Pe=Xx((()=>Te),Te,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),ke=pw.useMemo((()=>({prefixCls:_e,csp:we})),[_e,we]);let Re=pw.createElement(pw.Fragment,null,pw.createElement(Rk,{dropdownMatchSelectWidth:f}),t);const Ie=pw.useMemo((()=>{var e,t,n,r;return CC((null===(e=UC.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Pe.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Pe.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[Pe,null==a?void 0:a.validateMessages]);Object.keys(Ie).length>0&&(Re=pw.createElement(jC.Provider,{value:Ie},Re)),s&&(Re=pw.createElement(QC,{locale:s,_ANT_MARK__:KC},Re)),(_e||we)&&(Re=pw.createElement(cv.Provider,{value:ke},Re)),l&&(Re=pw.createElement(ET,{size:l},Re)),Re=pw.createElement(wk,null,Re);const Oe=pw.useMemo((()=>{const e=Ee||{},{algorithm:t,token:n,components:r,cssVar:i}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?zw(t):sT,s={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=zw(r.algorithm)),delete r.algorithm),s[t]=r}));const l=Object.assign(Object.assign({},$C),n);return Object.assign(Object.assign({},o),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:i})}),[Ee]);return v&&(Re=pw.createElement(uT.Provider,{value:Oe},Re)),Pe.warning&&(Re=pw.createElement(IC.Provider,{value:Pe.warning},Re)),void 0!==y&&(Re=pw.createElement(bT,{disabled:y},Re)),pw.createElement(hT.Provider,{value:Pe},Re)},Dk=e=>{const t=pw.useContext(hT),n=pw.useContext(WC);return pw.createElement(Fk,Object.assign({parentContext:t,legacyLocale:n},e))};Dk.ConfigContext=hT,Dk.SizeContext=CT,Dk.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;void 0!==t&&(Ck=t),void 0!==n&&(Tk=n),"holderRender"in e&&(kk=i),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?(MC(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),gT(jk(),r)):Pk=r)},Dk.useConfig=TT,Object.defineProperty(Dk,"SizeContext",{get:()=>(MC(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),CT)}),Dk.displayName="ConfigProvider";var Lk=Dk,Nk="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Uk(e,t){return 0===e.indexOf(t)}function Gk(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:wy({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Uk(n,"aria-"))||t.data&&Uk(n,"data-")||t.attr&&Nk.includes(n))&&(r[n]=e[n])})),r}var Hk=ee(re());function Wk(e){return e&&Hk.default.isValidElement(e)&&e.type===Hk.default.Fragment}function Vk(e,t){return((e,t,n)=>Hk.default.isValidElement(e)?Hk.default.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}var Xk=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Kk=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,qk=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Kk(n.overflowY,t)||Kk(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Qk=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,Yk=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},Zk=(e,t)=>{var n,r,i,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d="function"==typeof u?u:e=>e!==u;if(!Xk(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;Xk(h)&&d(h);){if(h=Yk(h),h===f){p.push(h);break}null!=h&&h===document.body&&qk(h)&&!qk(document.documentElement)||null!=h&&qk(h,c)&&p.push(h)}const m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,A=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:g,scrollY:v}=window,{height:y,width:b,top:x,right:S,bottom:_,left:w}=e.getBoundingClientRect(),{top:E,right:C,bottom:T,left:P}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let k="start"===s||"nearest"===s?x-E:"end"===s?_+T:x+y/2-E+T,R="center"===l?w+b/2-P+C:"end"===l?S+C:w-P;const I=[];for(let O=0;O<p.length;O++){const e=p[O],{height:t,width:n,top:r,right:i,bottom:o,left:u}=e.getBoundingClientRect();if("if-needed"===a&&x>=0&&w>=0&&_<=A&&S<=m&&x>=r&&_<=o&&w>=u&&S<=i)return I;const c=getComputedStyle(e),d=parseInt(c.borderLeftWidth,10),h=parseInt(c.borderTopWidth,10),E=parseInt(c.borderRightWidth,10),C=parseInt(c.borderBottomWidth,10);let T=0,P=0;const M="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-E:0,j="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-C:0,z="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,B="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(f===e)T="start"===s?k:"end"===s?k-A:"nearest"===s?Qk(v,v+A,A,h,C,v+k,v+k+y,y):k-A/2,P="start"===l?R:"center"===l?R-m/2:"end"===l?R-m:Qk(g,g+m,m,d,E,g+R,g+R+b,b),T=Math.max(0,T+v),P=Math.max(0,P+g);else{T="start"===s?k-r-h:"end"===s?k-o+C+j:"nearest"===s?Qk(r,o,t,h,C+j,k,k+y,y):k-(r+t/2)+j/2,P="start"===l?R-u-d:"center"===l?R-(u+n/2)+M/2:"end"===l?R-i+E+M:Qk(u,i,n,d,E+M,R,R+b,b);const{scrollLeft:a,scrollTop:c}=e;T=0===B?0:Math.max(0,Math.min(c+T/B,e.scrollHeight-t/B+j)),P=0===z?0:Math.max(0,Math.min(a+P/z,e.scrollWidth-n/z+M)),k+=c-T,R+=a-P}I.push({el:e,top:T,left:P})}return I};function $k(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof(r=t)&&"function"==typeof r.behavior)return t.behavior(Zk(e,t));var r;const i="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:a,left:s}of Zk(e,(e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t})(t))){const e=a-n.top+n.bottom,t=s-n.left+n.right;o.scroll({top:e,left:t,behavior:i})}}var Jk=e=>{const[,,,,t]=DT();return t?`${e}-css-var`:""},eR=ee(re()),tR=ee(ie()),nR=ee(re()),rR=ee(re()),iR=ee(be()),oR=ee(re()),aR=ee(ie()),sR=ee(ie()),lR={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=lR.F1&&t<=lR.F12)return!1;switch(t){case lR.ALT:case lR.CAPS_LOCK:case lR.CONTEXT_MENU:case lR.CTRL:case lR.DOWN:case lR.END:case lR.ESC:case lR.HOME:case lR.INSERT:case lR.LEFT:case lR.MAC_FF_META:case lR.META:case lR.NUMLOCK:case lR.NUM_CENTER:case lR.PAGE_DOWN:case lR.PAGE_UP:case lR.PAUSE:case lR.PRINT_SCREEN:case lR.RIGHT:case lR.SHIFT:case lR.UP:case lR.WIN_KEY:case lR.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=lR.ZERO&&e<=lR.NINE)return!0;if(e>=lR.NUM_ZERO&&e<=lR.NUM_MULTIPLY)return!0;if(e>=lR.A&&e<=lR.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case lR.SPACE:case lR.QUESTION_MARK:case lR.NUM_PLUS:case lR.NUM_MINUS:case lR.NUM_PERIOD:case lR.NUM_DIVISION:case lR.SEMICOLON:case lR.DASH:case lR.EQUALS:case lR.COMMA:case lR.PERIOD:case lR.SLASH:case lR.APOSTROPHE:case lR.SINGLE_QUOTE:case lR.OPEN_SQUARE_BRACKET:case lR.BACKSLASH:case lR.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},uR=lR,cR=ee(re()),dR=cR.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,i=e.className,o=e.duration,a=void 0===o?4.5:o,s=e.showProgress,l=e.pauseOnHover,u=void 0===l||l,c=e.eventKey,d=e.content,f=e.closable,p=e.closeIcon,h=void 0===p?"x":p,m=e.props,A=e.onClick,g=e.onNoticeClose,v=e.times,y=e.hovering,b=Av(cR.useState(!1),2),x=b[0],S=b[1],_=Av(cR.useState(0),2),w=_[0],E=_[1],C=Av(cR.useState(0),2),T=C[0],P=C[1],k=y||x,R=a>0&&s,I=function(){g(c)};cR.useEffect((function(){if(!k&&a>0){var e=Date.now()-T,t=setTimeout((function(){I()}),1e3*a-T);return function(){u&&clearTimeout(t),P(Date.now()-e)}}}),[a,k,v]),cR.useEffect((function(){if(!k&&R&&(u||0===T)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var r=e+T-t,i=Math.min(r/(1e3*a),1);E(100*i),i<1&&n()}))}(),function(){u&&cancelAnimationFrame(e)}}}),[a,T,k,R,v]);var O=cR.useMemo((function(){return"object"===gv(f)&&null!==f?f:f?{closeIcon:h}:{}}),[f,h]),M=Gk(O,!0),j=100-(!w||w<0?0:w>100?100:w),z="".concat(n,"-notice");return cR.createElement("div",dv({},m,{ref:t,className:(0,sR.default)(z,i,yv({},"".concat(z,"-closable"),f)),style:r,onMouseEnter:function(e){var t;S(!0),null==m||null===(t=m.onMouseEnter)||void 0===t||t.call(m,e)},onMouseLeave:function(e){var t;S(!1),null==m||null===(t=m.onMouseLeave)||void 0===t||t.call(m,e)},onClick:A}),cR.createElement("div",{className:"".concat(z,"-content")},d),f&&cR.createElement("a",dv({tabIndex:0,className:"".concat(z,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==uR.ENTER||I()},"aria-label":"Close"},M,{onClick:function(e){e.preventDefault(),e.stopPropagation(),I()}}),O.closeIcon),R&&cR.createElement("progress",{className:"".concat(z,"-progress"),max:"100",value:j},j+"%"))})),fR=ee(re()),pR=fR.default.createContext({}),hR=function(e){var t=e.children,n=e.classNames;return fR.default.createElement(pR.Provider,{value:{classNames:n}},t)},mR=function(e){var t,n,r,i={offset:8,threshold:3,gap:16};return e&&"object"===gv(e)&&(i.offset=null!==(t=e.offset)&&void 0!==t?t:8,i.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,i.gap=null!==(r=e.gap)&&void 0!==r?r:16),[!!e,i]},AR=["className","style","classNames","styles"],gR=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,i=e.className,o=e.style,a=e.motion,s=e.onAllNoticeRemoved,l=e.onNoticeClose,u=e.stack,c=(0,oR.useContext)(pR).classNames,d=(0,oR.useRef)({}),f=Av((0,oR.useState)(null),2),p=f[0],h=f[1],m=Av((0,oR.useState)([]),2),A=m[0],g=m[1],v=t.map((function(e){return{config:e,key:String(e.key)}})),y=Av(mR(u),2),b=y[0],x=y[1],S=x.offset,_=x.threshold,w=x.gap,E=b&&(A.length>0||v.length<=_),C="function"==typeof a?a(n):a;return(0,oR.useEffect)((function(){b&&A.length>1&&g((function(e){return e.filter((function(e){return v.some((function(t){var n=t.key;return e===n}))}))}))}),[A,v,b]),(0,oR.useEffect)((function(){var e,t;b&&d.current[null===(e=v[v.length-1])||void 0===e?void 0:e.key]&&h(d.current[null===(t=v[v.length-1])||void 0===t?void 0:t.key])}),[v,b]),oR.default.createElement(Sk,dv({key:n,className:(0,aR.default)(r,"".concat(r,"-").concat(n),null==c?void 0:c.list,i,yv(yv({},"".concat(r,"-stack"),!!b),"".concat(r,"-stack-expanded"),E)),style:o,keys:v,motionAppear:!0},C,{onAllRemoved:function(){s(n)}}),(function(e,t){var i=e.config,o=e.className,a=e.style,s=e.index,u=i,f=u.key,h=u.times,m=String(f),y=i,x=y.className,_=y.style,C=y.classNames,T=y.styles,P=bv(y,AR),k=v.findIndex((function(e){return e.key===m})),R={};if(b){var I=v.length-1-(k>-1?k:s-1),O="top"===n||"bottom"===n?"-50%":"0";if(I>0){var M,j,z;R.height=E?null===(M=d.current[m])||void 0===M?void 0:M.offsetHeight:null==p?void 0:p.offsetHeight;for(var B=0,F=0;F<I;F++){var D;B+=(null===(D=d.current[v[v.length-1-F].key])||void 0===D?void 0:D.offsetHeight)+w}var L=(E?B:I*S)*(n.startsWith("top")?1:-1),N=!E&&null!=p&&p.offsetWidth&&null!==(j=d.current[m])&&void 0!==j&&j.offsetWidth?((null==p?void 0:p.offsetWidth)-2*S*(I<3?I:3))/(null===(z=d.current[m])||void 0===z?void 0:z.offsetWidth):1;R.transform="translate3d(".concat(O,", ").concat(L,"px, 0) scaleX(").concat(N,")")}else R.transform="translate3d(".concat(O,", 0, 0)")}return oR.default.createElement("div",{ref:t,className:(0,aR.default)("".concat(r,"-notice-wrapper"),o,null==C?void 0:C.wrapper),style:wy(wy(wy({},a),R),null==T?void 0:T.wrapper),onMouseEnter:function(){return g((function(e){return e.includes(m)?e:[].concat(ow(e),[m])}))},onMouseLeave:function(){return g((function(e){return e.filter((function(e){return e!==m}))}))}},oR.default.createElement(dR,dv({},P,{ref:function(e){k>-1?d.current[m]=e:delete d.current[m]},prefixCls:r,classNames:C,styles:T,className:(0,aR.default)(x,null==c?void 0:c.notice),style:_,times:h,key:f,eventKey:f,onNoticeClose:l,hovering:b&&A.length>0})))}))};gR.displayName="NoticeList";var vR=gR,yR=rR.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,i=e.container,o=e.motion,a=e.maxCount,s=e.className,l=e.style,u=e.onAllRemoved,c=e.stack,d=e.renderNotifications,f=Av(rR.useState([]),2),p=f[0],h=f[1],m=function(e){var t,n=p.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),h((function(t){return t.filter((function(t){return t.key!==e}))}))};rR.useImperativeHandle(t,(function(){return{open:function(e){h((function(t){var n,r=ow(t),i=r.findIndex((function(t){return t.key===e.key})),o=wy({},e);return i>=0?(o.times=((null===(n=t[i])||void 0===n?void 0:n.times)||0)+1,r[i]=o):(o.times=0,r.push(o)),a>0&&r.length>a&&(r=r.slice(-a)),r}))},close:function(e){m(e)},destroy:function(){h([])}}}));var A=Av(rR.useState({}),2),g=A[0],v=A[1];rR.useEffect((function(){var e={};p.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(g).forEach((function(t){e[t]=e[t]||[]})),v(e)}),[p]);var y=function(e){v((function(t){var n=wy({},t);return(n[e]||[]).length||delete n[e],n}))},b=rR.useRef(!1);if(rR.useEffect((function(){Object.keys(g).length>0?b.current=!0:b.current&&(null==u||u(),b.current=!1)}),[g]),!i)return null;var x=Object.keys(g);return(0,iR.createPortal)(rR.createElement(rR.Fragment,null,x.map((function(e){var t=g[e],n=rR.createElement(vR,{key:e,configList:t,placement:e,prefixCls:r,className:null==s?void 0:s(e),style:null==l?void 0:l(e),motion:o,onNoticeClose:m,onAllNoticeRemoved:y,stack:c});return d?d(n,{prefixCls:r,key:e}):n}))),i)}));yR.displayName="Notifications";var bR=yR,xR=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],SR=function(){return document.body},_R=0;function wR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?SR:t,r=e.motion,i=e.prefixCls,o=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,u=e.stack,c=e.renderNotifications,d=bv(e,xR),f=Av(nR.useState(),2),p=f[0],h=f[1],m=nR.useRef(),A=nR.createElement(bR,{container:p,ref:m,prefixCls:i,motion:r,maxCount:o,className:a,style:s,onAllRemoved:l,stack:u,renderNotifications:c}),g=Av(nR.useState([]),2),v=g[0],y=g[1],b=nR.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(d,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(_R),_R+=1),y((function(e){return[].concat(ow(e),[{type:"open",config:t}])}))},close:function(e){y((function(t){return[].concat(ow(t),[{type:"close",key:e}])}))},destroy:function(){y((function(e){return[].concat(ow(e),[{type:"destroy"}])}))}}}),[]);return nR.useEffect((function(){h(n())})),nR.useEffect((function(){m.current&&v.length&&(v.forEach((function(e){switch(e.type){case"open":m.current.open(e.config);break;case"close":m.current.close(e.key);break;case"destroy":m.current.destroy()}})),y((function(e){return e.filter((function(e){return!v.includes(e)}))})))}),[v]),[b,A]}var ER=ee(re()),CR=ee(ie()),TR=ee(re()),PR=ee(re()).default.createContext(void 0);PR.displayName="zIndexContext";var kR=PR,RR=100,IR={Modal:RR,Drawer:RR,Popover:RR,Popconfirm:RR,Tooltip:RR,Tour:RR},OR={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function MR(e,t){const[,n]=DT(),r=TR.default.useContext(kR),i=e in IR;let o;if(void 0!==t)o=[t,t];else{let a=null!=r?r:0;a+=i?(r?0:n.zIndexPopupBase)+IR[e]:OR[e],o=[void 0===r?t:a,a]}{const r=OC(e),i=n.zIndexPopupBase+1e3,a=o[0]||0;r(void 0!==t||a<=i,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o}var jR=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:o,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:m,contentPadding:A,contentBg:g}=e,v=`${t}-notice`,y=new yC("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),b=new yC("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:u},[`${v}-content`]:{display:"inline-block",padding:A,background:g,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},YT(e)),{color:i,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},zR=fP("Message",(e=>{const t=nP(e,{height:150});return[jR(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+1e3+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))),BR={info:ER.createElement(sx,null),success:ER.createElement(xb,null),error:ER.createElement(Bb,null),warning:ER.createElement(Xb,null),loading:ER.createElement(fx,null)},FR=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return ER.createElement("div",{className:(0,CR.default)(`${t}-custom-content`,`${t}-${n}`)},r||BR[n],ER.createElement("span",null,i))},DR=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=ER.useContext(hT),l=t||s("message"),u=Jk(l),[c,d,f]=zR(l,u);return c(ER.createElement(dR,Object.assign({},a,{prefixCls:l,className:(0,CR.default)(n,d,`${l}-notice-pure-panel`,f,u),eventKey:"pure",duration:null,content:ER.createElement(FR,{prefixCls:l,type:r,icon:i},o)})))};function LR(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var NR=3,UR=e=>{let{children:t,prefixCls:n}=e;const r=Jk(n),[i,o,a]=zR(n,r);return i(eR.createElement(hR,{classNames:{list:(0,tR.default)(o,a,r)}},t))},GR=(e,t)=>{let{prefixCls:n,key:r}=t;return eR.createElement(UR,{prefixCls:n,key:r},e)},HR=eR.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:a=NR,rtl:s,transitionName:l,onAllRemoved:u}=e,{getPrefixCls:c,getPopupContainer:d,message:f,direction:p}=eR.useContext(hT),h=r||c("message"),m=eR.createElement("span",{className:`${h}-close-x`},eR.createElement(Ub,{className:`${h}-close-icon`})),[A,g]=wR({prefixCls:h,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>(0,tR.default)({[`${h}-rtl`]:null!=s?s:"rtl"===p}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(h,l),closable:!1,closeIcon:m,duration:a,getContainer:()=>(null==i?void 0:i())||(null==d?void 0:d())||document.body,maxCount:o,onAllRemoved:u,renderNotifications:GR});return eR.useImperativeHandle(t,(()=>Object.assign(Object.assign({},A),{prefixCls:h,message:f}))),g})),WR=0;function VR(e){const t=eR.useRef(null),n=OC("Message");return[eR.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},r=r=>{if(!t.current){n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const e=()=>{};return e.then=()=>{},e}const{open:i,prefixCls:o,message:a}=t.current,s=`${o}-notice`,{content:l,icon:u,type:c,key:d,className:f,style:p,onClose:h}=r,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(r,["content","icon","type","key","className","style","onClose"]);let A=d;return null==A&&(A=`antd-message-${WR+=1}`),LR((t=>(i(Object.assign(Object.assign({},m),{key:A,content:eR.createElement(FR,{prefixCls:o,type:c,icon:u},l),placement:"top",className:(0,tR.default)(c&&`${s}-${c}`,f,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),p),onClose:()=>{null==h||h(),t()}})),()=>{e(A)})))},i={open:r,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{i[e]=(t,n,i)=>{let o,a,s;o=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?s=n:(a=n,s=i);const l=Object.assign(Object.assign({onClose:s,duration:a},o),{type:e});return r(l)}})),i}),[]),eR.createElement(HR,Object.assign({key:"message-holder"},e,{ref:t}))]}function XR(){XR=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(O){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new R(r||[]);return i(a,"_invoke",{value:C(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",A={};function g(){}function v(){}function y(){}var b={};u(b,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(I([])));S&&S!==n&&r.call(S,a)&&(b=S);var _=y.prototype=g.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==gv(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=T(s,r);if(l){if(l===A)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?m:p,u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,A;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(gv(t)+" is not iterable")}return v.prototype=y,i(_,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},w(E.prototype),u(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new E(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),u(_,l,"Generator"),u(_,a,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,A):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),A}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),A}},t}function KR(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function qR(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){KR(o,r,i,a,s,"next",e)}function s(e){KR(o,r,i,a,s,"throw",e)}a(void 0)}))}}var QR,YR=wy({},ee(be())),ZR=YR.version,$R=YR.render,JR=YR.unmountComponentAtNode;try{Number((ZR||"").split(".")[0])>=18&&(QR=YR.createRoot)}catch(sK){}function eI(e){var t=YR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===gv(t)&&(t.usingClientEntryPoint=e)}var tI="__rc_react_root__";function nI(e,t){QR?function(e,t){eI(!0);var n=t[tI]||QR(t);eI(!1),n.render(e),t[tI]=n}(e,t):function(e,t){$R(e,t)}(e,t)}function rI(e){return iI.apply(this,arguments)}function iI(){return(iI=qR(XR().mark((function e(t){return XR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[tI])||void 0===e||e.unmount(),delete t[tI]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oI(e){JR(e)}function aI(){return(aI=qR(XR().mark((function e(t){return XR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===QR){e.next=2;break}return e.abrupt("return",rI(t));case 2:oI(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var sI=()=>({height:0,opacity:0}),lI=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},uI=e=>({height:e?e.offsetHeight:0}),cI=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,dI=(e,t,n)=>void 0!==n?n:`${e}-${t}`,fI=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:sI,onEnterStart:sI,onAppearActive:lI,onEnterActive:lI,onLeaveStart:uI,onLeaveActive:sI,onAppearEnd:cI,onEnterEnd:cI,onLeaveEnd:cI,motionDeadline:500}},pI=ee(re()),hI=ee(ie()),mI=ee(re()),AI=ee(ie()),gI=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1},vI=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},yI=cP("Wave",(e=>[vI(e)])),bI=ee(re()),xI=`${dT}-wave-target`,SI=ee(re()),_I=ee(ie());function wI(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function EI(e){return Number.isNaN(e)?0:e}var CI=e=>{const{className:t,target:n,component:r}=e,i=SI.useRef(null),[o,a]=SI.useState(null),[s,l]=SI.useState([]),[u,c]=SI.useState(0),[d,f]=SI.useState(0),[p,h]=SI.useState(0),[m,A]=SI.useState(0),[g,v]=SI.useState(!1),y={left:u,top:d,width:p,height:m,borderRadius:s.map((e=>`${e}px`)).join(" ")};function b(){const e=getComputedStyle(n);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return wI(t)?t:wI(n)?n:wI(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:i}=e;c(t?n.offsetLeft:EI(-parseFloat(r))),f(t?n.offsetTop:EI(-parseFloat(i))),h(n.offsetWidth),A(n.offsetHeight);const{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:u,borderBottomRightRadius:d}=e;l([o,s,d,u].map((e=>EI(parseFloat(e)))))}if(o&&(y["--wave-color"]=o),SI.useEffect((()=>{if(n){const e=fw((()=>{b(),v(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(b),t.observe(n)),()=>{fw.cancel(e),null==t||t.disconnect()}}}),[]),!g)return null;const x=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(xI));return SI.createElement(_k,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(function(e){return aI.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:r}=e;return SI.createElement("div",{ref:qx(i,n),className:(0,_I.default)(t,r,{"wave-quick":x}),style:y})}))},TI=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),nI(SI.createElement(CI,Object.assign({},t,{target:e})),i)},PI=(e,t,n)=>{const{wave:r}=bI.useContext(hT),[,i,o]=DT(),a=UT((a=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${xI}`)||s,{showEffect:u}=r||{};(u||TI)(l,{className:t,token:i,component:n,event:a,hashId:o})})),s=bI.useRef();return e=>{fw.cancel(s.current),s.current=fw((()=>{a(e)}))}},kI=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=(0,mI.useContext)(hT),o=(0,mI.useRef)(null),a=i("wave"),[,s]=yI(a),l=PI(o,(0,AI.default)(a,s),r);return mI.default.useEffect((()=>{const e=o.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!gI(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||l(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),mI.default.isValidElement(t)?Vk(t,{ref:Yx(t)?qx(t.ref,o):o}):null!=t?t:null};kI.displayName="Wave";var RI=kI,II=ee(re()),OI=e=>{const t=II.default.useContext(CT);return II.default.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},MI=ee(re()),jI=ee(ie()),zI=MI.createContext(null),BI=(e,t)=>{const n=MI.useContext(zI),r=MI.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:i,isLastItem:o}=n,a="vertical"===r?"-vertical-":"-";return(0,jI.default)(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:i,[`${e}-compact${a}last-item`]:o,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},FI=e=>{let{children:t}=e;return MI.createElement(zI.Provider,{value:null},t)},DI=ee(re()),LI=ee(ie()),NI=DI.createContext(void 0),UI=e=>{const{getPrefixCls:t,direction:n}=DI.useContext(hT),{prefixCls:r,size:i,className:o}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=DT();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}OC("Button.Group")(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.");const c=(0,LI.default)(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:"rtl"===n},o,l);return DI.createElement(NI.Provider,{value:i},DI.createElement("div",Object.assign({},a,{className:c})))},GI=ee(re()),HI=/^[\u4e00-\u9fa5]{2}$/,WI=HI.test.bind(HI);function VI(e){return"string"==typeof e}function XI(e){return"text"===e||"link"===e}function KI(e,t){let n=!1;const r=[];return GI.default.Children.forEach(e,(e=>{const t=typeof e,i="string"===t||"number"===t;if(n&&i){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=i})),GI.default.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&VI(e.type)&&WI(e.props.children)?Vk(e,{children:e.props.children.split("").join(n)}):VI(e)?WI(e)?GI.default.createElement("span",null,e.split("").join(n)):GI.default.createElement("span",null,e):Wk(e)?GI.default.createElement("span",null,e):e}(e,t)))}var qI=ee(re()),QI=ee(ie()),YI=(0,qI.forwardRef)(((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=(0,QI.default)(`${o}-icon`,n);return qI.default.createElement("span",{ref:t,className:a,style:r},i)})),ZI=ee(re()),$I=ee(ie()),JI=(0,ZI.forwardRef)(((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=(0,$I.default)(`${n}-loading-icon`,r);return ZI.default.createElement(YI,{prefixCls:n,className:a,style:i,ref:t},ZI.default.createElement(fx,{className:o}))})),eO=()=>({width:0,opacity:0,transform:"scale(0)"}),tO=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),nO=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o}=e,a=!!n;return r?ZI.default.createElement(JI,{prefixCls:t,className:i,style:o}):ZI.default.createElement(_k,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:eO,onAppearActive:tO,onEnterStart:eO,onEnterActive:tO,onLeaveStart:tO,onLeaveActive:eO},((e,n)=>{let{className:r,style:a}=e;return ZI.default.createElement(JI,{prefixCls:t,className:i,style:Object.assign(Object.assign({},o),a),ref:n,iconClassName:r})}))},rO=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),iO=e=>{const{componentCls:t,fontSize:n,lineWidth:r,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(r).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:n}},rO(`${t}-primary`,i),rO(`${t}-danger`,o)]}},oO=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return nP(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},aO=e=>{var t,n,r,i,o,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,u=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,c=null!==(i=e.contentLineHeight)&&void 0!==i?i:tT(s),d=null!==(o=e.contentLineHeightSM)&&void 0!==o?o:tT(l),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:tT(u);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",textHoverBg:e.colorBgTextHover,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,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:u,contentLineHeight:c,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*c)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*f)/2-e.lineWidth,0)}},sO=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Gw(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-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},eP(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},lO=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),uO=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),cO=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),dO=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),fO=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},lO(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),pO=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},dO(e))}),hO=e=>Object.assign({},pO(e)),mO=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),AO=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hO(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),lO(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),fO(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},lO(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),fO(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),pO(e))}),gO=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hO(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),lO(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),fO(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},lO(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),fO(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),pO(e))}),vO=e=>Object.assign(Object.assign({},AO(e)),{borderStyle:"dashed"}),yO=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},lO(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),mO(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},lO(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),mO(e))}),bO=e=>Object.assign(Object.assign(Object.assign({},lO(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),mO(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},mO(e)),lO(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),xO=e=>{const{componentCls:t}=e;return{[`${t}-default`]:AO(e),[`${t}-primary`]:gO(e),[`${t}-dashed`]:vO(e),[`${t}-link`]:yO(e),[`${t}-text`]:bO(e),[`${t}-ghost`]:fO(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},SO=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:o,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:u}=e,c=`${n}-icon-only`;return[{[`${t}`]:{fontSize:i,lineHeight:o,height:r,padding:`${Gw(u)} ${Gw(s)}`,borderRadius:a,[`&${c}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:uO(e)},{[`${n}${n}-round${t}`]:cO(e)}]},_O=e=>{const t=nP(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return SO(t,e.componentCls)},wO=e=>{const t=nP(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});return SO(t,`${e.componentCls}-sm`)},EO=e=>{const t=nP(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return SO(t,`${e.componentCls}-lg`)},CO=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},TO=fP("Button",(e=>{const t=oO(e);return[sO(t),_O(t),wO(t),EO(t),CO(t),xO(t),iO(t)]}),aO,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function PO(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function kO(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function RO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},PO(e,r,t)),kO(n,r,t))}}function IO(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 OO(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},IO(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}var MO=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Gw(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:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Gw(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},jO=dP(["Button","compact"],(e=>{const t=oO(e);return[RO(t),OO(t),MO(t)]}),aO),zO=pI.default.forwardRef(((e,t)=>{var n,r,i;const{loading:o=!1,prefixCls:a,type:s,danger:l=!1,shape:u="default",size:c,styles:d,disabled:f,className:p,rootClassName:h,children:m,icon:A,iconPosition:g="start",ghost:v=!1,block:y=!1,htmlType:b="button",classNames:x,style:S={},autoInsertSpace:_}=e,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),E=s||"default",{getPrefixCls:C,direction:T,button:P}=(0,pI.useContext)(hT),k=null===(n=null!=_?_:null==P?void 0:P.autoInsertSpace)||void 0===n||n,R=C("btn",a),[I,O,M]=TO(R),j=(0,pI.useContext)(xT),z=null!=f?f:j,B=(0,pI.useContext)(NI),F=(0,pI.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(o)),[o]),[D,L]=(0,pI.useState)(F.loading),[N,U]=(0,pI.useState)(!1),G=qx(t,(0,pI.createRef)()),H=1===pI.Children.count(m)&&!A&&!XI(E);(0,pI.useEffect)((()=>{let e=null;return F.delay>0?e=setTimeout((()=>{e=null,L(!0)}),F.delay):L(F.loading),function(){e&&(clearTimeout(e),e=null)}}),[F]),(0,pI.useEffect)((()=>{if(!G||!G.current||!k)return;const e=G.current.textContent;H&&WI(e)?N||U(!0):N&&U(!1)}),[G]);const W=t=>{const{onClick:n}=e;D||z?t.preventDefault():null==n||n(t)};{const e=OC("Button");e(!("string"==typeof A&&A.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${A}\` at https://ant.design/components/icon`),e(!(v&&XI(E)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:V,compactItemClassnames:X}=BI(R,T),K=OI((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:V)&&void 0!==t?t:B)&&void 0!==n?n:e})),q=K&&{large:"lg",small:"sm",middle:void 0}[K]||"",Q=D?"loading":A,Y=rw(w,["navigate"]),Z=(0,hI.default)(R,O,M,{[`${R}-${u}`]:"default"!==u&&u,[`${R}-${E}`]:E,[`${R}-${q}`]:q,[`${R}-icon-only`]:!m&&0!==m&&!!Q,[`${R}-background-ghost`]:v&&!XI(E),[`${R}-loading`]:D,[`${R}-two-chinese-chars`]:N&&k&&!D,[`${R}-block`]:y,[`${R}-dangerous`]:l,[`${R}-rtl`]:"rtl"===T,[`${R}-icon-end`]:"end"===g},X,p,h,null==P?void 0:P.className),$=Object.assign(Object.assign({},null==P?void 0:P.style),S),J=(0,hI.default)(null==x?void 0:x.icon,null===(r=null==P?void 0:P.classNames)||void 0===r?void 0:r.icon),ee=Object.assign(Object.assign({},(null==d?void 0:d.icon)||{}),(null===(i=null==P?void 0:P.styles)||void 0===i?void 0:i.icon)||{}),te=A&&!D?pI.default.createElement(YI,{prefixCls:R,className:J,style:ee},A):pI.default.createElement(nO,{existIcon:!!A,prefixCls:R,loading:D}),ne=m||0===m?KI(m,H&&k):null;if(void 0!==Y.href)return I(pI.default.createElement("a",Object.assign({},Y,{className:(0,hI.default)(Z,{[`${R}-disabled`]:z}),href:z?void 0:Y.href,style:$,onClick:W,ref:G,tabIndex:z?-1:0}),te,ne));let re=pI.default.createElement("button",Object.assign({},w,{type:b,className:Z,style:$,onClick:W,disabled:z,ref:G}),te,ne,!!X&&pI.default.createElement(jO,{key:"compact",prefixCls:R}));return XI(E)||(re=pI.default.createElement(RI,{component:"Button",disabled:D},re)),I(re)}));zO.Group=UI,zO.__ANT_BUTTON=!0,zO.displayName="Button";var BO=zO,FO=ee(re()),DO=ee(be()),LO=ee(re()).createContext(null),NO=ee(re()),UO=[],GO=ee(re());function HO(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,i,o=n.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,";"):"",d=u?"height: ".concat(s.height,";"):"";By("\n#".concat(t,"::-webkit-scrollbar {\n").concat(c,"\n").concat(d,"\n}"),t)}catch(sK){console.error(sK),r=l,i=u}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),zy(t),{width:f,height:p}}(e):{width:0,height:0}}var WO="rc-util-locker-".concat(Date.now()),VO=0;function XO(e){var t=!!e,n=Av(GO.useState((function(){return VO+=1,"".concat(WO,"_").concat(VO)})),1)[0];eE((function(){if(t){var e=HO(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;By("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else zy(n);return function(){zy(n)}}),[t,n])}var KO=!1,qO=function(e){return!1!==e&&(Cy()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},QO=FO.forwardRef((function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,o=e.debug,a=e.autoDestroy,s=void 0===a||a,l=e.children,u=Av(FO.useState(n),2),c=u[0],d=u[1],f=c||n;Xy(Cy()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),FO.useEffect((function(){(s||n)&&d(n)}),[n,s]);var p=Av(FO.useState((function(){return qO(i)})),2),h=p[0],m=p[1];FO.useEffect((function(){var e=qO(i);m(null!=e?e:null)}));var A=function(e,t){var n=Av(NO.useState((function(){if(!Cy())return null;var e=document.createElement("div");return t&&e.setAttribute("data-debug",t),e})),1)[0],r=NO.useRef(!1),i=NO.useContext(LO),o=Av(NO.useState(UO),2),a=o[0],s=o[1],l=i||(r.current?void 0:function(e){s((function(t){return[e].concat(ow(t))}))});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function c(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return eE((function(){return e?i?i(u):u():c(),c}),[e]),eE((function(){a.length&&(a.forEach((function(e){return e()})),s(UO))}),[a]),[n,l]}(f&&!h,o),g=Av(A,2),v=g[0],y=g[1],b=null!=h?h:v;XO(r&&n&&Cy()&&(b===v||b===document.body));var x=null;l&&Yx(l)&&t&&(x=l.ref);var S=Qx(x,t);if(!f||!Cy()||void 0===h)return null;var _,w=!1===b||("boolean"==typeof _&&(KO=_),KO),E=l;return t&&(E=FO.cloneElement(l,{ref:S})),FO.createElement(LO.Provider,{value:y},w?E:(0,DO.createPortal)(E,b))}));QO.displayName="Portal";var YO=QO,ZO=ee(re()),$O=0,JO=wy({},ZO).useId,eM=JO?function(e){var t=JO();return e||t}:function(e){var t=Av(ZO.useState("ssr-id"),2),n=t[0],r=t[1];return ZO.useEffect((function(){var e=$O;$O+=1,r("rc_unique_".concat(e))}),[]),e||n},tM=ee(re()),nM=ee(re()),rM=ee(re()),iM=ee(re()),oM=ee(re()),aM=ee(re()),sM="RC_FORM_INTERNAL_HOOKS",lM=function(){Xy(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},uM=aM.createContext({getFieldValue:lM,getFieldsValue:lM,getFieldError:lM,getFieldWarning:lM,getFieldsError:lM,isFieldsTouched:lM,isFieldTouched:lM,isFieldValidating:lM,isFieldsValidating:lM,resetFields:lM,setFields:lM,setFieldValue:lM,setFieldsValue:lM,validateFields:lM,submit:lM,getInternalHooks:function(){return lM(),{dispatch:lM,initEntityValue:lM,registerField:lM,useSubscribe:lM,setInitialValues:lM,destroyForm:lM,setCallbacks:lM,registerWatch:lM,getFields:lM,setValidateMessages:lM,setPreserve:lM,getInitialValue:lM}}}),cM=ee(re()).createContext(null);function dM(e){return null==e?[]:Array.isArray(e)?e:[e]}function fM(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var pM=fM();function hM(e){var t="function"==typeof Map?new Map:void 0;return hM=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(K_())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&W_(i,n.prototype),i}(e,arguments,X_(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),W_(n,e)},hM(e)}var mM=/%[sdj%]/g,AM=function(){};function gM(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function vM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(mM,(function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(t){return"[Circular]"}break;default:return e}})):e}function yM(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function bM(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?t(e[s],o):n([])}}([])}"undefined"!=typeof process&&process.env&&"undefined"!=typeof window&&"undefined"!=typeof document&&(AM=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every((function(e){return"string"==typeof e}))&&console.warn(e,t)});var xM=function(e){V_(n,e);var t=Q_(n);function n(e,r){var i;return U_(this,n),yv(q_(i=t.call(this,"Async Validation Error")),"errors",void 0),yv(q_(i),"fields",void 0),i.errors=e,i.fields=r,i}return H_(n)}(hM(Error));function SM(e,t,n,r,i){if(t.first){var o=new Promise((function(t,o){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,ow(e[n]||[]))})),t}(e);bM(a,n,(function(e){return r(e),e.length?o(new xM(e,gM(e))):t(i)}))}));return o.catch((function(e){return e})),o}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],d=new Promise((function(t,o){var d=function(e){if(c.push.apply(c,e),++u===l)return r(c),c.length?o(new xM(c,gM(c))):t(i)};s.length||(r(c),t(i)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?bM(r,n,d):function(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,ow(e||[])),++i===o&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function _M(e,t){return function(n){var r,i;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(i=n)&&void 0!==i.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function wM(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===gv(r)&&"object"===gv(e[n])?e[n]=wy(wy({},e[n]),r):e[n]=r}return e}var EM,CM="enum",TM=function(e,t,n,r,i){e[CM]=Array.isArray(e[CM])?e[CM]:[],-1===e[CM].indexOf(t)&&r.push(vM(i.messages[CM],e.fullField,e[CM].join(", ")))},PM=function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(vM(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(vM(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},kM=function(e,t,n,r,i){var o="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,u=null,c="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(c?u="number":d?u="string":f&&(u="array"),!u)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==e.len&&r.push(vM(i.messages[u].len,e.fullField,e.len)):a&&!s&&l<e.min?r.push(vM(i.messages[u].min,e.fullField,e.min)):s&&!a&&l>e.max?r.push(vM(i.messages[u].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&r.push(vM(i.messages[u].range,e.fullField,e.min,e.max))},RM=function(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!yM(t,o||e.type)||r.push(vM(i.messages.required,e.fullField))},IM=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,OM=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,MM={integer:function(e){return MM.number(e)&&parseInt(e,10)===e},float:function(e){return MM.number(e)&&!MM.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(sK){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===gv(e)&&!MM.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(IM)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(EM)return EM;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:".concat(i.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),s=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(o,"$")),u=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(o).concat(t(e),")"),"g")};u.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},u.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(o).concat(t(e)),"g")};var c=u.v4().source,d=u.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(c,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return EM=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(OM)}},jM=function(e,t,n,r,i){if(e.required&&void 0===t)RM(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?MM[o](t)||r.push(vM(i.messages.types[o],e.fullField,e.type)):o&&gv(t)!==e.type&&r.push(vM(i.messages.types[o],e.fullField,e.type))}},zM=function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(vM(i.messages.whitespace,e.fullField))},BM={required:RM,whitespace:zM,type:jM,range:kM,enum:TM,pattern:PM},FM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yM(t)&&!e.required)return n();BM.required(e,t,r,o,i)}n(o)},DM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();BM.required(e,t,r,o,i,"array"),null!=t&&(BM.type(e,t,r,o,i),BM.range(e,t,r,o,i))}n(o)},LM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yM(t)&&!e.required)return n();BM.required(e,t,r,o,i),void 0!==t&&BM.type(e,t,r,o,i)}n(o)},NM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yM(t,"date")&&!e.required)return n();var a;BM.required(e,t,r,o,i),yM(t,"date")||(a=t instanceof Date?t:new Date(t),BM.type(e,a,r,o,i),a&&BM.range(e,a.getTime(),r,o,i))}n(o)},UM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yM(t)&&!e.required)return n();BM.required(e,t,r,o,i),void 0!==t&&BM.enum(e,t,r,o,i)}n(o)},GM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yM(t)&&!e.required)return n();BM.required(e,t,r,o,i),void 0!==t&&(BM.type(e,t,r,o,i),BM.range(e,t,r,o,i))}n(o)},HM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yM(t)&&!e.required)return n();BM.required(e,t,r,o,i),void 0!==t&&(BM.type(e,t,r,o,i),BM.range(e,t,r,o,i))}n(o)},WM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yM(t)&&!e.required)return n();BM.required(e,t,r,o,i),void 0!==t&&BM.type(e,t,r,o,i)}n(o)},VM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),yM(t)&&!e.required)return n();BM.required(e,t,r,o,i),void 0!==t&&(BM.type(e,t,r,o,i),BM.range(e,t,r,o,i))}n(o)},XM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yM(t)&&!e.required)return n();BM.required(e,t,r,o,i),void 0!==t&&BM.type(e,t,r,o,i)}n(o)},KM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yM(t,"string")&&!e.required)return n();BM.required(e,t,r,o,i),yM(t,"string")||BM.pattern(e,t,r,o,i)}n(o)},qM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yM(t)&&!e.required)return n();BM.required(e,t,r,o,i),yM(t)||BM.type(e,t,r,o,i)}n(o)},QM=function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":gv(t);BM.required(e,t,r,o,i,a),n(o)},YM=function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yM(t,"string")&&!e.required)return n();BM.required(e,t,r,o,i,"string"),yM(t,"string")||(BM.type(e,t,r,o,i),BM.range(e,t,r,o,i),BM.pattern(e,t,r,o,i),!0===e.whitespace&&BM.whitespace(e,t,r,o,i))}n(o)},ZM=function(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(yM(t,o)&&!e.required)return n();BM.required(e,t,r,a,i,o),yM(t,o)||BM.type(e,t,r,a,i)}n(a)},$M={string:YM,method:WM,number:VM,boolean:LM,regexp:qM,integer:HM,float:GM,array:DM,object:XM,enum:UM,pattern:KM,date:NM,url:ZM,hex:ZM,email:ZM,required:QM,any:FM},JM=function(){function e(t){U_(this,e),yv(this,"rules",null),yv(this,"_messages",pM),this.define(t)}return H_(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==gv(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=wM(fM(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof i&&(o=i,i={}),!this.rules||0===Object.keys(this.rules).length)return o&&o(null,r),Promise.resolve(r);if(i.messages){var a=this.messages();a===pM&&(a=fM()),wM(a,i.messages),i.messages=a}else i.messages=this.messages();var s={};(i.keys||Object.keys(this.rules)).forEach((function(e){var i=n.rules[e],o=r[e];i.forEach((function(i){var a=i;"function"==typeof a.transform&&(r===t&&(r=wy({},r)),null!=(o=r[e]=a.transform(o))&&(a.type=a.type||(Array.isArray(o)?"array":gv(o)))),(a="function"==typeof a?{validator:a}:wy({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:o,source:r,field:e}))}))}));var l={};return SM(s,i,(function(t,n){var o,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==gv(a.fields)&&"object"!==gv(a.defaultField));function u(e,t){return wy(wy({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(ow(a.fullFields),[e]):[e]})}function c(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=Array.isArray(o)?o:[o];!i.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==a.message&&(c=[].concat(a.message));var d=c.map(_M(a,r));if(i.first&&d.length)return l[a.field]=1,n(d);if(s){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(_M(a,r)):i.error&&(d=[i.error(a,vM(i.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=wy(wy({},f),t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(u.bind(null,e))}));var h=new e(p);h.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),h.validate(t.value,t.rule.options||i,(function(e){var t=[];d&&d.length&&t.push.apply(t,ow(d)),e&&e.length&&t.push.apply(t,ow(e)),n(t.length?t:null)}))}else n(d)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)o=a.asyncValidator(a,t.value,c,t.source,i);else if(a.validator){try{o=a.validator(a,t.value,c,t.source,i)}catch(p){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,p),i.suppressValidatorError||setTimeout((function(){throw p}),0),c(p.message)}!0===o?c():!1===o?c("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):o instanceof Array?c(o):o instanceof Error&&c(o.message)}o&&o.then&&o.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){for(var t,n,i=[],a={},s=0;s<e.length;s++)t=e[s],n=void 0,Array.isArray(t)?i=(n=i).concat.apply(n,ow(t)):i.push(t);i.length?(a=gM(i),o(i,a)):o(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!$M.hasOwnProperty(e.type))throw new Error(vM("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?$M.required:$M[this.getType(e)]||void 0}}]),e}();yv(JM,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");$M[e]=t})),yv(JM,"warning",AM),yv(JM,"messages",pM),yv(JM,"validators",$M);var ej=JM,tj=ee(re()),nj="'${name}' is not a valid ${type}",rj={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:nj,method:nj,array:nj,object:nj,number:nj,date:nj,boolean:nj,integer:nj,float:nj,regexp:nj,email:nj,url:nj,hex:nj},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},ij=ej;function oj(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var aj="CODE_LOGIC_ERROR";function sj(e,t,n,r,i){return lj.apply(this,arguments)}function lj(){return lj=qR(XR().mark((function e(t,n,r,i,o){var a,s,l,u,c,d,f,p,h;return XR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=wy({},r)).ruleIndex,ij.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(aj)}}),l=null,a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField),u=new ij(yv({},t,[a])),c=CC(rj,i.validateMessages),u.messages(c),d=[],e.prev=10,e.next=13,Promise.resolve(u.validate(yv({},t,n),wy({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map((function(e,t){var n=e.message,r=n===aj?c.default:n;return tj.isValidElement(r)?tj.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(d.length||!l){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return sj("".concat(t,".").concat(n),e,l,i,o)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(ow(e),ow(t))}),[]));case 23:return p=wy(wy({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),h=d.map((function(e){return"string"==typeof e?oj(e,p):e})),e.abrupt("return",h);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),lj.apply(this,arguments)}function uj(e,t,n,r,i,o){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,r=wy(wy({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var i=!1,o=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){Xy(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r.apply(void 0,t)}))}));i=o&&"function"==typeof o.then&&"function"==typeof o.catch,Xy(i,"`callback` is deprecated. Please return a promise instead."),i&&o.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,i=t.warningOnly,o=t.ruleIndex;return!!n==!!i?r-o:n?1:-1}));if(!0===i)a=new Promise(function(){var e=qR(XR().mark((function e(n,i){var a,u,c;return XR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return u=l[a],e.next=5,sj(s,t,u,r,o);case 5:if(!(c=e.sent).length){e.next=9;break}return i([{errors:c,rule:u}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var u=l.map((function(e){return sj(s,t,e,r,o).then((function(t){return{errors:t,rule:e}}))}));a=(i?function(e){return dj.apply(this,arguments)}(u):function(e){return cj.apply(this,arguments)}(u)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function cj(){return(cj=qR(XR().mark((function e(t){return XR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,ow(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dj(){return(dj=qR(XR().mark((function e(t){var n;return XR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fj(e){return dM(e)}function pj(e,t){var n={};return t.forEach((function(t){var r=xC(e,t);n=_C(n,t,r)})),n}function hj(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return mj(t,e,n)}))}function mj(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function Aj(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===gv(t.target)&&e in t.target?t.target[e]:t}function gj(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(ow(e.slice(0,n)),[i],ow(e.slice(n,t)),ow(e.slice(t+1,r))):o<0?[].concat(ow(e.slice(0,t)),ow(e.slice(t+1,n+1)),[i],ow(e.slice(n+1,r))):e}var vj=["name"],yj=[];function bj(e,t,n,r,i,o){return"function"==typeof e?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var xj=function(e){V_(n,e);var t=Q_(n);function n(e){var r;return U_(this,n),yv(q_(r=t.call(this,e)),"state",{resetCount:0}),yv(q_(r),"cancelRegisterFunc",null),yv(q_(r),"mounted",!1),yv(q_(r),"touched",!1),yv(q_(r),"dirty",!1),yv(q_(r),"validatePromise",void 0),yv(q_(r),"prevValidating",void 0),yv(q_(r),"errors",yj),yv(q_(r),"warnings",yj),yv(q_(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,i=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,fj(i)),r.cancelRegisterFunc=null})),yv(q_(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(ow(void 0===n?[]:n),ow(t)):[]})),yv(q_(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,i=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(i):e}))})),yv(q_(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),yv(q_(r),"metaCache",null),yv(q_(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=wy(wy({},r.getMeta()),{},{destroy:e});Aw(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),yv(q_(r),"onStoreChange",(function(e,t,n){var i=r.props,o=i.shouldUpdate,a=i.dependencies,s=void 0===a?[]:a,l=i.onReset,u=n.store,c=r.getNamePath(),d=r.getValue(e),f=r.getValue(u),p=t&&hj(t,c);switch("valueUpdate"!==n.type||"external"!==n.source||Aw(d,f)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=yj,r.warnings=yj,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=yj,r.warnings=yj,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(o)return void r.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||yj),"warnings"in h&&(r.warnings=h.warnings||yj),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&hj(t,c,!0))return void r.reRender();if(o&&!c.length&&bj(o,e,u,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(fj).some((function(e){return hj(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!s.length||c.length||o)&&bj(o,e,u,d,f,n))return void r.reRender()}!0===o&&r.reRender()})),yv(q_(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),i=e||{},o=i.triggerName,a=i.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(qR(XR().mark((function i(){var a,s,u,c,d,f,p;return XR().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r.mounted){i.next=2;break}return i.abrupt("return",[]);case 2:if(a=r.props,s=a.validateFirst,u=void 0!==s&&s,c=a.messageVariables,d=a.validateDebounce,f=r.getRules(),o&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||dM(t).includes(o)}))),!d||!o){i.next=10;break}return i.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===l){i.next=10;break}return i.abrupt("return",[]);case 10:return(p=uj(t,n,f,e,u,c)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yj;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],i=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,o=void 0===r?yj:r;t?i.push.apply(i,ow(o)):n.push.apply(n,ow(o))})),r.errors=n,r.warnings=i,r.triggerMetaEvent(),r.reRender()}})),i.abrupt("return",p);case 13:case"end":return i.stop()}}),i)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=yj,r.warnings=yj,r.triggerMetaEvent(),r.reRender()),l})),yv(q_(r),"isFieldValidating",(function(){return!!r.validatePromise})),yv(q_(r),"isFieldTouched",(function(){return r.touched})),yv(q_(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(sM).getInitialValue)(r.getNamePath())})),yv(q_(r),"getErrors",(function(){return r.errors})),yv(q_(r),"getWarnings",(function(){return r.warnings})),yv(q_(r),"isListField",(function(){return r.props.isListField})),yv(q_(r),"isList",(function(){return r.props.isList})),yv(q_(r),"isPreserve",(function(){return r.props.preserve})),yv(q_(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),yv(q_(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return wy(wy({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=l_(e);return 1===n.length&&oM.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),yv(q_(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return xC(e||t(!0),n)})),yv(q_(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,i=t.trigger,o=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,u=t.getValueProps,c=t.fieldContext,d=void 0!==o?o:c.validateTrigger,f=r.getNamePath(),p=c.getInternalHooks,h=c.getFieldsValue,m=p(sM).dispatch,A=r.getValue(),g=u||function(e){return yv({},l,e)},v=e[i],y=void 0!==n?g(A):{};y&&Object.keys(y).forEach((function(e){Xy("function"!=typeof y[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var b=wy(wy({},e),y);return b[i]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];e=a?a.apply(void 0,n):Aj.apply(void 0,[l].concat(n)),s&&(e=s(e,A,h(!0))),m({type:"updateValue",namePath:f,value:e}),v&&v.apply(void 0,n)},dM(d||[]).forEach((function(e){var t=b[e];b[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&m({type:"validateField",namePath:f,triggerName:e})}})),b})),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(sM).initEntityValue)(q_(r)),r}return H_(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(sM).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),i=r.child;return r.isFunction?e=i:oM.isValidElement(i)?e=oM.cloneElement(i,this.getControlled(i.props)):(Xy(!i,"`children` of Field is not validate ReactElement."),e=i),oM.createElement(oM.Fragment,{key:t},e)}}]),n}(oM.Component);yv(xj,"contextType",uM),yv(xj,"defaultProps",{trigger:"onChange",valuePropName:"value"});var Sj=function(e){var t=e.name,n=bv(e,vj),r=oM.useContext(uM),i=oM.useContext(cM),o=void 0!==t?fj(t):void 0,a="keep";return n.isListField||(a="_".concat((o||[]).join("_"))),!1===n.preserve&&n.isListField&&o.length<=1&&Xy(!1,"`preserve` should not apply on Form.List fields."),oM.createElement(xj,dv({key:a,name:o,isListField:!!i},n,{fieldContext:r}))},_j=ee(re()),wj=function(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,o=e.validateTrigger,a=e.isListField,s=_j.useContext(uM),l=_j.useContext(cM),u=_j.useRef({keys:[],id:0}).current,c=_j.useMemo((function(){var e=fj(s.prefixName)||[];return[].concat(ow(e),ow(fj(t)))}),[s.prefixName,t]),d=_j.useMemo((function(){return wy(wy({},s),{},{prefixName:c})}),[s,c]),f=_j.useMemo((function(){return{getKey:function(e){var t=c.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[c]);return"function"!=typeof r?(Xy(!1,"Form.List only accepts function as children."),null):_j.createElement(cM.Provider,{value:f},_j.createElement(uM.Provider,{value:d},_j.createElement(Sj,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:o,initialValue:n,isList:!0,isListField:null!=a?a:!!l},(function(e,t){var n=e.value,i=void 0===n?[]:n,o=e.onChange,a=s.getFieldValue,l=function(){return a(c||[])||[]},d={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(ow(u.keys.slice(0,t)),[u.id],ow(u.keys.slice(t))),o([].concat(ow(n.slice(0,t)),[e],ow(n.slice(t))))):((t<0||t>n.length)&&Xy(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(ow(u.keys),[u.id]),o([].concat(ow(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=gj(u.keys,e,t),o(gj(n,e,t)))}}},f=i||[];return Array.isArray(f)||(f=[],Xy(!1,"Current value of '".concat(c.join(" > "),"' is not an array type."))),r(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),d,t)}))))},Ej=ee(re()),Cj="__@field_split__";function Tj(e){return e.map((function(e){return"".concat(gv(e),":").concat(e)})).join(Cj)}var Pj=function(){function e(){U_(this,e),yv(this,"kvs",new Map)}return H_(e,[{key:"set",value:function(e,t){this.kvs.set(Tj(e),t)}},{key:"get",value:function(e){return this.kvs.get(Tj(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Tj(e))}},{key:"map",value:function(e){return ow(this.kvs.entries()).map((function(t){var n=Av(t,2),r=n[0],i=n[1],o=r.split(Cj);return e({key:o.map((function(e){var t=Av(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:i})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),kj=Pj,Rj=["name"],Ij=H_((function e(t){var n=this;U_(this,e),yv(this,"formHooked",!1),yv(this,"forceRootUpdate",void 0),yv(this,"subscribable",!0),yv(this,"store",{}),yv(this,"fieldEntities",[]),yv(this,"initialValues",{}),yv(this,"callbacks",{}),yv(this,"validateMessages",null),yv(this,"preserve",null),yv(this,"lastValidatePromise",null),yv(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),yv(this,"getInternalHooks",(function(e){return e===sM?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Xy(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),yv(this,"useSubscribe",(function(e){n.subscribable=e})),yv(this,"prevWithoutPreserves",null),yv(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,i=CC(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;i=_C(i,n,xC(e,n))})),n.prevWithoutPreserves=null,n.updateStore(i)}})),yv(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new kj;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),yv(this,"getInitialValue",(function(e){var t=xC(n.initialValues,e);return e.length?CC(t):t})),yv(this,"setCallbacks",(function(e){n.callbacks=e})),yv(this,"setValidateMessages",(function(e){n.validateMessages=e})),yv(this,"setPreserve",(function(e){n.preserve=e})),yv(this,"watchList",[]),yv(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),yv(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),yv(this,"timeoutId",null),yv(this,"warningUnhooked",(function(){n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||Xy(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),yv(this,"updateStore",(function(e){n.store=e})),yv(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),yv(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new kj;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),yv(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=fj(e);return t.get(n)||{INVALIDATE_NAME_PATH:fj(e)}}))})),yv(this,"getFieldsValue",(function(e,t){var r,i,o;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,i=t):e&&"object"===gv(e)&&(o=e.strict,i=e.filter),!0===r&&!i)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach((function(e){var t,n,a,l,u="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(o){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(i){var c="getMeta"in e?e.getMeta():null;i(c)&&s.push(u)}else s.push(u)})),pj(n.store,s.map(fj))})),yv(this,"getFieldValue",(function(e){n.warningUnhooked();var t=fj(e);return xC(n.store,t)})),yv(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:fj(e[n]),errors:[],warnings:[]}}))})),yv(this,"getFieldError",(function(e){n.warningUnhooked();var t=fj(e);return n.getFieldsError([t])[0].errors})),yv(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=fj(e);return n.getFieldsError([t])[0].warnings})),yv(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,o=t[0],a=t[1],s=!1;0===t.length?i=null:1===t.length?Array.isArray(o)?(i=o.map(fj),s=!1):(i=null,s=o):(i=o.map(fj),s=a);var l=n.getFieldEntities(!0),u=function(e){return e.isFieldTouched()};if(!i)return s?l.every((function(e){return u(e)||e.isList()})):l.some(u);var c=new kj;i.forEach((function(e){c.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();i.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&c.update(n,(function(t){return[].concat(ow(t),[e])}))}))}));var d=function(e){return e.some(u)},f=c.map((function(e){return e.value}));return s?f.every(d):f.some(d)})),yv(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),yv(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(fj);return t.some((function(e){var t=e.getNamePath();return hj(r,t)&&e.isFieldValidating()}))})),yv(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),yv(this,"resetWithFieldInitialValue",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new kj,i=n.getFieldEntities(!0);i.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var i=r.get(n)||new Set;i.add({entity:e,value:t}),r.set(n,i)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,i=r.get(t);i&&(n=e).push.apply(n,ow(ow(i).map((function(e){return e.entity}))))}))):e=i,e.forEach((function(e){if(void 0!==e.props.initialValue){var i=e.getNamePath();if(void 0!==n.getInitialValue(i))Xy(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=r.get(i);if(o&&o.size>1)Xy(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(_C(n.store,i,ow(o)[0].value))}}}}))})),yv(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(CC(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(fj);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(_C(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),yv(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var i=e.name,o=bv(e,Rj),a=fj(i);r.push(a),"value"in o&&n.updateStore(_C(n.store,a,o.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),yv(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=wy(wy({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),yv(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===xC(n.store,r)&&n.updateStore(_C(n.store,r,t))}})),yv(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),yv(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(i)&&(!r||o.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!mj(e.getNamePath(),t)}))){var s=n.store;n.updateStore(_C(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),yv(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var i=e.namePath,o=e.triggerName;n.validateFields([i],{triggerName:o})}})),yv(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var i=wy(wy({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,i)}))}else n.forceRootUpdate()})),yv(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(ow(r))}),r})),yv(this,"updateValue",(function(e,t){var r=fj(e),i=n.store;n.updateStore(_C(n.store,r,t)),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(i,r),a=n.callbacks.onValuesChange;a&&a(pj(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(ow(o)))})),yv(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=CC(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),yv(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),yv(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],i=new kj;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=fj(t);i.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(i.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),e(i))}}))}(e),r})),yv(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(t){var o=new kj;t.forEach((function(e){var t=e.name,n=e.errors;o.set(t,n)})),i.forEach((function(e){e.errors=o.get(e.name)||e.errors}))}var a=i.filter((function(t){var n=t.name;return hj(e,n)}));a.length&&r(a,i)}})),yv(this,"validateFields",(function(e,t){var r,i;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,i=t):i=e;var o=!!r,a=o?r.map(fj):[],s=[],l=String(Date.now()),u=new Set,c=i||{},d=c.recursive,f=c.dirty;n.getFieldEntities(!0).forEach((function(e){if(o||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(u.add(t.join(l)),!o||hj(a,t,d)){var r=e.validateRules(wy({validateMessages:wy(wy({},rj),n.validateMessages)},i));s.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],i=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?i.push.apply(i,ow(n)):r.push.apply(r,ow(n))})),r.length?Promise.reject({name:t,errors:r,warnings:i}):{name:t,errors:r,warnings:i}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(i,o){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&o(r),i(r))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var m=a.filter((function(e){return u.has(e.join(l))}));return n.triggerOnFieldsChange(m),h})),yv(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t})),Oj=function(e){var t=Ej.useRef(),n=Av(Ej.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new Ij((function(){n({})}));t.current=r.getForm()}return[t.current]},Mj=ee(re()),jj=ee(re()),zj=jj.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Bj=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,o=jj.useContext(zj),a=jj.useRef({});return jj.createElement(zj.Provider,{value:wy(wy({},o),{},{validateMessages:wy(wy({},o.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),o.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),o.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=wy(wy({},a.current),{},yv({},e,t))),o.registerForm(e,t)},unregisterForm:function(e){var t=wy({},a.current);delete t[e],a.current=t,o.unregisterForm(e)}})},i)},Fj=zj,Dj=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Lj=function(e,t){var n=e.name,r=e.initialValues,i=e.fields,o=e.form,a=e.preserve,s=e.children,l=e.component,u=void 0===l?"form":l,c=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,p=e.onValuesChange,h=e.onFieldsChange,m=e.onFinish,A=e.onFinishFailed,g=e.clearOnDestroy,v=bv(e,Dj),y=Mj.useRef(null),b=Mj.useContext(Fj),x=Av(Oj(o),1)[0],S=x.getInternalHooks(sM),_=S.useSubscribe,w=S.setInitialValues,E=S.setCallbacks,C=S.setValidateMessages,T=S.setPreserve,P=S.destroyForm;Mj.useImperativeHandle(t,(function(){return wy(wy({},x),{},{nativeElement:y.current})})),Mj.useEffect((function(){return b.registerForm(n,x),function(){b.unregisterForm(n)}}),[b,x,n]),C(wy(wy({},b.validateMessages),c)),E({onValuesChange:p,onFieldsChange:function(e){if(b.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];h.apply(void 0,[e].concat(r))}},onFinish:function(e){b.triggerFormFinish(n,e),m&&m(e)},onFinishFailed:A}),T(a);var k,R=Mj.useRef(null);w(r,!R.current),R.current||(R.current=!0),Mj.useEffect((function(){return function(){return P(g)}}),[]);var I="function"==typeof s;k=I?s(x.getFieldsValue(!0),x):s,_(!I);var O=Mj.useRef();Mj.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==gv(e)||"object"!==gv(t))return!1;var n=Object.keys(e),r=Object.keys(t);return ow(new Set([].concat(n,r))).every((function(n){var r=e[n],i=t[n];return"function"==typeof r&&"function"==typeof i||r===i}))})(O.current||[],i||[])||x.setFields(i||[]),O.current=i}),[i,x]);var M=Mj.useMemo((function(){return wy(wy({},x),{},{validateTrigger:f})}),[x,f]),j=Mj.createElement(cM.Provider,{value:null},Mj.createElement(uM.Provider,{value:M},k));return!1===u?j:Mj.createElement(u,dv({},v,{ref:y,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),x.submit()},onReset:function(e){var t;e.preventDefault(),x.resetFields(),null===(t=v.onReset)||void 0===t||t.call(v,e)}}),j)},Nj=ee(re());function Uj(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var Gj=function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=(0,Nj.useRef)(t);Xy(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")},Hj=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=void 0===i?{}:i,a=function(e){return e&&!!e._init}(o)?{form:o}:o,s=a.form,l=Av((0,Nj.useState)(),2),u=l[0],c=l[1],d=(0,Nj.useMemo)((function(){return Uj(u)}),[u]),f=(0,Nj.useRef)(d);f.current=d;var p=(0,Nj.useContext)(uM),h=s||p,m=h&&h._init;Xy(2===t.length&&!s||m,"useWatch requires a form instance since it can not auto detect from context.");var A=fj(r),g=(0,Nj.useRef)(A);return g.current=A,Gj(A),(0,Nj.useEffect)((function(){if(m){var e=h.getFieldsValue,t=(0,h.getInternalHooks)(sM).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"==typeof r?r(n):xC(n,g.current)},i=t((function(e,t){var r=n(e,t),i=Uj(r);f.current!==i&&(f.current=i,c(r))})),o=n(e(),e(!0));return u!==o&&c(o),i}}),[m]),u},Wj=iM.forwardRef(Lj);Wj.FormProvider=Bj,Wj.Field=Sj,Wj.List=wj,Wj.useForm=Oj,Wj.useWatch=Hj;var Vj=Wj,Xj=nM.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),Kj=nM.createContext(null),qj=e=>{const t=rw(e,["prefixCls"]);return nM.createElement(Bj,Object.assign({},t))},Qj=nM.createContext({prefixCls:""}),Yj=nM.createContext({});Yj.displayName="FormItemInputContext";var Zj=e=>{let{children:t,status:n,override:r}=e;const i=(0,rM.useContext)(Yj),o=(0,rM.useMemo)((()=>{const e=Object.assign({},i);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,i]);return nM.createElement(Yj.Provider,{value:o},t)},$j=(0,rM.createContext)(void 0),Jj=e=>{const{space:t,form:n,children:r}=e;if(null==r)return null;let i=r;return n&&(i=tM.default.createElement(Zj,{override:!0,status:!0},i)),t&&(i=tM.default.createElement(FI,null,i)),i},ez=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),tz=e=>({animationDuration:e,animationFillMode:"both"}),nz=e=>({animationDuration:e,animationFillMode:"both"}),rz=function(e,t,n,r){const i=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},tz(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},nz(r)),{animationPlayState:"paused"}),[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},iz=new yC("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),oz=new yC("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),az=new yC("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),sz=new yC("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),lz=new yC("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),uz=new yC("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),cz=new yC("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),dz=new yC("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),fz=new yC("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),pz=new yC("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),hz=new yC("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),mz=new yC("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Az={zoom:{inKeyframes:iz,outKeyframes:oz},"zoom-big":{inKeyframes:az,outKeyframes:sz},"zoom-big-fast":{inKeyframes:az,outKeyframes:sz},"zoom-left":{inKeyframes:cz,outKeyframes:dz},"zoom-right":{inKeyframes:fz,outKeyframes:pz},"zoom-up":{inKeyframes:lz,outKeyframes:uz},"zoom-down":{inKeyframes:hz,outKeyframes:mz}},gz=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Az[t];return[rz(r,i,o,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},vz=ee(re()).default.createContext({}),yz=ee(ie()),bz=ee(re()),xz=ee(ie()),Sz=ee(re()),_z=ee(ie()),wz=ee(re());function Ez(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,u=void 0===l?0:l,c=i.y,d=void 0===c?0:c,f=wz.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],m=n.points[1],A=h[0],g=h[1],v=m[0],y=m[1];A!==v&&["t","b"].includes(A)?"t"===A?p.top=0:p.bottom=0:p.top=d,g!==y&&["l","r"].includes(g)?"l"===g?p.left=0:p.right=0:p.left=u}return wz.createElement("div",{ref:f,className:(0,_z.default)("".concat(t,"-arrow"),a),style:p},s)}var Cz=ee(ie()),Tz=ee(re());function Pz(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?Tz.createElement(_k,dv({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return Tz.createElement("div",{style:{zIndex:r},className:(0,Cz.default)("".concat(t,"-mask"),n)})})):null}var kz=ee(re()).memo((function(e){return e.children}),(function(e,t){return t.cache}));kz.displayName="PopupContent";var Rz=kz,Iz=Sz.forwardRef((function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,c=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,h=e.arrowPos,m=e.align,A=e.motion,g=e.maskMotion,v=e.forceRender,y=e.getPopupContainer,b=e.autoDestroy,x=e.portal,S=e.zIndex,_=e.onMouseEnter,w=e.onMouseLeave,E=e.onPointerEnter,C=e.ready,T=e.offsetX,P=e.offsetY,k=e.offsetR,R=e.offsetB,I=e.onAlign,O=e.onPrepare,M=e.stretch,j=e.targetWidth,z=e.targetHeight,B="function"==typeof n?n():n,F=l||u,D=(null==y?void 0:y.length)>0,L=Av(Sz.useState(!y||!D),2),N=L[0],U=L[1];if(eE((function(){!N&&D&&a&&U(!0)}),[N,D,a]),!N)return null;var G="auto",H={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(C||!l){var W,V=m.points,X=m.dynamicInset||(null===(W=m._experimental)||void 0===W?void 0:W.dynamicInset),K=X&&"r"===V[0][1],q=X&&"b"===V[0][0];K?(H.right=k,H.left=G):(H.left=T,H.right=G),q?(H.bottom=R,H.top=G):(H.top=P,H.bottom=G)}var Q={};return M&&(M.includes("height")&&z?Q.height=z:M.includes("minHeight")&&z&&(Q.minHeight=z),M.includes("width")&&j?Q.width=j:M.includes("minWidth")&&j&&(Q.minWidth=j)),l||(Q.pointerEvents="none"),Sz.createElement(x,{open:v||F,getContainer:y&&function(){return y(a)},autoDestroy:b},Sz.createElement(Pz,{prefixCls:i,open:l,zIndex:S,mask:f,motion:g}),Sz.createElement(nw,{onResize:I,disabled:!l},(function(e){return Sz.createElement(_k,dv({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(i,"-hidden")},A,{onAppearPrepare:O,onEnterPrepare:O,visible:l,onVisibleChanged:function(e){var t;null==A||null===(t=A.onVisibleChanged)||void 0===t||t.call(A,e),s(e)}}),(function(n,a){var s=n.className,u=n.style,f=(0,xz.default)(i,s,r);return Sz.createElement("div",{ref:qx(e,t,a),className:f,style:wy(wy(wy(wy({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},H),Q),u),{},{boxSizing:"border-box",zIndex:S},o),onMouseEnter:_,onMouseLeave:w,onPointerEnter:E,onClick:d},p&&Sz.createElement(Ez,{prefixCls:i,arrow:p,arrowPos:h,align:m}),Sz.createElement(Rz,{cache:!l&&!c},B))}))})))}));Iz.displayName="Popup";var Oz=Iz,Mz=ee(re()),jz=Mz.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Yx(n),o=Mz.useCallback((function(e){Kx(t,r?r(e):e)}),[r]),a=Qx(o,n.ref);return i?Mz.cloneElement(n,{ref:a}):n}));jz.displayName="TriggerWrapper";var zz=jz,Bz=ee(re()).createContext(null),Fz=ee(re());function Dz(e){return e?Array.isArray(e)?e:[e]:[]}var Lz=ee(re());function Nz(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Uz(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Gz(e){return e.ownerDocument.defaultView}function Hz(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=Gz(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Wz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Vz(e){return Wz(parseFloat(e),0)}function Xz(e,t){var n=wy({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Gz(e).getComputedStyle(e),r=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,u=e.getBoundingClientRect(),c=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=Vz(o),m=Vz(a),A=Vz(s),g=Vz(l),v=Wz(Math.round(u.width/f*1e3)/1e3),y=Wz(Math.round(u.height/c*1e3)/1e3),b=(f-p-A-g)*v,x=(c-d-h-m)*y,S=h*y,_=m*y,w=A*v,E=g*v,C=0,T=0;if("clip"===r){var P=Vz(i);C=P*v,T=P*y}var k=u.x+w-C,R=u.y+S-T,I=k+u.width+2*C-w-E-b,O=R+u.height+2*T-S-_-x;n.left=Math.max(n.left,k),n.top=Math.max(n.top,R),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,O)}})),n}function Kz(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function qz(e,t){var n=Av(t||[],2),r=n[0],i=n[1];return[Kz(e.width,r),Kz(e.height,i)]}function Qz(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Yz(e,t){var n,r=t[0],i=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:n}}function Zz(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var $z=ee(re()),Jz=["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"],eB=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:YO,t=bz.forwardRef((function(t,n){var r=t.prefixCls,i=void 0===r?"rc-trigger-popup":r,o=t.children,a=t.action,s=void 0===a?"hover":a,l=t.showAction,u=t.hideAction,c=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,h=t.mouseEnterDelay,m=t.mouseLeaveDelay,A=void 0===m?.1:m,g=t.focusDelay,v=t.blurDelay,y=t.mask,b=t.maskClosable,x=void 0===b||b,S=t.getPopupContainer,_=t.forceRender,w=t.autoDestroy,E=t.destroyPopupOnHide,C=t.popup,T=t.popupClassName,P=t.popupStyle,k=t.popupPlacement,R=t.builtinPlacements,I=void 0===R?{}:R,O=t.popupAlign,M=t.zIndex,j=t.stretch,z=t.getPopupClassNameFromAlign,B=t.fresh,F=t.alignPoint,D=t.onPopupClick,L=t.onPopupAlign,N=t.arrow,U=t.popupMotion,G=t.maskMotion,H=t.popupTransitionName,W=t.popupAnimation,V=t.maskTransitionName,X=t.maskAnimation,K=t.className,q=t.getTriggerDOMNode,Q=bv(t,Jz),Y=w||E||!1,Z=Av(bz.useState(!1),2),$=Z[0],J=Z[1];eE((function(){J(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[]);var ee=bz.useRef({}),te=bz.useContext(Bz),ne=bz.useMemo((function(){return{registerSubPopup:function(e,t){ee.current[e]=t,null==te||te.registerSubPopup(e,t)}}}),[te]),re=eM(),ie=Av(bz.useState(null),2),oe=ie[0],ae=ie[1],se=bz.useRef(null),le=UT((function(e){se.current=e,d_(e)&&oe!==e&&ae(e),null==te||te.registerSubPopup(re,e)})),ue=Av(bz.useState(null),2),ce=ue[0],de=ue[1],fe=bz.useRef(null),pe=UT((function(e){d_(e)&&ce!==e&&(de(e),fe.current=e)})),he=bz.Children.only(o),me=(null==he?void 0:he.props)||{},Ae={},ge=UT((function(e){var t,n,r=ce;return(null==r?void 0:r.contains(e))||(null===(t=Dy(r))||void 0===t?void 0:t.host)===e||e===r||(null==oe?void 0:oe.contains(e))||(null===(n=Dy(oe))||void 0===n?void 0:n.host)===e||e===oe||Object.values(ee.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),ve=Uz(i,U,W,H),ye=Uz(i,G,X,V),be=Av(bz.useState(d||!1),2),xe=be[0],Se=be[1],_e=null!=c?c:xe,we=UT((function(e){void 0===c&&Se(e)}));eE((function(){Se(c||!1)}),[c]);var Ee=bz.useRef(_e);Ee.current=_e;var Ce=bz.useRef([]);Ce.current=[];var Te=UT((function(e){var t;we(e),(null!==(t=Ce.current[Ce.current.length-1])&&void 0!==t?t:_e)!==e&&(Ce.current.push(e),null==f||f(e))})),Pe=bz.useRef(),ke=function(){clearTimeout(Pe.current)},Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ke(),0===t?Te(e):Pe.current=setTimeout((function(){Te(e)}),1e3*t)};bz.useEffect((function(){return ke}),[]);var Ie=Av(bz.useState(!1),2),Oe=Ie[0],Me=Ie[1];eE((function(e){e&&!_e||Me(!0)}),[_e]);var je=Av(bz.useState(null),2),ze=je[0],Be=je[1],Fe=Av(bz.useState([0,0]),2),De=Fe[0],Le=Fe[1],Ne=function(e){Le([e.clientX,e.clientY])},Ue=function(e,t,n,r,i,o,a){var s=Av(Lz.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),2),l=s[0],u=s[1],c=Lz.useRef(0),d=Lz.useMemo((function(){return t?Hz(t):[]}),[t]),f=Lz.useRef({});e||(f.current={});var p=UT((function(){if(t&&n&&e){let e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K,r=T.x+e,i=T.y+t,o=r+B,a=i+z,s=Math.max(r,n.left),l=Math.max(i,n.top),u=Math.min(o,n.right),c=Math.min(a,n.bottom);return Math.max(0,(u-s)*(c-l))},st=function(){ae=T.y+ve,se=ae+z,le=T.x+ge,ue=le+B};var s,l,c,p=t,h=p.ownerDocument,m=Gz(p).getComputedStyle(p),A=m.width,g=m.height,v=m.position,y=p.style.left,b=p.style.top,x=p.style.right,S=p.style.bottom,_=p.style.overflow,w=wy(wy({},i[r]),o),E=h.createElement("div");if(null===(s=p.parentElement)||void 0===s||s.appendChild(E),E.style.left="".concat(p.offsetLeft,"px"),E.style.top="".concat(p.offsetTop,"px"),E.style.position=v,E.style.height="".concat(p.offsetHeight,"px"),E.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(n))c={x:n[0],y:n[1],width:0,height:0};else{var C=n.getBoundingClientRect();c={x:C.x,y:C.y,width:C.width,height:C.height}}var T=p.getBoundingClientRect(),P=h.documentElement,k=P.clientWidth,R=P.clientHeight,I=P.scrollWidth,O=P.scrollHeight,M=P.scrollTop,j=P.scrollLeft,z=T.height,B=T.width,F=c.height,D=c.width,L={left:0,top:0,right:k,bottom:R},N={left:-j,top:-M,right:I-j,bottom:O-M},U=w.htmlRegion,G="visible",H="visibleFirst";"scroll"!==U&&U!==H&&(U=G);var W=U===H,V=Xz(N,d),X=Xz(L,d),K=U===G?X:V,q=W?X:K;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var Q=p.getBoundingClientRect();p.style.left=y,p.style.top=b,p.style.right=x,p.style.bottom=S,p.style.overflow=_,null===(l=p.parentElement)||void 0===l||l.removeChild(E);var Y=Wz(Math.round(B/parseFloat(A)*1e3)/1e3),Z=Wz(Math.round(z/parseFloat(g)*1e3)/1e3);if(0===Y||0===Z||d_(n)&&!gI(n))return;var $=w.offset,J=w.targetOffset,ee=Av(qz(T,$),2),te=ee[0],ne=ee[1],re=Av(qz(c,J),2),ie=re[0],oe=re[1];c.x-=ie,c.y-=oe;var ae,se,le,ue,ce=Av(w.points||[],2),de=ce[0],fe=Qz(ce[1]),pe=Qz(de),he=Yz(c,fe),me=Yz(T,pe),Ae=wy({},w),ge=he.x-me.x+te,ve=he.y-me.y+ne,ye=e(ge,ve),be=e(ge,ve,X),xe=Yz(c,["t","l"]),Se=Yz(T,["t","l"]),_e=Yz(c,["b","r"]),we=Yz(T,["b","r"]),Ee=w.overflow||{},Ce=Ee.adjustX,Te=Ee.adjustY,Pe=Ee.shiftX,ke=Ee.shiftY,Re=function(e){return"boolean"==typeof e?e:e>=0};st();var Ie=Re(Te),Oe=pe[0]===fe[0];if(Ie&&"t"===pe[0]&&(se>q.bottom||f.current.bt)){var Me=ve;Oe?Me-=z-F:Me=xe.y-we.y-ne;var je=e(ge,Me),ze=e(ge,Me,X);je>ye||je===ye&&(!W||ze>=be)?(f.current.bt=!0,ve=Me,ne=-ne,Ae.points=[Zz(pe,0),Zz(fe,0)]):f.current.bt=!1}if(Ie&&"b"===pe[0]&&(ae<q.top||f.current.tb)){var Be=ve;Oe?Be+=z-F:Be=_e.y-Se.y-ne;var Fe=e(ge,Be),De=e(ge,Be,X);Fe>ye||Fe===ye&&(!W||De>=be)?(f.current.tb=!0,ve=Be,ne=-ne,Ae.points=[Zz(pe,0),Zz(fe,0)]):f.current.tb=!1}var Le=Re(Ce),Ne=pe[1]===fe[1];if(Le&&"l"===pe[1]&&(ue>q.right||f.current.rl)){var Ue=ge;Ne?Ue-=B-D:Ue=xe.x-we.x-te;var Ge=e(Ue,ve),He=e(Ue,ve,X);Ge>ye||Ge===ye&&(!W||He>=be)?(f.current.rl=!0,ge=Ue,te=-te,Ae.points=[Zz(pe,1),Zz(fe,1)]):f.current.rl=!1}if(Le&&"r"===pe[1]&&(le<q.left||f.current.lr)){var We=ge;Ne?We+=B-D:We=_e.x-Se.x-te;var Ve=e(We,ve),Xe=e(We,ve,X);Ve>ye||Ve===ye&&(!W||Xe>=be)?(f.current.lr=!0,ge=We,te=-te,Ae.points=[Zz(pe,1),Zz(fe,1)]):f.current.lr=!1}st();var Ke=!0===Pe?0:Pe;"number"==typeof Ke&&(le<X.left&&(ge-=le-X.left-te,c.x+D<X.left+Ke&&(ge+=c.x-X.left+D-Ke)),ue>X.right&&(ge-=ue-X.right-te,c.x>X.right-Ke&&(ge+=c.x-X.right+Ke)));var qe=!0===ke?0:ke;"number"==typeof qe&&(ae<X.top&&(ve-=ae-X.top-ne,c.y+F<X.top+qe&&(ve+=c.y-X.top+F-qe)),se>X.bottom&&(ve-=se-X.bottom-ne,c.y>X.bottom-qe&&(ve+=c.y-X.bottom+qe)));var Qe=T.x+ge,Ye=Qe+B,Ze=T.y+ve,$e=Ze+z,Je=c.x,et=Je+D,tt=c.y,nt=tt+F,rt=(Math.max(Qe,Je)+Math.min(Ye,et))/2-Qe,it=(Math.max(Ze,tt)+Math.min($e,nt))/2-Ze;null==a||a(t,Ae);var ot=Q.right-T.x-(ge+T.width),at=Q.bottom-T.y-(ve+T.height);1===Y&&(ge=Math.round(ge),ot=Math.round(ot)),1===Z&&(ve=Math.round(ve),at=Math.round(at)),u({ready:!0,offsetX:ge/Y,offsetY:ve/Z,offsetR:ot/Y,offsetB:at/Z,arrowX:rt/Y,arrowY:it/Z,scaleX:Y,scaleY:Z,align:Ae})}})),h=function(){u((function(e){return wy(wy({},e),{},{ready:!1})}))};return eE(h,[r]),eE((function(){e||h()}),[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){c.current+=1;var e=c.current;Promise.resolve().then((function(){c.current===e&&p()}))}]}(_e,oe,F?De:ce,k,I,O,L),Ge=Av(Ue,11),He=Ge[0],We=Ge[1],Ve=Ge[2],Xe=Ge[3],Ke=Ge[4],qe=Ge[5],Qe=Ge[6],Ye=Ge[7],Ze=Ge[8],$e=Ge[9],Je=Ge[10],et=function(e,t,n,r){return Fz.useMemo((function(){var i=Dz(null!=n?n:t),o=Dz(null!=r?r: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,n,r])}($,s,l,u),tt=Av(et,2),nt=tt[0],rt=tt[1],it=nt.has("click"),ot=rt.has("click")||rt.has("contextMenu"),at=UT((function(){Oe||Je()}));!function(e,t,n,r,i){eE((function(){if(e&&t&&n){let e=function(){r(),i()};var o=n,a=Hz(t),s=Hz(o),l=Gz(o),u=new Set([l].concat(ow(a),ow(s)));return u.forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),l.addEventListener("resize",e,{passive:!0}),r(),function(){u.forEach((function(t){t.removeEventListener("scroll",e),l.removeEventListener("resize",e)}))}}}),[e,t,n])}(_e,ce,oe,at,(function(){Ee.current&&F&&ot&&Re(!1)})),eE((function(){at()}),[De,k]),eE((function(){!_e||null!=I&&I[k]||at()}),[JSON.stringify(O)]);var st=bz.useMemo((function(){var e=function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(Nz(null===(s=e[l])||void 0===s?void 0:s.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}(I,i,$e,F);return(0,yz.default)(e,null==z?void 0:z($e))}),[$e,z,I,i,F]);bz.useImperativeHandle(n,(function(){return{nativeElement:fe.current,popupElement:se.current,forceAlign:at}}));var lt=Av(bz.useState(0),2),ut=lt[0],ct=lt[1],dt=Av(bz.useState(0),2),ft=dt[0],pt=dt[1],ht=function(){if(j&&ce){var e=ce.getBoundingClientRect();ct(e.width),pt(e.height)}};function mt(e,t,n,r){Ae[e]=function(i){var o;null==r||r(i),Re(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(o=me[e])||void 0===o||o.call.apply(o,[me,i].concat(s))}}eE((function(){ze&&(Je(),ze(),Be(null))}),[ze]),(it||ot)&&(Ae.onClick=function(e){var t;Ee.current&&ot?Re(!1):!Ee.current&&it&&(Ne(e),Re(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=me.onClick)||void 0===t||t.call.apply(t,[me,e].concat(r))}),function(e,t,n,r,i,o,a,s){var l=$z.useRef(e);l.current=e,$z.useEffect((function(){if(t&&r&&(!i||o)){var e=function(e){var t=e.target;l.current&&!a(t)&&s(!1)},u=Gz(r);u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0);var c,d,f=Dy(n);return f&&(f.addEventListener("mousedown",e,!0),f.addEventListener("contextmenu",e,!0)),Uy((null==n||null===(c=n.getRootNode)||void 0===c?void 0:c.call(n))===(null===(d=r.getRootNode)||void 0===d?void 0:d.call(r)),"trigger element and popup element should in same shadow root."),function(){u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0),f&&(f.removeEventListener("mousedown",e,!0),f.removeEventListener("contextmenu",e,!0))}}}),[t,n,r,i,o])}(_e,ot,ce,oe,y,x,ge,Re);var At,gt,vt=nt.has("hover"),yt=rt.has("hover");vt&&(mt("onMouseEnter",!0,h,(function(e){Ne(e)})),mt("onPointerEnter",!0,h,(function(e){Ne(e)})),At=function(e){(_e||Oe)&&null!=oe&&oe.contains(e.target)&&Re(!0,h)},F&&(Ae.onMouseMove=function(e){var t;null===(t=me.onMouseMove)||void 0===t||t.call(me,e)})),yt&&(mt("onMouseLeave",!1,A),mt("onPointerLeave",!1,A),gt=function(){Re(!1,A)}),nt.has("focus")&&mt("onFocus",!0,g),rt.has("focus")&&mt("onBlur",!1,v),nt.has("contextMenu")&&(Ae.onContextMenu=function(e){var t;Ee.current&&rt.has("contextMenu")?Re(!1):(Ne(e),Re(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=me.onContextMenu)||void 0===t||t.call.apply(t,[me,e].concat(r))}),K&&(Ae.className=(0,yz.default)(me.className,K));var bt=wy(wy({},me),Ae),xt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Q[e]&&(xt[e]=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===(t=bt[e])||void 0===t||t.call.apply(t,[bt].concat(r)),Q[e].apply(Q,r)})}));var St=bz.cloneElement(he,wy(wy({},bt),xt)),_t={x:qe,y:Qe},wt=N?wy({},!0!==N?N:{}):null;return bz.createElement(bz.Fragment,null,bz.createElement(nw,{disabled:!_e,ref:pe,onResize:function(){ht(),at()}},bz.createElement(zz,{getTriggerDOMNode:q},St)),bz.createElement(Bz.Provider,{value:ne},bz.createElement(Oz,{portal:e,ref:le,prefixCls:i,popup:C,className:(0,yz.default)(T,st),style:P,target:ce,onMouseEnter:At,onMouseLeave:gt,onPointerEnter:At,zIndex:M,open:_e,keepDom:Oe,fresh:B,onClick:D,mask:y,motion:ve,maskMotion:ye,onVisibleChanged:function(e){Me(!1),Je(),null==p||p(e)},onPrepare:function(){return new Promise((function(e){ht(),Be((function(){return e}))}))},forceRender:_,autoDestroy:Y,getPopupContainer:S,align:$e,arrow:wt,arrowPos:_t,ready:He,offsetX:We,offsetY:Ve,offsetR:Xe,offsetB:Ke,onAlign:at,stretch:j,targetWidth:ut/Ye,targetHeight:ft/Ze})))}));return t.displayName="Trigger",t}(YO),tB=ee(ie());function nB(e,t,n){return(0,tB.default)({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}var rB=(e,t)=>t||e,iB=ee(re()),oB=ee(ie()),aB=ee(re()),sB=()=>{const[,e]=DT(),t=new Uv(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return aB.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},aB.createElement("title",null,"empty image"),aB.createElement("g",{fill:"none",fillRule:"evenodd"},aB.createElement("g",{transform:"translate(24 31.67)"},aB.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),aB.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),aB.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),aB.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),aB.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),aB.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),aB.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},aB.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),aB.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};sB.displayName="EmptyImage";var lB=sB,uB=ee(re()),cB=ee(re()),dB=()=>{const[,e]=DT(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:o,shadowColor:a,contentColor:s}=(0,cB.useMemo)((()=>({borderColor:new Uv(t).onBackground(i).toHexShortString(),shadowColor:new Uv(n).onBackground(i).toHexShortString(),contentColor:new Uv(r).onBackground(i).toHexShortString()})),[t,n,r,i]);return uB.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},uB.createElement("title",null,"Simple Empty"),uB.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},uB.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),uB.createElement("g",{fillRule:"nonzero",stroke:o},uB.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),uB.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))};dB.displayName="SimpleImage";var fB=dB,pB=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},hB=fP("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=nP(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[pB(i)]})),mB=iB.createElement(lB,null),AB=iB.createElement(fB,null),gB=e=>{var{className:t,rootClassName:n,prefixCls:r,image:i=mB,description:o,children:a,imageStyle:s,style:l}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:c,direction:d,empty:f}=iB.useContext(hT),p=c("empty",r),[h,m,A]=hB(p),[g]=XC("Empty"),v=void 0!==o?o:null==g?void 0:g.description,y="string"==typeof v?v:"empty";let b=null;return b="string"==typeof i?iB.createElement("img",{alt:y,src:i}):i,h(iB.createElement("div",Object.assign({className:(0,oB.default)(m,A,p,null==f?void 0:f.className,{[`${p}-normal`]:i===AB,[`${p}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==f?void 0:f.style),l)},u),iB.createElement("div",{className:`${p}-image`,style:s},b),v&&iB.createElement("div",{className:`${p}-description`},v),a&&iB.createElement("div",{className:`${p}-footer`},a)))};gB.PRESENTED_IMAGE_DEFAULT=mB,gB.PRESENTED_IMAGE_SIMPLE=AB,gB.displayName="Empty";var vB=gB,yB=ee(re()),bB=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=(0,yB.useContext)(hT),s=(0,yB.useContext)($j),l=null==a?void 0:a.variant;let u;return u=void 0!==t?t:!1===n?"borderless":null!==(i=null!==(r=null!=s?s:l)&&void 0!==r?r:o)&&void 0!==i?i:"outlined",[u,pT.includes(u)]},xB=ee(re()),SB=["xxl","xl","lg","md","sm","xs"];function _B(){const[,e]=DT(),t=(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)`}))((e=>{const t=e,n=[].concat(SB).reverse();return n.forEach(((e,r)=>{const i=e.toUpperCase(),o=`screen${i}Min`,a=`screen${i}`;if(!(t[o]<=t[a]))throw new Error(`${o}<=${a} fails : !(${t[o]}<=${t[a]})`);if(r<n.length-1){const e=`screen${i}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const o=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[o]))throw new Error(`${e}<=${o} fails : !(${t[e]}<=${t[o]})`)}})),e})(e));return xB.default.useMemo((()=>{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],i=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},o=window.matchMedia(n);o.addListener(i),this.matchHandlers[n]={mql:o,listener:i},i(o)}))},responsiveMap:t}}),[e])}var wB=ee(re()),EB=ee(ie()),CB=ee(ie()),TB=ee(re());function PB(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return TB.createElement("div",{className:(0,CB.default)("".concat(n,"-content"),o),style:a},TB.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof t?t():t))}var kB=ee(re()),RB=ee(re()),IB={shiftX:64,adjustY:1},OB={adjustX:1,shiftY:!0},MB=[0,0],jB={left:{points:["cr","cl"],overflow:OB,offset:[-4,0],targetOffset:MB},right:{points:["cl","cr"],overflow:OB,offset:[4,0],targetOffset:MB},top:{points:["bc","tc"],overflow:IB,offset:[0,-4],targetOffset:MB},bottom:{points:["tc","bc"],overflow:IB,offset:[0,4],targetOffset:MB},topLeft:{points:["bl","tl"],overflow:IB,offset:[0,-4],targetOffset:MB},leftTop:{points:["tr","tl"],overflow:OB,offset:[-4,0],targetOffset:MB},topRight:{points:["br","tr"],overflow:IB,offset:[0,-4],targetOffset:MB},rightTop:{points:["tl","tr"],overflow:OB,offset:[4,0],targetOffset:MB},bottomRight:{points:["tr","br"],overflow:IB,offset:[0,4],targetOffset:MB},rightBottom:{points:["bl","br"],overflow:OB,offset:[4,0],targetOffset:MB},bottomLeft:{points:["tl","bl"],overflow:IB,offset:[0,4],targetOffset:MB},leftBottom:{points:["br","bl"],overflow:OB,offset:[-4,0],targetOffset:MB}},zB=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],BB=function(e,t){var n=e.overlayClassName,r=e.trigger,i=void 0===r?["hover"]:r,o=e.mouseEnterDelay,a=void 0===o?0:o,s=e.mouseLeaveDelay,l=void 0===s?.1:s,u=e.overlayStyle,c=e.prefixCls,d=void 0===c?"rc-tooltip":c,f=e.children,p=e.onVisibleChange,h=e.afterVisibleChange,m=e.transitionName,A=e.animation,g=e.motion,v=e.placement,y=void 0===v?"right":v,b=e.align,x=void 0===b?{}:b,S=e.destroyTooltipOnHide,_=void 0!==S&&S,w=e.defaultVisible,E=e.getTooltipContainer,C=e.overlayInnerStyle,T=(e.arrowContent,e.overlay),P=e.id,k=e.showArrow,R=void 0===k||k,I=bv(e,zB),O=(0,RB.useRef)(null);(0,RB.useImperativeHandle)(t,(function(){return O.current}));var M=wy({},I);return"visible"in e&&(M.popupVisible=e.visible),kB.createElement(eB,dv({popupClassName:n,prefixCls:d,popup:function(){return kB.createElement(PB,{key:"content",prefixCls:d,id:P,overlayInnerStyle:C},T)},action:i,builtinPlacements:jB,popupPlacement:y,ref:O,popupAlign:x,getPopupContainer:E,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:m,popupAnimation:A,popupMotion:g,defaultPopupVisible:w,autoDestroy:_,mouseLeaveDelay:l,popupStyle:u,mouseEnterDelay:a,arrow:R},M),f)},FB=(0,RB.forwardRef)(BB),DB=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Gw(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function LB(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function NB(e,t){return e?t:{}}function UB(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},DB(e,t,i)),{"&:before":{background:t}})]},NB(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),NB(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),NB(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),NB(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}var GB={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"]}},HB={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"]}},WB=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function VB(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(GB).forEach((e=>{const u=r&&HB[e]||GB[e],c=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[e]=c,WB.has(e)&&(c.autoArrow=!1),e){case"top":case"topLeft":case"topRight":c.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":c.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":c.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":c.offset[0]=s+i}const d=LB({contentRadius:o,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":c.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":c.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":c.offset[1]=-d.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":c.offset[1]=d.arrowOffsetHorizontal+s}c.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const i=r&&"object"==typeof r?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(c.htmlRegion="visibleFirst")})),l}var XB=ee(re()),KB=ee(ie()),qB=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:c}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},YT(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${Gw(e.calc(u).div(2).equal())} ${Gw(c)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,8)}},[`${t}-content`]:{position:"relative"}}),pP(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},UB(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},QB=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},LB({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=i,a=1*r/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),l=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),c=2*i-l,d=u,f=2*i-a,p=s,h=2*i-0,m=o,A=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1);return{arrowShadowWidth:A,arrowPath:`path('M 0 ${o} A ${r} ${r} 0 0 0 ${a} ${s} L ${l} ${u} A ${n} ${n} 0 0 1 ${c} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${h} ${m} Z')`,arrowPolygon:`polygon(${g}px 100%, 50% ${g}px, ${2*i-g}px 100%, ${g}px 100%)`}}(nP(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),YB=function(e){return fP("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,i=nP(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[qB(i),gz(e,"zoom-big-fast")]}),QB,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]})(e)},ZB=ee(ie()),$B=PT.map((e=>`${e}-inverse`));function JB(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?PT.includes(e):[].concat(ow($B),ow(PT)).includes(e)}(t),r=(0,ZB.default)({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}var eF=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=XB.useContext(hT),l=s("tooltip",t),[u,c,d]=YB(l),f=JB(l,o),p=f.arrowStyle,h=Object.assign(Object.assign({},a),f.overlayStyle),m=(0,KB.default)(c,d,l,`${l}-pure`,`${l}-placement-${r}`,n,f.className);return u(XB.createElement("div",{className:m,style:p},XB.createElement("div",{className:`${l}-arrow`}),XB.createElement(PB,Object.assign({},e,{className:c,prefixCls:l,overlayInnerStyle:h}),i)))},tF=wB.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:u,children:c,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:h=!0,title:m,overlay:A,builtinPlacements:g,arrowPointAtCenter:v=!1,autoAdjustOverflow:y=!0}=e,b=!!h,[,x]=DT(),{getPopupContainer:S,getPrefixCls:_,direction:w}=wB.useContext(hT),E=OC("Tooltip"),C=wB.useRef(null),T=()=>{var e;null===(e=C.current)||void 0===e||e.forceAlign()};wB.useImperativeHandle(t,(()=>{var e;return{forceAlign:T,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),T()},nativeElement:null===(e=C.current)||void 0===e?void 0:e.nativeElement}})),[["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((t=>{let[n,r]=t;E.deprecated(!(n in e),n,r)})),E(!p||"boolean"==typeof p,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),E(!h||"boolean"==typeof h||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.");const[P,k]=VT(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),R=!m&&!A&&0!==m,I=wB.useMemo((()=>{var e,t;let n=v;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:v),g||VB({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:b?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})}),[v,h,g,x]),O=wB.useMemo((()=>0===m?m:A||m||""),[A,m]),M=wB.createElement(Jj,{space:!0},"function"==typeof O?O():O),{getPopupContainer:j,placement:z="top",mouseEnterDelay:B=.1,mouseLeaveDelay:F=.1,overlayStyle:D,rootClassName:L}=e,N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),U=_("tooltip",i),G=_(),H=e["data-popover-inject"];let W=P;"open"in e||"visible"in e||!R||(W=!1);const V=wB.isValidElement(c)&&!Wk(c)?c:wB.createElement("span",null,c),X=V.props,K=X.className&&"string"!=typeof X.className?X.className:(0,EB.default)(X.className,o||`${U}-open`),[q,Q,Y]=YB(U,!H),Z=JB(U,l),$=Z.arrowStyle,J=Object.assign(Object.assign({},u),Z.overlayStyle),ee=(0,EB.default)(s,{[`${U}-rtl`]:"rtl"===w},Z.className,L,Q,Y),[te,ne]=MR("Tooltip",N.zIndex),re=wB.createElement(FB,Object.assign({},N,{zIndex:te,showArrow:b,placement:z,mouseEnterDelay:B,mouseLeaveDelay:F,prefixCls:U,overlayClassName:ee,overlayStyle:Object.assign(Object.assign({},$),D),getTooltipContainer:j||a||S,ref:C,builtinPlacements:I,overlay:M,visible:W,onVisibleChange:t=>{var n,r;k(!R&&t),R||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:f,overlayInnerStyle:J,arrowContent:wB.createElement("span",{className:`${U}-arrow-content`}),motion:{motionName:dI(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),W?Vk(V,{className:K}):V);return q(wB.createElement(kR.Provider,{value:ne},re))}));tF.displayName="Tooltip",tF._InternalPanelDoNotUseOrYouWillBeFired=eF;var nF=tF,rF=ee(re()),iF=ee(ie()),oF=ee(re()),aF=oF.createContext(null),sF=aF.Provider,lF=aF,uF=oF.createContext(null),cF=uF.Provider,dF=ee(re()),fF=ee(ie()),pF=ee(ie()),hF=ee(re()),mF=ee(re()),AF=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],gF=(0,mF.forwardRef)((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-checkbox":n,i=e.className,o=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,u=void 0!==l&&l,c=e.type,d=void 0===c?"checkbox":c,f=e.title,p=e.onChange,h=bv(e,AF),m=(0,mF.useRef)(null),A=(0,mF.useRef)(null),g=Av(VT(u,{value:a}),2),v=g[0],y=g[1];(0,mF.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=m.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=m.current)||void 0===e||e.blur()},input:m.current,nativeElement:A.current}}));var b=(0,pF.default)(r,i,yv(yv({},"".concat(r,"-checked"),v),"".concat(r,"-disabled"),s));return hF.createElement("span",{className:b,title:f,style:o,ref:A},hF.createElement("input",dv({},h,{className:"".concat(r,"-input"),ref:m,onChange:function(t){s||("checked"in e||y(t.target.checked),null==p||p({target:wy(wy({},e),{},{type:d,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:s,checked:!!v,type:d})),hF.createElement("span",{className:"".concat(r,"-inner")}))})),vF=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},YT(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},yF=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:u,lineWidth:c,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:h,lineType:m,radioColor:A,radioBgColor:g,calc:v}=e,y=`${t}-inner`,b=v(i).sub(v(4).mul(2)),x=v(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},YT(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Gw(c)} ${m} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},YT(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},JT(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:v(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:v(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:A,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:l,borderColor:u,borderStyle:"solid",borderWidth:c,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:g,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${v(b).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},bF=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:u,fontSize:c,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:h,paddingXS:m,borderRadius:A,borderRadiusSM:g,borderRadiusLG:v,buttonCheckedBg:y,buttonSolidCheckedColor:b,colorTextDisabled:x,colorBgContainerDisabled:S,buttonCheckedBgDisabled:_,buttonCheckedColorDisabled:w,colorPrimary:E,colorPrimaryHover:C,colorPrimaryActive:T,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:k,buttonSolidCheckedActiveBg:R,calc:I}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:c,lineHeight:Gw(I(n).sub(I(i).mul(2)).equal()),background:d,border:`${Gw(i)} ${o} ${a}`,borderBlockStartWidth:I(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:I(i).mul(-1).equal(),insetInlineStart:I(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Gw(i)} ${o} ${a}`,borderStartStartRadius:A,borderEndStartRadius:A},"&:last-child":{borderStartEndRadius:A,borderEndEndRadius:A},"&:first-child:last-child":{borderRadius:A},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:Gw(I(p).sub(I(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:h,paddingInline:I(m).sub(i).equal(),paddingBlock:0,lineHeight:Gw(I(h).sub(I(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},JT(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:C,borderColor:C,"&::before":{backgroundColor:C}},"&:active":{color:T,borderColor:T,"&::before":{backgroundColor:T}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:b,background:P,borderColor:P,"&:hover":{color:b,background:k,borderColor:k},"&:active":{color:b,background:R,borderColor:R}},"&-disabled":{color:x,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:w,backgroundColor:_,borderColor:a,boxShadow:"none"}}}},xF=fP("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Gw(n)} ${t}`,i=nP(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[vF(i),yF(i),bF(i)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:o,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:u,colorTextLightSolid:c,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:h}=e;return{radioSize:o,dotSize:t?o-8:o-2*(4+i),dotColorDisabled:l,buttonSolidCheckedColor:c,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:h,radioBgColor:t?s:d}}),{unitless:{radioSize:!0,dotSize:!0}}),SF=(e,t)=>{var n,r;const i=dF.useContext(lF),o=dF.useContext(uF),{getPrefixCls:a,direction:s,radio:l}=dF.useContext(hT),u=dF.useRef(null),c=qx(t,u),{isFormItemInput:d}=dF.useContext(Yj);OC("Radio")(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.");const f=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},{prefixCls:p,className:h,rootClassName:m,children:A,style:g,title:v}=e,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","rootClassName","children","style","title"]),b=a("radio",p),x="button"===((null==i?void 0:i.optionType)||o),S=x?`${b}-button`:b,_=Jk(b),[w,E,C]=xF(b,_),T=Object.assign({},y),P=dF.useContext(xT);i&&(T.name=i.name,T.onChange=f,T.checked=e.value===i.value,T.disabled=null!==(n=T.disabled)&&void 0!==n?n:i.disabled),T.disabled=null!==(r=T.disabled)&&void 0!==r?r:P;const k=(0,fF.default)(`${S}-wrapper`,{[`${S}-wrapper-checked`]:T.checked,[`${S}-wrapper-disabled`]:T.disabled,[`${S}-wrapper-rtl`]:"rtl"===s,[`${S}-wrapper-in-form-item`]:d},null==l?void 0:l.className,h,m,E,C,_);return w(dF.createElement(RI,{component:"Radio",disabled:T.disabled},dF.createElement("label",{className:k,style:Object.assign(Object.assign({},null==l?void 0:l.style),g),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:v},dF.createElement(gF,Object.assign({},T,{className:(0,fF.default)(T.className,{[xI]:!x}),type:"radio",prefixCls:S,ref:c})),void 0!==A?dF.createElement("span",null,A):null)))},_F=dF.forwardRef(SF);_F.displayName="Radio";var wF=_F,EF=rF.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=rF.useContext(hT),[i,o]=VT(e.defaultValue,{value:e.value}),{prefixCls:a,className:s,rootClassName:l,options:u,buttonStyle:c="outline",disabled:d,children:f,size:p,style:h,id:m,onMouseEnter:A,onMouseLeave:g,onFocus:v,onBlur:y}=e,b=n("radio",a),x=`${b}-group`,S=Jk(b),[_,w,E]=xF(b,S);let C=f;u&&u.length>0&&(C=u.map((e=>"string"==typeof e||"number"==typeof e?rF.createElement(wF,{key:e.toString(),prefixCls:b,disabled:d,value:e,checked:i===e},e):rF.createElement(wF,{key:`radio-group-value-options-${e.value}`,prefixCls:b,disabled:e.disabled||d,value:e.value,checked:i===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const T=OI(p),P=(0,iF.default)(x,`${x}-${c}`,{[`${x}-${T}`]:T,[`${x}-rtl`]:"rtl"===r},s,l,w,E,S);return _(rF.createElement("div",Object.assign({},Gk(e,{aria:!0,data:!0}),{className:P,style:h,onMouseEnter:A,onMouseLeave:g,onFocus:v,onBlur:y,id:m,ref:t}),rF.createElement(sF,{value:{onChange:t=>{const n=i,r=t.target.value;"value"in e||o(r);const{onChange:a}=e;a&&r!==n&&a(t)},value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},C)))})),CF=rF.memo(EF),TF=ee(re()),PF=(e,t)=>{const{getPrefixCls:n}=TF.useContext(hT),{prefixCls:r}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls"]),o=n("radio",r);return TF.createElement(cF,{value:"button"},TF.createElement(wF,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},kF=TF.forwardRef(PF),RF=wF;RF.Button=kF,RF.Group=CF,RF.__ANT_RADIO=!0;var IF=RF;function OF(e){return nP(e,{inputAffixPadding:e.paddingXXS})}var MF=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:c,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:m,controlOutline:A,colorErrorOutline:g,colorWarningOutline:v,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-i,paddingInline:u-i,paddingInlineSM:c-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${A}`,errorActiveShadow:`0 0 0 ${m}px ${g}`,warningActiveShadow:`0 0 0 ${m}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},jF=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),zF=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},jF(nP(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),BF=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),FF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},BF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),DF=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},BF(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},zF(e))}),FF(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),FF(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),LF=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),NF=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Gw(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},LF(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),LF(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},zF(e))}})}),UF=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},GF=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),HF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},GF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),WF=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},GF(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},zF(e))}),HF(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),HF(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),VF=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),XF=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Gw(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Gw(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},VF(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),VF(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Gw(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Gw(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Gw(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Gw(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Gw(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Gw(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),KF=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Gw(t)} ${Gw(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},qF=e=>({padding:`${Gw(e.paddingBlockSM)} ${Gw(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),QF=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Gw(e.paddingBlock)} ${Gw(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},KF(e)),"&-sm":Object.assign({},qF(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),YF=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},KF(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},qF(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Gw(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Gw(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Gw(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Gw(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Gw(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},ZF=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,o=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},YT(e)),QF(e)),DF(e)),WF(e)),UF(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},$F=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Gw(e.inputAffixPadding)}`}}}},JF=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},QF(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),$F(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}})}},eD=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},YT(e)),YF(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},NF(e)),XF(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},tD=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},nD=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},rD=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},iD=fP("Input",(e=>{const t=nP(e,OF(e));return[ZF(t),nD(t),JF(t),eD(t),tD(t),rD(t),RO(t)]}),MF,{resetFont:!1});function oD(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,i=n||{},o=i.noTrailing,a=void 0!==o&&o,s=i.noLeading,l=void 0!==s&&s,u=i.debounceMode,c=void 0===u?void 0:u,d=!1,f=0;function p(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=this,u=Date.now()-f;function h(){f=Date.now(),t.apply(s,i)}function m(){r=void 0}d||(l||!c||r||h(),p(),void 0===c&&u>e?l?(f=Date.now(),a||(r=setTimeout(c?m:h,e))):h():!0!==a&&(r=setTimeout(c?m:h,void 0===c?e-u:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}var aD=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},YT(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},YT(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},YT(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},JT(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Gw(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Gw(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function sD(e,t){const n=nP(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[aD(n)]}var lD=fP("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[sD(n,e)]})),uD=ee(re()),cD=ee(ie()),dD=ee(re()).default.createContext(null),fD=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:o,children:a,indeterminate:s=!1,style:l,onMouseEnter:u,onMouseLeave:c,skipGroup:d=!1,disabled:f}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:m,checkbox:A}=uD.useContext(hT),g=uD.useContext(dD),{isFormItemInput:v}=uD.useContext(Yj),y=uD.useContext(xT),b=null!==(n=(null==g?void 0:g.disabled)||f)&&void 0!==n?n:y,x=uD.useRef(p.value);OC("Checkbox")("checked"in p||!!g||!("value"in p),"usage","`value` is not a valid prop, do you mean `checked`?"),uD.useEffect((()=>{null==g||g.registerValue(p.value)}),[]),uD.useEffect((()=>{if(!d)return p.value!==x.current&&(null==g||g.cancelValue(x.current),null==g||g.registerValue(p.value),x.current=p.value),()=>null==g?void 0:g.cancelValue(p.value)}),[p.value]);const S=h("checkbox",r),_=Jk(S),[w,E,C]=lD(S,_),T=Object.assign({},p);g&&!d&&(T.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),g.toggleOption&&g.toggleOption({label:a,value:p.value})},T.name=g.name,T.checked=g.value.includes(p.value));const P=(0,cD.default)(`${S}-wrapper`,{[`${S}-rtl`]:"rtl"===m,[`${S}-wrapper-checked`]:T.checked,[`${S}-wrapper-disabled`]:b,[`${S}-wrapper-in-form-item`]:v},null==A?void 0:A.className,i,o,C,_,E),k=(0,cD.default)({[`${S}-indeterminate`]:s},xI,E),R=s?"mixed":void 0;return w(uD.createElement(RI,{component:"Checkbox",disabled:b},uD.createElement("label",{className:P,style:Object.assign(Object.assign({},null==A?void 0:A.style),l),onMouseEnter:u,onMouseLeave:c},uD.createElement(gF,Object.assign({"aria-checked":R},T,{prefixCls:S,className:k,disabled:b,ref:t})),void 0!==a&&uD.createElement("span",null,a))))},pD=uD.forwardRef(fD);pD.displayName="Checkbox";var hD=pD,mD=ee(re()),AD=ee(ie()),gD=mD.forwardRef(((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:o,className:a,rootClassName:s,style:l,onChange:u}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=mD.useContext(hT),[p,h]=mD.useState(c.value||n||[]),[m,A]=mD.useState([]);mD.useEffect((()=>{"value"in c&&h(c.value||[])}),[c.value]);const g=mD.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),v=d("checkbox",o),y=`${v}-group`,b=Jk(v),[x,S,_]=lD(v,b),w=rw(c,["value","disabled"]),E=i.length?g.map((e=>mD.createElement(hD,{prefixCls:v,key:e.value.toString(),disabled:"disabled"in e?e.disabled:c.disabled,value:e.value,checked:p.includes(e.value),onChange:e.onChange,className:`${y}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,C={toggleOption:e=>{const t=p.indexOf(e.value),n=ow(p);-1===t?n.push(e.value):n.splice(t,1),"value"in c||h(n),null==u||u(n.filter((e=>m.includes(e))).sort(((e,t)=>g.findIndex((t=>t.value===e))-g.findIndex((e=>e.value===t)))))},value:p,disabled:c.disabled,name:c.name,registerValue:e=>{A((t=>[].concat(ow(t),[e])))},cancelValue:e=>{A((t=>t.filter((t=>t!==e))))}},T=(0,AD.default)(y,{[`${y}-rtl`]:"rtl"===f},a,s,_,b,S);return x(mD.createElement("div",Object.assign({className:T,style:l},w,{ref:t}),mD.createElement(dD.Provider,{value:C},E)))})),vD=gD,yD=hD;yD.Group=vD,yD.__ANT_CHECKBOX=!0,yD.displayName="Checkbox";var bD=yD,xD=ee(re()),SD=ee(ie()),_D=(0,ee(re()).createContext)({}),wD=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},ED=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)0===a?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:a/i*100+"%"}],o[`${r}${t}-push-${a}`]={insetInlineStart:a/i*100+"%"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:a/i*100+"%"},o[`${r}${t}-offset-${a}`]={marginInlineStart:a/i*100+"%"},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o})(e,t),CD=fP("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),TD=fP("Grid",(e=>{const t=nP(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[wD(t),ED(t,""),ED(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Gw(t)})`]:Object.assign({},ED(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));function PD(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var kD=["xs","sm","md","lg","xl","xxl"],RD=xD.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=xD.useContext(hT),{gutter:i,wrap:o}=xD.useContext(_D),{prefixCls:a,span:s,order:l,offset:u,push:c,pull:d,className:f,children:p,flex:h,style:m}=e,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),g=n("col",a),[v,y,b]=TD(g),x={};let S={};kD.forEach((t=>{let n={};const i=e[t];"number"==typeof i?n.span=i:"object"==typeof i&&(n=i||{}),delete A[t],S=Object.assign(Object.assign({},S),{[`${g}-${t}-${n.span}`]:void 0!==n.span,[`${g}-${t}-order-${n.order}`]:n.order||0===n.order,[`${g}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${g}-${t}-push-${n.push}`]:n.push||0===n.push,[`${g}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${g}-rtl`]:"rtl"===r}),n.flex&&(S[`${g}-${t}-flex`]=!0,x[`--${g}-${t}-flex`]=PD(n.flex))}));const _=(0,SD.default)(g,{[`${g}-${s}`]:void 0!==s,[`${g}-order-${l}`]:l,[`${g}-offset-${u}`]:u,[`${g}-push-${c}`]:c,[`${g}-pull-${d}`]:d},f,S,y,b),w={};if(i&&i[0]>0){const e=i[0]/2;w.paddingLeft=e,w.paddingRight=e}return h&&(w.flex=PD(h),!1!==o||w.minWidth||(w.minWidth=0)),v(xD.createElement("div",Object.assign({},A,{style:Object.assign(Object.assign(Object.assign({},w),m),x),className:_,ref:t}),p))}));RD.displayName="Col";var ID=RD,OD=ee(re()),MD=ee(ie());function jD(e,t){const[n,r]=OD.useState("string"==typeof e?e:"");return OD.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<SB.length;n++){const i=SB[n];if(!t[i])continue;const o=e[i];if(void 0!==o)return void r(o)}})()}),[JSON.stringify(e),t]),n}var zD=OD.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:u}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=OD.useContext(hT),[p,h]=OD.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,A]=OD.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),g=jD(i,m),v=jD(r,m),y=OD.useRef(l),b=_B();OD.useEffect((()=>{const e=b.subscribe((e=>{A(e);const t=y.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&h(e)}));return()=>b.unsubscribe(e)}),[]);const x=d("row",n),[S,_,w]=CD(x),E=(()=>{const e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r<SB.length;r++){const i=SB[r];if(p[i]&&void 0!==t[i]){e[n]=t[i];break}}else e[n]=t})),e})(),C=(0,MD.default)(x,{[`${x}-no-wrap`]:!1===u,[`${x}-${v}`]:v,[`${x}-${g}`]:g,[`${x}-rtl`]:"rtl"===f},o,_,w),T={},P=null!=E[0]&&E[0]>0?E[0]/-2:void 0;P&&(T.marginLeft=P,T.marginRight=P);const[k,R]=E;T.rowGap=R;const I=OD.useMemo((()=>({gutter:[k,R],wrap:u})),[k,R,u]);return S(OD.createElement(_D.Provider,{value:I},OD.createElement("div",Object.assign({},c,{className:C,style:Object.assign(Object.assign({},T),a),ref:t}),s)))}));zD.displayName="Row";var BD=zD,FD=ee(ie()),DD=ee(re());function LD(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function ND(e,t,n,r){if(n){var i=t;"click"!==t.type?"file"===e.type||void 0===r?n(i):n(i=LD(t,e,r)):n(i=LD(t,e,""))}}var UD=DD.default.forwardRef((function(e,t){var n,r,i=e.inputElement,o=e.children,a=e.prefixCls,s=e.prefix,l=e.suffix,u=e.addonBefore,c=e.addonAfter,d=e.className,f=e.style,p=e.disabled,h=e.readOnly,m=e.focused,A=e.triggerFocus,g=e.allowClear,v=e.value,y=e.handleReset,b=e.hidden,x=e.classes,S=e.classNames,_=e.dataAttrs,w=e.styles,E=e.components,C=null!=o?o:i,T=(null==E?void 0:E.affixWrapper)||"span",P=(null==E?void 0:E.groupWrapper)||"span",k=(null==E?void 0:E.wrapper)||"span",R=(null==E?void 0:E.groupAddon)||"span",I=(0,DD.useRef)(null),O=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),M=(0,DD.cloneElement)(C,{value:v,className:(0,FD.default)(C.props.className,!O&&(null==S?void 0:S.variant))||null}),j=(0,DD.useRef)(null);if(DD.default.useImperativeHandle(t,(function(){return{nativeElement:j.current||I.current}})),O){var z,B=null;if(g){var F,D=!p&&!h&&v,L="".concat(a,"-clear-icon"),N="object"===gv(g)&&null!=g&&g.clearIcon?g.clearIcon:"✖";B=DD.default.createElement("span",{onClick:y,onMouseDown:function(e){return e.preventDefault()},className:(0,FD.default)(L,(F={},yv(F,"".concat(L,"-hidden"),!D),yv(F,"".concat(L,"-has-suffix"),!!l),F)),role:"button",tabIndex:-1},N)}var U="".concat(a,"-affix-wrapper"),G=(0,FD.default)(U,(yv(z={},"".concat(a,"-disabled"),p),yv(z,"".concat(U,"-disabled"),p),yv(z,"".concat(U,"-focused"),m),yv(z,"".concat(U,"-readonly"),h),yv(z,"".concat(U,"-input-with-clear-btn"),l&&g&&v),z),null==x?void 0:x.affixWrapper,null==S?void 0:S.affixWrapper,null==S?void 0:S.variant),H=(l||g)&&DD.default.createElement("span",{className:(0,FD.default)("".concat(a,"-suffix"),null==S?void 0:S.suffix),style:null==w?void 0:w.suffix},B,l);M=DD.default.createElement(T,dv({className:G,style:null==w?void 0:w.affixWrapper,onClick:function(e){var t;null!==(t=I.current)&&void 0!==t&&t.contains(e.target)&&(null==A||A())}},null==_?void 0:_.affixWrapper,{ref:I}),s&&DD.default.createElement("span",{className:(0,FD.default)("".concat(a,"-prefix"),null==S?void 0:S.prefix),style:null==w?void 0:w.prefix},s),M,H)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var W="".concat(a,"-group"),V="".concat(W,"-addon"),X="".concat(W,"-wrapper"),K=(0,FD.default)("".concat(a,"-wrapper"),W,null==x?void 0:x.wrapper,null==S?void 0:S.wrapper),q=(0,FD.default)(X,yv({},"".concat(X,"-disabled"),p),null==x?void 0:x.group,null==S?void 0:S.groupWrapper);M=DD.default.createElement(P,{className:q,ref:j},DD.default.createElement(k,{className:K},u&&DD.default.createElement(R,{className:V},u),M,c&&DD.default.createElement(R,{className:V},c)))}return DD.default.cloneElement(M,{className:(0,FD.default)(null===(n=M.props)||void 0===n?void 0:n.className,d)||null,style:wy(wy({},null===(r=M.props)||void 0===r?void 0:r.style),f),hidden:b})})),GD=UD,HD=ee(ie()),WD=ee(re()),VD=ee(re()),XD=["show"];function KD(e,t){return VD.useMemo((function(){var n={};t&&(n.show="object"===gv(t)&&t.formatter?t.formatter:!!t);var r=n=wy(wy({},n),e),i=r.show,o=bv(r,XD);return wy(wy({},o),{},{show:!!i,showFormatter:"function"==typeof i?i:void 0,strategy:o.strategy||function(e){return e.length}})}),[e,t])}var qD=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],QD=(0,WD.forwardRef)((function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,o=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,u=void 0===l?"rc-input":l,c=e.disabled,d=e.htmlSize,f=e.className,p=e.maxLength,h=e.suffix,m=e.showCount,A=e.count,g=e.type,v=void 0===g?"text":g,y=e.classes,b=e.classNames,x=e.styles,S=e.onCompositionStart,_=e.onCompositionEnd,w=bv(e,qD),E=Av((0,WD.useState)(!1),2),C=E[0],T=E[1],P=(0,WD.useRef)(!1),k=(0,WD.useRef)(null),R=(0,WD.useRef)(null),I=function(e){k.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}(k.current,e)},O=Av(VT(e.defaultValue,{value:e.value}),2),M=O[0],j=O[1],z=null==M?"":String(M),B=Av((0,WD.useState)(null),2),F=B[0],D=B[1],L=KD(A,m),N=L.max||p,U=L.strategy(z),G=!!N&&U>N;(0,WD.useImperativeHandle)(t,(function(){var e;return{focus:I,blur:function(){var e;null===(e=k.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=k.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=k.current)||void 0===e||e.select()},input:k.current,nativeElement:(null===(e=R.current)||void 0===e?void 0:e.nativeElement)||k.current}})),(0,WD.useEffect)((function(){T((function(e){return(!e||!c)&&e}))}),[c]);var H=function(e,t,n){var i,o,a=t;if(!P.current&&L.exceedFormatter&&L.max&&L.strategy(t)>L.max)t!==(a=L.exceedFormatter(t,{max:L.max}))&&D([(null===(i=k.current)||void 0===i?void 0:i.selectionStart)||0,(null===(o=k.current)||void 0===o?void 0:o.selectionEnd)||0]);else if("compositionEnd"===n.source)return;j(a),k.current&&ND(k.current,e,r,a)};(0,WD.useEffect)((function(){var e;F&&(null===(e=k.current)||void 0===e||e.setSelectionRange.apply(e,ow(F)))}),[F]);var W,V=function(e){H(e,e.target.value,{source:"change"})},X=function(e){P.current=!1,H(e,e.currentTarget.value,{source:"compositionEnd"}),null==_||_(e)},K=function(e){a&&"Enter"===e.key&&a(e),null==s||s(e)},q=function(e){T(!0),null==i||i(e)},Q=function(e){T(!1),null==o||o(e)},Y=G&&"".concat(u,"-out-of-range");return WD.default.createElement(GD,dv({},w,{prefixCls:u,className:(0,HD.default)(f,Y),handleReset:function(e){j(""),I(),k.current&&ND(k.current,e,r)},value:z,focused:C,triggerFocus:I,suffix:function(){var e=Number(N)>0;if(h||L.show){var t=L.showFormatter?L.showFormatter({value:z,count:U,maxLength:N}):"".concat(U).concat(e?" / ".concat(N):"");return WD.default.createElement(WD.default.Fragment,null,L.show&&WD.default.createElement("span",{className:(0,HD.default)("".concat(u,"-show-count-suffix"),yv({},"".concat(u,"-show-count-has-suffix"),!!h),null==b?void 0:b.count),style:wy({},null==x?void 0:x.count)},t),h)}return null}(),disabled:c,classes:y,classNames:b,styles:x}),(W=rw(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),WD.default.createElement("input",dv({autoComplete:n},W,{onChange:V,onFocus:q,onBlur:Q,onKeyDown:K,className:(0,HD.default)(u,yv({},"".concat(u,"-disabled"),c),null==b?void 0:b.input),style:null==x?void 0:x.input,ref:k,size:d,type:v,onCompositionStart:function(e){P.current=!0,null==S||S(e)},onCompositionEnd:X}))))})),YD=QD,ZD=ee(re()),$D=ee(re()),JD=ee(ie()),eL=e=>{const{getPrefixCls:t,direction:n}=(0,$D.useContext)(hT),{prefixCls:r,className:i}=e,o=t("input-group",r),a=t("input"),[s,l]=iD(a),u=(0,JD.default)(o,{[`${o}-lg`]:"large"===e.size,[`${o}-sm`]:"small"===e.size,[`${o}-compact`]:e.compact,[`${o}-rtl`]:"rtl"===n},l,i),c=(0,$D.useContext)(Yj),d=(0,$D.useMemo)((()=>Object.assign(Object.assign({},c),{isFormItemInput:!1})),[c]);return OC("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),s(ZD.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},ZD.createElement(Yj.Provider,{value:d},e.children)))},tL=ee(re()),nL=ee(ie()),rL=ee(re()),iL=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:rL.default.createElement(Bb,null)}),t},oL=ee(re());function aL(e,t){const n=(0,oL.useRef)([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,i;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(i=e.current)||void 0===i||i.input.removeAttribute("value"))})))};return(0,oL.useEffect)((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}var sL=(0,tL.forwardRef)(((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,status:o,size:a,disabled:s,onBlur:l,onFocus:u,suffix:c,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:m,styles:A,rootClassName:g,onChange:v,classNames:y,variant:b}=e,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);{const{deprecated:t}=OC("Input");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:_,input:w}=tL.default.useContext(hT),E=S("input",r),C=(0,tL.useRef)(null),T=Jk(E),[P,k,R]=iD(E,T),{compactSize:I,compactItemClassnames:O}=BI(E,_),M=OI((e=>{var t;return null!==(t=null!=a?a:I)&&void 0!==t?t:e})),j=tL.default.useContext(xT),z=null!=s?s:j,{status:B,hasFeedback:F,feedbackIcon:D}=(0,tL.useContext)(Yj),L=rB(B,o),N=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!F,U=(0,tL.useRef)(N);{const e=OC("Input");(0,tL.useEffect)((()=>{var t;N&&!U.current&&e(document.activeElement===(null===(t=C.current)||void 0===t?void 0:t.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),U.current=N}),[N])}const G=aL(C,!0),H=(F||c)&&tL.default.createElement(tL.default.Fragment,null,c,F&&D),W=iL(null!=d?d:null==w?void 0:w.allowClear),[V,X]=bB("input",b,i);return P(tL.default.createElement(YD,Object.assign({ref:qx(t,C),prefixCls:E,autoComplete:null==w?void 0:w.autoComplete},x,{disabled:z,onBlur:e=>{G(),null==l||l(e)},onFocus:e=>{G(),null==u||u(e)},style:Object.assign(Object.assign({},null==w?void 0:w.style),m),styles:Object.assign(Object.assign({},null==w?void 0:w.styles),A),suffix:H,allowClear:W,className:(0,nL.default)(h,g,R,T,O,null==w?void 0:w.className),onChange:e=>{G(),null==v||v(e)},addonBefore:p&&tL.default.createElement(Jj,{form:!0,space:!0},p),addonAfter:f&&tL.default.createElement(Jj,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},y),null==w?void 0:w.classNames),{input:(0,nL.default)({[`${E}-sm`]:"small"===M,[`${E}-lg`]:"large"===M,[`${E}-rtl`]:"rtl"===_},null==y?void 0:y.input,null===(n=null==w?void 0:w.classNames)||void 0===n?void 0:n.input,k),variant:(0,nL.default)({[`${E}-${V}`]:X},nB(E,L)),affixWrapper:(0,nL.default)({[`${E}-affix-wrapper-sm`]:"small"===M,[`${E}-affix-wrapper-lg`]:"large"===M,[`${E}-affix-wrapper-rtl`]:"rtl"===_},k),wrapper:(0,nL.default)({[`${E}-group-rtl`]:"rtl"===_},k),groupWrapper:(0,nL.default)({[`${E}-group-wrapper-sm`]:"small"===M,[`${E}-group-wrapper-lg`]:"large"===M,[`${E}-group-wrapper-rtl`]:"rtl"===_,[`${E}-group-wrapper-${V}`]:X},nB(`${E}-group-wrapper`,L,F),k)})})))}));sL.displayName="Input";var lL=sL,uL=ee(re()),cL=ee(ie()),dL=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},fL=fP(["Input","OTP"],(e=>{const t=nP(e,OF(e));return[dL(t)]}),MF),pL=ee(re()),hL=pL.forwardRef(((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:o,mask:a}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["value","onChange","onActiveChange","index","mask"]),l=n&&"string"==typeof a?a:n,u=pL.useRef(null);pL.useImperativeHandle(t,(()=>u.current));const c=()=>{fw((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return pL.createElement(lL,Object.assign({},s,{ref:u,value:l,onInput:e=>{r(o,e.target.value)},onFocus:c,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(o-1):"ArrowRight"===t&&i(o+1),c()},onKeyUp:e=>{"Backspace"!==e.key||n||i(o-1),c()},onMouseDown:c,onMouseUp:c,type:!0===a?"password":"text"}))})),mL=hL;function AL(e){return(e||"").split("")}var gL=uL.forwardRef(((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:o,value:a,onChange:s,formatter:l,variant:u,disabled:c,status:d,autoFocus:f,mask:p}=e,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);OC("Input.OTP")(!("string"==typeof p&&p.length>1),"usage","`mask` prop should be a single character.");const{getPrefixCls:m,direction:A}=uL.useContext(hT),g=m("otp",n),v=Gk(h,{aria:!0,data:!0,attr:!0}),y=Jk(g),[b,x,S]=fL(g,y),_=OI((e=>null!=i?i:e)),w=uL.useContext(Yj),E=rB(w.status,d),C=uL.useMemo((()=>Object.assign(Object.assign({},w),{status:E,hasFeedback:!1,feedbackIcon:null})),[w,E]),T=uL.useRef(null),P=uL.useRef({});uL.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=P.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=P.current[t])||void 0===e||e.blur()},nativeElement:T.current})));const k=e=>l?l(e):e,[R,I]=uL.useState(AL(k(o||"")));uL.useEffect((()=>{void 0!==a&&I(AL(a))}),[a]);const O=UT((e=>{I(e),s&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>R[t]!==e))&&s(e.join(""))})),M=UT(((e,t)=>{let n=ow(R);for(let r=0;r<e;r+=1)n[r]||(n[r]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(AL(t)),n=n.slice(0,r);for(let r=n.length-1;r>=0&&!n[r];r-=1)n.pop();const i=k(n.map((e=>e||" ")).join(""));return n=AL(i).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),j=(e,t)=>{var n;const i=M(e,t),o=Math.min(e+t.length,r-1);o!==e&&(null===(n=P.current[o])||void 0===n||n.focus()),O(i)},z=e=>{var t;null===(t=P.current[e])||void 0===t||t.focus()},B={variant:u,disabled:c,status:E,mask:p};return b(uL.createElement("div",Object.assign({},v,{ref:T,className:(0,cL.default)(g,{[`${g}-sm`]:"small"===_,[`${g}-lg`]:"large"===_,[`${g}-rtl`]:"rtl"===A},S,x)}),uL.createElement(Yj.Provider,{value:C},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,r=R[t]||"";return uL.createElement(mL,Object.assign({ref:e=>{P.current[t]=e},key:n,index:t,size:_,htmlSize:1,className:`${g}-input`,onChange:j,value:r,onActiveChange:z,autoFocus:0===t&&f},B))})))))})),vL=gL,yL=ee(re()),bL=ee(re()),xL=ee(ie()),SL=e=>e?yL.createElement(nx,null):yL.createElement(Zb,null),_L={click:"onClick",hover:"onMouseOver"},wL=yL.forwardRef(((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:o=SL}=e,a="object"==typeof i&&void 0!==i.visible,[s,l]=(0,bL.useState)((()=>!!a&&i.visible)),u=(0,bL.useRef)(null);yL.useEffect((()=>{a&&l(i.visible)}),[a,i]);const c=aL(u),d=()=>{n||(s&&c(),l((e=>{var t;const n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:f,prefixCls:p,inputPrefixCls:h,size:m}=e,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=yL.useContext(hT),v=g("input",h),y=g("input-password",p),b=i&&(e=>{const t=_L[r]||"",n=o(s),i={[t]:d,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return yL.cloneElement(yL.isValidElement(n)?n:yL.createElement("span",null,n),i)})(y),x=(0,xL.default)(y,f,{[`${y}-${m}`]:!!m}),S=Object.assign(Object.assign({},rw(A,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:x,prefixCls:v,suffix:b});return m&&(S.size=m),yL.createElement(lL,Object.assign({ref:qx(t,u)},S))}));wL.displayName="Input.Password";var EL=wL,CL=ee(re()),TL=ee(ie()),PL=CL.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:o,suffix:a,enterButton:s=!1,addonAfter:l,loading:u,disabled:c,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:h}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:A,direction:g}=CL.useContext(hT),v=CL.useRef(!1),y=A("input-search",n),b=A("input",r),{compactSize:x}=BI(y,g),S=OI((e=>{var t;return null!==(t=null!=o?o:x)&&void 0!==t?t:e})),_=CL.useRef(null),w=e=>{var t;document.activeElement===(null===(t=_.current)||void 0===t?void 0:t.input)&&e.preventDefault()},E=e=>{var t,n;d&&d(null===(n=null===(t=_.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},C="boolean"==typeof s?CL.createElement(Ox,null):null,T=`${y}-button`;let P;const k=s||{},R=k.type&&!0===k.type.__ANT_BUTTON;P=R||"button"===k.type?Vk(k,Object.assign({onMouseDown:w,onClick:e=>{var t,n;null===(n=null===(t=null==k?void 0:k.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),E(e)},key:"enterButton"},R?{className:T,size:S}:{})):CL.createElement(BO,{className:T,type:s?"primary":void 0,size:S,disabled:c,key:"enterButton",onMouseDown:w,onClick:E,loading:u,icon:C},s),l&&(P=[P,Vk(l,{key:"addonAfter"})]);const I=(0,TL.default)(y,{[`${y}-rtl`]:"rtl"===g,[`${y}-${S}`]:!!S,[`${y}-with-button`]:!!s},i);return CL.createElement(lL,Object.assign({ref:qx(_,t),onPressEnter:e=>{v.current||u||E(e)}},m,{size:S,onCompositionStart:e=>{v.current=!0,null==p||p(e)},onCompositionEnd:e=>{v.current=!1,null==h||h(e)},prefixCls:b,addonAfter:P,suffix:a,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),null==f||f(e)},className:I,disabled:c}))}));PL.displayName="Search";var kL,RL=PL,IL=ee(re()),OL=ee(re()),ML=ee(ie()),jL=ee(ie()),zL=ee(re()),BL=ee(ie()),FL=ee(re()),DL=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],LL={};function NL(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;kL||((kL=document.createElement("textarea")).setAttribute("tab-index","-1"),kL.setAttribute("aria-hidden","true"),document.body.appendChild(kL)),e.getAttribute("wrap")?kL.setAttribute("wrap",e.getAttribute("wrap")):kL.removeAttribute("wrap");var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&LL[n])return LL[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:DL.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(LL[n]=s),s}(e,t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;kL.setAttribute("style","".concat(l,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),kL.value=e.value||e.placeholder||"";var u,c=void 0,d=void 0,f=kL.scrollHeight;if("border-box"===s?f+=a:"content-box"===s&&(f-=o),null!==n||null!==r){kL.value=" ";var p=kL.scrollHeight-o;null!==n&&(c=p*n,"border-box"===s&&(c=c+o+a),f=Math.max(c,f)),null!==r&&(d=p*r,"border-box"===s&&(d=d+o+a),u=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:u,resize:"none"};return c&&(h.minHeight=c),d&&(h.maxHeight=d),h}var UL=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],GL=FL.forwardRef((function(e,t){var n=e,r=n.prefixCls,i=(n.onPressEnter,n.defaultValue),o=n.value,a=n.autoSize,s=n.onResize,l=n.className,u=n.style,c=n.disabled,d=n.onChange,f=(n.onInternalAutoSize,bv(n,UL)),p=Av(VT(i,{value:o,postState:function(e){return null!=e?e:""}}),2),h=p[0],m=p[1],A=FL.useRef();FL.useImperativeHandle(t,(function(){return{textArea:A.current}}));var g=Av(FL.useMemo((function(){return a&&"object"===gv(a)?[a.minRows,a.maxRows]:[]}),[a]),2),v=g[0],y=g[1],b=!!a,x=Av(FL.useState(2),2),S=x[0],_=x[1],w=Av(FL.useState(),2),E=w[0],C=w[1],T=function(){_(0)};eE((function(){b&&T()}),[o,v,y,b]),eE((function(){if(0===S)_(1);else if(1===S){var e=NL(A.current,!1,v,y);_(2),C(e)}else!function(){try{if(document.activeElement===A.current){var e=A.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;A.current.setSelectionRange(t,n),A.current.scrollTop=r}}catch(sK){}}()}),[S]);var P=FL.useRef(),k=function(){fw.cancel(P.current)};FL.useEffect((function(){return k}),[]);var R=b?E:null,I=wy(wy({},u),R);return 0!==S&&1!==S||(I.overflowY="hidden",I.overflowX="hidden"),FL.createElement(nw,{onResize:function(e){2===S&&(null==s||s(e),a&&(k(),P.current=fw((function(){T()}))))},disabled:!(a||s)},FL.createElement("textarea",dv({},f,{ref:A,style:I,className:(0,BL.default)(r,l,yv({},"".concat(r,"-disabled"),c)),disabled:c,value:h,onChange:function(e){m(e.target.value),null==d||d(e)}})))})),HL=GL,WL=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","readOnly"],VL=zL.default.forwardRef((function(e,t){var n,r=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,u=e.maxLength,c=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,p=e.prefixCls,h=void 0===p?"rc-textarea":p,m=e.showCount,A=e.count,g=e.className,v=e.style,y=e.disabled,b=e.hidden,x=e.classNames,S=e.styles,_=e.onResize,w=e.readOnly,E=bv(e,WL),C=Av(VT(r,{value:i,defaultValue:r}),2),T=C[0],P=C[1],k=null==T?"":String(T),R=Av(zL.default.useState(!1),2),I=R[0],O=R[1],M=zL.default.useRef(!1),j=Av(zL.default.useState(null),2),z=j[0],B=j[1],F=(0,zL.useRef)(null),D=(0,zL.useRef)(null),L=function(){var e;return null===(e=D.current)||void 0===e?void 0:e.textArea},N=function(){L().focus()};(0,zL.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:D.current,focus:N,blur:function(){L().blur()},nativeElement:(null===(e=F.current)||void 0===e?void 0:e.nativeElement)||L()}})),(0,zL.useEffect)((function(){O((function(e){return!y&&e}))}),[y]);var U=Av(zL.default.useState(null),2),G=U[0],H=U[1];zL.default.useEffect((function(){var e;G&&(e=L()).setSelectionRange.apply(e,ow(G))}),[G]);var W,V=KD(A,m),X=null!==(n=V.max)&&void 0!==n?n:u,K=Number(X)>0,q=V.strategy(k),Q=!!X&&q>X,Y=function(e,t){var n=t;!M.current&&V.exceedFormatter&&V.max&&V.strategy(t)>V.max&&t!==(n=V.exceedFormatter(t,{max:V.max}))&&H([L().selectionStart||0,L().selectionEnd||0]),P(n),ND(e.currentTarget,e,s,n)},Z=f;V.show&&(W=V.showFormatter?V.showFormatter({value:k,count:q,maxLength:X}):"".concat(q).concat(K?" / ".concat(X):""),Z=zL.default.createElement(zL.default.Fragment,null,Z,zL.default.createElement("span",{className:(0,jL.default)("".concat(h,"-data-count"),null==x?void 0:x.count),style:null==S?void 0:S.count},W)));var $=!E.autoSize&&!m&&!l;return zL.default.createElement(GD,{ref:F,value:k,allowClear:l,handleReset:function(e){P(""),N(),ND(L(),e,s)},suffix:Z,prefixCls:h,classNames:wy(wy({},x),{},{affixWrapper:(0,jL.default)(null==x?void 0:x.affixWrapper,yv(yv({},"".concat(h,"-show-count"),m),"".concat(h,"-textarea-allow-clear"),l))}),disabled:y,focused:I,className:(0,jL.default)(g,Q&&"".concat(h,"-out-of-range")),style:wy(wy({},v),z&&!$?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof W?W:void 0}},hidden:b,readOnly:w},zL.default.createElement(HL,dv({},E,{maxLength:u,onKeyDown:function(e){var t=E.onPressEnter,n=E.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){Y(e,e.target.value)},onFocus:function(e){O(!0),null==o||o(e)},onBlur:function(e){O(!1),null==a||a(e)},onCompositionStart:function(e){M.current=!0,null==c||c(e)},onCompositionEnd:function(e){M.current=!1,Y(e,e.currentTarget.value),null==d||d(e)},className:(0,jL.default)(null==x?void 0:x.textarea),style:wy(wy({},null==S?void 0:S.textarea),{},{resize:null==v?void 0:v.resize}),disabled:y,prefixCls:h,onResize:function(e){var t;null==_||_(e),null!==(t=L())&&void 0!==t&&t.style.height&&B(!0)},ref:D,readOnly:w})))})),XL=VL,KL=(0,OL.forwardRef)(((e,t)=>{var n,r;const{prefixCls:i,bordered:o=!0,size:a,disabled:s,status:l,allowClear:u,classNames:c,rootClassName:d,className:f,style:p,styles:h,variant:m}=e,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);{const{deprecated:t}=OC("TextArea");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:g,direction:v,textArea:y}=IL.useContext(hT),b=OI(a),x=IL.useContext(xT),S=null!=s?s:x,{status:_,hasFeedback:w,feedbackIcon:E}=IL.useContext(Yj),C=rB(_,l),T=IL.useRef(null);IL.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=T.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=T.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=T.current)||void 0===e?void 0:e.blur()}}}));const P=g("input",i),k=Jk(P),[R,I,O]=iD(P,k),[M,j]=bB("textArea",m,o),z=iL(null!=u?u:null==y?void 0:y.allowClear);return R(IL.createElement(XL,Object.assign({autoComplete:null==y?void 0:y.autoComplete},A,{style:Object.assign(Object.assign({},null==y?void 0:y.style),p),styles:Object.assign(Object.assign({},null==y?void 0:y.styles),h),disabled:S,allowClear:z,className:(0,ML.default)(O,k,f,d,null==y?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},c),null==y?void 0:y.classNames),{textarea:(0,ML.default)({[`${P}-sm`]:"small"===b,[`${P}-lg`]:"large"===b},I,null==c?void 0:c.textarea,null===(n=null==y?void 0:y.classNames)||void 0===n?void 0:n.textarea),variant:(0,ML.default)({[`${P}-${M}`]:j},nB(P,C)),affixWrapper:(0,ML.default)(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:"rtl"===v,[`${P}-affix-wrapper-sm`]:"small"===b,[`${P}-affix-wrapper-lg`]:"large"===b,[`${P}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},I)}),prefixCls:P,suffix:w&&IL.createElement("span",{className:`${P}-textarea-suffix`},E),ref:T})))})),qL=lL;qL.Group=eL,qL.Search=RL,qL.TextArea=KL,qL.Password=EL,qL.OTP=vL;var QL=qL,YL=ee(re()),ZL=ee(re()),$L=ee(ie()),JL=ee(re());function eN(e){const[t,n]=JL.useState(e);return JL.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}var tN=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},nN=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Gw(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Gw(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),rN=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},iN=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},YT(e)),nN(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},rN(e,e.controlHeightSM)),"&-large":Object.assign({},rN(e,e.controlHeightLG))})}},oN=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:u,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},YT(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",lineHeight:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:iz,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},aN=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},sN=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},lN=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),uN=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:lN(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},cN=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${r}-col-24${n}-label,\n ${r}-col-xl-24${n}-label`]:lN(e)}},[`@media (max-width: ${Gw(e.screenXSMax)})`]:[uN(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:lN(e)}}}],[`@media (max-width: ${Gw(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:lN(e)}}},[`@media (max-width: ${Gw(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:lN(e)}}},[`@media (max-width: ${Gw(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:lN(e)}}}}},dN=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n ${n}-col-24${t}-label,\n ${n}-col-xl-24${t}-label`]:lN(e),[`@media (max-width: ${Gw(e.screenXSMax)})`]:[uN(e),{[t]:{[`${n}-col-xs-24${t}-label`]:lN(e)}}],[`@media (max-width: ${Gw(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:lN(e)}},[`@media (max-width: ${Gw(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:lN(e)}},[`@media (max-width: ${Gw(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:lN(e)}}}},fN=(e,t)=>nP(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),pN=fP("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=fN(e,n);return[iN(r),oN(r),tN(r),aN(r,r.componentCls),aN(r,r.formItemCls),sN(r),cN(r),dN(r),ez(r),iz]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3}),hN=[];function mN(e,t,n){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}var AN=e=>{let{help:t,helpStatus:n,errors:r=hN,warnings:i=hN,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=YL.useContext(Qj),u=`${l}-item-explain`,c=Jk(l),[d,f,p]=pN(l,c),h=(0,ZL.useMemo)((()=>fI(l)),[l]),m=eN(r),A=eN(i),g=YL.useMemo((()=>null!=t?[mN(t,"help",n)]:[].concat(ow(m.map(((e,t)=>mN(e,"error","error",t)))),ow(A.map(((e,t)=>mN(e,"warning","warning",t)))))),[t,n,m,A]),v={};return a&&(v.id=`${a}_help`),d(YL.createElement(_k,{motionDeadline:h.motionDeadline,motionName:`${l}-show-help`,visible:!!g.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return YL.createElement("div",Object.assign({},v,{className:(0,$L.default)(u,t,p,c,o,f),style:n,role:"alert"}),YL.createElement(Sk,Object.assign({keys:g},fI(l),{motionName:`${l}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:i,style:o}=e;return YL.createElement("div",{key:t,className:(0,$L.default)(i,{[`${u}-${r}`]:r}),style:o},n)})))})))},gN=ee(re()),vN=ee(re()),yN=ee(ie()),bN=ee(re()),xN=["parentNode"];function SN(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function _N(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:xN.includes(n)?`form_item_${n}`:n}function wN(e,t,n,r,i,o){let a=r;return void 0!==o?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function EN(e){return SN(e).join("_")}function CN(e){const[t]=Oj(),n=bN.useRef({}),r=bN.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=EN(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(e,t){const n=f_(t.getFieldInstance(e));if(n)return n;const r=_N(SN(e),t.__INTERNAL__.name);return r?document.getElementById(r):void 0}(e,r);n&&$k(n,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=EN(e);return n.current[t]}})),[e,t]);return[r]}var TN=ee(re()),PN={},kN=(e,t)=>{const n=gN.useContext(xT),{getPrefixCls:r,direction:i,form:o}=gN.useContext(hT),{prefixCls:a,className:s,rootClassName:l,size:u,disabled:c=n,form:d,colon:f,labelAlign:p,labelWrap:h,labelCol:m,wrapperCol:A,hideRequiredMark:g,layout:v="horizontal",scrollToFirstError:y,requiredMark:b,onFinishFailed:x,name:S,style:_,feedbackIcons:w,variant:E}=e,C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),T=OI(u),P=gN.useContext(jC);!function(e){let{name:t}=e;const n=OC("Form");(0,TN.useEffect)((()=>{if(t)return PN[t]=(PN[t]||0)+1,n(PN[t]<=1,"usage","There exist multiple Form with same `name`."),()=>{PN[t]-=1}}),[t])}(e);const k=(0,vN.useMemo)((()=>void 0!==b?b:!g&&(!o||void 0===o.requiredMark||o.requiredMark)),[g,b,o]),R=null!=f?f:null==o?void 0:o.colon,I=r("form",a),O=Jk(I),[M,j,z]=pN(I,O),B=(0,yN.default)(I,`${I}-${v}`,{[`${I}-hide-required-mark`]:!1===k,[`${I}-rtl`]:"rtl"===i,[`${I}-${T}`]:T},z,O,j,null==o?void 0:o.className,s,l),[F]=CN(d),{__INTERNAL__:D}=F;D.name=S;const L=(0,vN.useMemo)((()=>({name:S,labelAlign:p,labelCol:m,labelWrap:h,wrapperCol:A,vertical:"vertical"===v,colon:R,requiredMark:k,itemRef:D.itemRef,form:F,feedbackIcons:w})),[S,p,m,A,v,R,k,F,w]),N=gN.useRef(null);gN.useImperativeHandle(t,(()=>{var e;return Object.assign(Object.assign({},F),{nativeElement:null===(e=N.current)||void 0===e?void 0:e.nativeElement})}));const U=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),F.scrollToField(t,n)}};return M(gN.createElement($j.Provider,{value:E},gN.createElement(bT,{disabled:c},gN.createElement(CT.Provider,{value:T},gN.createElement(qj,{validateMessages:P},gN.createElement(Xj.Provider,{value:L},gN.createElement(Vj,Object.assign({id:S},C,{name:S,onFinishFailed:e=>{if(null==x||x(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==y)return void U(y,t);o&&void 0!==o.scrollToFirstError&&U(o.scrollToFirstError,t)}},form:F,ref:N,style:Object.assign(Object.assign({},null==o?void 0:o.style),_),className:B}))))))))},RN=gN.forwardRef(kN);RN.displayName="Form";var IN=RN,ON=ee(re()),MN=ee(ie()),jN=ee(re()),zN=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,jN.useContext)(Yj);return OC("Form.Item")(void 0!==e,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus"),{status:e,errors:t,warnings:n}};zN.Context=Yj;var BN=zN,FN=ee(re()),DN=ee(re()),LN=ee(re()),NN=ee(re()),UN=ee(ie()),GN=ee(re()),HN=ee(ie()),WN=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},VN=dP(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=fN(e,n);return[WN(r)]})),XN=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:i,errors:o,warnings:a,_internalItemRender:s,extra:l,help:u,fieldId:c,marginBottom:d,onErrorVisibleChanged:f}=e,p=`${t}-item`,h=GN.useContext(Xj),m=r||h.wrapperCol||{},A=(0,HN.default)(`${p}-control`,m.className),g=GN.useMemo((()=>Object.assign({},h)),[h]);delete g.labelCol,delete g.wrapperCol;const v=GN.createElement("div",{className:`${p}-control-input`},GN.createElement("div",{className:`${p}-control-input-content`},i)),y=GN.useMemo((()=>({prefixCls:t,status:n})),[t,n]),b=null!==d||o.length||a.length?GN.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},GN.createElement(Qj.Provider,{value:y},GN.createElement(AN,{fieldId:c,errors:o,warnings:a,help:u,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&GN.createElement("div",{style:{width:0,height:d}})):null,x={};c&&(x.id=`${c}_extra`);const S=l?GN.createElement("div",Object.assign({},x,{className:`${p}-extra`}),l):null,_=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:v,errorList:b,extra:S}):GN.createElement(GN.Fragment,null,v,b,S);return GN.createElement(Xj.Provider,{value:g},GN.createElement(ID,Object.assign({},m,{className:A}),_),GN.createElement(VN,{prefixCls:t}))},KN=ee(re()),qN=ee(ie()),QN=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:a,required:s,requiredMark:l,tooltip:u,vertical:c}=e;var d;const[f]=XC("Form"),{labelAlign:p,labelCol:h,labelWrap:m,colon:A}=KN.useContext(Xj);if(!n)return null;const g=i||h||{},v=o||p,y=`${t}-item-label`,b=(0,qN.default)(y,"left"===v&&`${y}-left`,g.className,{[`${y}-wrap`]:!!m});let x=n;const S=!0===a||!1!==A&&!1!==a;S&&!c&&"string"==typeof n&&n.trim()&&(x=n.replace(/[:|:]\s*$/,""));const _=function(e){return e?"object"!=typeof e||KN.isValidElement(e)?{title:e}:e:null}(u);if(_){const{icon:e=KN.createElement(Tx,null)}=_,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(_,["icon"]),r=KN.createElement(nF,Object.assign({},n),KN.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));x=KN.createElement(KN.Fragment,null,x,r)}const w="optional"===l,E="function"==typeof l;E?x=l(x,{required:!!s}):w&&!s&&(x=KN.createElement(KN.Fragment,null,x,KN.createElement("span",{className:`${t}-item-optional`,title:""},(null==f?void 0:f.optional)||(null===(d=UC.Form)||void 0===d?void 0:d.optional))));const C=(0,qN.default)({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:w||E,[`${t}-item-no-colon`]:!S});return KN.createElement(ID,Object.assign({},g,{className:b}),KN.createElement("label",{htmlFor:r,className:C,title:"string"==typeof n?n:""},x))},YN=ee(re()),ZN=ee(ie()),$N={success:xb,warning:Xb,error:Bb,validating:fx};function JN(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:a,meta:s,noStyle:l}=e;const u=`${a}-item`,{feedbackIcons:c}=YN.useContext(Xj),d=wN(n,r,s,null,!!i,o),{isFormItemInput:f,status:p,hasFeedback:h,feedbackIcon:m}=YN.useContext(Yj),A=YN.useMemo((()=>{var e;let t;if(i){const o=!0!==i&&i.icons||c,a=d&&(null===(e=null==o?void 0:o({status:d,errors:n,warnings:r}))||void 0===e?void 0:e[d]),s=d&&$N[d];t=!1!==a&&s?YN.createElement("span",{className:(0,ZN.default)(`${u}-feedback-icon`,`${u}-feedback-icon-${d}`)},a||YN.createElement(s,null)):null}const o={status:d||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:t,isFormItemInput:!0};return l&&(o.status=(null!=d?d:p)||"",o.isFormItemInput=f,o.hasFeedback=!!(null!=i?i:h),o.feedbackIcon=void 0!==i?o.feedbackIcon:m),o}),[d,i,l,f,p]);return YN.createElement(Yj.Provider,{value:A},t)}function eU(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:o,errors:a,warnings:s,validateStatus:l,meta:u,hasFeedback:c,hidden:d,children:f,fieldId:p,required:h,isRequired:m,onSubItemMetaChange:A,layout:g}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),y=`${t}-item`,{requiredMark:b,vertical:x}=NN.useContext(Xj),S=x||"vertical"===g,_=NN.useRef(null),w=eN(a),E=eN(s),C=null!=o,T=!!(C||a.length||s.length),P=!!_.current&&gI(_.current),[k,R]=NN.useState(null);eE((()=>{if(T&&_.current){const e=getComputedStyle(_.current);R(parseInt(e.marginBottom,10))}}),[T,P]);const I=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return wN(e?w:u.errors,e?E:u.warnings,u,"",!!c,l)}(),O=(0,UN.default)(y,n,r,{[`${y}-with-help`]:C||w.length||E.length,[`${y}-has-feedback`]:I&&c,[`${y}-has-success`]:"success"===I,[`${y}-has-warning`]:"warning"===I,[`${y}-has-error`]:"error"===I,[`${y}-is-validating`]:"validating"===I,[`${y}-hidden`]:d,[`${y}-${g}`]:g});return NN.createElement("div",{className:O,style:i,ref:_},NN.createElement(BD,Object.assign({className:`${y}-row`},rw(v,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),NN.createElement(QN,Object.assign({htmlFor:p},e,{requiredMark:b,required:null!=h?h:m,prefixCls:t,vertical:S})),NN.createElement(XN,Object.assign({},e,u,{errors:w,warnings:E,prefixCls:t,status:I,help:o,marginBottom:k,onErrorVisibleChanged:e=>{e||R(null)}}),NN.createElement(Kj.Provider,{value:A},NN.createElement(JN,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:c,validateStatus:I},f)))),!!k&&NN.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-k}}))}var tU=ON.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>{const r=e[n],i=t[n];return r===i||"function"==typeof r||"function"==typeof i}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n])))),nU=function(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:s,children:l,required:u,label:c,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:h,help:m,layout:A}=e,{getPrefixCls:g}=ON.useContext(hT),{name:v}=ON.useContext(Xj),y=function(e){if("function"==typeof e)return e;const t=l_(e);return t.length<=1?t[0]:t}(l),b="function"==typeof y,x=ON.useContext(Kj),{validateTrigger:S}=ON.useContext(uM),_=void 0!==p?p:S,w=!(null==t),E=g("form",o),C=Jk(E),[T,P,k]=pN(E,C),R=OC("Form.Item");R(null!==t,"usage","`null` is passed as `name` property");const I=ON.useContext(cM),O=ON.useRef(),[M,j]=function(e){const[t,n]=FN.useState(e),r=(0,DN.useRef)(null),i=(0,DN.useRef)([]),o=(0,DN.useRef)(!1);return FN.useEffect((()=>(o.current=!1,()=>{o.current=!0,fw.cancel(r.current),r.current=null})),[]),[t,function(e){o.current||(null===r.current&&(i.current=[],r.current=fw((()=>{r.current=null,n((e=>{let t=e;return i.current.forEach((e=>{t=e(t)})),t}))}))),i.current.push(e))}]}({}),[z,B]=HT((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),F=(e,t)=>{j((n=>{const r=Object.assign({},n),i=[].concat(ow(e.name.slice(0,-1)),ow(t)).join("__SPLIT__");return e.destroy?delete r[i]:r[i]=e,r}))},[D,L]=ON.useMemo((()=>{const e=ow(z.errors),t=ow(z.warnings);return Object.values(M).forEach((n=>{e.push.apply(e,ow(n.errors||[])),t.push.apply(t,ow(n.warnings||[]))})),[e,t]}),[M,z.errors,z.warnings]),N=function(){const{itemRef:e}=LN.useContext(Xj),t=LN.useRef({});return function(n,r){const i=r&&"object"==typeof r&&r.ref,o=n.join("_");return t.current.name===o&&t.current.originRef===i||(t.current.name=o,t.current.originRef=i,t.current.ref=qx(e(n),i)),t.current.ref}}();function U(t,i,o){return n&&!h?ON.createElement(JN,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:z,errors:D,warnings:L,noStyle:!0},t):ON.createElement(eU,Object.assign({key:"row"},e,{className:(0,MN.default)(r,k,C,P),prefixCls:E,fieldId:i,isRequired:o,errors:D,warnings:L,meta:z,onSubItemMetaChange:F,layout:A}),t)}if(!w&&!b&&!i)return T(U(y));let G={};return"string"==typeof c?G.label=c:t&&(G.label=String(t)),d&&(G=Object.assign(Object.assign({},G),d)),T(ON.createElement(Sj,Object.assign({},e,{messageVariables:G,trigger:f,validateTrigger:_,onMetaChange:e=>{const t=null==I?void 0:I.getKey(e.name);if(B(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==m&&x){let n=e.name;if(e.destroy)n=O.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(ow(r)),O.current=n}x(e,n)}}}),((r,o,l)=>{const c=SN(t).length&&o?o.name:[],d=_N(c,v),p=void 0!==u?u:!!(null==s?void 0:s.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(l);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1}))),h=Object.assign({},r);let A=null;if(R(!(a&&i),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(y)&&w)R(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),A=y;else if(b&&(!a&&!i||w))R(!(!a&&!i),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),R(!w,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(!i||b||w)if(ON.isValidElement(y)){R(void 0===y.props.defaultValue,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const t=Object.assign(Object.assign({},y.props),h);if(t.id||(t.id=d),m||D.length>0||L.length>0||e.extra){const n=[];(m||D.length>0)&&n.push(`${d}_help`),e.extra&&n.push(`${d}_extra`),t["aria-describedby"]=n.join(" ")}D.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),Yx(y)&&(t.ref=N(c,y)),new Set([].concat(ow(SN(f)),ow(SN(_)))).forEach((e=>{t[e]=function(){for(var t,n,r,i,o,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];null===(r=h[e])||void 0===r||(t=r).call.apply(t,[h].concat(s)),null===(o=(i=y.props)[e])||void 0===o||(n=o).call.apply(n,[i].concat(s))}}));const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];A=ON.createElement(tU,{control:h,update:y,childProps:n},Vk(y,t))}else b&&(a||i)&&!w?A=y(l):(R(!c.length||!!n,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),A=y);else R(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");return U(A,d,p)})))};nU.useStatus=BN;var rU=nU,iU=ee(re()),oU=e=>{var{prefixCls:t,children:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","children"]);OC("Form.List")("number"==typeof r.name||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.");const{getPrefixCls:i}=iU.useContext(hT),o=i("form",t),a=iU.useMemo((()=>({prefixCls:o,status:"error"})),[o]);return iU.createElement(wj,Object.assign({},r),((e,t,r)=>iU.createElement(Qj.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))},aU=ee(re()),sU=IN;sU.Item=rU,sU.List=oU,sU.ErrorList=AN,sU.useForm=CN,sU.useFormInstance=function(){const{form:e}=(0,aU.useContext)(Xj);return e},sU.useWatch=Hj,sU.Provider=qj,sU.create=()=>{MC(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var lU=sU,uU=ee(re()),cU=ee(ie()),dU=ee(re()),fU=ee(ie()),pU=ee(re()),hU=ee(ie()),mU=ee(re()),AU=ee(ie());function gU(e){let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,o=`${i}-hidden`,[a,s]=mU.useState(!1);eE((()=>{0!==t&&s(!0)}),[0!==t]);const l=Math.max(Math.min(t,100),0),u=80*Math.PI,c=(e,t)=>mU.createElement("circle",{className:(0,AU.default)(e,`${r}-circle`),r:40,cx:"50",cy:"50",strokeWidth:20,style:t});return a?mU.createElement("span",{className:(0,AU.default)(i,`${r}-progress`,l<=0&&o)},mU.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},c(`${r}-circle-bg`),c("",{strokeDasharray:`${u*l/100} ${u*(100-l)/100}`,strokeDashoffset:""+u/4}))):null}function vU(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,o=`${i}-hidden`;return pU.createElement(pU.Fragment,null,pU.createElement("span",{className:(0,hU.default)(i,n>0&&o)},pU.createElement("span",{className:(0,hU.default)(r,`${t}-dot-spin`)},[1,2,3,4].map((e=>pU.createElement("i",{className:`${t}-dot-item`,key:e}))))),pU.createElement(gU,{prefixCls:t,percent:n}))}function yU(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&dU.isValidElement(n)?Vk(n,{className:(0,fU.default)(n.props.className,i),percent:r}):dU.createElement(vU,{prefixCls:t,percent:r})}var bU,xU=new yC("antSpinMove",{to:{opacity:1}}),SU=new yC("antRotate",{to:{transform:"rotate(405deg)"}}),_U=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},YT(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translateY(-50%)",insetInlineStart:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:xU,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:SU,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},wU=fP("Spin",(e=>{const t=nP(e,{spinDotDefault:e.colorTextDescription});return[_U(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}})),EU=ee(re()),CU=[[30,.05],[70,.03],[96,.01]],TU=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:o,size:a="default",tip:s,wrapperClassName:l,style:u,children:c,fullscreen:d=!1,indicator:f,percent:p}=e,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:m}=uU.useContext(hT),A=m("spin",t),[g,v,y]=wU(A),[b,x]=uU.useState((()=>n&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,r))),S=function(e,t){const[n,r]=EU.useState(0),i=EU.useRef(),o="auto"===t;return EU.useEffect((()=>(o&&e&&(r(0),i.current=setInterval((()=>{r((e=>{const t=100-e;for(let n=0;n<CU.length;n+=1){const[r,i]=CU[n];if(e<=r)return e+t*i}return e}))}),200)),()=>{clearInterval(i.current)})),[o,e]),o?n:t}(b,p);uU.useEffect((()=>{if(n){const e=oD(r,(()=>{x(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}x(!1)}),[r,n]);const _=uU.useMemo((()=>void 0!==c&&!d),[c,d]);OC("Spin")(!s||_||d,"usage","`tip` only work in nest or fullscreen pattern.");const{direction:w,spin:E}=uU.useContext(hT),C=(0,cU.default)(A,null==E?void 0:E.className,{[`${A}-sm`]:"small"===a,[`${A}-lg`]:"large"===a,[`${A}-spinning`]:b,[`${A}-show-text`]:!!s,[`${A}-rtl`]:"rtl"===w},i,!d&&o,v,y),T=(0,cU.default)(`${A}-container`,{[`${A}-blur`]:b}),P=Object.assign(Object.assign({},null==E?void 0:E.style),u),k=uU.createElement("div",Object.assign({},h,{style:P,className:C,"aria-live":"polite","aria-busy":b}),uU.createElement(yU,{prefixCls:A,indicator:null!=f?f:bU,percent:S}),s&&(_||d)?uU.createElement("div",{className:`${A}-text`},s):null);return g(_?uU.createElement("div",Object.assign({},h,{className:(0,cU.default)(`${A}-nested-loading`,l,v,y)}),b&&uU.createElement("div",{key:"loading"},k),uU.createElement("div",{className:T,key:"container"},c)):d?uU.createElement("div",{className:(0,cU.default)(`${A}-fullscreen`,{[`${A}-fullscreen-show`]:b},o,v,y)},k):k)};TU.setDefaultIndicator=e=>{bU=e},TU.displayName="Spin";var PU=TU,kU=ee(re()),RU=null,IU=e=>e(),OU=[],MU={};function jU(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=MU,o=(null==e?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}var zU=kU.default.forwardRef(((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,kU.useContext)(hT),o=MU.prefixCls||i("message"),a=(0,kU.useContext)(vz),[s,l]=VR(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),a.message));return kU.default.useImperativeHandle(t,(()=>{const e=Object.assign({},s);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),s[t].apply(s,arguments)}})),{instance:e,sync:r}})),l})),BU=kU.default.forwardRef(((e,t)=>{const[n,r]=kU.default.useState(jU),i=()=>{r(jU)};kU.default.useEffect(i,[]);const o=Bk(),a=o.getRootPrefixCls(),s=o.getIconPrefixCls(),l=o.getTheme(),u=kU.default.createElement(zU,{ref:t,sync:i,messageConfig:n});return kU.default.createElement(Lk,{prefixCls:a,iconPrefixCls:s,theme:l},o.holderRender?o.holderRender(u):u)}));function FU(){if(!RU){const e=document.createDocumentFragment(),t={fragment:e};return RU=t,void IU((()=>{nI(kU.default.createElement(BU,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,FU())}))}}),e)}))}RU.instance&&(OU.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":IU((()=>{const t=RU.instance.open(Object.assign(Object.assign({},MU),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":IU((()=>{null==RU||RU.instance.destroy(e.key)}));break;default:IU((()=>{var n;const r=(n=RU.instance)[t].apply(n,ow(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),OU=[])}var DU={open:function(e){const t=LR((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return OU.push(r),()=>{n?IU((()=>{n()})):r.skipped=!0}}));return FU(),t},destroy:e=>{OU.push({type:"destroy",key:e}),FU()},config:function(e){MU=Object.assign(Object.assign({},MU),e),IU((()=>{var e;null===(e=null==RU?void 0:RU.sync)||void 0===e||e.call(RU)}))},useMessage:function(e){return VR(e)},_InternalPanelDoNotUseOrYouWillBeFired:DR},LU=DU;["success","info","warning","error","loading"].forEach((e=>{LU[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){Bk().holderRender||Ok("message");const n=LR((n=>{let r;const i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return OU.push(i),()=>{r?IU((()=>{r()})):i.skipped=!0}}));return FU(),n}(e,n)}}));var NU=LU,UU=ee(re()),GU=ee(Se()),HU=ee(re()),{createElement:WU,createContext:VU,createRef:XU,forwardRef:KU,useCallback:qU,useContext:QU,useEffect:YU,useImperativeHandle:ZU,useLayoutEffect:$U,useMemo:JU,useRef:eG,useState:tG}=HU,nG=HU["useId".toString()],rG=$U,iG=VU(null);iG.displayName="PanelGroupContext";var oG=rG,aG="function"==typeof nG?nG:()=>null,sG=0;function lG(e=null){const t=aG(),n=eG(e||t||null);return null===n.current&&(n.current=""+sG++),null!=e?e:n.current}function uG(e){var t=e,{children:n,className:r="",collapsedSize:i,collapsible:o,defaultSize:a,forwardedRef:s,id:l,maxSize:u,minSize:c,onCollapse:d,onExpand:f,onResize:p,order:h,style:m,tagName:A="div"}=t,g=Y(t,["children","className","collapsedSize","collapsible","defaultSize","forwardedRef","id","maxSize","minSize","onCollapse","onExpand","onResize","order","style","tagName"]);const v=QU(iG);if(null===v)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:b,getPanelSize:x,getPanelStyle:S,groupId:_,isPanelCollapsed:w,reevaluatePanelConstraints:E,registerPanel:C,resizePanel:T,unregisterPanel:P}=v,k=lG(l),R=eG({callbacks:{onCollapse:d,onExpand:f,onResize:p},constraints:{collapsedSize:i,collapsible:o,defaultSize:a,maxSize:u,minSize:c},id:k,idIsFromProps:void 0!==l,order:h});eG({didLogMissingDefaultSizeWarning:!1}),oG((()=>{const{callbacks:e,constraints:t}=R.current,n=q({},t);R.current.id=k,R.current.idIsFromProps=void 0!==l,R.current.order=h,e.onCollapse=d,e.onExpand=f,e.onResize=p,t.collapsedSize=i,t.collapsible=o,t.defaultSize=a,t.maxSize=u,t.minSize=c,n.collapsedSize===t.collapsedSize&&n.collapsible===t.collapsible&&n.maxSize===t.maxSize&&n.minSize===t.minSize||E(R.current,n)})),oG((()=>{const e=R.current;return C(e),()=>{P(e)}}),[h,k,C,P]),ZU(s,(()=>({collapse:()=>{y(R.current)},expand:e=>{b(R.current,e)},getId:()=>k,getSize:()=>x(R.current),isCollapsed:()=>w(R.current),isExpanded:()=>!w(R.current),resize:e=>{T(R.current,e)}})),[y,b,x,w,k,T]);const I=S(R.current,a);return WU(A,Q(q({},g),{children:n,className:r,id:l,style:q(q({},I),m),"data-panel":"","data-panel-collapsible":o||void 0,"data-panel-group-id":_,"data-panel-id":k,"data-panel-size":parseFloat(""+I.flexGrow).toFixed(1)}))}var cG=KU(((e,t)=>WU(uG,Q(q({},e),{forwardedRef:t}))));uG.displayName="Panel",cG.displayName="forwardRef(Panel)";var dG=null,fG=null;function pG(e,t){const n=function(e,t){if(t){const e=!!(t&CG),n=!!(t&TG);if(t&wG)return e?"se-resize":n?"ne-resize":"e-resize";if(t&EG)return e?"sw-resize":n?"nw-resize":"w-resize";if(e)return"s-resize";if(n)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);dG!==n&&(dG=n,null===fG&&(fG=document.createElement("style"),document.head.appendChild(fG)),fG.innerHTML=`*{cursor: ${n}!important;}`)}function hG(e){return"keydown"===e.type}function mG(e){return e.type.startsWith("pointer")}function AG(e){return e.type.startsWith("mouse")}function gG(e){if(mG(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(AG(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}var vG=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function yG(e){const t=getComputedStyle(e);return"fixed"===t.position||!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=_G(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||+t.opacity<1||"transform"in t&&"none"!==t.transform||"webkitTransform"in t&&"none"!==t.webkitTransform||"mixBlendMode"in t&&"normal"!==t.mixBlendMode||"filter"in t&&"none"!==t.filter||"webkitFilter"in t&&"none"!==t.webkitFilter||"isolation"in t&&"isolate"===t.isolation||!!vG.test(t.willChange)||"touch"===t.webkitOverflowScrolling}function bG(e){let t=e.length;for(;t--;){const n=e[t];if(GG(n,"Missing node"),yG(n))return n}return null}function xG(e){return e&&Number(getComputedStyle(e).zIndex)||0}function SG(e){const t=[];for(;e;)t.push(e),e=_G(e);return t}function _G(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}var wG=1,EG=2,CG=4,TG=8,PG="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}(),kG=[],RG=!1,IG=new Map,OG=new Map,MG=new Set;function jG(e){const{target:t}=e,{x:n,y:r}=gG(e);RG=!0,FG({target:t,x:n,y:r}),NG(),kG.length>0&&(UG("down",e),e.preventDefault(),e.stopPropagation())}function zG(e){const{x:t,y:n}=gG(e);if(0===e.buttons&&(RG=!1,UG("up",e)),!RG){const{target:r}=e;FG({target:r,x:t,y:n})}UG("move",e),LG(),kG.length>0&&e.preventDefault()}function BG(e){const{target:t}=e,{x:n,y:r}=gG(e);OG.clear(),RG=!1,kG.length>0&&e.preventDefault(),UG("up",e),FG({target:t,x:n,y:r}),LG(),NG()}function FG({target:e,x:t,y:n}){kG.splice(0);let r=null;e instanceof HTMLElement&&(r=e),MG.forEach((e=>{const{element:i,hitAreaMargins:o}=e,a=i.getBoundingClientRect(),{bottom:s,left:l,right:u,top:c}=a,d=PG?o.coarse:o.fine;if(t>=l-d&&t<=u+d&&n>=c-d&&n<=s+d){if(null!==r&&i!==r&&!i.contains(r)&&!r.contains(i)&&function(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:SG(e),b:SG(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;GG(r,"Stacking order can only be calculated for elements with a common ancestor");const i=xG(bG(n.a)),o=xG(bG(n.b));if(i===o){const e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)};let i=e.length;for(;i--;){const n=e[i];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(i-o)}(r,i)>0){let e=r,t=!1;for(;e&&!e.contains(i);){if(f=e.getBoundingClientRect(),p=a,f.x<p.x+p.width&&f.x+f.width>p.x&&f.y<p.y+p.height&&f.y+f.height>p.y){t=!0;break}e=e.parentElement}if(t)return}kG.push(e)}var f,p}))}function DG(e,t){OG.set(e,t)}function LG(){let e=!1,t=!1;kG.forEach((n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0}));let n=0;OG.forEach((e=>{n|=e})),e&&t?pG("intersection",n):e?pG("horizontal",n):t?pG("vertical",n):null!==fG&&(document.head.removeChild(fG),dG=null,fG=null)}function NG(){IG.forEach(((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",BG),n.removeEventListener("pointerdown",jG),n.removeEventListener("pointerleave",zG),n.removeEventListener("pointermove",zG)})),window.removeEventListener("pointerup",BG),window.removeEventListener("pointercancel",BG),MG.size>0&&(RG?(kG.length>0&&IG.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",BG),n.addEventListener("pointerleave",zG),n.addEventListener("pointermove",zG))})),window.addEventListener("pointerup",BG),window.addEventListener("pointercancel",BG)):IG.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("pointerdown",jG,{capture:!0}),n.addEventListener("pointermove",zG))})))}function UG(e,t){MG.forEach((n=>{const{setResizeHandlerState:r}=n,i=kG.includes(n);r(e,i,t)}))}function GG(e,t){if(!e)throw console.error(t),Error(t)}function HG(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function WG(e,t,n=10){return 0===HG(e,t,n)}function VG(e,t,n){return 0===HG(e,t,n)}function XG({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];GG(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:s=0}=r;return HG(n,s)<0&&(n=o&&HG(n,(i+s)/2)<0?i:s),n=Math.min(a,n),n=parseFloat(n.toFixed(10))}function KG({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(VG(e,0))return t;const a=[...t],[s,l]=r;GG(null!=s,"Invalid first pivot index"),GG(null!=l,"Invalid second pivot index");let u=0;if("keyboard"===o){{const r=e<0?l:s,i=n[r];GG(i,`Panel constraints not found for index ${r}`);const{collapsedSize:o=0,collapsible:a,minSize:u=0}=i;if(a){const n=t[r];if(GG(null!=n,`Previous layout not found for panel index ${r}`),VG(n,o)){const t=u-n;HG(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,i=n[r];GG(i,`No panel constraints found for index ${r}`);const{collapsedSize:o=0,collapsible:a,minSize:u=0}=i;if(a){const n=t[r];if(GG(null!=n,`Previous layout not found for panel index ${r}`),VG(n,u)){const t=n-o;HG(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let i=e<0?l:s,o=0;for(;;){const e=t[i];if(GG(null!=e,`Previous layout not found for panel index ${i}`),o+=XG({panelConstraints:n,panelIndex:i,size:100})-e,i+=r,i<0||i>=n.length)break}const a=Math.min(Math.abs(e),Math.abs(o));e=e<0?0-a:a}{let r=e<0?s:l;for(;r>=0&&r<n.length;){const i=Math.abs(e)-Math.abs(u),o=t[r];GG(null!=o,`Previous layout not found for panel index ${r}`);const s=XG({panelConstraints:n,panelIndex:r,size:o-i});if(!VG(o,s)&&(u+=o-s,a[r]=s,u.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!VG(e[r],t[r],n))return!1;return!0}(i,a))return i;{const r=e<0?l:s,i=t[r];GG(null!=i,`Previous layout not found for panel index ${r}`);const o=i+u,c=XG({panelConstraints:n,panelIndex:r,size:o});if(a[r]=c,!VG(c,o)){let t=o-c,r=e<0?l:s;for(;r>=0&&r<n.length;){const i=a[r];GG(null!=i,`Previous layout not found for panel index ${r}`);const o=XG({panelConstraints:n,panelIndex:r,size:i+t});if(VG(i,o)||(t-=o-i,a[r]=o),VG(t,0))break;e>0?r--:r++}}}return VG(a.reduce(((e,t)=>t+e),0),100)?a:i}function qG({layout:e,panelsArray:t,pivotIndices:n}){let r=0,i=100,o=0,a=0;const s=n[0];return GG(null!=s,"No pivot index found"),t.forEach(((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:u=0}=n;t===s?(r=u,i=l):(o+=u,a+=l)})),{valueMax:Math.min(i,100-o),valueMin:Math.max(r,100-a),valueNow:e[s]}}function QG(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function YG(e,t,n=document){const r=QG(e,n).findIndex((e=>e.getAttribute("data-panel-resize-handle-id")===t));return null!=r?r:null}function ZG(e,t,n){const r=YG(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function $G(e,t=document){var n;if(t instanceof HTMLElement&&(null==t||null===(n=t.dataset)||void 0===n?void 0:n.panelGroupId)==e)return t;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function JG(e,t=document){const n=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return n||null}function eH({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:a}){eG({didWarnAboutMissingResizeHandle:!1}),oG((()=>{if(!o)return;const e=QG(n,o);for(let t=0;t<i.length-1;t++){const{valueMax:n,valueMin:o,valueNow:a}=qG({layout:r,panelsArray:i,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=i[t];GG(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(o)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach(((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")}))}}),[n,r,i,o]),YU((()=>{if(!o)return;const e=t.current;GG(e,"Eager values not found");const{panelDataArray:i}=e;GG(null!=$G(n,o),`No group found for id "${n}"`);const s=QG(n,o);GG(s,`No resize handles found for group id "${n}"`);const l=s.map((e=>{const t=e.getAttribute("data-panel-resize-handle-id");GG(t,"Resize handle element has no handle id attribute");const[s,l]=function(e,t,n,r=document){var i,o,a,s;const l=JG(t,r),u=QG(e,r),c=l?u.indexOf(l):-1;return[null!==(i=null===(o=n[c])||void 0===o?void 0:o.id)&&void 0!==i?i:null,null!==(a=null===(s=n[c+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(n,t,i,o);if(null==s||null==l)return()=>{};const u=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=i.findIndex((e=>e.id===s));if(l>=0){const e=i[l];GG(e,`No panel data found for index ${l}`);const s=r[l],{collapsedSize:u=0,collapsible:c,minSize:d=0}=e.constraints;if(null!=s&&c){const e=KG({delta:VG(s,u)?d-u:u-s,initialLayout:r,panelConstraints:i.map((e=>e.constraints)),pivotIndices:ZG(n,t,o),prevLayout:r,trigger:"keyboard"});r!==e&&a(e)}}break}}};return e.addEventListener("keydown",u),()=>{e.removeEventListener("keydown",u)}}));return()=>{l.forEach((e=>e()))}}),[o,e,t,n,r,i,a])}function tH(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function nH(e,t){const n="horizontal"===e,{x:r,y:i}=gG(t);return n?r:i}function rH(e,t,n,r,i,o){if(hG(e)){const t="horizontal"===n;let r=0;r=e.shiftKey?100:null!=i?i:10;let o=0;switch(e.key){case"ArrowDown":o=t?0:r;break;case"ArrowLeft":o=t?-r:0;break;case"ArrowRight":o=t?r:0;break;case"ArrowUp":o=t?0:-r;break;case"End":o=100;break;case"Home":o=-100}return o}return null==r?0:function(e,t,n,r,i){const o="horizontal"===n,a=JG(t,i);GG(a,`No resize handle element found for id "${t}"`);const s=a.getAttribute("data-panel-group-id");GG(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const u=nH(n,e),c=$G(s,i);GG(c,`No group element found for id "${s}"`);const d=c.getBoundingClientRect();return(u-l)/(o?d.width:d.height)*100}(e,t,n,r,o)}function iH(e,t,n){t.forEach(((t,r)=>{const i=e[r];GG(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:a,id:s}=i,{collapsedSize:l=0,collapsible:u}=a,c=n[s];if(null==c||t!==c){n[s]=t;const{onCollapse:e,onExpand:r,onResize:i}=o;i&&i(t,c),u&&(e||r)&&(!r||null!=c&&!WG(c,l)||WG(t,l)||r(),!e||null!=c&&WG(c,l)||!WG(t,l)||e())}}))}function oH(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function aH(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function sH(e){return`react-resizable-panels:${e}`}function lH(e){return e.map((e=>{const{constraints:t,id:n,idIsFromProps:r,order:i}=e;return r?n:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)})).sort(((e,t)=>e.localeCompare(t))).join(",")}function uH(e,t){try{const n=sH(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(n){}return null}function cH(e,t,n,r,i){var o;const a=sH(e),s=lH(t),l=null!==(o=uH(e,i))&&void 0!==o?o:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(a,JSON.stringify(l))}catch(u){console.error(u)}}function dH({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce(((e,t)=>e+t),0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map((e=>`${e}%`)).join(", ")}`);if(!VG(r,100))for(let o=0;o<t.length;o++){const e=n[o];GG(null!=e,`No layout data found for index ${o}`);const t=100/r*e;n[o]=t}let i=0;for(let o=0;o<t.length;o++){const e=n[o];GG(null!=e,`No layout data found for index ${o}`);const r=XG({panelConstraints:t,panelIndex:o,size:e});e!=r&&(i+=e-r,n[o]=r)}if(!VG(i,0))for(let o=0;o<t.length;o++){const e=n[o];GG(null!=e,`No layout data found for index ${o}`);const r=XG({panelConstraints:t,panelIndex:o,size:e+i});if(e!==r&&(i-=r-e,n[o]=r,VG(i,0)))break}return n}var fH={getItem:e=>(aH(fH),fH.getItem(e)),setItem:(e,t)=>{aH(fH),fH.setItem(e,t)}},pH={};function hH(e){var t=e,{autoSaveId:n=null,children:r,className:i="",direction:o,forwardedRef:a,id:s=null,onLayout:l=null,keyboardResizeBy:u=null,storage:c=fH,style:d,tagName:f="div"}=t,p=Y(t,["autoSaveId","children","className","direction","forwardedRef","id","onLayout","keyboardResizeBy","storage","style","tagName"]);const h=lG(s),m=eG(null),[A,g]=tG(null),[v,y]=tG([]),b=function(){const[e,t]=tG(0);return qU((()=>t((e=>e+1))),[])}(),x=eG({}),S=eG(new Map),_=eG(0),w=eG({autoSaveId:n,direction:o,dragState:A,id:h,keyboardResizeBy:u,onLayout:l,storage:c}),E=eG({layout:v,panelDataArray:[],panelDataArrayChanged:!1});eG({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),ZU(a,(()=>({getId:()=>w.current.id,getLayout:()=>{const{layout:e}=E.current;return e},setLayout:e=>{const{onLayout:t}=w.current,{layout:n,panelDataArray:r}=E.current,i=dH({layout:e,panelConstraints:r.map((e=>e.constraints))});tH(n,i)||(y(i),E.current.layout=i,t&&t(i),iH(r,i,x.current))}})),[]),oG((()=>{w.current.autoSaveId=n,w.current.direction=o,w.current.dragState=A,w.current.id=h,w.current.onLayout=l,w.current.storage=c})),eH({committedValuesRef:w,eagerValuesRef:E,groupId:h,layout:v,panelDataArray:E.current.panelDataArray,setLayout:y,panelGroupElement:m.current}),YU((()=>{const{panelDataArray:e}=E.current;if(n){if(0===v.length||v.length!==e.length)return;let t=pH[n];null==t&&(t=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(cH,100),pH[n]=t);const r=[...e],i=new Map(S.current);t(n,r,i,v,c)}}),[n,v,c]),YU((()=>{}));const C=qU((e=>{const{onLayout:t}=w.current,{layout:n,panelDataArray:r}=E.current;if(e.constraints.collapsible){const i=r.map((e=>e.constraints)),{collapsedSize:o=0,panelSize:a,pivotIndices:s}=gH(r,e,n);if(GG(null!=a,`Panel size not found for panel "${e.id}"`),!WG(a,o)){S.current.set(e.id,a);const l=KG({delta:AH(r,e)===r.length-1?a-o:o-a,initialLayout:n,panelConstraints:i,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});oH(n,l)||(y(l),E.current.layout=l,t&&t(l),iH(r,l,x.current))}}}),[]),T=qU(((e,t)=>{const{onLayout:n}=w.current,{layout:r,panelDataArray:i}=E.current;if(e.constraints.collapsible){const o=i.map((e=>e.constraints)),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:u}=gH(i,e,r),c=null!=t?t:l;if(WG(s,a)){const t=S.current.get(e.id),a=null!=t&&t>=c?t:c,l=KG({delta:AH(i,e)===i.length-1?s-a:a-s,initialLayout:r,panelConstraints:o,pivotIndices:u,prevLayout:r,trigger:"imperative-api"});oH(r,l)||(y(l),E.current.layout=l,n&&n(l),iH(i,l,x.current))}}}),[]),P=qU((e=>{const{layout:t,panelDataArray:n}=E.current,{panelSize:r}=gH(n,e,t);return GG(null!=r,`Panel size not found for panel "${e.id}"`),r}),[]),k=qU(((e,t)=>{const{panelDataArray:n}=E.current,r=AH(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:i,precision:o=3}){const a=n[i];let s;return s=null==a?null!=e?e.toPrecision(o):"1":1===r.length?"1":a.toPrecision(o),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:A,layout:v,panelData:n,panelIndex:r})}),[A,v]),R=qU((e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=gH(n,e,t);return GG(null!=o,`Panel size not found for panel "${e.id}"`),!0===i&&WG(o,r)}),[]),I=qU((e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=gH(n,e,t);return GG(null!=o,`Panel size not found for panel "${e.id}"`),!i||HG(o,r)>0}),[]),O=qU((e=>{const{panelDataArray:t}=E.current;t.push(e),t.sort(((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r})),E.current.panelDataArrayChanged=!0,b()}),[b]);oG((()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=w.current,{layout:r,panelDataArray:i}=E.current;let o=null;if(e){const t=function(e,t,n){var r,i;return null!==(i=(null!==(r=uH(e,n))&&void 0!==r?r:{})[lH(t)])&&void 0!==i?i:null}(e,i,n);t&&(S.current=new Map(Object.entries(t.expandToSizes)),o=t.layout)}null==o&&(o=function({panelDataArray:e}){const t=Array(e.length),n=e.map((e=>e.constraints));let r=0,i=100;for(let o=0;o<e.length;o++){const e=n[o];GG(e,`Panel constraints not found for index ${o}`);const{defaultSize:a}=e;null!=a&&(r++,t[o]=a,i-=a)}for(let o=0;o<e.length;o++){const a=n[o];GG(a,`Panel constraints not found for index ${o}`);const{defaultSize:s}=a;if(null!=s)continue;const l=i/(e.length-r);r++,t[o]=l,i-=l}return t}({panelDataArray:i}));const a=dH({layout:o,panelConstraints:i.map((e=>e.constraints))});tH(r,a)||(y(a),E.current.layout=a,t&&t(a),iH(i,a,x.current))}})),oG((()=>{const e=E.current;return()=>{e.layout=[]}}),[]);const M=qU((e=>function(t){t.preventDefault();const n=m.current;if(!n)return()=>null;const{direction:r,dragState:i,id:o,keyboardResizeBy:a,onLayout:s}=w.current,{layout:l,panelDataArray:u}=E.current,{initialLayout:c}=null!=i?i:{},d=ZG(o,e,n);let f=rH(t,e,r,i,a,n);const p="horizontal"===r;"rtl"===document.dir&&p&&(f=-f);const h=KG({delta:f,initialLayout:null!=c?c:l,panelConstraints:u.map((e=>e.constraints)),pivotIndices:d,prevLayout:l,trigger:hG(t)?"keyboard":"mouse-or-touch"}),A=!oH(l,h);(mG(t)||AG(t))&&_.current!=f&&(_.current=f,DG(e,A?0:p?f<0?wG:EG:f<0?CG:TG)),A&&(y(h),E.current.layout=h,s&&s(h),iH(u,h,x.current))}),[]),j=qU(((e,t)=>{const{onLayout:n}=w.current,{layout:r,panelDataArray:i}=E.current,o=i.map((e=>e.constraints)),{panelSize:a,pivotIndices:s}=gH(i,e,r);GG(null!=a,`Panel size not found for panel "${e.id}"`);const l=KG({delta:AH(i,e)===i.length-1?a-t:t-a,initialLayout:r,panelConstraints:o,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});oH(r,l)||(y(l),E.current.layout=l,n&&n(l),iH(i,l,x.current))}),[]),z=qU(((e,t)=>{const{layout:n,panelDataArray:r}=E.current,{collapsedSize:i=0,collapsible:o}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:u=0}=e.constraints,{panelSize:c}=gH(r,e,n);null!=c&&(o&&s&&WG(c,i)?WG(i,a)||j(e,a):c<u?j(e,u):c>l&&j(e,l))}),[j]),B=qU(((e,t)=>{const{direction:n}=w.current,{layout:r}=E.current;if(!m.current)return;const i=JG(e,m.current);GG(i,`Drag handle element not found for id "${e}"`);const o=nH(n,t);g({dragHandleId:e,dragHandleRect:i.getBoundingClientRect(),initialCursorPosition:o,initialLayout:r})}),[]),F=qU((()=>{g(null)}),[]),D=qU((e=>{const{panelDataArray:t}=E.current,n=AH(t,e);n>=0&&(t.splice(n,1),delete x.current[e.id],E.current.panelDataArrayChanged=!0,b())}),[b]),L=JU((()=>({collapsePanel:C,direction:o,dragState:A,expandPanel:T,getPanelSize:P,getPanelStyle:k,groupId:h,isPanelCollapsed:R,isPanelExpanded:I,reevaluatePanelConstraints:z,registerPanel:O,registerResizeHandle:M,resizePanel:j,startDragging:B,stopDragging:F,unregisterPanel:D,panelGroupElement:m.current})),[C,A,o,T,P,k,h,R,I,z,O,M,j,B,F,D]),N={display:"flex",flexDirection:"horizontal"===o?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return WU(iG.Provider,{value:L},WU(f,Q(q({},p),{children:r,className:i,id:s,ref:m,style:q(q({},N),d),"data-panel-group":"","data-panel-group-direction":o,"data-panel-group-id":h})))}var mH=KU(((e,t)=>WU(hH,Q(q({},e),{forwardedRef:t}))));function AH(e,t){return e.findIndex((e=>e===t||e.id===t.id))}function gH(e,t,n){const r=AH(e,t),i=r===e.length-1?[r-1,r]:[r,r+1],o=n[r];return Q(q({},t.constraints),{panelSize:o,pivotIndices:i})}function vH(e){var t,n,r=e,{children:i=null,className:o="",disabled:a=!1,hitAreaMargins:s,id:l,onBlur:u,onDragging:c,onFocus:d,style:f={},tabIndex:p=0,tagName:h="div"}=r,m=Y(r,["children","className","disabled","hitAreaMargins","id","onBlur","onDragging","onFocus","style","tabIndex","tagName"]);const A=eG(null),g=eG({onDragging:c});YU((()=>{g.current.onDragging=c}));const v=QU(iG);if(null===v)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:y,groupId:b,registerResizeHandle:x,startDragging:S,stopDragging:_,panelGroupElement:w}=v,E=lG(l),[C,T]=tG("inactive"),[P,k]=tG(!1),[R,I]=tG(null),O=eG({state:C});oG((()=>{O.current.state=C})),YU((()=>{if(a)I(null);else{const e=x(E);I((()=>e))}}),[a,E,x]);const M=null!==(t=null==s?void 0:s.coarse)&&void 0!==t?t:15,j=null!==(n=null==s?void 0:s.fine)&&void 0!==n?n:5;return YU((()=>{if(a||null==R)return;const e=A.current;return GG(e,"Element ref not attached"),function(e,t,n,r,i){var o;const{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:i},l=null!==(o=IG.get(a))&&void 0!==o?o:0;return IG.set(a,l+1),MG.add(s),NG(),function(){var t;OG.delete(e),MG.delete(s);const n=null!==(t=IG.get(a))&&void 0!==t?t:1;if(IG.set(a,n-1),NG(),1===n&&IG.delete(a),kG.includes(s)){const e=kG.indexOf(s);e>=0&&kG.splice(e,1),LG()}}}(E,e,y,{coarse:M,fine:j},((e,t,n)=>{if(t)switch(e){case"down":{T("drag"),S(E,n);const{onDragging:e}=g.current;e&&e(!0);break}case"move":{const{state:e}=O.current;"drag"!==e&&T("hover"),R(n);break}case"up":{T("hover"),_();const{onDragging:e}=g.current;e&&e(!1);break}}else T("inactive")}))}),[M,y,a,j,x,E,R,S,_]),function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){YU((()=>{if(e||null==n||null==r)return;const i=JG(t,r);if(null==i)return;const o=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=i.getAttribute("data-panel-group-id");GG(n,`No group element found for id "${n}"`);const o=QG(n,r),a=YG(n,t,r);GG(null!==a,`No resize element found for id "${t}"`),o[e.shiftKey?a>0?a-1:o.length-1:a+1<o.length?a+1:0].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}}),[r,e,t,n])}({disabled:a,handleId:E,resizeHandler:R,panelGroupElement:w}),WU(h,Q(q({},m),{children:i,className:o,id:l,onBlur:()=>{k(!1),null==u||u()},onFocus:()=>{k(!0),null==d||d()},ref:A,role:"separator",style:q(q({},{touchAction:"none",userSelect:"none"}),f),tabIndex:p,"data-panel-group-direction":y,"data-panel-group-id":b,"data-resize-handle":"","data-resize-handle-active":"drag"===C?"pointer":P?"keyboard":void 0,"data-resize-handle-state":C,"data-panel-resize-handle-enabled":!a,"data-panel-resize-handle-id":E}))}hH.displayName="PanelGroup",mH.displayName="forwardRef(PanelGroup)",vH.displayName="PanelResizeHandle",_e();var yH={extension:{type:t.Environment,name:"browser",priority:-1},test:()=>!0,load:()=>te(void 0,null,(function*(){yield Promise.resolve().then((()=>(vf(),gf)))}))};_e();var bH={extension:{type:t.Environment,name:"webworker",priority:0},test:()=>"undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,load:()=>te(void 0,null,(function*(){yield Promise.resolve().then((()=>(bf(),yf)))}))};_e(),eo(),yi(),_e(),_e();var xH,SH,_H=[];function wH(){return te(this,arguments,(function*(e={}){return void 0!==SH?SH:SH=yield(()=>te(this,null,(function*(){if(!$n.get().getNavigator().gpu)return!1;try{const t=yield navigator.gpu.requestAdapter(e);return yield t.requestDevice(),!0}catch(sK){return!1}})))()}))}i.handleByNamedList(t.Environment,_H),Sr(),Df(),Sr(),Df();var EH=["webgl","webgpu","canvas"];function CH(e){return te(this,null,(function*(){var t,n;let r,i=[];e.preference?(i.push(e.preference),EH.forEach((t=>{t!==e.preference&&i.push(t)}))):i=EH.slice(),yield function(e){return te(this,null,(function*(){if(e)for(let e=0;e<_H.length;e++){const t=_H[e];if(t.value.test())return void(yield t.value.load())}}))}(null==(t=e.manageImports)||t);let o={};for(let l=0;l<i.length;l++){const t=i[l];if("webgpu"===t&&(yield wH())){const{WebGPURenderer:t}=yield Promise.resolve().then((()=>(sA(),qm)));r=t,o=q(q({},e),e.webgpu);break}if("webgl"===t&&(a=null!=(n=e.failIfMajorPerformanceCaveat)?n:Tf.defaultOptions.failIfMajorPerformanceCaveat,void 0!==xH?xH:xH=(()=>{var e;const t={stencil:!0,failIfMajorPerformanceCaveat:null!=a?a:Tf.defaultOptions.failIfMajorPerformanceCaveat};try{if(!$n.get().getWebGLRenderingContext())return!1;let n=$n.get().createCanvas().getContext("webgl",t);const r=!!(null==(e=null==n?void 0:n.getContextAttributes())?void 0:e.stencil);if(n){const e=n.getExtension("WEBGL_lose_context");e&&e.loseContext()}return n=null,r}catch(sK){return!1}})())){const{WebGLRenderer:t}=yield Promise.resolve().then((()=>(rv(),nv)));r=t,o=q(q({},e),e.webgl);break}if("canvas"===t)throw o=q({},e),new Error("CanvasRenderer is not yet implemented")}var a;if(delete o.webgpu,delete o.webgl,!r)throw new Error("No available renderer for the current environment");const s=new r;return yield s.init(o),s}))}wn(),Je();var TH=class e{init(t){return te(this,null,(function*(){t=q({},t),this.renderer=yield CH(t),e._plugins.forEach((e=>{e.init.call(this,t)}))}))}render(){this.renderer.render({container:this.stage})}get canvas(){return this.renderer.canvas}get view(){return $e(Ye,"Application.view is deprecated, please use Application.canvas instead."),this.renderer.canvas}get screen(){return this.renderer.screen}destroy(t=!1,n=!1){const r=e._plugins.slice(0);r.reverse(),r.forEach((e=>{e.destroy.call(this)})),this.stage.destroy(n),this.stage=null,this.renderer.destroy(t),this.renderer=null}constructor(...e){this.stage=new en,void 0!==e[0]&&$e(Ye,"Application constructor options are deprecated, please use Application.init() instead.")}};TH._plugins=[];var PH=TH;i.handleByList(t.Application,PH._plugins),_e(),Ot();var kH=class{add(e){e.forEach((e=>{this._assetList.push(e)})),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}_next(){return te(this,null,(function*(){if(this._assetList.length&&this._isActive){this._isLoading=!0;const e=[],t=Math.min(this._assetList.length,this._maxConcurrent);for(let n=0;n<t;n++)e.push(this._assetList.pop());yield this._loader.load(e),this._isLoading=!1,this._next()}}))}get active(){return this._isActive}set active(e){this._isActive!==e&&(this._isActive=e,e&&!this._isLoading&&this._next())}constructor(e,t=!1){this._loader=e,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=t}};qi(),_e(),mi();var RH={extension:t.CacheParser,test:e=>Array.isArray(e)&&e.every((e=>e instanceof ii)),getCacheableAssets:(e,t)=>{const n={};return e.forEach((e=>{t.forEach(((t,r)=>{n[e+(0===r?"":r+1)]=t}))})),n}};function IH(e){return te(this,null,(function*(){if("Image"in globalThis)return new Promise((t=>{const n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e}));if("createImageBitmap"in globalThis&&"fetch"in globalThis){try{const t=yield(yield fetch(e)).blob();yield createImageBitmap(t)}catch(sK){return!1}return!0}return!1}))}_e();var OH={extension:{type:t.DetectionParser,priority:1},test:()=>te(void 0,null,(function*(){return IH("data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=")})),add:e=>te(void 0,null,(function*(){return[...e,"avif"]})),remove:e=>te(void 0,null,(function*(){return e.filter((e=>"avif"!==e))}))};_e();var MH=["png","jpg","jpeg"],jH={extension:{type:t.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:e=>te(void 0,null,(function*(){return[...e,...MH]})),remove:e=>te(void 0,null,(function*(){return e.filter((e=>!MH.includes(e)))}))};_e();var zH="WorkerGlobalScope"in globalThis&&globalThis instanceof globalThis.WorkerGlobalScope;function BH(e){return!zH&&""!==document.createElement("video").canPlayType(e)}var FH={extension:{type:t.DetectionParser,priority:0},test:()=>te(void 0,null,(function*(){return BH("video/mp4")})),add:e=>te(void 0,null,(function*(){return[...e,"mp4","m4v"]})),remove:e=>te(void 0,null,(function*(){return e.filter((e=>"mp4"!==e&&"m4v"!==e))}))};_e();var DH={extension:{type:t.DetectionParser,priority:0},test:()=>te(void 0,null,(function*(){return BH("video/ogg")})),add:e=>te(void 0,null,(function*(){return[...e,"ogv"]})),remove:e=>te(void 0,null,(function*(){return e.filter((e=>"ogv"!==e))}))};_e();var LH={extension:{type:t.DetectionParser,priority:0},test:()=>te(void 0,null,(function*(){return BH("video/webm")})),add:e=>te(void 0,null,(function*(){return[...e,"webm"]})),remove:e=>te(void 0,null,(function*(){return e.filter((e=>"webm"!==e))}))};_e();var NH={extension:{type:t.DetectionParser,priority:0},test:()=>te(void 0,null,(function*(){return IH("data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=")})),add:e=>te(void 0,null,(function*(){return[...e,"webp"]})),remove:e=>te(void 0,null,(function*(){return e.filter((e=>"webp"!==e))}))};Ot(),Cr(),Tr(),Hr();var UH=class{reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(e,t){const n={promise:null,parser:null};return n.promise=(()=>te(this,null,(function*(){var r,i;let o=null,a=null;if(t.loadParser&&(a=this._parserHash[t.loadParser],a||It(`[Assets] specified load parser "${t.loadParser}" not found while loading ${e}`)),!a){for(let n=0;n<this.parsers.length;n++){const i=this.parsers[n];if(i.load&&(null==(r=i.test)?void 0:r.call(i,e,t,this))){a=i;break}}if(!a)return It(`[Assets] ${e} could not be loaded as we don't know how to parse it, ensure the correct parser has been added`),null}o=yield a.load(e,t,this),n.parser=a;for(let e=0;e<this.parsers.length;e++){const r=this.parsers[e];r.parse&&r.parse&&(yield null==(i=r.testParse)?void 0:i.call(r,o,t,this))&&(o=(yield r.parse(o,t,this))||o,n.parser=r)}return o})))(),n}load(e,t){return te(this,null,(function*(){this._parsersValidated||this._validateParsers();let n=0;const r={},i=Rr(e),o=Er(e,(e=>({alias:[e],src:e}))),a=o.length,s=o.map((e=>te(this,null,(function*(){const i=Jn.toAbsolute(e.src);if(!r[e.src])try{this.promiseCache[i]||(this.promiseCache[i]=this._getLoadPromiseAndParser(i,e)),r[e.src]=yield this.promiseCache[i].promise,t&&t(++n/a)}catch(sK){throw delete this.promiseCache[i],delete r[e.src],new Error(`[Loader.load] Failed to load ${i}.\n${sK}`)}}))));return yield Promise.all(s),i?r[o[0].src]:r}))}unload(e){return te(this,null,(function*(){const t=Er(e,(e=>({alias:[e],src:e}))).map((e=>te(this,null,(function*(){var t,n;const r=Jn.toAbsolute(e.src),i=this.promiseCache[r];if(i){const o=yield i.promise;delete this.promiseCache[r],yield null==(n=null==(t=i.parser)?void 0:t.unload)?void 0:n.call(t,o,e,this)}}))));yield Promise.all(t)}))}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter((e=>e.name)).reduce(((e,t)=>(t.name?e[t.name]&&It(`[Assets] loadParser name conflict "${t.name}"`):It("[Assets] loadParser should have a name"),Q(q({},e),{[t.name]:t}))),{})}constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(e,t,n)=>(this._parsersValidated=!1,e[t]=n,!0)}),this.promiseCache={}}};function GH(e,t){if(Array.isArray(t)){for(const n of t)if(e.startsWith(`data:${n}`))return!0;return!1}return e.startsWith(`data:${t}`)}function HH(e,t){const n=e.split("?")[0],r=Jn.extname(n).toLowerCase();return Array.isArray(t)?t.includes(r):r===t}Sr(),_e(),Cr(),br();var WH={extension:{type:t.LoadParser,priority:Qn.Low},name:"loadJson",test:e=>GH(e,"application/json")||HH(e,".json"),load(e){return te(this,null,(function*(){const t=yield $n.get().fetch(e);return yield t.json()}))}};Sr(),_e(),br();var VH={name:"loadTxt",extension:{type:t.LoadParser,priority:Qn.Low},test:e=>GH(e,"text/plain")||HH(e,".txt"),load(e){return te(this,null,(function*(){const t=yield $n.get().fetch(e);return yield t.text()}))}};Sr(),_e(),Ot(),Cr(),qi(),br();var XH=["normal","bold","100","200","300","400","500","600","700","800","900"],KH=[".ttf",".otf",".woff",".woff2"],qH=["font/ttf","font/otf","font/woff","font/woff2"],QH=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i,YH=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/,ZH={extension:{type:t.LoadParser,priority:Qn.Low},name:"loadWebFont",test:e=>GH(e,qH)||HH(e,KH),load(e,t){return te(this,null,(function*(){var n,r,i,o,a,s;const l=$n.get().getFontFaceSet();if(l){const c=[],d=null!=(r=null==(n=t.data)?void 0:n.family)?r:function(e){const t=Jn.extname(e),n=Jn.basename(e,t).replace(/(-|_)/g," ").toLowerCase().split(" ").map((e=>e.charAt(0).toUpperCase()+e.slice(1)));let r=n.length>0;for(const o of n)if(!o.match(QH)){r=!1;break}let i=n.join(" ");return r||(i=`"${i.replace(/[\\"]/g,"\\$&")}"`),i}(e),f=null!=(a=null==(o=null==(i=t.data)?void 0:i.weights)?void 0:o.filter((e=>XH.includes(e))))?a:["normal"],p=null!=(s=t.data)?s:{};for(let t=0;t<f.length;t++){const n=f[t],r=new FontFace(d,`url(${u=e,YH.test(u)?u:encodeURI(u)})`,Q(q({},p),{weight:n}));yield r.load(),l.add(r),c.push(r)}return Wi.set(`${d}-and-url`,{url:e,fontFaces:c}),1===c.length?c[0]:c}var u;return It("[loadWebFont] FontFace API is not supported. Skipping loading font"),null}))},unload(e){(Array.isArray(e)?e:[e]).forEach((e=>{Wi.remove(e.family),$n.get().getFontFaceSet().delete(e)}))}};function $H(e,t=1){var n;const r=null==(n=Ir.RETINA_PREFIX)?void 0:n.exec(e);return r?parseFloat(r[1]):t}function JH(e,t,n){e.label=n,e._sourceOrigin=n;const r=new ii({source:e,label:n}),i=()=>{delete t.promiseCache[n],Wi.has(n)&&Wi.remove(n)};return r.source.once("destroy",(()=>{t.promiseCache[n]&&(It("[Assets] A TextureSource managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the TextureSource."),i())})),r.once("destroy",(()=>{e.destroyed||(It("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),i())})),r}Sr(),_e(),Ni(),dl(),Wr(),br(),mi(),Ot(),qi();var eW={extension:{type:t.LoadParser,priority:Qn.Low},name:"loadSVG",config:{crossOrigin:"anonymous",parseAsGraphicsContext:!1},test:e=>GH(e,"image/svg+xml")||HH(e,".svg"),load(e,t,n){return te(this,null,(function*(){var r;return(null!=(r=t.data.parseAsGraphicsContext)?r:this.config.parseAsGraphicsContext)?function(e){return te(this,null,(function*(){const t=yield $n.get().fetch(e),n=yield t.text(),r=new ll;return r.svg(n),r}))}(e):function(e,t,n,r){return te(this,null,(function*(){var i,o,a,s,l;const u=yield $n.get().fetch(e),c=yield u.blob(),d=URL.createObjectURL(c),f=new Image;f.src=d,f.crossOrigin=r,yield f.decode(),URL.revokeObjectURL(d);const p=document.createElement("canvas"),h=p.getContext("2d"),m=(null==(i=t.data)?void 0:i.resolution)||$H(e),A=null!=(a=null==(o=t.data)?void 0:o.width)?a:f.width,g=null!=(l=null==(s=t.data)?void 0:s.height)?l:f.height;p.width=A*m,p.height=g*m,h.drawImage(f,0,0,A*m,g*m);const v=t.data,{parseAsGraphicsContext:y}=v,b=Y(v,["parseAsGraphicsContext"]);return JH(new Mi(q({resource:p,alphaMode:"premultiply-alpha-on-upload",resolution:m},b)),n,e)}))}(e,t,n,this.config.crossOrigin)}))},unload(e){e.destroy(!0)}};Sr(),_e(),Ni();var tW=null,nW=class{constructor(){tW||(tW=URL.createObjectURL(new Blob(['(function () {\n \'use strict\';\n\n const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=";\n async function checkImageBitmap() {\n try {\n if (typeof createImageBitmap !== "function")\n return false;\n const response = await fetch(WHITE_PNG);\n const imageBlob = await response.blob();\n const imageBitmap = await createImageBitmap(imageBlob);\n return imageBitmap.width === 1 && imageBitmap.height === 1;\n } catch (e) {\n return false;\n }\n }\n void checkImageBitmap().then((result) => {\n self.postMessage(result);\n });\n\n})();\n'],{type:"application/javascript"}))),this.worker=new Worker(tW)}};nW.revokeObjectURL=function(){tW&&(URL.revokeObjectURL(tW),tW=null)};var rW=null,iW=class{constructor(){rW||(rW=URL.createObjectURL(new Blob(["(function () {\n 'use strict';\n\n async function loadImageBitmap(url) {\n const response = await fetch(url);\n if (!response.ok) {\n throw new Error(`[WorkerManager.loadImageBitmap] Failed to fetch ${url}: ${response.status} ${response.statusText}`);\n }\n const imageBlob = await response.blob();\n const imageBitmap = await createImageBitmap(imageBlob);\n return imageBitmap;\n }\n self.onmessage = async (event) => {\n try {\n const imageBitmap = await loadImageBitmap(event.data.data[0]);\n self.postMessage({\n data: imageBitmap,\n uuid: event.data.uuid,\n id: event.data.id\n }, [imageBitmap]);\n } catch (e) {\n self.postMessage({\n error: e,\n uuid: event.data.uuid,\n id: event.data.id\n });\n }\n };\n\n})();\n"],{type:"application/javascript"}))),this.worker=new Worker(rW)}};iW.revokeObjectURL=function(){rW&&(URL.revokeObjectURL(rW),rW=null)};var oW,aW=0,sW=new class{isImageBitmapSupported(){return void 0!==this._isImageBitmapSupported||(this._isImageBitmapSupported=new Promise((e=>{const{worker:t}=new nW;t.addEventListener("message",(n=>{t.terminate(),nW.revokeObjectURL(),e(n.data)}))}))),this._isImageBitmapSupported}loadImageBitmap(e){return this._run("loadImageBitmap",[e])}_initWorkers(){return te(this,null,(function*(){this._initialized||(this._initialized=!0)}))}_getWorker(){void 0===oW&&(oW=navigator.hardwareConcurrency||4);let e=this._workerPool.pop();return!e&&this._createdWorkers<oW&&(this._createdWorkers++,e=(new iW).worker,e.addEventListener("message",(e=>{this._complete(e.data),this._returnWorker(e.target),this._next()}))),e}_returnWorker(e){this._workerPool.push(e)}_complete(e){void 0!==e.error?this._resolveHash[e.uuid].reject(e.error):this._resolveHash[e.uuid].resolve(e.data),this._resolveHash[e.uuid]=null}_run(e,t){return te(this,null,(function*(){yield this._initWorkers();const n=new Promise(((n,r)=>{this._queue.push({id:e,arguments:t,resolve:n,reject:r})}));return this._next(),n}))}_next(){if(!this._queue.length)return;const e=this._getWorker();if(!e)return;const t=this._queue.pop(),n=t.id;this._resolveHash[aW]={resolve:t.resolve,reject:t.reject},e.postMessage({data:t.arguments,uuid:aW++,id:n})}constructor(){this._initialized=!1,this._createdWorkers=0,this._workerPool=[],this._queue=[],this._resolveHash={}}};br();var lW=[".jpeg",".jpg",".png",".webp",".avif"],uW=["image/jpeg","image/png","image/webp","image/avif"],cW={name:"loadTextures",extension:{type:t.LoadParser,priority:Qn.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test:e=>GH(e,uW)||HH(e,lW),load(e,t,n){return te(this,null,(function*(){var r;let i=null;return i=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap?this.config.preferWorkers&&(yield sW.isImageBitmapSupported())?yield sW.loadImageBitmap(e):yield function(e){return te(this,null,(function*(){const t=yield $n.get().fetch(e);if(!t.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${e}: ${t.status} ${t.statusText}`);const n=yield t.blob();return yield createImageBitmap(n)}))}(e):yield new Promise((t=>{i=new Image,i.crossOrigin=this.config.crossOrigin,i.src=e,i.complete?t(i):i.onload=()=>{t(i)}})),JH(new Mi(q({resource:i,alphaMode:"premultiply-alpha-on-upload",resolution:(null==(r=t.data)?void 0:r.resolution)||$H(e)},t.data)),n,e)}))},unload(e){e.destroy(!0)}};_e(),Ki(),Xi();var dW=[".mp4",".m4v",".webm",".ogg",".ogv",".h264",".avi",".mov"],fW=dW.map((e=>`video/${e.substring(1)}`));function pW(e,t,n){void 0!==n||t.startsWith("data:")?!1!==n&&(e.crossOrigin="string"==typeof n?n:"anonymous"):e.crossOrigin=function(e,t=globalThis.location){if(e.startsWith("data:"))return"";t=t||globalThis.location;const n=new URL(e,document.baseURI);return n.hostname!==t.hostname||n.port!==t.port||n.protocol!==t.protocol?"anonymous":""}(t)}var hW={name:"loadVideo",extension:{type:t.LoadParser},config:null,test(e){const t=GH(e,fW),n=HH(e,dW);return t||n},load(e,t,n){return te(this,null,(function*(){var r,i;const o=q(Q(q({},Hi.defaultOptions),{resolution:(null==(r=t.data)?void 0:r.resolution)||$H(e),alphaMode:(null==(i=t.data)?void 0:i.alphaMode)||(yield Ui())}),t.data),a=document.createElement("video"),s={preload:!1!==o.autoLoad?"auto":void 0,"webkit-playsinline":!1!==o.playsinline?"":void 0,playsinline:!1!==o.playsinline?"":void 0,muted:!0===o.muted?"":void 0,loop:!0===o.loop?"":void 0,autoplay:!1!==o.autoPlay?"":void 0};Object.keys(s).forEach((e=>{const t=s[e];void 0!==t&&a.setAttribute(e,t)})),!0===o.muted&&(a.muted=!0),pW(a,e,o.crossorigin);const l=document.createElement("source");let u;if(e.startsWith("data:"))u=e.slice(5,e.indexOf(";"));else if(!e.startsWith("blob:")){const t=e.split("?")[0].slice(e.lastIndexOf(".")+1).toLowerCase();u=Hi.MIME_TYPES[t]||`video/${t}`}return l.src=e,u&&(l.type=u),new Promise((r=>{const i=()=>te(this,null,(function*(){const s=new Hi(Q(q({},o),{resource:a}));var l;a.removeEventListener("canplay",i),t.data.preload&&(yield(l=a,new Promise(((e,t)=>{function n(){i(),e()}function r(e){i(),t(e)}function i(){l.removeEventListener("canplaythrough",n),l.removeEventListener("error",r)}l.addEventListener("canplaythrough",n),l.addEventListener("error",r),l.load()})))),r(JH(s,n,e))}));a.addEventListener("canplay",i),a.appendChild(l)}))}))},unload(e){e.destroy(!0)}};_e(),Wr(),_e(),Wr();var mW={extension:t.ResolveParser,test:cW.test,parse:e=>{var t,n;return{resolution:parseFloat(null!=(n=null==(t=Ir.RETINA_PREFIX.exec(e))?void 0:t[1])?n:"1"),format:e.split(".").pop(),src:e}}},AW={extension:t.ResolveParser,test:e=>Ir.RETINA_PREFIX.test(e)&&e.endsWith(".json"),parse:mW.parse};Wr(),Tr(),Hr();var gW=new class{init(){return te(this,arguments,(function*(e={}){var t,n,r;if(this._initialized)return void It("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");if(this._initialized=!0,e.defaultSearchParams&&this.resolver.setDefaultSearchParams(e.defaultSearchParams),e.basePath&&(this.resolver.basePath=e.basePath),e.bundleIdentifier&&this.resolver.setBundleIdentifier(e.bundleIdentifier),e.manifest){let t=e.manifest;"string"==typeof t&&(t=yield this.load(t)),this.resolver.addManifest(t)}const i=null!=(n=null==(t=e.texturePreference)?void 0:t.resolution)?n:1,o="number"==typeof i?[i]:i,a=yield this._detectFormats({preferredFormats:null==(r=e.texturePreference)?void 0:r.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:a,resolution:o}}),e.preferences&&this.setPreferences(e.preferences)}))}add(e){this.resolver.add(e)}load(e,t){return te(this,null,(function*(){this._initialized||(yield this.init());const n=Rr(e),r=Er(e).map((e=>{if("string"!=typeof e){const t=this.resolver.getAlias(e);return t.some((e=>!this.resolver.hasKey(e)))&&this.add(e),Array.isArray(t)?t[0]:t}return this.resolver.hasKey(e)||this.add({alias:e,src:e}),e})),i=this.resolver.resolve(r),o=yield this._mapLoadToResolve(i,t);return n?o[r[0]]:o}))}addBundle(e,t){this.resolver.addBundle(e,t)}loadBundle(e,t){return te(this,null,(function*(){this._initialized||(yield this.init());let n=!1;"string"==typeof e&&(n=!0,e=[e]);const r=this.resolver.resolveBundle(e),i={},o=Object.keys(r);let a=0,s=0;const l=()=>{null==t||t(++a/s)},u=o.map((e=>{const t=r[e];return s+=Object.keys(t).length,this._mapLoadToResolve(t,l).then((t=>{i[e]=t}))}));return yield Promise.all(u),n?i[e[0]]:i}))}backgroundLoad(e){return te(this,null,(function*(){this._initialized||(yield this.init()),"string"==typeof e&&(e=[e]);const t=this.resolver.resolve(e);this._backgroundLoader.add(Object.values(t))}))}backgroundLoadBundle(e){return te(this,null,(function*(){this._initialized||(yield this.init()),"string"==typeof e&&(e=[e]);const t=this.resolver.resolveBundle(e);Object.values(t).forEach((e=>{this._backgroundLoader.add(Object.values(e))}))}))}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(e){if("string"==typeof e)return Wi.get(e);const t={};for(let n=0;n<e.length;n++)t[n]=Wi.get(e[n]);return t}_mapLoadToResolve(e,t){return te(this,null,(function*(){const n=[...new Set(Object.values(e))];this._backgroundLoader.active=!1;const r=yield this.loader.load(n,t);this._backgroundLoader.active=!0;const i={};return n.forEach((e=>{const t=r[e.src],n=[e.src];e.alias&&n.push(...e.alias),n.forEach((e=>{i[e]=t})),Wi.set(n,t)})),i}))}unload(e){return te(this,null,(function*(){this._initialized||(yield this.init());const t=Er(e).map((e=>"string"!=typeof e?e.src:e)),n=this.resolver.resolve(t);yield this._unloadFromResolved(n)}))}unloadBundle(e){return te(this,null,(function*(){this._initialized||(yield this.init()),e=Er(e);const t=this.resolver.resolveBundle(e),n=Object.keys(t).map((e=>this._unloadFromResolved(t[e])));yield Promise.all(n)}))}_unloadFromResolved(e){return te(this,null,(function*(){const t=Object.values(e);t.forEach((e=>{Wi.remove(e.src)})),yield this.loader.unload(t)}))}_detectFormats(e){return te(this,null,(function*(){let t=[];e.preferredFormats&&(t=Array.isArray(e.preferredFormats)?e.preferredFormats:[e.preferredFormats]);for(const n of e.detections)e.skipDetections||(yield n.test())?t=yield n.add(t):e.skipDetections||(t=yield n.remove(t));return t=t.filter(((e,n)=>t.indexOf(e)===n)),t}))}get detections(){return this._detections}setPreferences(e){this.loader.parsers.forEach((t=>{t.config&&Object.keys(t.config).filter((t=>t in e)).forEach((n=>{t.config[n]=e[n]}))}))}constructor(){this._detections=[],this._initialized=!1,this.resolver=new Ir,this.loader=new UH,this.cache=Wi,this._backgroundLoader=new kH(this.loader),this._backgroundLoader.active=!0,this.reset()}};i.handleByList(t.LoadParser,gW.loader.parsers).handleByList(t.ResolveParser,gW.resolver.parsers).handleByList(t.CacheParser,gW.cache.parsers).handleByList(t.DetectionParser,gW.detections),i.add(RH,jH,OH,NH,FH,DH,LH,WH,VH,ZH,eW,cW,hW,mW,AW);var vW={loader:t.LoadParser,resolver:t.ResolveParser,cache:t.CacheParser,detection:t.DetectionParser};i.handle(t.Asset,(e=>{const t=e.ref;Object.entries(vW).filter((([e])=>!!t[e])).forEach((([e,n])=>{var r;return i.add(Object.assign(t[e],{extension:null!=(r=t[e].extension)?r:n}))}))}),(e=>{const t=e.ref;Object.keys(vW).filter((e=>!!t[e])).forEach((e=>i.remove(t[e])))})),Eu(),Lu(),Ha(),xf();var yW="struct 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 AlphaUniforms {\n uAlpha: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> alphaUniforms : AlphaUniforms;\n\nstruct VSOutput {\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\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@vertex\nfn mainVertex(\n @location(0) aPosition : vec2<f32>, \n) -> VSOutput {\n return VSOutput(\n filterVertexPosition(aPosition),\n filterTextureCoord(aPosition)\n );\n}\n\n@fragment\nfn mainFragment(\n @location(0) uv: vec2<f32>,\n @builtin(position) position: vec4<f32>\n) -> @location(0) vec4<f32> {\n \n var sample = textureSample(uTexture, uSampler, uv);\n \n return sample * alphaUniforms.uAlpha;\n}",bW=class e extends df{get alpha(){return this.resources.alphaUniforms.uniforms.uAlpha}set alpha(e){this.resources.alphaUniforms.uniforms.uAlpha=e}constructor(t){t=q(q({},e.defaultOptions),t);const n=Mu.from({vertex:{source:yW,entryPoint:"mainVertex"},fragment:{source:yW,entryPoint:"mainFragment"}}),r=Su.from({vertex:"in vec2 aPosition;\nout vec2 vTextureCoord;\n\nuniform vec4 uInputSize;\nuniform vec4 uOutputFrame;\nuniform vec4 uOutputTexture;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy;\n \n position.x = position.x * (2.0 / uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aPosition * (uOutputFrame.zw * uInputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n",fragment:"\nin vec2 vTextureCoord;\n\nout vec4 finalColor;\n\nuniform float uAlpha;\nuniform sampler2D uTexture;\n\nvoid main()\n{\n finalColor = texture(uTexture, vTextureCoord) * uAlpha;\n}\n",name:"alpha-filter"}),i=t,{alpha:o}=i,a=Y(i,["alpha"]),s=new ja({uAlpha:{value:o,type:"f32"}});super(Q(q({},a),{gpuProgram:n,glProgram:r,resources:{alphaUniforms:s}}))}};bW.defaultOptions={alpha:1};var xW=bW;Ya(),Uc(),xf(),Eu();var SW={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},_W=["in vec2 vBlurTexCoords[%size%];","uniform sampler2D uTexture;","out vec4 finalColor;","void main(void)","{"," finalColor = vec4(0.0);"," %blur%","}"].join("\n");function wW(e,t){const n=function(e,t){const n=Math.ceil(e/2);let r,i="\n in vec2 aPosition;\n\n uniform float uStrength;\n\n out vec2 vBlurTexCoords[%size%];\n\n uniform vec4 uInputSize;\n uniform vec4 uOutputFrame;\n uniform vec4 uOutputTexture;\n\n vec4 filterVertexPosition( void )\n{\n vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy;\n \n position.x = position.x * (2.0 / uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\n vec2 filterTextureCoord( void )\n {\n return aPosition * (uOutputFrame.zw * uInputSize.zw);\n }\n\n void main(void)\n {\n gl_Position = filterVertexPosition();\n\n float pixelStrength = uInputSize.%dimension% * uStrength;\n\n vec2 textureCoord = filterTextureCoord();\n %blur%\n }",o="";r=t?"vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * pixelStrength, 0.0);":"vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * pixelStrength);";for(let a=0;a<e;a++){let e=r.replace("%index%",a.toString());e=e.replace("%sampleIndex%",a-(n-1)+".0"),o+=e,o+="\n"}return i=i.replace("%blur%",o),i=i.replace("%size%",e.toString()),i=i.replace("%dimension%",t?"z":"w"),i}(t,e),r=function(e){const t=SW[e],n=t.length;let r,i=_W,o="";for(let a=0;a<e;a++){let i="finalColor += texture(uTexture, vBlurTexCoords[%index%]) * %value%;".replace("%index%",a.toString());r=a,a>=n&&(r=e-a-1),i=i.replace("%value%",t[r].toString()),o+=i,o+="\n"}return i=i.replace("%blur%",o),i=i.replace("%size%",e.toString()),i}(t);return Su.from({vertex:n,fragment:r,name:`blur-${e?"horizontal":"vertical"}-pass-filter`})}Lu();var EW=class e extends df{apply(e,t,n,r){if(this._uniforms.uStrength=this.strength/this.passes,1===this.passes)e.applyFilter(this,t,n,r);else{const i=Ua.getSameSizeTexture(t);let 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===Rc.WEBGPU);const t=a;a=o,o=t}this._state.blend=!0,e.applyFilter(this,o,n,r),Ua.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}constructor(t){const n=wW((t=q(q({},e.defaultOptions),t)).horizontal,t.kernelSize),r=function(e,t){const n=SW[t],r=n.length,i=[],o=[],a=[];for(let d=0;d<t;d++){i[d]=`@location(${d}) offset${d}: vec2<f32>,`,o[d]=e?`filteredCord + vec2(${d-r+1} * strength, 0.0),`:`filteredCord + vec2(0.0, ${d-r+1} * strength),`;const s=n[d<r?d:t-d-1].toString();a[d]=`finalColor += textureSample(uTexture, uSampler, offset${d}) * ${s};`}const s=i.join("\n"),l=o.join("\n"),u=a.join("\n"),c="\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}".replace("%blur-struct%",s).replace("%blur-vertex-out%",l).replace("%blur-fragment-in%",s).replace("%blur-sampling%",u);return Mu.from({vertex:{source:c,entryPoint:"mainVertex"},fragment:{source:c,entryPoint:"mainFragment"}})}(t.horizontal,t.kernelSize);super(q({glProgram:n,gpuProgram:r,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}};EW.defaultOptions={strength:8,quality:4,kernelSize:5};var CW=EW;Ke(),Je(),_t(),wn();var TW=class extends en{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?1:0}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){var t;e=e||{},null==(t=this._style)||t.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){var n;let r,i;"object"!=typeof e?(r=e,i=null!=t?t:e):(r=e.width,i=null!=(n=e.height)?n:e.width),void 0!==r&&this._setWidth(r,this.bounds.width),void 0!==i&&this._setHeight(i,this.bounds.height)}addBounds(e){const t=this.bounds;e.addFrame(t.minX,t.minY,t.maxX,t.maxY)}containsPoint(e){const t=this.bounds.maxX,n=this.bounds.maxY,r=-t*this.anchor.x;let i=0;return e.x>=r&&e.x<=r+t&&(i=-n*this.anchor.y,e.y>=i&&e.y<=i+n)}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:null==e?void 0:e.style)&&this._style.destroy(e),this._style=null,this._text=null}constructor(e,t){const n=e,{text:r,resolution:i,style:o,anchor:a,width:s,height:l,roundPixels:u}=n,c=Y(n,["text","resolution","style","anchor","width","height","roundPixels"]);super(q({},c)),this.batched=!0,this.resolution=null,this._didTextUpdate=!0,this._roundPixels=0,this._bounds=new dt,this._boundsDirty=!0,this._styleClass=t,this.text=null!=r?r:"",this.style=o,this.resolution=null!=i?i:null,this.allowChildren=!1,this._anchor=new Le({_onUpdate:()=>{this.onViewUpdate()}}),a&&(this.anchor=a),this.roundPixels=null!=u&&u,s&&(this.width=s),l&&(this.height=l)}};Tl(),vl();var PW=class extends TW{_updateBounds(){const e=this._bounds,t=this._style.padding,n=this._anchor,r=El.measureText(this._text,this._style),{width:i,height:o}=r;e.minX=-n._x*i-t,e.maxX=e.minX+i,e.minY=-n._y*o-t,e.maxY=e.minY+o}constructor(...e){const t=function(e,t){var n;let r=null!=(n=e[0])?n:{};return("string"==typeof r||e[1])&&($e(Ye,`use new ${t}({ text: "hi!", style }) instead`),r={text:r,style:e[1]}),r}(e,"Text");super(t,ml),this.renderPipeId="text"}};Ge(),xf(),We(),Ke(),Eu(),Lu(),Ni(),fi(),mi(),Ya(),Ji(),Ch(),wn(),iu(),wi(),Ee(),Je(),ee(Jo(),1),i.add(yH,bH);var kW=ee(re()),RW=["#01204E"],IW="in vec2 aPosition;\nout vec2 vTextureCoord;\n\nuniform vec4 uInputSize;\nuniform vec4 uOutputFrame;\nuniform vec4 uOutputTexture;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy;\n \n position.x = position.x * (2.0 / uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aPosition * (uOutputFrame.zw * uInputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n",OW="struct 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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\nstruct VSOutput {\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\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@vertex\nfn mainVertex(\n @location(0) aPosition : vec2<f32>, \n) -> VSOutput {\n return VSOutput(\n filterVertexPosition(aPosition),\n filterTextureCoord(aPosition)\n );\n}",MW=Object.defineProperty,jW=(e,t,n)=>(((e,t,n)=>{t in e?MW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);jW(class e extends df{get gamma(){return this.uniforms.uGamma}set gamma(e){this.uniforms.uGamma=e}get contrast(){return this.uniforms.uContrast}set contrast(e){this.uniforms.uContrast=e}get saturation(){return this.uniforms.uSaturation}set saturation(e){this.uniforms.uSaturation=e}get brightness(){return this.uniforms.uBrightness}set brightness(e){this.uniforms.uBrightness=e}get red(){return this.uniforms.uColor[0]}set red(e){this.uniforms.uColor[0]=e}get green(){return this.uniforms.uColor[1]}set green(e){this.uniforms.uColor[1]=e}get blue(){return this.uniforms.uColor[2]}set blue(e){this.uniforms.uColor[2]=e}get alpha(){return this.uniforms.uColor[3]}set alpha(e){this.uniforms.uColor[3]=e}constructor(t){t=q(q({},e.DEFAULT_OPTIONS),t),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct AdjustmentUniforms {\n uGamma: f32,\n uContrast: f32,\n uSaturation: f32,\n uBrightness: f32,\n uColor: vec4<f32>,\n};\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> adjustmentUniforms : AdjustmentUniforms;\n\n@fragment\nfn mainFragment(\n @location(0) uv: vec2<f32>,\n @builtin(position) position: vec4<f32>\n) -> @location(0) vec4<f32> {\n var sample = textureSample(uTexture, uSampler, uv);\n let color = adjustmentUniforms.uColor;\n\n if (sample.a > 0.0) \n {\n sample = vec4<f32>(sample.rgb / sample.a, sample.a);\n var rgb: vec3<f32> = pow(sample.rgb, vec3<f32>(1. / adjustmentUniforms.uGamma));\n rgb = mix(vec3<f32>(.5), mix(vec3<f32>(dot(vec3<f32>(.2125, .7154, .0721), rgb)), rgb, adjustmentUniforms.uSaturation), adjustmentUniforms.uContrast);\n rgb.r *= color.r;\n rgb.g *= color.g;\n rgb.b *= color.b;\n sample = vec4<f32>(rgb.rgb * adjustmentUniforms.uBrightness, sample.a);\n sample = vec4<f32>(sample.rgb * sample.a, sample.a);\n }\n\n return sample * color.a;\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"in vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform float uGamma;\nuniform float uContrast;\nuniform float uSaturation;\nuniform float uBrightness;\nuniform vec4 uColor;\n\nvoid main()\n{\n vec4 c = texture(uTexture, vTextureCoord);\n\n if (c.a > 0.0) {\n c.rgb /= c.a;\n\n vec3 rgb = pow(c.rgb, vec3(1. / uGamma));\n rgb = mix(vec3(.5), mix(vec3(dot(vec3(.2125, .7154, .0721), rgb)), rgb, uSaturation), uContrast);\n rgb.r *= uColor.r;\n rgb.g *= uColor.g;\n rgb.b *= uColor.b;\n c.rgb = rgb * uBrightness;\n\n c.rgb *= c.a;\n }\n\n finalColor = c * uColor.a;\n}\n",name:"adjustment-filter"}),resources:{adjustmentUniforms:{uGamma:{value:t.gamma,type:"f32"},uContrast:{value:t.contrast,type:"f32"},uSaturation:{value:t.saturation,type:"f32"},uBrightness:{value:t.brightness,type:"f32"},uColor:{value:[t.red,t.green,t.blue,t.alpha],type:"vec4<f32>"}}}}),jW(this,"uniforms"),this.uniforms=this.resources.adjustmentUniforms.uniforms}},"DEFAULT_OPTIONS",{gamma:1,contrast:1,saturation:1,brightness:1,red:1,green:1,blue:1,alpha:1});var zW=Object.defineProperty,BW=(e,t,n)=>(((e,t,n)=>{t in e?zW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),FW=class e extends df{apply(e,t,n,r){const i=this.pixelSizeX/t.source.width,o=this.pixelSizeY/t.source.height;let a;if(1===this._quality||0===this._blur)a=this._kernels[0]+.5,this.uniforms.uOffset[0]=a*i,this.uniforms.uOffset[1]=a*o,e.applyFilter(this,t,n,r);else{const s=Ua.getSameSizeTexture(t);let l,u=t,c=s;const d=this._quality-1;for(let t=0;t<d;t++)a=this._kernels[t]+.5,this.uniforms.uOffset[0]=a*i,this.uniforms.uOffset[1]=a*o,e.applyFilter(this,u,c,!0),l=u,u=c,c=l;a=this._kernels[d]+.5,this.uniforms.uOffset[0]=a*i,this.uniforms.uOffset[1]=a*o,e.applyFilter(this,u,n,r),Ua.returnTexture(s)}}get strength(){return this._blur}set strength(e){this._blur=e,this._generateKernels()}get quality(){return this._quality}set quality(e){this._quality=Math.max(1,Math.round(e)),this._generateKernels()}get kernels(){return this._kernels}set kernels(e){Array.isArray(e)&&e.length>0?(this._kernels=e,this._quality=e.length,this._blur=Math.max(...e)):(this._kernels=[0],this._quality=1)}get pixelSize(){return this._pixelSize}set pixelSize(e){if("number"!=typeof e)return Array.isArray(e)?(this.pixelSizeX=e[0],void(this.pixelSizeY=e[1])):void(this._pixelSize=e);this.pixelSizeX=this.pixelSizeY=e}get pixelSizeX(){return this.pixelSize.x}set pixelSizeX(e){this.pixelSize.x=e}get pixelSizeY(){return this.pixelSize.y}set pixelSizeY(e){this.pixelSize.y=e}get clamp(){return this._clamp}_updatePadding(){this.padding=Math.ceil(this._kernels.reduce(((e,t)=>e+t+.5),0))}_generateKernels(){const e=this._blur,t=this._quality,n=[e];if(e>0){let r=e;const i=e/t;for(let e=1;e<t;e++)r-=i,n.push(r)}this._kernels=n,this._updatePadding()}constructor(...t){var n,r,i;let o=null!=(n=t[0])?n:{};("number"==typeof o||Array.isArray(o))&&($e("6.0.0","KawaseBlurFilter constructor params are now options object. See params: { strength, quality, clamp, pixelSize }"),o={strength:o},void 0!==t[1]&&(o.quality=t[1]),void 0!==t[2]&&(o.clamp=t[2])),o=q(q({},e.DEFAULT_OPTIONS),o),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:(null==o?void 0:o.clamp)?"struct KawaseBlurUniforms {\n uOffset:vec2<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> kawaseBlurUniforms : KawaseBlurUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let uOffset = kawaseBlurUniforms.uOffset;\n var color: vec4<f32> = vec4(0.0);\n\n // Sample top left pixel\n color += textureSample(uTexture, uSampler, clamp(vec2<f32>(uv.x - uOffset.x, uv.y + uOffset.y), gfu.uInputClamp.xy, gfu.uInputClamp.zw));\n // Sample top right pixel\n color += textureSample(uTexture, uSampler, clamp(vec2<f32>(uv.x + uOffset.x, uv.y + uOffset.y), gfu.uInputClamp.xy, gfu.uInputClamp.zw));\n // Sample bottom right pixel\n color += textureSample(uTexture, uSampler, clamp(vec2<f32>(uv.x + uOffset.x, uv.y - uOffset.y), gfu.uInputClamp.xy, gfu.uInputClamp.zw));\n // Sample bottom left pixel\n color += textureSample(uTexture, uSampler, clamp(vec2<f32>(uv.x - uOffset.x, uv.y - uOffset.y), gfu.uInputClamp.xy, gfu.uInputClamp.zw));\n // Average\n color *= 0.25;\n \n return color;\n}":"struct KawaseBlurUniforms {\n uOffset:vec2<f32>,\n};\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> kawaseBlurUniforms : KawaseBlurUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let uOffset = kawaseBlurUniforms.uOffset;\n var color: vec4<f32> = vec4<f32>(0.0);\n\n // Sample top left pixel\n color += textureSample(uTexture, uSampler, vec2<f32>(uv.x - uOffset.x, uv.y + uOffset.y));\n // Sample top right pixel\n color += textureSample(uTexture, uSampler, vec2<f32>(uv.x + uOffset.x, uv.y + uOffset.y));\n // Sample bottom right pixel\n color += textureSample(uTexture, uSampler, vec2<f32>(uv.x + uOffset.x, uv.y - uOffset.y));\n // Sample bottom left pixel\n color += textureSample(uTexture, uSampler, vec2<f32>(uv.x - uOffset.x, uv.y - uOffset.y));\n // Average\n color *= 0.25;\n\n return color;\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:(null==o?void 0:o.clamp)?"\nprecision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec2 uOffset;\n\nuniform vec4 uInputClamp;\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n\n // Sample top left pixel\n color += texture(uTexture, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y), uInputClamp.xy, uInputClamp.zw));\n\n // Sample top right pixel\n color += texture(uTexture, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y), uInputClamp.xy, uInputClamp.zw));\n\n // Sample bottom right pixel\n color += texture(uTexture, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y), uInputClamp.xy, uInputClamp.zw));\n\n // Sample bottom left pixel\n color += texture(uTexture, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y), uInputClamp.xy, uInputClamp.zw));\n\n // Average\n color *= 0.25;\n\n finalColor = color;\n}\n":"\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec2 uOffset;\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n\n // Sample top left pixel\n color += texture(uTexture, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y));\n\n // Sample top right pixel\n color += texture(uTexture, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y));\n\n // Sample bottom right pixel\n color += texture(uTexture, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y));\n\n // Sample bottom left pixel\n color += texture(uTexture, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y));\n\n // Average\n color *= 0.25;\n\n finalColor = color;\n}",name:"kawase-blur-filter"}),resources:{kawaseBlurUniforms:{uOffset:{value:new Float32Array(2),type:"vec2<f32>"}}}}),BW(this,"uniforms"),BW(this,"_pixelSize",{x:0,y:0}),BW(this,"_clamp"),BW(this,"_kernels",[]),BW(this,"_blur"),BW(this,"_quality"),this.uniforms=this.resources.kawaseBlurUniforms.uniforms,this.pixelSize=null!=(r=o.pixelSize)?r:{x:1,y:1},Array.isArray(o.strength)?this.kernels=o.strength:"number"==typeof o.strength&&(this._blur=o.strength,this.quality=null!=(i=o.quality)?i:3),this._clamp=!!o.clamp}};BW(FW,"DEFAULT_OPTIONS",{strength:4,quality:3,clamp:!1,pixelSize:{x:1,y:1}});var DW=FW,LW=Object.defineProperty,NW=(e,t,n)=>(((e,t,n)=>{t in e?LW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),UW=class e extends df{get threshold(){return this.uniforms.uThreshold}set threshold(e){this.uniforms.uThreshold=e}constructor(t){t=q(q({},e.DEFAULT_OPTIONS),t),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct ExtractBrightnessUniforms {\n uThreshold: f32,\n};\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> extractBrightnessUniforms : ExtractBrightnessUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let color: vec4<f32> = textureSample(uTexture, uSampler, uv);\n\n // A simple & fast algorithm for getting brightness.\n // It's inaccurate, but good enough for this feature.\n let max: f32 = max(max(color.r, color.g), color.b);\n let min: f32 = min(min(color.r, color.g), color.b);\n let brightness: f32 = (max + min) * 0.5;\n\n return select(vec4<f32>(0.), color, brightness > extractBrightnessUniforms.uThreshold);\n}\n",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform float uThreshold;\n\nvoid main() {\n vec4 color = texture(uTexture, vTextureCoord);\n\n // A simple & fast algorithm for getting brightness.\n // It's inaccuracy , but good enought for this feature.\n float _max = max(max(color.r, color.g), color.b);\n float _min = min(min(color.r, color.g), color.b);\n float brightness = (_max + _min) * 0.5;\n\n if(brightness > uThreshold) {\n finalColor = color;\n } else {\n finalColor = vec4(0.0, 0.0, 0.0, 0.0);\n }\n}\n",name:"extract-brightness-filter"}),resources:{extractBrightnessUniforms:{uThreshold:{value:t.threshold,type:"f32"}}}}),NW(this,"uniforms"),this.uniforms=this.resources.extractBrightnessUniforms.uniforms}};NW(UW,"DEFAULT_OPTIONS",{threshold:.5});var GW=UW,HW=Object.defineProperty,WW=(e,t,n)=>(((e,t,n)=>{t in e?HW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);WW(class e extends df{apply(e,t,n,r){const i=Ua.getSameSizeTexture(t);this._extractFilter.apply(e,t,i,!0);const o=Ua.getSameSizeTexture(t);this._blurFilter.apply(e,i,o,!0),this.uniforms.uBloomScale=this.bloomScale,this.uniforms.uBrightness=this.brightness,this.resources.uMapTexture=o.source,e.applyFilter(this,t,n,r),Ua.returnTexture(o),Ua.returnTexture(i)}get threshold(){return this._extractFilter.threshold}set threshold(e){this._extractFilter.threshold=e}get kernels(){return this._blurFilter.kernels}set kernels(e){this._blurFilter.kernels=e}get blur(){return this._blurFilter.strength}set blur(e){this._blurFilter.strength=e}get quality(){return this._blurFilter.quality}set quality(e){this._blurFilter.quality=e}get pixelSize(){return this._blurFilter.pixelSize}set pixelSize(e){"number"==typeof e&&(e={x:e,y:e}),Array.isArray(e)&&(e={x:e[0],y:e[1]}),this._blurFilter.pixelSize=e}get pixelSizeX(){return this._blurFilter.pixelSizeX}set pixelSizeX(e){this._blurFilter.pixelSizeX=e}get pixelSizeY(){return this._blurFilter.pixelSizeY}set pixelSizeY(e){this._blurFilter.pixelSizeY=e}constructor(t){var n;t=q(q({},e.DEFAULT_OPTIONS),t),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct AdvancedBloomUniforms {\n uBloomScale: f32,\n uBrightness: f32,\n};\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> advancedBloomUniforms : AdvancedBloomUniforms;\n@group(1) @binding(1) var uMapTexture: texture_2d<f32>;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n var color = textureSample(uTexture, uSampler, uv);\n color = vec4<f32>(color.rgb * advancedBloomUniforms.uBrightness, color.a);\n\n var bloomColor = vec4<f32>(textureSample(uMapTexture, uSampler, uv).rgb, 0.0);\n bloomColor = vec4<f32>(bloomColor.rgb * advancedBloomUniforms.uBloomScale, bloomColor.a);\n \n return color + bloomColor;\n}\n",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"in vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform sampler2D uMapTexture;\nuniform float uBloomScale;\nuniform float uBrightness;\n\nvoid main() {\n vec4 color = texture(uTexture, vTextureCoord);\n color.rgb *= uBrightness;\n vec4 bloomColor = vec4(texture(uMapTexture, vTextureCoord).rgb, 0.0);\n bloomColor.rgb *= uBloomScale;\n finalColor = color + bloomColor;\n}\n",name:"advanced-bloom-filter"}),resources:{advancedBloomUniforms:{uBloomScale:{value:t.bloomScale,type:"f32"},uBrightness:{value:t.brightness,type:"f32"}},uMapTexture:ii.WHITE}}),WW(this,"uniforms"),WW(this,"bloomScale",1),WW(this,"brightness",1),WW(this,"_extractFilter"),WW(this,"_blurFilter"),this.uniforms=this.resources.advancedBloomUniforms.uniforms,this._extractFilter=new GW({threshold:t.threshold}),this._blurFilter=new DW({strength:null!=(n=t.kernels)?n:t.blur,quality:t.kernels?void 0:t.quality}),Object.assign(this,t)}},"DEFAULT_OPTIONS",{threshold:.5,bloomScale:1,brightness:1,blur:8,quality:4,pixelSize:{x:1,y:1}});var VW=Object.defineProperty,XW=(e,t,n)=>(((e,t,n)=>{t in e?VW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);XW(class e extends df{get size(){return this.uniforms.uSize}set size(e){this.uniforms.uSize=e}get color(){return this._color.value}set color(e){this._color.setValue(e);const[t,n,r]=this._color.toArray();this.uniforms.uColor[0]=t,this.uniforms.uColor[1]=n,this.uniforms.uColor[2]=r}get replaceColor(){return this.uniforms.uReplaceColor>.5}set replaceColor(e){this.uniforms.uReplaceColor=e?1:0}constructor(...t){var n,r;let i=null!=(n=t[0])?n:{};"number"==typeof i&&($e("6.0.0","AsciiFilter constructor params are now options object. See params: { size, color, replaceColor }"),i={size:i});const o=(null==i?void 0:i.color)&&!1!==i.replaceColor;i=q(q({},e.DEFAULT_OPTIONS),i),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct AsciiUniforms {\n uSize: f32,\n uColor: vec3<f32>,\n uReplaceColor: f32,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> asciiUniforms : AsciiUniforms;\n\n@fragment\nfn mainFragment(\n @location(0) uv: vec2<f32>,\n @builtin(position) position: vec4<f32>\n) -> @location(0) vec4<f32> {\n let pixelSize: f32 = asciiUniforms.uSize;\n let coord: vec2<f32> = mapCoord(uv);\n\n // get the rounded color..\n var pixCoord: vec2<f32> = pixelate(coord, vec2<f32>(pixelSize));\n pixCoord = unmapCoord(pixCoord);\n\n var color = textureSample(uTexture, uSampler, pixCoord);\n\n // determine the character to use\n let gray: f32 = 0.3 * color.r + 0.59 * color.g + 0.11 * color.b;\n \n var n: f32 = 65536.0; // .\n if (gray > 0.2) {\n n = 65600.0; // :\n }\n if (gray > 0.3) {\n n = 332772.0; // *\n }\n if (gray > 0.4) {\n n = 15255086.0; // o\n }\n if (gray > 0.5) {\n n = 23385164.0; // &\n }\n if (gray > 0.6) {\n n = 15252014.0; // 8\n }\n if (gray > 0.7) {\n n = 13199452.0; // @\n }\n if (gray > 0.8) {\n n = 11512810.0; // #\n }\n\n // get the mod..\n let modd: vec2<f32> = getMod(coord, vec2<f32>(pixelSize));\n return select(color, vec4<f32>(asciiUniforms.uColor, 1.), asciiUniforms.uReplaceColor > 0.5) * character(n, vec2<f32>(-1.0) + modd * 2.0);\n}\n\nfn pixelate(coord: vec2<f32>, size: vec2<f32>) -> vec2<f32>\n{\n return floor( coord / size ) * size;\n}\n\nfn getMod(coord: vec2<f32>, size: vec2<f32>) -> vec2<f32>\n{\n return moduloVec2( coord , size) / size;\n}\n\nfn character(n: f32, p: vec2<f32>) -> f32\n{\n var q: vec2<f32> = floor(p*vec2<f32>(4.0, 4.0) + 2.5);\n\n if (clamp(q.x, 0.0, 4.0) == q.x)\n {\n if (clamp(q.y, 0.0, 4.0) == q.y)\n {\n if (i32(modulo(n/exp2(q.x + 5.0*q.y), 2.0)) == 1)\n {\n return 1.0;\n }\n }\n }\n\n return 0.0;\n}\n\nfn modulo(x: f32, y: f32) -> f32\n{\n return x - y * floor(x/y);\n}\n\nfn moduloVec2(x: vec2<f32>, y: vec2<f32>) -> vec2<f32>\n{\n return x - y * floor(x/y);\n}\n\nfn mapCoord(coord: vec2<f32> ) -> vec2<f32>\n{\n var mappedCoord: vec2<f32> = coord;\n mappedCoord *= gfu.uInputSize.xy;\n mappedCoord += gfu.uOutputFrame.xy;\n return mappedCoord;\n}\n\nfn unmapCoord(coord: vec2<f32> ) -> vec2<f32>\n{\n var mappedCoord: vec2<f32> = coord;\n mappedCoord -= gfu.uOutputFrame.xy;\n mappedCoord /= gfu.uInputSize.xy;\n return mappedCoord;\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform float uSize;\nuniform vec3 uColor;\nuniform float uReplaceColor;\n\nuniform vec4 uInputSize;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= uInputSize.xy;\n coord += uInputSize.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= uInputSize.zw;\n coord /= uInputSize.xy;\n\n return coord;\n}\n\nvec2 pixelate(vec2 coord, vec2 size)\n{\n return floor(coord / size) * size;\n}\n\nvec2 getMod(vec2 coord, vec2 size)\n{\n return mod(coord, size) / size;\n}\n\nfloat character(float n, vec2 p)\n{\n p = floor(p*vec2(4.0, 4.0) + 2.5);\n\n if (clamp(p.x, 0.0, 4.0) == p.x)\n {\n if (clamp(p.y, 0.0, 4.0) == p.y)\n {\n if (int(mod(n/exp2(p.x + 5.0*p.y), 2.0)) == 1) return 1.0;\n }\n }\n return 0.0;\n}\n\nvoid main()\n{\n vec2 coord = mapCoord(vTextureCoord);\n\n // get the grid position\n vec2 pixCoord = pixelate(coord, vec2(uSize));\n pixCoord = unmapCoord(pixCoord);\n\n // sample the color at grid position\n vec4 color = texture(uTexture, pixCoord);\n\n // brightness of the color as it's perceived by the human eye\n float gray = 0.3 * color.r + 0.59 * color.g + 0.11 * color.b;\n\n // determine the character to use\n float n = 65536.0; // .\n if (gray > 0.2) n = 65600.0; // :\n if (gray > 0.3) n = 332772.0; // *\n if (gray > 0.4) n = 15255086.0; // o\n if (gray > 0.5) n = 23385164.0; // &\n if (gray > 0.6) n = 15252014.0; // 8\n if (gray > 0.7) n = 13199452.0; // @\n if (gray > 0.8) n = 11512810.0; // #\n\n // get the mod..\n vec2 modd = getMod(coord, vec2(uSize));\n\n finalColor = (uReplaceColor > 0.5 ? vec4(uColor, 1.) : color) * character( n, vec2(-1.0) + modd * 2.0);\n}\n",name:"ascii-filter"}),resources:{asciiUniforms:{uSize:{value:i.size,type:"f32"},uColor:{value:new Float32Array(3),type:"vec3<f32>"},uReplaceColor:{value:Number(o),type:"f32"}}}}),XW(this,"uniforms"),XW(this,"_color"),this.uniforms=this.resources.asciiUniforms.uniforms,this._color=new ke,this.color=null!=(r=i.color)?r:16777215}},"DEFAULT_OPTIONS",{size:8,color:16777215,replaceColor:!1});var KW=Object.defineProperty,qW=(e,t,n)=>(((e,t,n)=>{t in e?KW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);qW(class e extends df{get rotation(){return this._rotation/Me}set rotation(e){this._rotation=e*Me,this._updateTransform()}get thickness(){return this._thickness}set thickness(e){this._thickness=e,this._updateTransform()}get lightColor(){return this._lightColor.value}set lightColor(e){this._lightColor.setValue(e);const[t,n,r]=this._lightColor.toArray();this.uniforms.uLightColor[0]=t,this.uniforms.uLightColor[1]=n,this.uniforms.uLightColor[2]=r}get lightAlpha(){return this.uniforms.uLightAlpha}set lightAlpha(e){this.uniforms.uLightAlpha=e}get shadowColor(){return this._shadowColor.value}set shadowColor(e){this._shadowColor.setValue(e);const[t,n,r]=this._shadowColor.toArray();this.uniforms.uShadowColor[0]=t,this.uniforms.uShadowColor[1]=n,this.uniforms.uShadowColor[2]=r}get shadowAlpha(){return this.uniforms.uShadowAlpha}set shadowAlpha(e){this.uniforms.uShadowAlpha=e}_updateTransform(){this.uniforms.uTransform[0]=this.thickness*Math.cos(this._rotation),this.uniforms.uTransform[1]=this.thickness*Math.sin(this._rotation)}constructor(t){var n,r;t=q(q({},e.DEFAULT_OPTIONS),t),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct BevelUniforms {\n uLightColor: vec3<f32>,\n uLightAlpha: f32,\n uShadowColor: vec3<f32>,\n uShadowAlpha: f32,\n uTransform: vec2<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> bevelUniforms : BevelUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let transform = vec2<f32>(1.0 / gfu.uInputSize.xy) * vec2<f32>(bevelUniforms.uTransform.x, bevelUniforms.uTransform.y);\n var color: vec4<f32> = textureSample(uTexture, uSampler, uv);\n let lightSample: f32 = textureSample(uTexture, uSampler, uv - transform).a;\n let shadowSample: f32 = textureSample(uTexture, uSampler, uv + transform).a;\n\n let light = vec4<f32>(bevelUniforms.uLightColor, bevelUniforms.uLightAlpha);\n let shadow = vec4<f32>(bevelUniforms.uShadowColor, bevelUniforms.uShadowAlpha);\n\n color = vec4<f32>(mix(color.rgb, light.rgb, clamp((color.a - lightSample) * light.a, 0.0, 1.0)), color.a);\n color = vec4<f32>(mix(color.rgb, shadow.rgb, clamp((color.a - shadowSample) * shadow.a, 0.0, 1.0)), color.a);\n \n return vec4<f32>(color.rgb * color.a, color.a);\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec2 uTransform;\nuniform vec3 uLightColor;\nuniform float uLightAlpha;\nuniform vec3 uShadowColor;\nuniform float uShadowAlpha;\n\nuniform vec4 uInputSize;\n\nvoid main(void) {\n vec2 transform = vec2(1.0 / uInputSize) * vec2(uTransform.x, uTransform.y);\n vec4 color = texture(uTexture, vTextureCoord);\n float light = texture(uTexture, vTextureCoord - transform).a;\n float shadow = texture(uTexture, vTextureCoord + transform).a;\n\n color.rgb = mix(color.rgb, uLightColor, clamp((color.a - light) * uLightAlpha, 0.0, 1.0));\n color.rgb = mix(color.rgb, uShadowColor, clamp((color.a - shadow) * uShadowAlpha, 0.0, 1.0));\n finalColor = vec4(color.rgb * color.a, color.a);\n}\n",name:"bevel-filter"}),resources:{bevelUniforms:{uLightColor:{value:new Float32Array(3),type:"vec3<f32>"},uLightAlpha:{value:t.lightAlpha,type:"f32"},uShadowColor:{value:new Float32Array(3),type:"vec3<f32>"},uShadowAlpha:{value:t.shadowAlpha,type:"f32"},uTransform:{value:new Float32Array(2),type:"vec2<f32>"}}},padding:1}),qW(this,"uniforms"),qW(this,"_thickness"),qW(this,"_rotation"),qW(this,"_lightColor"),qW(this,"_shadowColor"),this.uniforms=this.resources.bevelUniforms.uniforms,this._lightColor=new ke,this._shadowColor=new ke,this.lightColor=null!=(n=t.lightColor)?n:16777215,this.shadowColor=null!=(r=t.shadowColor)?r:0,Object.assign(this,t)}},"DEFAULT_OPTIONS",{rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7});var QW=Object.defineProperty,YW=(e,t,n)=>(((e,t,n)=>{t in e?QW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);YW(class e extends xW{apply(e,t,n,r){const i=Ua.getSameSizeTexture(t);e.applyFilter(this,t,n,r),this._blurXFilter.apply(e,t,i,!0),this._blurYFilter.apply(e,i,n,!1),Ua.returnTexture(i)}get strength(){return this._strength}set strength(e){this._strength="number"==typeof e?{x:e,y:e}:e,this._updateStrength()}get strengthX(){return this.strength.x}set strengthX(e){this.strength.x=e,this._updateStrength()}get strengthY(){return this.strength.y}set strengthY(e){this.strength.y=e,this._updateStrength()}_updateStrength(){this._blurXFilter.blur=this.strengthX,this._blurYFilter.blur=this.strengthY}get blur(){return $e("6.0.0","BloomFilter.blur is deprecated, please use BloomFilter.strength instead"),this.strengthX}set blur(e){$e("6.0.0","BloomFilter.blur is deprecated, please use BloomFilter.strength instead"),this.strength=e}get blurX(){return $e("6.0.0","BloomFilter.blurX is deprecated, please use BloomFilter.strengthX instead"),this.strengthX}set blurX(e){$e("6.0.0","BloomFilter.blurX is deprecated, please use BloomFilter.strengthX instead"),this.strengthX=e}get blurY(){return $e("6.0.0","BloomFilter.blurY is deprecated, please use BloomFilter.strengthY instead"),this.strengthY}set blurY(e){$e("6.0.0","BloomFilter.blurY is deprecated, please use BloomFilter.strengthY instead"),this.strengthY=e}constructor(...t){var n;let r=null!=(n=t[0])?n:{};if("number"==typeof r||Array.isArray(r)||"x"in r&&"y"in r){$e("6.0.0","BloomFilter constructor params are now options object. See params: { strength, quality, resolution, kernelSize }");let e=r;Array.isArray(e)&&(e={x:e[0],y:e[1]}),r={strength:e},void 0!==t[1]&&(r.quality=t[1]),void 0!==t[2]&&(r.resolution=t[2]),void 0!==t[3]&&(r.kernelSize=t[3])}r=q(q({},e.DEFAULT_OPTIONS),r),super(),YW(this,"_blurXFilter"),YW(this,"_blurYFilter"),YW(this,"_strength"),this._strength={x:2,y:2},r.strength&&("number"==typeof r.strength?(this._strength.x=r.strength,this._strength.y=r.strength):(this._strength.x=r.strength.x,this._strength.y=r.strength.y)),this._blurXFilter=new CW(Q(q({},r),{horizontal:!0,strength:this.strengthX})),this._blurYFilter=new CW(Q(q({},r),{horizontal:!1,strength:this.strengthY})),this._blurYFilter.blendMode="screen",Object.assign(this,r)}},"DEFAULT_OPTIONS",{strength:{x:2,y:2},quality:4,resolution:1,kernelSize:5});var ZW=Object.defineProperty,$W=(e,t,n)=>(((e,t,n)=>{t in e?ZW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);$W(class e extends df{apply(e,t,n,r){this.uniforms.uDimensions[0]=t.frame.width,this.uniforms.uDimensions[1]=t.frame.height,e.applyFilter(this,t,n,r)}get center(){return this.uniforms.uCenter}set center(e){"number"==typeof e&&(e={x:e,y:e}),Array.isArray(e)&&(e={x:e[0],y:e[1]}),this.uniforms.uCenter=e}get centerX(){return this.uniforms.uCenter.x}set centerX(e){this.uniforms.uCenter.x=e}get centerY(){return this.uniforms.uCenter.y}set centerY(e){this.uniforms.uCenter.y=e}get radius(){return this.uniforms.uRadius}set radius(e){this.uniforms.uRadius=e}get strength(){return this.uniforms.uStrength}set strength(e){this.uniforms.uStrength=e}constructor(t){t=q(q({},e.DEFAULT_OPTIONS),t),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct BulgePinchUniforms {\n uDimensions: vec2<f32>,\n uCenter: vec2<f32>,\n uRadius: f32,\n uStrength: f32,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> bulgePinchUniforms : BulgePinchUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let dimensions: vec2<f32> = bulgePinchUniforms.uDimensions;\n let center: vec2<f32> = bulgePinchUniforms.uCenter;\n let radius: f32 = bulgePinchUniforms.uRadius;\n let strength: f32 = bulgePinchUniforms.uStrength;\n var coord: vec2<f32> = (uv * gfu.uInputSize.xy) - center * dimensions.xy;\n\n let distance: f32 = length(coord);\n\n if (distance < radius) {\n let percent: f32 = distance / radius;\n if (strength > 0.0) {\n coord *= mix(1.0, smoothstep(0.0, radius / distance, percent), strength * 0.75);\n } else {\n coord *= mix(1.0, pow(percent, 1.0 + strength * 0.75) * radius / distance, 1.0 - percent);\n }\n }\n coord += (center * dimensions.xy);\n coord /= gfu.uInputSize.xy;\n\n let clampedCoord: vec2<f32> = clamp(coord, gfu.uInputClamp.xy, gfu.uInputClamp.zw);\n var color: vec4<f32> = textureSample(uTexture, uSampler, clampedCoord);\n if (coord.x != clampedCoord.x && coord.y != clampedCoord.y) {\n color *= max(0.0, 1.0 - length(coord - clampedCoord));\n }\n\n return color;\n}\n\nfn compareVec2(x: vec2<f32>, y: vec2<f32>) -> bool\n{\n if (x.x == y.x && x.y == y.y)\n {\n return true;\n }\n\n return false;\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec2 uDimensions;\nuniform vec2 uCenter;\nuniform float uRadius;\nuniform float uStrength;\n\nuniform vec4 uInputSize;\nuniform vec4 uInputClamp;\n\nvoid main()\n{\n vec2 coord = vTextureCoord * uInputSize.xy;\n coord -= uCenter * uDimensions.xy;\n float distance = length(coord);\n\n if (distance < uRadius) {\n float percent = distance / uRadius;\n if (uStrength > 0.0) {\n coord *= mix(1.0, smoothstep(0.0, uRadius / distance, percent), uStrength * 0.75);\n } else {\n coord *= mix(1.0, pow(percent, 1.0 + uStrength * 0.75) * uRadius / distance, 1.0 - percent);\n }\n }\n\n coord += uCenter * uDimensions.xy;\n coord /= uInputSize.xy;\n vec2 clampedCoord = clamp(coord, uInputClamp.xy, uInputClamp.zw);\n vec4 color = texture(uTexture, clampedCoord);\n\n if (coord != clampedCoord) {\n color *= max(0.0, 1.0 - length(coord - clampedCoord));\n }\n\n finalColor = color;\n}\n",name:"bulge-pinch-filter"}),resources:{bulgePinchUniforms:{uDimensions:{value:[0,0],type:"vec2<f32>"},uCenter:{value:t.center,type:"vec2<f32>"},uRadius:{value:t.radius,type:"f32"},uStrength:{value:t.strength,type:"f32"}}}}),$W(this,"uniforms"),this.uniforms=this.resources.bulgePinchUniforms.uniforms,Object.assign(this,t)}},"DEFAULT_OPTIONS",{center:{x:.5,y:.5},radius:100,strength:1});var JW,eV,tV="struct BaseUniforms {\n uOptions: vec4<f32>,\n uCounts: vec2<f32>,\n};\n\nstruct StopsUniforms {\n uColors: array<vec3<f32>, MAX_STOPS>,\n uStops: array<vec4<f32>, MAX_STOPS>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> baseUniforms : BaseUniforms;\n@group(1) @binding(1) var<uniform> stopsUniforms : StopsUniforms;\n\nstruct VSOutput {\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>,\n @location(1) coord : vec2<f32>\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 filterCoord( vTextureCoord:vec2<f32> ) -> vec2<f32>\n{\n return vTextureCoord * gfu.uInputSize.xy / gfu.uOutputFrame.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@vertex\nfn mainVertex(\n @location(0) aPosition : vec2<f32>, \n) -> VSOutput {\n let vTextureCoord: vec2<f32> = filterTextureCoord(aPosition);\n return VSOutput(\n filterVertexPosition(aPosition),\n vTextureCoord,\n filterCoord(vTextureCoord),\n );\n}\n\nstruct ColorStop {\n offset: f32,\n color: vec3<f32>,\n alpha: f32,\n};\n\nfn rotate2d(angle: f32) -> mat2x2<f32>{\n return mat2x2(cos(angle), -sin(angle),\n sin(angle), cos(angle));\n}\n\nfn projectLinearPosition(pos: vec2<f32>, angle: f32) -> f32 {\n var center: vec2<f32> = vec2<f32>(0.5);\n var result: vec2<f32> = pos - center;\n result = rotate2d(angle) * result;\n result = result + center;\n return clamp(result.x, 0.0, 1.0);\n}\n\nfn projectRadialPosition(pos: vec2<f32>) -> f32 {\n var r: f32 = distance(pos, vec2<f32>(0.5));\n return clamp(2.0 * r, 0.0, 1.0);\n}\n\nfn projectAnglePosition(pos: vec2<f32>, angle: f32) -> f32 {\n var center: vec2<f32> = pos - vec2<f32>(0.5, 0.5);\n var polarAngle: f32 = atan2(-center.y, center.x);\n return ((polarAngle + angle) % PI_2) / PI_2;\n}\n\nfn projectPosition(pos: vec2<f32>, gradientType: i32, angle: f32) -> f32 {\n if (gradientType == TYPE_LINEAR) {\n return projectLinearPosition(pos, angle);\n } else if (gradientType == TYPE_RADIAL) {\n return projectRadialPosition(pos);\n } else if (gradientType == TYPE_CONIC) {\n return projectAnglePosition(pos, angle);\n }\n\n return pos.y;\n}\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>,\n @location(1) coord : vec2<f32>\n) -> @location(0) vec4<f32> {\n let uType: i32 = i32(baseUniforms.uOptions[0]);\n let uAngle: f32 = baseUniforms.uOptions[1];\n let uAlpha: f32 = baseUniforms.uOptions[2];\n let uReplace: f32 = baseUniforms.uOptions[3];\n\n let uNumStops: i32 = i32(baseUniforms.uCounts[0]);\n let uMaxColors: f32 = baseUniforms.uCounts[1];\n\n // current/original color\n var currentColor: vec4<f32> = textureSample(uTexture, uSampler, uv);\n\n // skip calculations if gradient alpha is 0\n if (uAlpha == 0.0) { return currentColor; }\n\n // project position\n var y: f32 = projectPosition(coord, uType, radians(uAngle));\n\n // check gradient bounds\n var offsetMin: f32 = stopsUniforms.uStops[0][0];\n var offsetMax: f32 = 0.0;\n\n let numStops: i32 = uNumStops;\n\n for (var i: i32 = 0; i < MAX_STOPS; i = i + 1) {\n if (i == numStops - 1) { // last index\n offsetMax = stopsUniforms.uStops[i][0];\n }\n }\n\n if (y < offsetMin || y > offsetMax) { return currentColor; }\n\n // limit colors\n if (uMaxColors > 0.0) {\n var stepSize: f32 = 1.0 / uMaxColors;\n var stepNumber: f32 = floor(y / stepSize);\n y = stepSize * (stepNumber + 0.5); // offset by 0.5 to use color from middle of segment\n }\n\n // find color stops\n var stopFrom: ColorStop;\n var stopTo: ColorStop;\n\n for (var i: i32 = 0; i < MAX_STOPS; i = i + 1) {\n if (y >= stopsUniforms.uStops[i][0]) {\n stopFrom = ColorStop(stopsUniforms.uStops[i][0], stopsUniforms.uColors[i], stopsUniforms.uStops[i][1]);\n stopTo = ColorStop(stopsUniforms.uStops[i + 1][0], stopsUniforms.uColors[i + 1], stopsUniforms.uStops[i + 1][1]);\n }\n\n if (i == numStops - 1) { // last index\n break;\n }\n }\n\n // mix colors from stops\n var colorFrom: vec4<f32> = vec4<f32>(stopFrom.color * stopFrom.alpha, stopFrom.alpha);\n var colorTo: vec4<f32> = vec4<f32>(stopTo.color * stopTo.alpha, stopTo.alpha);\n\n var segmentHeight: f32 = stopTo.offset - stopFrom.offset;\n var relativePos: f32 = y - stopFrom.offset; // position from 0 to [segmentHeight]\n var relativePercent: f32 = relativePos / segmentHeight; // position in percent between [from.offset] and [to.offset].\n\n var gradientAlpha: f32 = uAlpha * currentColor.a;\n var gradientColor: vec4<f32> = mix(colorFrom, colorTo, relativePercent) * gradientAlpha;\n\n if (uReplace < 0.5) {\n // mix resulting color with current color\n return gradientColor + currentColor * (1.0 - gradientColor.a);\n } else {\n // replace with gradient color\n return gradientColor;\n }\n}\n\nconst PI: f32 = 3.14159265358979323846264;\nconst PI_2: f32 = PI * 2.0;\n\nconst TYPE_LINEAR: i32 = 0;\nconst TYPE_RADIAL: i32 = 1;\nconst TYPE_CONIC: i32 = 2;\nconst MAX_STOPS: i32 = 32;";(eV=eV||{}).stringify=(JW={"visit_linear-gradient":function(e){return JW.visit_gradient(e)},"visit_repeating-linear-gradient":function(e){return JW.visit_gradient(e)},"visit_radial-gradient":function(e){return JW.visit_gradient(e)},"visit_repeating-radial-gradient":function(e){return JW.visit_gradient(e)},"visit_gradient":function(e){var t=JW.visit(e.orientation);return t&&(t+=", "),e.type+"("+t+JW.visit(e.colorStops)+")"},"visit_shape":function(e){var t=e.value,n=JW.visit(e.at),r=JW.visit(e.style);return r&&(t+=" "+r),n&&(t+=" at "+n),t},"visit_default-radial":function(e){var t="",n=JW.visit(e.at);return n&&(t+=n),t},"visit_extent-keyword":function(e){var t=e.value,n=JW.visit(e.at);return n&&(t+=" at "+n),t},"visit_position-keyword":function(e){return e.value},"visit_position":function(e){return JW.visit(e.value.x)+" "+JW.visit(e.value.y)},"visit_%":function(e){return e.value+"%"},"visit_em":function(e){return e.value+"em"},"visit_px":function(e){return e.value+"px"},"visit_literal":function(e){return JW.visit_color(e.value,e)},"visit_hex":function(e){return JW.visit_color("#"+e.value,e)},"visit_rgb":function(e){return JW.visit_color("rgb("+e.value.join(", ")+")",e)},"visit_rgba":function(e){return JW.visit_color("rgba("+e.value.join(", ")+")",e)},"visit_color":function(e,t){var n=e,r=JW.visit(t.length);return r&&(n+=" "+r),n},"visit_angular":function(e){return e.value+"deg"},"visit_directional":function(e){return"to "+e.value},"visit_array":function(e){var t="",n=e.length;return e.forEach((function(e,r){t+=JW.visit(e),r<n-1&&(t+=", ")})),t},"visit":function(e){if(!e)return"";if(e instanceof Array)return JW.visit_array(e,"");if(e.type){var t=JW["visit_"+e.type];if(t)return t(e);throw Error("Missing visitor visit_"+e.type)}throw Error("Invalid node.")}},function(e){return JW.visit(e)}),(eV=eV||{}).parse=function(){var e=/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,t=/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,n=/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,r=/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,i=/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,o=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,a=/^(left|center|right|top|bottom)/i,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,p=/^,/,h=/^\#([0-9a-fA-F]+)/,m=/^([a-zA-Z]+)/,A=/^rgb/i,g=/^rgba/i,v=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,y="";function b(e){var t=new Error(y+": "+e);throw t.source=y,t}function x(){var e=I(S);return y.length>0&&b("Invalid input not EOF"),e}function S(){return _("linear-gradient",e,E)||_("repeating-linear-gradient",t,E)||_("radial-gradient",n,C)||_("repeating-radial-gradient",r,C)}function _(e,t,n){return w(t,(function(t){var r=n();return r&&(F(p)||b("Missing comma before color stops")),{type:e,orientation:r,colorStops:I(O)}}))}function w(e,t){var n=F(e);if(n){F(d)||b("Missing (");var r=t(n);return F(f)||b("Missing )"),r}}function E(){return B("directional",i,1)||B("angular",c,1)}function C(){var e,t,n=T();return n&&((e=[]).push(n),t=y,F(p)&&((n=T())?e.push(n):y=t)),e}function T(){var e,t,n=((t=B("shape",/^(circle)/i,0))&&(t.style=z()||P()),t||((e=B("shape",/^(ellipse)/i,0))&&(e.style=j()||P()),e));if(n)n.at=k();else{var r=P();if(r){n=r;var i=k();i&&(n.at=i)}else{var o=R();o&&(n={type:"default-radial",at:o})}}return n}function P(){return B("extent-keyword",o,1)}function k(){if(B("position",/^at/,0)){var e=R();return e||b("Missing positioning value"),e}}function R(){var e={x:j(),y:j()};if(e.x||e.y)return{type:"position",value:e}}function I(e){var t=e(),n=[];if(t)for(n.push(t);F(p);)(t=e())?n.push(t):b("One extra comma");return n}function O(){var e=B("hex",h,1)||w(g,(function(){return{type:"rgba",value:I(M)}}))||w(A,(function(){return{type:"rgb",value:I(M)}}))||B("literal",m,0);return e||b("Expected color definition"),e.length=j(),e}function M(){return F(v)[1]}function j(){return B("%",l,1)||B("position-keyword",a,1)||z()}function z(){return B("px",s,1)||B("em",u,1)}function B(e,t,n){var r=F(t);if(r)return{type:e,value:r[n]}}function F(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(y))&&D(n[0].length),(t=e.exec(y))&&D(t[0].length),t}function D(e){y=y.substr(e)}return function(e){return y=e.toString(),x()}}();var nV=eV.parse;function rV(e){const t=nV(function(e){let t=e.replace(/\s{2,}/gu," ");return t=t.replace(/;/g,""),t=t.replace(/ ,/g,","),t=t.replace(/\( /g,"("),t=t.replace(/ \)/g,")"),t.trim()}(e));if(0===t.length)throw new Error("Invalid CSS gradient.");if(1!==t.length)throw new Error("Unsupported CSS gradient (multiple gradients is not supported).");const n=t[0];return{type:function(e){const t={"linear-gradient":0,"radial-gradient":1};if(!(e in t))throw new Error(`Unsupported gradient type "${e}"`);return t[e]}(n.type),stops:function(e){const t=function(e){const t=[],n=-1;for(let o=0;o<e.length;o++){const r=e[o];let i=n;"literal"===r.type&&r.length&&"type"in r.length&&"%"===r.length.type&&"value"in r.length&&(i=parseFloat(r.length.value)/100),t.push(i)}const r=e=>{for(let r=e;r<t.length;r++)if(t[r]!==n)return{indexDelta:r-e,offset:t[r]};return{indexDelta:t.length-1-e,offset:1}};let i=0;for(let o=0;o<t.length;o++){const e=t[o];if(e!==n)i=e;else if(0===o)t[o]=0;else if(o+1===t.length)t[o]=1;else{const e=r(o),n=(e.offset-i)/(1+e.indexDelta);for(let r=0;r<=e.indexDelta;r++)t[o+r]=i+(r+1)*n;o+=e.indexDelta,i=t[o]}}return t.map(oV)}(e),n=[],r=new ke;for(let i=0;i<e.length;i++){const o=iV(e[i]),a=r.setValue(o).toArray();n.push({offset:t[i],color:a.slice(0,3),alpha:a[3]})}return n}(n.colorStops),angle:function(e){if(void 0===e)return 0;if("type"in e&&"value"in e)switch(e.type){case"angular":return parseFloat(e.value);case"directional":return function(e){const t={left:270,top:0,bottom:180,right:90,"left top":315,"top left":315,"left bottom":225,"bottom left":225,"right top":45,"top right":45,"right bottom":135,"bottom right":135};if(!(e in t))throw new Error(`Unsupported directional value "${e}"`);return t[e]}(e.value)}return 0}(n.orientation)}}function iV(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;default:return`${e.type}(${e.value.join(",")})`}}function oV(e){return e.toString().length>6?parseFloat(e.toString().substring(0,6)):e}eV.stringify;var aV=Object.defineProperty,sV=(e,t,n)=>(((e,t,n)=>{t in e?aV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),lV=class e extends df{get stops(){return this._stops}set stops(e){const t=function(e){return[...e].sort(((e,t)=>e.offset-t.offset))}(e),n=new ke;let r,i,o;for(let a=0;a<t.length;a++){n.setValue(t[a].color);const e=3*a;[r,i,o]=n.toArray(),this.stopsUniforms.uColors[e]=r,this.stopsUniforms.uColors[e+1]=i,this.stopsUniforms.uColors[e+2]=o,this.stopsUniforms.uStops[4*a]=t[a].offset,this.stopsUniforms.uStops[4*a+1]=t[a].alpha}this.baseUniforms.uCounts[0]=t.length,this._stops=t}get type(){return this.baseUniforms.uOptions[0]}set type(e){this.baseUniforms.uOptions[0]=e}get angle(){return this.baseUniforms.uOptions[1]+90}set angle(e){this.baseUniforms.uOptions[1]=e-90}get alpha(){return this.baseUniforms.uOptions[2]}set alpha(e){this.baseUniforms.uOptions[2]=e}get maxColors(){return this.baseUniforms.uCounts[1]}set maxColors(e){this.baseUniforms.uCounts[1]=e}get replace(){return this.baseUniforms.uOptions[3]>.5}set replace(e){this.baseUniforms.uOptions[3]=e?1:0}constructor(t){var n,r,i;if(!(t=t&&"css"in t?Q(q({},rV(t.css||"")),{alpha:null!=(n=t.alpha)?n:e.defaults.alpha,maxColors:null!=(r=t.maxColors)?r:e.defaults.maxColors}):q(q({},e.defaults),t)).stops||t.stops.length<2)throw new Error("ColorGradientFilter requires at least 2 color stops.");super({gpuProgram:Mu.from({vertex:{source:tV,entryPoint:"mainVertex"},fragment:{source:tV,entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:"in vec2 aPosition;\nout vec2 vTextureCoord;\nout vec2 vFilterCoord;\n\nuniform vec4 uInputSize;\nuniform vec4 uOutputFrame;\nuniform vec4 uOutputTexture;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy;\n \n position.x = position.x * (2.0 / uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aPosition * (uOutputFrame.zw * uInputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n vFilterCoord = vTextureCoord * uInputSize.xy / uOutputFrame.zw;\n}\n",fragment:"precision highp float;\nin vec2 vTextureCoord;\nin vec2 vFilterCoord;\nout vec4 finalColor;\n\nconst int TYPE_LINEAR = 0;\nconst int TYPE_RADIAL = 1;\nconst int TYPE_CONIC = 2;\nconst int MAX_STOPS = 32;\n\nuniform sampler2D uTexture;\nuniform vec4 uOptions;\nuniform vec2 uCounts;\nuniform vec3 uColors[MAX_STOPS];\nuniform vec4 uStops[MAX_STOPS];\n\nconst float PI = 3.1415926538;\nconst float PI_2 = PI*2.;\n\nstruct ColorStop {\n float offset;\n vec3 color;\n float alpha;\n};\n\nmat2 rotate2d(float angle){\n return mat2(cos(angle), -sin(angle),\n sin(angle), cos(angle));\n}\n\nfloat projectLinearPosition(vec2 pos, float angle){\n vec2 center = vec2(0.5);\n vec2 result = pos - center;\n result = rotate2d(angle) * result;\n result = result + center;\n return clamp(result.x, 0., 1.);\n}\n\nfloat projectRadialPosition(vec2 pos) {\n float r = distance(pos, vec2(0.5));\n return clamp(2.*r, 0., 1.);\n}\n\nfloat projectAnglePosition(vec2 pos, float angle) {\n vec2 center = pos - vec2(0.5);\n float polarAngle=atan(-center.y, center.x);\n return mod(polarAngle + angle, PI_2) / PI_2;\n}\n\nfloat projectPosition(vec2 pos, int type, float angle) {\n if (type == TYPE_LINEAR) {\n return projectLinearPosition(pos, angle);\n } else if (type == TYPE_RADIAL) {\n return projectRadialPosition(pos);\n } else if (type == TYPE_CONIC) {\n return projectAnglePosition(pos, angle);\n }\n\n return pos.y;\n}\n\nvoid main(void) {\n int uType = int(uOptions[0]);\n float uAngle = uOptions[1];\n float uAlpha = uOptions[2];\n float uReplace = uOptions[3];\n\n int uNumStops = int(uCounts[0]);\n float uMaxColors = uCounts[1];\n\n // current/original color\n vec4 currentColor = texture(uTexture, vTextureCoord);\n\n // skip calculations if gradient alpha is 0\n if (0.0 == uAlpha) {\n finalColor = currentColor;\n return;\n }\n\n // project position\n float y = projectPosition(vFilterCoord, int(uType), radians(uAngle));\n\n // check gradient bounds\n float offsetMin = uStops[0][0];\n float offsetMax = 0.0;\n\n int numStops = int(uNumStops);\n\n for (int i = 0; i < MAX_STOPS; i++) {\n if (i == numStops-1){ // last index\n offsetMax = uStops[i][0];\n }\n }\n\n if (y < offsetMin || y > offsetMax) {\n finalColor = currentColor;\n return;\n }\n\n // limit colors\n if (uMaxColors > 0.) {\n float stepSize = 1./uMaxColors;\n float stepNumber = float(floor(y/stepSize));\n y = stepSize * (stepNumber + 0.5);// offset by 0.5 to use color from middle of segment\n }\n\n // find color stops\n ColorStop from;\n ColorStop to;\n\n for (int i = 0; i < MAX_STOPS; i++) {\n if (y >= uStops[i][0]) {\n from = ColorStop(uStops[i][0], uColors[i], uStops[i][1]);\n to = ColorStop(uStops[i+1][0], uColors[i+1], uStops[i+1][1]);\n }\n\n if (i == numStops-1){ // last index\n break;\n }\n }\n\n // mix colors from stops\n vec4 colorFrom = vec4(from.color * from.alpha, from.alpha);\n vec4 colorTo = vec4(to.color * to.alpha, to.alpha);\n\n float segmentHeight = to.offset - from.offset;\n float relativePos = y - from.offset;// position from 0 to [segmentHeight]\n float relativePercent = relativePos / segmentHeight;// position in percent between [from.offset] and [to.offset].\n\n float gradientAlpha = uAlpha * currentColor.a;\n vec4 gradientColor = mix(colorFrom, colorTo, relativePercent) * gradientAlpha;\n\n if (uReplace < 0.5) {\n // mix resulting color with current color\n finalColor = gradientColor + currentColor*(1.-gradientColor.a);\n } else {\n // replace with gradient color\n finalColor = gradientColor;\n }\n}\n",name:"color-gradient-filter"}),resources:{baseUniforms:{uOptions:{value:[t.type,null!=(i=t.angle)?i:90,t.alpha,t.replace?1:0],type:"vec4<f32>"},uCounts:{value:[t.stops.length,t.maxColors],type:"vec2<f32>"}},stopsUniforms:{uColors:{value:new Float32Array(96),type:"vec3<f32>",size:32},uStops:{value:new Float32Array(128),type:"vec4<f32>",size:32}}}}),sV(this,"baseUniforms"),sV(this,"stopsUniforms"),sV(this,"_stops",[]),this.baseUniforms=this.resources.baseUniforms.uniforms,this.stopsUniforms=this.resources.stopsUniforms.uniforms,Object.assign(this,t)}};sV(lV,"LINEAR",0),sV(lV,"RADIAL",1),sV(lV,"CONIC",2),sV(lV,"defaults",{type:lV.LINEAR,stops:[{offset:0,color:16711680,alpha:1},{offset:1,color:255,alpha:1}],alpha:1,angle:90,maxColors:0,replace:!1});var uV=Object.defineProperty,cV=(e,t,n)=>(((e,t,n)=>{t in e?uV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);cV(class e extends df{get mix(){return this.uniforms.uMix}set mix(e){this.uniforms.uMix=e}get colorSize(){return this._size}get colorMap(){return this._colorMap}set colorMap(e){if(!e||e===this.colorMap)return;const t=e instanceof ii?e.source:e;t.style.scaleMode=this._scaleMode,t.autoGenerateMipmaps=!1,this._size=t.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms.uSize=this._size,this.uniforms.uSliceSize=this._sliceSize,this.uniforms.uSlicePixelSize=this._slicePixelSize,this.uniforms.uSliceInnerSize=this._sliceInnerSize,this.resources.uMapTexture=t,this._colorMap=e}get nearest(){return this._nearest}set nearest(e){this._nearest=e,this._scaleMode=e?"nearest":"linear";const t=this._colorMap;t&&t.source&&(t.source.scaleMode=this._scaleMode,t.source.autoGenerateMipmaps=!1,t.source.style.update(),t.source.update())}updateColorMap(){const e=this._colorMap;(null==e?void 0:e.source)&&(e.source.update(),this.colorMap=e)}destroy(){var e;null==(e=this._colorMap)||e.destroy(),super.destroy()}constructor(...t){var n;let r=null!=(n=t[0])?n:{};if((r instanceof ii||r instanceof ei)&&($e("6.0.0","ColorMapFilter constructor params are now options object. See params: { colorMap, nearest, mix }"),r={colorMap:r},void 0!==t[1]&&(r.nearest=t[1]),void 0!==t[2]&&(r.mix=t[2])),r=q(q({},e.DEFAULT_OPTIONS),r),!r.colorMap)throw Error("No color map texture source was provided to ColorMapFilter");super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct ColorMapUniforms {\n uMix: f32,\n uSize: f32,\n uSliceSize: f32,\n uSlicePixelSize: f32,\n uSliceInnerSize: f32,\n};\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> colorMapUniforms : ColorMapUniforms;\n@group(1) @binding(1) var uMapTexture: texture_2d<f32>;\n@group(1) @binding(2) var uMapSampler: sampler;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n var color:vec4<f32> = textureSample(uTexture, uSampler, uv);\n\n var adjusted: vec4<f32>;\n\n var altColor: vec4<f32> = vec4<f32>(color.rgb / color.a, color.a);\n let innerWidth: f32 = colorMapUniforms.uSize - 1.0;\n let zSlice0: f32 = min(floor(color.b * innerWidth), innerWidth);\n let zSlice1: f32 = min(zSlice0 + 1.0, innerWidth);\n let xOffset: f32 = colorMapUniforms.uSlicePixelSize * 0.5 + color.r * colorMapUniforms.uSliceInnerSize;\n let s0: f32 = xOffset + (zSlice0 * colorMapUniforms.uSliceSize);\n let s1: f32 = xOffset + (zSlice1 * colorMapUniforms.uSliceSize);\n let yOffset: f32 = colorMapUniforms.uSliceSize * 0.5 + color.g * (1.0 - colorMapUniforms.uSliceSize);\n let slice0Color: vec4<f32> = textureSample(uMapTexture, uMapSampler, vec2(s0,yOffset));\n let slice1Color: vec4<f32> = textureSample(uMapTexture, uMapSampler, vec2(s1,yOffset));\n let zOffset: f32 = fract(color.b * innerWidth);\n adjusted = mix(slice0Color, slice1Color, zOffset);\n altColor = vec4<f32>(color.rgb * color.a, color.a);\n\n let realColor: vec4<f32> = select(color, altColor, color.a > 0.0);\n\n return vec4<f32>(mix(realColor, adjusted, colorMapUniforms.uMix).rgb, realColor.a);\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"in vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform sampler2D uMapTexture;\nuniform float uMix;\nuniform float uSize;\nuniform float uSliceSize;\nuniform float uSlicePixelSize;\nuniform float uSliceInnerSize;\n\nvoid main() {\n vec4 color = texture(uTexture, vTextureCoord.xy);\n vec4 adjusted;\n\n if (color.a > 0.0) {\n color.rgb /= color.a;\n float innerWidth = uSize - 1.0;\n float zSlice0 = min(floor(color.b * innerWidth), innerWidth);\n float zSlice1 = min(zSlice0 + 1.0, innerWidth);\n float xOffset = uSlicePixelSize * 0.5 + color.r * uSliceInnerSize;\n float s0 = xOffset + (zSlice0 * uSliceSize);\n float s1 = xOffset + (zSlice1 * uSliceSize);\n float yOffset = uSliceSize * 0.5 + color.g * (1.0 - uSliceSize);\n vec4 slice0Color = texture(uMapTexture, vec2(s0,yOffset));\n vec4 slice1Color = texture(uMapTexture, vec2(s1,yOffset));\n float zOffset = fract(color.b * innerWidth);\n adjusted = mix(slice0Color, slice1Color, zOffset);\n\n color.rgb *= color.a;\n }\n\n finalColor = vec4(mix(color, adjusted, uMix).rgb, color.a);\n\n}",name:"color-map-filter"}),resources:{colorMapUniforms:{uMix:{value:r.mix,type:"f32"},uSize:{value:0,type:"f32"},uSliceSize:{value:0,type:"f32"},uSlicePixelSize:{value:0,type:"f32"},uSliceInnerSize:{value:0,type:"f32"}},uMapTexture:r.colorMap.source,uMapSampler:r.colorMap.source.style}}),cV(this,"uniforms"),cV(this,"_size",0),cV(this,"_sliceSize",0),cV(this,"_slicePixelSize",0),cV(this,"_sliceInnerSize",0),cV(this,"_nearest",!1),cV(this,"_scaleMode","linear"),cV(this,"_colorMap"),this.uniforms=this.resources.colorMapUniforms.uniforms,Object.assign(this,r)}},"DEFAULT_OPTIONS",{colorMap:ii.WHITE,nearest:!1,mix:1});var dV=Object.defineProperty,fV=(e,t,n)=>(((e,t,n)=>{t in e?dV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);fV(class e extends df{get color(){return this._color.value}set color(e){this._color.setValue(e);const[t,n,r]=this._color.toArray();this.uniforms.uColor[0]=t,this.uniforms.uColor[1]=n,this.uniforms.uColor[2]=r}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}constructor(...t){var n,r;let i=null!=(n=t[0])?n:{};("number"==typeof i||Array.isArray(i)||i instanceof Float32Array)&&($e("6.0.0","ColorOverlayFilter constructor params are now options object. See params: { color, alpha }"),i={color:i},void 0!==t[1]&&(i.alpha=t[1])),i=q(q({},e.DEFAULT_OPTIONS),i),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct ColorOverlayUniforms {\n uColor: vec3<f32>,\n uAlpha: f32,\n};\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> colorOverlayUniforms : ColorOverlayUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let c = textureSample(uTexture, uSampler, uv);\n return vec4<f32>(mix(c.rgb, colorOverlayUniforms.uColor.rgb, c.a * colorOverlayUniforms.uAlpha), c.a);\n}\n",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"in vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec3 uColor;\nuniform float uAlpha;\n\nvoid main(void) {\n vec4 c = texture(uTexture, vTextureCoord);\n finalColor = vec4(mix(c.rgb, uColor.rgb, c.a * uAlpha), c.a);\n}\n",name:"color-overlay-filter"}),resources:{colorOverlayUniforms:{uColor:{value:new Float32Array(3),type:"vec3<f32>"},uAlpha:{value:i.alpha,type:"f32"}}}}),fV(this,"uniforms"),fV(this,"_color"),this.uniforms=this.resources.colorOverlayUniforms.uniforms,this._color=new ke,this.color=null!=(r=i.color)?r:0}},"DEFAULT_OPTIONS",{color:0,alpha:1});var pV=Object.defineProperty,hV=(e,t,n)=>(((e,t,n)=>{t in e?pV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);hV(class e extends df{get originalColor(){return this._originalColor.value}set originalColor(e){this._originalColor.setValue(e);const[t,n,r]=this._originalColor.toArray();this.uniforms.uOriginalColor[0]=t,this.uniforms.uOriginalColor[1]=n,this.uniforms.uOriginalColor[2]=r}get targetColor(){return this._targetColor.value}set targetColor(e){this._targetColor.setValue(e);const[t,n,r]=this._targetColor.toArray();this.uniforms.uTargetColor[0]=t,this.uniforms.uTargetColor[1]=n,this.uniforms.uTargetColor[2]=r}get tolerance(){return this.uniforms.uTolerance}set tolerance(e){this.uniforms.uTolerance=e}set newColor(e){$e("6.0.0","ColorReplaceFilter.newColor is deprecated, please use ColorReplaceFilter.targetColor instead"),this.targetColor=e}get newColor(){return $e("6.0.0","ColorReplaceFilter.newColor is deprecated, please use ColorReplaceFilter.targetColor instead"),this.targetColor}set epsilon(e){$e("6.0.0","ColorReplaceFilter.epsilon is deprecated, please use ColorReplaceFilter.tolerance instead"),this.tolerance=e}get epsilon(){return $e("6.0.0","ColorReplaceFilter.epsilon is deprecated, please use ColorReplaceFilter.tolerance instead"),this.tolerance}constructor(...t){var n,r,i;let o=null!=(n=t[0])?n:{};("number"==typeof o||Array.isArray(o)||o instanceof Float32Array)&&($e("6.0.0","ColorReplaceFilter constructor params are now options object. See params: { originalColor, targetColor, tolerance }"),o={originalColor:o},void 0!==t[1]&&(o.targetColor=t[1]),void 0!==t[2]&&(o.tolerance=t[2])),o=q(q({},e.DEFAULT_OPTIONS),o),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct ColorReplaceUniforms {\n uOriginalColor: vec3<f32>,\n uTargetColor: vec3<f32>,\n uTolerance: f32,\n};\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> colorReplaceUniforms : ColorReplaceUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let sample: vec4<f32> = textureSample(uTexture, uSampler, uv);\n\n let colorDiff: vec3<f32> = colorReplaceUniforms.uOriginalColor - (sample.rgb / max(sample.a, 0.0000000001));\n let colorDistance: f32 = length(colorDiff);\n let doReplace: f32 = step(colorDistance, colorReplaceUniforms.uTolerance);\n\n return vec4<f32>(mix(sample.rgb, (colorReplaceUniforms.uTargetColor + colorDiff) * sample.a, doReplace), sample.a);\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"in vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec3 uOriginalColor;\nuniform vec3 uTargetColor;\nuniform float uTolerance;\n\nvoid main(void) {\n vec4 c = texture(uTexture, vTextureCoord);\n vec3 colorDiff = uOriginalColor - (c.rgb / max(c.a, 0.0000000001));\n float colorDistance = length(colorDiff);\n float doReplace = step(colorDistance, uTolerance);\n finalColor = vec4(mix(c.rgb, (uTargetColor + colorDiff) * c.a, doReplace), c.a);\n}\n",name:"color-replace-filter"}),resources:{colorReplaceUniforms:{uOriginalColor:{value:new Float32Array(3),type:"vec3<f32>"},uTargetColor:{value:new Float32Array(3),type:"vec3<f32>"},uTolerance:{value:o.tolerance,type:"f32"}}}}),hV(this,"uniforms"),hV(this,"_originalColor"),hV(this,"_targetColor"),this.uniforms=this.resources.colorReplaceUniforms.uniforms,this._originalColor=new ke,this._targetColor=new ke,this.originalColor=null!=(r=o.originalColor)?r:16711680,this.targetColor=null!=(i=o.targetColor)?i:0,Object.assign(this,o)}},"DEFAULT_OPTIONS",{originalColor:16711680,targetColor:0,tolerance:.4});var mV=Object.defineProperty,AV=(e,t,n)=>(((e,t,n)=>{t in e?mV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);AV(class e extends df{get matrix(){return this.uniforms.uMatrix}set matrix(e){e.forEach(((e,t)=>{this.uniforms.uMatrix[t]=e}))}get width(){return 1/this.uniforms.uTexelSize.x}set width(e){this.uniforms.uTexelSize.x=1/e}get height(){return 1/this.uniforms.uTexelSize.y}set height(e){this.uniforms.uTexelSize.y=1/e}constructor(...t){var n,r,i;let o=null!=(n=t[0])?n:{};Array.isArray(o)&&($e("6.0.0","ConvolutionFilter constructor params are now options object. See params: { matrix, width, height }"),o={matrix:o},void 0!==t[1]&&(o.width=t[1]),void 0!==t[2]&&(o.height=t[2])),o=q(q({},e.DEFAULT_OPTIONS),o);const a=null!=(r=o.width)?r:200,s=null!=(i=o.height)?i:200;super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct ConvolutionUniforms {\n uMatrix: mat3x3<f32>,\n uTexelSize: vec2<f32>,\n};\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> convolutionUniforms : ConvolutionUniforms;\n\n@fragment\nfn mainFragment(\n @location(0) uv: vec2<f32>,\n @builtin(position) position: vec4<f32>\n) -> @location(0) vec4<f32> {\n let texelSize = convolutionUniforms.uTexelSize;\n let matrix = convolutionUniforms.uMatrix;\n\n let c11: vec4<f32> = textureSample(uTexture, uSampler, uv - texelSize); // top left\n let c12: vec4<f32> = textureSample(uTexture, uSampler, vec2<f32>(uv.x, uv.y - texelSize.y)); // top center\n let c13: vec4<f32> = textureSample(uTexture, uSampler, vec2<f32>(uv.x + texelSize.x, uv.y - texelSize.y)); // top right\n\n let c21: vec4<f32> = textureSample(uTexture, uSampler, vec2<f32>(uv.x - texelSize.x, uv.y)); // mid left\n let c22: vec4<f32> = textureSample(uTexture, uSampler, uv); // mid center\n let c23: vec4<f32> = textureSample(uTexture, uSampler, vec2<f32>(uv.x + texelSize.x, uv.y)); // mid right\n\n let c31: vec4<f32> = textureSample(uTexture, uSampler, vec2<f32>(uv.x - texelSize.x, uv.y + texelSize.y)); // bottom left\n let c32: vec4<f32> = textureSample(uTexture, uSampler, vec2<f32>(uv.x, uv.y + texelSize.y)); // bottom center\n let c33: vec4<f32> = textureSample(uTexture, uSampler, uv + texelSize); // bottom right\n\n var finalColor: vec4<f32> = vec4<f32>(\n c11 * matrix[0][0] + c12 * matrix[0][1] + c13 * matrix[0][2] +\n c21 * matrix[1][0] + c22 * matrix[1][1] + c23 * matrix[1][2] +\n c31 * matrix[2][0] + c32 * matrix[2][1] + c33 * matrix[2][2]\n );\n\n finalColor.a = c22.a;\n\n return finalColor;\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"in vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec2 uTexelSize;\nuniform mat3 uMatrix;\n\nvoid main(void)\n{\n vec4 c11 = texture(uTexture, vTextureCoord - uTexelSize); // top left\n vec4 c12 = texture(uTexture, vec2(vTextureCoord.x, vTextureCoord.y - uTexelSize.y)); // top center\n vec4 c13 = texture(uTexture, vec2(vTextureCoord.x + uTexelSize.x, vTextureCoord.y - uTexelSize.y)); // top right\n\n vec4 c21 = texture(uTexture, vec2(vTextureCoord.x - uTexelSize.x, vTextureCoord.y)); // mid left\n vec4 c22 = texture(uTexture, vTextureCoord); // mid center\n vec4 c23 = texture(uTexture, vec2(vTextureCoord.x + uTexelSize.x, vTextureCoord.y)); // mid right\n\n vec4 c31 = texture(uTexture, vec2(vTextureCoord.x - uTexelSize.x, vTextureCoord.y + uTexelSize.y)); // bottom left\n vec4 c32 = texture(uTexture, vec2(vTextureCoord.x, vTextureCoord.y + uTexelSize.y)); // bottom center\n vec4 c33 = texture(uTexture, vTextureCoord + uTexelSize); // bottom right\n\n finalColor =\n c11 * uMatrix[0][0] + c12 * uMatrix[0][1] + c13 * uMatrix[0][2] +\n c21 * uMatrix[1][0] + c22 * uMatrix[1][1] + c23 * uMatrix[1][2] +\n c31 * uMatrix[2][0] + c32 * uMatrix[2][1] + c33 * uMatrix[2][2];\n\n finalColor.a = c22.a;\n}",name:"convolution-filter"}),resources:{convolutionUniforms:{uMatrix:{value:o.matrix,type:"mat3x3<f32>"},uTexelSize:{value:{x:1/a,y:1/s},type:"vec2<f32>"}}}}),AV(this,"uniforms"),this.uniforms=this.resources.convolutionUniforms.uniforms,this.width=a,this.height=s}},"DEFAULT_OPTIONS",{matrix:new Float32Array(9),width:200,height:200});var gV=Object.defineProperty,vV=(e,t,n)=>(((e,t,n)=>{t in e?gV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);vV(class e extends df{apply(e,t,n,r){this.uniforms.uDimensions[0]=t.frame.width,this.uniforms.uDimensions[1]=t.frame.height,this.uniforms.uSeed=this.seed,this.uniforms.uTime=this.time,e.applyFilter(this,t,n,r)}get curvature(){return this.uniforms.uLine[0]}set curvature(e){this.uniforms.uLine[0]=e}get lineWidth(){return this.uniforms.uLine[1]}set lineWidth(e){this.uniforms.uLine[1]=e}get lineContrast(){return this.uniforms.uLine[2]}set lineContrast(e){this.uniforms.uLine[2]=e}get verticalLine(){return this.uniforms.uLine[3]>.5}set verticalLine(e){this.uniforms.uLine[3]=e?1:0}get noise(){return this.uniforms.uNoise[0]}set noise(e){this.uniforms.uNoise[0]=e}get noiseSize(){return this.uniforms.uNoise[1]}set noiseSize(e){this.uniforms.uNoise[1]=e}get vignetting(){return this.uniforms.uVignette[0]}set vignetting(e){this.uniforms.uVignette[0]=e}get vignettingAlpha(){return this.uniforms.uVignette[1]}set vignettingAlpha(e){this.uniforms.uVignette[1]=e}get vignettingBlur(){return this.uniforms.uVignette[2]}set vignettingBlur(e){this.uniforms.uVignette[2]=e}constructor(t){t=q(q({},e.DEFAULT_OPTIONS),t),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct CRTUniforms {\n uLine: vec4<f32>,\n uNoise: vec2<f32>,\n uVignette: vec3<f32>,\n uSeed: f32,\n uTime: f32,\n uDimensions: vec2<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> crtUniforms : CRTUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n \n var color: vec4<f32> = textureSample(uTexture, uSampler, uv);\n let coord: vec2<f32> = uv * gfu.uInputSize.xy / crtUniforms.uDimensions;\n\n let uNoise = crtUniforms.uNoise;\n\n if (uNoise[0] > 0.0 && uNoise[1] > 0.0)\n {\n color += vec4<f32>(vec3<f32>(noise(uv)), color.a);\n }\n\n if (crtUniforms.uVignette[0] > 0.)\n {\n color *= vec4<f32>(vec3<f32>(vignette(color.rgb, coord)), color.a);\n }\n\n if (crtUniforms.uLine[1] > 0.0)\n {\n color = vec4<f32>(vec3<f32>(interlaceLines(color.rgb, uv)), color.a); \n }\n\n return color;\n}\n\nconst SQRT_2: f32 = 1.414213;\n\nfn modulo(x: f32, y: f32) -> f32\n{\n return x - y * floor(x/y);\n}\n\nfn rand(co: vec2<f32>) -> f32\n{\n return fract(sin(dot(co, vec2<f32>(12.9898, 78.233))) * 43758.5453);\n}\n\nfn vignette(co: vec3<f32>, coord: vec2<f32>) -> f32\n{\n let uVignette = crtUniforms.uVignette;\n let uDimensions = crtUniforms.uDimensions;\n \n let outter: f32 = SQRT_2 - uVignette[0] * SQRT_2;\n var dir: vec2<f32> = vec2<f32>(0.5) - coord;\n dir.y *= uDimensions.y / uDimensions.x;\n let darker: f32 = clamp((outter - length(dir) * SQRT_2) / ( 0.00001 + uVignette[2] * SQRT_2), 0.0, 1.0);\n return darker + (1.0 - darker) * (1.0 - uVignette[1]);\n}\n\nfn noise(coord: vec2<f32>) -> f32\n{\n let uNoise = crtUniforms.uNoise;\n let uSeed = crtUniforms.uSeed;\n\n var pixelCoord: vec2<f32> = coord * gfu.uInputSize.xy;\n pixelCoord.x = floor(pixelCoord.x / uNoise[1]);\n pixelCoord.y = floor(pixelCoord.y / uNoise[1]);\n return (rand(pixelCoord * uNoise[1] * uSeed) - 0.5) * uNoise[0];\n}\n\nfn interlaceLines(co: vec3<f32>, coord: vec2<f32>) -> vec3<f32>\n{\n var color = co;\n\n let uDimensions = crtUniforms.uDimensions;\n\n let curvature: f32 = crtUniforms.uLine[0];\n let lineWidth: f32 = crtUniforms.uLine[1];\n let lineContrast: f32 = crtUniforms.uLine[2];\n let verticalLine: f32 = crtUniforms.uLine[3];\n\n let dir: vec2<f32> = vec2<f32>(coord * gfu.uInputSize.xy / uDimensions - 0.5);\n\n let _c: f32 = select(1., curvature, curvature > 0.);\n let k: f32 = select(1., (length(dir * dir) * 0.25 * _c * _c + 0.935 * _c), curvature > 0.);\n let uv: vec2<f32> = dir * k;\n let v: f32 = select(uv.y * uDimensions.y, uv.x * uDimensions.x, verticalLine > 0.5) * min(1.0, 2.0 / lineWidth ) / _c;\n let j: f32 = 1. + cos(v * 1.2 - crtUniforms.uTime) * 0.5 * lineContrast;\n color *= j;\n\n let segment: f32 = select(modulo((dir.y + .5) * uDimensions.y, 4.), modulo((dir.x + .5) * uDimensions.x, 4.), verticalLine > 0.5);\n color *= 0.99 + ceil(segment) * 0.015;\n\n return color;\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec4 uLine;\nuniform vec2 uNoise;\nuniform vec3 uVignette;\nuniform float uSeed;\nuniform float uTime;\nuniform vec2 uDimensions;\n\nuniform vec4 uInputSize;\n\nconst float SQRT_2 = 1.414213;\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nfloat vignette(vec3 co, vec2 coord)\n{\n float outter = SQRT_2 - uVignette[0] * SQRT_2;\n vec2 dir = vec2(0.5) - coord;\n dir.y *= uDimensions.y / uDimensions.x;\n float darker = clamp((outter - length(dir) * SQRT_2) / ( 0.00001 + uVignette[2] * SQRT_2), 0.0, 1.0);\n return darker + (1.0 - darker) * (1.0 - uVignette[1]);\n}\n\nfloat noise(vec2 coord)\n{\n vec2 pixelCoord = coord * uInputSize.xy;\n pixelCoord.x = floor(pixelCoord.x / uNoise[1]);\n pixelCoord.y = floor(pixelCoord.y / uNoise[1]);\n return (rand(pixelCoord * uNoise[1] * uSeed) - 0.5) * uNoise[0];\n}\n\nvec3 interlaceLines(vec3 co, vec2 coord)\n{\n vec3 color = co;\n\n float curvature = uLine[0];\n float lineWidth = uLine[1];\n float lineContrast = uLine[2];\n float verticalLine = uLine[3];\n\n vec2 dir = vec2(coord * uInputSize.xy / uDimensions - 0.5);\n\n float _c = curvature > 0. ? curvature : 1.;\n float k = curvature > 0. ? (length(dir * dir) * 0.25 * _c * _c + 0.935 * _c) : 1.;\n vec2 uv = dir * k;\n float v = verticalLine > 0.5 ? uv.x * uDimensions.x : uv.y * uDimensions.y;\n v *= min(1.0, 2.0 / lineWidth ) / _c;\n float j = 1. + cos(v * 1.2 - uTime) * 0.5 * lineContrast;\n color *= j;\n\n float segment = verticalLine > 0.5 ? mod((dir.x + .5) * uDimensions.x, 4.) : mod((dir.y + .5) * uDimensions.y, 4.);\n color *= 0.99 + ceil(segment) * 0.015;\n\n return color;\n}\n\nvoid main(void)\n{\n finalColor = texture(uTexture, vTextureCoord);\n vec2 coord = vTextureCoord * uInputSize.xy / uDimensions;\n\n if (uNoise[0] > 0.0 && uNoise[1] > 0.0)\n {\n float n = noise(vTextureCoord);\n finalColor += vec4(n, n, n, finalColor.a);\n }\n\n if (uVignette[0] > 0.)\n {\n float v = vignette(finalColor.rgb, coord);\n finalColor *= vec4(v, v, v, finalColor.a);\n }\n\n if (uLine[1] > 0.0)\n {\n finalColor = vec4(interlaceLines(finalColor.rgb, vTextureCoord), finalColor.a); \n }\n}\n",name:"crt-filter"}),resources:{crtUniforms:{uLine:{value:new Float32Array(4),type:"vec4<f32>"},uNoise:{value:new Float32Array(2),type:"vec2<f32>"},uVignette:{value:new Float32Array(3),type:"vec3<f32>"},uSeed:{value:t.seed,type:"f32"},uTime:{value:t.time,type:"f32"},uDimensions:{value:new Float32Array(2),type:"vec2<f32>"}}}}),vV(this,"uniforms"),vV(this,"seed"),vV(this,"time"),this.uniforms=this.resources.crtUniforms.uniforms,Object.assign(this,t)}},"DEFAULT_OPTIONS",{curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0,seed:0});var yV,bV,xV=Object.defineProperty;yV=class e extends df{get scale(){return this.resources.dotUniforms.uniforms.uScale}set scale(e){this.resources.dotUniforms.uniforms.uScale=e}get angle(){return this.resources.dotUniforms.uniforms.uAngle}set angle(e){this.resources.dotUniforms.uniforms.uAngle=e}get grayscale(){return 1===this.resources.dotUniforms.uniforms.uGrayScale}set grayscale(e){this.resources.dotUniforms.uniforms.uGrayScale=e?1:0}constructor(...t){var n;let r=null!=(n=t[0])?n:{};"number"==typeof r&&($e("6.0.0","DotFilter constructor params are now options object. See params: { scale, angle, grayscale }"),r={scale:r},void 0!==t[1]&&(r.angle=t[1]),void 0!==t[2]&&(r.grayscale=t[2])),r=q(q({},e.DEFAULT_OPTIONS),r);const i={uScale:{value:r.scale,type:"f32"},uAngle:{value:r.angle,type:"f32"},uGrayScale:{value:r.grayscale?1:0,type:"f32"}};super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct DotUniforms {\n uScale:f32,\n uAngle:f32,\n uGrayScale:f32,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> dotUniforms : DotUniforms;\n\n@fragment\nfn mainFragment(\n @location(0) uv: vec2<f32>,\n @builtin(position) position: vec4<f32>\n) -> @location(0) vec4<f32> {\n let color: vec4<f32> = textureSample(uTexture, uSampler, uv);\n let gray: vec3<f32> = vec3<f32>(dot(color.rgb, vec3<f32>(0.299, 0.587, 0.114)));\n // dotUniforms.uGrayScale == 1 doesn't ever pass so it is converted to a float and compared to 0.5 instead \n let finalColor: vec3<f32> = select(color.rgb, gray, f32(dotUniforms.uGrayScale) >= 0.5);\n\n return vec4<f32>(finalColor * 10.0 - 5.0 + pattern(uv), color.a);\n}\n\nfn pattern(uv: vec2<f32>) -> f32\n{\n let s: f32 = sin(dotUniforms.uAngle);\n let c: f32 = cos(dotUniforms.uAngle);\n \n let tex: vec2<f32> = uv * gfu.uInputSize.xy;\n \n let p: vec2<f32> = vec2<f32>(\n c * tex.x - s * tex.y,\n s * tex.x + c * tex.y\n ) * dotUniforms.uScale;\n\n return (sin(p.x) * sin(p.y)) * 4.0;\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform float uAngle;\nuniform float uScale;\nuniform bool uGrayScale;\n\nuniform vec4 uInputSize;\n\nfloat pattern()\n{\n float s = sin(uAngle), c = cos(uAngle);\n vec2 tex = vTextureCoord * uInputSize.xy;\n vec2 point = vec2(\n c * tex.x - s * tex.y,\n s * tex.x + c * tex.y\n ) * uScale;\n return (sin(point.x) * sin(point.y)) * 4.0;\n }\n\n void main()\n {\n vec4 color = texture(uTexture, vTextureCoord);\n vec3 colorRGB = vec3(color);\n\n if (uGrayScale)\n {\n colorRGB = vec3(color.r + color.g + color.b) / 3.0;\n }\n\n finalColor = vec4(colorRGB * 10.0 - 5.0 + pattern(), color.a);\n}\n",name:"dot-filter"}),resources:{dotUniforms:i}})}},((e,t,n)=>{t in e?xV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(yV,"symbol"!=typeof(bV="DEFAULT_OPTIONS")?bV+"":bV,{scale:1,angle:5,grayscale:!0});var SV=Object.defineProperty,_V=(e,t,n)=>(((e,t,n)=>{t in e?SV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),wV=class e extends df{apply(e,t,n,r){const i=Ua.getSameSizeTexture(t);e.applyFilter(this,t,i,!0),this._blurFilter.apply(e,i,n,r),this.shadowOnly||e.applyFilter(this._basePass,t,n,!1),Ua.returnTexture(i)}get offset(){return this.uniforms.uOffset}set offset(e){this.uniforms.uOffset=e,this._updatePadding()}get offsetX(){return this.offset.x}set offsetX(e){this.offset.x=e,this._updatePadding()}get offsetY(){return this.offset.y}set offsetY(e){this.offset.y=e,this._updatePadding()}get color(){return this._color.value}set color(e){this._color.setValue(e);const[t,n,r]=this._color.toArray();this.uniforms.uColor[0]=t,this.uniforms.uColor[1]=n,this.uniforms.uColor[2]=r}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}get blur(){return this._blurFilter.strength}set blur(e){this._blurFilter.strength=e,this._updatePadding()}get quality(){return this._blurFilter.quality}set quality(e){this._blurFilter.quality=e,this._updatePadding()}get kernels(){return this._blurFilter.kernels}set kernels(e){this._blurFilter.kernels=e}get pixelSize(){return this._blurFilter.pixelSize}set pixelSize(e){"number"==typeof e&&(e={x:e,y:e}),Array.isArray(e)&&(e={x:e[0],y:e[1]}),this._blurFilter.pixelSize=e}get pixelSizeX(){return this._blurFilter.pixelSizeX}set pixelSizeX(e){this._blurFilter.pixelSizeX=e}get pixelSizeY(){return this._blurFilter.pixelSizeY}set pixelSizeY(e){this._blurFilter.pixelSizeY=e}_updatePadding(){const e=Math.max(Math.abs(this.offsetX),Math.abs(this.offsetY));this.padding=e+2*this.blur+4*this.quality}constructor(t){var n,r;t=q(q({},e.DEFAULT_OPTIONS),t),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct DropShadowUniforms {\n uAlpha: f32,\n uColor: vec3<f32>,\n uOffset: vec2<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> dropShadowUniforms : DropShadowUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n var color: vec4<f32> = textureSample(uTexture, uSampler, uv - dropShadowUniforms.uOffset * gfu.uInputSize.zw);\n\n // Premultiply alpha\n color = vec4<f32>(vec3<f32>(dropShadowUniforms.uColor.rgb * color.a), color.a);\n // alpha user alpha\n color *= dropShadowUniforms.uAlpha;\n\n return color;\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform float uAlpha;\nuniform vec3 uColor;\nuniform vec2 uOffset;\n\nuniform vec4 uInputSize;\n\nvoid main(void){\n vec4 sample = texture(uTexture, vTextureCoord - uOffset * uInputSize.zw);\n\n // Premultiply alpha\n sample.rgb = uColor.rgb * sample.a;\n\n // alpha user alpha\n sample *= uAlpha;\n\n finalColor = sample;\n}",name:"drop-shadow-filter"}),resources:{dropShadowUniforms:{uAlpha:{value:t.alpha,type:"f32"},uColor:{value:new Float32Array(3),type:"vec3<f32>"},uOffset:{value:t.offset,type:"vec2<f32>"}}},resolution:t.resolution}),_V(this,"uniforms"),_V(this,"shadowOnly",!1),_V(this,"_color"),_V(this,"_blurFilter"),_V(this,"_basePass"),this.uniforms=this.resources.dropShadowUniforms.uniforms,this._color=new ke,this.color=null!=(n=t.color)?n:0,this._blurFilter=new DW({strength:null!=(r=t.kernels)?r:t.blur,quality:t.kernels?void 0:t.quality}),this._basePass=new df({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"\n @group(0) @binding(1) var uTexture: texture_2d<f32>; \n @group(0) @binding(2) var uSampler: sampler;\n @fragment\n fn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n ) -> @location(0) vec4<f32> {\n return textureSample(uTexture, uSampler, uv);\n }\n ",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"\n in vec2 vTextureCoord;\n out vec4 finalColor;\n uniform sampler2D uTexture;\n\n void main(void){\n finalColor = texture(uTexture, vTextureCoord);\n }\n ",name:"drop-shadow-filter"}),resources:{}}),Object.assign(this,t)}};_V(wV,"DEFAULT_OPTIONS",{offset:{x:4,y:4},color:0,alpha:.5,shadowOnly:!1,kernels:void 0,blur:2,quality:3,pixelSize:{x:1,y:1},resolution:1});var EV=wV,CV=Object.defineProperty,TV=(e,t,n)=>(((e,t,n)=>{t in e?CV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);TV(class e extends df{apply(e,t,n,r){const{width:i,height:o}=t.frame;this.uniforms.uDimensions[0]=i,this.uniforms.uDimensions[1]=o,this.uniforms.uAspect=o/i,e.applyFilter(this,t,n,r)}_randomizeSizes(){const e=this._sizes,t=this._slices-1,n=this.sampleSize,r=Math.min(this.minSize/n,.9/this._slices);if(this.average){const n=this._slices;let i=1;for(let o=0;o<t;o++){const t=i/(n-o),a=Math.max(t*(1-.6*Math.random()),r);e[o]=a,i-=a}e[t]=i}else{let n=1;const i=Math.sqrt(1/this._slices);for(let o=0;o<t;o++){const t=Math.max(i*n*Math.random(),r);e[o]=t,n-=t}e[t]=n}this.shuffle()}shuffle(){const e=this._sizes;for(let t=this._slices-1;t>0;t--){const n=Math.random()*t|0,r=e[t];e[t]=e[n],e[n]=r}}_randomizeOffsets(){for(let e=0;e<this._slices;e++)this._offsets[e]=Math.random()*(Math.random()<.5?-1:1)}refresh(){this._randomizeSizes(),this._randomizeOffsets(),this.redraw()}redraw(){const e=this.sampleSize,t=this.texture,n=this._canvas.getContext("2d");let r;n.clearRect(0,0,8,e);let i=0;for(let o=0;o<this._slices;o++){r=Math.floor(256*this._offsets[o]);const t=this._sizes[o]*e,a=r>0?r:0,s=r<0?-r:0;n.fillStyle=`rgba(${a}, ${s}, 0, 1)`,n.fillRect(0,0|i,e,t+1|0),i+=t}t.source.update()}set sizes(e){const t=Math.min(this._slices,e.length);for(let n=0;n<t;n++)this._sizes[n]=e[n]}get sizes(){return this._sizes}set offsets(e){const t=Math.min(this._slices,e.length);for(let n=0;n<t;n++)this._offsets[n]=e[n]}get offsets(){return this._offsets}get slices(){return this._slices}set slices(e){this._slices!==e&&(this._slices=e,this._sizes=new Float32Array(e),this._offsets=new Float32Array(e),this.refresh())}get offset(){return this.uniforms.uOffset}set offset(e){this.uniforms.uOffset=e}get seed(){return this.uniforms.uSeed}set seed(e){this.uniforms.uSeed=e}get fillMode(){return this.uniforms.uFillMode}set fillMode(e){this.uniforms.uFillMode=e}get direction(){return this.uniforms.uDirection/Me}set direction(e){this.uniforms.uDirection=e*Me}get red(){return this.uniforms.uRed}set red(e){Array.isArray(e)&&(e={x:e[0],y:e[1]}),this.uniforms.uRed=e}get green(){return this.uniforms.uGreen}set green(e){Array.isArray(e)&&(e={x:e[0],y:e[1]}),this.uniforms.uGreen=e}get blue(){return this.uniforms.uBlue}set blue(e){Array.isArray(e)&&(e={x:e[0],y:e[1]}),this.uniforms.uBlue=e}destroy(){var e;null==(e=this.texture)||e.destroy(!0),this.texture=this._canvas=this.red=this.green=this.blue=this._sizes=this._offsets=null}constructor(t){var n,r,i,o,a;t=q(q({},e.defaults),t);const s=Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct GlitchUniforms {\n uSeed: f32,\n uDimensions: vec2<f32>,\n uAspect: f32,\n uFillMode: f32,\n uOffset: f32,\n uDirection: f32,\n uRed: vec2<f32>,\n uGreen: vec2<f32>,\n uBlue: vec2<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> glitchUniforms : GlitchUniforms;\n@group(1) @binding(1) var uDisplacementMap: texture_2d<f32>; \n@group(1) @binding(2) var uDisplacementSampler: sampler; \n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let uSeed: f32 = glitchUniforms.uSeed;\n let uDimensions: vec2<f32> = glitchUniforms.uDimensions;\n let uAspect: f32 = glitchUniforms.uAspect;\n let uOffset: f32 = glitchUniforms.uOffset;\n let uDirection: f32 = glitchUniforms.uDirection;\n let uRed: vec2<f32> = glitchUniforms.uRed;\n let uGreen: vec2<f32> = glitchUniforms.uGreen;\n let uBlue: vec2<f32> = glitchUniforms.uBlue;\n\n let uInputSize: vec4<f32> = gfu.uInputSize;\n let uInputClamp: vec4<f32> = gfu.uInputClamp;\n\n var discarded: bool = false;\n var coord: vec2<f32> = (uv * uInputSize.xy) / uDimensions;\n\n if (coord.x > 1.0 || coord.y > 1.0) {\n discarded = true;\n }\n\n let sinDir: f32 = sin(uDirection);\n let cosDir: f32 = cos(uDirection);\n\n let cx: f32 = coord.x - 0.5;\n let cy: f32 = (coord.y - 0.5) * uAspect;\n var ny: f32 = (-sinDir * cx + cosDir * cy) / uAspect + 0.5;\n\n ny = select(select(ny, -ny, ny < 0.0), 2.0 - ny, ny > 1.0);\n\n let dc: vec4<f32> = textureSample(uDisplacementMap, uDisplacementSampler, vec2<f32>(0.5, ny));\n\n let displacement: f32 = (dc.r - dc.g) * (uOffset / uInputSize.x);\n\n coord = uv + vec2<f32>(cosDir * displacement, sinDir * displacement * uAspect);\n\n let fillMode: i32 = i32(glitchUniforms.uFillMode);\n\n if (fillMode == CLAMP) {\n coord = clamp(coord, uInputClamp.xy, uInputClamp.zw);\n } else {\n if (coord.x > uInputClamp.z) {\n if (fillMode == TRANSPARENT) {\n discarded = true;\n } else if (fillMode == LOOP) {\n coord.x = coord.x - uInputClamp.z;\n } else if (fillMode == MIRROR) {\n coord.x = uInputClamp.z * 2.0 - coord.x;\n }\n } else if (coord.x < uInputClamp.x) {\n if (fillMode == TRANSPARENT) {\n discarded = true;\n } else if (fillMode == LOOP) {\n coord.x = coord.x + uInputClamp.z;\n } else if (fillMode == MIRROR) {\n coord.x = coord.x * -uInputClamp.z;\n }\n }\n\n if (coord.y > uInputClamp.w) {\n if (fillMode == TRANSPARENT) {\n discarded = true;\n } else if (fillMode == LOOP) {\n coord.y = coord.y - uInputClamp.w;\n } else if (fillMode == MIRROR) {\n coord.y = uInputClamp.w * 2.0 - coord.y;\n }\n } else if (coord.y < uInputClamp.y) {\n if (fillMode == TRANSPARENT) {\n discarded = true;\n } else if (fillMode == LOOP) {\n coord.y = coord.y + uInputClamp.w;\n } else if (fillMode == MIRROR) {\n coord.y = coord.y * -uInputClamp.w;\n }\n }\n }\n\n let seedR: f32 = 1.0 - uSeed * 0.4;\n let seedG: f32 = 1.0 - uSeed * 0.3;\n let seedB: f32 = 1.0 - uSeed * 0.2;\n\n let offsetR: vec2<f32> = vec2(uRed.x * seedR / uInputSize.x, uRed.y * seedR / uInputSize.y);\n let offsetG: vec2<f32> = vec2(uGreen.x * seedG / uInputSize.x, uGreen.y * seedG / uInputSize.y);\n let offsetB: vec2<f32> = vec2(uBlue.x * seedB / uInputSize.x, uBlue.y * seedB / uInputSize.y);\n\n let r = textureSample(uTexture, uSampler, coord + offsetR).r;\n let g = textureSample(uTexture, uSampler, coord + offsetG).g;\n let b = textureSample(uTexture, uSampler, coord + offsetB).b;\n let a = textureSample(uTexture, uSampler, coord).a;\n\n return select(vec4<f32>(r, g, b, a), vec4<f32>(0.0,0.0,0.0,0.0), discarded);\n}\n\nconst TRANSPARENT: i32 = 0;\nconst ORIGINAL: i32 = 1;\nconst LOOP: i32 = 2;\nconst CLAMP: i32 = 3;\nconst MIRROR: i32 = 4;",entryPoint:"mainFragment"}}),l=Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform sampler2D uDisplacementMap;\nuniform float uSeed;\nuniform vec2 uDimensions;\nuniform float uAspect;\nuniform float uFillMode;\nuniform float uOffset;\nuniform float uDirection;\nuniform vec2 uRed;\nuniform vec2 uGreen;\nuniform vec2 uBlue;\n\nuniform vec4 uInputSize;\nuniform vec4 uInputClamp;\n\nconst int TRANSPARENT = 0;\nconst int ORIGINAL = 1;\nconst int LOOP = 2;\nconst int CLAMP = 3;\nconst int MIRROR = 4;\n\nvoid main(void)\n{\n vec2 coord = (vTextureCoord * uInputSize.xy) / uDimensions;\n\n if (coord.x > 1.0 || coord.y > 1.0) {\n return;\n }\n\n float sinDir = sin(uDirection);\n float cosDir = cos(uDirection);\n\n float cx = coord.x - 0.5;\n float cy = (coord.y - 0.5) * uAspect;\n float ny = (-sinDir * cx + cosDir * cy) / uAspect + 0.5;\n\n // displacementMap: repeat\n // ny = ny > 1.0 ? ny - 1.0 : (ny < 0.0 ? 1.0 + ny : ny);\n\n // displacementMap: mirror\n ny = ny > 1.0 ? 2.0 - ny : (ny < 0.0 ? -ny : ny);\n\n vec4 dc = texture(uDisplacementMap, vec2(0.5, ny));\n\n float displacement = (dc.r - dc.g) * (uOffset / uInputSize.x);\n\n coord = vTextureCoord + vec2(cosDir * displacement, sinDir * displacement * uAspect);\n\n int fillMode = int(uFillMode);\n\n if (fillMode == CLAMP) {\n coord = clamp(coord, uInputClamp.xy, uInputClamp.zw);\n } else {\n if( coord.x > uInputClamp.z ) {\n if (fillMode == TRANSPARENT) {\n discard;\n } else if (fillMode == LOOP) {\n coord.x -= uInputClamp.z;\n } else if (fillMode == MIRROR) {\n coord.x = uInputClamp.z * 2.0 - coord.x;\n }\n } else if( coord.x < uInputClamp.x ) {\n if (fillMode == TRANSPARENT) {\n discard;\n } else if (fillMode == LOOP) {\n coord.x += uInputClamp.z;\n } else if (fillMode == MIRROR) {\n coord.x *= -uInputClamp.z;\n }\n }\n\n if( coord.y > uInputClamp.w ) {\n if (fillMode == TRANSPARENT) {\n discard;\n } else if (fillMode == LOOP) {\n coord.y -= uInputClamp.w;\n } else if (fillMode == MIRROR) {\n coord.y = uInputClamp.w * 2.0 - coord.y;\n }\n } else if( coord.y < uInputClamp.y ) {\n if (fillMode == TRANSPARENT) {\n discard;\n } else if (fillMode == LOOP) {\n coord.y += uInputClamp.w;\n } else if (fillMode == MIRROR) {\n coord.y *= -uInputClamp.w;\n }\n }\n }\n\n finalColor.r = texture(uTexture, coord + uRed * (1.0 - uSeed * 0.4) / uInputSize.xy).r;\n finalColor.g = texture(uTexture, coord + uGreen * (1.0 - uSeed * 0.3) / uInputSize.xy).g;\n finalColor.b = texture(uTexture, coord + uBlue * (1.0 - uSeed * 0.2) / uInputSize.xy).b;\n finalColor.a = texture(uTexture, coord).a;\n}\n",name:"glitch-filter"}),u=document.createElement("canvas");u.width=4,u.height=null!=(n=t.sampleSize)?n:512;const c=new ii({source:new Mi({resource:u})});super({gpuProgram:s,glProgram:l,resources:{glitchUniforms:{uSeed:{value:null!=(r=null==t?void 0:t.seed)?r:0,type:"f32"},uDimensions:{value:new Float32Array(2),type:"vec2<f32>"},uAspect:{value:1,type:"f32"},uFillMode:{value:null!=(i=null==t?void 0:t.fillMode)?i:0,type:"f32"},uOffset:{value:null!=(o=null==t?void 0:t.offset)?o:100,type:"f32"},uDirection:{value:null!=(a=null==t?void 0:t.direction)?a:0,type:"f32"},uRed:{value:t.red,type:"vec2<f32>"},uGreen:{value:t.green,type:"vec2<f32>"},uBlue:{value:t.blue,type:"vec2<f32>"}},uDisplacementMap:c.source,uDisplacementSampler:c.source.style}}),TV(this,"uniforms"),TV(this,"average",!1),TV(this,"minSize",8),TV(this,"sampleSize",512),TV(this,"_canvas"),TV(this,"texture"),TV(this,"_slices",0),TV(this,"_sizes",new Float32Array(1)),TV(this,"_offsets",new Float32Array(1)),this.uniforms=this.resources.glitchUniforms.uniforms,this._canvas=u,this.texture=c,Object.assign(this,t)}},"defaults",{slices:5,offset:100,direction:0,fillMode:0,average:!1,seed:0,red:{x:0,y:0},green:{x:0,y:0},blue:{x:0,y:0},minSize:8,sampleSize:512});var PV=Object.defineProperty,kV=(e,t,n)=>(((e,t,n)=>{t in e?PV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);kV(class e extends df{get distance(){return this.uniforms.uDistance}set distance(e){this.uniforms.uDistance=this.padding=e}get innerStrength(){return this.uniforms.uStrength[0]}set innerStrength(e){this.uniforms.uStrength[0]=e}get outerStrength(){return this.uniforms.uStrength[1]}set outerStrength(e){this.uniforms.uStrength[1]=e}get color(){return this._color.value}set color(e){this._color.setValue(e);const[t,n,r]=this._color.toArray();this.uniforms.uColor[0]=t,this.uniforms.uColor[1]=n,this.uniforms.uColor[2]=r}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}get quality(){return this.uniforms.uQuality}set quality(e){this.uniforms.uQuality=e}get knockout(){return 1===this.uniforms.uKnockout}set knockout(e){this.uniforms.uKnockout=e?1:0}constructor(t){var n,r,i,o;const a=null!=(n=(t=q(q({},e.DEFAULT_OPTIONS),t)).distance)?n:10,s=null!=(r=t.quality)?r:.1;super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct GlowUniforms {\n uDistance: f32,\n uStrength: vec2<f32>,\n uColor: vec3<f32>,\n uAlpha: f32,\n uQuality: f32,\n uKnockout: f32,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> glowUniforms : GlowUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let quality = glowUniforms.uQuality;\n let distance = glowUniforms.uDistance;\n\n let dist: f32 = glowUniforms.uDistance;\n let angleStepSize: f32 = min(1. / quality / distance, PI * 2.0);\n let angleStepNum: f32 = ceil(PI * 2.0 / angleStepSize);\n\n let px: vec2<f32> = vec2<f32>(1.0 / gfu.uInputSize.xy);\n\n var totalAlpha: f32 = 0.0;\n\n var direction: vec2<f32>;\n var displaced: vec2<f32>;\n var curColor: vec4<f32>;\n\n for (var angle = 0.0; angle < PI * 2.0; angle += angleStepSize) {\n direction = vec2<f32>(cos(angle), sin(angle)) * px;\n for (var curDistance = 0.0; curDistance < dist; curDistance+=1) {\n displaced = vec2<f32>(clamp(uv + direction * (curDistance + 1.0), gfu.uInputClamp.xy, gfu.uInputClamp.zw));\n curColor = textureSample(uTexture, uSampler, displaced);\n totalAlpha += (dist - curDistance) * curColor.a;\n }\n }\n \n curColor = textureSample(uTexture, uSampler, uv);\n\n let glowColorRGB = glowUniforms.uColor;\n let glowAlpha = glowUniforms.uAlpha;\n let glowColor = vec4<f32>(glowColorRGB, glowAlpha);\n let knockout: bool = glowUniforms.uKnockout > 0.5;\n let innerStrength = glowUniforms.uStrength[0];\n let outerStrength = glowUniforms.uStrength[1];\n\n let alphaRatio: f32 = (totalAlpha / (angleStepNum * dist * (dist + 1.0) / 2.0));\n let innerGlowAlpha: f32 = (1.0 - alphaRatio) * innerStrength * curColor.a * glowAlpha;\n let innerGlowStrength: f32 = min(1.0, innerGlowAlpha);\n \n let innerColor: vec4<f32> = mix(curColor, glowColor, innerGlowStrength);\n let outerGlowAlpha: f32 = alphaRatio * outerStrength * (1. - curColor.a) * glowAlpha;\n let outerGlowStrength: f32 = min(1.0 - innerColor.a, outerGlowAlpha);\n let outerGlowColor: vec4<f32> = outerGlowStrength * glowColor.rgba;\n \n if (knockout) {\n let resultAlpha: f32 = outerGlowAlpha + innerGlowAlpha;\n return vec4<f32>(glowColor.rgb * resultAlpha, resultAlpha);\n }\n else {\n return innerColor + outerGlowColor;\n }\n}\n\nconst PI: f32 = 3.14159265358979323846264;",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec2 uStrength;\nuniform vec3 uColor;\nuniform float uKnockout;\nuniform float uAlpha;\n\nuniform vec4 uInputSize;\nuniform vec4 uInputClamp;\n\nconst float PI = 3.14159265358979323846264;\n\n// Hard-assignment of DIST and ANGLE_STEP_SIZE instead of using uDistance and uQuality to allow them to be use on GLSL loop conditions\nconst float DIST = __DIST__;\nconst float ANGLE_STEP_SIZE = min(__ANGLE_STEP_SIZE__, PI * 2.);\nconst float ANGLE_STEP_NUM = ceil(PI * 2. / ANGLE_STEP_SIZE);\nconst float MAX_TOTAL_ALPHA = ANGLE_STEP_NUM * DIST * (DIST + 1.) / 2.;\n\nvoid main(void) {\n vec2 px = vec2(1.) / uInputSize.xy;\n\n float totalAlpha = 0.;\n\n vec2 direction;\n vec2 displaced;\n vec4 curColor;\n\n for (float angle = 0.; angle < PI * 2.; angle += ANGLE_STEP_SIZE) {\n direction = vec2(cos(angle), sin(angle)) * px;\n\n for (float curDistance = 0.; curDistance < DIST; curDistance++) {\n displaced = clamp(vTextureCoord + direction * (curDistance + 1.), uInputClamp.xy, uInputClamp.zw);\n curColor = texture(uTexture, displaced);\n totalAlpha += (DIST - curDistance) * curColor.a;\n }\n }\n \n curColor = texture(uTexture, vTextureCoord);\n\n vec4 glowColor = vec4(uColor, uAlpha);\n bool knockout = uKnockout > .5;\n float innerStrength = uStrength[0];\n float outerStrength = uStrength[1];\n\n float alphaRatio = totalAlpha / MAX_TOTAL_ALPHA;\n float innerGlowAlpha = (1. - alphaRatio) * innerStrength * curColor.a * uAlpha;\n float innerGlowStrength = min(1., innerGlowAlpha);\n \n vec4 innerColor = mix(curColor, glowColor, innerGlowStrength);\n float outerGlowAlpha = alphaRatio * outerStrength * (1. - curColor.a) * uAlpha;\n float outerGlowStrength = min(1. - innerColor.a, outerGlowAlpha);\n vec4 outerGlowColor = outerGlowStrength * glowColor.rgba;\n\n if (knockout) {\n float resultAlpha = outerGlowAlpha + innerGlowAlpha;\n finalColor = vec4(glowColor.rgb * resultAlpha, resultAlpha);\n }\n else {\n finalColor = innerColor + outerGlowColor;\n }\n}\n".replace(/__ANGLE_STEP_SIZE__/gi,`${(1/s/a).toFixed(7)}`).replace(/__DIST__/gi,`${a.toFixed(0)}.0`),name:"glow-filter"}),resources:{glowUniforms:{uDistance:{value:a,type:"f32"},uStrength:{value:[t.innerStrength,t.outerStrength],type:"vec2<f32>"},uColor:{value:new Float32Array(3),type:"vec3<f32>"},uAlpha:{value:t.alpha,type:"f32"},uQuality:{value:s,type:"f32"},uKnockout:{value:null!=(i=null==t?void 0:t.knockout)&&i?1:0,type:"f32"}}},padding:a}),kV(this,"uniforms"),kV(this,"_color"),this.uniforms=this.resources.glowUniforms.uniforms,this._color=new ke,this.color=null!=(o=t.color)?o:16777215}},"DEFAULT_OPTIONS",{distance:10,outerStrength:4,innerStrength:0,color:16777215,alpha:1,quality:.1,knockout:!1});var RV=Object.defineProperty,IV=(e,t,n)=>(((e,t,n)=>{t in e?RV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);IV(class e extends df{apply(e,t,n,r){const i=t.frame.width,o=t.frame.height;this.uniforms.uLight[0]=this.parallel?this._angleLight[0]:this._center.x,this.uniforms.uLight[1]=this.parallel?this._angleLight[1]:this._center.y,this.uniforms.uDimensions[0]=i,this.uniforms.uDimensions[1]=o,this.uniforms.uAspect=o/i,this.uniforms.uTime=this.time,e.applyFilter(this,t,n,r)}get angle(){return this._angle}set angle(e){this._angle=e;const t=e*Me;this._angleLight[0]=Math.cos(t),this._angleLight[1]=Math.sin(t)}get parallel(){return this.uniforms.uParallel>.5}set parallel(e){this.uniforms.uParallel=e?1:0}get center(){return this._center}set center(e){Array.isArray(e)&&(e={x:e[0],y:e[1]}),this._center=e}get centerX(){return this.center.x}set centerX(e){this.center.x=e}get centerY(){return this.center.y}set centerY(e){this.center.y=e}get gain(){return this.uniforms.uRay[0]}set gain(e){this.uniforms.uRay[0]=e}get lacunarity(){return this.uniforms.uRay[1]}set lacunarity(e){this.uniforms.uRay[1]=e}get alpha(){return this.uniforms.uRay[2]}set alpha(e){this.uniforms.uRay[2]=e}constructor(t){t=q(q({},e.DEFAULT_OPTIONS),t),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct GodrayUniforms {\n uLight: vec2<f32>,\n uParallel: f32,\n uAspect: f32,\n uTime: f32,\n uRay: vec3<f32>,\n uDimensions: vec2<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> godrayUniforms : GodrayUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let uDimensions: vec2<f32> = godrayUniforms.uDimensions;\n let uParallel: bool = godrayUniforms.uParallel > 0.5;\n let uLight: vec2<f32> = godrayUniforms.uLight;\n let uAspect: f32 = godrayUniforms.uAspect;\n\n let coord: vec2<f32> = uv * gfu.uInputSize.xy / uDimensions;\n\n var d: f32;\n\n if (uParallel) {\n let _cos: f32 = uLight.x;\n let _sin: f32 = uLight.y;\n d = (_cos * coord.x) + (_sin * coord.y * uAspect);\n } else {\n let dx: f32 = coord.x - uLight.x / uDimensions.x;\n let dy: f32 = (coord.y - uLight.y / uDimensions.y) * uAspect;\n let dis: f32 = sqrt(dx * dx + dy * dy) + 0.00001;\n d = dy / dis;\n }\n\n let uTime: f32 = godrayUniforms.uTime;\n let uRay: vec3<f32> = godrayUniforms.uRay;\n \n let gain = uRay[0];\n let lacunarity = uRay[1];\n let alpha = uRay[2];\n\n let dir: vec3<f32> = vec3<f32>(d, d, 0.0);\n var noise: f32 = turb(dir + vec3<f32>(uTime, 0.0, 62.1 + uTime) * 0.05, vec3<f32>(480.0, 320.0, 480.0), lacunarity, gain);\n noise = mix(noise, 0.0, 0.3);\n //fade vertically.\n var mist: vec4<f32> = vec4<f32>(vec3<f32>(noise), 1.0) * (1.0 - coord.y);\n mist.a = 1.0;\n // apply user alpha\n mist *= alpha;\n return textureSample(uTexture, uSampler, uv) + mist;\n}\n\n${PERLIN}".replace("${PERLIN}","// Taken from https://gist.github.com/munrocket/236ed5ba7e409b8bdf1ff6eca5dcdc39\n\nfn moduloVec3(x: vec3<f32>, y: vec3<f32>) -> vec3<f32>\n{\n return x - y * floor(x/y);\n}\nfn mod289Vec3(x: vec3<f32>) -> vec3<f32>\n{\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nfn mod289Vec4(x: vec4<f32>) -> vec4<f32>\n{\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nfn permute4(x: vec4<f32>) -> vec4<f32>\n{\n return mod289Vec4(((x * 34.0) + 1.0) * x);\n}\nfn taylorInvSqrt(r: vec4<f32>) -> vec4<f32>\n{\n return 1.79284291400159 - 0.85373472095314 * r;\n}\nfn fade3(t: vec3<f32>) -> vec3<f32>\n{\n return t * t * t * (t * (t * 6.0 - 15.0) + 10.0);\n}\nfn fade2(t: vec2<f32>) -> vec2<f32> { return t * t * t * (t * (t * 6. - 15.) + 10.); }\n\nfn perlinNoise2(P: vec2<f32>) -> f32 {\n var Pi: vec4<f32> = floor(P.xyxy) + vec4<f32>(0., 0., 1., 1.);\n let Pf = fract(P.xyxy) - vec4<f32>(0., 0., 1., 1.);\n Pi = Pi % vec4<f32>(289.); // To avoid truncation effects in permutation\n let ix = Pi.xzxz;\n let iy = Pi.yyww;\n let fx = Pf.xzxz;\n let fy = Pf.yyww;\n let i = permute4(permute4(ix) + iy);\n var gx: vec4<f32> = 2. * fract(i * 0.0243902439) - 1.; // 1/41 = 0.024...\n let gy = abs(gx) - 0.5;\n let tx = floor(gx + 0.5);\n gx = gx - tx;\n var g00: vec2<f32> = vec2<f32>(gx.x, gy.x);\n var g10: vec2<f32> = vec2<f32>(gx.y, gy.y);\n var g01: vec2<f32> = vec2<f32>(gx.z, gy.z);\n var g11: vec2<f32> = vec2<f32>(gx.w, gy.w);\n let norm = 1.79284291400159 - 0.85373472095314 *\n vec4<f32>(dot(g00, g00), dot(g01, g01), dot(g10, g10), dot(g11, g11));\n g00 = g00 * norm.x;\n g01 = g01 * norm.y;\n g10 = g10 * norm.z;\n g11 = g11 * norm.w;\n let n00 = dot(g00, vec2<f32>(fx.x, fy.x));\n let n10 = dot(g10, vec2<f32>(fx.y, fy.y));\n let n01 = dot(g01, vec2<f32>(fx.z, fy.z));\n let n11 = dot(g11, vec2<f32>(fx.w, fy.w));\n let fade_xy = fade2(Pf.xy);\n let n_x = mix(vec2<f32>(n00, n01), vec2<f32>(n10, n11), vec2<f32>(fade_xy.x));\n let n_xy = mix(n_x.x, n_x.y, fade_xy.y);\n return 2.3 * n_xy;\n}\n\n// Classic Perlin noise, periodic variant\nfn perlinNoise3(P: vec3<f32>, rep: vec3<f32>) -> f32\n{\n var Pi0: vec3<f32> = moduloVec3(floor(P), rep); // Integer part, modulo period\n var Pi1: vec3<f32> = moduloVec3(Pi0 + vec3<f32>(1.0), rep); // Integer part + 1, mod period\n Pi0 = mod289Vec3(Pi0);\n Pi1 = mod289Vec3(Pi1);\n let Pf0: vec3<f32> = fract(P); // Fractional part for interpolation\n let Pf1: vec3<f32> = Pf0 - vec3<f32>(1.0); // Fractional part - 1.0\n let ix: vec4<f32> = vec4<f32>(Pi0.x, Pi1.x, Pi0.x, Pi1.x);\n let iy: vec4<f32> = vec4<f32>(Pi0.yy, Pi1.yy);\n let iz0: vec4<f32> = Pi0.zzzz;\n let iz1: vec4<f32> = Pi1.zzzz;\n let ixy: vec4<f32> = permute4(permute4(ix) + iy);\n let ixy0: vec4<f32> = permute4(ixy + iz0);\n let ixy1: vec4<f32> = permute4(ixy + iz1);\n var gx0: vec4<f32> = ixy0 * (1.0 / 7.0);\n var gy0: vec4<f32> = fract(floor(gx0) * (1.0 / 7.0)) - 0.5;\n gx0 = fract(gx0);\n let gz0: vec4<f32> = vec4<f32>(0.5) - abs(gx0) - abs(gy0);\n let sz0: vec4<f32> = step(gz0, vec4<f32>(0.0));\n gx0 -= sz0 * (step(vec4<f32>(0.0), gx0) - 0.5);\n gy0 -= sz0 * (step(vec4<f32>(0.0), gy0) - 0.5);\n var gx1: vec4<f32> = ixy1 * (1.0 / 7.0);\n var gy1: vec4<f32> = fract(floor(gx1) * (1.0 / 7.0)) - 0.5;\n gx1 = fract(gx1);\n let gz1: vec4<f32> = vec4<f32>(0.5) - abs(gx1) - abs(gy1);\n let sz1: vec4<f32> = step(gz1, vec4<f32>(0.0));\n gx1 -= sz1 * (step(vec4<f32>(0.0), gx1) - 0.5);\n gy1 -= sz1 * (step(vec4<f32>(0.0), gy1) - 0.5);\n var g000: vec3<f32> = vec3<f32>(gx0.x, gy0.x, gz0.x);\n var g100: vec3<f32> = vec3<f32>(gx0.y, gy0.y, gz0.y);\n var g010: vec3<f32> = vec3<f32>(gx0.z, gy0.z, gz0.z);\n var g110: vec3<f32> = vec3<f32>(gx0.w, gy0.w, gz0.w);\n var g001: vec3<f32> = vec3<f32>(gx1.x, gy1.x, gz1.x);\n var g101: vec3<f32> = vec3<f32>(gx1.y, gy1.y, gz1.y);\n var g011: vec3<f32> = vec3<f32>(gx1.z, gy1.z, gz1.z);\n var g111: vec3<f32> = vec3<f32>(gx1.w, gy1.w, gz1.w);\n let norm0: vec4<f32> = taylorInvSqrt(vec4<f32>(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));\n g000 *= norm0.x;\n g010 *= norm0.y;\n g100 *= norm0.z;\n g110 *= norm0.w;\n let norm1: vec4<f32> = taylorInvSqrt(vec4<f32>(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));\n g001 *= norm1.x;\n g011 *= norm1.y;\n g101 *= norm1.z;\n g111 *= norm1.w;\n let n000: f32 = dot(g000, Pf0);\n let n100: f32 = dot(g100, vec3<f32>(Pf1.x, Pf0.yz));\n let n010: f32 = dot(g010, vec3<f32>(Pf0.x, Pf1.y, Pf0.z));\n let n110: f32 = dot(g110, vec3<f32>(Pf1.xy, Pf0.z));\n let n001: f32 = dot(g001, vec3<f32>(Pf0.xy, Pf1.z));\n let n101: f32 = dot(g101, vec3<f32>(Pf1.x, Pf0.y, Pf1.z));\n let n011: f32 = dot(g011, vec3<f32>(Pf0.x, Pf1.yz));\n let n111: f32 = dot(g111, Pf1);\n let fade_xyz: vec3<f32> = fade3(Pf0);\n let n_z: vec4<f32> = mix(vec4<f32>(n000, n100, n010, n110), vec4<f32>(n001, n101, n011, n111), fade_xyz.z);\n let n_yz: vec2<f32> = mix(n_z.xy, n_z.zw, fade_xyz.y);\n let n_xyz: f32 = mix(n_yz.x, n_yz.y, fade_xyz.x);\n return 2.2 * n_xyz;\n}\nfn turb(P: vec3<f32>, rep: vec3<f32>, lacunarity: f32, gain: f32) -> f32\n{\n var sum: f32 = 0.0;\n var sc: f32 = 1.0;\n var totalgain: f32 = 1.0;\n for (var i = 0.0; i < 6.0; i += 1)\n {\n sum += totalgain * perlinNoise3(P * sc, rep);\n sc *= lacunarity;\n totalgain *= gain;\n }\n return abs(sum);\n}"),entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec2 uDimensions;\nuniform float uParallel;\nuniform vec2 uLight;\nuniform float uAspect;\nuniform float uTime;\nuniform vec3 uRay;\n\nuniform vec4 uInputSize;\n\n${PERLIN}\n\nvoid main(void) {\n vec2 uDimensions = uDimensions;\n bool uParallel = uParallel > 0.5;\n vec2 uLight = uLight;\n float uAspect = uAspect;\n\n vec2 coord = vTextureCoord * uInputSize.xy / uDimensions;\n\n float d;\n\n if (uParallel) {\n float _cos = uLight.x;\n float _sin = uLight.y;\n d = (_cos * coord.x) + (_sin * coord.y * uAspect);\n } else {\n float dx = coord.x - uLight.x / uDimensions.x;\n float dy = (coord.y - uLight.y / uDimensions.y) * uAspect;\n float dis = sqrt(dx * dx + dy * dy) + 0.00001;\n d = dy / dis;\n }\n\n float uTime = uTime;\n vec3 uRay = uRay;\n\n float gain = uRay[0];\n float lacunarity = uRay[1];\n float alpha = uRay[2];\n\n vec3 dir = vec3(d, d, 0.0);\n float noise = turb(dir + vec3(uTime, 0.0, 62.1 + uTime) * 0.05, vec3(480.0, 320.0, 480.0), lacunarity, gain);\n noise = mix(noise, 0.0, 0.3);\n //fade vertically.\n vec4 mist = vec4(vec3(noise), 1.0) * (1.0 - coord.y);\n mist.a = 1.0;\n // apply user alpha\n mist *= alpha;\n\n finalColor = texture(uTexture, vTextureCoord) + mist;\n}\n".replace("${PERLIN}","vec3 mod289(vec3 x)\n{\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nvec4 mod289(vec4 x)\n{\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nvec4 permute(vec4 x)\n{\n return mod289(((x * 34.0) + 1.0) * x);\n}\nvec4 taylorInvSqrt(vec4 r)\n{\n return 1.79284291400159 - 0.85373472095314 * r;\n}\nvec3 fade(vec3 t)\n{\n return t * t * t * (t * (t * 6.0 - 15.0) + 10.0);\n}\n// Classic Perlin noise, periodic variant\nfloat pnoise(vec3 P, vec3 rep)\n{\n vec3 Pi0 = mod(floor(P), rep); // Integer part, modulo period\n vec3 Pi1 = mod(Pi0 + vec3(1.0), rep); // Integer part + 1, mod period\n Pi0 = mod289(Pi0);\n Pi1 = mod289(Pi1);\n vec3 Pf0 = fract(P); // Fractional part for interpolation\n vec3 Pf1 = Pf0 - vec3(1.0); // Fractional part - 1.0\n vec4 ix = vec4(Pi0.x, Pi1.x, Pi0.x, Pi1.x);\n vec4 iy = vec4(Pi0.yy, Pi1.yy);\n vec4 iz0 = Pi0.zzzz;\n vec4 iz1 = Pi1.zzzz;\n vec4 ixy = permute(permute(ix) + iy);\n vec4 ixy0 = permute(ixy + iz0);\n vec4 ixy1 = permute(ixy + iz1);\n vec4 gx0 = ixy0 * (1.0 / 7.0);\n vec4 gy0 = fract(floor(gx0) * (1.0 / 7.0)) - 0.5;\n gx0 = fract(gx0);\n vec4 gz0 = vec4(0.5) - abs(gx0) - abs(gy0);\n vec4 sz0 = step(gz0, vec4(0.0));\n gx0 -= sz0 * (step(0.0, gx0) - 0.5);\n gy0 -= sz0 * (step(0.0, gy0) - 0.5);\n vec4 gx1 = ixy1 * (1.0 / 7.0);\n vec4 gy1 = fract(floor(gx1) * (1.0 / 7.0)) - 0.5;\n gx1 = fract(gx1);\n vec4 gz1 = vec4(0.5) - abs(gx1) - abs(gy1);\n vec4 sz1 = step(gz1, vec4(0.0));\n gx1 -= sz1 * (step(0.0, gx1) - 0.5);\n gy1 -= sz1 * (step(0.0, gy1) - 0.5);\n vec3 g000 = vec3(gx0.x, gy0.x, gz0.x);\n vec3 g100 = vec3(gx0.y, gy0.y, gz0.y);\n vec3 g010 = vec3(gx0.z, gy0.z, gz0.z);\n vec3 g110 = vec3(gx0.w, gy0.w, gz0.w);\n vec3 g001 = vec3(gx1.x, gy1.x, gz1.x);\n vec3 g101 = vec3(gx1.y, gy1.y, gz1.y);\n vec3 g011 = vec3(gx1.z, gy1.z, gz1.z);\n vec3 g111 = vec3(gx1.w, gy1.w, gz1.w);\n vec4 norm0 = taylorInvSqrt(vec4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));\n g000 *= norm0.x;\n g010 *= norm0.y;\n g100 *= norm0.z;\n g110 *= norm0.w;\n vec4 norm1 = taylorInvSqrt(vec4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));\n g001 *= norm1.x;\n g011 *= norm1.y;\n g101 *= norm1.z;\n g111 *= norm1.w;\n float n000 = dot(g000, Pf0);\n float n100 = dot(g100, vec3(Pf1.x, Pf0.yz));\n float n010 = dot(g010, vec3(Pf0.x, Pf1.y, Pf0.z));\n float n110 = dot(g110, vec3(Pf1.xy, Pf0.z));\n float n001 = dot(g001, vec3(Pf0.xy, Pf1.z));\n float n101 = dot(g101, vec3(Pf1.x, Pf0.y, Pf1.z));\n float n011 = dot(g011, vec3(Pf0.x, Pf1.yz));\n float n111 = dot(g111, Pf1);\n vec3 fade_xyz = fade(Pf0);\n vec4 n_z = mix(vec4(n000, n100, n010, n110), vec4(n001, n101, n011, n111), fade_xyz.z);\n vec2 n_yz = mix(n_z.xy, n_z.zw, fade_xyz.y);\n float n_xyz = mix(n_yz.x, n_yz.y, fade_xyz.x);\n return 2.2 * n_xyz;\n}\nfloat turb(vec3 P, vec3 rep, float lacunarity, float gain)\n{\n float sum = 0.0;\n float sc = 1.0;\n float totalgain = 1.0;\n for (float i = 0.0; i < 6.0; i++)\n {\n sum += totalgain * pnoise(P * sc, rep);\n sc *= lacunarity;\n totalgain *= gain;\n }\n return abs(sum);\n}\n"),name:"god-ray-filter"}),resources:{godrayUniforms:{uLight:{value:new Float32Array(2),type:"vec2<f32>"},uParallel:{value:0,type:"f32"},uAspect:{value:0,type:"f32"},uTime:{value:t.time,type:"f32"},uRay:{value:new Float32Array(3),type:"vec3<f32>"},uDimensions:{value:new Float32Array(2),type:"vec2<f32>"}}}}),IV(this,"uniforms"),IV(this,"time",0),IV(this,"_angleLight",[0,0]),IV(this,"_angle",0),IV(this,"_center"),this.uniforms=this.resources.godrayUniforms.uniforms,Object.assign(this,t)}},"DEFAULT_OPTIONS",{angle:30,gain:.5,lacunarity:2.5,parallel:!0,time:0,center:{x:0,y:0},alpha:1});var OV=Object.defineProperty,MV=(e,t,n)=>(((e,t,n)=>{t in e?OV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);MV(class e extends df{get hue(){return this._hue}set hue(e){this._hue=e,this.uniforms.uHsl[0]=e*(Math.PI/180)}get saturation(){return this.uniforms.uHsl[1]}set saturation(e){this.uniforms.uHsl[1]=e}get lightness(){return this.uniforms.uHsl[2]}set lightness(e){this.uniforms.uHsl[2]=e}get colorize(){return 1===this.uniforms.uColorize}set colorize(e){this.uniforms.uColorize=e?1:0}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}constructor(t){t=q(q({},e.DEFAULT_OPTIONS),t),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct HslUniforms {\n uHsl:vec3<f32>,\n uColorize:f32,\n uAlpha:f32,\n};\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> hslUniforms : HslUniforms;\n\n@fragment\nfn mainFragment(\n @location(0) uv: vec2<f32>,\n @builtin(position) position: vec4<f32>\n) -> @location(0) vec4<f32> {\n let color: vec4<f32> = textureSample(uTexture, uSampler, uv);\n var resultRGB: vec3<f32> = color.rgb;\n\n let hue: f32 = hslUniforms.uHsl[0];\n let saturation: f32 = hslUniforms.uHsl[1];\n let lightness: f32 = hslUniforms.uHsl[2];\n\n // colorize\n if (hslUniforms.uColorize > 0.5) {\n resultRGB = vec3<f32>(dot(color.rgb, vec3<f32>(0.299, 0.587, 0.114)), 0., 0.);\n }\n\n // hue\n resultRGB = hueShift(resultRGB, hue);\n\n // saturation\n // https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/huesaturation.js\n let average: f32 = (resultRGB.r + resultRGB.g + resultRGB.b) / 3.0;\n\n if (saturation > 0.) {\n resultRGB += (average - resultRGB) * (1. - 1. / (1.001 - saturation));\n } else {\n resultRGB -= (average - resultRGB) * saturation;\n }\n\n // lightness\n resultRGB = mix(resultRGB, vec3<f32>(ceil(lightness)) * color.a, abs(lightness));\n\n // alpha\n return mix(color, vec4<f32>(resultRGB, color.a), hslUniforms.uAlpha);\n}\n\n// https://gist.github.com/mairod/a75e7b44f68110e1576d77419d608786?permalink_comment_id=3195243#gistcomment-3195243\nconst k: vec3<f32> = vec3(0.57735, 0.57735, 0.57735);\n\nfn hueShift(color: vec3<f32>, angle: f32) -> vec3<f32> \n{\n let cosAngle: f32 = cos(angle);\n return vec3<f32>(\n color * cosAngle +\n cross(k, color) * sin(angle) +\n k * dot(k, color) * (1.0 - cosAngle)\n );\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"in vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec3 uHsl;\nuniform float uAlpha;\nuniform float uColorize;\n\n// https://en.wikipedia.org/wiki/Luma_(video)\nconst vec3 weight = vec3(0.299, 0.587, 0.114);\n\nfloat getWeightedAverage(vec3 rgb) {\n return rgb.r * weight.r + rgb.g * weight.g + rgb.b * weight.b;\n}\n\n// https://gist.github.com/mairod/a75e7b44f68110e1576d77419d608786?permalink_comment_id=3195243#gistcomment-3195243\nconst vec3 k = vec3(0.57735, 0.57735, 0.57735);\n\nvec3 hueShift(vec3 color, float angle) {\n float cosAngle = cos(angle);\n return vec3(\n color * cosAngle +\n cross(k, color) * sin(angle) +\n k * dot(k, color) * (1.0 - cosAngle)\n );\n}\n\nvoid main()\n{\n vec4 color = texture(uTexture, vTextureCoord);\n vec3 resultRGB = color.rgb;\n\n float hue = uHsl[0];\n float saturation = uHsl[1];\n float lightness = uHsl[2];\n\n // colorize\n if (uColorize > 0.5) {\n resultRGB = vec3(getWeightedAverage(resultRGB), 0., 0.);\n }\n\n // hue\n resultRGB = hueShift(resultRGB, hue);\n\n // saturation\n // https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/huesaturation.js\n float average = (resultRGB.r + resultRGB.g + resultRGB.b) / 3.0;\n\n if (saturation > 0.) {\n resultRGB += (average - resultRGB) * (1. - 1. / (1.001 - saturation));\n } else {\n resultRGB -= (average - resultRGB) * saturation;\n }\n\n // lightness\n resultRGB = mix(resultRGB, vec3(ceil(lightness)) * color.a, abs(lightness));\n\n // alpha\n finalColor = mix(color, vec4(resultRGB, color.a), uAlpha);\n}\n",name:"hsl-adjustment-filter"}),resources:{hslUniforms:{uHsl:{value:new Float32Array(3),type:"vec3<f32>"},uColorize:{value:t.colorize?1:0,type:"f32"},uAlpha:{value:t.alpha,type:"f32"}}}}),MV(this,"uniforms"),MV(this,"_hue"),this.uniforms=this.resources.hslUniforms.uniforms,Object.assign(this,t)}},"DEFAULT_OPTIONS",{hue:0,saturation:0,lightness:0,colorize:!1,alpha:1});var jV=Object.defineProperty,zV=(e,t,n)=>(((e,t,n)=>{t in e?jV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);zV(class e extends df{get velocity(){return this.uniforms.uVelocity}set velocity(e){Array.isArray(e)&&(e={x:e[0],y:e[1]}),this.uniforms.uVelocity=e,this._updateDirty()}get velocityX(){return this.velocity.x}set velocityX(e){this.velocity.x=e,this._updateDirty()}get velocityY(){return this.velocity.y}set velocityY(e){this.velocity.y=e,this._updateDirty()}get kernelSize(){return this._kernelSize}set kernelSize(e){this._kernelSize=e,this._updateDirty()}get offset(){return this.uniforms.uOffset}set offset(e){this.uniforms.uOffset=e}_updateDirty(){this.padding=1+(0|Math.max(Math.abs(this.velocityX),Math.abs(this.velocityY))),this.uniforms.uKernelSize=0!==this.velocityX||0!==this.velocityY?this._kernelSize:0}constructor(...t){var n,r;let i=null!=(n=t[0])?n:{};(Array.isArray(i)||"x"in i&&"y"in i||i instanceof Le)&&($e("6.0.0","MotionBlurFilter constructor params are now options object. See params: { velocity, kernelSize, offset }"),i={velocity:{x:"x"in i?i.x:i[0],y:"y"in i?i.y:i[1]}},void 0!==t[1]&&(i.kernelSize=t[1]),void 0!==t[2]&&(i.offset=t[2])),i=q(q({},e.DEFAULT_OPTIONS),i),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct MotionBlurUniforms {\n uVelocity: vec2<f32>,\n uKernelSize: f32,\n uOffset: f32,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> motionBlurUniforms : MotionBlurUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let uVelocity = motionBlurUniforms.uVelocity;\n let uKernelSize = motionBlurUniforms.uKernelSize;\n let uOffset = motionBlurUniforms.uOffset;\n\n let velocity: vec2<f32> = uVelocity / gfu.uInputSize.xy;\n let offset: f32 = -uOffset / length(uVelocity) - 0.5;\n let k: i32 = i32(min(uKernelSize - 1, MAX_KERNEL_SIZE - 1));\n\n var color: vec4<f32> = textureSample(uTexture, uSampler, uv);\n\n for(var i: i32 = 0; i < k; i += 1) {\n let bias: vec2<f32> = velocity * (f32(i) / f32(k) + offset);\n color += textureSample(uTexture, uSampler, uv + bias);\n }\n \n return select(color / f32(uKernelSize), textureSample(uTexture, uSampler, uv), uKernelSize == 0);\n}\n\nconst MAX_KERNEL_SIZE: f32 = 2048;",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec2 uVelocity;\nuniform int uKernelSize;\nuniform float uOffset;\n\nuniform vec4 uInputSize;\n\nconst int MAX_KERNEL_SIZE = 2048;\n\n// Notice:\n// the perfect way:\n// int kernelSize = min(uKernelSize, MAX_KERNELSIZE);\n// BUT in real use-case , uKernelSize < MAX_KERNELSIZE almost always.\n// So use uKernelSize directly.\n\nvoid main(void)\n{\n vec4 color = texture(uTexture, vTextureCoord);\n\n if (uKernelSize == 0)\n {\n finalColor = color;\n return;\n }\n\n vec2 velocity = uVelocity / uInputSize.xy;\n float offset = -uOffset / length(uVelocity) - 0.5;\n int k = uKernelSize - 1;\n\n for(int i = 0; i < MAX_KERNEL_SIZE - 1; i++) {\n if (i == k) {\n break;\n }\n vec2 bias = velocity * (float(i) / float(k) + offset);\n color += texture(uTexture, vTextureCoord + bias);\n }\n finalColor = color / float(uKernelSize);\n}\n",name:"motion-blur-filter"}),resources:{motionBlurUniforms:{uVelocity:{value:i.velocity,type:"vec2<f32>"},uKernelSize:{value:Math.trunc(null!=(r=i.kernelSize)?r:5),type:"i32"},uOffset:{value:i.offset,type:"f32"}}}}),zV(this,"uniforms"),zV(this,"_kernelSize"),this.uniforms=this.resources.motionBlurUniforms.uniforms,Object.assign(this,i)}},"DEFAULT_OPTIONS",{velocity:{x:0,y:0},kernelSize:5,offset:0});var BV=Object.defineProperty,FV=(e,t,n)=>(((e,t,n)=>{t in e?BV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);FV(class e extends df{set replacements(e){const t=this.uniforms.uOriginalColors,n=this.uniforms.uTargetColors,r=e.length,i=new ke;if(r>this._maxColors)throw new Error(`Length of replacements (${r}) exceeds the maximum colors length (${this._maxColors})`);let o,a,s;t[3*r]=-1;for(let l=0;l<r;l++){const r=e[l];i.setValue(r[0]),[o,a,s]=i.toArray(),t[3*l]=o,t[3*l+1]=a,t[3*l+2]=s,i.setValue(r[1]),[o,a,s]=i.toArray(),n[3*l]=o,n[3*l+1]=a,n[3*l+2]=s}this._replacements=e}get replacements(){return this._replacements}refresh(){this.replacements=this._replacements}get maxColors(){return this._maxColors}get tolerance(){return this.uniforms.uTolerance}set tolerance(e){this.uniforms.uTolerance=e}set epsilon(e){$e("6.0.0","MultiColorReplaceFilter.epsilon is deprecated, please use MultiColorReplaceFilter.tolerance instead"),this.tolerance=e}get epsilon(){return $e("6.0.0","MultiColorReplaceFilter.epsilon is deprecated, please use MultiColorReplaceFilter.tolerance instead"),this.tolerance}constructor(...t){var n,r;let i=null!=(n=t[0])?n:{};Array.isArray(i)&&($e("6.0.0","MultiColorReplaceFilter constructor params are now options object. See params: { replacements, tolerance, maxColors }"),i={replacements:i},t[1]&&(i.tolerance=t[1]),t[2]&&(i.maxColors=t[2])),i=q(q({},e.DEFAULT_OPTIONS),i);const o=null!=(r=i.maxColors)?r:i.replacements.length;super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct MultiColorReplaceUniforms {\n uOriginalColors: array<vec3<f32>, MAX_COLORS>,\n uTargetColors: array<vec3<f32>, MAX_COLORS>,\n uTolerance:f32,\n};\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> multiColorReplaceUniforms : MultiColorReplaceUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let uOriginalColors = multiColorReplaceUniforms.uOriginalColors;\n let uTargetColors = multiColorReplaceUniforms.uTargetColors;\n let uTolerance = multiColorReplaceUniforms.uTolerance;\n\n var color: vec4<f32> = textureSample(uTexture, uSampler, uv);\n\n let alpha: f32 = color.a;\n\n if (alpha > 0.0001)\n {\n var modColor: vec3<f32> = vec3<f32>(color.rgb) / alpha;\n\n for(var i: i32 = 0; i < MAX_COLORS; i += 1)\n {\n let origColor: vec3<f32> = uOriginalColors[i];\n if (origColor.r < 0.0)\n {\n break;\n }\n let colorDiff: vec3<f32> = origColor - modColor;\n \n if (length(colorDiff) < uTolerance)\n {\n let targetColor: vec3<f32> = uTargetColors[i];\n color = vec4((targetColor + colorDiff) * alpha, alpha);\n return color;\n }\n }\n }\n\n return color;\n}\n\nconst MAX_COLORS: i32 = ${MAX_COLORS};".replace(/\$\{MAX_COLORS\}/g,o.toFixed(0)),entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"in vec2 vTextureCoord;\nout vec4 finalColor;\n\nconst int MAX_COLORS = ${MAX_COLORS};\n\nuniform sampler2D uTexture;\nuniform vec3 uOriginalColors[MAX_COLORS];\nuniform vec3 uTargetColors[MAX_COLORS];\nuniform float uTolerance;\n\nvoid main(void)\n{\n finalColor = texture(uTexture, vTextureCoord);\n\n float alpha = finalColor.a;\n if (alpha < 0.0001)\n {\n return;\n }\n\n vec3 color = finalColor.rgb / alpha;\n\n for(int i = 0; i < MAX_COLORS; i++)\n {\n vec3 origColor = uOriginalColors[i];\n if (origColor.r < 0.0)\n {\n break;\n }\n vec3 colorDiff = origColor - color;\n if (length(colorDiff) < uTolerance)\n {\n vec3 targetColor = uTargetColors[i];\n finalColor = vec4((targetColor + colorDiff) * alpha, alpha);\n return;\n }\n }\n}\n".replace(/\$\{MAX_COLORS\}/g,o.toFixed(0)),name:"multi-color-replace-filter"}),resources:{multiColorReplaceUniforms:{uOriginalColors:{value:new Float32Array(3*o),type:"vec3<f32>",size:o},uTargetColors:{value:new Float32Array(3*o),type:"vec3<f32>",size:o},uTolerance:{value:i.tolerance,type:"f32"}}}}),FV(this,"uniforms"),FV(this,"_replacements",[]),FV(this,"_maxColors"),this._maxColors=o,this.uniforms=this.resources.multiColorReplaceUniforms.uniforms,this.replacements=i.replacements}},"DEFAULT_OPTIONS",{replacements:[[16711680,255]],tolerance:.05,maxColors:void 0});var DV=Object.defineProperty,LV=(e,t,n)=>(((e,t,n)=>{t in e?DV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);LV(class e extends df{apply(e,t,n,r){this.uniforms.uDimensions[0]=t.frame.width,this.uniforms.uDimensions[1]=t.frame.height,this.uniforms.uSeed=this.seed,e.applyFilter(this,t,n,r)}get sepia(){return this.uniforms.uSepia}set sepia(e){this.uniforms.uSepia=e}get noise(){return this.uniforms.uNoise[0]}set noise(e){this.uniforms.uNoise[0]=e}get noiseSize(){return this.uniforms.uNoise[1]}set noiseSize(e){this.uniforms.uNoise[1]=e}get scratch(){return this.uniforms.uScratch[0]}set scratch(e){this.uniforms.uScratch[0]=e}get scratchDensity(){return this.uniforms.uScratch[1]}set scratchDensity(e){this.uniforms.uScratch[1]=e}get scratchWidth(){return this.uniforms.uScratch[2]}set scratchWidth(e){this.uniforms.uScratch[2]=e}get vignetting(){return this.uniforms.uVignetting[0]}set vignetting(e){this.uniforms.uVignetting[0]=e}get vignettingAlpha(){return this.uniforms.uVignetting[1]}set vignettingAlpha(e){this.uniforms.uVignetting[1]=e}get vignettingBlur(){return this.uniforms.uVignetting[2]}set vignettingBlur(e){this.uniforms.uVignetting[2]=e}constructor(t){t=q(q({},e.DEFAULT_OPTIONS),t),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct OldFilmUniforms {\n uSepia: f32,\n uNoise: vec2<f32>,\n uScratch: vec3<f32>,\n uVignetting: vec3<f32>,\n uSeed: f32,\n uDimensions: vec2<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> oldFilmUniforms : OldFilmUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n var color: vec4<f32> = textureSample(uTexture, uSampler, uv);\n\n if (oldFilmUniforms.uSepia > 0.)\n {\n color = vec4<f32>(sepia(color.rgb), color.a);\n }\n\n let coord: vec2<f32> = uv * gfu.uInputSize.xy / oldFilmUniforms.uDimensions;\n\n if (oldFilmUniforms.uVignetting[0] > 0.)\n {\n color *= vec4<f32>(vec3<f32>(vignette(color.rgb, coord)), color.a);\n }\n\n let uScratch = oldFilmUniforms.uScratch; \n\n if (uScratch[1] > oldFilmUniforms.uSeed && uScratch[0] != 0.)\n {\n color = vec4<f32>(scratch(color.rgb, coord), color.a);\n }\n\n let uNoise = oldFilmUniforms.uNoise;\n\n if (uNoise[0] > 0.0 && uNoise[1] > 0.0)\n {\n color += vec4<f32>(vec3<f32>(noise(uv)), color.a);\n }\n\n return color;\n}\n\nconst SQRT_2: f32 = 1.414213;\nconst SEPIA_RGB: vec3<f32> = vec3<f32>(112.0 / 255.0, 66.0 / 255.0, 20.0 / 255.0);\n\nfn modulo(x: f32, y: f32) -> f32\n{\n return x - y * floor(x/y);\n}\n\nfn rand(co: vec2<f32>) -> f32\n{\n return fract(sin(dot(co, vec2<f32>(12.9898, 78.233))) * 43758.5453);\n}\n\nfn overlay(src: vec3<f32>, dst: vec3<f32>) -> vec3<f32>\n{\n // if (dst <= 0.5) then: 2 * src * dst\n // if (dst > 0.5) then: 1 - 2 * (1 - dst) * (1 - src)\n\n return vec3<f32>(\n select((1.0 - 2.0 * (1.0 - dst.x) * (1.0 - src.x)), (2.0 * src.x * dst.x), (dst.x <= 0.5)), \n select((1.0 - 2.0 * (1.0 - dst.y) * (1.0 - src.y)), (2.0 * src.y * dst.y), (dst.y <= 0.5)),\n select((1.0 - 2.0 * (1.0 - dst.z) * (1.0 - src.z)), (2.0 * src.z * dst.z), (dst.z <= 0.5))\n );\n}\n\nfn sepia(co: vec3<f32>) -> vec3<f32>\n{\n let gray: f32 = (co.x + co.y + co.z) / 3.0;\n let grayscale: vec3<f32> = vec3<f32>(gray);\n let color = overlay(SEPIA_RGB, grayscale);\n return grayscale + oldFilmUniforms.uSepia * (color - grayscale);\n}\n\nfn vignette(co: vec3<f32>, coord: vec2<f32>) -> f32\n{\n let uVignetting = oldFilmUniforms.uVignetting;\n let uDimensions = oldFilmUniforms.uDimensions;\n \n let outter: f32 = SQRT_2 - uVignetting[0] * SQRT_2;\n var dir: vec2<f32> = vec2<f32>(vec2<f32>(0.5) - coord);\n dir.y *= uDimensions.y / uDimensions.x;\n let darker: f32 = clamp((outter - length(dir) * SQRT_2) / ( 0.00001 + uVignetting[2] * SQRT_2), 0.0, 1.0);\n return darker + (1.0 - darker) * (1.0 - uVignetting[1]);\n}\n\nfn scratch(co: vec3<f32>, coord: vec2<f32>) -> vec3<f32>\n{\n var color = co;\n let uScratch = oldFilmUniforms.uScratch;\n let uSeed = oldFilmUniforms.uSeed;\n let uDimensions = oldFilmUniforms.uDimensions;\n\n let phase: f32 = uSeed * 256.0;\n let s: f32 = modulo(floor(phase), 2.0);\n let dist: f32 = 1.0 / uScratch[1];\n let d: f32 = distance(coord, vec2<f32>(uSeed * dist, abs(s - uSeed * dist)));\n\n if (d < uSeed * 0.6 + 0.4)\n {\n let period: f32 = uScratch[1] * 10.0;\n\n let xx: f32 = coord.x * period + phase;\n let aa: f32 = abs(modulo(xx, 0.5) * 4.0);\n let bb: f32 = modulo(floor(xx / 0.5), 2.0);\n let yy: f32 = (1.0 - bb) * aa + bb * (2.0 - aa);\n\n let kk: f32 = 2.0 * period;\n let dw: f32 = uScratch[2] / uDimensions.x * (0.75 + uSeed);\n let dh: f32 = dw * kk;\n\n var tine: f32 = (yy - (2.0 - dh));\n\n if (tine > 0.0) {\n let _sign: f32 = sign(uScratch[0]);\n\n tine = s * tine / period + uScratch[0] + 0.1;\n tine = clamp(tine + 1.0, 0.5 + _sign * 0.5, 1.5 + _sign * 0.5);\n\n color *= tine;\n }\n }\n\n return color;\n}\n\nfn noise(coord: vec2<f32>) -> f32\n{\n let uNoise = oldFilmUniforms.uNoise;\n let uSeed = oldFilmUniforms.uSeed;\n\n var pixelCoord: vec2<f32> = coord * gfu.uInputSize.xy;\n pixelCoord.x = floor(pixelCoord.x / uNoise[1]);\n pixelCoord.y = floor(pixelCoord.y / uNoise[1]);\n return (rand(pixelCoord * uNoise[1] * uSeed) - 0.5) * uNoise[0];\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform float uSepia;\nuniform vec2 uNoise;\nuniform vec3 uScratch;\nuniform vec3 uVignetting;\nuniform float uSeed;\nuniform vec2 uDimensions;\n\nuniform vec4 uInputSize;\n\nconst float SQRT_2 = 1.414213;\nconst vec3 SEPIA_RGB = vec3(112.0 / 255.0, 66.0 / 255.0, 20.0 / 255.0);\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvec3 Overlay(vec3 src, vec3 dst)\n{\n // if (dst <= 0.5) then: 2 * src * dst\n // if (dst > 0.5) then: 1 - 2 * (1 - dst) * (1 - src)\n return vec3((dst.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - dst.x) * (1.0 - src.x)),\n (dst.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - dst.y) * (1.0 - src.y)),\n (dst.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - dst.z) * (1.0 - src.z)));\n}\n\n\nvoid main()\n{\n finalColor = texture(uTexture, vTextureCoord);\n vec3 color = finalColor.rgb;\n\n if (uSepia > 0.0)\n {\n float gray = (color.x + color.y + color.z) / 3.0;\n vec3 grayscale = vec3(gray);\n\n color = Overlay(SEPIA_RGB, grayscale);\n\n color = grayscale + uSepia * (color - grayscale);\n }\n\n vec2 coord = vTextureCoord * uInputSize.xy / uDimensions.xy;\n\n float vignette = uVignetting[0];\n float vignetteAlpha = uVignetting[1];\n float vignetteBlur = uVignetting[2];\n\n if (vignette > 0.0)\n {\n float outter = SQRT_2 - vignette * SQRT_2;\n vec2 dir = vec2(vec2(0.5, 0.5) - coord);\n dir.y *= uDimensions.y / uDimensions.x;\n float darker = clamp((outter - length(dir) * SQRT_2) / ( 0.00001 + vignetteBlur * SQRT_2), 0.0, 1.0);\n color.rgb *= darker + (1.0 - darker) * (1.0 - vignetteAlpha);\n }\n\n float scratch = uScratch[0];\n float scratchDensity = uScratch[1];\n float scratchWidth = uScratch[2];\n\n if (scratchDensity > uSeed && scratch != 0.0)\n {\n float phase = uSeed * 256.0;\n float s = mod(floor(phase), 2.0);\n float dist = 1.0 / scratchDensity;\n float d = distance(coord, vec2(uSeed * dist, abs(s - uSeed * dist)));\n if (d < uSeed * 0.6 + 0.4)\n {\n highp float period = scratchDensity * 10.0;\n\n float xx = coord.x * period + phase;\n float aa = abs(mod(xx, 0.5) * 4.0);\n float bb = mod(floor(xx / 0.5), 2.0);\n float yy = (1.0 - bb) * aa + bb * (2.0 - aa);\n\n float kk = 2.0 * period;\n float dw = scratchWidth / uDimensions.x * (0.75 + uSeed);\n float dh = dw * kk;\n\n float tine = (yy - (2.0 - dh));\n\n if (tine > 0.0) {\n float _sign = sign(scratch);\n\n tine = s * tine / period + scratch + 0.1;\n tine = clamp(tine + 1.0, 0.5 + _sign * 0.5, 1.5 + _sign * 0.5);\n\n color.rgb *= tine;\n }\n }\n }\n\n float noise = uNoise[0];\n float noiseSize = uNoise[1];\n\n if (noise > 0.0 && noiseSize > 0.0)\n {\n vec2 pixelCoord = vTextureCoord.xy * uInputSize.xy;\n pixelCoord.x = floor(pixelCoord.x / noiseSize);\n pixelCoord.y = floor(pixelCoord.y / noiseSize);\n // vec2 d = pixelCoord * noiseSize * vec2(1024.0 + uSeed * 512.0, 1024.0 - uSeed * 512.0);\n // float _noise = snoise(d) * 0.5;\n float _noise = rand(pixelCoord * noiseSize * uSeed) - 0.5;\n color += _noise * noise;\n }\n\n finalColor.rgb = color;\n}",name:"old-film-filter"}),resources:{oldFilmUniforms:{uSepia:{value:t.sepia,type:"f32"},uNoise:{value:new Float32Array(2),type:"vec2<f32>"},uScratch:{value:new Float32Array(3),type:"vec3<f32>"},uVignetting:{value:new Float32Array(3),type:"vec3<f32>"},uSeed:{value:t.seed,type:"f32"},uDimensions:{value:new Float32Array(2),type:"vec2<f32>"}}}}),LV(this,"uniforms"),LV(this,"seed"),this.uniforms=this.resources.oldFilmUniforms.uniforms,Object.assign(this,t)}},"DEFAULT_OPTIONS",{sepia:.3,noise:.3,noiseSize:1,scratch:.5,scratchDensity:.3,scratchWidth:1,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,seed:0});var NV=Object.defineProperty,UV=(e,t,n)=>(((e,t,n)=>{t in e?NV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),GV=class e extends df{apply(e,t,n,r){this.uniforms.uThickness[0]=this.thickness/t.source.width,this.uniforms.uThickness[1]=this.thickness/t.source.height,e.applyFilter(this,t,n,r)}static getAngleStep(t){return parseFloat((2*Math.PI/Math.max(t*e.MAX_SAMPLES,e.MIN_SAMPLES)).toFixed(7))}get thickness(){return this._thickness}set thickness(e){this._thickness=this.padding=e}get color(){return this._color.value}set color(e){this._color.setValue(e);const[t,n,r]=this._color.toArray();this.uniforms.uColor[0]=t,this.uniforms.uColor[1]=n,this.uniforms.uColor[2]=r}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}get quality(){return this._quality}set quality(t){this._quality=t,this.uniforms.uAngleStep=e.getAngleStep(t)}get knockout(){return 1===this.uniforms.uKnockout}set knockout(e){this.uniforms.uKnockout=e?1:0}constructor(...t){var n,r,i;let o=null!=(n=t[0])?n:{};"number"==typeof o&&($e("6.0.0","OutlineFilter constructor params are now options object. See params: { thickness, color, quality, alpha, knockout }"),o={thickness:o},void 0!==t[1]&&(o.color=t[1]),void 0!==t[2]&&(o.quality=t[2]),void 0!==t[3]&&(o.alpha=t[3]),void 0!==t[4]&&(o.knockout=t[4])),o=q(q({},e.DEFAULT_OPTIONS),o);const a=null!=(r=o.quality)?r:.1;super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct OutlineUniforms {\n uThickness:vec2<f32>,\n uColor:vec3<f32>,\n uAlpha:f32,\n uAngleStep:f32,\n uKnockout:f32,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> outlineUniforms : OutlineUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let sourceColor: vec4<f32> = textureSample(uTexture, uSampler, uv);\n let contentColor: vec4<f32> = sourceColor * (1. - outlineUniforms.uKnockout);\n \n let outlineAlpha: f32 = outlineUniforms.uAlpha * outlineMaxAlphaAtPos(uv) * (1. - sourceColor.a);\n let outlineColor: vec4<f32> = vec4<f32>(vec3<f32>(outlineUniforms.uColor) * outlineAlpha, outlineAlpha);\n \n return contentColor + outlineColor;\n}\n\nfn outlineMaxAlphaAtPos(uv: vec2<f32>) -> f32 {\n let thickness = outlineUniforms.uThickness;\n\n if (thickness.x == 0. || thickness.y == 0.) {\n return 0.;\n }\n \n let angleStep = outlineUniforms.uAngleStep;\n\n var displacedColor: vec4<f32>;\n var displacedPos: vec2<f32>;\n\n var maxAlpha: f32 = 0.;\n var displaced: vec2<f32>;\n var curColor: vec4<f32>;\n\n for (var angle = 0.; angle <= DOUBLE_PI; angle += angleStep)\n {\n displaced.x = uv.x + thickness.x * cos(angle);\n displaced.y = uv.y + thickness.y * sin(angle);\n curColor = textureSample(uTexture, uSampler, clamp(displaced, gfu.uInputClamp.xy, gfu.uInputClamp.zw));\n maxAlpha = max(maxAlpha, curColor.a);\n }\n\n return maxAlpha;\n}\n\nconst DOUBLE_PI: f32 = 3.14159265358979323846264 * 2.;",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec2 uThickness;\nuniform vec3 uColor;\nuniform float uAlpha;\nuniform float uKnockout;\n\nuniform vec4 uInputClamp;\n\nconst float DOUBLE_PI = 2. * 3.14159265358979323846264;\nconst float ANGLE_STEP = ${ANGLE_STEP};\n\nfloat outlineMaxAlphaAtPos(vec2 pos) {\n if (uThickness.x == 0. || uThickness.y == 0.) {\n return 0.;\n }\n\n vec4 displacedColor;\n vec2 displacedPos;\n float maxAlpha = 0.;\n\n for (float angle = 0.; angle <= DOUBLE_PI; angle += ANGLE_STEP) {\n displacedPos.x = vTextureCoord.x + uThickness.x * cos(angle);\n displacedPos.y = vTextureCoord.y + uThickness.y * sin(angle);\n displacedColor = texture(uTexture, clamp(displacedPos, uInputClamp.xy, uInputClamp.zw));\n maxAlpha = max(maxAlpha, displacedColor.a);\n }\n\n return maxAlpha;\n}\n\nvoid main(void) {\n vec4 sourceColor = texture(uTexture, vTextureCoord);\n vec4 contentColor = sourceColor * float(uKnockout < 0.5);\n float outlineAlpha = uAlpha * outlineMaxAlphaAtPos(vTextureCoord.xy) * (1.-sourceColor.a);\n vec4 outlineColor = vec4(vec3(uColor) * outlineAlpha, outlineAlpha);\n finalColor = contentColor + outlineColor;\n}\n".replace(/\$\{ANGLE_STEP\}/,e.getAngleStep(a).toFixed(7)),name:"outline-filter"}),resources:{outlineUniforms:{uThickness:{value:new Float32Array(2),type:"vec2<f32>"},uColor:{value:new Float32Array(3),type:"vec3<f32>"},uAlpha:{value:o.alpha,type:"f32"},uAngleStep:{value:0,type:"f32"},uKnockout:{value:o.knockout?1:0,type:"f32"}}}}),UV(this,"uniforms"),UV(this,"_thickness"),UV(this,"_quality"),UV(this,"_color"),this.uniforms=this.resources.outlineUniforms.uniforms,this.uniforms.uAngleStep=e.getAngleStep(a),this._color=new ke,this.color=null!=(i=o.color)?i:0,Object.assign(this,o)}};UV(GV,"DEFAULT_OPTIONS",{thickness:1,color:0,alpha:1,quality:.1,knockout:!1}),UV(GV,"MIN_SAMPLES",1),UV(GV,"MAX_SAMPLES",100);var HV=Object.defineProperty,WV=(e,t,n)=>(((e,t,n)=>{t in e?HV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);WV(class e extends df{_updateKernelSize(){this.uniforms.uKernelSize=0!==this._angle?this.kernelSize:0}get angle(){return this._angle}set angle(e){this._angle=e,this.uniforms.uRadian=e*Math.PI/180,this._updateKernelSize()}get center(){return this.uniforms.uCenter}set center(e){Array.isArray(e)&&(e={x:e[0],y:e[1]}),this.uniforms.uCenter=e}get centerX(){return this.center.x}set centerX(e){this.center.x=e}get centerY(){return this.center.y}set centerY(e){this.center.y=e}get kernelSize(){return this._kernelSize}set kernelSize(e){this._kernelSize=e,this._updateKernelSize()}get radius(){return this.uniforms.uRadius}set radius(e){this.uniforms.uRadius=e<0||e===1/0?-1:e}constructor(...t){var n;let r=null!=(n=t[0])?n:{};if("number"==typeof r){if($e("6.0.0","RadialBlurFilter constructor params are now options object. See params: { angle, center, kernelSize, radius }"),r={angle:r},t[1]){const e="x"in t[1]?t[1].x:t[1][0],n="y"in t[1]?t[1].y:t[1][1];r.center={x:e,y:n}}t[2]&&(r.kernelSize=t[2]),t[3]&&(r.radius=t[3])}r=q(q({},e.DEFAULT_OPTIONS),r),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct RadialBlurUniforms {\n uRadian: f32,\n uCenter: vec2<f32>,\n uKernelSize: f32,\n uRadius: f32,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> radialBlurUniforms : RadialBlurUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let uRadian = radialBlurUniforms.uRadian;\n let uCenter = radialBlurUniforms.uCenter;\n let uKernelSize = radialBlurUniforms.uKernelSize;\n let uRadius = radialBlurUniforms.uRadius;\n \n var returnColorOnly = false;\n\n if (uKernelSize == 0)\n {\n returnColorOnly = true;\n }\n\n let aspect: f32 = gfu.uInputSize.y / gfu.uInputSize.x;\n let center: vec2<f32> = uCenter.xy / gfu.uInputSize.xy;\n let gradient: f32 = uRadius / gfu.uInputSize.x * 0.3;\n let radius: f32 = uRadius / gfu.uInputSize.x - gradient * 0.5;\n let k: i32 = i32(uKernelSize - 1);\n\n var coord: vec2<f32> = uv;\n let dir: vec2<f32> = vec2<f32>(center - coord);\n let dist: f32 = length(vec2<f32>(dir.x, dir.y * aspect));\n\n var radianStep: f32 = uRadian;\n \n if (radius >= 0.0 && dist > radius)\n {\n let delta: f32 = dist - radius;\n let gap: f32 = gradient;\n let scale: f32 = 1.0 - abs(delta / gap);\n if (scale <= 0.0) {\n returnColorOnly = true;\n }\n radianStep *= scale;\n }\n\n radianStep /= f32(k);\n\n let s: f32 = sin(radianStep);\n let c: f32 = cos(radianStep);\n let rotationMatrix: mat2x2<f32> = mat2x2<f32>(vec2<f32>(c, -s), vec2<f32>(s, c));\n \n var color: vec4<f32> = textureSample(uTexture, uSampler, uv);\n let baseColor = vec4<f32>(color);\n\n let minK: i32 = min(i32(uKernelSize) - 1, MAX_KERNEL_SIZE - 1);\n\n for(var i: i32 = 0; i < minK; i += 1) \n {\n coord -= center;\n coord.y *= aspect;\n coord = rotationMatrix * coord;\n coord.y /= aspect;\n coord += center;\n let sample: vec4<f32> = textureSample(uTexture, uSampler, coord);\n // switch to pre-multiplied alpha to correctly blur transparent images\n // sample.rgb *= sample.a;\n color += sample;\n }\n\n return select(color / f32(uKernelSize), baseColor, returnColorOnly);\n}\n\nconst MAX_KERNEL_SIZE: i32 = 2048;",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform float uRadian;\nuniform vec2 uCenter;\nuniform float uRadius;\nuniform int uKernelSize;\n\nuniform vec4 uInputSize;\n\nconst int MAX_KERNEL_SIZE = 2048;\n\nvoid main(void)\n{\n vec4 color = texture(uTexture, vTextureCoord);\n\n if (uKernelSize == 0)\n {\n finalColor = color;\n return;\n }\n\n float aspect = uInputSize.y / uInputSize.x;\n vec2 center = uCenter.xy / uInputSize.xy;\n float gradient = uRadius / uInputSize.x * 0.3;\n float radius = uRadius / uInputSize.x - gradient * 0.5;\n int k = uKernelSize - 1;\n\n vec2 coord = vTextureCoord;\n vec2 dir = vec2(center - coord);\n float dist = length(vec2(dir.x, dir.y * aspect));\n\n float radianStep = uRadian;\n if (radius >= 0.0 && dist > radius) {\n float delta = dist - radius;\n float gap = gradient;\n float scale = 1.0 - abs(delta / gap);\n if (scale <= 0.0) {\n finalColor = color;\n return;\n }\n radianStep *= scale;\n }\n radianStep /= float(k);\n\n float s = sin(radianStep);\n float c = cos(radianStep);\n mat2 rotationMatrix = mat2(vec2(c, -s), vec2(s, c));\n\n for(int i = 0; i < MAX_KERNEL_SIZE - 1; i++) {\n if (i == k) {\n break;\n }\n\n coord -= center;\n coord.y *= aspect;\n coord = rotationMatrix * coord;\n coord.y /= aspect;\n coord += center;\n\n vec4 sample = texture(uTexture, coord);\n\n // switch to pre-multiplied alpha to correctly blur transparent images\n // sample.rgb *= sample.a;\n\n color += sample;\n }\n\n finalColor = color / float(uKernelSize);\n}\n",name:"radial-blur-filter"}),resources:{radialBlurUniforms:{uRadian:{value:0,type:"f32"},uCenter:{value:r.center,type:"vec2<f32>"},uKernelSize:{value:r.kernelSize,type:"i32"},uRadius:{value:r.radius,type:"f32"}}}}),WV(this,"uniforms"),WV(this,"_angle"),WV(this,"_kernelSize"),this.uniforms=this.resources.radialBlurUniforms.uniforms,Object.assign(this,r)}},"DEFAULT_OPTIONS",{angle:0,center:{x:0,y:0},kernelSize:5,radius:-1});var VV=Object.defineProperty,XV=(e,t,n)=>(((e,t,n)=>{t in e?VV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);XV(class e extends df{apply(e,t,n,r){this.uniforms.uDimensions[0]=t.frame.width,this.uniforms.uDimensions[1]=t.frame.height,this.uniforms.uTime=this.time,e.applyFilter(this,t,n,r)}get mirror(){return this.uniforms.uMirror>.5}set mirror(e){this.uniforms.uMirror=e?1:0}get boundary(){return this.uniforms.uBoundary}set boundary(e){this.uniforms.uBoundary=e}get amplitude(){return Array.from(this.uniforms.uAmplitude)}set amplitude(e){this.uniforms.uAmplitude[0]=e[0],this.uniforms.uAmplitude[1]=e[1]}get amplitudeStart(){return this.uniforms.uAmplitude[0]}set amplitudeStart(e){this.uniforms.uAmplitude[0]=e}get amplitudeEnd(){return this.uniforms.uAmplitude[1]}set amplitudeEnd(e){this.uniforms.uAmplitude[1]=e}get waveLength(){return Array.from(this.uniforms.uWavelength)}set waveLength(e){this.uniforms.uWavelength[0]=e[0],this.uniforms.uWavelength[1]=e[1]}get wavelengthStart(){return this.uniforms.uWavelength[0]}set wavelengthStart(e){this.uniforms.uWavelength[0]=e}get wavelengthEnd(){return this.uniforms.uWavelength[1]}set wavelengthEnd(e){this.uniforms.uWavelength[1]=e}get alpha(){return Array.from(this.uniforms.uAlpha)}set alpha(e){this.uniforms.uAlpha[0]=e[0],this.uniforms.uAlpha[1]=e[1]}get alphaStart(){return this.uniforms.uAlpha[0]}set alphaStart(e){this.uniforms.uAlpha[0]=e}get alphaEnd(){return this.uniforms.uAlpha[1]}set alphaEnd(e){this.uniforms.uAlpha[1]=e}constructor(t){t=q(q({},e.DEFAULT_OPTIONS),t),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct ReflectionUniforms {\n uMirror: f32,\n uBoundary: f32,\n uAmplitude: vec2<f32>,\n uWavelength: vec2<f32>,\n uAlpha: vec2<f32>,\n uTime: f32,\n uDimensions: vec2<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> reflectionUniforms : ReflectionUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let uDimensions: vec2<f32> = reflectionUniforms.uDimensions;\n let uBoundary: f32 = reflectionUniforms.uBoundary;\n let uMirror: bool = reflectionUniforms.uMirror > 0.5;\n let uAmplitude: vec2<f32> = reflectionUniforms.uAmplitude;\n let uWavelength: vec2<f32> = reflectionUniforms.uWavelength;\n let uAlpha: vec2<f32> = reflectionUniforms.uAlpha;\n let uTime: f32 = reflectionUniforms.uTime;\n\n let pixelCoord: vec2<f32> = uv * gfu.uInputSize.xy;\n let coord: vec2<f32> = pixelCoord /uDimensions;\n var returnColorOnly: bool = false;\n\n if (coord.y < uBoundary) {\n returnColorOnly = true;\n }\n\n let k: f32 = (coord.y - uBoundary) / (1. - uBoundary + 0.0001);\n let areaY: f32 = uBoundary * uDimensions.y / gfu.uInputSize.y;\n let v: f32 = areaY + areaY - uv.y;\n let y: f32 = select(uv.y, v, uMirror);\n\n let amplitude: f32 = ((uAmplitude.y - uAmplitude.x) * k + uAmplitude.x ) / gfu.uInputSize.x;\n let waveLength: f32 = ((uWavelength.y - uWavelength.x) * k + uWavelength.x) / gfu.uInputSize.y;\n let alpha: f32 = select((uAlpha.y - uAlpha.x) * k + uAlpha.x, 1., returnColorOnly);\n\n var x: f32 = uv.x + cos(v * 6.28 / waveLength - uTime) * amplitude;\n x = clamp(x, gfu.uInputClamp.x, gfu.uInputClamp.z);\n \n return textureSample(uTexture, uSampler, select(vec2<f32>(x, y), uv, returnColorOnly)) * alpha;\n}\n\nfn rand(co: vec2<f32>) -> f32 \n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform float uMirror;\nuniform float uBoundary;\nuniform vec2 uAmplitude;\nuniform vec2 uWavelength;\nuniform vec2 uAlpha;\nuniform float uTime;\nuniform vec2 uDimensions;\n\nuniform vec4 uInputSize;\nuniform vec4 uInputClamp;\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main(void)\n{\n vec2 pixelCoord = vTextureCoord.xy * uInputSize.xy;\n vec2 coord = pixelCoord / uDimensions;\n\n if (coord.y < uBoundary) {\n finalColor = texture(uTexture, vTextureCoord);\n return;\n }\n\n float k = (coord.y - uBoundary) / (1. - uBoundary + 0.0001);\n float areaY = uBoundary * uDimensions.y / uInputSize.y;\n float v = areaY + areaY - vTextureCoord.y;\n float y = uMirror > 0.5 ? v : vTextureCoord.y;\n\n float _amplitude = ((uAmplitude.y - uAmplitude.x) * k + uAmplitude.x ) / uInputSize.x;\n float _waveLength = ((uWavelength.y - uWavelength.x) * k + uWavelength.x) / uInputSize.y;\n float _alpha = (uAlpha.y - uAlpha.x) * k + uAlpha.x;\n\n float x = vTextureCoord.x + cos(v * 6.28 / _waveLength - uTime) * _amplitude;\n x = clamp(x, uInputClamp.x, uInputClamp.z);\n\n vec4 color = texture(uTexture, vec2(x, y));\n\n finalColor = color * _alpha;\n}\n",name:"reflection-filter"}),resources:{reflectionUniforms:{uMirror:{value:t.mirror?1:0,type:"f32"},uBoundary:{value:t.boundary,type:"f32"},uAmplitude:{value:t.amplitude,type:"vec2<f32>"},uWavelength:{value:t.waveLength,type:"vec2<f32>"},uAlpha:{value:t.alpha,type:"vec2<f32>"},uTime:{value:t.time,type:"f32"},uDimensions:{value:new Float32Array(2),type:"vec2<f32>"}}}}),XV(this,"uniforms"),XV(this,"time",0),this.uniforms=this.resources.reflectionUniforms.uniforms,Object.assign(this,t)}},"DEFAULT_OPTIONS",{mirror:!0,boundary:.5,amplitude:[0,20],waveLength:[30,100],alpha:[1,1],time:0});var KV=Object.defineProperty,qV=(e,t,n)=>(((e,t,n)=>{t in e?KV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);qV(class e extends df{get red(){return this.uniforms.uRed}set red(e){Array.isArray(e)&&(e={x:e[0],y:e[1]}),this.uniforms.uRed=e}get redX(){return this.red.x}set redX(e){this.red.x=e}get redY(){return this.red.y}set redY(e){this.red.y=e}get green(){return this.uniforms.uGreen}set green(e){Array.isArray(e)&&(e={x:e[0],y:e[1]}),this.uniforms.uGreen=e}get greenX(){return this.green.x}set greenX(e){this.green.x=e}get greenY(){return this.green.y}set greenY(e){this.green.y=e}get blue(){return this.uniforms.uBlue}set blue(e){Array.isArray(e)&&(e={x:e[0],y:e[1]}),this.uniforms.uBlue=e}get blueX(){return this.blue.x}set blueX(e){this.blue.x=e}get blueY(){return this.blue.y}set blueY(e){this.blue.y=e}constructor(...t){var n;let r=null!=(n=t[0])?n:{};(Array.isArray(r)||"x"in r&&"y"in r)&&($e("6.0.0","RGBSplitFilter constructor params are now options object. See params: { red, green, blue }"),r={red:r},void 0!==t[1]&&(r.green=t[1]),void 0!==t[2]&&(r.blue=t[2])),r=q(q({},e.DEFAULT_OPTIONS),r),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct RgbSplitUniforms {\n uRed: vec2<f32>,\n uGreen: vec2<f32>,\n uBlue: vec3<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> rgbSplitUniforms : RgbSplitUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let r = textureSample(uTexture, uSampler, uv + vec2<f32>(rgbSplitUniforms.uRed.x / gfu.uInputSize.x, rgbSplitUniforms.uRed.y / gfu.uInputSize.y)).r;\n let g = textureSample(uTexture, uSampler, uv + vec2<f32>(rgbSplitUniforms.uGreen.x / gfu.uInputSize.x, rgbSplitUniforms.uGreen.y / gfu.uInputSize.y)).g;\n let b = textureSample(uTexture, uSampler, uv + vec2<f32>(rgbSplitUniforms.uBlue.x / gfu.uInputSize.x, rgbSplitUniforms.uBlue.y / gfu.uInputSize.y)).b;\n let a = textureSample(uTexture, uSampler, uv).a;\n return vec4<f32>(r, g, b, a);\n}\n",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec4 uInputSize;\nuniform vec2 uRed;\nuniform vec2 uGreen;\nuniform vec2 uBlue;\n\nvoid main(void)\n{\n float r = texture(uTexture, vTextureCoord + uRed/uInputSize.xy).r;\n float g = texture(uTexture, vTextureCoord + uGreen/uInputSize.xy).g;\n float b = texture(uTexture, vTextureCoord + uBlue/uInputSize.xy).b;\n float a = texture(uTexture, vTextureCoord).a;\n finalColor = vec4(r, g, b, a);\n}\n",name:"rgb-split-filter"}),resources:{rgbSplitUniforms:{uRed:{value:r.red,type:"vec2<f32>"},uGreen:{value:r.green,type:"vec2<f32>"},uBlue:{value:r.blue,type:"vec2<f32>"}}}}),qV(this,"uniforms"),this.uniforms=this.resources.rgbSplitUniforms.uniforms,Object.assign(this,r)}},"DEFAULT_OPTIONS",{red:{x:-10,y:0},green:{x:0,y:10},blue:{x:0,y:0}});var QV=Object.defineProperty,YV=(e,t,n)=>(((e,t,n)=>{t in e?QV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);YV(class e extends df{apply(e,t,n,r){this.uniforms.uTime=this.time,e.applyFilter(this,t,n,r)}get center(){return this.uniforms.uCenter}set center(e){Array.isArray(e)&&(e={x:e[0],y:e[1]}),this.uniforms.uCenter=e}get centerX(){return this.uniforms.uCenter.x}set centerX(e){this.uniforms.uCenter.x=e}get centerY(){return this.uniforms.uCenter.y}set centerY(e){this.uniforms.uCenter.y=e}get speed(){return this.uniforms.uSpeed}set speed(e){this.uniforms.uSpeed=e}get amplitude(){return this.uniforms.uWave[0]}set amplitude(e){this.uniforms.uWave[0]=e}get wavelength(){return this.uniforms.uWave[1]}set wavelength(e){this.uniforms.uWave[1]=e}get brightness(){return this.uniforms.uWave[2]}set brightness(e){this.uniforms.uWave[2]=e}get radius(){return this.uniforms.uWave[3]}set radius(e){this.uniforms.uWave[3]=e}constructor(...t){var n;let r=null!=(n=t[0])?n:{};(Array.isArray(r)||"x"in r&&"y"in r)&&($e("6.0.0","ShockwaveFilter constructor params are now options object. See params: { center, speed, amplitude, wavelength, brightness, radius, time }"),r=q({center:r},t[1]),void 0!==t[2]&&(r.time=t[2])),r=q(q({},e.DEFAULT_OPTIONS),r),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"\nstruct ShockWaveUniforms {\n uTime: f32,\n uOffset: vec2<f32>,\n uSpeed: f32,\n uWave: vec4<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> shockwaveUniforms : ShockWaveUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n\n let uTime = shockwaveUniforms.uTime;\n let uOffset = shockwaveUniforms.uOffset;\n let uSpeed = shockwaveUniforms.uSpeed;\n let uAmplitude = shockwaveUniforms.uWave[0];\n let uWavelength = shockwaveUniforms.uWave[1];\n let uBrightness = shockwaveUniforms.uWave[2];\n let uRadius = shockwaveUniforms.uWave[3];\n let halfWavelength: f32 = uWavelength * 0.5 / gfu.uInputSize.x;\n let maxRadius: f32 = uRadius / gfu.uInputSize.x;\n let currentRadius: f32 = uTime * uSpeed / gfu.uInputSize.x;\n var fade: f32 = 1.0;\n var returnColorOnly: bool = false;\n \n if (maxRadius > 0.0) {\n if (currentRadius > maxRadius) {\n returnColorOnly = true;\n }\n fade = 1.0 - pow(currentRadius / maxRadius, 2.0);\n }\n var dir: vec2<f32> = vec2<f32>(uv - uOffset / gfu.uInputSize.xy);\n dir.y *= gfu.uInputSize.y / gfu.uInputSize.x;\n\n let dist:f32 = length(dir);\n\n if (dist <= 0.0 || dist < currentRadius - halfWavelength || dist > currentRadius + halfWavelength) {\n returnColorOnly = true;\n }\n\n let diffUV: vec2<f32> = normalize(dir);\n let diff: f32 = (dist - currentRadius) / halfWavelength;\n let p: f32 = 1.0 - pow(abs(diff), 2.0);\n let powDiff: f32 = 1.25 * sin(diff * PI) * p * ( uAmplitude * fade );\n let offset: vec2<f32> = diffUV * powDiff / gfu.uInputSize.xy;\n // Do clamp :\n let coord: vec2<f32> = uv + offset;\n let clampedCoord: vec2<f32> = clamp(coord, gfu.uInputClamp.xy, gfu.uInputClamp.zw);\n\n var clampedColor: vec4<f32> = textureSample(uTexture, uSampler, clampedCoord);\n \n if (boolVec2(coord, clampedCoord)) \n {\n clampedColor *= max(0.0, 1.0 - length(coord - clampedCoord));\n }\n // No clamp :\n var finalColor = clampedColor;\n\n return select(finalColor, textureSample(uTexture, uSampler, uv), returnColorOnly);\n}\n\nfn boolVec2(x: vec2<f32>, y: vec2<f32>) -> bool\n{\n if (x.x == y.x && x.y == y.y)\n {\n return true;\n }\n \n return false;\n}\n\nconst PI: f32 = 3.14159265358979323846264;\n",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"\nprecision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec2 uCenter;\nuniform float uTime;\nuniform float uSpeed;\nuniform vec4 uWave;\n\nuniform vec4 uInputSize;\nuniform vec4 uInputClamp;\n\nconst float PI = 3.14159;\n\nvoid main()\n{\n float uAmplitude = uWave[0];\n float uWavelength = uWave[1];\n float uBrightness = uWave[2];\n float uRadius = uWave[3];\n\n float halfWavelength = uWavelength * 0.5 / uInputSize.x;\n float maxRadius = uRadius / uInputSize.x;\n float currentRadius = uTime * uSpeed / uInputSize.x;\n\n float fade = 1.0;\n\n if (maxRadius > 0.0) {\n if (currentRadius > maxRadius) {\n finalColor = texture(uTexture, vTextureCoord);\n return;\n }\n fade = 1.0 - pow(currentRadius / maxRadius, 2.0);\n }\n\n vec2 dir = vec2(vTextureCoord - uCenter / uInputSize.xy);\n dir.y *= uInputSize.y / uInputSize.x;\n float dist = length(dir);\n\n if (dist <= 0.0 || dist < currentRadius - halfWavelength || dist > currentRadius + halfWavelength) {\n finalColor = texture(uTexture, vTextureCoord);\n return;\n }\n\n vec2 diffUV = normalize(dir);\n\n float diff = (dist - currentRadius) / halfWavelength;\n\n float p = 1.0 - pow(abs(diff), 2.0);\n\n // float powDiff = diff * pow(p, 2.0) * ( amplitude * fade );\n float powDiff = 1.25 * sin(diff * PI) * p * ( uAmplitude * fade );\n\n vec2 offset = diffUV * powDiff / uInputSize.xy;\n\n // Do clamp :\n vec2 coord = vTextureCoord + offset;\n vec2 clampedCoord = clamp(coord, uInputClamp.xy, uInputClamp.zw);\n vec4 color = texture(uTexture, clampedCoord);\n if (coord != clampedCoord) {\n color *= max(0.0, 1.0 - length(coord - clampedCoord));\n }\n\n // No clamp :\n // finalColor = texture(uTexture, vTextureCoord + offset);\n\n color.rgb *= 1.0 + (uBrightness - 1.0) * p * fade;\n\n finalColor = color;\n}\n",name:"shockwave-filter"}),resources:{shockwaveUniforms:{uTime:{value:r.time,type:"f32"},uCenter:{value:r.center,type:"vec2<f32>"},uSpeed:{value:r.speed,type:"f32"},uWave:{value:new Float32Array(4),type:"vec4<f32>"}}}}),YV(this,"uniforms"),YV(this,"time"),this.time=0,this.uniforms=this.resources.shockwaveUniforms.uniforms,Object.assign(this,r)}},"DEFAULT_OPTIONS",{center:{x:0,y:0},speed:500,amplitude:30,wavelength:160,brightness:1,radius:-1});var ZV=Object.defineProperty,$V=(e,t,n)=>(((e,t,n)=>{t in e?ZV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);$V(class e extends df{apply(e,t,n,r){this.uniforms.uDimensions[0]=t.frame.width,this.uniforms.uDimensions[1]=t.frame.height,e.applyFilter(this,t,n,r)}get lightMap(){return this._lightMap}set lightMap(e){this._lightMap=e,this.resources.uMapTexture=e.source,this.resources.uMapSampler=e.source.style}get color(){return this._color.value}set color(e){this._color.setValue(e);const[t,n,r]=this._color.toArray();this.uniforms.uColor[0]=t,this.uniforms.uColor[1]=n,this.uniforms.uColor[2]=r}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}constructor(...t){var n,r;let i=null!=(n=t[0])?n:{};if(i instanceof ii&&($e("6.0.0","SimpleLightmapFilter constructor params are now options object. See params: { lightMap, color, alpha }"),i={lightMap:i},void 0!==t[1]&&(i.color=t[1]),void 0!==t[2]&&(i.alpha=t[2])),i=q(q({},e.DEFAULT_OPTIONS),i),!i.lightMap)throw Error("No light map texture source was provided to SimpleLightmapFilter");super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct SimpleLightmapUniforms {\n uColor: vec3<f32>,\n uAlpha: f32,\n uDimensions: vec2<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> simpleLightmapUniforms : SimpleLightmapUniforms;\n@group(1) @binding(1) var uMapTexture: texture_2d<f32>;\n@group(1) @binding(2) var uMapSampler: sampler;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>,\n) -> @location(0) vec4<f32> {\n let uColor = simpleLightmapUniforms.uColor;\n let uAlpha = simpleLightmapUniforms.uAlpha;\n let uDimensions = simpleLightmapUniforms.uDimensions;\n\n let diffuseColor: vec4<f32> = textureSample(uTexture, uSampler, uv);\n let lightCoord: vec2<f32> = (uv * gfu.uInputSize.xy) / simpleLightmapUniforms.uDimensions;\n let light: vec4<f32> = textureSample(uMapTexture, uMapSampler, lightCoord);\n let ambient: vec3<f32> = uColor * uAlpha;\n let intensity: vec3<f32> = ambient + light.rgb;\n let finalColor: vec3<f32> = diffuseColor.rgb * intensity;\n return vec4<f32>(finalColor, diffuseColor.a);\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform sampler2D uMapTexture;\nuniform vec3 uColor;\nuniform float uAlpha;\nuniform vec2 uDimensions;\n\nuniform vec4 uInputSize;\n\nvoid main() {\n vec4 diffuseColor = texture(uTexture, vTextureCoord);\n vec2 lightCoord = (vTextureCoord * uInputSize.xy) / uDimensions;\n vec4 light = texture(uMapTexture, lightCoord);\n vec3 ambient = uColor.rgb * uAlpha;\n vec3 intensity = ambient + light.rgb;\n vec3 color = diffuseColor.rgb * intensity;\n finalColor = vec4(color, diffuseColor.a);\n}\n",name:"simple-lightmap-filter"}),resources:{simpleLightmapUniforms:{uColor:{value:new Float32Array(3),type:"vec3<f32>"},uAlpha:{value:i.alpha,type:"f32"},uDimensions:{value:new Float32Array(2),type:"vec2<f32>"}},uMapTexture:i.lightMap.source,uMapSampler:i.lightMap.source.style}}),$V(this,"uniforms"),$V(this,"_color"),$V(this,"_lightMap"),this.uniforms=this.resources.simpleLightmapUniforms.uniforms,this._color=new ke,this.color=null!=(r=i.color)?r:0,Object.assign(this,i)}},"DEFAULT_OPTIONS",{lightMap:ii.WHITE,color:0,alpha:1});var JV=Object.defineProperty,eX=(e,t,n)=>(((e,t,n)=>{t in e?JV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);eX(class e extends df{updateDimensions(e){const{uDimensions:t}=this.uniforms;t[0]=e.frame.width,t[1]=e.frame.height}updateDelta(){if(this.uniforms.uDelta[0]=0,this.uniforms.uDelta[1]=0,void 0===this._tiltAxis)return;const e=this.uniforms.uEnd,t=this.uniforms.uStart,n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r),o="vertical"===this._tiltAxis;this.uniforms.uDelta[0]=o?-r/i:n/i,this.uniforms.uDelta[1]=o?n/i:r/i}constructor(t){const{width:n,height:r}=hh.defaultOptions;t=q(Q(q({},e.DEFAULT_OPTIONS),{start:{x:0,y:r/2},end:{x:n,y:r/2}}),t),super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct TiltShiftUniforms {\n uBlur: vec2<f32>,\n uStart: vec2<f32>,\n uEnd: vec2<f32>,\n uDelta: vec2<f32>,\n uDimensions: vec2<f32>,\n};\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> tiltShiftUniforms : TiltShiftUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let uBlur = tiltShiftUniforms.uBlur[0];\n let uBlurGradient = tiltShiftUniforms.uBlur[1];\n let uStart = tiltShiftUniforms.uStart;\n let uEnd = tiltShiftUniforms.uEnd;\n let uDelta = tiltShiftUniforms.uDelta;\n let uDimensions = tiltShiftUniforms.uDimensions;\n\n var color: vec4<f32> = vec4<f32>(0.0);\n var total: f32 = 0.0;\n\n let offset: f32 = random(position, vec3<f32>(12.9898, 78.233, 151.7182), 0.0);\n let normal: vec2<f32> = normalize(vec2<f32>(uStart.y - uEnd.y, uEnd.x - uStart.x));\n let radius: f32 = smoothstep(0.0, 1.0, abs(dot(uv * uDimensions - uStart, normal)) / uBlurGradient) * uBlur;\n\n for (var t: f32 = -30.0; t <= 30.0; t += 1.0)\n {\n var percent: f32 = (t + offset - 0.5) / 30.0;\n var weight: f32 = 1.0 - abs(percent);\n var sample: vec4<f32> = textureSample(uTexture, uSampler, uv + uDelta / uDimensions * percent * radius);\n sample = vec4<f32>(sample.xyz * sample.a, sample.a); // multiply sample.rgb with sample.a\n color += sample * weight;\n total += weight;\n }\n\n color /= total;\n color = vec4<f32>(color.xyz / (color.a + 0.00001), color.a); // divide color.rgb by color.a + 0.00001\n\n return color;\n}\n\n\nfn random(position: vec4<f32>, scale: vec3<f32>, seed: f32) -> f32\n{\n return fract(sin(dot(position.xyz + seed, scale)) * 43758.5453 + seed);\n}",entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"in vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec2 uBlur;\nuniform vec2 uStart;\nuniform vec2 uEnd;\nuniform vec2 uDelta;\nuniform vec2 uDimensions;\n\nfloat random(vec3 scale, float seed)\n{\n return fract(sin(dot(gl_FragCoord.xyz + seed, scale)) * 43758.5453 + seed);\n}\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n float total = 0.0;\n\n float blur = uBlur[0];\n float gradientBlur = uBlur[1];\n\n float offset = random(vec3(12.9898, 78.233, 151.7182), 0.0);\n vec2 normal = normalize(vec2(uStart.y - uEnd.y, uEnd.x - uStart.x));\n float radius = smoothstep(0.0, 1.0, abs(dot(vTextureCoord * uDimensions - uStart, normal)) / gradientBlur) * blur;\n\n for (float t = -30.0; t <= 30.0; t++)\n {\n float percent = (t + offset - 0.5) / 30.0;\n float weight = 1.0 - abs(percent);\n vec4 sample = texture(uTexture, vTextureCoord + uDelta / uDimensions * percent * radius);\n sample.rgb *= sample.a;\n color += sample * weight;\n total += weight;\n }\n\n color /= total;\n color.rgb /= color.a + 0.00001;\n\n finalColor = color;\n}\n",name:"tilt-shift-axis-filter"}),resources:{tiltShiftUniforms:{uBlur:{value:new Float32Array([t.blur,t.gradientBlur]),type:"vec2<f32>"},uStart:{value:t.start,type:"vec2<f32>"},uEnd:{value:t.end,type:"vec2<f32>"},uDelta:{value:new Float32Array([0,0]),type:"vec2<f32>"},uDimensions:{value:new Float32Array([n,r]),type:"vec2<f32>"}}}}),eX(this,"uniforms"),eX(this,"_tiltAxis"),this.uniforms=this.resources.tiltShiftUniforms.uniforms,this._tiltAxis=t.axis}},"DEFAULT_OPTIONS",{blur:100,gradientBlur:600});var tX=Object.defineProperty,nX=(e,t,n)=>(((e,t,n)=>{t in e?tX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);nX(class e extends df{get radius(){return this.uniforms.uTwist[0]}set radius(e){this.uniforms.uTwist[0]=e}get angle(){return this.uniforms.uTwist[1]}set angle(e){this.uniforms.uTwist[1]=e}get offset(){return this.uniforms.uOffset}set offset(e){this.uniforms.uOffset=e}get offsetX(){return this.offset.x}set offsetX(e){this.offset.x=e}get offsetY(){return this.offset.y}set offsetY(e){this.offset.y=e}constructor(t){var n,r;t=q(q({},e.DEFAULT_OPTIONS),t);const i=Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct TwistUniforms {\n uTwist:vec2<f32>,\n uOffset:vec2<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> twistUniforms : TwistUniforms;\n\n@fragment\nfn mainFragment(\n @location(0) uv: vec2<f32>,\n @builtin(position) position: vec4<f32>\n) -> @location(0) vec4<f32> {\n return textureSample(uTexture, uSampler, unmapCoord(twist(mapCoord(uv))));\n}\n\nfn mapCoord(coord: vec2<f32> ) -> vec2<f32>\n{\n var mappedCoord: vec2<f32> = coord;\n mappedCoord *= gfu.uInputSize.xy;\n mappedCoord += gfu.uOutputFrame.xy;\n return mappedCoord;\n}\n\nfn unmapCoord(coord: vec2<f32> ) -> vec2<f32>\n{\n var mappedCoord: vec2<f32> = coord;\n mappedCoord -= gfu.uOutputFrame.xy;\n mappedCoord /= gfu.uInputSize.xy;\n return mappedCoord;\n}\n\nfn twist(coord: vec2<f32>) -> vec2<f32>\n{\n var twistedCoord: vec2<f32> = coord;\n let uRadius = twistUniforms.uTwist[0];\n let uAngle = twistUniforms.uTwist[1];\n let uOffset = twistUniforms.uOffset;\n\n twistedCoord -= uOffset;\n \n let dist = length(twistedCoord);\n\n if (dist < uRadius)\n {\n let ratioDist: f32 = (uRadius - dist) / uRadius;\n let angleMod: f32 = ratioDist * ratioDist * uAngle;\n let s: f32 = sin(angleMod);\n let c: f32 = cos(angleMod);\n twistedCoord = vec2<f32>(twistedCoord.x * c - twistedCoord.y * s, twistedCoord.x * s + twistedCoord.y * c);\n }\n\n twistedCoord += uOffset;\n return twistedCoord;\n}\n",entryPoint:"mainFragment"}}),o=Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform vec2 uTwist;\nuniform vec2 uOffset;\nuniform vec4 uInputSize;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= uInputSize.xy;\n coord += uInputSize.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= uInputSize.zw;\n coord /= uInputSize.xy;\n\n return coord;\n}\n\nvec2 twist(vec2 coord)\n{\n coord -= uOffset;\n\n float dist = length(coord);\n float uRadius = uTwist[0];\n float uAngle = uTwist[1];\n\n if (dist < uRadius)\n {\n float ratioDist = (uRadius - dist) / uRadius;\n float angleMod = ratioDist * ratioDist * uAngle;\n float s = sin(angleMod);\n float c = cos(angleMod);\n coord = vec2(coord.x * c - coord.y * s, coord.x * s + coord.y * c);\n }\n\n coord += uOffset;\n\n return coord;\n}\n\nvoid main(void)\n{\n vec2 coord = mapCoord(vTextureCoord);\n coord = twist(coord);\n coord = unmapCoord(coord);\n finalColor = texture(uTexture, coord);\n}\n",name:"twist-filter"});super(q({gpuProgram:i,glProgram:o,resources:{twistUniforms:{uTwist:{value:[null!=(n=t.radius)?n:0,null!=(r=t.angle)?r:0],type:"vec2<f32>"},uOffset:{value:t.offset,type:"vec2<f32>"}}}},t)),nX(this,"uniforms"),this.uniforms=this.resources.twistUniforms.uniforms}},"DEFAULT_OPTIONS",{padding:20,radius:200,angle:4,offset:{x:0,y:0}});var rX=Object.defineProperty,iX=(e,t,n)=>(((e,t,n)=>{t in e?rX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);iX(class e extends df{get strength(){return this.uniforms.uStrength}set strength(e){this.uniforms.uStrength=e}get center(){return this.uniforms.uCenter}set center(e){Array.isArray(e)&&(e={x:e[0],y:e[1]}),this.uniforms.uCenter=e}get centerX(){return this.uniforms.uCenter.x}set centerX(e){this.uniforms.uCenter.x=e}get centerY(){return this.uniforms.uCenter.y}set centerY(e){this.uniforms.uCenter.y=e}get innerRadius(){return this.uniforms.uRadii[0]}set innerRadius(e){this.uniforms.uRadii[0]=e}get radius(){return this.uniforms.uRadii[1]}set radius(e){this.uniforms.uRadii[1]=e<0||e===1/0?-1:e}constructor(t){var n;const r=null!=(n=(t=q(q({},e.DEFAULT_OPTIONS),t)).maxKernelSize)?n:32;super({gpuProgram:Mu.from({vertex:{source:OW,entryPoint:"mainVertex"},fragment:{source:"struct ZoomBlurUniforms {\n uStrength:f32,\n uCenter:vec2<f32>,\n uRadii:vec2<f32>,\n};\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\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n\n@group(0) @binding(1) var uTexture: texture_2d<f32>; \n@group(0) @binding(2) var uSampler: sampler;\n@group(1) @binding(0) var<uniform> zoomBlurUniforms : ZoomBlurUniforms;\n\n@fragment\nfn mainFragment(\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>\n) -> @location(0) vec4<f32> {\n let uStrength = zoomBlurUniforms.uStrength;\n let uCenter = zoomBlurUniforms.uCenter;\n let uRadii = zoomBlurUniforms.uRadii;\n\n let minGradient: f32 = uRadii[0] * 0.3;\n let innerRadius: f32 = (uRadii[0] + minGradient * 0.5) / gfu.uInputSize.x;\n\n let gradient: f32 = uRadii[1] * 0.3;\n let radius: f32 = (uRadii[1] - gradient * 0.5) / gfu.uInputSize.x;\n\n let MAX_KERNEL_SIZE: f32 = ${MAX_KERNEL_SIZE};\n\n var countLimit: f32 = MAX_KERNEL_SIZE;\n\n var dir: vec2<f32> = vec2<f32>(uCenter / gfu.uInputSize.xy - uv);\n let dist: f32 = length(vec2<f32>(dir.x, dir.y * gfu.uInputSize.y / gfu.uInputSize.x));\n\n var strength: f32 = uStrength;\n\n var delta: f32 = 0.0;\n var gap: f32;\n\n if (dist < innerRadius) {\n delta = innerRadius - dist;\n gap = minGradient;\n } else if (radius >= 0.0 && dist > radius) { // radius < 0 means it's infinity\n delta = dist - radius;\n gap = gradient;\n }\n\n var returnColorOnly: bool = false;\n\n if (delta > 0.0) {\n let normalCount: f32 = gap / gfu.uInputSize.x;\n delta = (normalCount - delta) / normalCount;\n countLimit *= delta;\n strength *= delta;\n \n if (countLimit < 1.0)\n {\n returnColorOnly = true;;\n }\n }\n\n // randomize the lookup values to hide the fixed number of samples\n let offset: f32 = rand(uv, 0.0);\n\n var total: f32 = 0.0;\n var color: vec4<f32> = vec4<f32>(0.);\n\n dir *= strength;\n\n for (var t = 0.0; t < MAX_KERNEL_SIZE; t += 1.0) {\n let percent: f32 = (t + offset) / MAX_KERNEL_SIZE;\n let weight: f32 = 4.0 * (percent - percent * percent);\n let p: vec2<f32> = uv + dir * percent;\n let sample: vec4<f32> = textureSample(uTexture, uSampler, p);\n \n if (t < countLimit)\n {\n color += sample * weight;\n total += weight;\n }\n }\n\n color /= total;\n\n return select(color, textureSample(uTexture, uSampler, uv), returnColorOnly);\n}\n\nfn modulo(x: f32, y: f32) -> f32\n{\n return x - y * floor(x/y);\n}\n\n// author: http://byteblacksmith.com/improvements-to-the-canonical-one-liner-glsl-rand-for-opengl-es-2-0/\nfn rand(co: vec2<f32>, seed: f32) -> f32\n{\n let a: f32 = 12.9898;\n let b: f32 = 78.233;\n let c: f32 = 43758.5453;\n let dt: f32 = dot(co + seed, vec2<f32>(a, b));\n let sn: f32 = modulo(dt, 3.14159);\n return fract(sin(sn) * c + seed);\n}".replace("${MAX_KERNEL_SIZE}",r.toFixed(1)),entryPoint:"mainFragment"}}),glProgram:Su.from({vertex:IW,fragment:"precision highp float;\nin vec2 vTextureCoord;\nout vec4 finalColor;\n\nuniform sampler2D uTexture;\nuniform float uStrength;\nuniform vec2 uCenter;\nuniform vec2 uRadii;\n\nuniform vec4 uInputSize;\n\nconst float MAX_KERNEL_SIZE = ${MAX_KERNEL_SIZE};\n\n// author: http://byteblacksmith.com/improvements-to-the-canonical-one-liner-glsl-rand-for-opengl-es-2-0/\nhighp float rand(vec2 co, float seed) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot(co + seed, vec2(a, b)), sn = mod(dt, 3.14159);\n return fract(sin(sn) * c + seed);\n}\n\nvoid main() {\n float minGradient = uRadii[0] * 0.3;\n float innerRadius = (uRadii[0] + minGradient * 0.5) / uInputSize.x;\n\n float gradient = uRadii[1] * 0.3;\n float radius = (uRadii[1] - gradient * 0.5) / uInputSize.x;\n\n float countLimit = MAX_KERNEL_SIZE;\n\n vec2 dir = vec2(uCenter.xy / uInputSize.xy - vTextureCoord);\n float dist = length(vec2(dir.x, dir.y * uInputSize.y / uInputSize.x));\n\n float strength = uStrength;\n\n float delta = 0.0;\n float gap;\n if (dist < innerRadius) {\n delta = innerRadius - dist;\n gap = minGradient;\n } else if (radius >= 0.0 && dist > radius) { // radius < 0 means it's infinity\n delta = dist - radius;\n gap = gradient;\n }\n\n if (delta > 0.0) {\n float normalCount = gap / uInputSize.x;\n delta = (normalCount - delta) / normalCount;\n countLimit *= delta;\n strength *= delta;\n if (countLimit < 1.0)\n {\n gl_FragColor = texture(uTexture, vTextureCoord);\n return;\n }\n }\n\n // randomize the lookup values to hide the fixed number of samples\n float offset = rand(vTextureCoord, 0.0);\n\n float total = 0.0;\n vec4 color = vec4(0.0);\n\n dir *= strength;\n\n for (float t = 0.0; t < MAX_KERNEL_SIZE; t++) {\n float percent = (t + offset) / MAX_KERNEL_SIZE;\n float weight = 4.0 * (percent - percent * percent);\n vec2 p = vTextureCoord + dir * percent;\n vec4 sample = texture(uTexture, p);\n\n // switch to pre-multiplied alpha to correctly blur transparent images\n // sample.rgb *= sample.a;\n\n color += sample * weight;\n total += weight;\n\n if (t > countLimit){\n break;\n }\n }\n\n color /= total;\n // switch back from pre-multiplied alpha\n // color.rgb /= color.a + 0.00001;\n\n gl_FragColor = color;\n}\n".replace("${MAX_KERNEL_SIZE}",r.toFixed(1)),name:"zoom-blur-filter"}),resources:{zoomBlurUniforms:{uStrength:{value:t.strength,type:"f32"},uCenter:{value:t.center,type:"vec2<f32>"},uRadii:{value:new Float32Array(2),type:"vec2<f32>"}}}}),iX(this,"uniforms"),this.uniforms=this.resources.zoomBlurUniforms.uniforms,Object.assign(this,t)}},"DEFAULT_OPTIONS",{strength:.1,center:{x:0,y:0},innerRadius:0,radius:-1,maxKernelSize:32});var oX={};J(oX,{create:()=>vX,createStore:()=>lX,default:()=>yX,useStore:()=>AX});var aX={},sX=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{"production"!==(aX.env?aX.env.MODE:void 0)&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,i,o);return o},lX=e=>e?sX(e):sX,uX=ee(re(),1),cX=ee(sv(),1),dX={},{useDebugValue:fX}=uX.default,{useSyncExternalStoreWithSelector:pX}=cX.default,hX=!1,mX=e=>e;function AX(e,t=mX,n){"production"!==(dX.env?dX.env.MODE:void 0)&&n&&!hX&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),hX=!0);const r=pX(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return fX(r),r}var gX=e=>{"production"!==(dX.env?dX.env.MODE:void 0)&&"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?lX(e):e,n=(e,n)=>AX(t,e,n);return Object.assign(n,t),n},vX=e=>e?gX(e):gX,yX=e=>("production"!==(dX.env?dX.env.MODE:void 0)&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),vX(e));function bX(e){return e.subType?`${e.type} / ${e.subType||""}`:e.type}function xX(e){var t,n,r,i,o,a;let s;return"Planning"===e.type&&(s=null==(t=null==e?void 0:e.param)?void 0:t.userPrompt),"Insight"===e.type&&(s=(null==(n=null==e?void 0:e.param)?void 0:n.prompt)||(null==(r=null==e?void 0:e.param)?void 0:r.dataDemand)||(null==(i=null==e?void 0:e.param)?void 0:i.assertion)),"Action"===e.type&&(s=(null==(o=null==e?void 0:e.param)?void 0:o.value)||(null==(a=null==e?void 0:e.param)?void 0:a.scrollType)),void 0===s?"":"string"==typeof s?s:JSON.stringify(s,void 0,2)}ee(xe());var SX="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABrCAYAAAD3jpUKAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAWqADAAQAAAABAAAAawAAAADVPRqBAAAcvElEQVR4Ae1dB5hVRZauF7qbKFnBQFKZGVEHFUWRoCwK6ChBQAyMY3bkc8cZ0zoMa5oR+QZwMKDruoo6O8YRVsWACBhQECMogoAMOTXRzi/t/9fr/1p9ea/f6wC0wvm+6lN1qupU1X/PO7duVd3bxhygvYJAIItW0pVJZFH3QJFyBFKBmEqWLWAHwE+DlAuqG3eLp5OzTDpg08ldvftVPFzJaF2A3Xi6Ki64Ku/K0tXbL+QCRJyDVtzPBQjlLoCKi7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dbhrLP1YcFjQ0NxjMFWMFxdWA6jq0iI+QEPzKNlhZ1qUi1oyUYaw0k7pzKdYw+lX+DJcsSljPqVnODkp9MEcylc42qRQzVnlwkQx6wqbKEwLzw81XwrsPo+IeHmDKtY38CId0t9iNFpBixsoUgMCehqVj30R+sLgaEMDz9VM4UO92rgwJFicI14fMxADT7Wa6slLeyqbL/VPplHs5+P+zaPMnQ85+kCIeX2qiLk4U2LFiBwP+yhJ/ytVmuoSd1xTn0ZswAsTXkMQX5fgxVwVyYZpa/Zv3mNvBslUdFAJIhaRF9NqVzZhmAKD8l3h/HtgSp/fq99tQQw24UU7q4hp7caLdsKzR8lY+E2C68Mp7Ao7d0MoBk1sKyHOcggB7QPNBAH8nFyVzXSzD0eHduI96+r4z91tZgZnLpSLlJC0iz/OrcZQjqt+OzuFiEOR0mAf8g6KACs60YAsRx0ITRsou3EodwNC4gVkST9RcfU/eoDPFJkSEewP3TwDix9ySeWf2+sHHJbHgh+tjuUQzm/WJVvluJu+lnDOZQa20Q27jIoDKlmHwIcyCW5znYijgKu9kaCYnQaP8PXDsGSgwW0URQM7nWUc8bgegQ1002/Gep1QR7NfxnnbkRzA0eIs7QbkZUfbDBQUq532I5yb+H8lGaZooTb2GAAAAAElFTkSuQmCC",wX=1200,EX=(e,t,n)=>{const r=t/n;let i;i=e.width/e.height>=r?e.width:e.height/n*t;const o=i>400?.1:i>50?.2:.3,a=Math.min(t,i+t*o*2),s=a*(n/t);let l=Math.min(e.left-t*o,t-a);l=Math.max(l,0);let u=Math.min(e.top-n*o,n-s);return u=Math.max(u,0),{left:Math.round(l),top:Math.round(u),width:Math.round(a)}},CX=(e,t)=>{const n=Math.min(e.left,t.left);return{left:n,top:Math.min(e.top,t.top),width:Math.max(e.left+e.width,t.left+t.width)-n}},TX=e=>{let t=0,n=0;if(e.executions.forEach((e=>{e.tasks.forEach((e=>{var r,i,o,a,s,l,u,c,d,f,p,h;const m=e;(null==(a=null==(o=null==(i=null==(r=m.log)?void 0:r.dump)?void 0:i.context)?void 0:o.size)?void 0:a.width)&&(t=null==(c=null==(u=null==(l=null==(s=m.log)?void 0:s.dump)?void 0:l.context)?void 0:u.size)?void 0:c.width,n=null==(h=null==(p=null==(f=null==(d=m.log)?void 0:d.dump)?void 0:f.context)?void 0:p.size)?void 0:h.height)}))})),!t||!n)return null;const r=[];return e.executions.forEach((e=>{const i=PX(e,t,n);i&&r.push(...i)})),{scripts:r,width:t,height:n}},PX=(e,t,n)=>{if(!e)return null;if(0===t||0===n)return null;const r=EX({left:0,top:0,width:t,height:n},t,n),i=(e,t,n)=>({type:"pointer",img:e,duration:0,title:t,subTitle:n});if(1===e.tasks.length&&"Query"===e.tasks[0].subType)return console.log("query task",e.tasks[0]),[];const o=[];let a,s=r,l=!1;const u=e.tasks.length;let c="",d=!1;return e.tasks.forEach(((e,f)=>{var p,h,m,A,g,v,y,b,x,S,_,w,E;if(!d)if("Planning"===e.type){const t=e;t.recorder&&t.recorder.length>0&&(o.push({type:"img",img:null==(h=null==(p=t.recorder)?void 0:p[0])?void 0:h.screenshot,camera:r,duration:wX,title:bX(e),subTitle:xX(e)}),c=xX(e))}else if("Insight"===e.type){const i=e,u=null==(m=i.output)?void 0:m.element,c=bX(e),d=xX(e);if((null==u?void 0:u.rect)&&(a=Q(q({},EX(u.rect,t,n)),{pointer:{left:u.center[0],top:u.center[1]}})),null==(A=i.log)?void 0:A.dump){const e=i.log.dump;if(!(null==(g=null==e?void 0:e.context)?void 0:g.screenshotBase64))throw new Error("insight dump is required");const t=e.context.content.length;e.context.screenshotBase64WithElementMarker&&o.push({type:"img",img:e.context.screenshotBase64,duration:300,title:c,subTitle:d}),o.push({type:"insight",img:e.context.screenshotBase64WithElementMarker||e.context.screenshotBase64,insightDump:e,camera:s!==r&&a?CX(s,a):void 0,duration:t>20?800:400,insightCameraDuration:800,title:c,subTitle:d}),o.push({type:"sleep",duration:300,title:c,subTitle:d}),l=!0}}else if("Action"===e.type){const t=bX(e),n=xX(e);o.push(i(SX,t,n)),s=null!=a?a:r,o.push({type:"img",img:null==(y=null==(v=e.recorder)?void 0:v[0])?void 0:y.screenshot,duration:1e3,camera:a,title:t,subTitle:n}),l&&(o.push({type:"clear-insight",duration:200,title:t,subTitle:n}),l=!1);const c=f<u-1?wX:0;if((null==(x=null==(b=e.recorder)?void 0:b[1])?void 0:x.screenshot)?(o.push({type:"spinning-pointer",duration:wX,title:t,subTitle:n}),o.push(i(SX,t,n)),o.push({type:"img",img:null==(_=null==(S=e.recorder)?void 0:S[1])?void 0:_.screenshot,duration:c,title:t,subTitle:n})):o.push({type:"sleep",duration:c,title:t,subTitle:n}),"finished"!==e.status){d=!0;const t=bX(e),n=e.error||"unknown error",i=n.indexOf("NOT_IMPLEMENTED_AS_DESIGNED")>0?"Further actions cannot be performed in the current environment":n;return void o.push({type:"img",img:null==(E=null==(w=e.recorder)?void 0:w[0])?void 0:E.screenshot,camera:r,duration:wX,title:t,subTitle:i})}}})),d||o.push({title:"Done",subTitle:c,type:"img",duration:wX,camera:r}),o},{create:kX}=oX,RX=kX((e=>({markerVisible:!0,elementsVisible:!0,setMarkerVisible:t=>{e({markerVisible:t})},setTextsVisible:t=>{e({elementsVisible:t})}}))),IX=kX(((e,t)=>{let n=0;const r={dump:null,replayAllMode:!1,allExecutionAnimation:null,insightWidth:null,insightHeight:null,activeTask:null,activeExecution:null,activeExecutionAnimation:null,insightDump:null,_insightDumpLoadId:0,hoverTask:null,hoverTimestamp:null,hoverPreviewConfig:null};return Q(q({},r),{_executionDumpLoadId:n,setReplayAllMode:r=>{t().allExecutionAnimation?(e({replayAllMode:r}),r&&e({activeTask:null,activeExecution:null,activeExecutionAnimation:null,_executionDumpLoadId:++n,insightDump:null})):console.error("allExecutionAnimation not found, failed to set replayAllMode")},setGroupedDump:i=>{if(console.log("will set ExecutionDump",i),e(Q(q({},r),{dump:i})),i&&i.executions.length>0){const r=()=>{i&&i.executions.length>0&&i.executions[0].tasks.length>0&&t().setActiveTask(i.executions[0].tasks[0])},o=TX(i);if(!o)return r();const{scripts:a,width:s,height:l}=o;e({allExecutionAnimation:a,_executionDumpLoadId:++n,replayAllMode:!0,insightWidth:s,insightHeight:l})}},setActiveTask(r){var i;let o;const a=t(),s=a.dump;if(s&&(o=s.executions.find((e=>e.tasks.includes(r)))),!o)throw new Error("parentExecution not found");const l=a.insightWidth,u=a.insightHeight;if(e({replayAllMode:!1,activeTask:r,activeExecution:o,_executionDumpLoadId:++n,activeExecutionAnimation:l&&u?PX(o,l,u):null}),console.log("will set task",r),"Insight"===r.type){const t=null==(i=r.log)?void 0:i.dump;e({insightDump:t,_insightDumpLoadId:++a._insightDumpLoadId})}else e({insightDump:null})},setHoverTask(t,n){e({hoverTask:t,hoverTimestamp:n||null})},setHoverPreviewConfig(t){e(t?{hoverPreviewConfig:{x:Math.floor(t.x),y:Math.floor(t.y)}}:{hoverPreviewConfig:null})},reset:()=>{e(r)}})})),OX=ee(uv()),MX=()=>{},jX=(e,t,n,r,i)=>{const{left:o,top:a,width:s,height:l}=e,u=n?"#fd5907":function(e){const t=function(e){e||(e="unnamed");let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t>>>0}(e);return RW[t%RW.length]}(t),c=new ql;c.beginFill(u,.4),c.lineStyle(1,u,1),c.drawRect(o,a,s,l),c.endFill(),r&&i&&(c.interactive=!0,c.on("pointerover",r),c.on("pointerout",i));const d=new EV({blur:2,quality:3,alpha:.4,offset:{x:4,y:4},color:3355443});c.filters=[d];const f=new PW(t,{fontSize:18,fill:0});return f.x=o,f.y=Math.max(a-22,0),[c,f]},zX=e=>{const t=e.highlightElements||[],n=t.map((e=>e.id)),r=e.uiContext,{size:i,screenshotBase64:o,screenshotBase64WithElementMarker:a}=r,s=i.width,l=i.height,u=(0,kW.useRef)(null),c=(0,kW.useMemo)((()=>new PH),[]),[d,f]=(0,kW.useState)(!1),p=(0,kW.useMemo)((()=>new en),[]),h=(0,kW.useMemo)((()=>new en),[]),[m,A]=(0,kW.useState)(null),g=(0,kW.useRef)(),{markerVisible:v,setMarkerVisible:y,elementsVisible:b,setTextsVisible:x}=RX(),S=!!a;(0,kW.useEffect)((()=>(Promise.resolve(te(void 0,null,(function*(){if(!u.current||!s)return;yield c.init({width:s,height:l,background:16777215});const e=u.current;u.current.appendChild(c.canvas);const{clientWidth:t}=u.current.parentElement,n=.5*window.innerHeight;if(s/l<=t/n){const t=n/l;e.style.width=`${Math.floor(s*t)}px`,e.style.height=`${Math.floor(l*t)}px`}c.stage.addChild(p),c.stage.addChild(h),f(!0)}))),()=>{console.log("will destroy");try{c.destroy(!0,{children:!0,texture:!0})}catch(sK){console.warn("destroy failed",sK)}})),[c,s,l]),(0,kW.useEffect)((()=>{if(!d)return;const e=new Image;e.src=o,e.onload=()=>{if(!c.stage)return;const t=ii.from(e),n=new xi(t);if(n.x=0,n.y=0,n.width=s,n.height=l,c.stage.addChildAt(n,0),S){const e=new Image;e.src=a,e.onload=()=>{const t=ii.from(e),n=new xi(t);n.x=0,n.y=0,n.width=s,n.height=l,c.stage.addChildAt(n,1),g.current=n,n.visible=v}}}}),[c.stage,d]);const{highlightElementRects:_}=(0,kW.useMemo)((()=>(p.removeChildren(),h.removeChildren(),r.content.forEach((t=>{const{rect:r,content:i,id:o}=t,a=n.includes(o)||(null==m?void 0:m.id)===o;if(a){const[e]=jX(r,i,a,MX,MX);p.addChild(e)}const[s]=jX(r,i,a,(null==e?void 0:e.disableInteraction)?void 0:()=>{A(t)},(null==e?void 0:e.disableInteraction)?void 0:()=>{A(null)});h.addChild(s)})),h.visible=b,{highlightElementRects:[]})),[c,d,t,r.content,m]);let w=null;return 1===_.length?w=(0,OX.jsx)("div",{className:"bottom-tip",children:(0,OX.jsxs)("div",{className:"bottom-tip-item",children:["Element: ",JSON.stringify(_[0])]})}):_.length>1&&(w=(0,OX.jsx)("div",{className:"bottom-tip",children:(0,OX.jsxs)("div",{className:"bottom-tip-item",children:["Element: ",JSON.stringify(_)]})})),(0,OX.jsxs)("div",{className:"blackboard",children:[(0,OX.jsx)("div",{className:"blackboard-main-content",style:{width:"100%"},ref:u}),(0,OX.jsx)("div",{className:"blackboard-filter",style:{display:e.hideController?"none":"block"},children:(0,OX.jsxs)("div",{className:"overlay-control",children:[(0,OX.jsx)(bD,{checked:v,onChange:e=>{y(e.target.checked),g.current&&(g.current.visible=e.target.checked)},disabled:!S,children:"Marker"}),(0,OX.jsx)(bD,{checked:b,onChange:e=>{x(e.target.checked),h.visible=e.target.checked},children:"Elements"})]})}),(0,OX.jsx)("div",{className:"bottom-tip",style:{display:e.hideController?"none":"block"},children:w})]})},BX=ee(uv()),FX=e=>{switch(e){case"finished":case"passed":case"success":case"connected":return(0,BX.jsx)("span",{style:{color:"#2B8243"},children:(0,BX.jsx)(Cb,{})});case"finishedWithWarning":return(0,BX.jsx)("span",{style:{color:"#f7bb05"},children:(0,BX.jsx)(Gx,{})});case"failed":case"timedOut":case"interrupted":return(0,BX.jsx)("span",{style:{color:"#FF0A0A"},children:(0,BX.jsx)(Ub,{})});case"pending":return(0,BX.jsx)(Ib,{});case"cancelled":case"skipped":return(0,BX.jsx)(gx,{});case"running":return(0,BX.jsx)(db,{});default:return(0,BX.jsx)(Sx,{})}},DX=ee(re()),LX=ee(uv()),NX=e=>e,UX=e=>new Promise((t=>setTimeout(t,e))),GX="frame cancel (this is an error on purpose)",HX=e=>{var t;const[n,r]=(0,DX.useState)(""),[i,o]=(0,DX.useState)(""),a=IX((e=>e.activeExecutionAnimation)),s=(null==e?void 0:e.replayScripts)?e.replayScripts:a,l=(null==e?void 0:e.imageWidth)||IX((e=>e.insightWidth))||1920,u=(null==e?void 0:e.imageHeight)||IX((e=>e.insightHeight))||1080,c=l+0,d=u+0,f=(0,DX.useRef)((null==(t=null==s?void 0:s[0])?void 0:t.img)||null),p=(0,DX.useRef)(null),h=(0,DX.useMemo)((()=>new PH),[]),m=(0,DX.useRef)(new Map),A=(0,DX.useRef)(null),g=(0,DX.useRef)(null),[v,y]=(0,DX.useState)(0),b=(0,DX.useMemo)((()=>new en),[]),x=(0,DX.useMemo)((()=>{const e=new en;return e.zIndex=1,e}),[]),S={left:0,top:0,width:l,pointer:{left:Math.round(l/2),top:Math.round(u/2)}},[_,w]=(0,DX.useState)(-1),E=(0,DX.useRef)(!1);(0,DX.useEffect)((()=>(E.current=!1,()=>{E.current=!0})),[]);const C=(0,DX.useRef)(q({},S)),T=e=>te(void 0,null,(function*(){if(!m.current.has(e))return gW.load(e).then((t=>{const n=xi.from(t);m.current.set(e,n)}))})),P=()=>te(void 0,null,(function*(){const e=f.current;if(!e)return void console.warn("no image to update");m.current.has(e)||(console.warn("image not loaded",e),yield T(e));const t=m.current.get(e);if(!t)throw new Error("sprite not found");const n=b.getChildByLabel("main-img");n&&b.removeChild(n),t.label="main-img",t.zIndex=0,b.addChild(t)})),k=e=>{var t,n;let r;g.current||(g.current=xi.from(_X),g.current.zIndex=3,g.current.anchor.set(.5,.5),g.current.scale.set(.5),g.current.label="spinning-pointer"),g.current.x=(null==(t=A.current)?void 0:t.x)||0,g.current.y=(null==(n=A.current)?void 0:n.y)||0,b.addChild(g.current);let i=!1;const o=t=>{if(i)return;r||(r=t);const n=t-r,a=(Math.sin(n/500-Math.PI/2)+1)/2*Math.PI*2;g.current&&(g.current.rotation=a),e(o)};return e(o),()=>{g.current&&b.removeChild(g.current),i=!0}},R=(e,t,n)=>te(void 0,null,(function*(){var r,i;m.current.has(e)||(console.warn("image not loaded",e),yield T(e));const o=m.current.get(e);if(!o)throw new Error("sprite not found");let a=null==(r=A.current)?void 0:r.x,s=null==(i=A.current)?void 0:i.y;if("number"==typeof t&&(a=t),"number"==typeof n&&(s=n),void 0!==a&&void 0!==s){if(A.current){const e=b.getChildByLabel("pointer");e&&b.removeChild(e)}A.current=o,A.current.x=a,A.current.y=s,A.current.label="pointer",A.current.zIndex=2,b.addChild(A.current)}else console.warn("invalid pointer position",t,n)})),I=e=>{C.current=e;const t=Math.max(1,l/e.width);b.scale.set(t),b.x=Math.round(0-e.left*t),b.y=Math.round(0-e.top*t);const n=b.getChildByLabel("pointer");n&&e.pointer&&(n.x=e.pointer.left,n.y=e.pointer.top,n.scale.set(1/t))},O=(e,t,n)=>te(void 0,null,(function*(){const r=q({},C.current),i=r.left,o=r.top,a=q({},r.pointer),s=r.width/l,c=performance.now(),d=e.pointer&&(e.pointer.left!==a.left||e.pointer.top!==a.top),f=d?.375*t:0,p=f,h=t-f;yield new Promise((r=>{const m=A=>{const g=q({},C.current),v=A-c;if(d)if(v<=f){const t=Math.min(v/f,1),n=NX(t);g.pointer.left=a.left+(e.pointer.left-a.left)*n,g.pointer.top=a.top+(e.pointer.top-a.top)*n}else g.pointer=e.pointer;if(v>p){const t=v-p,n=(e=>NX(e))(Math.min(t/h,1)),r=e.width/l,a=s+(r-s)*n,c=l*a,d=u*a;g.width=c;const f=i+(e.left-i)*n,m=o+(e.top-o)*n,A=f+c-l,y=m+d-u;g.left=A>0?f+A:f,g.top=y>0?m+y:m}I(g),v<t?n(m):r()};n(m)}))})),M=(e,t,n,r=1)=>new Promise((i=>{const o=performance.now(),a=s=>{const l=s-o,u=Math.min(l/t,1);e.alpha=0===r?1-NX(u):NX(u),l<t?n(a):i()};n(a)})),j=(e,t,n)=>te(void 0,null,(function*(){return M(e,t,n,0)})),z=(e,t,n,r)=>te(void 0,null,(function*(){x.removeChildren();const i=[...e],o=i.length;let a=0;yield new Promise((e=>{const s=performance.now(),l=u=>{const c=u-s,d=(e=>{const t=1-e;return 0*t*t*t+1.5*e*t*t+1.5*e*e*t+1*e*e*e})(Math.min(c/n,1)),f=Math.floor(d*o);for(;a<f;){const e=Math.floor(Math.random()*i.length),t=i.splice(e,1)[0];if(t){const[e]=jX(t.rect,t.content,!1);e.alpha=0,x.addChild(e),a++,M(e,80,r)}}if(c<n)r(l);else{for(;i.length>0;){const e=Math.floor(Math.random()*i.length),t=i.splice(e,1)[0],[n]=jX(t.rect,t.content,!1);n.alpha=1,x.addChild(n)}t.map((e=>{const[t]=jX(e.rect,e.content,!0);t.alpha=1,x.addChild(t)})),e()}};r(l)}))})),B=()=>{let e;return Promise.resolve(te(void 0,null,(function*(){if(!h)throw new Error("app is not initialized");if(!s)throw new Error("scripts is required");const{frame:t,cancel:n,timeout:i}=(()=>{let e=!1;return{frame:t=>{if(e)throw new Error(GX);requestAnimationFrame((()=>{if(e)throw new Error(GX);t(performance.now())}))},timeout:(t,n)=>{if(e)throw new Error(GX);setTimeout((()=>{if(e)throw new Error(GX);t()}),n)},cancel:()=>{e=!0}}})();e=n;const a=s.filter((e=>!!e.img)).map((e=>e.img));yield Promise.all([...a,_X].map(T)),x.removeChildren(),yield R(SX,l/2,u/2),yield P(),yield I(q({},S));const c=s.reduce(((e,t)=>e+t.duration+(t.insightCameraDuration||0)),0),d=performance.now();w(0);const p=()=>{const e=Math.min((performance.now()-d)/c,1);if(w(e),e<1)return i(p,200)};t(p);for(const e in s){const n=s[e];if(r(n.title||""),o(n.subTitle||""),"sleep"===n.type)yield UX(n.duration);else if("insight"===n.type){if(!n.insightDump||!n.img)throw new Error("insight dump or img is required");f.current=n.img,yield P();const e=n.insightDump.context.content,r=n.insightDump.matchedElement;if(yield z(e,r,n.duration,t),n.camera){if(!n.insightCameraDuration)throw new Error("insightCameraDuration is required");yield O(n.camera,n.insightCameraDuration,t)}}else if("clear-insight"===n.type)yield j(x,n.duration,t),x.removeChildren(),x.alpha=1;else if("img"===n.type)n.img&&n.img!==f.current&&(f.current=n.img,yield P()),n.camera?yield O(n.camera,n.duration,t):yield UX(n.duration);else if("pointer"===n.type){if(!n.img)throw new Error("pointer img is required");yield R(n.img)}else if("spinning-pointer"===n.type){const e=k(t);yield UX(n.duration),e()}}})).catch((e=>{console.error("player error",e)}))),()=>{null==e||e()}};(0,DX.useEffect)((()=>(Promise.resolve(te(void 0,null,(function*(){yield te(void 0,null,(function*(){p.current&&s&&(yield h.init({width:c,height:d,background:16053492}),p.current.appendChild(h.canvas),b.x=0,b.y=0,h.stage.addChild(b),x.x=0,x.y=0,b.addChild(x))})),y(Date.now())}))),()=>{try{h.destroy(!0,{children:!0,texture:!0})}catch(sK){console.warn("destroy failed",sK)}})),[]),(0,DX.useEffect)((()=>{if(v)return B()}),[v]);const F=Math.round(100*_),D=0===_?"none":"0.3s",[L,N]=(0,DX.useState)(!1);let U;const G={};let H=()=>{};return _<1?U=(0,LX.jsx)(PU,{indicator:(0,LX.jsx)(fx,{spin:!0}),size:"default"}):L?(U=(0,LX.jsx)(PU,{indicator:(0,LX.jsx)(Ab,{}),size:"default"}),G.cursor="pointer",G.background="#888",H=()=>y(Date.now())):U=(0,LX.jsx)(PU,{indicator:(0,LX.jsx)(Ab,{}),size:"default"}),(0,LX.jsxs)("div",{className:"player-container",children:[(0,LX.jsx)("div",{className:"canvas-container",ref:p}),(0,LX.jsx)("div",{className:"player-timeline",children:(0,LX.jsx)("div",{className:"player-timeline-progress",style:{width:`${F}%`,transition:D}})}),(0,LX.jsxs)("div",{className:"player-controls",children:[(0,LX.jsx)("div",{className:"status-icon",onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),style:G,onClick:H,children:(0,LX.jsx)(Lk,{theme:{components:{Spin:{dotSize:24,colorPrimary:"rgb(6,177,171)"}}},children:U})}),(0,LX.jsxs)("div",{className:"status-text",children:[(0,LX.jsx)("div",{className:"title",children:n}),(0,LX.jsx)("div",{className:"subtitle",children:i})]})]})]})},WX={content:[{content:"Swag Labs",rect:{left:895,top:38,width:130,height:32,zoom:1},center:[960,54],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"",id:"d6c5e2f100",attributes:{nodeType:"TEXT Node"},indexId:0},{content:"Username",rect:{left:814,top:154,width:292,height:40,zoom:1},center:[960,174],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"[_midscene_retrieve_task_id='a9021f480e']",id:"a9021f480e",attributes:{class:".input_error.form_input",placeholder:"Username",type:"text","data-test":"username",id:"user-name",name:"user-name",autocorrect:"off",autocapitalize:"none",htmlTagName:"<input>",nodeType:"FORM_ITEM Node"},indexId:1},{content:"Password",rect:{left:814,top:209,width:292,height:40,zoom:1},center:[960,229],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"[_midscene_retrieve_task_id='580f3b761d']",id:"580f3b761d",attributes:{class:".input_error.form_input",placeholder:"Password",type:"password","data-test":"password",id:"password",name:"password",autocorrect:"off",autocapitalize:"none",htmlTagName:"<input>",nodeType:"FORM_ITEM Node"},indexId:2},{content:"",rect:{left:814,top:253,width:292,height:45,zoom:1},center:[960,275],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"[_midscene_retrieve_task_id='3e1faf0fd6']",id:"3e1faf0fd6",attributes:{class:".error-message-container",nodeType:"CONTAINER Node"},indexId:3},{content:"Login",rect:{left:814,top:303,width:292,height:49,zoom:1},center:[960,327],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"[_midscene_retrieve_task_id='6db0b64062']",id:"6db0b64062",attributes:{type:"submit",class:".submit-button.btn_action","data-test":"login-button",id:"login-button",name:"login-button",value:"Login",htmlTagName:"<input>",nodeType:"FORM_ITEM Node"},indexId:4},{content:"Accepted usernames are:",rect:{left:570,top:435,width:221,height:21,zoom:1},center:[680,445],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"",id:"5ca36a5942",attributes:{nodeType:"TEXT Node"},indexId:5},{content:"standard_user",rect:{left:570,top:479,width:109,height:19,zoom:1},center:[624,488],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"",id:"fd2fe54174",attributes:{nodeType:"TEXT Node"},indexId:6},{content:"locked_out_user",rect:{left:570,top:503,width:126,height:19,zoom:1},center:[633,512],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"",id:"403daee75b",attributes:{nodeType:"TEXT Node"},indexId:7},{content:"problem_user",rect:{left:570,top:527,width:101,height:19,zoom:1},center:[620,536],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"",id:"2b34f1e161",attributes:{nodeType:"TEXT Node"},indexId:8},{content:"performance_glitch_user",rect:{left:570,top:551,width:193,height:19,zoom:1},center:[666,560],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"",id:"6ae63a4d9e",attributes:{nodeType:"TEXT Node"},indexId:9},{content:"error_user",rect:{left:570,top:575,width:84,height:19,zoom:1},center:[612,584],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"",id:"76030282f1",attributes:{nodeType:"TEXT Node"},indexId:10},{content:"visual_user",rect:{left:570,top:599,width:92,height:19,zoom:1},center:[616,608],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"",id:"f34b057726",attributes:{nodeType:"TEXT Node"},indexId:11},{content:"Password for all users:",rect:{left:960,top:435,width:221,height:21,zoom:1},center:[1070,445],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"",id:"e693f608cd",attributes:{nodeType:"TEXT Node"},indexId:12},{content:"secret_sauce",rect:{left:960,top:477,width:101,height:19,zoom:1},center:[1010,486],page:{page:{_isDragging:!1,_timeoutSettings:{}},pageType:"puppeteer"},locator:"",id:"cde9de9828",attributes:{nodeType:"TEXT Node"},indexId:13}],size:{width:1920,height:1080},screenshotBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4CAIAAABnsVYUAAAAAXNSR0IArs4c6QAAIABJREFUeJzs3XeU3FXd+PE7W7IlyW7qppFGemc3CUkggBTFQKiRCEgRUBQeQUUsj4IiIIogKCq9qKABRKUIhCItPaSRSgshHVI2yfZsm98f8/zWGFARczMpr9fhj9k735n9fOecAOd9bu4kSuurAgAAAAAA7GoZ6R4AAAAAAIB9kwANAAAAAEAUAjQAAAAAAFEI0AAAAAAARCFAAwAAAAAQhQANAAAAAEAUAjQAAAAAAFEI0AAAAA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7Nq1awhh0qRJQ4cOXbZs2ZIlSy6//PLHH3986NChr7322ptvvtmyZctjjjlm2LBhqZfPnDlz6tSp5eXlnTp1Ov7447t27drY2HjTTTeNGzfu2Wef3bx5c69evSZOnDhlypR58+YlEomRI0cec8wxqdcuX778xRdfXLNmTfv27UePHj18+PD0fTwAAMBewA5oAIA91GOPPVZUVHTFFVccd9xxjz76aOqo6OnTp8+cOXPixInf+c53Bg4cePfdd5eWlqZq9aOPPtq+ffvzzz8/Ly+vtLT0L3/5S3Fx8Xe+851Ro0ZNmjQpddmSJUueeuqpiRMnXnnllYMHD7777rsbGhqSyeSGDRuee+65c88999JLLy0rK7vxxhvLysq+9rWvnXbaaa+88sqSJUtCCKtXr540adLYsWOvuOKKY4455umnn160aFG6PyQAAGCPJkADAOyhksnkxo0bS0tLe/ToccUVV7Ro0SK1/fmYY44pKChIJpPDhg3r0KHD4sWLU9cPGDDgiCOO6Nq1a0ZGRghh8ODBAwYMyM3NPfTQQ1u0aLFq1aoQQqdOnS655JLOnTuXl5cPGDCgtrZ23bp1qZcfc8wxbdq0KSoqGj58eFVV1Yknnpifn9+7d+8+ffqsWLEihDBv3rzBgwd37969rq6uW7duJSUlc+fOTesnBAAA7OkcwQEAkDYZGRkZGRn19fVNK8lksr6+Pjs7O4QwceLEZ5999p577qmvry8pKTn22GNDCO+///6f//znwsLCppfU1tamHnTs2HHHN+/QoUPqQSKRaN++fUVFRerxn/70p23bthUWFiYSiRBCdXV16rL27dunHrRr165ly5a5ublNP27bti2EsH79+nfeeefdd99t+hWtWrWK9tkAAAD7AgEaACBtsrKyOnXqtG7duqb4u2nTpkQi0bFjx8bGxurq6pNPPjkjI2PTpk133313+/btR40a1b59+5NOOqlv376p6xsaGlIdOZWzd3zzpvUdPffcc61atfryl78cQqipqbnqqquantrx5R/62qKiou7du48bNy71Y2Nj4674DAAAgH2ZIzgAANJp6NChkydP3rBhQwihsrLy0UcfHThwYGZmZiKRuOuuu6ZOnRpCaN26dX5+fkNDQw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u4YjOAAA9iDt2rUrKysLIaxYseKpp556//3327RpM3bs2BEjRqSOYH7ssceWLVuWn58/ZMiQY4899kMXV6xY8dxzz1144YUhhPXr1z/wwAPHHXfcoEGDQgiPPPJIjx49RowYsXLlyr/97W+rVq1q06ZNSUnJ2LFjQwiNjY033XTT6aefPnny5Jqamq985Svbtm178skn33nnnezs7OHDhyeTyXR/QgAAwN5EgAYA2CM0NDQsX778zTffPPTQQysqKu68885TTjmlpKRk1apV9957b1FRUbdu3WbMmPHee+9dfvnltbW1d911V9euXQcOHPjBxT59+rz77rubN29u27bt4sWLq6urFyxYMGjQoIaGhgULFowdO3bt2rX33nvv+PHjzzrrrA0bNtx///0NDQ1HHHFEMpncsGHDn/70p8MOO6xLly41NTV33nlnz549L7nkkmQy+cwzzyxcuHD06NHp/qgAAIC9hgANAJBmv/nNbzIzM2tra1u3bj1hwoQ+ffpUVVVddNFFXbt2LSsra9WqVefOnd95551u3bqFECoqKtatW9ezZ8/LLrusaT/yTotZWVl9+vR54403DjnkkKVLl06YMOGPf/xjQ0PDihUrmjdv3rFjxyeeeGLgwIEjR44MIRxwwAEnnnji448/fsQRR6Te7YgjjjjooINCCIsWLaqvr58wYUIikQghnHbaaW+99VZaPyoAAGAvI0ADAKTZmWee2bVr1+zs7MzMzNRKdnb27Nmz77///tatW2dmZm7cuLG6ujqEcNhhh9XX1z/++ONbtmzp27fv+PHjW7du/aGLAwYMWLZs2aBBg7Zu3TpgwICOHTsuX7787bffHjBgQOqbDwcOHNg0QKdOnbZs2VJdXd2sWbMQQseOHVPr69ev79SpU6o+hxAyMjI6d+6cjk8IAADYW/kSQgCANGvWrFlubm5TfQ4hLFy4cMWKFd/61rcuvvjiL33pS23atEmtb926dezYsZdddtl3v/vdhoaGp59++p8tDhw4cPny5QsXLuzfv39GRsbAgQMXL178xhtvpLpzUVHRxo0bm37dhg0bCgoK8vLyUj82TbLTZakrd8tHAgAA7CMEaACAPU5dXV1DQ0NDQ0MIYc6cOevWrUutP/PM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De/mTJpUmW9saHhntvn/tfLr3xp9PGTp0z5m+OOG3/m2MpHN98255Irrjjh6GMuu+jCmbfOOXz06AcffnjbBgMAAIBPki04ANgObNq0afYP5559+uk/vvvuoihOPOaYt9ata9vxefkrLxdFsf7tt2u6dNn6W2vWvrnnwD0+22/Xp5Y8PeywUa2trR9+leqqqjETxv/n88/X1NQseeaZR375y6OOOOKaG25o359lwzvvbNmyZff+/ZcuW3b131+3Q8+epVKptbX1C8MPbm1tnXvXneVyefkrL9/xk5+cfPzxN82eVRTFaytWvPXWuqIofnD77Xf/9KftOw8AAADkCNAAbB9u/dGPLvzyOQcNPeDRxY+PGzPmlttu27Jly4d/ZcYPbimXSzdMndqvb99Fjz9+2ZWTX1q+/EOO39zcvN/gwdOnTOnevfuGDe/s1NT06muvtffPUbyxZs3Y888//eSTr7rs8tdXrZo1d26lMg8a+Bc79Oz5DzfNbDtyS3Pze767+Mkn230eAAAAyBGgAdg+rFq9+q5/vHfcmDFda2t3auoz9647P/IrfZqarp0x4+rrruvT1HTjtGu+dtFXzrrwgqIoVq5evc+gQZVjamtrBw0ceO+CBZXjr7zssr867rjnli6tbC29zdO+tW7dpk2b+u6888pVqyp7QBel3z29cIfGxueWvnD6+HO6VFePOvTQ22fe/PN/+edfL1u29MVlL7z44hEnjK4cVl9XX1fX9b3n/Yh7uAEAAODTxR7QAGw3Zt465/BRo75+8cVz75y3bv36tvVyuVwul4uiKJXL5XK59G7qnTxx4pRJk+rr6tesXbvmzbUtLS2V9V88+OCIgw46eNiwno2NE8+/4E+6daus79q3b9farpUzHHX4EYcceFDbJUqlUrlcLhWl37149xK/z8aNGx9+7LFxY8bs0Nh44P77/+2JJ7Z9tEvfvo/+/IG9Bw3a3Nz82xUrWlpaKoM99Mii3T7zmTNOPbVLdfXOffrcd8cdRx/x11tdvVQURalcqvykAAAAsF0orW5+u6NnAKAzaF27YfcDhqavMm/W7ENHjNjv0C/896uvVlb6NDU988ijWx8zbfr3p02fXhRF/912m3LFpP333be6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vzJkzN1P+cEeOOPwfsqklS5Zmw4YN6devX/puv306jdp339Rc9ZOJqdlvdGtq9tprr3Tv3j1Tp07L/PlP5tBDxqRSqWRjf/zTI6k57thjsqk//OGOVKvVvJB58x7Lpz59fvbac3Au/u63Mm/eY3li/vwMGbJ3Ro4YkcbGhmwt/vTII6k5+KAD03f77bOxDRs2ZNq0u/K/ueGGm3LKKSdnUzfc8KvUDBs6JBu7//4H8t2LL0m/HfrlS1/4bCqVSmoqlUpaR+2b4449Jtf+4rpMn/5gxh56SAAAANg21AcAAIBtxmFjD8mcOXPz2c99MTvvvHP23mvPdFq1alU++akJqRl76JhsbN99R6Rm5syHUzN6dGtq6uqKjBo1MlOn3pmaUaP2zab22P11mfnwrPzmt7/LiBHD0+nRR+flU5/5bF7MVT+ZmHXr1uVtbzspAwfunIEDd87W6nWv2y019953f5YvX5Hm5p7p9JkJn8sjf/5z/jdf+8a3sscer8v++++Xmmq1mu99/7Lcdfc96dGjR/bff79sbNCgQZk67c5Uq9WMHD48p5xycjqtW7cu0+68KzX7jhwZAAAAth31AQAAYJtx9oc+kL88tSA33nhT3jr+bTnowAMyaNCuWbx4ce66+54sXrwkw/cZlo9+9MPZ2HbbbZddd90l8+c/mf79d8hOO+6YTvuNbs3UqXemZtSokdnUCSccn5kPz8r3vn9Zpk27K62tozJ7ztxMn/5g9t9vdGruvufebGqvPQen5nOf/1K+9e2L06mpqTE77NAv+++3X0495eTstNNOebVd8J9fy/cvuSwvpl+/fvnhD76fTgfsv1923nmnPPXUghz+pqNyyCFvSEPXrrlj6rQ899zz+dAH359vf+fivJj9998v69evz2lnvCvDhg5J//79M/ePf8xTTy1IfX19vvPtr6d//x2yse2375NzPvyhfO0b38qnJ3w2l1z2g4wZ84YsXbI00+68MytWrMzee++V17/+oAAAALDtqA8AAADbjPr6+vznBV/Orrvskttu+02m3XlX7pg6LTU77NAvJ580Pp/8xL+nqakxmxq178jMn/9kRreOysZGj25NTV1dkZEjhmdTp/3TKVm3bl2+9/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ymVKsBAADYWtQHAABga1OtBuA1oVIJAADA1qQIAAAAAAAAAKVQBAAAAAAAAIBSKAIAAAAAAABAKRQBAAAAAAAAoBSKAAAAAAAAAFAKRQAAAAAAAAAohSIAAAAAAAAAlEIRAAAAAAAAAEqhCAAAAAAAAAClUAQAAAAAAACAUigCAAAAAAAAQCkUAQAAAAAAAKAUigAAAAAAAABQCkUAAAAAAAAAKIUiAAAAAAAAAJRCfQAAADaXSiUAAAAAbDlFAAAAAAAAACiFIgAAAFtaS0uqjz2WjB2bl2L9+vX55je/meXLl2dT3/ve9/L0008HAAAAgKQIAADAltTSkup116Wy2255qarVap566qm0t7dnUwsXLsy6desCAAAAQFIfAACALWXs2GTSpFQCAAAAwOZQHwAAgC1l8uTk619PJk1KJk/Oq23x4sW59tprs2DBguywww45+OCDM2rUqHS66667cv/99+f555/PLrvskje96U0ZOHBgaiZOnJgRI0Zk7ty5mT17ds4777zccMMNGTFiRB566KE88sgj6dmzZ4444oiMHDkyne6+++5MnTo1K1asyIABA3LMMcdk4MCB6ejoyEUXXZSjjjoqt912W55//vnsvvvuOfnkk3PHHXdk+vTpqVQq2X///XPEEUek07x58/L73/8+Tz31VPr27ZuDDjooo0ePDgAAAMBLUR8AAIAtZdCgZP78ZOzYbA7XX399+vXrl3e+851ZsGBBLr/88uy+++5pbm7OnXfemXvuuSennnpqWlpaMmPGjFx22WX5yEc+kt69e2fx4sWZNGlSxowZk3e9611pamrK4sWLc91112X8+PF561vfmvvvvz8TJ07MwIED07t378yePTu//vWv8573vCc77rhj7r777lx22WX59Kc/nZpFixbl9ttvzzve8Y5s2LAhEydOzIUXXpghQ4bknHPOycKFC/PjH/84AwYMyLBhw/KXv/wlEydOzIknnpg99tgj8+bNyzXXXJOuXbtm+PDhAQAAAPjfFAEAANhS5s/P5lStVvPss89m8eLFGTRoUD75yU+mR48eqbnrrrtyxBFHpLm5OdVqNSNHjswOO+yQWbNmpdOQIUMyduzYDBw4MEVRpGafffbJkCFD0tjYmDe84Q3p0aNHnnzyydQMGDAgZ599dnbcccesWLEiQ4YMSVtbWxYuXJhORxxxRHr37p1+/fpl9OjRWb16dY477rh069Yte+yxRwYPHpzHH388NdOnT88+++yTXXfdNevXr88uu+yS1tbWPPDAAwEAAAB4KeoDAACwlSuKIkVRZMOGDdlYtVrNhg0b0qVLl9ScfPLJue222/KDH/wgGzZsSGtra4488sjU/PWvf80vf/nLtLS0ZGNtbW3p1L9//2xqhx12SKdKpZK+fftm5cqVqalUKvnFL36RZcuWpaWlJZVKJTVr1qxJp759+6bT9ttvn549e6axsTGdtt9++yxbtiw1Tz/9dB577LE88cQT2VivXr0CAAAA8FLUBwAAYCtXX1+fAQMGZOHChenbt286Pffcc6lUKunfv386OjqyZs2avOUtb0lRFHnuuedy2WWXpW/fvjnwwAPTt2/fHH/88dlzzz3Tqb29PZVKJZ2KosimKpVKXsztt9+eXr165X3ve19q1q5dmwkTJmRjRVFkY5VKJS+mX79+2XXXXXPUUUelU0dHRwAAAABeqiIAAACvASNGjMgtt9ySRYsWpWbVqlWZNGlShg4dmrq6ulQqlVx66aWZOnVqarbbbrt069Yt7e3tqRk1alRuueWWrFq1KjWPP/54JkyYkOeffz6v1Pr167N+/fpUq9V0dHTkxhtvTKVSySs1YsSI3HfffXnqqadSs3z58lxwwQWZPn16AAAAAF6K+gAAALwGvPGNb8yGDRvy3e9+Nx0dHeno6Mjw4cNz4oknpqZSqeS0007LxIkTM3ny5HR0dGTXXXdNa2trag4//PCsXbs2F1xwQerr69PR0ZG3ve1t6du3b16pN7/5zbn88svzuc99Lh0dHdl///3Tv3//vFJ77LFHxo0blx//+MepVqtZvXp1Dj300IwePToAAAAAL0V9AAAAXiPe9KY35U1velOWLVuWnj17piiKbGyXXXbJxz/+8axcuTL19fVpbGxMp0qlknHjxuXoo4/OihUr0tLSko198IMfzKY++MEPZlPvfe9706lv37752Mc+luXLl6dLly5pamrKxr761a9mY3vvvXc+8YlPZGNHHXVUNtba2prW1tYsW7YsPXv2TFEUAQAA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noiIiIg8LKYUW44TERERkYfEmZ5LjaZNkP+vj5a8T6cOHVj+yUpCQkMRERH5b1azWjVK+/nR65VX6PbSy1y4dImW7doiIiL/08UjUZisnoiIiIg8LBZERERERERERP4N40aMpFOHDrjt3r8fERERERER+c+wICIiIiJ/uQvRFzlwuDRXrsYiIiLy3+7ipWgOHjmMS0xsLPOXLEZERERERET+MyyIiIiIyF9uwdKlLFi6FBERkcLg3Q8+4N0PPkBERERERET+8wxERERERERERERERERERKRQMBARERERERERERERERERkULBQERERERERERERERERERECgUDEREREREREREREREREREpFAxERERERERERERERERERKRQMBARERERERERERERERERkULBQERERERERERERERERERECgUDEREREREREREREREREREpFAxERERERERERERERERERKRQMBARERERERERERERERERkULBQERERERERERERERERERECgUDEREREREREREREREREREpFAxERERERERERERERERERKRQMBARERERERERERERERERkULBQERERERERERERERERERECgUDEREREREREREREREREREpFAxERERERERERERERERERKRQMBARERERERERERERERERkULBQERERERERERERERERERECgUDEREREREREREREREREREpFAxERERERERERERERERERKRQMBARERERERERERERERERkULBQERERERERERERERERERECgUDEREREREREREREREREREpFAxERERERERERERERERERKRQMBARERERERERERERERERkULBQERERET+cmX8/WncoAEPk4eHB61btMBsNiMiIv+ddm/ZQonixRERERERERG5VwYiIiIi8pd76okneG/2HB4mfz8/Nq2KwMvTExER+e9Txt+fOrVqYzKZEBEREREREblXFkRERESEzh07Uqt6deYuXIiIiBReJpOJqWPH0bZNG0oUL86Pe/cwY/580jMycAsKDGTGpEm0bNqM+MRENm7ZzPsrVuBmNpuZOnYcL7Rti2EYfPvDDyz+cDk3k5Nx6diuHZNGv0VKagpTQ0OZGzKNxxo2ZM0XXzBm6hRcggIDmTFpEi2bNiM+MZGNWzbz/ooVuG1aFUGDunUxmUx8t3ETdoeDK7FX6TV4MPeqjL8/U8eO46lWrUhJTWXL9m9ZsHQpBbVr8wyTRo+iaqXKXPvtN2YveJdvvv8elzatW9O/V29eGzQQtwG9+xAcVJGQ0FDcenTuTP9evQkKDGTn3j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eMx+l0UtCW7dtp+3QbDm7fQdGiRek/YgRff/sNNrudkLlzCZ0ylZBx40lNS2PuwoWMGjyEe3X5yhWGjBnD/BkzCBk3nhsJCcyYN4/+vXvj9s6iRaz+cAWXjh3n1u3bTJkzm0cbNsDthbZt+fSfy3Dr3qkTZ86d48mOL+DidDrp3r8fq5Yv59juPeTk5jJ+2jQWzpnDvcq32ZgZNp9Rg4cwa/LbnDh9irkL36NhvXq4ha9ZTYO6dTnw7XYsFgs5OTkMnzAep9OJS2JSEj0G9Gdp2LvMeXsKWdnZfLltK59Gfo5LKR8foo/+jFvixWhcqjZuRHpGBiIifxW73U58YgJ/JDklhT+Sk5vDvys5JYU/I3x1BGs3buBOdoeDO+Xk5pCTm8PvuZmczB9xOBwkp6byR+x2O8kpKfyR5JQURERERERE5OEzpdhynIiIiIg8JM70XGo0bcJ/mtlsxt+vNPGJCfwZFrOZ0n6liU9M4N9RtkwA8YkJ/J5yAQEkJCXhcDj4s/xLlyY1NRWb3U5Bn//rI557+mnutGrtWsZMnYKbYRiUslpJTk3l95jNZvz9ShOfmMDv8fP1JS09HbvdjoiIiIiI/P9dPBKFyeqJiIiIyMNiQURERORvwG63E5+YwJ9ls9uJT0zg3xWfmMAfuZGQwL8r6eZN7mbQW6MpWqQId7p1O4+CHA4Hyamp/BG73U58YgJ/JDklBREREREREREREflrWRARERGRv4Ws7GxERERERERERESkcDMQEREREREREREREREREZFCwUBERERERERERERERERERAoFAxERERERERERERERERERKRQMRERERERERERERERERESkUDAQEREREREREREREREREZFCwUBERERERERERERERERERAoFAxERERERERERERERERERKRQMRERERERERERERERERESkUDAQEREREREREREREREREZFCwUBERERERERERERERERERAoFAxEREZFCrE7t2rRu0YJ6jzzCw1Lc25tWzZvzoDVt3Bi/UqUQERERERERERERuVcGIiIiIoVYx7btGDloMJs/j2Rgnz48DFUqVWL9J5/yoC1fuJAmjR9FRERERERERERE5F5ZEBERESnE5i1ehMu7M2dRs1p15H/XuWNHalWvztyFCxERERERERERE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pNm/CfEnvyFN5eXhSUm5tLxXp1cfvHE0/w7sxZBFesSE5uLms3bWTyrFk4nU5cvL28+GjxEv7xxBPY7XYOHDnCuJCpXPvtN1zq16nDjo2bKFerJi6NGzTgi08+Zdi4cez4cScujerXZ2nYu1SqWJGs7Gy+3LaVt2fPxuFw4OLp6cknS//JU088gcPpZNXaSCoFBfPJmjVs3/kD96JCuXJ8/P4HNKpfH6fTyYFDhxg4ehSpaWm4mEwm5s+YQbeXXsajaFE2bd2K2Wxw9PgJwldH4Fbaz4+lYe/SunlzihYtSv8RI/j622+4V6+/9hqjBg+hfNmynDh9im3ffUfDevXo9+abuFSrUoV506bzWKNGWMxmzkdH03/ECGKvxeHW+5XuTBw9ilJWH+KuX2f5Jyv5LDISlxfatuXTfy6joDPnzvFkxxcQEREREfm/7uKRKExWT0REREQeFlOKLceJiIiIyEPiTM+lRtMm/DfwL12a1NRUbHY7d+Pl6YVhmMjKzubP8vP1JS09Hbvdzt2ULFECu91Odk4OBQ3rP4BZkydzp8tXrtDs2WcoqGSJEthsdnJyc7gbT09PDJOJ7Jwc7lfsyVN4e3lxp0FvjWbTli24GYZBKauV5NRUfo+XpxfFPIqSkpbG7ynj709iUhIiIiIiIoXFxSNRmKyeiIiIiDwsFkRERETk/yfp5k3+SE5uDv+u5JQU/khGZiZ3E746grUbN3Anu8PBnTIyM/kjubm5/FkNW7fCxP+UlZ1NQQ6Hg+TUVP5ITm4OObk5/JHEpCRERERERERERETk3lkQERERkf/zbt++ze3bt/lPS01LQ0RERERERERERP7vMhARERERERERERERERERkULBQERERERERERERERERERECgUDEREREREREREREREREREpFAxERERERERERERERERERKRQMBARERERERERERERERERkULBQERERERERERERERERERECgUDEREREREREREREREREREpFAxERERERERERERERERERKRQMBARERERERERERERERERkULBQERERERERERERERERERECgULIiIiIvJvqV2jBrm3bnH111+5m+Le3jRu0ACn08mps2dJS09HRERERERERERE5GGwICIiIiL/ljHD3+RK7FXmLlzI3fiXLs3IQYMp7edL2TIB1Gn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PuHE92fAERERERERERERF5+EwpthwnIiIiIg+JMz2XGk2b8J9y7tBhhowdw76ffsK/dGkSEhP5s0qWKIHNZicnN4ffU8bfn+SUFOx2O3+GxWzGWrIkyamp3I8Gdeuy86uvuZs6LZqTkJiIm6enJ4bJRHZODr/Hr1QpsnNzuXXrFndjMZuxlixJcmoqIiIiIiJy7y4eicJk9URERETkYbEgIiIi8jfgcDhISEzk35GRmcn/JjEpiX+HzW4nOTWV+3X63DlqPPYod5Oank5Bubm5/G+SU1P5Iza7neTUVEREREREREREROT/FgsiIiIi8l/PbreTkpaGiIiIiIiIiIiI/L1ZEBERESnEWrRrS1ZWFiIiIiIiIiIiIiJ/BxZERERECrHUtDRERERERERERERE/i4MRERERERERERERERERESkUDAQEREREREREREREREREZFCwUBERERERERERERERERERAoFAxERERERERERERERERERKRQMRERERERERERERERERESkUDAQEREREREREREREREREZFCwUBERERERERERERERERERAoFAxERERERERERERERERERKRQMREREROSBKVq0KI8/9hitW7TAw8MDuX+B5cvTukULHn/sMYoWKcIfqVmtGkUsFh60IhYLrVu0oIjFgoiIiIiIiIiIyH8TAxERERF5IOo98ggXo47y7qzZTBk7FmvJksj9a1S/PiMHDWb5ewv51+Il/J4WTZtxYPsO3hw4iAfNarWyaVUEVqsVERERERERERGR/yYWREREROSB6NiuHTt27mTwmLeQP2/L9u1s2b6dl5/vwMRRo/g9p86e4cNPPmHLju38nt1bttDx1VfJzMpCRERERERERETk78CCiIiIiDwQ5cuWIyEpEXkwnE4nfyQzK4upoXP4PWX8/alTqzYmkwkREREREREREZG/CwsiIiIihdjWyLVMnj2LaRMm0KhefX45fZopc2ZzPjoat6DAQGZMmkTLps2IT0xk45bNvL9iBW5frV5DaT8/ItatxWIpwvD+/Snj70+dFs1JSEzkmX/8g5mTJlMuIACb3U6bJ/+BS5c+fYhPTMClVvXqhIwfT9PGj/LrtWt8vmED4asjcJs+YSLPPf00J8+cZv2XXxEaMpUaVasx6K3RbNqyhT1bt7Fh89e8OXAQu/ft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HChAQAAAAAAAOBCAwAAAAAAAMCFBgAAAAAAAIALDQAAAAAAAAAXGgAAAAAAAAAuNAAAAAAAAABcaAAAAAAAAAC40AAAAAAAAABwoQEAAAAAAADgQgMAAAAAAADAhQYAAAAAAACACw0AAAAAAAAAFxoAAAAAAAAALjQAAAAAAAAAXGgAAAAAAAAAuNAAAAAAAAAAcKEBAAAAAAAA4EIDAAAAAAAAwIUGAAAAAAAAgAsNAAAAAAAAABcaAAAAAAAAAC40AAAAAAAAAFxoAAAAAAAAALjQAAAAAAAAAHChAQAAAAAAAOBCAwAAAAAAAMCFBgAAAAAAAIALDQAAAAAAAAAXGgAAAAAAAAAuNAAAAAAAAABcaAAAAAAAAAC40AAAAAAAAABwoQEAAAAAAADgQgMAAAAAAADAhQYAAAAAAACACw0AAAAAAAAAFxoAAAAAAAAALjQAAAAAAAAAXGgAAAAAAAAAuNAAAAAAAAAAcKEBAAAAAAAA4EIDAAAAAAAAwIUGAAAAAAAAgAsNAAAAAAAAABcaAAAAAAAAAC40AAAAAAAAAFxoAAAAAAAAALjQAAAAAAAAAHChAQAAAAAAAOBCAwAAAAAAAMCFBgAAAAAAAIALDQAAAAAAAAAXGgAAAAAAAAAuNAAAAAAAAABcaAAAAAAAAAC40AAAAAAAAABwYYkQHKd0AqxtAAAAAElFTkSuQmCC",url:"https://www.saucedemo.com/"},VX=ee(uv()),XX=()=>(0,VX.jsx)("div",{className:"logo",children:(0,VX.jsx)("img",{alt:"Midscene_logo",src:"https://lf3-static.bytednsdoc.com/obj/eden-cn/vhaeh7vhabf/Midscene.png"})}),KX=ee(re()),qX=(ee(uv()),"http://localhost:5800"),QX=()=>{const[e,t]=(0,KX.useState)(!1);return(0,KX.useEffect)((()=>{let e=!1;return Promise.resolve(te(void 0,null,(function*(){for(;!e;){const e=yield te(void 0,null,(function*(){try{return 200===(yield fetch(`${qX}/status`)).status}catch(sK){return!1}}));t(!!e),yield new Promise((e=>setTimeout(e,1e3)))}}))),()=>{e=!0}}),[]),e},YX=ee(uv()),ZX=(e,t,n)=>te(void 0,null,(function*(){return(yield fetch(`${qX}/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({context:e,type:t,prompt:n})})).json()})),$X="playground-user-prompt",JX="playground-user-type",eK=(e,t)=>{localStorage.setItem($X,e),localStorage.setItem(JX,t)},tK=()=>localStorage.getItem($X),nK=()=>localStorage.getItem(JX),rK=()=>{const e=window.location.pathname.match(/^\/playground\/([a-zA-Z0-9-]+)$/);return e?e[1]:null},{TextArea:iK}=QL;function oK({propsContext:e,hideLogo:t}){const n=rK(),[r,i]=(0,UU.useState)(e||null),[o,a]=(0,UU.useState)(!1),[s,l]=(0,UU.useState)(null),[u]=lU.useForm(),[c,d]=(0,UU.useState)(null),[f,p]=(0,UU.useState)(0),h=QX();(0,UU.useEffect)((()=>{!r&&n&&fetch(`${qX}/context/${n}`).then((e=>e.json())).then((e=>{const t=JSON.parse(e.context);i(t)}))}),[n]);const m=(0,UU.useCallback)((()=>te(this,null,(function*(){const e=u.getFieldsValue();if(!e.prompt)return void NU.error("Prompt is required");eK(e.prompt,e.type),a(!0),l(null);let t=null;try{t=yield ZX(r,e.type,e.prompt),l(t)}catch(sK){console.error(sK),l({error:"Failed to run the prompt, please check the server console for more details",result:null,dump:null})}if(a(!1),"aiAction"===e.type&&(null==t?void 0:t.dump)){const e=TX(t.dump);d(e),p((e=>e+1))}else d(null)}))),[u,r]);let A="What do you want to do?";const g=lU.useWatch("type",u);"aiQuery"===g?A="What do you want to query?":"aiAssert"===g&&(A="What do you want to assert?");const v=!r||o||!h;(0,UU.useEffect)((()=>{const e=e=>{"Enter"===e.key&&m()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[m]);let y=(0,YX.jsx)(vB,{image:null,description:(0,YX.jsxs)(YX.Fragment,{children:["Welcome to Midscene.js Playground",(0,YX.jsx)("br",{}),!v&&"You can run something now"]})});o?y=(0,YX.jsx)(PU,{spinning:o,indicator:(0,YX.jsx)(fx,{style:{fontSize:48},spin:!0})}):c?y=(0,YX.jsx)(HX,{replayScripts:c.scripts,imageWidth:c.width,imageHeight:c.height},f):(null==s?void 0:s.result)?y="string"==typeof(null==s?void 0:s.result)?(0,YX.jsx)("pre",{children:null==s?void 0:s.result}):(0,YX.jsx)("pre",{children:JSON.stringify(null==s?void 0:s.result,null,2)}):(null==s?void 0:s.error)&&(y=(0,YX.jsx)("pre",{children:null==s?void 0:s.error}));const b=h?(0,YX.jsxs)(YX.Fragment,{children:[FX("connected")," Connected"]}):(0,YX.jsxs)(YX.Fragment,{children:[FX("failed")," Connection failed"]});return(0,YX.jsxs)("div",{className:"playground-container",children:[(0,YX.jsx)(i_,{children:(0,YX.jsx)("title",{children:"Playground - Midscene.js"})}),(0,YX.jsxs)(mH,{autoSaveId:"playground-layout",direction:"horizontal",children:[(0,YX.jsxs)(cG,{defaultSize:32,maxSize:60,minSize:20,className:"playground-left-panel",children:[!t&&(0,YX.jsx)("div",{className:"playground-header",children:(0,YX.jsx)(XX,{})}),(0,YX.jsx)(lU,{form:u,onFinish:m,initialValues:{type:nK()||"aiAction",prompt:tK()||""},children:(0,YX.jsxs)("div",{className:"playground-form-container",children:[(0,YX.jsxs)("div",{className:"form-part",children:[(0,YX.jsx)("h3",{children:"Playground Server"}),(0,YX.jsx)("div",{children:b})]}),(0,YX.jsxs)("div",{className:"form-part context-panel",children:[(0,YX.jsx)("h3",{children:"UI Context"}),r?(0,YX.jsx)(zX,{uiContext:r,hideController:!0,disableInteraction:!0}):(0,YX.jsxs)("div",{children:[FX("failed")," No UI Context"," ",(0,YX.jsx)(BO,{type:"link",onClick:()=>i(WX),children:"Load Demo"}),(0,YX.jsx)("p",{children:"To load the UI context, you can either use the demo data above, or click the 'Send to Playground' in the report page."})]})]}),(0,YX.jsxs)("div",{className:"form-part",children:[(0,YX.jsx)("h3",{children:"Type"}),(0,YX.jsx)(lU.Item,{name:"type",children:(0,YX.jsxs)(IF.Group,{buttonStyle:"solid",children:[(0,YX.jsx)(IF.Button,{value:"aiAction",children:"Action"}),(0,YX.jsx)(IF.Button,{value:"aiQuery",children:"Query"}),(0,YX.jsx)(IF.Button,{value:"aiAssert",children:"Assert"})]})})]}),(0,YX.jsxs)("div",{className:"form-part input-wrapper",children:[(0,YX.jsx)("h3",{children:"Prompt"}),(0,YX.jsxs)("div",{className:"main-side-console-input",children:[(0,YX.jsx)(lU.Item,{name:"prompt",children:(0,YX.jsx)(iK,{rows:2,placeholder:A})}),(0,YX.jsx)(BO,{type:"primary",icon:(0,YX.jsx)(Fx,{}),onClick:m,disabled:v,children:"Run"})]})]})]})})]}),(0,YX.jsx)(vH,{className:"panel-resize-handle"}),(0,YX.jsx)(cG,{children:(0,YX.jsx)("div",{className:"main-side-result",children:y})})]})]})}var aK={mount:function(e){const t=document.getElementById(e);GU.default.createRoot(t).render((0,YX.jsx)(oK,{}))},Playground:oK}},"object"==typeof module&&"object"==typeof module.exports?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)&&t(e.midscenePlayground={});
232
- </script>
233
-
234
- </head>
235
-
236
- <body>
237
- <div id="app" style="width: 100vw; height: 100vh;"></div>
238
- <script>
239
- console.log(midscenePlayground);
240
- midscenePlayground.default.mount('app');
241
- </script>
242
-
243
- </body>
244
-
245
- </html>