patreon-dl 3.6.0 → 3.7.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.
Files changed (76) hide show
  1. package/NOTICE +23 -0
  2. package/README.md +16 -5
  3. package/bin/EmbedlyDownloader.js +1 -1
  4. package/bin/patreon-dl-vimeo.js +7 -4
  5. package/dist/browse/api/CampaignAPIMixin.d.ts +1 -1
  6. package/dist/browse/api/ContentAPIMixin.d.ts +4 -1
  7. package/dist/browse/api/ContentAPIMixin.js +44 -11
  8. package/dist/browse/api/ContentAPIMixin.js.map +1 -1
  9. package/dist/browse/api/FilterAPIMixin.d.ts +1 -1
  10. package/dist/browse/api/SettingsAPIMixin.d.ts +1 -0
  11. package/dist/browse/api/SettingsAPIMixin.js +4 -2
  12. package/dist/browse/api/SettingsAPIMixin.js.map +1 -1
  13. package/dist/browse/api/index.d.ts +12 -6
  14. package/dist/browse/db/CampaignDBMixin.d.ts +3 -3
  15. package/dist/browse/db/ContentDBMixin.d.ts +14 -14
  16. package/dist/browse/db/ContentDBMixin.js +12 -5
  17. package/dist/browse/db/ContentDBMixin.js.map +1 -1
  18. package/dist/browse/db/index.d.ts +17 -17
  19. package/dist/browse/server/handler/SettingsAPIRequestHandler.js +2 -1
  20. package/dist/browse/server/handler/SettingsAPIRequestHandler.js.map +1 -1
  21. package/dist/browse/types/Settings.d.ts +3 -0
  22. package/dist/browse/types/Settings.js.map +1 -1
  23. package/dist/browse/web/assets/index-CW4CUoWl.css +1 -0
  24. package/dist/browse/web/assets/{index-Dw_64hkR.js → index-CziUWlSw.js} +31 -31
  25. package/dist/browse/web/index.html +2 -2
  26. package/dist/cli/CLIOptions.js +10 -1
  27. package/dist/cli/CLIOptions.js.map +1 -1
  28. package/dist/cli/CommandLineParser.d.ts +1 -0
  29. package/dist/cli/CommandLineParser.js +11 -3
  30. package/dist/cli/CommandLineParser.js.map +1 -1
  31. package/dist/downloaders/Bootstrap.d.ts +6 -0
  32. package/dist/downloaders/Bootstrap.js +26 -0
  33. package/dist/downloaders/Bootstrap.js.map +1 -1
  34. package/dist/downloaders/Downloader.d.ts +5 -4
  35. package/dist/downloaders/Downloader.js +3 -1
  36. package/dist/downloaders/Downloader.js.map +1 -1
  37. package/dist/downloaders/InitialData.js +1 -0
  38. package/dist/downloaders/InitialData.js.map +1 -1
  39. package/dist/downloaders/PostDownloader.js +16 -0
  40. package/dist/downloaders/PostDownloader.js.map +1 -1
  41. package/dist/downloaders/PostsFetcher.js +29 -12
  42. package/dist/downloaders/PostsFetcher.js.map +1 -1
  43. package/dist/downloaders/ProductDownloader.js +8 -0
  44. package/dist/downloaders/ProductDownloader.js.map +1 -1
  45. package/dist/downloaders/ProductsFetcher.js +32 -15
  46. package/dist/downloaders/ProductsFetcher.js.map +1 -1
  47. package/dist/downloaders/task/DownloadTaskFactory.d.ts +4 -0
  48. package/dist/downloaders/task/DownloadTaskFactory.js +3 -2
  49. package/dist/downloaders/task/DownloadTaskFactory.js.map +1 -1
  50. package/dist/downloaders/task/YouTubeDownloadTask.js +7 -2
  51. package/dist/downloaders/task/YouTubeDownloadTask.js.map +1 -1
  52. package/dist/entities/Post.d.ts +1 -1
  53. package/dist/entities/Post.js.map +1 -1
  54. package/dist/entities/Product.d.ts +1 -1
  55. package/dist/entities/Product.js.map +1 -1
  56. package/dist/parsers/PostParser.d.ts +1 -1
  57. package/dist/parsers/PostParser.js +69 -13
  58. package/dist/parsers/PostParser.js.map +1 -1
  59. package/dist/parsers/ProductParser.d.ts +1 -1
  60. package/dist/parsers/ProductParser.js +5 -6
  61. package/dist/parsers/ProductParser.js.map +1 -1
  62. package/dist/utils/FilenameFormatHelper.d.ts +2 -2
  63. package/dist/utils/FilenameFormatHelper.js +45 -2
  64. package/dist/utils/FilenameFormatHelper.js.map +1 -1
  65. package/dist/utils/MediaFilenameResolver.d.ts +4 -1
  66. package/dist/utils/MediaFilenameResolver.js +6 -4
  67. package/dist/utils/MediaFilenameResolver.js.map +1 -1
  68. package/dist/utils/URLHelper.js +8 -8
  69. package/dist/utils/URLHelper.js.map +1 -1
  70. package/dist/utils/YouTubeCredentialsCapturer.js +1 -1
  71. package/dist/utils/YouTubeCredentialsCapturer.js.map +1 -1
  72. package/dist/utils/yt/InnertubeLoader.d.ts +19 -1
  73. package/dist/utils/yt/InnertubeLoader.js +55 -15
  74. package/dist/utils/yt/InnertubeLoader.js.map +1 -1
  75. package/package.json +2 -1
  76. package/dist/browse/web/assets/index-DjOKbT1U.css +0 -1
@@ -1,4 +1,4 @@
1
- var gb=r=>{throw TypeError(r)};var $f=(r,t,a)=>t.has(r)||gb("Cannot "+a);var Vn=(r,t,a)=>($f(r,t,"read from private field"),a?a.call(r):t.get(r)),Sn=(r,t,a)=>t.has(r)?gb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,a),Yn=(r,t,a,l)=>($f(r,t,"write to private field"),l?l.call(r,a):t.set(r,a),a),aa=(r,t,a)=>($f(r,t,"access private method"),a);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function a(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(o){if(o.ep)return;o.ep=!0;const u=a(o);fetch(o.href,u)}})();var xr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function X1(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var a=function l(){return this instanceof l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(r).forEach(function(l){var o=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(a,l,o.get?o:{enumerable:!0,get:function(){return r[l]}})}),a}var If={exports:{}},Bl={};/**
1
+ var mb=r=>{throw TypeError(r)};var $f=(r,t,a)=>t.has(r)||mb("Cannot "+a);var Vn=(r,t,a)=>($f(r,t,"read from private field"),a?a.call(r):t.get(r)),Sn=(r,t,a)=>t.has(r)?mb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,a),Wn=(r,t,a,l)=>($f(r,t,"write to private field"),l?l.call(r,a):t.set(r,a),a),ia=(r,t,a)=>($f(r,t,"access private method"),a);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function a(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(o){if(o.ep)return;o.ep=!0;const u=a(o);fetch(o.href,u)}})();var xr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Y1(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var a=function l(){return this instanceof l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(r).forEach(function(l){var o=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(a,l,o.get?o:{enumerable:!0,get:function(){return r[l]}})}),a}var If={exports:{}},Bl={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ var gb=r=>{throw TypeError(r)};var $f=(r,t,a)=>t.has(r)||gb("Cannot "+a);var Vn=
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var mb;function uC(){if(mb)return Bl;mb=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(l,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var d in o)d!=="key"&&(u[d]=o[d])}else u=o;return o=u.ref,{$$typeof:r,type:l,key:c,ref:o!==void 0?o:null,props:u}}return Bl.Fragment=t,Bl.jsx=a,Bl.jsxs=a,Bl}var vb;function cC(){return vb||(vb=1,If.exports=uC()),If.exports}var S=cC(),qf={exports:{}},$l={},Uf={exports:{}},Gf={};/**
9
+ */var gb;function uC(){if(gb)return Bl;gb=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(l,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var d in o)d!=="key"&&(u[d]=o[d])}else u=o;return o=u.ref,{$$typeof:r,type:l,key:c,ref:o!==void 0?o:null,props:u}}return Bl.Fragment=t,Bl.jsx=a,Bl.jsxs=a,Bl}var vb;function cC(){return vb||(vb=1,If.exports=uC()),If.exports}var S=cC(),qf={exports:{}},$l={},Uf={exports:{}},Gf={};/**
10
10
  * @license React
11
11
  * scheduler.production.js
12
12
  *
@@ -14,7 +14,7 @@ var gb=r=>{throw TypeError(r)};var $f=(r,t,a)=>t.has(r)||gb("Cannot "+a);var Vn=
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var yb;function fC(){return yb||(yb=1,function(r){function t(L,b){var te=L.length;L.push(b);e:for(;0<te;){var R=te-1>>>1,v=L[R];if(0<o(v,b))L[R]=b,L[te]=v,te=R;else break e}}function a(L){return L.length===0?null:L[0]}function l(L){if(L.length===0)return null;var b=L[0],te=L.pop();if(te!==b){L[0]=te;e:for(var R=0,v=L.length,C=v>>>1;R<C;){var Y=2*(R+1)-1,J=L[Y],H=Y+1,U=L[H];if(0>o(J,te))H<v&&0>o(U,J)?(L[R]=U,L[H]=te,R=H):(L[R]=J,L[Y]=te,R=Y);else if(H<v&&0>o(U,te))L[R]=U,L[H]=te,R=H;else break e}}return b}function o(L,b){var te=L.sortIndex-b.sortIndex;return te!==0?te:L.id-b.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;r.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();r.unstable_now=function(){return c.now()-d}}var h=[],p=[],m=1,y=null,x=3,T=!1,N=!1,_=!1,z=!1,$=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function Q(L){for(var b=a(p);b!==null;){if(b.callback===null)l(p);else if(b.startTime<=L)l(p),b.sortIndex=b.expirationTime,t(h,b);else break;b=a(p)}}function A(L){if(_=!1,Q(L),!N)if(a(h)!==null)N=!0,M||(M=!0,B());else{var b=a(p);b!==null&&G(A,b.startTime-L)}}var M=!1,P=-1,F=5,D=-1;function E(){return z?!0:!(r.unstable_now()-D<F)}function W(){if(z=!1,M){var L=r.unstable_now();D=L;var b=!0;try{e:{N=!1,_&&(_=!1,V(P),P=-1),T=!0;var te=x;try{t:{for(Q(L),y=a(h);y!==null&&!(y.expirationTime>L&&E());){var R=y.callback;if(typeof R=="function"){y.callback=null,x=y.priorityLevel;var v=R(y.expirationTime<=L);if(L=r.unstable_now(),typeof v=="function"){y.callback=v,Q(L),b=!0;break t}y===a(h)&&l(h),Q(L)}else l(h);y=a(h)}if(y!==null)b=!0;else{var C=a(p);C!==null&&G(A,C.startTime-L),b=!1}}break e}finally{y=null,x=te,T=!1}b=void 0}}finally{b?B():M=!1}}}var B;if(typeof I=="function")B=function(){I(W)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,k=q.port2;q.port1.onmessage=W,B=function(){k.postMessage(null)}}else B=function(){$(W,0)};function G(L,b){P=$(function(){L(r.unstable_now())},b)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(L){L.callback=null},r.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<L?Math.floor(1e3/L):5},r.unstable_getCurrentPriorityLevel=function(){return x},r.unstable_next=function(L){switch(x){case 1:case 2:case 3:var b=3;break;default:b=x}var te=x;x=b;try{return L()}finally{x=te}},r.unstable_requestPaint=function(){z=!0},r.unstable_runWithPriority=function(L,b){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var te=x;x=L;try{return b()}finally{x=te}},r.unstable_scheduleCallback=function(L,b,te){var R=r.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?R+te:R):te=R,L){case 1:var v=-1;break;case 2:v=250;break;case 5:v=1073741823;break;case 4:v=1e4;break;default:v=5e3}return v=te+v,L={id:m++,callback:b,priorityLevel:L,startTime:te,expirationTime:v,sortIndex:-1},te>R?(L.sortIndex=te,t(p,L),a(h)===null&&L===a(p)&&(_?(V(P),P=-1):_=!0,G(A,te-R))):(L.sortIndex=v,t(h,L),N||T||(N=!0,M||(M=!0,B()))),L},r.unstable_shouldYield=E,r.unstable_wrapCallback=function(L){var b=x;return function(){var te=x;x=b;try{return L.apply(this,arguments)}finally{x=te}}}}(Gf)),Gf}var bb;function dC(){return bb||(bb=1,Uf.exports=fC()),Uf.exports}var Vf={exports:{}},He={};/**
17
+ */var yb;function fC(){return yb||(yb=1,function(r){function t(L,b){var te=L.length;L.push(b);e:for(;0<te;){var R=te-1>>>1,y=L[R];if(0<o(y,b))L[R]=b,L[te]=y,te=R;else break e}}function a(L){return L.length===0?null:L[0]}function l(L){if(L.length===0)return null;var b=L[0],te=L.pop();if(te!==b){L[0]=te;e:for(var R=0,y=L.length,C=y>>>1;R<C;){var W=2*(R+1)-1,J=L[W],H=W+1,U=L[H];if(0>o(J,te))H<y&&0>o(U,J)?(L[R]=U,L[H]=te,R=H):(L[R]=J,L[W]=te,R=W);else if(H<y&&0>o(U,te))L[R]=U,L[H]=te,R=H;else break e}}return b}function o(L,b){var te=L.sortIndex-b.sortIndex;return te!==0?te:L.id-b.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;r.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();r.unstable_now=function(){return c.now()-d}}var h=[],p=[],g=1,v=null,x=3,T=!1,N=!1,_=!1,z=!1,$=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function Q(L){for(var b=a(p);b!==null;){if(b.callback===null)l(p);else if(b.startTime<=L)l(p),b.sortIndex=b.expirationTime,t(h,b);else break;b=a(p)}}function j(L){if(_=!1,Q(L),!N)if(a(h)!==null)N=!0,M||(M=!0,B());else{var b=a(p);b!==null&&G(j,b.startTime-L)}}var M=!1,P=-1,F=5,D=-1;function E(){return z?!0:!(r.unstable_now()-D<F)}function X(){if(z=!1,M){var L=r.unstable_now();D=L;var b=!0;try{e:{N=!1,_&&(_=!1,V(P),P=-1),T=!0;var te=x;try{t:{for(Q(L),v=a(h);v!==null&&!(v.expirationTime>L&&E());){var R=v.callback;if(typeof R=="function"){v.callback=null,x=v.priorityLevel;var y=R(v.expirationTime<=L);if(L=r.unstable_now(),typeof y=="function"){v.callback=y,Q(L),b=!0;break t}v===a(h)&&l(h),Q(L)}else l(h);v=a(h)}if(v!==null)b=!0;else{var C=a(p);C!==null&&G(j,C.startTime-L),b=!1}}break e}finally{v=null,x=te,T=!1}b=void 0}}finally{b?B():M=!1}}}var B;if(typeof I=="function")B=function(){I(X)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,k=q.port2;q.port1.onmessage=X,B=function(){k.postMessage(null)}}else B=function(){$(X,0)};function G(L,b){P=$(function(){L(r.unstable_now())},b)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(L){L.callback=null},r.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<L?Math.floor(1e3/L):5},r.unstable_getCurrentPriorityLevel=function(){return x},r.unstable_next=function(L){switch(x){case 1:case 2:case 3:var b=3;break;default:b=x}var te=x;x=b;try{return L()}finally{x=te}},r.unstable_requestPaint=function(){z=!0},r.unstable_runWithPriority=function(L,b){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var te=x;x=L;try{return b()}finally{x=te}},r.unstable_scheduleCallback=function(L,b,te){var R=r.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?R+te:R):te=R,L){case 1:var y=-1;break;case 2:y=250;break;case 5:y=1073741823;break;case 4:y=1e4;break;default:y=5e3}return y=te+y,L={id:g++,callback:b,priorityLevel:L,startTime:te,expirationTime:y,sortIndex:-1},te>R?(L.sortIndex=te,t(p,L),a(h)===null&&L===a(p)&&(_?(V(P),P=-1):_=!0,G(j,te-R))):(L.sortIndex=y,t(h,L),N||T||(N=!0,M||(M=!0,B()))),L},r.unstable_shouldYield=E,r.unstable_wrapCallback=function(L){var b=x;return function(){var te=x;x=b;try{return L.apply(this,arguments)}finally{x=te}}}}(Gf)),Gf}var bb;function dC(){return bb||(bb=1,Uf.exports=fC()),Uf.exports}var Vf={exports:{}},He={};/**
18
18
  * @license React
19
19
  * react.production.js
20
20
  *
@@ -22,7 +22,7 @@ var gb=r=>{throw TypeError(r)};var $f=(r,t,a)=>t.has(r)||gb("Cannot "+a);var Vn=
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Sb;function hC(){if(Sb)return He;Sb=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function x(v){return v===null||typeof v!="object"?null:(v=y&&v[y]||v["@@iterator"],typeof v=="function"?v:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,_={};function z(v,C,Y){this.props=v,this.context=C,this.refs=_,this.updater=Y||T}z.prototype.isReactComponent={},z.prototype.setState=function(v,C){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,C,"setState")},z.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function $(){}$.prototype=z.prototype;function V(v,C,Y){this.props=v,this.context=C,this.refs=_,this.updater=Y||T}var I=V.prototype=new $;I.constructor=V,N(I,z.prototype),I.isPureReactComponent=!0;var Q=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},M=Object.prototype.hasOwnProperty;function P(v,C,Y,J,H,U){return Y=U.ref,{$$typeof:r,type:v,key:C,ref:Y!==void 0?Y:null,props:U}}function F(v,C){return P(v.type,C,void 0,void 0,void 0,v.props)}function D(v){return typeof v=="object"&&v!==null&&v.$$typeof===r}function E(v){var C={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(Y){return C[Y]})}var W=/\/+/g;function B(v,C){return typeof v=="object"&&v!==null&&v.key!=null?E(""+v.key):C.toString(36)}function q(){}function k(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(q,q):(v.status="pending",v.then(function(C){v.status==="pending"&&(v.status="fulfilled",v.value=C)},function(C){v.status==="pending"&&(v.status="rejected",v.reason=C)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function G(v,C,Y,J,H){var U=typeof v;(U==="undefined"||U==="boolean")&&(v=null);var Z=!1;if(v===null)Z=!0;else switch(U){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(v.$$typeof){case r:case t:Z=!0;break;case m:return Z=v._init,G(Z(v._payload),C,Y,J,H)}}if(Z)return H=H(v),Z=J===""?"."+B(v,0):J,Q(H)?(Y="",Z!=null&&(Y=Z.replace(W,"$&/")+"/"),G(H,C,Y,"",function(ge){return ge})):H!=null&&(D(H)&&(H=F(H,Y+(H.key==null||v&&v.key===H.key?"":(""+H.key).replace(W,"$&/")+"/")+Z)),C.push(H)),1;Z=0;var re=J===""?".":J+":";if(Q(v))for(var ue=0;ue<v.length;ue++)J=v[ue],U=re+B(J,ue),Z+=G(J,C,Y,U,H);else if(ue=x(v),typeof ue=="function")for(v=ue.call(v),ue=0;!(J=v.next()).done;)J=J.value,U=re+B(J,ue++),Z+=G(J,C,Y,U,H);else if(U==="object"){if(typeof v.then=="function")return G(k(v),C,Y,J,H);throw C=String(v),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return Z}function L(v,C,Y){if(v==null)return v;var J=[],H=0;return G(v,J,"","",function(U){return C.call(Y,U,H++)}),J}function b(v){if(v._status===-1){var C=v._result;C=C(),C.then(function(Y){(v._status===0||v._status===-1)&&(v._status=1,v._result=Y)},function(Y){(v._status===0||v._status===-1)&&(v._status=2,v._result=Y)}),v._status===-1&&(v._status=0,v._result=C)}if(v._status===1)return v._result.default;throw v._result}var te=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)};function R(){}return He.Children={map:L,forEach:function(v,C,Y){L(v,function(){C.apply(this,arguments)},Y)},count:function(v){var C=0;return L(v,function(){C++}),C},toArray:function(v){return L(v,function(C){return C})||[]},only:function(v){if(!D(v))throw Error("React.Children.only expected to receive a single React element child.");return v}},He.Component=z,He.Fragment=a,He.Profiler=o,He.PureComponent=V,He.StrictMode=l,He.Suspense=h,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,He.__COMPILER_RUNTIME={__proto__:null,c:function(v){return A.H.useMemoCache(v)}},He.cache=function(v){return function(){return v.apply(null,arguments)}},He.cloneElement=function(v,C,Y){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var J=N({},v.props),H=v.key,U=void 0;if(C!=null)for(Z in C.ref!==void 0&&(U=void 0),C.key!==void 0&&(H=""+C.key),C)!M.call(C,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&C.ref===void 0||(J[Z]=C[Z]);var Z=arguments.length-2;if(Z===1)J.children=Y;else if(1<Z){for(var re=Array(Z),ue=0;ue<Z;ue++)re[ue]=arguments[ue+2];J.children=re}return P(v.type,H,void 0,void 0,U,J)},He.createContext=function(v){return v={$$typeof:c,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:u,_context:v},v},He.createElement=function(v,C,Y){var J,H={},U=null;if(C!=null)for(J in C.key!==void 0&&(U=""+C.key),C)M.call(C,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(H[J]=C[J]);var Z=arguments.length-2;if(Z===1)H.children=Y;else if(1<Z){for(var re=Array(Z),ue=0;ue<Z;ue++)re[ue]=arguments[ue+2];H.children=re}if(v&&v.defaultProps)for(J in Z=v.defaultProps,Z)H[J]===void 0&&(H[J]=Z[J]);return P(v,U,void 0,void 0,null,H)},He.createRef=function(){return{current:null}},He.forwardRef=function(v){return{$$typeof:d,render:v}},He.isValidElement=D,He.lazy=function(v){return{$$typeof:m,_payload:{_status:-1,_result:v},_init:b}},He.memo=function(v,C){return{$$typeof:p,type:v,compare:C===void 0?null:C}},He.startTransition=function(v){var C=A.T,Y={};A.T=Y;try{var J=v(),H=A.S;H!==null&&H(Y,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(R,te)}catch(U){te(U)}finally{A.T=C}},He.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},He.use=function(v){return A.H.use(v)},He.useActionState=function(v,C,Y){return A.H.useActionState(v,C,Y)},He.useCallback=function(v,C){return A.H.useCallback(v,C)},He.useContext=function(v){return A.H.useContext(v)},He.useDebugValue=function(){},He.useDeferredValue=function(v,C){return A.H.useDeferredValue(v,C)},He.useEffect=function(v,C,Y){var J=A.H;if(typeof Y=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(v,C)},He.useId=function(){return A.H.useId()},He.useImperativeHandle=function(v,C,Y){return A.H.useImperativeHandle(v,C,Y)},He.useInsertionEffect=function(v,C){return A.H.useInsertionEffect(v,C)},He.useLayoutEffect=function(v,C){return A.H.useLayoutEffect(v,C)},He.useMemo=function(v,C){return A.H.useMemo(v,C)},He.useOptimistic=function(v,C){return A.H.useOptimistic(v,C)},He.useReducer=function(v,C,Y){return A.H.useReducer(v,C,Y)},He.useRef=function(v){return A.H.useRef(v)},He.useState=function(v){return A.H.useState(v)},He.useSyncExternalStore=function(v,C,Y){return A.H.useSyncExternalStore(v,C,Y)},He.useTransition=function(){return A.H.useTransition()},He.version="19.1.0",He}var wb;function Cn(){return wb||(wb=1,Vf.exports=hC()),Vf.exports}var Yf={exports:{}},kt={};/**
25
+ */var Sb;function hC(){if(Sb)return He;Sb=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function x(y){return y===null||typeof y!="object"?null:(y=v&&y[v]||y["@@iterator"],typeof y=="function"?y:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,_={};function z(y,C,W){this.props=y,this.context=C,this.refs=_,this.updater=W||T}z.prototype.isReactComponent={},z.prototype.setState=function(y,C){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,C,"setState")},z.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function $(){}$.prototype=z.prototype;function V(y,C,W){this.props=y,this.context=C,this.refs=_,this.updater=W||T}var I=V.prototype=new $;I.constructor=V,N(I,z.prototype),I.isPureReactComponent=!0;var Q=Array.isArray,j={H:null,A:null,T:null,S:null,V:null},M=Object.prototype.hasOwnProperty;function P(y,C,W,J,H,U){return W=U.ref,{$$typeof:r,type:y,key:C,ref:W!==void 0?W:null,props:U}}function F(y,C){return P(y.type,C,void 0,void 0,void 0,y.props)}function D(y){return typeof y=="object"&&y!==null&&y.$$typeof===r}function E(y){var C={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(W){return C[W]})}var X=/\/+/g;function B(y,C){return typeof y=="object"&&y!==null&&y.key!=null?E(""+y.key):C.toString(36)}function q(){}function k(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(q,q):(y.status="pending",y.then(function(C){y.status==="pending"&&(y.status="fulfilled",y.value=C)},function(C){y.status==="pending"&&(y.status="rejected",y.reason=C)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function G(y,C,W,J,H){var U=typeof y;(U==="undefined"||U==="boolean")&&(y=null);var Z=!1;if(y===null)Z=!0;else switch(U){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(y.$$typeof){case r:case t:Z=!0;break;case g:return Z=y._init,G(Z(y._payload),C,W,J,H)}}if(Z)return H=H(y),Z=J===""?"."+B(y,0):J,Q(H)?(W="",Z!=null&&(W=Z.replace(X,"$&/")+"/"),G(H,C,W,"",function(me){return me})):H!=null&&(D(H)&&(H=F(H,W+(H.key==null||y&&y.key===H.key?"":(""+H.key).replace(X,"$&/")+"/")+Z)),C.push(H)),1;Z=0;var re=J===""?".":J+":";if(Q(y))for(var ue=0;ue<y.length;ue++)J=y[ue],U=re+B(J,ue),Z+=G(J,C,W,U,H);else if(ue=x(y),typeof ue=="function")for(y=ue.call(y),ue=0;!(J=y.next()).done;)J=J.value,U=re+B(J,ue++),Z+=G(J,C,W,U,H);else if(U==="object"){if(typeof y.then=="function")return G(k(y),C,W,J,H);throw C=String(y),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return Z}function L(y,C,W){if(y==null)return y;var J=[],H=0;return G(y,J,"","",function(U){return C.call(W,U,H++)}),J}function b(y){if(y._status===-1){var C=y._result;C=C(),C.then(function(W){(y._status===0||y._status===-1)&&(y._status=1,y._result=W)},function(W){(y._status===0||y._status===-1)&&(y._status=2,y._result=W)}),y._status===-1&&(y._status=0,y._result=C)}if(y._status===1)return y._result.default;throw y._result}var te=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)};function R(){}return He.Children={map:L,forEach:function(y,C,W){L(y,function(){C.apply(this,arguments)},W)},count:function(y){var C=0;return L(y,function(){C++}),C},toArray:function(y){return L(y,function(C){return C})||[]},only:function(y){if(!D(y))throw Error("React.Children.only expected to receive a single React element child.");return y}},He.Component=z,He.Fragment=a,He.Profiler=o,He.PureComponent=V,He.StrictMode=l,He.Suspense=h,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,He.__COMPILER_RUNTIME={__proto__:null,c:function(y){return j.H.useMemoCache(y)}},He.cache=function(y){return function(){return y.apply(null,arguments)}},He.cloneElement=function(y,C,W){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var J=N({},y.props),H=y.key,U=void 0;if(C!=null)for(Z in C.ref!==void 0&&(U=void 0),C.key!==void 0&&(H=""+C.key),C)!M.call(C,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&C.ref===void 0||(J[Z]=C[Z]);var Z=arguments.length-2;if(Z===1)J.children=W;else if(1<Z){for(var re=Array(Z),ue=0;ue<Z;ue++)re[ue]=arguments[ue+2];J.children=re}return P(y.type,H,void 0,void 0,U,J)},He.createContext=function(y){return y={$$typeof:c,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:u,_context:y},y},He.createElement=function(y,C,W){var J,H={},U=null;if(C!=null)for(J in C.key!==void 0&&(U=""+C.key),C)M.call(C,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(H[J]=C[J]);var Z=arguments.length-2;if(Z===1)H.children=W;else if(1<Z){for(var re=Array(Z),ue=0;ue<Z;ue++)re[ue]=arguments[ue+2];H.children=re}if(y&&y.defaultProps)for(J in Z=y.defaultProps,Z)H[J]===void 0&&(H[J]=Z[J]);return P(y,U,void 0,void 0,null,H)},He.createRef=function(){return{current:null}},He.forwardRef=function(y){return{$$typeof:d,render:y}},He.isValidElement=D,He.lazy=function(y){return{$$typeof:g,_payload:{_status:-1,_result:y},_init:b}},He.memo=function(y,C){return{$$typeof:p,type:y,compare:C===void 0?null:C}},He.startTransition=function(y){var C=j.T,W={};j.T=W;try{var J=y(),H=j.S;H!==null&&H(W,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(R,te)}catch(U){te(U)}finally{j.T=C}},He.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},He.use=function(y){return j.H.use(y)},He.useActionState=function(y,C,W){return j.H.useActionState(y,C,W)},He.useCallback=function(y,C){return j.H.useCallback(y,C)},He.useContext=function(y){return j.H.useContext(y)},He.useDebugValue=function(){},He.useDeferredValue=function(y,C){return j.H.useDeferredValue(y,C)},He.useEffect=function(y,C,W){var J=j.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(y,C)},He.useId=function(){return j.H.useId()},He.useImperativeHandle=function(y,C,W){return j.H.useImperativeHandle(y,C,W)},He.useInsertionEffect=function(y,C){return j.H.useInsertionEffect(y,C)},He.useLayoutEffect=function(y,C){return j.H.useLayoutEffect(y,C)},He.useMemo=function(y,C){return j.H.useMemo(y,C)},He.useOptimistic=function(y,C){return j.H.useOptimistic(y,C)},He.useReducer=function(y,C,W){return j.H.useReducer(y,C,W)},He.useRef=function(y){return j.H.useRef(y)},He.useState=function(y){return j.H.useState(y)},He.useSyncExternalStore=function(y,C,W){return j.H.useSyncExternalStore(y,C,W)},He.useTransition=function(){return j.H.useTransition()},He.version="19.1.0",He}var wb;function Cn(){return wb||(wb=1,Vf.exports=hC()),Vf.exports}var Wf={exports:{}},Bt={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ var gb=r=>{throw TypeError(r)};var $f=(r,t,a)=>t.has(r)||gb("Cannot "+a);var Vn=
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var xb;function pC(){if(xb)return kt;xb=1;var r=Cn();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var l={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(h,p,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:h,containerInfo:p,implementation:m}}var c=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,kt.createPortal=function(h,p){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return u(h,p,null,m)},kt.flushSync=function(h){var p=c.T,m=l.p;try{if(c.T=null,l.p=2,h)return h()}finally{c.T=p,l.p=m,l.d.f()}},kt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(h,p))},kt.prefetchDNS=function(h){typeof h=="string"&&l.d.D(h)},kt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var m=p.as,y=d(m,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?l.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:T}):m==="script"&&l.d.X(h,{crossOrigin:y,integrity:x,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},kt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=d(p.as,p.crossOrigin);l.d.M(h,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(h)},kt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,y=d(m,p.crossOrigin);l.d.L(h,m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},kt.preloadModule=function(h,p){if(typeof h=="string")if(p){var m=d(p.as,p.crossOrigin);l.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(h)},kt.requestFormReset=function(h){l.d.r(h)},kt.unstable_batchedUpdates=function(h,p){return h(p)},kt.useFormState=function(h,p,m){return c.H.useFormState(h,p,m)},kt.useFormStatus=function(){return c.H.useHostTransitionStatus()},kt.version="19.1.0",kt}var Ob;function W1(){if(Ob)return Yf.exports;Ob=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),Yf.exports=pC(),Yf.exports}/**
33
+ */var xb;function pC(){if(xb)return Bt;xb=1;var r=Cn();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var l={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(h,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:h,containerInfo:p,implementation:g}}var c=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Bt.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return u(h,p,null,g)},Bt.flushSync=function(h){var p=c.T,g=l.p;try{if(c.T=null,l.p=2,h)return h()}finally{c.T=p,l.p=g,l.d.f()}},Bt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(h,p))},Bt.prefetchDNS=function(h){typeof h=="string"&&l.d.D(h)},Bt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,v=d(g,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?l.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:x,fetchPriority:T}):g==="script"&&l.d.X(h,{crossOrigin:v,integrity:x,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Bt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);l.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(h)},Bt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=d(g,p.crossOrigin);l.d.L(h,g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Bt.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=d(p.as,p.crossOrigin);l.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(h)},Bt.requestFormReset=function(h){l.d.r(h)},Bt.unstable_batchedUpdates=function(h,p){return h(p)},Bt.useFormState=function(h,p,g){return c.H.useFormState(h,p,g)},Bt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Bt.version="19.1.0",Bt}var Ob;function X1(){if(Ob)return Wf.exports;Ob=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),Wf.exports=pC(),Wf.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,15 +38,15 @@ var gb=r=>{throw TypeError(r)};var $f=(r,t,a)=>t.has(r)||gb("Cannot "+a);var Vn=
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Eb;function gC(){if(Eb)return $l;Eb=1;var r=dC(),t=Cn(),a=W1();function l(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(u(e)!==e)throw Error(l(188))}function h(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(l(188));return n!==e?null:e}for(var i=e,s=n;;){var f=i.return;if(f===null)break;var g=f.alternate;if(g===null){if(s=f.return,s!==null){i=s;continue}break}if(f.child===g.child){for(g=f.child;g;){if(g===i)return d(f),e;if(g===s)return d(f),n;g=g.sibling}throw Error(l(188))}if(i.return!==s.return)i=f,s=g;else{for(var O=!1,j=f.child;j;){if(j===i){O=!0,i=f,s=g;break}if(j===s){O=!0,s=f,i=g;break}j=j.sibling}if(!O){for(j=g.child;j;){if(j===i){O=!0,i=g,s=f;break}if(j===s){O=!0,s=g,i=f;break}j=j.sibling}if(!O)throw Error(l(189))}}if(i.alternate!==s)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?e:n}function p(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=p(e),n!==null)return n;e=e.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),V=Symbol.for("react.consumer"),I=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),E=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function B(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var q=Symbol.for("react.client.reference");function k(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===q?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case z:return"Profiler";case _:return"StrictMode";case A:return"Suspense";case M:return"SuspenseList";case D:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case I:return(e.displayName||"Context")+".Provider";case V:return(e._context.displayName||"Context")+".Consumer";case Q:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return n=e.displayName||null,n!==null?n:k(e.type)||"Memo";case F:n=e._payload,e=e._init;try{return k(e(n))}catch{}}return null}var G=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,b=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},R=[],v=-1;function C(e){return{current:e}}function Y(e){0>v||(e.current=R[v],R[v]=null,v--)}function J(e,n){v++,R[v]=e.current,e.current=n}var H=C(null),U=C(null),Z=C(null),re=C(null);function ue(e,n){switch(J(Z,n),J(U,e),J(H,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Uy(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Uy(n),e=Gy(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(H),J(H,e)}function ge(){Y(H),Y(U),Y(Z)}function pe(e){e.memoizedState!==null&&J(re,e);var n=H.current,i=Gy(n,e.type);n!==i&&(J(U,e),J(H,i))}function ve(e){U.current===e&&(Y(H),Y(U)),re.current===e&&(Y(re),Ll._currentValue=te)}var he=Object.prototype.hasOwnProperty,me=r.unstable_scheduleCallback,Se=r.unstable_cancelCallback,ye=r.unstable_shouldYield,Re=r.unstable_requestPaint,be=r.unstable_now,Le=r.unstable_getCurrentPriorityLevel,Pe=r.unstable_ImmediatePriority,Te=r.unstable_UserBlockingPriority,ke=r.unstable_NormalPriority,lt=r.unstable_LowPriority,ft=r.unstable_IdlePriority,vt=r.log,Mt=r.unstable_setDisableYieldValue,Ae=null,Be=null;function nt(e){if(typeof vt=="function"&&Mt(e),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(Ae,e)}catch{}}var dt=Math.clz32?Math.clz32:Nu,Ui=Math.log,Lo=Math.LN2;function Nu(e){return e>>>=0,e===0?32:31-(Ui(e)/Lo|0)|0}var Ga=256,Mr=4194304;function cn(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ie(e,n,i){var s=e.pendingLanes;if(s===0)return 0;var f=0,g=e.suspendedLanes,O=e.pingedLanes;e=e.warmLanes;var j=s&134217727;return j!==0?(s=j&~g,s!==0?f=cn(s):(O&=j,O!==0?f=cn(O):i||(i=j&~e,i!==0&&(f=cn(i))))):(j=s&~g,j!==0?f=cn(j):O!==0?f=cn(O):i||(i=s&~e,i!==0&&(f=cn(i)))),f===0?0:n!==0&&n!==f&&(n&g)===0&&(g=f&-f,i=n&-n,g>=i||g===32&&(i&4194048)!==0)?n:f}function se(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ve(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function We(){var e=Ga;return Ga<<=1,(Ga&4194048)===0&&(Ga=256),e}function Ze(){var e=Mr;return Mr<<=1,(Mr&62914560)===0&&(Mr=4194304),e}function ze(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function qt(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tr(e,n,i,s,f,g){var O=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var j=e.entanglements,X=e.expirationTimes,ae=e.hiddenUpdates;for(i=O&~i;0<i;){var ce=31-dt(i),de=1<<ce;j[ce]=0,X[ce]=-1;var le=ae[ce];if(le!==null)for(ae[ce]=null,ce=0;ce<le.length;ce++){var oe=le[ce];oe!==null&&(oe.lane&=-536870913)}i&=~de}s!==0&&Pt(e,s,0),g!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=g&~(O&~n))}function Pt(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-dt(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|i&4194090}function jn(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var s=31-dt(i),f=1<<s;f&n|e[s]&n&&(e[s]|=n),i&=~f}}function da(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Hn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ut(){var e=b.p;return e!==0?e:(e=window.event,e===void 0?32:ub(e.type))}function zo(e,n){var i=b.p;try{return b.p=e,n()}finally{b.p=i}}var An=Math.random().toString(36).slice(2),Et="__reactFiber$"+An,wt="__reactProps$"+An,kn="__reactContainer$"+An,Nr="__reactEvents$"+An,Gi="__reactListeners$"+An,Vi="__reactHandles$"+An,Yi="__reactResources$"+An,Dr="__reactMarker$"+An;function ha(e){delete e[Et],delete e[wt],delete e[Nr],delete e[Gi],delete e[Vi]}function nr(e){var n=e[Et];if(n)return n;for(var i=e.parentNode;i;){if(n=i[kn]||i[Et]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Wy(e);e!==null;){if(i=e[Et])return i;e=Wy(e)}return n}e=i,i=e.parentNode}return null}function Bn(e){if(e=e[Et]||e[kn]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Lr(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(l(33))}function zr(e){var n=e[Yi];return n||(n=e[Yi]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ht(e){e[Dr]=!0}var rr=new Set,pa={};function ar(e,n){ir(e,n),ir(e+"Capture",n)}function ir(e,n){for(pa[e]=n,e=0;e<n.length;e++)rr.add(n[e])}var tE=RegExp("^[: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][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Lg={},zg={};function nE(e){return he.call(zg,e)?!0:he.call(Lg,e)?!1:tE.test(e)?zg[e]=!0:(Lg[e]=!0,!1)}function Po(e,n,i){if(nE(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Ho(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function lr(e,n,i,s){if(s===null)e.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+s)}}var Du,Pg;function Va(e){if(Du===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Du=n&&n[1]||"",Pg=-1<i.stack.indexOf(`
41
+ */var Eb;function mC(){if(Eb)return $l;Eb=1;var r=dC(),t=Cn(),a=X1();function l(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(u(e)!==e)throw Error(l(188))}function h(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(l(188));return n!==e?null:e}for(var i=e,s=n;;){var f=i.return;if(f===null)break;var m=f.alternate;if(m===null){if(s=f.return,s!==null){i=s;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===i)return d(f),e;if(m===s)return d(f),n;m=m.sibling}throw Error(l(188))}if(i.return!==s.return)i=f,s=m;else{for(var O=!1,A=f.child;A;){if(A===i){O=!0,i=f,s=m;break}if(A===s){O=!0,s=f,i=m;break}A=A.sibling}if(!O){for(A=m.child;A;){if(A===i){O=!0,i=m,s=f;break}if(A===s){O=!0,s=m,i=f;break}A=A.sibling}if(!O)throw Error(l(189))}}if(i.alternate!==s)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?e:n}function p(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=p(e),n!==null)return n;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),V=Symbol.for("react.consumer"),I=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),E=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function B(e){return e===null||typeof e!="object"?null:(e=X&&e[X]||e["@@iterator"],typeof e=="function"?e:null)}var q=Symbol.for("react.client.reference");function k(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===q?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case z:return"Profiler";case _:return"StrictMode";case j:return"Suspense";case M:return"SuspenseList";case D:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case I:return(e.displayName||"Context")+".Provider";case V:return(e._context.displayName||"Context")+".Consumer";case Q:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return n=e.displayName||null,n!==null?n:k(e.type)||"Memo";case F:n=e._payload,e=e._init;try{return k(e(n))}catch{}}return null}var G=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,b=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},R=[],y=-1;function C(e){return{current:e}}function W(e){0>y||(e.current=R[y],R[y]=null,y--)}function J(e,n){y++,R[y]=e.current,e.current=n}var H=C(null),U=C(null),Z=C(null),re=C(null);function ue(e,n){switch(J(Z,n),J(U,e),J(H,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Uy(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Uy(n),e=Gy(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(H),J(H,e)}function me(){W(H),W(U),W(Z)}function pe(e){e.memoizedState!==null&&J(re,e);var n=H.current,i=Gy(n,e.type);n!==i&&(J(U,e),J(H,i))}function ve(e){U.current===e&&(W(H),W(U)),re.current===e&&(W(re),Ll._currentValue=te)}var he=Object.prototype.hasOwnProperty,ge=r.unstable_scheduleCallback,Se=r.unstable_cancelCallback,ye=r.unstable_shouldYield,Re=r.unstable_requestPaint,be=r.unstable_now,Le=r.unstable_getCurrentPriorityLevel,Pe=r.unstable_ImmediatePriority,Te=r.unstable_UserBlockingPriority,ke=r.unstable_NormalPriority,ot=r.unstable_LowPriority,ft=r.unstable_IdlePriority,yt=r.log,Nt=r.unstable_setDisableYieldValue,Ae=null,Be=null;function nt(e){if(typeof yt=="function"&&Nt(e),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(Ae,e)}catch{}}var dt=Math.clz32?Math.clz32:Nu,Ui=Math.log,Lo=Math.LN2;function Nu(e){return e>>>=0,e===0?32:31-(Ui(e)/Lo|0)|0}var Ga=256,Nr=4194304;function cn(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ie(e,n,i){var s=e.pendingLanes;if(s===0)return 0;var f=0,m=e.suspendedLanes,O=e.pingedLanes;e=e.warmLanes;var A=s&134217727;return A!==0?(s=A&~m,s!==0?f=cn(s):(O&=A,O!==0?f=cn(O):i||(i=A&~e,i!==0&&(f=cn(i))))):(A=s&~m,A!==0?f=cn(A):O!==0?f=cn(O):i||(i=s&~e,i!==0&&(f=cn(i)))),f===0?0:n!==0&&n!==f&&(n&m)===0&&(m=f&-f,i=n&-n,m>=i||m===32&&(i&4194048)!==0)?n:f}function se(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ve(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xe(){var e=Ga;return Ga<<=1,(Ga&4194048)===0&&(Ga=256),e}function Ze(){var e=Nr;return Nr<<=1,(Nr&62914560)===0&&(Nr=4194304),e}function ze(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function qt(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tr(e,n,i,s,f,m){var O=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var A=e.entanglements,Y=e.expirationTimes,ae=e.hiddenUpdates;for(i=O&~i;0<i;){var ce=31-dt(i),de=1<<ce;A[ce]=0,Y[ce]=-1;var le=ae[ce];if(le!==null)for(ae[ce]=null,ce=0;ce<le.length;ce++){var oe=le[ce];oe!==null&&(oe.lane&=-536870913)}i&=~de}s!==0&&Ht(e,s,0),m!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=m&~(O&~n))}function Ht(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-dt(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|i&4194090}function jn(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var s=31-dt(i),f=1<<s;f&n|e[s]&n&&(e[s]|=n),i&=~f}}function ha(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Hn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ut(){var e=b.p;return e!==0?e:(e=window.event,e===void 0?32:ub(e.type))}function zo(e,n){var i=b.p;try{return b.p=e,n()}finally{b.p=i}}var An=Math.random().toString(36).slice(2),Et="__reactFiber$"+An,wt="__reactProps$"+An,kn="__reactContainer$"+An,Dr="__reactEvents$"+An,Gi="__reactListeners$"+An,Vi="__reactHandles$"+An,Wi="__reactResources$"+An,Lr="__reactMarker$"+An;function pa(e){delete e[Et],delete e[wt],delete e[Dr],delete e[Gi],delete e[Vi]}function nr(e){var n=e[Et];if(n)return n;for(var i=e.parentNode;i;){if(n=i[kn]||i[Et]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Xy(e);e!==null;){if(i=e[Et])return i;e=Xy(e)}return n}e=i,i=e.parentNode}return null}function Bn(e){if(e=e[Et]||e[kn]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function zr(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(l(33))}function Pr(e){var n=e[Wi];return n||(n=e[Wi]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ht(e){e[Lr]=!0}var rr=new Set,ma={};function ar(e,n){ir(e,n),ir(e+"Capture",n)}function ir(e,n){for(ma[e]=n,e=0;e<n.length;e++)rr.add(n[e])}var tE=RegExp("^[: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][: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\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Lm={},zm={};function nE(e){return he.call(zm,e)?!0:he.call(Lm,e)?!1:tE.test(e)?zm[e]=!0:(Lm[e]=!0,!1)}function Po(e,n,i){if(nE(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Ho(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function lr(e,n,i,s){if(s===null)e.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+s)}}var Du,Pm;function Va(e){if(Du===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Du=n&&n[1]||"",Pm=-1<i.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Du+e+Pg}var Lu=!1;function zu(e,n){if(!e||Lu)return"";Lu=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(oe){var le=oe}Reflect.construct(e,[],de)}else{try{de.call()}catch(oe){le=oe}e.call(de.prototype)}}else{try{throw Error()}catch(oe){le=oe}(de=e())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(oe){if(oe&&le&&typeof oe.stack=="string")return[oe.stack,le.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=s.DetermineComponentFrameRoot(),O=g[0],j=g[1];if(O&&j){var X=O.split(`
44
- `),ae=j.split(`
45
- `);for(f=s=0;s<X.length&&!X[s].includes("DetermineComponentFrameRoot");)s++;for(;f<ae.length&&!ae[f].includes("DetermineComponentFrameRoot");)f++;if(s===X.length||f===ae.length)for(s=X.length-1,f=ae.length-1;1<=s&&0<=f&&X[s]!==ae[f];)f--;for(;1<=s&&0<=f;s--,f--)if(X[s]!==ae[f]){if(s!==1||f!==1)do if(s--,f--,0>f||X[s]!==ae[f]){var ce=`
46
- `+X[s].replace(" at new "," at ");return e.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",e.displayName)),ce}while(1<=s&&0<=f);break}}}finally{Lu=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Va(i):""}function rE(e){switch(e.tag){case 26:case 27:case 5:return Va(e.type);case 16:return Va("Lazy");case 13:return Va("Suspense");case 19:return Va("SuspenseList");case 0:case 15:return zu(e.type,!1);case 11:return zu(e.type.render,!1);case 1:return zu(e.type,!0);case 31:return Va("Activity");default:return""}}function Hg(e){try{var n="";do n+=rE(e),e=e.return;while(e);return n}catch(i){return`
43
+ `+Du+e+Pm}var Lu=!1;function zu(e,n){if(!e||Lu)return"";Lu=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(oe){var le=oe}Reflect.construct(e,[],de)}else{try{de.call()}catch(oe){le=oe}e.call(de.prototype)}}else{try{throw Error()}catch(oe){le=oe}(de=e())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(oe){if(oe&&le&&typeof oe.stack=="string")return[oe.stack,le.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=s.DetermineComponentFrameRoot(),O=m[0],A=m[1];if(O&&A){var Y=O.split(`
44
+ `),ae=A.split(`
45
+ `);for(f=s=0;s<Y.length&&!Y[s].includes("DetermineComponentFrameRoot");)s++;for(;f<ae.length&&!ae[f].includes("DetermineComponentFrameRoot");)f++;if(s===Y.length||f===ae.length)for(s=Y.length-1,f=ae.length-1;1<=s&&0<=f&&Y[s]!==ae[f];)f--;for(;1<=s&&0<=f;s--,f--)if(Y[s]!==ae[f]){if(s!==1||f!==1)do if(s--,f--,0>f||Y[s]!==ae[f]){var ce=`
46
+ `+Y[s].replace(" at new "," at ");return e.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",e.displayName)),ce}while(1<=s&&0<=f);break}}}finally{Lu=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Va(i):""}function rE(e){switch(e.tag){case 26:case 27:case 5:return Va(e.type);case 16:return Va("Lazy");case 13:return Va("Suspense");case 19:return Va("SuspenseList");case 0:case 15:return zu(e.type,!1);case 11:return zu(e.type.render,!1);case 1:return zu(e.type,!0);case 31:return Va("Activity");default:return""}}function Hm(e){try{var n="";do n+=rE(e),e=e.return;while(e);return n}catch(i){return`
47
47
  Error generating stack: `+i.message+`
48
- `+i.stack}}function fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kg(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function aE(e){var n=kg(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),s=""+e[n];if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var f=i.get,g=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(O){s=""+O,g.call(this,O)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(O){s=""+O},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ko(e){e._valueTracker||(e._valueTracker=aE(e))}function Bg(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),s="";return e&&(s=kg(e)?e.checked?"true":"false":e.value),e=s,e!==i?(n.setValue(e),!0):!1}function Bo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var iE=/[\n"\\]/g;function dn(e){return e.replace(iE,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Pu(e,n,i,s,f,g,O,j){e.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?e.type=O:e.removeAttribute("type"),n!=null?O==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+fn(n)):e.value!==""+fn(n)&&(e.value=""+fn(n)):O!=="submit"&&O!=="reset"||e.removeAttribute("value"),n!=null?Hu(e,O,fn(n)):i!=null?Hu(e,O,fn(i)):s!=null&&e.removeAttribute("value"),f==null&&g!=null&&(e.defaultChecked=!!g),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?e.name=""+fn(j):e.removeAttribute("name")}function $g(e,n,i,s,f,g,O,j){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.type=g),n!=null||i!=null){if(!(g!=="submit"&&g!=="reset"||n!=null))return;i=i!=null?""+fn(i):"",n=n!=null?""+fn(n):i,j||n===e.value||(e.value=n),e.defaultValue=n}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=j?e.checked:!!s,e.defaultChecked=!!s,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(e.name=O)}function Hu(e,n,i){n==="number"&&Bo(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Ya(e,n,i,s){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&s&&(e[i].defaultSelected=!0)}else{for(i=""+fn(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,s&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Ig(e,n,i){if(n!=null&&(n=""+fn(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+fn(i):""}function qg(e,n,i,s){if(n==null){if(s!=null){if(i!=null)throw Error(l(92));if(G(s)){if(1<s.length)throw Error(l(93));s=s[0]}i=s}i==null&&(i=""),n=i}i=fn(n),e.defaultValue=i,s=e.textContent,s===i&&s!==""&&s!==null&&(e.value=s)}function Xa(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var lE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ug(e,n,i){var s=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,i):typeof i!="number"||i===0||lE.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function Gg(e,n,i){if(n!=null&&typeof n!="object")throw Error(l(62));if(e=e.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var f in n)s=n[f],n.hasOwnProperty(f)&&i[f]!==s&&Ug(e,f,s)}else for(var g in n)n.hasOwnProperty(g)&&Ug(e,g,n[g])}function ku(e){if(e.indexOf("-")===-1)return!1;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 oE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),sE=/^[\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;function $o(e){return sE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Bu=null;function $u(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wa=null,Fa=null;function Vg(e){var n=Bn(e);if(n&&(e=n.stateNode)){var i=e[wt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Pu(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+dn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var s=i[n];if(s!==e&&s.form===e.form){var f=s[wt]||null;if(!f)throw Error(l(90));Pu(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)s=i[n],s.form===e.form&&Bg(s)}break e;case"textarea":Ig(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Ya(e,!!i.multiple,n,!1)}}}var Iu=!1;function Yg(e,n,i){if(Iu)return e(n,i);Iu=!0;try{var s=e(n);return s}finally{if(Iu=!1,(Wa!==null||Fa!==null)&&(Ts(),Wa&&(n=Wa,e=Fa,Fa=Wa=null,Vg(n),e)))for(n=0;n<e.length;n++)Vg(e[n])}}function Xi(e,n){var i=e.stateNode;if(i===null)return null;var s=i[wt]||null;if(s===null)return null;i=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(l(231,n,typeof i));return i}var or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=!1;if(or)try{var Wi={};Object.defineProperty(Wi,"passive",{get:function(){qu=!0}}),window.addEventListener("test",Wi,Wi),window.removeEventListener("test",Wi,Wi)}catch{qu=!1}var Pr=null,Uu=null,Io=null;function Xg(){if(Io)return Io;var e,n=Uu,i=n.length,s,f="value"in Pr?Pr.value:Pr.textContent,g=f.length;for(e=0;e<i&&n[e]===f[e];e++);var O=i-e;for(s=1;s<=O&&n[i-s]===f[g-s];s++);return Io=f.slice(e,1<s?1-s:void 0)}function qo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Uo(){return!0}function Wg(){return!1}function Gt(e){function n(i,s,f,g,O){this._reactName=i,this._targetInst=f,this.type=s,this.nativeEvent=g,this.target=O,this.currentTarget=null;for(var j in e)e.hasOwnProperty(j)&&(i=e[j],this[j]=i?i(g):g[j]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Uo:Wg,this.isPropagationStopped=Wg,this}return m(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Uo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Uo)},persist:function(){},isPersistent:Uo}),n}var ga={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Go=Gt(ga),Fi=m({},ga,{view:0,detail:0}),uE=Gt(Fi),Gu,Vu,Qi,Vo=m({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qi&&(Qi&&e.type==="mousemove"?(Gu=e.screenX-Qi.screenX,Vu=e.screenY-Qi.screenY):Vu=Gu=0,Qi=e),Gu)},movementY:function(e){return"movementY"in e?e.movementY:Vu}}),Fg=Gt(Vo),cE=m({},Vo,{dataTransfer:0}),fE=Gt(cE),dE=m({},Fi,{relatedTarget:0}),Yu=Gt(dE),hE=m({},ga,{animationName:0,elapsedTime:0,pseudoElement:0}),pE=Gt(hE),gE=m({},ga,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mE=Gt(gE),vE=m({},ga,{data:0}),Qg=Gt(vE),yE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bE={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"},SE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wE(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=SE[e])?!!n[e]:!1}function Xu(){return wE}var xE=m({},Fi,{key:function(e){if(e.key){var n=yE[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=qo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xu,charCode:function(e){return e.type==="keypress"?qo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),OE=Gt(xE),EE=m({},Vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zg=Gt(EE),TE=m({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xu}),CE=Gt(TE),RE=m({},ga,{propertyName:0,elapsedTime:0,pseudoElement:0}),_E=Gt(RE),jE=m({},Vo,{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}),AE=Gt(jE),ME=m({},ga,{newState:0,oldState:0}),NE=Gt(ME),DE=[9,13,27,32],Wu=or&&"CompositionEvent"in window,Zi=null;or&&"documentMode"in document&&(Zi=document.documentMode);var LE=or&&"TextEvent"in window&&!Zi,Kg=or&&(!Wu||Zi&&8<Zi&&11>=Zi),Jg=" ",em=!1;function tm(e,n){switch(e){case"keyup":return DE.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qa=!1;function zE(e,n){switch(e){case"compositionend":return nm(n);case"keypress":return n.which!==32?null:(em=!0,Jg);case"textInput":return e=n.data,e===Jg&&em?null:e;default:return null}}function PE(e,n){if(Qa)return e==="compositionend"||!Wu&&tm(e,n)?(e=Xg(),Io=Uu=Pr=null,Qa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Kg&&n.locale!=="ko"?null:n.data;default:return null}}var HE={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 rm(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!HE[e.type]:n==="textarea"}function am(e,n,i,s){Wa?Fa?Fa.push(s):Fa=[s]:Wa=s,n=Ms(n,"onChange"),0<n.length&&(i=new Go("onChange","change",null,i,s),e.push({event:i,listeners:n}))}var Ki=null,Ji=null;function kE(e){ky(e,0)}function Yo(e){var n=Lr(e);if(Bg(n))return e}function im(e,n){if(e==="change")return n}var lm=!1;if(or){var Fu;if(or){var Qu="oninput"in document;if(!Qu){var om=document.createElement("div");om.setAttribute("oninput","return;"),Qu=typeof om.oninput=="function"}Fu=Qu}else Fu=!1;lm=Fu&&(!document.documentMode||9<document.documentMode)}function sm(){Ki&&(Ki.detachEvent("onpropertychange",um),Ji=Ki=null)}function um(e){if(e.propertyName==="value"&&Yo(Ji)){var n=[];am(n,Ji,e,$u(e)),Yg(kE,n)}}function BE(e,n,i){e==="focusin"?(sm(),Ki=n,Ji=i,Ki.attachEvent("onpropertychange",um)):e==="focusout"&&sm()}function $E(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yo(Ji)}function IE(e,n){if(e==="click")return Yo(n)}function qE(e,n){if(e==="input"||e==="change")return Yo(n)}function UE(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Jt=typeof Object.is=="function"?Object.is:UE;function el(e,n){if(Jt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var f=i[s];if(!he.call(n,f)||!Jt(e[f],n[f]))return!1}return!0}function cm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fm(e,n){var i=cm(e);e=0;for(var s;i;){if(i.nodeType===3){if(s=e+i.textContent.length,e<=n&&s>=n)return{node:i,offset:n-e};e=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=cm(i)}}function dm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?dm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function hm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Bo(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Bo(e.document)}return n}function Zu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var GE=or&&"documentMode"in document&&11>=document.documentMode,Za=null,Ku=null,tl=null,Ju=!1;function pm(e,n,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ju||Za==null||Za!==Bo(s)||(s=Za,"selectionStart"in s&&Zu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),tl&&el(tl,s)||(tl=s,s=Ms(Ku,"onSelect"),0<s.length&&(n=new Go("onSelect","select",null,n,i),e.push({event:n,listeners:s}),n.target=Za)))}function ma(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var Ka={animationend:ma("Animation","AnimationEnd"),animationiteration:ma("Animation","AnimationIteration"),animationstart:ma("Animation","AnimationStart"),transitionrun:ma("Transition","TransitionRun"),transitionstart:ma("Transition","TransitionStart"),transitioncancel:ma("Transition","TransitionCancel"),transitionend:ma("Transition","TransitionEnd")},ec={},gm={};or&&(gm=document.createElement("div").style,"AnimationEvent"in window||(delete Ka.animationend.animation,delete Ka.animationiteration.animation,delete Ka.animationstart.animation),"TransitionEvent"in window||delete Ka.transitionend.transition);function va(e){if(ec[e])return ec[e];if(!Ka[e])return e;var n=Ka[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in gm)return ec[e]=n[i];return e}var mm=va("animationend"),vm=va("animationiteration"),ym=va("animationstart"),VE=va("transitionrun"),YE=va("transitionstart"),XE=va("transitioncancel"),bm=va("transitionend"),Sm=new Map,tc="abort auxClick beforeToggle 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".split(" ");tc.push("scrollEnd");function Mn(e,n){Sm.set(e,n),ar(n,[e])}var wm=new WeakMap;function hn(e,n){if(typeof e=="object"&&e!==null){var i=wm.get(e);return i!==void 0?i:(n={value:e,source:n,stack:Hg(n)},wm.set(e,n),n)}return{value:e,source:n,stack:Hg(n)}}var pn=[],Ja=0,nc=0;function Xo(){for(var e=Ja,n=nc=Ja=0;n<e;){var i=pn[n];pn[n++]=null;var s=pn[n];pn[n++]=null;var f=pn[n];pn[n++]=null;var g=pn[n];if(pn[n++]=null,s!==null&&f!==null){var O=s.pending;O===null?f.next=f:(f.next=O.next,O.next=f),s.pending=f}g!==0&&xm(i,f,g)}}function Wo(e,n,i,s){pn[Ja++]=e,pn[Ja++]=n,pn[Ja++]=i,pn[Ja++]=s,nc|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function rc(e,n,i,s){return Wo(e,n,i,s),Fo(e)}function ei(e,n){return Wo(e,null,null,n),Fo(e)}function xm(e,n,i){e.lanes|=i;var s=e.alternate;s!==null&&(s.lanes|=i);for(var f=!1,g=e.return;g!==null;)g.childLanes|=i,s=g.alternate,s!==null&&(s.childLanes|=i),g.tag===22&&(e=g.stateNode,e===null||e._visibility&1||(f=!0)),e=g,g=g.return;return e.tag===3?(g=e.stateNode,f&&n!==null&&(f=31-dt(i),e=g.hiddenUpdates,s=e[f],s===null?e[f]=[n]:s.push(n),n.lane=i|536870912),g):null}function Fo(e){if(50<Cl)throw Cl=0,cf=null,Error(l(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var ti={};function WE(e,n,i,s){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,n,i,s){return new WE(e,n,i,s)}function ac(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sr(e,n){var i=e.alternate;return i===null?(i=en(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Om(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Qo(e,n,i,s,f,g){var O=0;if(s=e,typeof e=="function")ac(e)&&(O=1);else if(typeof e=="string")O=QT(e,i,H.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case D:return e=en(31,i,n,f),e.elementType=D,e.lanes=g,e;case N:return ya(i.children,f,g,n);case _:O=8,f|=24;break;case z:return e=en(12,i,n,f|2),e.elementType=z,e.lanes=g,e;case A:return e=en(13,i,n,f),e.elementType=A,e.lanes=g,e;case M:return e=en(19,i,n,f),e.elementType=M,e.lanes=g,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:case I:O=10;break e;case V:O=9;break e;case Q:O=11;break e;case P:O=14;break e;case F:O=16,s=null;break e}O=29,i=Error(l(130,e===null?"null":typeof e,"")),s=null}return n=en(O,i,n,f),n.elementType=e,n.type=s,n.lanes=g,n}function ya(e,n,i,s){return e=en(7,e,s,n),e.lanes=i,e}function ic(e,n,i){return e=en(6,e,null,n),e.lanes=i,e}function lc(e,n,i){return n=en(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ni=[],ri=0,Zo=null,Ko=0,gn=[],mn=0,ba=null,ur=1,cr="";function Sa(e,n){ni[ri++]=Ko,ni[ri++]=Zo,Zo=e,Ko=n}function Em(e,n,i){gn[mn++]=ur,gn[mn++]=cr,gn[mn++]=ba,ba=e;var s=ur;e=cr;var f=32-dt(s)-1;s&=~(1<<f),i+=1;var g=32-dt(n)+f;if(30<g){var O=f-f%5;g=(s&(1<<O)-1).toString(32),s>>=O,f-=O,ur=1<<32-dt(n)+f|i<<f|s,cr=g+e}else ur=1<<g|i<<f|s,cr=e}function oc(e){e.return!==null&&(Sa(e,1),Em(e,1,0))}function sc(e){for(;e===Zo;)Zo=ni[--ri],ni[ri]=null,Ko=ni[--ri],ni[ri]=null;for(;e===ba;)ba=gn[--mn],gn[mn]=null,cr=gn[--mn],gn[mn]=null,ur=gn[--mn],gn[mn]=null}var Bt=null,pt=null,Xe=!1,wa=null,$n=!1,uc=Error(l(519));function xa(e){var n=Error(l(418,""));throw al(hn(n,e)),uc}function Tm(e){var n=e.stateNode,i=e.type,s=e.memoizedProps;switch(n[Et]=e,n[wt]=s,i){case"dialog":Ue("cancel",n),Ue("close",n);break;case"iframe":case"object":case"embed":Ue("load",n);break;case"video":case"audio":for(i=0;i<_l.length;i++)Ue(_l[i],n);break;case"source":Ue("error",n);break;case"img":case"image":case"link":Ue("error",n),Ue("load",n);break;case"details":Ue("toggle",n);break;case"input":Ue("invalid",n),$g(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),ko(n);break;case"select":Ue("invalid",n);break;case"textarea":Ue("invalid",n),qg(n,s.value,s.defaultValue,s.children),ko(n)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||s.suppressHydrationWarning===!0||qy(n.textContent,i)?(s.popover!=null&&(Ue("beforetoggle",n),Ue("toggle",n)),s.onScroll!=null&&Ue("scroll",n),s.onScrollEnd!=null&&Ue("scrollend",n),s.onClick!=null&&(n.onclick=Ns),n=!0):n=!1,n||xa(e)}function Cm(e){for(Bt=e.return;Bt;)switch(Bt.tag){case 5:case 13:$n=!1;return;case 27:case 3:$n=!0;return;default:Bt=Bt.return}}function nl(e){if(e!==Bt)return!1;if(!Xe)return Cm(e),Xe=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Cf(e.type,e.memoizedProps)),i=!i),i&&pt&&xa(e),Cm(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(i=e.data,i==="/$"){if(n===0){pt=Dn(e.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++;e=e.nextSibling}pt=null}}else n===27?(n=pt,Kr(e.type)?(e=Af,Af=null,pt=e):pt=n):pt=Bt?Dn(e.stateNode.nextSibling):null;return!0}function rl(){pt=Bt=null,Xe=!1}function Rm(){var e=wa;return e!==null&&(Xt===null?Xt=e:Xt.push.apply(Xt,e),wa=null),e}function al(e){wa===null?wa=[e]:wa.push(e)}var cc=C(null),Oa=null,fr=null;function Hr(e,n,i){J(cc,n._currentValue),n._currentValue=i}function dr(e){e._currentValue=cc.current,Y(cc)}function fc(e,n,i){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===i)break;e=e.return}}function dc(e,n,i,s){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var g=f.dependencies;if(g!==null){var O=f.child;g=g.firstContext;e:for(;g!==null;){var j=g;g=f;for(var X=0;X<n.length;X++)if(j.context===n[X]){g.lanes|=i,j=g.alternate,j!==null&&(j.lanes|=i),fc(g.return,i,e),s||(O=null);break e}g=j.next}}else if(f.tag===18){if(O=f.return,O===null)throw Error(l(341));O.lanes|=i,g=O.alternate,g!==null&&(g.lanes|=i),fc(O,i,e),O=null}else O=f.child;if(O!==null)O.return=f;else for(O=f;O!==null;){if(O===e){O=null;break}if(f=O.sibling,f!==null){f.return=O.return,O=f;break}O=O.return}f=O}}function il(e,n,i,s){e=null;for(var f=n,g=!1;f!==null;){if(!g){if((f.flags&524288)!==0)g=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var O=f.alternate;if(O===null)throw Error(l(387));if(O=O.memoizedProps,O!==null){var j=f.type;Jt(f.pendingProps.value,O.value)||(e!==null?e.push(j):e=[j])}}else if(f===re.current){if(O=f.alternate,O===null)throw Error(l(387));O.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Ll):e=[Ll])}f=f.return}e!==null&&dc(n,e,i,s),n.flags|=262144}function Jo(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ea(e){Oa=e,fr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ht(e){return _m(Oa,e)}function es(e,n){return Oa===null&&Ea(e),_m(e,n)}function _m(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},fr===null){if(e===null)throw Error(l(308));fr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else fr=fr.next=n;return i}var FE=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},QE=r.unstable_scheduleCallback,ZE=r.unstable_NormalPriority,Tt={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hc(){return{controller:new FE,data:new Map,refCount:0}}function ll(e){e.refCount--,e.refCount===0&&QE(ZE,function(){e.controller.abort()})}var ol=null,pc=0,ai=0,ii=null;function KE(e,n){if(ol===null){var i=ol=[];pc=0,ai=vf(),ii={status:"pending",value:void 0,then:function(s){i.push(s)}}}return pc++,n.then(jm,jm),n}function jm(){if(--pc===0&&ol!==null){ii!==null&&(ii.status="fulfilled");var e=ol;ol=null,ai=0,ii=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function JE(e,n){var i=[],s={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(s.status="rejected",s.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),s}var Am=L.S;L.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&KE(e,n),Am!==null&&Am(e,n)};var Ta=C(null);function gc(){var e=Ta.current;return e!==null?e:rt.pooledCache}function ts(e,n){n===null?J(Ta,Ta.current):J(Ta,n.pool)}function Mm(){var e=gc();return e===null?null:{parent:Tt._currentValue,pool:e}}var sl=Error(l(460)),Nm=Error(l(474)),ns=Error(l(542)),mc={then:function(){}};function Dm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rs(){}function Lm(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(rs,rs),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Pm(e),e;default:if(typeof n.status=="string")n.then(rs,rs);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=s}},function(s){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Pm(e),e}throw ul=n,sl}}var ul=null;function zm(){if(ul===null)throw Error(l(459));var e=ul;return ul=null,e}function Pm(e){if(e===sl||e===ns)throw Error(l(483))}var kr=!1;function vc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Br(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $r(e,n,i){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Fe&2)!==0){var f=s.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),s.pending=n,n=Fo(e),xm(e,null,i),n}return Wo(e,s,n,i),Fo(e)}function cl(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,i|=s,n.lanes=i,jn(e,i)}}function bc(e,n){var i=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var f=null,g=null;if(i=i.firstBaseUpdate,i!==null){do{var O={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};g===null?f=g=O:g=g.next=O,i=i.next}while(i!==null);g===null?f=g=n:g=g.next=n}else f=g=n;i={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:g,shared:s.shared,callbacks:s.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var Sc=!1;function fl(){if(Sc){var e=ii;if(e!==null)throw e}}function dl(e,n,i,s){Sc=!1;var f=e.updateQueue;kr=!1;var g=f.firstBaseUpdate,O=f.lastBaseUpdate,j=f.shared.pending;if(j!==null){f.shared.pending=null;var X=j,ae=X.next;X.next=null,O===null?g=ae:O.next=ae,O=X;var ce=e.alternate;ce!==null&&(ce=ce.updateQueue,j=ce.lastBaseUpdate,j!==O&&(j===null?ce.firstBaseUpdate=ae:j.next=ae,ce.lastBaseUpdate=X))}if(g!==null){var de=f.baseState;O=0,ce=ae=X=null,j=g;do{var le=j.lane&-536870913,oe=le!==j.lane;if(oe?(Ge&le)===le:(s&le)===le){le!==0&&le===ai&&(Sc=!0),ce!==null&&(ce=ce.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var De=e,_e=j;le=n;var et=i;switch(_e.tag){case 1:if(De=_e.payload,typeof De=="function"){de=De.call(et,de,le);break e}de=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=_e.payload,le=typeof De=="function"?De.call(et,de,le):De,le==null)break e;de=m({},de,le);break e;case 2:kr=!0}}le=j.callback,le!==null&&(e.flags|=64,oe&&(e.flags|=8192),oe=f.callbacks,oe===null?f.callbacks=[le]:oe.push(le))}else oe={lane:le,tag:j.tag,payload:j.payload,callback:j.callback,next:null},ce===null?(ae=ce=oe,X=de):ce=ce.next=oe,O|=le;if(j=j.next,j===null){if(j=f.shared.pending,j===null)break;oe=j,j=oe.next,oe.next=null,f.lastBaseUpdate=oe,f.shared.pending=null}}while(!0);ce===null&&(X=de),f.baseState=X,f.firstBaseUpdate=ae,f.lastBaseUpdate=ce,g===null&&(f.shared.lanes=0),Wr|=O,e.lanes=O,e.memoizedState=de}}function Hm(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function km(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Hm(i[e],n)}var li=C(null),as=C(0);function Bm(e,n){e=br,J(as,e),J(li,n),br=e|n.baseLanes}function wc(){J(as,br),J(li,li.current)}function xc(){br=as.current,Y(li),Y(as)}var Ir=0,$e=null,Ke=null,xt=null,is=!1,oi=!1,Ca=!1,ls=0,hl=0,si=null,eT=0;function yt(){throw Error(l(321))}function Oc(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Jt(e[i],n[i]))return!1;return!0}function Ec(e,n,i,s,f,g){return Ir=g,$e=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,L.H=e===null||e.memoizedState===null?xv:Ov,Ca=!1,g=i(s,f),Ca=!1,oi&&(g=Im(n,i,s,f)),$m(e),g}function $m(e){L.H=ds;var n=Ke!==null&&Ke.next!==null;if(Ir=0,xt=Ke=$e=null,is=!1,hl=0,si=null,n)throw Error(l(300));e===null||_t||(e=e.dependencies,e!==null&&Jo(e)&&(_t=!0))}function Im(e,n,i,s){$e=e;var f=0;do{if(oi&&(si=null),hl=0,oi=!1,25<=f)throw Error(l(301));if(f+=1,xt=Ke=null,e.updateQueue!=null){var g=e.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}L.H=oT,g=n(i,s)}while(oi);return g}function tT(){var e=L.H,n=e.useState()[0];return n=typeof n.then=="function"?pl(n):n,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&($e.flags|=1024),n}function Tc(){var e=ls!==0;return ls=0,e}function Cc(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function Rc(e){if(is){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}is=!1}Ir=0,xt=Ke=$e=null,oi=!1,hl=ls=0,si=null}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?$e.memoizedState=xt=e:xt=xt.next=e,xt}function Ot(){if(Ke===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var n=xt===null?$e.memoizedState:xt.next;if(n!==null)xt=n,Ke=e;else{if(e===null)throw $e.alternate===null?Error(l(467)):Error(l(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},xt===null?$e.memoizedState=xt=e:xt=xt.next=e}return xt}function _c(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pl(e){var n=hl;return hl+=1,si===null&&(si=[]),e=Lm(si,e,n),n=$e,(xt===null?n.memoizedState:xt.next)===null&&(n=n.alternate,L.H=n===null||n.memoizedState===null?xv:Ov),e}function os(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pl(e);if(e.$$typeof===I)return Ht(e)}throw Error(l(438,String(e)))}function jc(e){var n=null,i=$e.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var s=$e.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=_c(),$e.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),s=0;s<e;s++)i[s]=E;return n.index++,i}function hr(e,n){return typeof n=="function"?n(e):n}function ss(e){var n=Ot();return Ac(n,Ke,e)}function Ac(e,n,i){var s=e.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=i;var f=e.baseQueue,g=s.pending;if(g!==null){if(f!==null){var O=f.next;f.next=g.next,g.next=O}n.baseQueue=f=g,s.pending=null}if(g=e.baseState,f===null)e.memoizedState=g;else{n=f.next;var j=O=null,X=null,ae=n,ce=!1;do{var de=ae.lane&-536870913;if(de!==ae.lane?(Ge&de)===de:(Ir&de)===de){var le=ae.revertLane;if(le===0)X!==null&&(X=X.next={lane:0,revertLane:0,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),de===ai&&(ce=!0);else if((Ir&le)===le){ae=ae.next,le===ai&&(ce=!0);continue}else de={lane:0,revertLane:ae.revertLane,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},X===null?(j=X=de,O=g):X=X.next=de,$e.lanes|=le,Wr|=le;de=ae.action,Ca&&i(g,de),g=ae.hasEagerState?ae.eagerState:i(g,de)}else le={lane:de,revertLane:ae.revertLane,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},X===null?(j=X=le,O=g):X=X.next=le,$e.lanes|=de,Wr|=de;ae=ae.next}while(ae!==null&&ae!==n);if(X===null?O=g:X.next=j,!Jt(g,e.memoizedState)&&(_t=!0,ce&&(i=ii,i!==null)))throw i;e.memoizedState=g,e.baseState=O,e.baseQueue=X,s.lastRenderedState=g}return f===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Mc(e){var n=Ot(),i=n.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=e;var s=i.dispatch,f=i.pending,g=n.memoizedState;if(f!==null){i.pending=null;var O=f=f.next;do g=e(g,O.action),O=O.next;while(O!==f);Jt(g,n.memoizedState)||(_t=!0),n.memoizedState=g,n.baseQueue===null&&(n.baseState=g),i.lastRenderedState=g}return[g,s]}function qm(e,n,i){var s=$e,f=Ot(),g=Xe;if(g){if(i===void 0)throw Error(l(407));i=i()}else i=n();var O=!Jt((Ke||f).memoizedState,i);O&&(f.memoizedState=i,_t=!0),f=f.queue;var j=Vm.bind(null,s,f,e);if(gl(2048,8,j,[e]),f.getSnapshot!==n||O||xt!==null&&xt.memoizedState.tag&1){if(s.flags|=2048,ui(9,us(),Gm.bind(null,s,f,i,n),null),rt===null)throw Error(l(349));g||(Ir&124)!==0||Um(s,n,i)}return i}function Um(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=$e.updateQueue,n===null?(n=_c(),$e.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Gm(e,n,i,s){n.value=i,n.getSnapshot=s,Ym(n)&&Xm(e)}function Vm(e,n,i){return i(function(){Ym(n)&&Xm(e)})}function Ym(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Jt(e,i)}catch{return!0}}function Xm(e){var n=ei(e,2);n!==null&&ln(n,e,2)}function Nc(e){var n=Vt();if(typeof e=="function"){var i=e;if(e=i(),Ca){nt(!0);try{i()}finally{nt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:e},n}function Wm(e,n,i,s){return e.baseState=i,Ac(e,Ke,typeof s=="function"?s:hr)}function nT(e,n,i,s,f){if(fs(e))throw Error(l(485));if(e=n.action,e!==null){var g={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){g.listeners.push(O)}};L.T!==null?i(!0):g.isTransition=!1,s(g),i=n.pending,i===null?(g.next=n.pending=g,Fm(n,g)):(g.next=i.next,n.pending=i.next=g)}}function Fm(e,n){var i=n.action,s=n.payload,f=e.state;if(n.isTransition){var g=L.T,O={};L.T=O;try{var j=i(f,s),X=L.S;X!==null&&X(O,j),Qm(e,n,j)}catch(ae){Dc(e,n,ae)}finally{L.T=g}}else try{g=i(f,s),Qm(e,n,g)}catch(ae){Dc(e,n,ae)}}function Qm(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){Zm(e,n,s)},function(s){return Dc(e,n,s)}):Zm(e,n,i)}function Zm(e,n,i){n.status="fulfilled",n.value=i,Km(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Fm(e,i)))}function Dc(e,n,i){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=i,Km(n),n=n.next;while(n!==s)}e.action=null}function Km(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Jm(e,n){return n}function ev(e,n){if(Xe){var i=rt.formState;if(i!==null){e:{var s=$e;if(Xe){if(pt){t:{for(var f=pt,g=$n;f.nodeType!==8;){if(!g){f=null;break t}if(f=Dn(f.nextSibling),f===null){f=null;break t}}g=f.data,f=g==="F!"||g==="F"?f:null}if(f){pt=Dn(f.nextSibling),s=f.data==="F!";break e}}xa(s)}s=!1}s&&(n=i[0])}}return i=Vt(),i.memoizedState=i.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jm,lastRenderedState:n},i.queue=s,i=bv.bind(null,$e,s),s.dispatch=i,s=Nc(!1),g=kc.bind(null,$e,!1,s.queue),s=Vt(),f={state:n,dispatch:null,action:e,pending:null},s.queue=f,i=nT.bind(null,$e,f,g,i),f.dispatch=i,s.memoizedState=e,[n,i,!1]}function tv(e){var n=Ot();return nv(n,Ke,e)}function nv(e,n,i){if(n=Ac(e,n,Jm)[0],e=ss(hr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=pl(n)}catch(O){throw O===sl?ns:O}else s=n;n=Ot();var f=n.queue,g=f.dispatch;return i!==n.memoizedState&&($e.flags|=2048,ui(9,us(),rT.bind(null,f,i),null)),[s,g,e]}function rT(e,n){e.action=n}function rv(e){var n=Ot(),i=Ke;if(i!==null)return nv(n,i,e);Ot(),n=n.memoizedState,i=Ot();var s=i.queue.dispatch;return i.memoizedState=e,[n,s,!1]}function ui(e,n,i,s){return e={tag:e,create:i,deps:s,inst:n,next:null},n=$e.updateQueue,n===null&&(n=_c(),$e.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(s=i.next,i.next=e,e.next=s,n.lastEffect=e),e}function us(){return{destroy:void 0,resource:void 0}}function av(){return Ot().memoizedState}function cs(e,n,i,s){var f=Vt();s=s===void 0?null:s,$e.flags|=e,f.memoizedState=ui(1|n,us(),i,s)}function gl(e,n,i,s){var f=Ot();s=s===void 0?null:s;var g=f.memoizedState.inst;Ke!==null&&s!==null&&Oc(s,Ke.memoizedState.deps)?f.memoizedState=ui(n,g,i,s):($e.flags|=e,f.memoizedState=ui(1|n,g,i,s))}function iv(e,n){cs(8390656,8,e,n)}function lv(e,n){gl(2048,8,e,n)}function ov(e,n){return gl(4,2,e,n)}function sv(e,n){return gl(4,4,e,n)}function uv(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function cv(e,n,i){i=i!=null?i.concat([e]):null,gl(4,4,uv.bind(null,n,e),i)}function Lc(){}function fv(e,n){var i=Ot();n=n===void 0?null:n;var s=i.memoizedState;return n!==null&&Oc(n,s[1])?s[0]:(i.memoizedState=[e,n],e)}function dv(e,n){var i=Ot();n=n===void 0?null:n;var s=i.memoizedState;if(n!==null&&Oc(n,s[1]))return s[0];if(s=e(),Ca){nt(!0);try{e()}finally{nt(!1)}}return i.memoizedState=[s,n],s}function zc(e,n,i){return i===void 0||(Ir&1073741824)!==0?e.memoizedState=n:(e.memoizedState=i,e=gy(),$e.lanes|=e,Wr|=e,i)}function hv(e,n,i,s){return Jt(i,n)?i:li.current!==null?(e=zc(e,i,s),Jt(e,n)||(_t=!0),e):(Ir&42)===0?(_t=!0,e.memoizedState=i):(e=gy(),$e.lanes|=e,Wr|=e,n)}function pv(e,n,i,s,f){var g=b.p;b.p=g!==0&&8>g?g:8;var O=L.T,j={};L.T=j,kc(e,!1,n,i);try{var X=f(),ae=L.S;if(ae!==null&&ae(j,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var ce=JE(X,s);ml(e,n,ce,an(e))}else ml(e,n,s,an(e))}catch(de){ml(e,n,{then:function(){},status:"rejected",reason:de},an())}finally{b.p=g,L.T=O}}function aT(){}function Pc(e,n,i,s){if(e.tag!==5)throw Error(l(476));var f=gv(e).queue;pv(e,f,n,te,i===null?aT:function(){return mv(e),i(s)})}function gv(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:te},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function mv(e){var n=gv(e).next.queue;ml(e,n,{},an())}function Hc(){return Ht(Ll)}function vv(){return Ot().memoizedState}function yv(){return Ot().memoizedState}function iT(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=an();e=Br(i);var s=$r(n,e,i);s!==null&&(ln(s,n,i),cl(s,n,i)),n={cache:hc()},e.payload=n;return}n=n.return}}function lT(e,n,i){var s=an();i={lane:s,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},fs(e)?Sv(n,i):(i=rc(e,n,i,s),i!==null&&(ln(i,e,s),wv(i,n,s)))}function bv(e,n,i){var s=an();ml(e,n,i,s)}function ml(e,n,i,s){var f={lane:s,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(fs(e))Sv(n,f);else{var g=e.alternate;if(e.lanes===0&&(g===null||g.lanes===0)&&(g=n.lastRenderedReducer,g!==null))try{var O=n.lastRenderedState,j=g(O,i);if(f.hasEagerState=!0,f.eagerState=j,Jt(j,O))return Wo(e,n,f,0),rt===null&&Xo(),!1}catch{}finally{}if(i=rc(e,n,f,s),i!==null)return ln(i,e,s),wv(i,n,s),!0}return!1}function kc(e,n,i,s){if(s={lane:2,revertLane:vf(),action:s,hasEagerState:!1,eagerState:null,next:null},fs(e)){if(n)throw Error(l(479))}else n=rc(e,i,s,2),n!==null&&ln(n,e,2)}function fs(e){var n=e.alternate;return e===$e||n!==null&&n===$e}function Sv(e,n){oi=is=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function wv(e,n,i){if((i&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,i|=s,n.lanes=i,jn(e,i)}}var ds={readContext:Ht,use:os,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt},xv={readContext:Ht,use:os,useCallback:function(e,n){return Vt().memoizedState=[e,n===void 0?null:n],e},useContext:Ht,useEffect:iv,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,cs(4194308,4,uv.bind(null,n,e),i)},useLayoutEffect:function(e,n){return cs(4194308,4,e,n)},useInsertionEffect:function(e,n){cs(4,2,e,n)},useMemo:function(e,n){var i=Vt();n=n===void 0?null:n;var s=e();if(Ca){nt(!0);try{e()}finally{nt(!1)}}return i.memoizedState=[s,n],s},useReducer:function(e,n,i){var s=Vt();if(i!==void 0){var f=i(n);if(Ca){nt(!0);try{i(n)}finally{nt(!1)}}}else f=n;return s.memoizedState=s.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},s.queue=e,e=e.dispatch=lT.bind(null,$e,e),[s.memoizedState,e]},useRef:function(e){var n=Vt();return e={current:e},n.memoizedState=e},useState:function(e){e=Nc(e);var n=e.queue,i=bv.bind(null,$e,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:Lc,useDeferredValue:function(e,n){var i=Vt();return zc(i,e,n)},useTransition:function(){var e=Nc(!1);return e=pv.bind(null,$e,e.queue,!0,!1),Vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var s=$e,f=Vt();if(Xe){if(i===void 0)throw Error(l(407));i=i()}else{if(i=n(),rt===null)throw Error(l(349));(Ge&124)!==0||Um(s,n,i)}f.memoizedState=i;var g={value:i,getSnapshot:n};return f.queue=g,iv(Vm.bind(null,s,g,e),[e]),s.flags|=2048,ui(9,us(),Gm.bind(null,s,g,i,n),null),i},useId:function(){var e=Vt(),n=rt.identifierPrefix;if(Xe){var i=cr,s=ur;i=(s&~(1<<32-dt(s)-1)).toString(32)+i,n="«"+n+"R"+i,i=ls++,0<i&&(n+="H"+i.toString(32)),n+="»"}else i=eT++,n="«"+n+"r"+i.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Hc,useFormState:ev,useActionState:ev,useOptimistic:function(e){var n=Vt();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=kc.bind(null,$e,!0,i),i.dispatch=n,[e,n]},useMemoCache:jc,useCacheRefresh:function(){return Vt().memoizedState=iT.bind(null,$e)}},Ov={readContext:Ht,use:os,useCallback:fv,useContext:Ht,useEffect:lv,useImperativeHandle:cv,useInsertionEffect:ov,useLayoutEffect:sv,useMemo:dv,useReducer:ss,useRef:av,useState:function(){return ss(hr)},useDebugValue:Lc,useDeferredValue:function(e,n){var i=Ot();return hv(i,Ke.memoizedState,e,n)},useTransition:function(){var e=ss(hr)[0],n=Ot().memoizedState;return[typeof e=="boolean"?e:pl(e),n]},useSyncExternalStore:qm,useId:vv,useHostTransitionStatus:Hc,useFormState:tv,useActionState:tv,useOptimistic:function(e,n){var i=Ot();return Wm(i,Ke,e,n)},useMemoCache:jc,useCacheRefresh:yv},oT={readContext:Ht,use:os,useCallback:fv,useContext:Ht,useEffect:lv,useImperativeHandle:cv,useInsertionEffect:ov,useLayoutEffect:sv,useMemo:dv,useReducer:Mc,useRef:av,useState:function(){return Mc(hr)},useDebugValue:Lc,useDeferredValue:function(e,n){var i=Ot();return Ke===null?zc(i,e,n):hv(i,Ke.memoizedState,e,n)},useTransition:function(){var e=Mc(hr)[0],n=Ot().memoizedState;return[typeof e=="boolean"?e:pl(e),n]},useSyncExternalStore:qm,useId:vv,useHostTransitionStatus:Hc,useFormState:rv,useActionState:rv,useOptimistic:function(e,n){var i=Ot();return Ke!==null?Wm(i,Ke,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:jc,useCacheRefresh:yv},ci=null,vl=0;function hs(e){var n=vl;return vl+=1,ci===null&&(ci=[]),Lm(ci,e,n)}function yl(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function ps(e,n){throw n.$$typeof===y?Error(l(525)):(e=Object.prototype.toString.call(n),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Ev(e){var n=e._init;return n(e._payload)}function Tv(e){function n(ee,K){if(e){var ne=ee.deletions;ne===null?(ee.deletions=[K],ee.flags|=16):ne.push(K)}}function i(ee,K){if(!e)return null;for(;K!==null;)n(ee,K),K=K.sibling;return null}function s(ee){for(var K=new Map;ee!==null;)ee.key!==null?K.set(ee.key,ee):K.set(ee.index,ee),ee=ee.sibling;return K}function f(ee,K){return ee=sr(ee,K),ee.index=0,ee.sibling=null,ee}function g(ee,K,ne){return ee.index=ne,e?(ne=ee.alternate,ne!==null?(ne=ne.index,ne<K?(ee.flags|=67108866,K):ne):(ee.flags|=67108866,K)):(ee.flags|=1048576,K)}function O(ee){return e&&ee.alternate===null&&(ee.flags|=67108866),ee}function j(ee,K,ne,fe){return K===null||K.tag!==6?(K=ic(ne,ee.mode,fe),K.return=ee,K):(K=f(K,ne),K.return=ee,K)}function X(ee,K,ne,fe){var xe=ne.type;return xe===N?ce(ee,K,ne.props.children,fe,ne.key):K!==null&&(K.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===F&&Ev(xe)===K.type)?(K=f(K,ne.props),yl(K,ne),K.return=ee,K):(K=Qo(ne.type,ne.key,ne.props,null,ee.mode,fe),yl(K,ne),K.return=ee,K)}function ae(ee,K,ne,fe){return K===null||K.tag!==4||K.stateNode.containerInfo!==ne.containerInfo||K.stateNode.implementation!==ne.implementation?(K=lc(ne,ee.mode,fe),K.return=ee,K):(K=f(K,ne.children||[]),K.return=ee,K)}function ce(ee,K,ne,fe,xe){return K===null||K.tag!==7?(K=ya(ne,ee.mode,fe,xe),K.return=ee,K):(K=f(K,ne),K.return=ee,K)}function de(ee,K,ne){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=ic(""+K,ee.mode,ne),K.return=ee,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return ne=Qo(K.type,K.key,K.props,null,ee.mode,ne),yl(ne,K),ne.return=ee,ne;case T:return K=lc(K,ee.mode,ne),K.return=ee,K;case F:var fe=K._init;return K=fe(K._payload),de(ee,K,ne)}if(G(K)||B(K))return K=ya(K,ee.mode,ne,null),K.return=ee,K;if(typeof K.then=="function")return de(ee,hs(K),ne);if(K.$$typeof===I)return de(ee,es(ee,K),ne);ps(ee,K)}return null}function le(ee,K,ne,fe){var xe=K!==null?K.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return xe!==null?null:j(ee,K,""+ne,fe);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case x:return ne.key===xe?X(ee,K,ne,fe):null;case T:return ne.key===xe?ae(ee,K,ne,fe):null;case F:return xe=ne._init,ne=xe(ne._payload),le(ee,K,ne,fe)}if(G(ne)||B(ne))return xe!==null?null:ce(ee,K,ne,fe,null);if(typeof ne.then=="function")return le(ee,K,hs(ne),fe);if(ne.$$typeof===I)return le(ee,K,es(ee,ne),fe);ps(ee,ne)}return null}function oe(ee,K,ne,fe,xe){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return ee=ee.get(ne)||null,j(K,ee,""+fe,xe);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case x:return ee=ee.get(fe.key===null?ne:fe.key)||null,X(K,ee,fe,xe);case T:return ee=ee.get(fe.key===null?ne:fe.key)||null,ae(K,ee,fe,xe);case F:var Ie=fe._init;return fe=Ie(fe._payload),oe(ee,K,ne,fe,xe)}if(G(fe)||B(fe))return ee=ee.get(ne)||null,ce(K,ee,fe,xe,null);if(typeof fe.then=="function")return oe(ee,K,ne,hs(fe),xe);if(fe.$$typeof===I)return oe(ee,K,ne,es(K,fe),xe);ps(K,fe)}return null}function De(ee,K,ne,fe){for(var xe=null,Ie=null,Ee=K,Me=K=0,At=null;Ee!==null&&Me<ne.length;Me++){Ee.index>Me?(At=Ee,Ee=null):At=Ee.sibling;var Ye=le(ee,Ee,ne[Me],fe);if(Ye===null){Ee===null&&(Ee=At);break}e&&Ee&&Ye.alternate===null&&n(ee,Ee),K=g(Ye,K,Me),Ie===null?xe=Ye:Ie.sibling=Ye,Ie=Ye,Ee=At}if(Me===ne.length)return i(ee,Ee),Xe&&Sa(ee,Me),xe;if(Ee===null){for(;Me<ne.length;Me++)Ee=de(ee,ne[Me],fe),Ee!==null&&(K=g(Ee,K,Me),Ie===null?xe=Ee:Ie.sibling=Ee,Ie=Ee);return Xe&&Sa(ee,Me),xe}for(Ee=s(Ee);Me<ne.length;Me++)At=oe(Ee,ee,Me,ne[Me],fe),At!==null&&(e&&At.alternate!==null&&Ee.delete(At.key===null?Me:At.key),K=g(At,K,Me),Ie===null?xe=At:Ie.sibling=At,Ie=At);return e&&Ee.forEach(function(ra){return n(ee,ra)}),Xe&&Sa(ee,Me),xe}function _e(ee,K,ne,fe){if(ne==null)throw Error(l(151));for(var xe=null,Ie=null,Ee=K,Me=K=0,At=null,Ye=ne.next();Ee!==null&&!Ye.done;Me++,Ye=ne.next()){Ee.index>Me?(At=Ee,Ee=null):At=Ee.sibling;var ra=le(ee,Ee,Ye.value,fe);if(ra===null){Ee===null&&(Ee=At);break}e&&Ee&&ra.alternate===null&&n(ee,Ee),K=g(ra,K,Me),Ie===null?xe=ra:Ie.sibling=ra,Ie=ra,Ee=At}if(Ye.done)return i(ee,Ee),Xe&&Sa(ee,Me),xe;if(Ee===null){for(;!Ye.done;Me++,Ye=ne.next())Ye=de(ee,Ye.value,fe),Ye!==null&&(K=g(Ye,K,Me),Ie===null?xe=Ye:Ie.sibling=Ye,Ie=Ye);return Xe&&Sa(ee,Me),xe}for(Ee=s(Ee);!Ye.done;Me++,Ye=ne.next())Ye=oe(Ee,ee,Me,Ye.value,fe),Ye!==null&&(e&&Ye.alternate!==null&&Ee.delete(Ye.key===null?Me:Ye.key),K=g(Ye,K,Me),Ie===null?xe=Ye:Ie.sibling=Ye,Ie=Ye);return e&&Ee.forEach(function(sC){return n(ee,sC)}),Xe&&Sa(ee,Me),xe}function et(ee,K,ne,fe){if(typeof ne=="object"&&ne!==null&&ne.type===N&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case x:e:{for(var xe=ne.key;K!==null;){if(K.key===xe){if(xe=ne.type,xe===N){if(K.tag===7){i(ee,K.sibling),fe=f(K,ne.props.children),fe.return=ee,ee=fe;break e}}else if(K.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===F&&Ev(xe)===K.type){i(ee,K.sibling),fe=f(K,ne.props),yl(fe,ne),fe.return=ee,ee=fe;break e}i(ee,K);break}else n(ee,K);K=K.sibling}ne.type===N?(fe=ya(ne.props.children,ee.mode,fe,ne.key),fe.return=ee,ee=fe):(fe=Qo(ne.type,ne.key,ne.props,null,ee.mode,fe),yl(fe,ne),fe.return=ee,ee=fe)}return O(ee);case T:e:{for(xe=ne.key;K!==null;){if(K.key===xe)if(K.tag===4&&K.stateNode.containerInfo===ne.containerInfo&&K.stateNode.implementation===ne.implementation){i(ee,K.sibling),fe=f(K,ne.children||[]),fe.return=ee,ee=fe;break e}else{i(ee,K);break}else n(ee,K);K=K.sibling}fe=lc(ne,ee.mode,fe),fe.return=ee,ee=fe}return O(ee);case F:return xe=ne._init,ne=xe(ne._payload),et(ee,K,ne,fe)}if(G(ne))return De(ee,K,ne,fe);if(B(ne)){if(xe=B(ne),typeof xe!="function")throw Error(l(150));return ne=xe.call(ne),_e(ee,K,ne,fe)}if(typeof ne.then=="function")return et(ee,K,hs(ne),fe);if(ne.$$typeof===I)return et(ee,K,es(ee,ne),fe);ps(ee,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint"?(ne=""+ne,K!==null&&K.tag===6?(i(ee,K.sibling),fe=f(K,ne),fe.return=ee,ee=fe):(i(ee,K),fe=ic(ne,ee.mode,fe),fe.return=ee,ee=fe),O(ee)):i(ee,K)}return function(ee,K,ne,fe){try{vl=0;var xe=et(ee,K,ne,fe);return ci=null,xe}catch(Ee){if(Ee===sl||Ee===ns)throw Ee;var Ie=en(29,Ee,null,ee.mode);return Ie.lanes=fe,Ie.return=ee,Ie}finally{}}}var fi=Tv(!0),Cv=Tv(!1),vn=C(null),In=null;function qr(e){var n=e.alternate;J(Ct,Ct.current&1),J(vn,e),In===null&&(n===null||li.current!==null||n.memoizedState!==null)&&(In=e)}function Rv(e){if(e.tag===22){if(J(Ct,Ct.current),J(vn,e),In===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(In=e)}}else Ur()}function Ur(){J(Ct,Ct.current),J(vn,vn.current)}function pr(e){Y(vn),In===e&&(In=null),Y(Ct)}var Ct=C(0);function gs(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||jf(i)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Bc(e,n,i,s){n=e.memoizedState,i=i(s,n),i=i==null?n:m({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var $c={enqueueSetState:function(e,n,i){e=e._reactInternals;var s=an(),f=Br(s);f.payload=n,i!=null&&(f.callback=i),n=$r(e,f,s),n!==null&&(ln(n,e,s),cl(n,e,s))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var s=an(),f=Br(s);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=$r(e,f,s),n!==null&&(ln(n,e,s),cl(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=an(),s=Br(i);s.tag=2,n!=null&&(s.callback=n),n=$r(e,s,i),n!==null&&(ln(n,e,i),cl(n,e,i))}};function _v(e,n,i,s,f,g,O){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,g,O):n.prototype&&n.prototype.isPureReactComponent?!el(i,s)||!el(f,g):!0}function jv(e,n,i,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,s),n.state!==e&&$c.enqueueReplaceState(n,n.state,null)}function Ra(e,n){var i=n;if("ref"in n){i={};for(var s in n)s!=="ref"&&(i[s]=n[s])}if(e=e.defaultProps){i===n&&(i=m({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}var ms=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Av(e){ms(e)}function Mv(e){console.error(e)}function Nv(e){ms(e)}function vs(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function Dv(e,n,i){try{var s=e.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Ic(e,n,i){return i=Br(i),i.tag=3,i.payload={element:null},i.callback=function(){vs(e,n)},i}function Lv(e){return e=Br(e),e.tag=3,e}function zv(e,n,i,s){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var g=s.value;e.payload=function(){return f(g)},e.callback=function(){Dv(n,i,s)}}var O=i.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(e.callback=function(){Dv(n,i,s),typeof f!="function"&&(Fr===null?Fr=new Set([this]):Fr.add(this));var j=s.stack;this.componentDidCatch(s.value,{componentStack:j!==null?j:""})})}function sT(e,n,i,s,f){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=i.alternate,n!==null&&il(n,i,f,!0),i=vn.current,i!==null){switch(i.tag){case 13:return In===null?df():i.alternate===null&&gt===0&&(gt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,s===mc?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([s]):n.add(s),pf(e,s,f)),!1;case 22:return i.flags|=65536,s===mc?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([s]):i.add(s)),pf(e,s,f)),!1}throw Error(l(435,i.tag))}return pf(e,s,f),df(),!1}if(Xe)return n=vn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,s!==uc&&(e=Error(l(422),{cause:s}),al(hn(e,i)))):(s!==uc&&(n=Error(l(423),{cause:s}),al(hn(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,s=hn(s,i),f=Ic(e.stateNode,s,f),bc(e,f),gt!==4&&(gt=2)),!1;var g=Error(l(520),{cause:s});if(g=hn(g,i),Tl===null?Tl=[g]:Tl.push(g),gt!==4&&(gt=2),n===null)return!0;s=hn(s,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=Ic(i.stateNode,s,e),bc(i,e),!1;case 1:if(n=i.type,g=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Fr===null||!Fr.has(g))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Lv(f),zv(f,e,i,s),bc(i,f),!1}i=i.return}while(i!==null);return!1}var Pv=Error(l(461)),_t=!1;function Nt(e,n,i,s){n.child=e===null?Cv(n,null,i,s):fi(n,e.child,i,s)}function Hv(e,n,i,s,f){i=i.render;var g=n.ref;if("ref"in s){var O={};for(var j in s)j!=="ref"&&(O[j]=s[j])}else O=s;return Ea(n),s=Ec(e,n,i,O,g,f),j=Tc(),e!==null&&!_t?(Cc(e,n,f),gr(e,n,f)):(Xe&&j&&oc(n),n.flags|=1,Nt(e,n,s,f),n.child)}function kv(e,n,i,s,f){if(e===null){var g=i.type;return typeof g=="function"&&!ac(g)&&g.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=g,Bv(e,n,g,s,f)):(e=Qo(i.type,null,s,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(g=e.child,!Fc(e,f)){var O=g.memoizedProps;if(i=i.compare,i=i!==null?i:el,i(O,s)&&e.ref===n.ref)return gr(e,n,f)}return n.flags|=1,e=sr(g,s),e.ref=n.ref,e.return=n,n.child=e}function Bv(e,n,i,s,f){if(e!==null){var g=e.memoizedProps;if(el(g,s)&&e.ref===n.ref)if(_t=!1,n.pendingProps=s=g,Fc(e,f))(e.flags&131072)!==0&&(_t=!0);else return n.lanes=e.lanes,gr(e,n,f)}return qc(e,n,i,s,f)}function $v(e,n,i){var s=n.pendingProps,f=s.children,g=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((n.flags&128)!==0){if(s=g!==null?g.baseLanes|i:i,e!==null){for(f=n.child=e.child,g=0;f!==null;)g=g|f.lanes|f.childLanes,f=f.sibling;n.childLanes=g&~s}else n.childLanes=0,n.child=null;return Iv(e,n,s,i)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&ts(n,g!==null?g.cachePool:null),g!==null?Bm(n,g):wc(),Rv(n);else return n.lanes=n.childLanes=536870912,Iv(e,n,g!==null?g.baseLanes|i:i,i)}else g!==null?(ts(n,g.cachePool),Bm(n,g),Ur(),n.memoizedState=null):(e!==null&&ts(n,null),wc(),Ur());return Nt(e,n,f,i),n.child}function Iv(e,n,i,s){var f=gc();return f=f===null?null:{parent:Tt._currentValue,pool:f},n.memoizedState={baseLanes:i,cachePool:f},e!==null&&ts(n,null),wc(),Rv(n),e!==null&&il(e,n,s,!0),null}function ys(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function qc(e,n,i,s,f){return Ea(n),i=Ec(e,n,i,s,void 0,f),s=Tc(),e!==null&&!_t?(Cc(e,n,f),gr(e,n,f)):(Xe&&s&&oc(n),n.flags|=1,Nt(e,n,i,f),n.child)}function qv(e,n,i,s,f,g){return Ea(n),n.updateQueue=null,i=Im(n,s,i,f),$m(e),s=Tc(),e!==null&&!_t?(Cc(e,n,g),gr(e,n,g)):(Xe&&s&&oc(n),n.flags|=1,Nt(e,n,i,g),n.child)}function Uv(e,n,i,s,f){if(Ea(n),n.stateNode===null){var g=ti,O=i.contextType;typeof O=="object"&&O!==null&&(g=Ht(O)),g=new i(s,g),n.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=$c,n.stateNode=g,g._reactInternals=n,g=n.stateNode,g.props=s,g.state=n.memoizedState,g.refs={},vc(n),O=i.contextType,g.context=typeof O=="object"&&O!==null?Ht(O):ti,g.state=n.memoizedState,O=i.getDerivedStateFromProps,typeof O=="function"&&(Bc(n,i,O,s),g.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(O=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),O!==g.state&&$c.enqueueReplaceState(g,g.state,null),dl(n,s,g,f),fl(),g.state=n.memoizedState),typeof g.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){g=n.stateNode;var j=n.memoizedProps,X=Ra(i,j);g.props=X;var ae=g.context,ce=i.contextType;O=ti,typeof ce=="object"&&ce!==null&&(O=Ht(ce));var de=i.getDerivedStateFromProps;ce=typeof de=="function"||typeof g.getSnapshotBeforeUpdate=="function",j=n.pendingProps!==j,ce||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(j||ae!==O)&&jv(n,g,s,O),kr=!1;var le=n.memoizedState;g.state=le,dl(n,s,g,f),fl(),ae=n.memoizedState,j||le!==ae||kr?(typeof de=="function"&&(Bc(n,i,de,s),ae=n.memoizedState),(X=kr||_v(n,i,X,s,le,ae,O))?(ce||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(n.flags|=4194308)):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=ae),g.props=s,g.state=ae,g.context=O,s=X):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{g=n.stateNode,yc(e,n),O=n.memoizedProps,ce=Ra(i,O),g.props=ce,de=n.pendingProps,le=g.context,ae=i.contextType,X=ti,typeof ae=="object"&&ae!==null&&(X=Ht(ae)),j=i.getDerivedStateFromProps,(ae=typeof j=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(O!==de||le!==X)&&jv(n,g,s,X),kr=!1,le=n.memoizedState,g.state=le,dl(n,s,g,f),fl();var oe=n.memoizedState;O!==de||le!==oe||kr||e!==null&&e.dependencies!==null&&Jo(e.dependencies)?(typeof j=="function"&&(Bc(n,i,j,s),oe=n.memoizedState),(ce=kr||_v(n,i,ce,s,le,oe,X)||e!==null&&e.dependencies!==null&&Jo(e.dependencies))?(ae||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(s,oe,X),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(s,oe,X)),typeof g.componentDidUpdate=="function"&&(n.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof g.componentDidUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=oe),g.props=s,g.state=oe,g.context=X,s=ce):(typeof g.componentDidUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=1024),s=!1)}return g=s,ys(e,n),s=(n.flags&128)!==0,g||s?(g=n.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:g.render(),n.flags|=1,e!==null&&s?(n.child=fi(n,e.child,null,f),n.child=fi(n,null,i,f)):Nt(e,n,i,f),n.memoizedState=g.state,e=n.child):e=gr(e,n,f),e}function Gv(e,n,i,s){return rl(),n.flags|=256,Nt(e,n,i,s),n.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Mm()}}function Vc(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=yn),e}function Vv(e,n,i){var s=n.pendingProps,f=!1,g=(n.flags&128)!==0,O;if((O=g)||(O=e!==null&&e.memoizedState===null?!1:(Ct.current&2)!==0),O&&(f=!0,n.flags&=-129),O=(n.flags&32)!==0,n.flags&=-33,e===null){if(Xe){if(f?qr(n):Ur(),Xe){var j=pt,X;if(X=j){e:{for(X=j,j=$n;X.nodeType!==8;){if(!j){j=null;break e}if(X=Dn(X.nextSibling),X===null){j=null;break e}}j=X}j!==null?(n.memoizedState={dehydrated:j,treeContext:ba!==null?{id:ur,overflow:cr}:null,retryLane:536870912,hydrationErrors:null},X=en(18,null,null,0),X.stateNode=j,X.return=n,n.child=X,Bt=n,pt=null,X=!0):X=!1}X||xa(n)}if(j=n.memoizedState,j!==null&&(j=j.dehydrated,j!==null))return jf(j)?n.lanes=32:n.lanes=536870912,null;pr(n)}return j=s.children,s=s.fallback,f?(Ur(),f=n.mode,j=bs({mode:"hidden",children:j},f),s=ya(s,f,i,null),j.return=n,s.return=n,j.sibling=s,n.child=j,f=n.child,f.memoizedState=Gc(i),f.childLanes=Vc(e,O,i),n.memoizedState=Uc,s):(qr(n),Yc(n,j))}if(X=e.memoizedState,X!==null&&(j=X.dehydrated,j!==null)){if(g)n.flags&256?(qr(n),n.flags&=-257,n=Xc(e,n,i)):n.memoizedState!==null?(Ur(),n.child=e.child,n.flags|=128,n=null):(Ur(),f=s.fallback,j=n.mode,s=bs({mode:"visible",children:s.children},j),f=ya(f,j,i,null),f.flags|=2,s.return=n,f.return=n,s.sibling=f,n.child=s,fi(n,e.child,null,i),s=n.child,s.memoizedState=Gc(i),s.childLanes=Vc(e,O,i),n.memoizedState=Uc,n=f);else if(qr(n),jf(j)){if(O=j.nextSibling&&j.nextSibling.dataset,O)var ae=O.dgst;O=ae,s=Error(l(419)),s.stack="",s.digest=O,al({value:s,source:null,stack:null}),n=Xc(e,n,i)}else if(_t||il(e,n,i,!1),O=(i&e.childLanes)!==0,_t||O){if(O=rt,O!==null&&(s=i&-i,s=(s&42)!==0?1:da(s),s=(s&(O.suspendedLanes|i))!==0?0:s,s!==0&&s!==X.retryLane))throw X.retryLane=s,ei(e,s),ln(O,e,s),Pv;j.data==="$?"||df(),n=Xc(e,n,i)}else j.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=X.treeContext,pt=Dn(j.nextSibling),Bt=n,Xe=!0,wa=null,$n=!1,e!==null&&(gn[mn++]=ur,gn[mn++]=cr,gn[mn++]=ba,ur=e.id,cr=e.overflow,ba=n),n=Yc(n,s.children),n.flags|=4096);return n}return f?(Ur(),f=s.fallback,j=n.mode,X=e.child,ae=X.sibling,s=sr(X,{mode:"hidden",children:s.children}),s.subtreeFlags=X.subtreeFlags&65011712,ae!==null?f=sr(ae,f):(f=ya(f,j,i,null),f.flags|=2),f.return=n,s.return=n,s.sibling=f,n.child=s,s=f,f=n.child,j=e.child.memoizedState,j===null?j=Gc(i):(X=j.cachePool,X!==null?(ae=Tt._currentValue,X=X.parent!==ae?{parent:ae,pool:ae}:X):X=Mm(),j={baseLanes:j.baseLanes|i,cachePool:X}),f.memoizedState=j,f.childLanes=Vc(e,O,i),n.memoizedState=Uc,s):(qr(n),i=e.child,e=i.sibling,i=sr(i,{mode:"visible",children:s.children}),i.return=n,i.sibling=null,e!==null&&(O=n.deletions,O===null?(n.deletions=[e],n.flags|=16):O.push(e)),n.child=i,n.memoizedState=null,i)}function Yc(e,n){return n=bs({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function bs(e,n){return e=en(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Xc(e,n,i){return fi(n,e.child,null,i),e=Yc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Yv(e,n,i){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),fc(e.return,n,i)}function Wc(e,n,i,s,f){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:f}:(g.isBackwards=n,g.rendering=null,g.renderingStartTime=0,g.last=s,g.tail=i,g.tailMode=f)}function Xv(e,n,i){var s=n.pendingProps,f=s.revealOrder,g=s.tail;if(Nt(e,n,s.children,i),s=Ct.current,(s&2)!==0)s=s&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yv(e,i,n);else if(e.tag===19)Yv(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}switch(J(Ct,s),f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&gs(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),Wc(n,!1,f,i,g);break;case"backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&gs(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}Wc(n,!0,i,null,g);break;case"together":Wc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function gr(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),Wr|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(il(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(l(153));if(n.child!==null){for(e=n.child,i=sr(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=sr(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Fc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Jo(e)))}function uT(e,n,i){switch(n.tag){case 3:ue(n,n.stateNode.containerInfo),Hr(n,Tt,e.memoizedState.cache),rl();break;case 27:case 5:pe(n);break;case 4:ue(n,n.stateNode.containerInfo);break;case 10:Hr(n,n.type,n.memoizedProps.value);break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(qr(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Vv(e,n,i):(qr(n),e=gr(e,n,i),e!==null?e.sibling:null);qr(n);break;case 19:var f=(e.flags&128)!==0;if(s=(i&n.childLanes)!==0,s||(il(e,n,i,!1),s=(i&n.childLanes)!==0),f){if(s)return Xv(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),J(Ct,Ct.current),s)break;return null;case 22:case 23:return n.lanes=0,$v(e,n,i);case 24:Hr(n,Tt,e.memoizedState.cache)}return gr(e,n,i)}function Wv(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)_t=!0;else{if(!Fc(e,i)&&(n.flags&128)===0)return _t=!1,uT(e,n,i);_t=(e.flags&131072)!==0}else _t=!1,Xe&&(n.flags&1048576)!==0&&Em(n,Ko,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var s=n.elementType,f=s._init;if(s=f(s._payload),n.type=s,typeof s=="function")ac(s)?(e=Ra(s,e),n.tag=1,n=Uv(null,n,s,e,i)):(n.tag=0,n=qc(null,n,s,e,i));else{if(s!=null){if(f=s.$$typeof,f===Q){n.tag=11,n=Hv(null,n,s,e,i);break e}else if(f===P){n.tag=14,n=kv(null,n,s,e,i);break e}}throw n=k(s)||s,Error(l(306,n,""))}}return n;case 0:return qc(e,n,n.type,n.pendingProps,i);case 1:return s=n.type,f=Ra(s,n.pendingProps),Uv(e,n,s,f,i);case 3:e:{if(ue(n,n.stateNode.containerInfo),e===null)throw Error(l(387));s=n.pendingProps;var g=n.memoizedState;f=g.element,yc(e,n),dl(n,s,null,i);var O=n.memoizedState;if(s=O.cache,Hr(n,Tt,s),s!==g.cache&&dc(n,[Tt],i,!0),fl(),s=O.element,g.isDehydrated)if(g={element:s,isDehydrated:!1,cache:O.cache},n.updateQueue.baseState=g,n.memoizedState=g,n.flags&256){n=Gv(e,n,s,i);break e}else if(s!==f){f=hn(Error(l(424)),n),al(f),n=Gv(e,n,s,i);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(pt=Dn(e.firstChild),Bt=n,Xe=!0,wa=null,$n=!0,i=Cv(n,null,s,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(rl(),s===f){n=gr(e,n,i);break e}Nt(e,n,s,i)}n=n.child}return n;case 26:return ys(e,n),e===null?(i=Ky(n.type,null,n.pendingProps,null))?n.memoizedState=i:Xe||(i=n.type,e=n.pendingProps,s=Ds(Z.current).createElement(i),s[Et]=n,s[wt]=e,Lt(s,i,e),ht(s),n.stateNode=s):n.memoizedState=Ky(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return pe(n),e===null&&Xe&&(s=n.stateNode=Fy(n.type,n.pendingProps,Z.current),Bt=n,$n=!0,f=pt,Kr(n.type)?(Af=f,pt=Dn(s.firstChild)):pt=f),Nt(e,n,n.pendingProps.children,i),ys(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Xe&&((f=s=pt)&&(s=HT(s,n.type,n.pendingProps,$n),s!==null?(n.stateNode=s,Bt=n,pt=Dn(s.firstChild),$n=!1,f=!0):f=!1),f||xa(n)),pe(n),f=n.type,g=n.pendingProps,O=e!==null?e.memoizedProps:null,s=g.children,Cf(f,g)?s=null:O!==null&&Cf(f,O)&&(n.flags|=32),n.memoizedState!==null&&(f=Ec(e,n,tT,null,null,i),Ll._currentValue=f),ys(e,n),Nt(e,n,s,i),n.child;case 6:return e===null&&Xe&&((e=i=pt)&&(i=kT(i,n.pendingProps,$n),i!==null?(n.stateNode=i,Bt=n,pt=null,e=!0):e=!1),e||xa(n)),null;case 13:return Vv(e,n,i);case 4:return ue(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=fi(n,null,s,i):Nt(e,n,s,i),n.child;case 11:return Hv(e,n,n.type,n.pendingProps,i);case 7:return Nt(e,n,n.pendingProps,i),n.child;case 8:return Nt(e,n,n.pendingProps.children,i),n.child;case 12:return Nt(e,n,n.pendingProps.children,i),n.child;case 10:return s=n.pendingProps,Hr(n,n.type,s.value),Nt(e,n,s.children,i),n.child;case 9:return f=n.type._context,s=n.pendingProps.children,Ea(n),f=Ht(f),s=s(f),n.flags|=1,Nt(e,n,s,i),n.child;case 14:return kv(e,n,n.type,n.pendingProps,i);case 15:return Bv(e,n,n.type,n.pendingProps,i);case 19:return Xv(e,n,i);case 31:return s=n.pendingProps,i=n.mode,s={mode:s.mode,children:s.children},e===null?(i=bs(s,i),i.ref=n.ref,n.child=i,i.return=n,n=i):(i=sr(e.child,s),i.ref=n.ref,n.child=i,i.return=n,n=i),n;case 22:return $v(e,n,i);case 24:return Ea(n),s=Ht(Tt),e===null?(f=gc(),f===null&&(f=rt,g=hc(),f.pooledCache=g,g.refCount++,g!==null&&(f.pooledCacheLanes|=i),f=g),n.memoizedState={parent:s,cache:f},vc(n),Hr(n,Tt,f)):((e.lanes&i)!==0&&(yc(e,n),dl(n,null,null,i),fl()),f=e.memoizedState,g=n.memoizedState,f.parent!==s?(f={parent:s,cache:s},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),Hr(n,Tt,s)):(s=g.cache,Hr(n,Tt,s),s!==f.cache&&dc(n,[Tt],i,!0))),Nt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function mr(e){e.flags|=4}function Fv(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rb(n)){if(n=vn.current,n!==null&&((Ge&4194048)===Ge?In!==null:(Ge&62914560)!==Ge&&(Ge&536870912)===0||n!==In))throw ul=mc,Nm;e.flags|=8192}}function Ss(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Ze():536870912,e.lanes|=n,gi|=n)}function bl(e,n){if(!Xe)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ut(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,s=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=s,e.childLanes=i,n}function cT(e,n,i){var s=n.pendingProps;switch(sc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(n),null;case 1:return ut(n),null;case 3:return i=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),dr(Tt),ge(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(nl(n)?mr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Rm())),ut(n),null;case 26:return i=n.memoizedState,e===null?(mr(n),i!==null?(ut(n),Fv(n,i)):(ut(n),n.flags&=-16777217)):i?i!==e.memoizedState?(mr(n),ut(n),Fv(n,i)):(ut(n),n.flags&=-16777217):(e.memoizedProps!==s&&mr(n),ut(n),n.flags&=-16777217),null;case 27:ve(n),i=Z.current;var f=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==s&&mr(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return ut(n),null}e=H.current,nl(n)?Tm(n):(e=Fy(f,s,i),n.stateNode=e,mr(n))}return ut(n),null;case 5:if(ve(n),i=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&mr(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return ut(n),null}if(e=H.current,nl(n))Tm(n);else{switch(f=Ds(Z.current),e){case 1:e=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:e=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":e=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":e=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?f.createElement("select",{is:s.is}):f.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?f.createElement(i,{is:s.is}):f.createElement(i)}}e[Et]=n,e[wt]=s;e:for(f=n.child;f!==null;){if(f.tag===5||f.tag===6)e.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===n)break e;for(;f.sibling===null;){if(f.return===null||f.return===n)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}n.stateNode=e;e:switch(Lt(e,i,s),i){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&mr(n)}}return ut(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&mr(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(l(166));if(e=Z.current,nl(n)){if(e=n.stateNode,i=n.memoizedProps,s=null,f=Bt,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}e[Et]=n,e=!!(e.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||qy(e.nodeValue,i)),e||xa(n)}else e=Ds(e).createTextNode(s),e[Et]=n,n.stateNode=e}return ut(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=nl(n),s!==null&&s.dehydrated!==null){if(e===null){if(!f)throw Error(l(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(l(317));f[Et]=n}else rl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ut(n),f=!1}else f=Rm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(pr(n),n):(pr(n),null)}if(pr(n),(n.flags&128)!==0)return n.lanes=i,n;if(i=s!==null,e=e!==null&&e.memoizedState!==null,i){s=n.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool);var g=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==f&&(s.flags|=2048)}return i!==e&&i&&(n.child.flags|=8192),Ss(n,n.updateQueue),ut(n),null;case 4:return ge(),e===null&&wf(n.stateNode.containerInfo),ut(n),null;case 10:return dr(n.type),ut(n),null;case 19:if(Y(Ct),f=n.memoizedState,f===null)return ut(n),null;if(s=(n.flags&128)!==0,g=f.rendering,g===null)if(s)bl(f,!1);else{if(gt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(g=gs(e),g!==null){for(n.flags|=128,bl(f,!1),e=g.updateQueue,n.updateQueue=e,Ss(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)Om(i,e),i=i.sibling;return J(Ct,Ct.current&1|2),n.child}e=e.sibling}f.tail!==null&&be()>Os&&(n.flags|=128,s=!0,bl(f,!1),n.lanes=4194304)}else{if(!s)if(e=gs(g),e!==null){if(n.flags|=128,s=!0,e=e.updateQueue,n.updateQueue=e,Ss(n,e),bl(f,!0),f.tail===null&&f.tailMode==="hidden"&&!g.alternate&&!Xe)return ut(n),null}else 2*be()-f.renderingStartTime>Os&&i!==536870912&&(n.flags|=128,s=!0,bl(f,!1),n.lanes=4194304);f.isBackwards?(g.sibling=n.child,n.child=g):(e=f.last,e!==null?e.sibling=g:n.child=g,f.last=g)}return f.tail!==null?(n=f.tail,f.rendering=n,f.tail=n.sibling,f.renderingStartTime=be(),n.sibling=null,e=Ct.current,J(Ct,s?e&1|2:e&1),n):(ut(n),null);case 22:case 23:return pr(n),xc(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(i&536870912)!==0&&(n.flags&128)===0&&(ut(n),n.subtreeFlags&6&&(n.flags|=8192)):ut(n),i=n.updateQueue,i!==null&&Ss(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048),e!==null&&Y(Ta),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),dr(Tt),ut(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function fT(e,n){switch(sc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return dr(Tt),ge(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ve(n),null;case 13:if(pr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));rl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Y(Ct),null;case 4:return ge(),null;case 10:return dr(n.type),null;case 22:case 23:return pr(n),xc(),e!==null&&Y(Ta),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return dr(Tt),null;case 25:return null;default:return null}}function Qv(e,n){switch(sc(n),n.tag){case 3:dr(Tt),ge();break;case 26:case 27:case 5:ve(n);break;case 4:ge();break;case 13:pr(n);break;case 19:Y(Ct);break;case 10:dr(n.type);break;case 22:case 23:pr(n),xc(),e!==null&&Y(Ta);break;case 24:dr(Tt)}}function Sl(e,n){try{var i=n.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var f=s.next;i=f;do{if((i.tag&e)===e){s=void 0;var g=i.create,O=i.inst;s=g(),O.destroy=s}i=i.next}while(i!==f)}}catch(j){tt(n,n.return,j)}}function Gr(e,n,i){try{var s=n.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var g=f.next;s=g;do{if((s.tag&e)===e){var O=s.inst,j=O.destroy;if(j!==void 0){O.destroy=void 0,f=n;var X=i,ae=j;try{ae()}catch(ce){tt(f,X,ce)}}}s=s.next}while(s!==g)}}catch(ce){tt(n,n.return,ce)}}function Zv(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{km(n,i)}catch(s){tt(e,e.return,s)}}}function Kv(e,n,i){i.props=Ra(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(s){tt(e,n,s)}}function wl(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof i=="function"?e.refCleanup=i(s):i.current=s}}catch(f){tt(e,n,f)}}function qn(e,n){var i=e.ref,s=e.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(f){tt(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){tt(e,n,f)}else i.current=null}function Jv(e){var n=e.type,i=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break e;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(f){tt(e,e.return,f)}}function Qc(e,n,i){try{var s=e.stateNode;NT(s,e.type,i,n),s[wt]=n}catch(f){tt(e,e.return,f)}}function ey(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kr(e.type)||e.tag===4}function Zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ey(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Kr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kc(e,n,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ns));else if(s!==4&&(s===27&&Kr(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(Kc(e,n,i),e=e.sibling;e!==null;)Kc(e,n,i),e=e.sibling}function ws(e,n,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(s!==4&&(s===27&&Kr(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(ws(e,n,i),e=e.sibling;e!==null;)ws(e,n,i),e=e.sibling}function ty(e){var n=e.stateNode,i=e.memoizedProps;try{for(var s=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);Lt(n,s,i),n[Et]=e,n[wt]=i}catch(g){tt(e,e.return,g)}}var vr=!1,bt=!1,Jc=!1,ny=typeof WeakSet=="function"?WeakSet:Set,jt=null;function dT(e,n){if(e=e.containerInfo,Ef=Bs,e=hm(e),Zu(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var f=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{i.nodeType,g.nodeType}catch{i=null;break e}var O=0,j=-1,X=-1,ae=0,ce=0,de=e,le=null;t:for(;;){for(var oe;de!==i||f!==0&&de.nodeType!==3||(j=O+f),de!==g||s!==0&&de.nodeType!==3||(X=O+s),de.nodeType===3&&(O+=de.nodeValue.length),(oe=de.firstChild)!==null;)le=de,de=oe;for(;;){if(de===e)break t;if(le===i&&++ae===f&&(j=O),le===g&&++ce===s&&(X=O),(oe=de.nextSibling)!==null)break;de=le,le=de.parentNode}de=oe}i=j===-1||X===-1?null:{start:j,end:X}}else i=null}i=i||{start:0,end:0}}else i=null;for(Tf={focusedElem:e,selectionRange:i},Bs=!1,jt=n;jt!==null;)if(n=jt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,jt=e;else for(;jt!==null;){switch(n=jt,g=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&g!==null){e=void 0,i=n,f=g.memoizedProps,g=g.memoizedState,s=i.stateNode;try{var De=Ra(i.type,f,i.elementType===i.type);e=s.getSnapshotBeforeUpdate(De,g),s.__reactInternalSnapshotBeforeUpdate=e}catch(_e){tt(i,i.return,_e)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)_f(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_f(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=n.sibling,e!==null){e.return=n.return,jt=e;break}jt=n.return}}function ry(e,n,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:Vr(e,i),s&4&&Sl(5,i);break;case 1:if(Vr(e,i),s&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(O){tt(i,i.return,O)}else{var f=Ra(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(O){tt(i,i.return,O)}}s&64&&Zv(i),s&512&&wl(i,i.return);break;case 3:if(Vr(e,i),s&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{km(e,n)}catch(O){tt(i,i.return,O)}}break;case 27:n===null&&s&4&&ty(i);case 26:case 5:Vr(e,i),n===null&&s&4&&Jv(i),s&512&&wl(i,i.return);break;case 12:Vr(e,i);break;case 13:Vr(e,i),s&4&&ly(e,i),s&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=wT.bind(null,i),BT(e,i))));break;case 22:if(s=i.memoizedState!==null||vr,!s){n=n!==null&&n.memoizedState!==null||bt,f=vr;var g=bt;vr=s,(bt=n)&&!g?Yr(e,i,(i.subtreeFlags&8772)!==0):Vr(e,i),vr=f,bt=g}break;case 30:break;default:Vr(e,i)}}function ay(e){var n=e.alternate;n!==null&&(e.alternate=null,ay(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&ha(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ot=null,Yt=!1;function yr(e,n,i){for(i=i.child;i!==null;)iy(e,n,i),i=i.sibling}function iy(e,n,i){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(Ae,i)}catch{}switch(i.tag){case 26:bt||qn(i,n),yr(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:bt||qn(i,n);var s=ot,f=Yt;Kr(i.type)&&(ot=i.stateNode,Yt=!1),yr(e,n,i),Al(i.stateNode),ot=s,Yt=f;break;case 5:bt||qn(i,n);case 6:if(s=ot,f=Yt,ot=null,yr(e,n,i),ot=s,Yt=f,ot!==null)if(Yt)try{(ot.nodeType===9?ot.body:ot.nodeName==="HTML"?ot.ownerDocument.body:ot).removeChild(i.stateNode)}catch(g){tt(i,n,g)}else try{ot.removeChild(i.stateNode)}catch(g){tt(i,n,g)}break;case 18:ot!==null&&(Yt?(e=ot,Xy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),kl(e)):Xy(ot,i.stateNode));break;case 4:s=ot,f=Yt,ot=i.stateNode.containerInfo,Yt=!0,yr(e,n,i),ot=s,Yt=f;break;case 0:case 11:case 14:case 15:bt||Gr(2,i,n),bt||Gr(4,i,n),yr(e,n,i);break;case 1:bt||(qn(i,n),s=i.stateNode,typeof s.componentWillUnmount=="function"&&Kv(i,n,s)),yr(e,n,i);break;case 21:yr(e,n,i);break;case 22:bt=(s=bt)||i.memoizedState!==null,yr(e,n,i),bt=s;break;default:yr(e,n,i)}}function ly(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{kl(e)}catch(i){tt(n,n.return,i)}}function hT(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new ny),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new ny),n;default:throw Error(l(435,e.tag))}}function ef(e,n){var i=hT(e);n.forEach(function(s){var f=xT.bind(null,e,s);i.has(s)||(i.add(s),s.then(f,f))})}function tn(e,n){var i=n.deletions;if(i!==null)for(var s=0;s<i.length;s++){var f=i[s],g=e,O=n,j=O;e:for(;j!==null;){switch(j.tag){case 27:if(Kr(j.type)){ot=j.stateNode,Yt=!1;break e}break;case 5:ot=j.stateNode,Yt=!1;break e;case 3:case 4:ot=j.stateNode.containerInfo,Yt=!0;break e}j=j.return}if(ot===null)throw Error(l(160));iy(g,O,f),ot=null,Yt=!1,g=f.alternate,g!==null&&(g.return=null),f.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)oy(n,e),n=n.sibling}var Nn=null;function oy(e,n){var i=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:tn(n,e),nn(e),s&4&&(Gr(3,e,e.return),Sl(3,e),Gr(5,e,e.return));break;case 1:tn(n,e),nn(e),s&512&&(bt||i===null||qn(i,i.return)),s&64&&vr&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var f=Nn;if(tn(n,e),nn(e),s&512&&(bt||i===null||qn(i,i.return)),s&4){var g=i!==null?i.memoizedState:null;if(s=e.memoizedState,i===null)if(s===null)if(e.stateNode===null){e:{s=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":g=f.getElementsByTagName("title")[0],(!g||g[Dr]||g[Et]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=f.createElement(s),f.head.insertBefore(g,f.querySelector("head > title"))),Lt(g,s,i),g[Et]=e,ht(g),s=g;break e;case"link":var O=tb("link","href",f).get(s+(i.href||""));if(O){for(var j=0;j<O.length;j++)if(g=O[j],g.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&g.getAttribute("rel")===(i.rel==null?null:i.rel)&&g.getAttribute("title")===(i.title==null?null:i.title)&&g.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){O.splice(j,1);break t}}g=f.createElement(s),Lt(g,s,i),f.head.appendChild(g);break;case"meta":if(O=tb("meta","content",f).get(s+(i.content||""))){for(j=0;j<O.length;j++)if(g=O[j],g.getAttribute("content")===(i.content==null?null:""+i.content)&&g.getAttribute("name")===(i.name==null?null:i.name)&&g.getAttribute("property")===(i.property==null?null:i.property)&&g.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&g.getAttribute("charset")===(i.charSet==null?null:i.charSet)){O.splice(j,1);break t}}g=f.createElement(s),Lt(g,s,i),f.head.appendChild(g);break;default:throw Error(l(468,s))}g[Et]=e,ht(g),s=g}e.stateNode=s}else nb(f,e.type,e.stateNode);else e.stateNode=eb(f,s,e.memoizedProps);else g!==s?(g===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):g.count--,s===null?nb(f,e.type,e.stateNode):eb(f,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Qc(e,e.memoizedProps,i.memoizedProps)}break;case 27:tn(n,e),nn(e),s&512&&(bt||i===null||qn(i,i.return)),i!==null&&s&4&&Qc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(tn(n,e),nn(e),s&512&&(bt||i===null||qn(i,i.return)),e.flags&32){f=e.stateNode;try{Xa(f,"")}catch(oe){tt(e,e.return,oe)}}s&4&&e.stateNode!=null&&(f=e.memoizedProps,Qc(e,f,i!==null?i.memoizedProps:f)),s&1024&&(Jc=!0);break;case 6:if(tn(n,e),nn(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,i=e.stateNode;try{i.nodeValue=s}catch(oe){tt(e,e.return,oe)}}break;case 3:if(Ps=null,f=Nn,Nn=Ls(n.containerInfo),tn(n,e),Nn=f,nn(e),s&4&&i!==null&&i.memoizedState.isDehydrated)try{kl(n.containerInfo)}catch(oe){tt(e,e.return,oe)}Jc&&(Jc=!1,sy(e));break;case 4:s=Nn,Nn=Ls(e.stateNode.containerInfo),tn(n,e),nn(e),Nn=s;break;case 12:tn(n,e),nn(e);break;case 13:tn(n,e),nn(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(of=be()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ef(e,s)));break;case 22:f=e.memoizedState!==null;var X=i!==null&&i.memoizedState!==null,ae=vr,ce=bt;if(vr=ae||f,bt=ce||X,tn(n,e),bt=ce,vr=ae,nn(e),s&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||X||vr||bt||_a(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){X=i=n;try{if(g=X.stateNode,f)O=g.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{j=X.stateNode;var de=X.memoizedProps.style,le=de!=null&&de.hasOwnProperty("display")?de.display:null;j.style.display=le==null||typeof le=="boolean"?"":(""+le).trim()}}catch(oe){tt(X,X.return,oe)}}}else if(n.tag===6){if(i===null){X=n;try{X.stateNode.nodeValue=f?"":X.memoizedProps}catch(oe){tt(X,X.return,oe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,ef(e,i))));break;case 19:tn(n,e),nn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ef(e,s)));break;case 30:break;case 21:break;default:tn(n,e),nn(e)}}function nn(e){var n=e.flags;if(n&2){try{for(var i,s=e.return;s!==null;){if(ey(s)){i=s;break}s=s.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var f=i.stateNode,g=Zc(e);ws(e,g,f);break;case 5:var O=i.stateNode;i.flags&32&&(Xa(O,""),i.flags&=-33);var j=Zc(e);ws(e,j,O);break;case 3:case 4:var X=i.stateNode.containerInfo,ae=Zc(e);Kc(e,ae,X);break;default:throw Error(l(161))}}catch(ce){tt(e,e.return,ce)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function sy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;sy(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Vr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)ry(e,n.alternate,n),n=n.sibling}function _a(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Gr(4,n,n.return),_a(n);break;case 1:qn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Kv(n,n.return,i),_a(n);break;case 27:Al(n.stateNode);case 26:case 5:qn(n,n.return),_a(n);break;case 22:n.memoizedState===null&&_a(n);break;case 30:_a(n);break;default:_a(n)}e=e.sibling}}function Yr(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,f=e,g=n,O=g.flags;switch(g.tag){case 0:case 11:case 15:Yr(f,g,i),Sl(4,g);break;case 1:if(Yr(f,g,i),s=g,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(ae){tt(s,s.return,ae)}if(s=g,f=s.updateQueue,f!==null){var j=s.stateNode;try{var X=f.shared.hiddenCallbacks;if(X!==null)for(f.shared.hiddenCallbacks=null,f=0;f<X.length;f++)Hm(X[f],j)}catch(ae){tt(s,s.return,ae)}}i&&O&64&&Zv(g),wl(g,g.return);break;case 27:ty(g);case 26:case 5:Yr(f,g,i),i&&s===null&&O&4&&Jv(g),wl(g,g.return);break;case 12:Yr(f,g,i);break;case 13:Yr(f,g,i),i&&O&4&&ly(f,g);break;case 22:g.memoizedState===null&&Yr(f,g,i),wl(g,g.return);break;case 30:break;default:Yr(f,g,i)}n=n.sibling}}function tf(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&ll(i))}function nf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ll(e))}function Un(e,n,i,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)uy(e,n,i,s),n=n.sibling}function uy(e,n,i,s){var f=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n,i,s),f&2048&&Sl(9,n);break;case 1:Un(e,n,i,s);break;case 3:Un(e,n,i,s),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ll(e)));break;case 12:if(f&2048){Un(e,n,i,s),e=n.stateNode;try{var g=n.memoizedProps,O=g.id,j=g.onPostCommit;typeof j=="function"&&j(O,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(X){tt(n,n.return,X)}}else Un(e,n,i,s);break;case 13:Un(e,n,i,s);break;case 23:break;case 22:g=n.stateNode,O=n.alternate,n.memoizedState!==null?g._visibility&2?Un(e,n,i,s):xl(e,n):g._visibility&2?Un(e,n,i,s):(g._visibility|=2,di(e,n,i,s,(n.subtreeFlags&10256)!==0)),f&2048&&tf(O,n);break;case 24:Un(e,n,i,s),f&2048&&nf(n.alternate,n);break;default:Un(e,n,i,s)}}function di(e,n,i,s,f){for(f=f&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var g=e,O=n,j=i,X=s,ae=O.flags;switch(O.tag){case 0:case 11:case 15:di(g,O,j,X,f),Sl(8,O);break;case 23:break;case 22:var ce=O.stateNode;O.memoizedState!==null?ce._visibility&2?di(g,O,j,X,f):xl(g,O):(ce._visibility|=2,di(g,O,j,X,f)),f&&ae&2048&&tf(O.alternate,O);break;case 24:di(g,O,j,X,f),f&&ae&2048&&nf(O.alternate,O);break;default:di(g,O,j,X,f)}n=n.sibling}}function xl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,s=n,f=s.flags;switch(s.tag){case 22:xl(i,s),f&2048&&tf(s.alternate,s);break;case 24:xl(i,s),f&2048&&nf(s.alternate,s);break;default:xl(i,s)}n=n.sibling}}var Ol=8192;function hi(e){if(e.subtreeFlags&Ol)for(e=e.child;e!==null;)cy(e),e=e.sibling}function cy(e){switch(e.tag){case 26:hi(e),e.flags&Ol&&e.memoizedState!==null&&KT(Nn,e.memoizedState,e.memoizedProps);break;case 5:hi(e);break;case 3:case 4:var n=Nn;Nn=Ls(e.stateNode.containerInfo),hi(e),Nn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ol,Ol=16777216,hi(e),Ol=n):hi(e));break;default:hi(e)}}function fy(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function El(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];jt=s,hy(s,e)}fy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)dy(e),e=e.sibling}function dy(e){switch(e.tag){case 0:case 11:case 15:El(e),e.flags&2048&&Gr(9,e,e.return);break;case 3:El(e);break;case 12:El(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,xs(e)):El(e);break;default:El(e)}}function xs(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];jt=s,hy(s,e)}fy(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Gr(8,n,n.return),xs(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,xs(n));break;default:xs(n)}e=e.sibling}}function hy(e,n){for(;jt!==null;){var i=jt;switch(i.tag){case 0:case 11:case 15:Gr(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ll(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,jt=s;else e:for(i=e;jt!==null;){s=jt;var f=s.sibling,g=s.return;if(ay(s),s===i){jt=null;break e}if(f!==null){f.return=g,jt=f;break e}jt=g}}}var pT={getCacheForType:function(e){var n=Ht(Tt),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i}},gT=typeof WeakMap=="function"?WeakMap:Map,Fe=0,rt=null,qe=null,Ge=0,Qe=0,rn=null,Xr=!1,pi=!1,rf=!1,br=0,gt=0,Wr=0,ja=0,af=0,yn=0,gi=0,Tl=null,Xt=null,lf=!1,of=0,Os=1/0,Es=null,Fr=null,Dt=0,Qr=null,mi=null,vi=0,sf=0,uf=null,py=null,Cl=0,cf=null;function an(){if((Fe&2)!==0&&Ge!==0)return Ge&-Ge;if(L.T!==null){var e=ai;return e!==0?e:vf()}return Ut()}function gy(){yn===0&&(yn=(Ge&536870912)===0||Xe?We():536870912);var e=vn.current;return e!==null&&(e.flags|=32),yn}function ln(e,n,i){(e===rt&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(yi(e,0),Zr(e,Ge,yn,!1)),qt(e,i),((Fe&2)===0||e!==rt)&&(e===rt&&((Fe&2)===0&&(ja|=i),gt===4&&Zr(e,Ge,yn,!1)),Gn(e))}function my(e,n,i){if((Fe&6)!==0)throw Error(l(327));var s=!i&&(n&124)===0&&(n&e.expiredLanes)===0||se(e,n),f=s?yT(e,n):hf(e,n,!0),g=s;do{if(f===0){pi&&!s&&Zr(e,n,0,!1);break}else{if(i=e.current.alternate,g&&!mT(i)){f=hf(e,n,!1),g=!1;continue}if(f===2){if(g=n,e.errorRecoveryDisabledLanes&g)var O=0;else O=e.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){n=O;e:{var j=e;f=Tl;var X=j.current.memoizedState.isDehydrated;if(X&&(yi(j,O).flags|=256),O=hf(j,O,!1),O!==2){if(rf&&!X){j.errorRecoveryDisabledLanes|=g,ja|=g,f=4;break e}g=Xt,Xt=f,g!==null&&(Xt===null?Xt=g:Xt.push.apply(Xt,g))}f=O}if(g=!1,f!==2)continue}}if(f===1){yi(e,0),Zr(e,n,0,!0);break}e:{switch(s=e,g=f,g){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:Zr(s,n,yn,!Xr);break e;case 2:Xt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(f=of+300-be(),10<f)){if(Zr(s,n,yn,!Xr),ie(s,0,!0)!==0)break e;s.timeoutHandle=Vy(vy.bind(null,s,i,Xt,Es,lf,n,yn,ja,gi,Xr,g,2,-0,0),f);break e}vy(s,i,Xt,Es,lf,n,yn,ja,gi,Xr,g,0,-0,0)}}break}while(!0);Gn(e)}function vy(e,n,i,s,f,g,O,j,X,ae,ce,de,le,oe){if(e.timeoutHandle=-1,de=n.subtreeFlags,(de&8192||(de&16785408)===16785408)&&(Dl={stylesheets:null,count:0,unsuspend:ZT},cy(n),de=JT(),de!==null)){e.cancelPendingCommit=de(Ey.bind(null,e,n,g,i,s,f,O,j,X,ce,1,le,oe)),Zr(e,g,O,!ae);return}Ey(e,n,g,i,s,f,O,j,X)}function mT(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var f=i[s],g=f.getSnapshot;f=f.value;try{if(!Jt(g(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Zr(e,n,i,s){n&=~af,n&=~ja,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var f=n;0<f;){var g=31-dt(f),O=1<<g;s[g]=-1,f&=~O}i!==0&&Pt(e,i,n)}function Ts(){return(Fe&6)===0?(Rl(0),!1):!0}function ff(){if(qe!==null){if(Qe===0)var e=qe.return;else e=qe,fr=Oa=null,Rc(e),ci=null,vl=0,e=qe;for(;e!==null;)Qv(e.alternate,e),e=e.return;qe=null}}function yi(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,LT(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),ff(),rt=e,qe=i=sr(e.current,null),Ge=n,Qe=0,rn=null,Xr=!1,pi=se(e,n),rf=!1,gi=yn=af=ja=Wr=gt=0,Xt=Tl=null,lf=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var f=31-dt(s),g=1<<f;n|=e[f],s&=~g}return br=n,Xo(),i}function yy(e,n){$e=null,L.H=ds,n===sl||n===ns?(n=zm(),Qe=3):n===Nm?(n=zm(),Qe=4):Qe=n===Pv?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,rn=n,qe===null&&(gt=1,vs(e,hn(n,e.current)))}function by(){var e=L.H;return L.H=ds,e===null?ds:e}function Sy(){var e=L.A;return L.A=pT,e}function df(){gt=4,Xr||(Ge&4194048)!==Ge&&vn.current!==null||(pi=!0),(Wr&134217727)===0&&(ja&134217727)===0||rt===null||Zr(rt,Ge,yn,!1)}function hf(e,n,i){var s=Fe;Fe|=2;var f=by(),g=Sy();(rt!==e||Ge!==n)&&(Es=null,yi(e,n)),n=!1;var O=gt;e:do try{if(Qe!==0&&qe!==null){var j=qe,X=rn;switch(Qe){case 8:ff(),O=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(n=!0);var ae=Qe;if(Qe=0,rn=null,bi(e,j,X,ae),i&&pi){O=0;break e}break;default:ae=Qe,Qe=0,rn=null,bi(e,j,X,ae)}}vT(),O=gt;break}catch(ce){yy(e,ce)}while(!0);return n&&e.shellSuspendCounter++,fr=Oa=null,Fe=s,L.H=f,L.A=g,qe===null&&(rt=null,Ge=0,Xo()),O}function vT(){for(;qe!==null;)wy(qe)}function yT(e,n){var i=Fe;Fe|=2;var s=by(),f=Sy();rt!==e||Ge!==n?(Es=null,Os=be()+500,yi(e,n)):pi=se(e,n);e:do try{if(Qe!==0&&qe!==null){n=qe;var g=rn;t:switch(Qe){case 1:Qe=0,rn=null,bi(e,n,g,1);break;case 2:case 9:if(Dm(g)){Qe=0,rn=null,xy(n);break}n=function(){Qe!==2&&Qe!==9||rt!==e||(Qe=7),Gn(e)},g.then(n,n);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:Dm(g)?(Qe=0,rn=null,xy(n)):(Qe=0,rn=null,bi(e,n,g,7));break;case 5:var O=null;switch(qe.tag){case 26:O=qe.memoizedState;case 5:case 27:var j=qe;if(!O||rb(O)){Qe=0,rn=null;var X=j.sibling;if(X!==null)qe=X;else{var ae=j.return;ae!==null?(qe=ae,Cs(ae)):qe=null}break t}}Qe=0,rn=null,bi(e,n,g,5);break;case 6:Qe=0,rn=null,bi(e,n,g,6);break;case 8:ff(),gt=6;break e;default:throw Error(l(462))}}bT();break}catch(ce){yy(e,ce)}while(!0);return fr=Oa=null,L.H=s,L.A=f,Fe=i,qe!==null?0:(rt=null,Ge=0,Xo(),gt)}function bT(){for(;qe!==null&&!ye();)wy(qe)}function wy(e){var n=Wv(e.alternate,e,br);e.memoizedProps=e.pendingProps,n===null?Cs(e):qe=n}function xy(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=qv(i,n,n.pendingProps,n.type,void 0,Ge);break;case 11:n=qv(i,n,n.pendingProps,n.type.render,n.ref,Ge);break;case 5:Rc(n);default:Qv(i,n),n=qe=Om(n,br),n=Wv(i,n,br)}e.memoizedProps=e.pendingProps,n===null?Cs(e):qe=n}function bi(e,n,i,s){fr=Oa=null,Rc(n),ci=null,vl=0;var f=n.return;try{if(sT(e,f,n,i,Ge)){gt=1,vs(e,hn(i,e.current)),qe=null;return}}catch(g){if(f!==null)throw qe=f,g;gt=1,vs(e,hn(i,e.current)),qe=null;return}n.flags&32768?(Xe||s===1?e=!0:pi||(Ge&536870912)!==0?e=!1:(Xr=e=!0,(s===2||s===9||s===3||s===6)&&(s=vn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Oy(n,e)):Cs(n)}function Cs(e){var n=e;do{if((n.flags&32768)!==0){Oy(n,Xr);return}e=n.return;var i=cT(n.alternate,n,br);if(i!==null){qe=i;return}if(n=n.sibling,n!==null){qe=n;return}qe=n=e}while(n!==null);gt===0&&(gt=5)}function Oy(e,n){do{var i=fT(e.alternate,e);if(i!==null){i.flags&=32767,qe=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){qe=e;return}qe=e=i}while(e!==null);gt=6,qe=null}function Ey(e,n,i,s,f,g,O,j,X){e.cancelPendingCommit=null;do Rs();while(Dt!==0);if((Fe&6)!==0)throw Error(l(327));if(n!==null){if(n===e.current)throw Error(l(177));if(g=n.lanes|n.childLanes,g|=nc,tr(e,i,g,O,j,X),e===rt&&(qe=rt=null,Ge=0),mi=n,Qr=e,vi=i,sf=g,uf=f,py=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,OT(ke,function(){return jy(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=L.T,L.T=null,f=b.p,b.p=2,O=Fe,Fe|=4;try{dT(e,n,i)}finally{Fe=O,b.p=f,L.T=s}}Dt=1,Ty(),Cy(),Ry()}}function Ty(){if(Dt===1){Dt=0;var e=Qr,n=mi,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=L.T,L.T=null;var s=b.p;b.p=2;var f=Fe;Fe|=4;try{oy(n,e);var g=Tf,O=hm(e.containerInfo),j=g.focusedElem,X=g.selectionRange;if(O!==j&&j&&j.ownerDocument&&dm(j.ownerDocument.documentElement,j)){if(X!==null&&Zu(j)){var ae=X.start,ce=X.end;if(ce===void 0&&(ce=ae),"selectionStart"in j)j.selectionStart=ae,j.selectionEnd=Math.min(ce,j.value.length);else{var de=j.ownerDocument||document,le=de&&de.defaultView||window;if(le.getSelection){var oe=le.getSelection(),De=j.textContent.length,_e=Math.min(X.start,De),et=X.end===void 0?_e:Math.min(X.end,De);!oe.extend&&_e>et&&(O=et,et=_e,_e=O);var ee=fm(j,_e),K=fm(j,et);if(ee&&K&&(oe.rangeCount!==1||oe.anchorNode!==ee.node||oe.anchorOffset!==ee.offset||oe.focusNode!==K.node||oe.focusOffset!==K.offset)){var ne=de.createRange();ne.setStart(ee.node,ee.offset),oe.removeAllRanges(),_e>et?(oe.addRange(ne),oe.extend(K.node,K.offset)):(ne.setEnd(K.node,K.offset),oe.addRange(ne))}}}}for(de=[],oe=j;oe=oe.parentNode;)oe.nodeType===1&&de.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<de.length;j++){var fe=de[j];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}Bs=!!Ef,Tf=Ef=null}finally{Fe=f,b.p=s,L.T=i}}e.current=n,Dt=2}}function Cy(){if(Dt===2){Dt=0;var e=Qr,n=mi,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=L.T,L.T=null;var s=b.p;b.p=2;var f=Fe;Fe|=4;try{ry(e,n.alternate,n)}finally{Fe=f,b.p=s,L.T=i}}Dt=3}}function Ry(){if(Dt===4||Dt===3){Dt=0,Re();var e=Qr,n=mi,i=vi,s=py;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Dt=5:(Dt=0,mi=Qr=null,_y(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Fr=null),Hn(i),n=n.stateNode,Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(Ae,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=L.T,f=b.p,b.p=2,L.T=null;try{for(var g=e.onRecoverableError,O=0;O<s.length;O++){var j=s[O];g(j.value,{componentStack:j.stack})}}finally{L.T=n,b.p=f}}(vi&3)!==0&&Rs(),Gn(e),f=e.pendingLanes,(i&4194090)!==0&&(f&42)!==0?e===cf?Cl++:(Cl=0,cf=e):Cl=0,Rl(0)}}function _y(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,ll(n)))}function Rs(e){return Ty(),Cy(),Ry(),jy()}function jy(){if(Dt!==5)return!1;var e=Qr,n=sf;sf=0;var i=Hn(vi),s=L.T,f=b.p;try{b.p=32>i?32:i,L.T=null,i=uf,uf=null;var g=Qr,O=vi;if(Dt=0,mi=Qr=null,vi=0,(Fe&6)!==0)throw Error(l(331));var j=Fe;if(Fe|=4,dy(g.current),uy(g,g.current,O,i),Fe=j,Rl(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(Ae,g)}catch{}return!0}finally{b.p=f,L.T=s,_y(e,n)}}function Ay(e,n,i){n=hn(i,n),n=Ic(e.stateNode,n,2),e=$r(e,n,2),e!==null&&(qt(e,2),Gn(e))}function tt(e,n,i){if(e.tag===3)Ay(e,e,i);else for(;n!==null;){if(n.tag===3){Ay(n,e,i);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Fr===null||!Fr.has(s))){e=hn(i,e),i=Lv(2),s=$r(n,i,2),s!==null&&(zv(i,s,n,e),qt(s,2),Gn(s));break}}n=n.return}}function pf(e,n,i){var s=e.pingCache;if(s===null){s=e.pingCache=new gT;var f=new Set;s.set(n,f)}else f=s.get(n),f===void 0&&(f=new Set,s.set(n,f));f.has(i)||(rf=!0,f.add(i),e=ST.bind(null,e,n,i),n.then(e,e))}function ST(e,n,i){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,rt===e&&(Ge&i)===i&&(gt===4||gt===3&&(Ge&62914560)===Ge&&300>be()-of?(Fe&2)===0&&yi(e,0):af|=i,gi===Ge&&(gi=0)),Gn(e)}function My(e,n){n===0&&(n=Ze()),e=ei(e,n),e!==null&&(qt(e,n),Gn(e))}function wT(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),My(e,i)}function xT(e,n){var i=0;switch(e.tag){case 13:var s=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(n),My(e,i)}function OT(e,n){return me(e,n)}var _s=null,Si=null,gf=!1,js=!1,mf=!1,Aa=0;function Gn(e){e!==Si&&e.next===null&&(Si===null?_s=Si=e:Si=Si.next=e),js=!0,gf||(gf=!0,TT())}function Rl(e,n){if(!mf&&js){mf=!0;do for(var i=!1,s=_s;s!==null;){if(e!==0){var f=s.pendingLanes;if(f===0)var g=0;else{var O=s.suspendedLanes,j=s.pingedLanes;g=(1<<31-dt(42|e)+1)-1,g&=f&~(O&~j),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(i=!0,zy(s,g))}else g=Ge,g=ie(s,s===rt?g:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(g&3)===0||se(s,g)||(i=!0,zy(s,g));s=s.next}while(i);mf=!1}}function ET(){Ny()}function Ny(){js=gf=!1;var e=0;Aa!==0&&(DT()&&(e=Aa),Aa=0);for(var n=be(),i=null,s=_s;s!==null;){var f=s.next,g=Dy(s,n);g===0?(s.next=null,i===null?_s=f:i.next=f,f===null&&(Si=i)):(i=s,(e!==0||(g&3)!==0)&&(js=!0)),s=f}Rl(e)}function Dy(e,n){for(var i=e.suspendedLanes,s=e.pingedLanes,f=e.expirationTimes,g=e.pendingLanes&-62914561;0<g;){var O=31-dt(g),j=1<<O,X=f[O];X===-1?((j&i)===0||(j&s)!==0)&&(f[O]=Ve(j,n)):X<=n&&(e.expiredLanes|=j),g&=~j}if(n=rt,i=Ge,i=ie(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,i===0||e===n&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Se(s),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||se(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(s!==null&&Se(s),Hn(i)){case 2:case 8:i=Te;break;case 32:i=ke;break;case 268435456:i=ft;break;default:i=ke}return s=Ly.bind(null,e),i=me(i,s),e.callbackPriority=n,e.callbackNode=i,n}return s!==null&&s!==null&&Se(s),e.callbackPriority=2,e.callbackNode=null,2}function Ly(e,n){if(Dt!==0&&Dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Rs()&&e.callbackNode!==i)return null;var s=Ge;return s=ie(e,e===rt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(my(e,s,n),Dy(e,be()),e.callbackNode!=null&&e.callbackNode===i?Ly.bind(null,e):null)}function zy(e,n){if(Rs())return null;my(e,n,!0)}function TT(){zT(function(){(Fe&6)!==0?me(Pe,ET):Ny()})}function vf(){return Aa===0&&(Aa=We()),Aa}function Py(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$o(""+e)}function Hy(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function CT(e,n,i,s,f){if(n==="submit"&&i&&i.stateNode===f){var g=Py((f[wt]||null).action),O=s.submitter;O&&(n=(n=O[wt]||null)?Py(n.formAction):O.getAttribute("formAction"),n!==null&&(g=n,O=null));var j=new Go("action","action",null,s,f);e.push({event:j,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Aa!==0){var X=O?Hy(f,O):new FormData(f);Pc(i,{pending:!0,data:X,method:f.method,action:g},null,X)}}else typeof g=="function"&&(j.preventDefault(),X=O?Hy(f,O):new FormData(f),Pc(i,{pending:!0,data:X,method:f.method,action:g},g,X))},currentTarget:f}]})}}for(var yf=0;yf<tc.length;yf++){var bf=tc[yf],RT=bf.toLowerCase(),_T=bf[0].toUpperCase()+bf.slice(1);Mn(RT,"on"+_T)}Mn(mm,"onAnimationEnd"),Mn(vm,"onAnimationIteration"),Mn(ym,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(VE,"onTransitionRun"),Mn(YE,"onTransitionStart"),Mn(XE,"onTransitionCancel"),Mn(bm,"onTransitionEnd"),ir("onMouseEnter",["mouseout","mouseover"]),ir("onMouseLeave",["mouseout","mouseover"]),ir("onPointerEnter",["pointerout","pointerover"]),ir("onPointerLeave",["pointerout","pointerover"]),ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ar("onBeforeInput",["compositionend","keypress","textInput","paste"]),ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _l="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_l));function ky(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var s=e[i],f=s.event;s=s.listeners;e:{var g=void 0;if(n)for(var O=s.length-1;0<=O;O--){var j=s[O],X=j.instance,ae=j.currentTarget;if(j=j.listener,X!==g&&f.isPropagationStopped())break e;g=j,f.currentTarget=ae;try{g(f)}catch(ce){ms(ce)}f.currentTarget=null,g=X}else for(O=0;O<s.length;O++){if(j=s[O],X=j.instance,ae=j.currentTarget,j=j.listener,X!==g&&f.isPropagationStopped())break e;g=j,f.currentTarget=ae;try{g(f)}catch(ce){ms(ce)}f.currentTarget=null,g=X}}}}function Ue(e,n){var i=n[Nr];i===void 0&&(i=n[Nr]=new Set);var s=e+"__bubble";i.has(s)||(By(n,e,2,!1),i.add(s))}function Sf(e,n,i){var s=0;n&&(s|=4),By(i,e,s,n)}var As="_reactListening"+Math.random().toString(36).slice(2);function wf(e){if(!e[As]){e[As]=!0,rr.forEach(function(i){i!=="selectionchange"&&(jT.has(i)||Sf(i,!1,e),Sf(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[As]||(n[As]=!0,Sf("selectionchange",!1,n))}}function By(e,n,i,s){switch(ub(n)){case 2:var f=nC;break;case 8:f=rC;break;default:f=zf}i=f.bind(null,n,i,e),f=void 0,!qu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),s?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function xf(e,n,i,s,f){var g=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var O=s.tag;if(O===3||O===4){var j=s.stateNode.containerInfo;if(j===f)break;if(O===4)for(O=s.return;O!==null;){var X=O.tag;if((X===3||X===4)&&O.stateNode.containerInfo===f)return;O=O.return}for(;j!==null;){if(O=nr(j),O===null)return;if(X=O.tag,X===5||X===6||X===26||X===27){s=g=O;continue e}j=j.parentNode}}s=s.return}Yg(function(){var ae=g,ce=$u(i),de=[];e:{var le=Sm.get(e);if(le!==void 0){var oe=Go,De=e;switch(e){case"keypress":if(qo(i)===0)break e;case"keydown":case"keyup":oe=OE;break;case"focusin":De="focus",oe=Yu;break;case"focusout":De="blur",oe=Yu;break;case"beforeblur":case"afterblur":oe=Yu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=Fg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=fE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=CE;break;case mm:case vm:case ym:oe=pE;break;case bm:oe=_E;break;case"scroll":case"scrollend":oe=uE;break;case"wheel":oe=AE;break;case"copy":case"cut":case"paste":oe=mE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=Zg;break;case"toggle":case"beforetoggle":oe=NE}var _e=(n&4)!==0,et=!_e&&(e==="scroll"||e==="scrollend"),ee=_e?le!==null?le+"Capture":null:le;_e=[];for(var K=ae,ne;K!==null;){var fe=K;if(ne=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||ne===null||ee===null||(fe=Xi(K,ee),fe!=null&&_e.push(jl(K,fe,ne))),et)break;K=K.return}0<_e.length&&(le=new oe(le,De,null,i,ce),de.push({event:le,listeners:_e}))}}if((n&7)===0){e:{if(le=e==="mouseover"||e==="pointerover",oe=e==="mouseout"||e==="pointerout",le&&i!==Bu&&(De=i.relatedTarget||i.fromElement)&&(nr(De)||De[kn]))break e;if((oe||le)&&(le=ce.window===ce?ce:(le=ce.ownerDocument)?le.defaultView||le.parentWindow:window,oe?(De=i.relatedTarget||i.toElement,oe=ae,De=De?nr(De):null,De!==null&&(et=u(De),_e=De.tag,De!==et||_e!==5&&_e!==27&&_e!==6)&&(De=null)):(oe=null,De=ae),oe!==De)){if(_e=Fg,fe="onMouseLeave",ee="onMouseEnter",K="mouse",(e==="pointerout"||e==="pointerover")&&(_e=Zg,fe="onPointerLeave",ee="onPointerEnter",K="pointer"),et=oe==null?le:Lr(oe),ne=De==null?le:Lr(De),le=new _e(fe,K+"leave",oe,i,ce),le.target=et,le.relatedTarget=ne,fe=null,nr(ce)===ae&&(_e=new _e(ee,K+"enter",De,i,ce),_e.target=ne,_e.relatedTarget=et,fe=_e),et=fe,oe&&De)t:{for(_e=oe,ee=De,K=0,ne=_e;ne;ne=wi(ne))K++;for(ne=0,fe=ee;fe;fe=wi(fe))ne++;for(;0<K-ne;)_e=wi(_e),K--;for(;0<ne-K;)ee=wi(ee),ne--;for(;K--;){if(_e===ee||ee!==null&&_e===ee.alternate)break t;_e=wi(_e),ee=wi(ee)}_e=null}else _e=null;oe!==null&&$y(de,le,oe,_e,!1),De!==null&&et!==null&&$y(de,et,De,_e,!0)}}e:{if(le=ae?Lr(ae):window,oe=le.nodeName&&le.nodeName.toLowerCase(),oe==="select"||oe==="input"&&le.type==="file")var xe=im;else if(rm(le))if(lm)xe=qE;else{xe=$E;var Ie=BE}else oe=le.nodeName,!oe||oe.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?ae&&ku(ae.elementType)&&(xe=im):xe=IE;if(xe&&(xe=xe(e,ae))){am(de,xe,i,ce);break e}Ie&&Ie(e,le,ae),e==="focusout"&&ae&&le.type==="number"&&ae.memoizedProps.value!=null&&Hu(le,"number",le.value)}switch(Ie=ae?Lr(ae):window,e){case"focusin":(rm(Ie)||Ie.contentEditable==="true")&&(Za=Ie,Ku=ae,tl=null);break;case"focusout":tl=Ku=Za=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,pm(de,i,ce);break;case"selectionchange":if(GE)break;case"keydown":case"keyup":pm(de,i,ce)}var Ee;if(Wu)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Qa?tm(e,i)&&(Me="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Me="onCompositionStart");Me&&(Kg&&i.locale!=="ko"&&(Qa||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Qa&&(Ee=Xg()):(Pr=ce,Uu="value"in Pr?Pr.value:Pr.textContent,Qa=!0)),Ie=Ms(ae,Me),0<Ie.length&&(Me=new Qg(Me,e,null,i,ce),de.push({event:Me,listeners:Ie}),Ee?Me.data=Ee:(Ee=nm(i),Ee!==null&&(Me.data=Ee)))),(Ee=LE?zE(e,i):PE(e,i))&&(Me=Ms(ae,"onBeforeInput"),0<Me.length&&(Ie=new Qg("onBeforeInput","beforeinput",null,i,ce),de.push({event:Ie,listeners:Me}),Ie.data=Ee)),CT(de,e,ae,i,ce)}ky(de,n)})}function jl(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Ms(e,n){for(var i=n+"Capture",s=[];e!==null;){var f=e,g=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||g===null||(f=Xi(e,i),f!=null&&s.unshift(jl(e,f,g)),f=Xi(e,n),f!=null&&s.push(jl(e,f,g))),e.tag===3)return s;e=e.return}return[]}function wi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $y(e,n,i,s,f){for(var g=n._reactName,O=[];i!==null&&i!==s;){var j=i,X=j.alternate,ae=j.stateNode;if(j=j.tag,X!==null&&X===s)break;j!==5&&j!==26&&j!==27||ae===null||(X=ae,f?(ae=Xi(i,g),ae!=null&&O.unshift(jl(i,ae,X))):f||(ae=Xi(i,g),ae!=null&&O.push(jl(i,ae,X)))),i=i.return}O.length!==0&&e.push({event:n,listeners:O})}var AT=/\r\n?/g,MT=/\u0000|\uFFFD/g;function Iy(e){return(typeof e=="string"?e:""+e).replace(AT,`
49
- `).replace(MT,"")}function qy(e,n){return n=Iy(n),Iy(e)===n}function Ns(){}function Je(e,n,i,s,f,g){switch(i){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Xa(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Xa(e,""+s);break;case"className":Ho(e,"class",s);break;case"tabIndex":Ho(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Ho(e,i,s);break;case"style":Gg(e,s,g);break;case"data":if(n!=="object"){Ho(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}s=$o(""+s),e.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(i==="formAction"?(n!=="input"&&Je(e,n,"name",f.name,f,null),Je(e,n,"formEncType",f.formEncType,f,null),Je(e,n,"formMethod",f.formMethod,f,null),Je(e,n,"formTarget",f.formTarget,f,null)):(Je(e,n,"encType",f.encType,f,null),Je(e,n,"method",f.method,f,null),Je(e,n,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}s=$o(""+s),e.setAttribute(i,s);break;case"onClick":s!=null&&(e.onclick=Ns);break;case"onScroll":s!=null&&Ue("scroll",e);break;case"onScrollEnd":s!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}i=$o(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""+s):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":s===!0?e.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,s):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(i,s):e.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(i):e.setAttribute(i,s);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),Po(e,"popover",s);break;case"xlinkActuate":lr(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":lr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":lr(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":lr(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":lr(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":lr(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":lr(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":lr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":lr(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Po(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=oE.get(i)||i,Po(e,i,s))}}function Of(e,n,i,s,f,g){switch(i){case"style":Gg(e,s,g);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"children":typeof s=="string"?Xa(e,s):(typeof s=="number"||typeof s=="bigint")&&Xa(e,""+s);break;case"onScroll":s!=null&&Ue("scroll",e);break;case"onScrollEnd":s!=null&&Ue("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Ns);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pa.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),g=e[wt]||null,g=g!=null?g[i]:null,typeof g=="function"&&e.removeEventListener(n,g,f),typeof s=="function")){typeof g!="function"&&g!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,s,f);break e}i in e?e[i]=s:s===!0?e.setAttribute(i,""):Po(e,i,s)}}}function Lt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",e),Ue("load",e);var s=!1,f=!1,g;for(g in i)if(i.hasOwnProperty(g)){var O=i[g];if(O!=null)switch(g){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Je(e,n,g,O,i,null)}}f&&Je(e,n,"srcSet",i.srcSet,i,null),s&&Je(e,n,"src",i.src,i,null);return;case"input":Ue("invalid",e);var j=g=O=f=null,X=null,ae=null;for(s in i)if(i.hasOwnProperty(s)){var ce=i[s];if(ce!=null)switch(s){case"name":f=ce;break;case"type":O=ce;break;case"checked":X=ce;break;case"defaultChecked":ae=ce;break;case"value":g=ce;break;case"defaultValue":j=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(l(137,n));break;default:Je(e,n,s,ce,i,null)}}$g(e,g,j,X,ae,O,f,!1),ko(e);return;case"select":Ue("invalid",e),s=O=g=null;for(f in i)if(i.hasOwnProperty(f)&&(j=i[f],j!=null))switch(f){case"value":g=j;break;case"defaultValue":O=j;break;case"multiple":s=j;default:Je(e,n,f,j,i,null)}n=g,i=O,e.multiple=!!s,n!=null?Ya(e,!!s,n,!1):i!=null&&Ya(e,!!s,i,!0);return;case"textarea":Ue("invalid",e),g=f=s=null;for(O in i)if(i.hasOwnProperty(O)&&(j=i[O],j!=null))switch(O){case"value":s=j;break;case"defaultValue":f=j;break;case"children":g=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(l(91));break;default:Je(e,n,O,j,i,null)}qg(e,s,f,g),ko(e);return;case"option":for(X in i)if(i.hasOwnProperty(X)&&(s=i[X],s!=null))switch(X){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Je(e,n,X,s,i,null)}return;case"dialog":Ue("beforetoggle",e),Ue("toggle",e),Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(s=0;s<_l.length;s++)Ue(_l[s],e);break;case"image":Ue("error",e),Ue("load",e);break;case"details":Ue("toggle",e);break;case"embed":case"source":case"link":Ue("error",e),Ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ae in i)if(i.hasOwnProperty(ae)&&(s=i[ae],s!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Je(e,n,ae,s,i,null)}return;default:if(ku(n)){for(ce in i)i.hasOwnProperty(ce)&&(s=i[ce],s!==void 0&&Of(e,n,ce,s,i,void 0));return}}for(j in i)i.hasOwnProperty(j)&&(s=i[j],s!=null&&Je(e,n,j,s,i,null))}function NT(e,n,i,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,g=null,O=null,j=null,X=null,ae=null,ce=null;for(oe in i){var de=i[oe];if(i.hasOwnProperty(oe)&&de!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":X=de;default:s.hasOwnProperty(oe)||Je(e,n,oe,null,s,de)}}for(var le in s){var oe=s[le];if(de=i[le],s.hasOwnProperty(le)&&(oe!=null||de!=null))switch(le){case"type":g=oe;break;case"name":f=oe;break;case"checked":ae=oe;break;case"defaultChecked":ce=oe;break;case"value":O=oe;break;case"defaultValue":j=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(l(137,n));break;default:oe!==de&&Je(e,n,le,oe,s,de)}}Pu(e,O,j,X,ae,ce,g,f);return;case"select":oe=O=j=le=null;for(g in i)if(X=i[g],i.hasOwnProperty(g)&&X!=null)switch(g){case"value":break;case"multiple":oe=X;default:s.hasOwnProperty(g)||Je(e,n,g,null,s,X)}for(f in s)if(g=s[f],X=i[f],s.hasOwnProperty(f)&&(g!=null||X!=null))switch(f){case"value":le=g;break;case"defaultValue":j=g;break;case"multiple":O=g;default:g!==X&&Je(e,n,f,g,s,X)}n=j,i=O,s=oe,le!=null?Ya(e,!!i,le,!1):!!s!=!!i&&(n!=null?Ya(e,!!i,n,!0):Ya(e,!!i,i?[]:"",!1));return;case"textarea":oe=le=null;for(j in i)if(f=i[j],i.hasOwnProperty(j)&&f!=null&&!s.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:Je(e,n,j,null,s,f)}for(O in s)if(f=s[O],g=i[O],s.hasOwnProperty(O)&&(f!=null||g!=null))switch(O){case"value":le=f;break;case"defaultValue":oe=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(l(91));break;default:f!==g&&Je(e,n,O,f,s,g)}Ig(e,le,oe);return;case"option":for(var De in i)if(le=i[De],i.hasOwnProperty(De)&&le!=null&&!s.hasOwnProperty(De))switch(De){case"selected":e.selected=!1;break;default:Je(e,n,De,null,s,le)}for(X in s)if(le=s[X],oe=i[X],s.hasOwnProperty(X)&&le!==oe&&(le!=null||oe!=null))switch(X){case"selected":e.selected=le&&typeof le!="function"&&typeof le!="symbol";break;default:Je(e,n,X,le,s,oe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _e in i)le=i[_e],i.hasOwnProperty(_e)&&le!=null&&!s.hasOwnProperty(_e)&&Je(e,n,_e,null,s,le);for(ae in s)if(le=s[ae],oe=i[ae],s.hasOwnProperty(ae)&&le!==oe&&(le!=null||oe!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(l(137,n));break;default:Je(e,n,ae,le,s,oe)}return;default:if(ku(n)){for(var et in i)le=i[et],i.hasOwnProperty(et)&&le!==void 0&&!s.hasOwnProperty(et)&&Of(e,n,et,void 0,s,le);for(ce in s)le=s[ce],oe=i[ce],!s.hasOwnProperty(ce)||le===oe||le===void 0&&oe===void 0||Of(e,n,ce,le,s,oe);return}}for(var ee in i)le=i[ee],i.hasOwnProperty(ee)&&le!=null&&!s.hasOwnProperty(ee)&&Je(e,n,ee,null,s,le);for(de in s)le=s[de],oe=i[de],!s.hasOwnProperty(de)||le===oe||le==null&&oe==null||Je(e,n,de,le,s,oe)}var Ef=null,Tf=null;function Ds(e){return e.nodeType===9?e:e.ownerDocument}function Uy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gy(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Cf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Rf=null;function DT(){var e=window.event;return e&&e.type==="popstate"?e===Rf?!1:(Rf=e,!0):(Rf=null,!1)}var Vy=typeof setTimeout=="function"?setTimeout:void 0,LT=typeof clearTimeout=="function"?clearTimeout:void 0,Yy=typeof Promise=="function"?Promise:void 0,zT=typeof queueMicrotask=="function"?queueMicrotask:typeof Yy<"u"?function(e){return Yy.resolve(null).then(e).catch(PT)}:Vy;function PT(e){setTimeout(function(){throw e})}function Kr(e){return e==="head"}function Xy(e,n){var i=n,s=0,f=0;do{var g=i.nextSibling;if(e.removeChild(i),g&&g.nodeType===8)if(i=g.data,i==="/$"){if(0<s&&8>s){i=s;var O=e.ownerDocument;if(i&1&&Al(O.documentElement),i&2&&Al(O.body),i&4)for(i=O.head,Al(i),O=i.firstChild;O;){var j=O.nextSibling,X=O.nodeName;O[Dr]||X==="SCRIPT"||X==="STYLE"||X==="LINK"&&O.rel.toLowerCase()==="stylesheet"||i.removeChild(O),O=j}}if(f===0){e.removeChild(g),kl(n);return}f--}else i==="$"||i==="$?"||i==="$!"?f++:s=i.charCodeAt(0)-48;else s=0;i=g}while(i);kl(n)}function _f(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":_f(i),ha(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function HT(e,n,i,s){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Dr])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(g=e.getAttribute("rel"),g==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(g!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(g=e.getAttribute("src"),(g!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&g&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var g=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===g)return e}else return e;if(e=Dn(e.nextSibling),e===null)break}return null}function kT(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Dn(e.nextSibling),e===null))return null;return e}function jf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function BT(e,n){var i=e.ownerDocument;if(e.data!=="$?"||i.readyState==="complete")n();else{var s=function(){n(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Dn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var Af=null;function Wy(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return e;n--}else i==="/$"&&n++}e=e.previousSibling}return null}function Fy(e,n,i){switch(n=Ds(i),e){case"html":if(e=n.documentElement,!e)throw Error(l(452));return e;case"head":if(e=n.head,!e)throw Error(l(453));return e;case"body":if(e=n.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Al(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ha(e)}var bn=new Map,Qy=new Set;function Ls(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sr=b.d;b.d={f:$T,r:IT,D:qT,C:UT,L:GT,m:VT,X:XT,S:YT,M:WT};function $T(){var e=Sr.f(),n=Ts();return e||n}function IT(e){var n=Bn(e);n!==null&&n.tag===5&&n.type==="form"?mv(n):Sr.r(e)}var xi=typeof document>"u"?null:document;function Zy(e,n,i){var s=xi;if(s&&typeof n=="string"&&n){var f=dn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Qy.has(f)||(Qy.add(f),e={rel:e,crossOrigin:i,href:n},s.querySelector(f)===null&&(n=s.createElement("link"),Lt(n,"link",e),ht(n),s.head.appendChild(n)))}}function qT(e){Sr.D(e),Zy("dns-prefetch",e,null)}function UT(e,n){Sr.C(e,n),Zy("preconnect",e,n)}function GT(e,n,i){Sr.L(e,n,i);var s=xi;if(s&&e&&n){var f='link[rel="preload"][as="'+dn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+dn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+dn(i.imageSizes)+'"]')):f+='[href="'+dn(e)+'"]';var g=f;switch(n){case"style":g=Oi(e);break;case"script":g=Ei(e)}bn.has(g)||(e=m({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),bn.set(g,e),s.querySelector(f)!==null||n==="style"&&s.querySelector(Ml(g))||n==="script"&&s.querySelector(Nl(g))||(n=s.createElement("link"),Lt(n,"link",e),ht(n),s.head.appendChild(n)))}}function VT(e,n){Sr.m(e,n);var i=xi;if(i&&e){var s=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+dn(s)+'"][href="'+dn(e)+'"]',g=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Ei(e)}if(!bn.has(g)&&(e=m({rel:"modulepreload",href:e},n),bn.set(g,e),i.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Nl(g)))return}s=i.createElement("link"),Lt(s,"link",e),ht(s),i.head.appendChild(s)}}}function YT(e,n,i){Sr.S(e,n,i);var s=xi;if(s&&e){var f=zr(s).hoistableStyles,g=Oi(e);n=n||"default";var O=f.get(g);if(!O){var j={loading:0,preload:null};if(O=s.querySelector(Ml(g)))j.loading=5;else{e=m({rel:"stylesheet",href:e,"data-precedence":n},i),(i=bn.get(g))&&Mf(e,i);var X=O=s.createElement("link");ht(X),Lt(X,"link",e),X._p=new Promise(function(ae,ce){X.onload=ae,X.onerror=ce}),X.addEventListener("load",function(){j.loading|=1}),X.addEventListener("error",function(){j.loading|=2}),j.loading|=4,zs(O,n,s)}O={type:"stylesheet",instance:O,count:1,state:j},f.set(g,O)}}}function XT(e,n){Sr.X(e,n);var i=xi;if(i&&e){var s=zr(i).hoistableScripts,f=Ei(e),g=s.get(f);g||(g=i.querySelector(Nl(f)),g||(e=m({src:e,async:!0},n),(n=bn.get(f))&&Nf(e,n),g=i.createElement("script"),ht(g),Lt(g,"link",e),i.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(f,g))}}function WT(e,n){Sr.M(e,n);var i=xi;if(i&&e){var s=zr(i).hoistableScripts,f=Ei(e),g=s.get(f);g||(g=i.querySelector(Nl(f)),g||(e=m({src:e,async:!0,type:"module"},n),(n=bn.get(f))&&Nf(e,n),g=i.createElement("script"),ht(g),Lt(g,"link",e),i.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(f,g))}}function Ky(e,n,i,s){var f=(f=Z.current)?Ls(f):null;if(!f)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Oi(i.href),i=zr(f).hoistableStyles,s=i.get(n),s||(s={type:"style",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Oi(i.href);var g=zr(f).hoistableStyles,O=g.get(e);if(O||(f=f.ownerDocument||f,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(e,O),(g=f.querySelector(Ml(e)))&&!g._p&&(O.instance=g,O.state.loading=5),bn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},bn.set(e,i),g||FT(f,e,i,O.state))),n&&s===null)throw Error(l(528,""));return O}if(n&&s!==null)throw Error(l(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ei(i),i=zr(f).hoistableScripts,s=i.get(n),s||(s={type:"script",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Oi(e){return'href="'+dn(e)+'"'}function Ml(e){return'link[rel="stylesheet"]['+e+"]"}function Jy(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function FT(e,n,i,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),Lt(n,"link",i),ht(n),e.head.appendChild(n))}function Ei(e){return'[src="'+dn(e)+'"]'}function Nl(e){return"script[async]"+e}function eb(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+dn(i.href)+'"]');if(s)return n.instance=s,ht(s),s;var f=m({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),ht(s),Lt(s,"style",f),zs(s,i.precedence,e),n.instance=s;case"stylesheet":f=Oi(i.href);var g=e.querySelector(Ml(f));if(g)return n.state.loading|=4,n.instance=g,ht(g),g;s=Jy(i),(f=bn.get(f))&&Mf(s,f),g=(e.ownerDocument||e).createElement("link"),ht(g);var O=g;return O._p=new Promise(function(j,X){O.onload=j,O.onerror=X}),Lt(g,"link",s),n.state.loading|=4,zs(g,i.precedence,e),n.instance=g;case"script":return g=Ei(i.src),(f=e.querySelector(Nl(g)))?(n.instance=f,ht(f),f):(s=i,(f=bn.get(g))&&(s=m({},i),Nf(s,f)),e=e.ownerDocument||e,f=e.createElement("script"),ht(f),Lt(f,"link",s),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,zs(s,i.precedence,e));return n.instance}function zs(e,n,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,g=f,O=0;O<s.length;O++){var j=s[O];if(j.dataset.precedence===n)g=j;else if(g!==f)break}g?g.parentNode.insertBefore(e,g.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function Mf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Nf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Ps=null;function tb(e,n,i){if(Ps===null){var s=new Map,f=Ps=new Map;f.set(i,s)}else f=Ps,s=f.get(i),s||(s=new Map,f.set(i,s));if(s.has(e))return s;for(s.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var g=i[f];if(!(g[Dr]||g[Et]||e==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var O=g.getAttribute(n)||"";O=e+O;var j=s.get(O);j?j.push(g):s.set(O,[g])}}return s}function nb(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function QT(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function rb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Dl=null;function ZT(){}function KT(e,n,i){if(Dl===null)throw Error(l(475));var s=Dl;if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var f=Oi(i.href),g=e.querySelector(Ml(f));if(g){e=g._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=Hs.bind(s),e.then(s,s)),n.state.loading|=4,n.instance=g,ht(g);return}g=e.ownerDocument||e,i=Jy(i),(f=bn.get(f))&&Mf(i,f),g=g.createElement("link"),ht(g);var O=g;O._p=new Promise(function(j,X){O.onload=j,O.onerror=X}),Lt(g,"link",i),n.instance=g}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(s.count++,n=Hs.bind(s),e.addEventListener("load",n),e.addEventListener("error",n))}}function JT(){if(Dl===null)throw Error(l(475));var e=Dl;return e.stylesheets&&e.count===0&&Df(e,e.stylesheets),0<e.count?function(n){var i=setTimeout(function(){if(e.stylesheets&&Df(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i)}}:null}function Hs(){if(this.count--,this.count===0){if(this.stylesheets)Df(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ks=null;function Df(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ks=new Map,n.forEach(eC,e),ks=null,Hs.call(e))}function eC(e,n){if(!(n.state.loading&4)){var i=ks.get(e);if(i)var s=i.get(null);else{i=new Map,ks.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<f.length;g++){var O=f[g];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(i.set(O.dataset.precedence,O),s=O)}s&&i.set(null,s)}f=n.instance,O=f.getAttribute("data-precedence"),g=i.get(O)||s,g===s&&i.set(null,f),i.set(O,f),this.count++,s=Hs.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),g?g.parentNode.insertBefore(f,g.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var Ll={$$typeof:I,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function tC(e,n,i,s,f,g,O,j){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ze(0),this.hiddenUpdates=ze(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=g,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function ab(e,n,i,s,f,g,O,j,X,ae,ce,de){return e=new tC(e,n,i,O,j,X,ae,de),n=1,g===!0&&(n|=24),g=en(3,null,null,n),e.current=g,g.stateNode=e,n=hc(),n.refCount++,e.pooledCache=n,n.refCount++,g.memoizedState={element:s,isDehydrated:i,cache:n},vc(g),e}function ib(e){return e?(e=ti,e):ti}function lb(e,n,i,s,f,g){f=ib(f),s.context===null?s.context=f:s.pendingContext=f,s=Br(n),s.payload={element:i},g=g===void 0?null:g,g!==null&&(s.callback=g),i=$r(e,s,n),i!==null&&(ln(i,e,n),cl(i,e,n))}function ob(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function Lf(e,n){ob(e,n),(e=e.alternate)&&ob(e,n)}function sb(e){if(e.tag===13){var n=ei(e,67108864);n!==null&&ln(n,e,67108864),Lf(e,67108864)}}var Bs=!0;function nC(e,n,i,s){var f=L.T;L.T=null;var g=b.p;try{b.p=2,zf(e,n,i,s)}finally{b.p=g,L.T=f}}function rC(e,n,i,s){var f=L.T;L.T=null;var g=b.p;try{b.p=8,zf(e,n,i,s)}finally{b.p=g,L.T=f}}function zf(e,n,i,s){if(Bs){var f=Pf(s);if(f===null)xf(e,n,s,$s,i),cb(e,s);else if(iC(f,e,n,i,s))s.stopPropagation();else if(cb(e,s),n&4&&-1<aC.indexOf(e)){for(;f!==null;){var g=Bn(f);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var O=cn(g.pendingLanes);if(O!==0){var j=g;for(j.pendingLanes|=2,j.entangledLanes|=2;O;){var X=1<<31-dt(O);j.entanglements[1]|=X,O&=~X}Gn(g),(Fe&6)===0&&(Os=be()+500,Rl(0))}}break;case 13:j=ei(g,2),j!==null&&ln(j,g,2),Ts(),Lf(g,2)}if(g=Pf(s),g===null&&xf(e,n,s,$s,i),g===f)break;f=g}f!==null&&s.stopPropagation()}else xf(e,n,s,null,i)}}function Pf(e){return e=$u(e),Hf(e)}var $s=null;function Hf(e){if($s=null,e=nr(e),e!==null){var n=u(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return $s=e,null}function ub(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Le()){case Pe:return 2;case Te:return 8;case ke:case lt:return 32;case ft:return 268435456;default:return 32}default:return 32}}var kf=!1,Jr=null,ea=null,ta=null,zl=new Map,Pl=new Map,na=[],aC="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".split(" ");function cb(e,n){switch(e){case"focusin":case"focusout":Jr=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":zl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(n.pointerId)}}function Hl(e,n,i,s,f,g){return e===null||e.nativeEvent!==g?(e={blockedOn:n,domEventName:i,eventSystemFlags:s,nativeEvent:g,targetContainers:[f]},n!==null&&(n=Bn(n),n!==null&&sb(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function iC(e,n,i,s,f){switch(n){case"focusin":return Jr=Hl(Jr,e,n,i,s,f),!0;case"dragenter":return ea=Hl(ea,e,n,i,s,f),!0;case"mouseover":return ta=Hl(ta,e,n,i,s,f),!0;case"pointerover":var g=f.pointerId;return zl.set(g,Hl(zl.get(g)||null,e,n,i,s,f)),!0;case"gotpointercapture":return g=f.pointerId,Pl.set(g,Hl(Pl.get(g)||null,e,n,i,s,f)),!0}return!1}function fb(e){var n=nr(e.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,zo(e.priority,function(){if(i.tag===13){var s=an();s=da(s);var f=ei(i,s);f!==null&&ln(f,i,s),Lf(i,s)}});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Is(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=Pf(e.nativeEvent);if(i===null){i=e.nativeEvent;var s=new i.constructor(i.type,i);Bu=s,i.target.dispatchEvent(s),Bu=null}else return n=Bn(i),n!==null&&sb(n),e.blockedOn=i,!1;n.shift()}return!0}function db(e,n,i){Is(e)&&i.delete(n)}function lC(){kf=!1,Jr!==null&&Is(Jr)&&(Jr=null),ea!==null&&Is(ea)&&(ea=null),ta!==null&&Is(ta)&&(ta=null),zl.forEach(db),Pl.forEach(db)}function qs(e,n){e.blockedOn===n&&(e.blockedOn=null,kf||(kf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,lC)))}var Us=null;function hb(e){Us!==e&&(Us=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Us===e&&(Us=null);for(var n=0;n<e.length;n+=3){var i=e[n],s=e[n+1],f=e[n+2];if(typeof s!="function"){if(Hf(s||i)===null)continue;break}var g=Bn(i);g!==null&&(e.splice(n,3),n-=3,Pc(g,{pending:!0,data:f,method:i.method,action:s},s,f))}}))}function kl(e){function n(X){return qs(X,e)}Jr!==null&&qs(Jr,e),ea!==null&&qs(ea,e),ta!==null&&qs(ta,e),zl.forEach(n),Pl.forEach(n);for(var i=0;i<na.length;i++){var s=na[i];s.blockedOn===e&&(s.blockedOn=null)}for(;0<na.length&&(i=na[0],i.blockedOn===null);)fb(i),i.blockedOn===null&&na.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var f=i[s],g=i[s+1],O=f[wt]||null;if(typeof g=="function")O||hb(i);else if(O){var j=null;if(g&&g.hasAttribute("formAction")){if(f=g,O=g[wt]||null)j=O.formAction;else if(Hf(f)!==null)continue}else j=O.action;typeof j=="function"?i[s+1]=j:(i.splice(s,3),s-=3),hb(i)}}}function Bf(e){this._internalRoot=e}Gs.prototype.render=Bf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(l(409));var i=n.current,s=an();lb(i,s,e,n,null,null)},Gs.prototype.unmount=Bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;lb(e.current,2,null,e,null,null),Ts(),n[kn]=null}};function Gs(e){this._internalRoot=e}Gs.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ut();e={blockedOn:null,target:e,priority:n};for(var i=0;i<na.length&&n!==0&&n<na[i].priority;i++);na.splice(i,0,e),i===0&&fb(e)}};var pb=t.version;if(pb!=="19.1.0")throw Error(l(527,pb,"19.1.0"));b.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=h(n),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var oC={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vs.isDisabled&&Vs.supportsFiber)try{Ae=Vs.inject(oC),Be=Vs}catch{}}return $l.createRoot=function(e,n){if(!o(e))throw Error(l(299));var i=!1,s="",f=Av,g=Mv,O=Nv,j=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(O=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(j=n.unstable_transitionCallbacks)),n=ab(e,1,!1,null,null,i,s,f,g,O,j,null),e[kn]=n.current,wf(e),new Bf(n)},$l.hydrateRoot=function(e,n,i){if(!o(e))throw Error(l(299));var s=!1,f="",g=Av,O=Mv,j=Nv,X=null,ae=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(g=i.onUncaughtError),i.onCaughtError!==void 0&&(O=i.onCaughtError),i.onRecoverableError!==void 0&&(j=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(X=i.unstable_transitionCallbacks),i.formState!==void 0&&(ae=i.formState)),n=ab(e,1,!0,n,i??null,s,f,g,O,j,X,ae),n.context=ib(null),i=n.current,s=an(),s=da(s),f=Br(s),f.callback=null,$r(i,f,s),i=s,n.current.lanes=i,qt(n,i),Gn(n),e[kn]=n.current,wf(e),new Gs(n)},$l.version="19.1.0",$l}var Tb;function mC(){if(Tb)return qf.exports;Tb=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),qf.exports=gC(),qf.exports}var vC=mC();const yC=Jn(vC);var w=Cn();const Ft=Jn(w);/**
48
+ `+i.stack}}function fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function km(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function aE(e){var n=km(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),s=""+e[n];if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var f=i.get,m=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(O){s=""+O,m.call(this,O)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(O){s=""+O},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ko(e){e._valueTracker||(e._valueTracker=aE(e))}function Bm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),s="";return e&&(s=km(e)?e.checked?"true":"false":e.value),e=s,e!==i?(n.setValue(e),!0):!1}function Bo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var iE=/[\n"\\]/g;function dn(e){return e.replace(iE,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Pu(e,n,i,s,f,m,O,A){e.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?e.type=O:e.removeAttribute("type"),n!=null?O==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+fn(n)):e.value!==""+fn(n)&&(e.value=""+fn(n)):O!=="submit"&&O!=="reset"||e.removeAttribute("value"),n!=null?Hu(e,O,fn(n)):i!=null?Hu(e,O,fn(i)):s!=null&&e.removeAttribute("value"),f==null&&m!=null&&(e.defaultChecked=!!m),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+fn(A):e.removeAttribute("name")}function $m(e,n,i,s,f,m,O,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),n!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||n!=null))return;i=i!=null?""+fn(i):"",n=n!=null?""+fn(n):i,A||n===e.value||(e.value=n),e.defaultValue=n}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=A?e.checked:!!s,e.defaultChecked=!!s,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(e.name=O)}function Hu(e,n,i){n==="number"&&Bo(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Wa(e,n,i,s){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&s&&(e[i].defaultSelected=!0)}else{for(i=""+fn(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,s&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Im(e,n,i){if(n!=null&&(n=""+fn(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+fn(i):""}function qm(e,n,i,s){if(n==null){if(s!=null){if(i!=null)throw Error(l(92));if(G(s)){if(1<s.length)throw Error(l(93));s=s[0]}i=s}i==null&&(i=""),n=i}i=fn(n),e.defaultValue=i,s=e.textContent,s===i&&s!==""&&s!==null&&(e.value=s)}function Ya(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var lE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Um(e,n,i){var s=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,i):typeof i!="number"||i===0||lE.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function Gm(e,n,i){if(n!=null&&typeof n!="object")throw Error(l(62));if(e=e.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var f in n)s=n[f],n.hasOwnProperty(f)&&i[f]!==s&&Um(e,f,s)}else for(var m in n)n.hasOwnProperty(m)&&Um(e,m,n[m])}function ku(e){if(e.indexOf("-")===-1)return!1;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 oE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),sE=/^[\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;function $o(e){return sE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Bu=null;function $u(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xa=null,Fa=null;function Vm(e){var n=Bn(e);if(n&&(e=n.stateNode)){var i=e[wt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Pu(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+dn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var s=i[n];if(s!==e&&s.form===e.form){var f=s[wt]||null;if(!f)throw Error(l(90));Pu(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)s=i[n],s.form===e.form&&Bm(s)}break e;case"textarea":Im(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Wa(e,!!i.multiple,n,!1)}}}var Iu=!1;function Wm(e,n,i){if(Iu)return e(n,i);Iu=!0;try{var s=e(n);return s}finally{if(Iu=!1,(Xa!==null||Fa!==null)&&(Ts(),Xa&&(n=Xa,e=Fa,Fa=Xa=null,Vm(n),e)))for(n=0;n<e.length;n++)Vm(e[n])}}function Yi(e,n){var i=e.stateNode;if(i===null)return null;var s=i[wt]||null;if(s===null)return null;i=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(l(231,n,typeof i));return i}var or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=!1;if(or)try{var Xi={};Object.defineProperty(Xi,"passive",{get:function(){qu=!0}}),window.addEventListener("test",Xi,Xi),window.removeEventListener("test",Xi,Xi)}catch{qu=!1}var Hr=null,Uu=null,Io=null;function Ym(){if(Io)return Io;var e,n=Uu,i=n.length,s,f="value"in Hr?Hr.value:Hr.textContent,m=f.length;for(e=0;e<i&&n[e]===f[e];e++);var O=i-e;for(s=1;s<=O&&n[i-s]===f[m-s];s++);return Io=f.slice(e,1<s?1-s:void 0)}function qo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Uo(){return!0}function Xm(){return!1}function Gt(e){function n(i,s,f,m,O){this._reactName=i,this._targetInst=f,this.type=s,this.nativeEvent=m,this.target=O,this.currentTarget=null;for(var A in e)e.hasOwnProperty(A)&&(i=e[A],this[A]=i?i(m):m[A]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Uo:Xm,this.isPropagationStopped=Xm,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Uo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Uo)},persist:function(){},isPersistent:Uo}),n}var ga={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Go=Gt(ga),Fi=g({},ga,{view:0,detail:0}),uE=Gt(Fi),Gu,Vu,Qi,Vo=g({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qi&&(Qi&&e.type==="mousemove"?(Gu=e.screenX-Qi.screenX,Vu=e.screenY-Qi.screenY):Vu=Gu=0,Qi=e),Gu)},movementY:function(e){return"movementY"in e?e.movementY:Vu}}),Fm=Gt(Vo),cE=g({},Vo,{dataTransfer:0}),fE=Gt(cE),dE=g({},Fi,{relatedTarget:0}),Wu=Gt(dE),hE=g({},ga,{animationName:0,elapsedTime:0,pseudoElement:0}),pE=Gt(hE),mE=g({},ga,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gE=Gt(mE),vE=g({},ga,{data:0}),Qm=Gt(vE),yE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bE={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"},SE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wE(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=SE[e])?!!n[e]:!1}function Yu(){return wE}var xE=g({},Fi,{key:function(e){if(e.key){var n=yE[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=qo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yu,charCode:function(e){return e.type==="keypress"?qo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),OE=Gt(xE),EE=g({},Vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zm=Gt(EE),TE=g({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yu}),CE=Gt(TE),RE=g({},ga,{propertyName:0,elapsedTime:0,pseudoElement:0}),_E=Gt(RE),jE=g({},Vo,{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}),AE=Gt(jE),ME=g({},ga,{newState:0,oldState:0}),NE=Gt(ME),DE=[9,13,27,32],Xu=or&&"CompositionEvent"in window,Zi=null;or&&"documentMode"in document&&(Zi=document.documentMode);var LE=or&&"TextEvent"in window&&!Zi,Km=or&&(!Xu||Zi&&8<Zi&&11>=Zi),Jm=" ",eg=!1;function tg(e,n){switch(e){case"keyup":return DE.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ng(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qa=!1;function zE(e,n){switch(e){case"compositionend":return ng(n);case"keypress":return n.which!==32?null:(eg=!0,Jm);case"textInput":return e=n.data,e===Jm&&eg?null:e;default:return null}}function PE(e,n){if(Qa)return e==="compositionend"||!Xu&&tg(e,n)?(e=Ym(),Io=Uu=Hr=null,Qa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Km&&n.locale!=="ko"?null:n.data;default:return null}}var HE={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 rg(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!HE[e.type]:n==="textarea"}function ag(e,n,i,s){Xa?Fa?Fa.push(s):Fa=[s]:Xa=s,n=Ms(n,"onChange"),0<n.length&&(i=new Go("onChange","change",null,i,s),e.push({event:i,listeners:n}))}var Ki=null,Ji=null;function kE(e){ky(e,0)}function Wo(e){var n=zr(e);if(Bm(n))return e}function ig(e,n){if(e==="change")return n}var lg=!1;if(or){var Fu;if(or){var Qu="oninput"in document;if(!Qu){var og=document.createElement("div");og.setAttribute("oninput","return;"),Qu=typeof og.oninput=="function"}Fu=Qu}else Fu=!1;lg=Fu&&(!document.documentMode||9<document.documentMode)}function sg(){Ki&&(Ki.detachEvent("onpropertychange",ug),Ji=Ki=null)}function ug(e){if(e.propertyName==="value"&&Wo(Ji)){var n=[];ag(n,Ji,e,$u(e)),Wm(kE,n)}}function BE(e,n,i){e==="focusin"?(sg(),Ki=n,Ji=i,Ki.attachEvent("onpropertychange",ug)):e==="focusout"&&sg()}function $E(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wo(Ji)}function IE(e,n){if(e==="click")return Wo(n)}function qE(e,n){if(e==="input"||e==="change")return Wo(n)}function UE(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Jt=typeof Object.is=="function"?Object.is:UE;function el(e,n){if(Jt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var f=i[s];if(!he.call(n,f)||!Jt(e[f],n[f]))return!1}return!0}function cg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fg(e,n){var i=cg(e);e=0;for(var s;i;){if(i.nodeType===3){if(s=e+i.textContent.length,e<=n&&s>=n)return{node:i,offset:n-e};e=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=cg(i)}}function dg(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?dg(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function hg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Bo(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Bo(e.document)}return n}function Zu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var GE=or&&"documentMode"in document&&11>=document.documentMode,Za=null,Ku=null,tl=null,Ju=!1;function pg(e,n,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ju||Za==null||Za!==Bo(s)||(s=Za,"selectionStart"in s&&Zu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),tl&&el(tl,s)||(tl=s,s=Ms(Ku,"onSelect"),0<s.length&&(n=new Go("onSelect","select",null,n,i),e.push({event:n,listeners:s}),n.target=Za)))}function va(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var Ka={animationend:va("Animation","AnimationEnd"),animationiteration:va("Animation","AnimationIteration"),animationstart:va("Animation","AnimationStart"),transitionrun:va("Transition","TransitionRun"),transitionstart:va("Transition","TransitionStart"),transitioncancel:va("Transition","TransitionCancel"),transitionend:va("Transition","TransitionEnd")},ec={},mg={};or&&(mg=document.createElement("div").style,"AnimationEvent"in window||(delete Ka.animationend.animation,delete Ka.animationiteration.animation,delete Ka.animationstart.animation),"TransitionEvent"in window||delete Ka.transitionend.transition);function ya(e){if(ec[e])return ec[e];if(!Ka[e])return e;var n=Ka[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in mg)return ec[e]=n[i];return e}var gg=ya("animationend"),vg=ya("animationiteration"),yg=ya("animationstart"),VE=ya("transitionrun"),WE=ya("transitionstart"),YE=ya("transitioncancel"),bg=ya("transitionend"),Sg=new Map,tc="abort auxClick beforeToggle 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".split(" ");tc.push("scrollEnd");function Mn(e,n){Sg.set(e,n),ar(n,[e])}var wg=new WeakMap;function hn(e,n){if(typeof e=="object"&&e!==null){var i=wg.get(e);return i!==void 0?i:(n={value:e,source:n,stack:Hm(n)},wg.set(e,n),n)}return{value:e,source:n,stack:Hm(n)}}var pn=[],Ja=0,nc=0;function Yo(){for(var e=Ja,n=nc=Ja=0;n<e;){var i=pn[n];pn[n++]=null;var s=pn[n];pn[n++]=null;var f=pn[n];pn[n++]=null;var m=pn[n];if(pn[n++]=null,s!==null&&f!==null){var O=s.pending;O===null?f.next=f:(f.next=O.next,O.next=f),s.pending=f}m!==0&&xg(i,f,m)}}function Xo(e,n,i,s){pn[Ja++]=e,pn[Ja++]=n,pn[Ja++]=i,pn[Ja++]=s,nc|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function rc(e,n,i,s){return Xo(e,n,i,s),Fo(e)}function ei(e,n){return Xo(e,null,null,n),Fo(e)}function xg(e,n,i){e.lanes|=i;var s=e.alternate;s!==null&&(s.lanes|=i);for(var f=!1,m=e.return;m!==null;)m.childLanes|=i,s=m.alternate,s!==null&&(s.childLanes|=i),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(f=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,f&&n!==null&&(f=31-dt(i),e=m.hiddenUpdates,s=e[f],s===null?e[f]=[n]:s.push(n),n.lane=i|536870912),m):null}function Fo(e){if(50<Cl)throw Cl=0,cf=null,Error(l(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var ti={};function XE(e,n,i,s){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,n,i,s){return new XE(e,n,i,s)}function ac(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sr(e,n){var i=e.alternate;return i===null?(i=en(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Og(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Qo(e,n,i,s,f,m){var O=0;if(s=e,typeof e=="function")ac(e)&&(O=1);else if(typeof e=="string")O=QT(e,i,H.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case D:return e=en(31,i,n,f),e.elementType=D,e.lanes=m,e;case N:return ba(i.children,f,m,n);case _:O=8,f|=24;break;case z:return e=en(12,i,n,f|2),e.elementType=z,e.lanes=m,e;case j:return e=en(13,i,n,f),e.elementType=j,e.lanes=m,e;case M:return e=en(19,i,n,f),e.elementType=M,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:case I:O=10;break e;case V:O=9;break e;case Q:O=11;break e;case P:O=14;break e;case F:O=16,s=null;break e}O=29,i=Error(l(130,e===null?"null":typeof e,"")),s=null}return n=en(O,i,n,f),n.elementType=e,n.type=s,n.lanes=m,n}function ba(e,n,i,s){return e=en(7,e,s,n),e.lanes=i,e}function ic(e,n,i){return e=en(6,e,null,n),e.lanes=i,e}function lc(e,n,i){return n=en(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ni=[],ri=0,Zo=null,Ko=0,mn=[],gn=0,Sa=null,ur=1,cr="";function wa(e,n){ni[ri++]=Ko,ni[ri++]=Zo,Zo=e,Ko=n}function Eg(e,n,i){mn[gn++]=ur,mn[gn++]=cr,mn[gn++]=Sa,Sa=e;var s=ur;e=cr;var f=32-dt(s)-1;s&=~(1<<f),i+=1;var m=32-dt(n)+f;if(30<m){var O=f-f%5;m=(s&(1<<O)-1).toString(32),s>>=O,f-=O,ur=1<<32-dt(n)+f|i<<f|s,cr=m+e}else ur=1<<m|i<<f|s,cr=e}function oc(e){e.return!==null&&(wa(e,1),Eg(e,1,0))}function sc(e){for(;e===Zo;)Zo=ni[--ri],ni[ri]=null,Ko=ni[--ri],ni[ri]=null;for(;e===Sa;)Sa=mn[--gn],mn[gn]=null,cr=mn[--gn],mn[gn]=null,ur=mn[--gn],mn[gn]=null}var $t=null,pt=null,Ye=!1,xa=null,$n=!1,uc=Error(l(519));function Oa(e){var n=Error(l(418,""));throw al(hn(n,e)),uc}function Tg(e){var n=e.stateNode,i=e.type,s=e.memoizedProps;switch(n[Et]=e,n[wt]=s,i){case"dialog":Ue("cancel",n),Ue("close",n);break;case"iframe":case"object":case"embed":Ue("load",n);break;case"video":case"audio":for(i=0;i<_l.length;i++)Ue(_l[i],n);break;case"source":Ue("error",n);break;case"img":case"image":case"link":Ue("error",n),Ue("load",n);break;case"details":Ue("toggle",n);break;case"input":Ue("invalid",n),$m(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),ko(n);break;case"select":Ue("invalid",n);break;case"textarea":Ue("invalid",n),qm(n,s.value,s.defaultValue,s.children),ko(n)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||s.suppressHydrationWarning===!0||qy(n.textContent,i)?(s.popover!=null&&(Ue("beforetoggle",n),Ue("toggle",n)),s.onScroll!=null&&Ue("scroll",n),s.onScrollEnd!=null&&Ue("scrollend",n),s.onClick!=null&&(n.onclick=Ns),n=!0):n=!1,n||Oa(e)}function Cg(e){for($t=e.return;$t;)switch($t.tag){case 5:case 13:$n=!1;return;case 27:case 3:$n=!0;return;default:$t=$t.return}}function nl(e){if(e!==$t)return!1;if(!Ye)return Cg(e),Ye=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Cf(e.type,e.memoizedProps)),i=!i),i&&pt&&Oa(e),Cg(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(i=e.data,i==="/$"){if(n===0){pt=Dn(e.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++;e=e.nextSibling}pt=null}}else n===27?(n=pt,Jr(e.type)?(e=Af,Af=null,pt=e):pt=n):pt=$t?Dn(e.stateNode.nextSibling):null;return!0}function rl(){pt=$t=null,Ye=!1}function Rg(){var e=xa;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),xa=null),e}function al(e){xa===null?xa=[e]:xa.push(e)}var cc=C(null),Ea=null,fr=null;function kr(e,n,i){J(cc,n._currentValue),n._currentValue=i}function dr(e){e._currentValue=cc.current,W(cc)}function fc(e,n,i){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===i)break;e=e.return}}function dc(e,n,i,s){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var m=f.dependencies;if(m!==null){var O=f.child;m=m.firstContext;e:for(;m!==null;){var A=m;m=f;for(var Y=0;Y<n.length;Y++)if(A.context===n[Y]){m.lanes|=i,A=m.alternate,A!==null&&(A.lanes|=i),fc(m.return,i,e),s||(O=null);break e}m=A.next}}else if(f.tag===18){if(O=f.return,O===null)throw Error(l(341));O.lanes|=i,m=O.alternate,m!==null&&(m.lanes|=i),fc(O,i,e),O=null}else O=f.child;if(O!==null)O.return=f;else for(O=f;O!==null;){if(O===e){O=null;break}if(f=O.sibling,f!==null){f.return=O.return,O=f;break}O=O.return}f=O}}function il(e,n,i,s){e=null;for(var f=n,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var O=f.alternate;if(O===null)throw Error(l(387));if(O=O.memoizedProps,O!==null){var A=f.type;Jt(f.pendingProps.value,O.value)||(e!==null?e.push(A):e=[A])}}else if(f===re.current){if(O=f.alternate,O===null)throw Error(l(387));O.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Ll):e=[Ll])}f=f.return}e!==null&&dc(n,e,i,s),n.flags|=262144}function Jo(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){Ea=e,fr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function kt(e){return _g(Ea,e)}function es(e,n){return Ea===null&&Ta(e),_g(e,n)}function _g(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},fr===null){if(e===null)throw Error(l(308));fr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else fr=fr.next=n;return i}var FE=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},QE=r.unstable_scheduleCallback,ZE=r.unstable_NormalPriority,Tt={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hc(){return{controller:new FE,data:new Map,refCount:0}}function ll(e){e.refCount--,e.refCount===0&&QE(ZE,function(){e.controller.abort()})}var ol=null,pc=0,ai=0,ii=null;function KE(e,n){if(ol===null){var i=ol=[];pc=0,ai=vf(),ii={status:"pending",value:void 0,then:function(s){i.push(s)}}}return pc++,n.then(jg,jg),n}function jg(){if(--pc===0&&ol!==null){ii!==null&&(ii.status="fulfilled");var e=ol;ol=null,ai=0,ii=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function JE(e,n){var i=[],s={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(s.status="rejected",s.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),s}var Ag=L.S;L.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&KE(e,n),Ag!==null&&Ag(e,n)};var Ca=C(null);function mc(){var e=Ca.current;return e!==null?e:rt.pooledCache}function ts(e,n){n===null?J(Ca,Ca.current):J(Ca,n.pool)}function Mg(){var e=mc();return e===null?null:{parent:Tt._currentValue,pool:e}}var sl=Error(l(460)),Ng=Error(l(474)),ns=Error(l(542)),gc={then:function(){}};function Dg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rs(){}function Lg(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(rs,rs),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Pg(e),e;default:if(typeof n.status=="string")n.then(rs,rs);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=s}},function(s){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Pg(e),e}throw ul=n,sl}}var ul=null;function zg(){if(ul===null)throw Error(l(459));var e=ul;return ul=null,e}function Pg(e){if(e===sl||e===ns)throw Error(l(483))}var Br=!1;function vc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function $r(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ir(e,n,i){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Fe&2)!==0){var f=s.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),s.pending=n,n=Fo(e),xg(e,null,i),n}return Xo(e,s,n,i),Fo(e)}function cl(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,i|=s,n.lanes=i,jn(e,i)}}function bc(e,n){var i=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var f=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var O={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?f=m=O:m=m.next=O,i=i.next}while(i!==null);m===null?f=m=n:m=m.next=n}else f=m=n;i={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:s.shared,callbacks:s.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var Sc=!1;function fl(){if(Sc){var e=ii;if(e!==null)throw e}}function dl(e,n,i,s){Sc=!1;var f=e.updateQueue;Br=!1;var m=f.firstBaseUpdate,O=f.lastBaseUpdate,A=f.shared.pending;if(A!==null){f.shared.pending=null;var Y=A,ae=Y.next;Y.next=null,O===null?m=ae:O.next=ae,O=Y;var ce=e.alternate;ce!==null&&(ce=ce.updateQueue,A=ce.lastBaseUpdate,A!==O&&(A===null?ce.firstBaseUpdate=ae:A.next=ae,ce.lastBaseUpdate=Y))}if(m!==null){var de=f.baseState;O=0,ce=ae=Y=null,A=m;do{var le=A.lane&-536870913,oe=le!==A.lane;if(oe?(Ge&le)===le:(s&le)===le){le!==0&&le===ai&&(Sc=!0),ce!==null&&(ce=ce.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var De=e,_e=A;le=n;var et=i;switch(_e.tag){case 1:if(De=_e.payload,typeof De=="function"){de=De.call(et,de,le);break e}de=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=_e.payload,le=typeof De=="function"?De.call(et,de,le):De,le==null)break e;de=g({},de,le);break e;case 2:Br=!0}}le=A.callback,le!==null&&(e.flags|=64,oe&&(e.flags|=8192),oe=f.callbacks,oe===null?f.callbacks=[le]:oe.push(le))}else oe={lane:le,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ce===null?(ae=ce=oe,Y=de):ce=ce.next=oe,O|=le;if(A=A.next,A===null){if(A=f.shared.pending,A===null)break;oe=A,A=oe.next,oe.next=null,f.lastBaseUpdate=oe,f.shared.pending=null}}while(!0);ce===null&&(Y=de),f.baseState=Y,f.firstBaseUpdate=ae,f.lastBaseUpdate=ce,m===null&&(f.shared.lanes=0),Fr|=O,e.lanes=O,e.memoizedState=de}}function Hg(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function kg(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Hg(i[e],n)}var li=C(null),as=C(0);function Bg(e,n){e=br,J(as,e),J(li,n),br=e|n.baseLanes}function wc(){J(as,br),J(li,li.current)}function xc(){br=as.current,W(li),W(as)}var qr=0,$e=null,Ke=null,xt=null,is=!1,oi=!1,Ra=!1,ls=0,hl=0,si=null,eT=0;function bt(){throw Error(l(321))}function Oc(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Jt(e[i],n[i]))return!1;return!0}function Ec(e,n,i,s,f,m){return qr=m,$e=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,L.H=e===null||e.memoizedState===null?xv:Ov,Ra=!1,m=i(s,f),Ra=!1,oi&&(m=Ig(n,i,s,f)),$g(e),m}function $g(e){L.H=ds;var n=Ke!==null&&Ke.next!==null;if(qr=0,xt=Ke=$e=null,is=!1,hl=0,si=null,n)throw Error(l(300));e===null||_t||(e=e.dependencies,e!==null&&Jo(e)&&(_t=!0))}function Ig(e,n,i,s){$e=e;var f=0;do{if(oi&&(si=null),hl=0,oi=!1,25<=f)throw Error(l(301));if(f+=1,xt=Ke=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}L.H=oT,m=n(i,s)}while(oi);return m}function tT(){var e=L.H,n=e.useState()[0];return n=typeof n.then=="function"?pl(n):n,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&($e.flags|=1024),n}function Tc(){var e=ls!==0;return ls=0,e}function Cc(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function Rc(e){if(is){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}is=!1}qr=0,xt=Ke=$e=null,oi=!1,hl=ls=0,si=null}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?$e.memoizedState=xt=e:xt=xt.next=e,xt}function Ot(){if(Ke===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var n=xt===null?$e.memoizedState:xt.next;if(n!==null)xt=n,Ke=e;else{if(e===null)throw $e.alternate===null?Error(l(467)):Error(l(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},xt===null?$e.memoizedState=xt=e:xt=xt.next=e}return xt}function _c(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pl(e){var n=hl;return hl+=1,si===null&&(si=[]),e=Lg(si,e,n),n=$e,(xt===null?n.memoizedState:xt.next)===null&&(n=n.alternate,L.H=n===null||n.memoizedState===null?xv:Ov),e}function os(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pl(e);if(e.$$typeof===I)return kt(e)}throw Error(l(438,String(e)))}function jc(e){var n=null,i=$e.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var s=$e.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=_c(),$e.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),s=0;s<e;s++)i[s]=E;return n.index++,i}function hr(e,n){return typeof n=="function"?n(e):n}function ss(e){var n=Ot();return Ac(n,Ke,e)}function Ac(e,n,i){var s=e.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=i;var f=e.baseQueue,m=s.pending;if(m!==null){if(f!==null){var O=f.next;f.next=m.next,m.next=O}n.baseQueue=f=m,s.pending=null}if(m=e.baseState,f===null)e.memoizedState=m;else{n=f.next;var A=O=null,Y=null,ae=n,ce=!1;do{var de=ae.lane&-536870913;if(de!==ae.lane?(Ge&de)===de:(qr&de)===de){var le=ae.revertLane;if(le===0)Y!==null&&(Y=Y.next={lane:0,revertLane:0,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),de===ai&&(ce=!0);else if((qr&le)===le){ae=ae.next,le===ai&&(ce=!0);continue}else de={lane:0,revertLane:ae.revertLane,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},Y===null?(A=Y=de,O=m):Y=Y.next=de,$e.lanes|=le,Fr|=le;de=ae.action,Ra&&i(m,de),m=ae.hasEagerState?ae.eagerState:i(m,de)}else le={lane:de,revertLane:ae.revertLane,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},Y===null?(A=Y=le,O=m):Y=Y.next=le,$e.lanes|=de,Fr|=de;ae=ae.next}while(ae!==null&&ae!==n);if(Y===null?O=m:Y.next=A,!Jt(m,e.memoizedState)&&(_t=!0,ce&&(i=ii,i!==null)))throw i;e.memoizedState=m,e.baseState=O,e.baseQueue=Y,s.lastRenderedState=m}return f===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Mc(e){var n=Ot(),i=n.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=e;var s=i.dispatch,f=i.pending,m=n.memoizedState;if(f!==null){i.pending=null;var O=f=f.next;do m=e(m,O.action),O=O.next;while(O!==f);Jt(m,n.memoizedState)||(_t=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),i.lastRenderedState=m}return[m,s]}function qg(e,n,i){var s=$e,f=Ot(),m=Ye;if(m){if(i===void 0)throw Error(l(407));i=i()}else i=n();var O=!Jt((Ke||f).memoizedState,i);O&&(f.memoizedState=i,_t=!0),f=f.queue;var A=Vg.bind(null,s,f,e);if(ml(2048,8,A,[e]),f.getSnapshot!==n||O||xt!==null&&xt.memoizedState.tag&1){if(s.flags|=2048,ui(9,us(),Gg.bind(null,s,f,i,n),null),rt===null)throw Error(l(349));m||(qr&124)!==0||Ug(s,n,i)}return i}function Ug(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=$e.updateQueue,n===null?(n=_c(),$e.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Gg(e,n,i,s){n.value=i,n.getSnapshot=s,Wg(n)&&Yg(e)}function Vg(e,n,i){return i(function(){Wg(n)&&Yg(e)})}function Wg(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Jt(e,i)}catch{return!0}}function Yg(e){var n=ei(e,2);n!==null&&ln(n,e,2)}function Nc(e){var n=Vt();if(typeof e=="function"){var i=e;if(e=i(),Ra){nt(!0);try{i()}finally{nt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:e},n}function Xg(e,n,i,s){return e.baseState=i,Ac(e,Ke,typeof s=="function"?s:hr)}function nT(e,n,i,s,f){if(fs(e))throw Error(l(485));if(e=n.action,e!==null){var m={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){m.listeners.push(O)}};L.T!==null?i(!0):m.isTransition=!1,s(m),i=n.pending,i===null?(m.next=n.pending=m,Fg(n,m)):(m.next=i.next,n.pending=i.next=m)}}function Fg(e,n){var i=n.action,s=n.payload,f=e.state;if(n.isTransition){var m=L.T,O={};L.T=O;try{var A=i(f,s),Y=L.S;Y!==null&&Y(O,A),Qg(e,n,A)}catch(ae){Dc(e,n,ae)}finally{L.T=m}}else try{m=i(f,s),Qg(e,n,m)}catch(ae){Dc(e,n,ae)}}function Qg(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){Zg(e,n,s)},function(s){return Dc(e,n,s)}):Zg(e,n,i)}function Zg(e,n,i){n.status="fulfilled",n.value=i,Kg(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Fg(e,i)))}function Dc(e,n,i){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=i,Kg(n),n=n.next;while(n!==s)}e.action=null}function Kg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Jg(e,n){return n}function ev(e,n){if(Ye){var i=rt.formState;if(i!==null){e:{var s=$e;if(Ye){if(pt){t:{for(var f=pt,m=$n;f.nodeType!==8;){if(!m){f=null;break t}if(f=Dn(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){pt=Dn(f.nextSibling),s=f.data==="F!";break e}}Oa(s)}s=!1}s&&(n=i[0])}}return i=Vt(),i.memoizedState=i.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jg,lastRenderedState:n},i.queue=s,i=bv.bind(null,$e,s),s.dispatch=i,s=Nc(!1),m=kc.bind(null,$e,!1,s.queue),s=Vt(),f={state:n,dispatch:null,action:e,pending:null},s.queue=f,i=nT.bind(null,$e,f,m,i),f.dispatch=i,s.memoizedState=e,[n,i,!1]}function tv(e){var n=Ot();return nv(n,Ke,e)}function nv(e,n,i){if(n=Ac(e,n,Jg)[0],e=ss(hr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=pl(n)}catch(O){throw O===sl?ns:O}else s=n;n=Ot();var f=n.queue,m=f.dispatch;return i!==n.memoizedState&&($e.flags|=2048,ui(9,us(),rT.bind(null,f,i),null)),[s,m,e]}function rT(e,n){e.action=n}function rv(e){var n=Ot(),i=Ke;if(i!==null)return nv(n,i,e);Ot(),n=n.memoizedState,i=Ot();var s=i.queue.dispatch;return i.memoizedState=e,[n,s,!1]}function ui(e,n,i,s){return e={tag:e,create:i,deps:s,inst:n,next:null},n=$e.updateQueue,n===null&&(n=_c(),$e.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(s=i.next,i.next=e,e.next=s,n.lastEffect=e),e}function us(){return{destroy:void 0,resource:void 0}}function av(){return Ot().memoizedState}function cs(e,n,i,s){var f=Vt();s=s===void 0?null:s,$e.flags|=e,f.memoizedState=ui(1|n,us(),i,s)}function ml(e,n,i,s){var f=Ot();s=s===void 0?null:s;var m=f.memoizedState.inst;Ke!==null&&s!==null&&Oc(s,Ke.memoizedState.deps)?f.memoizedState=ui(n,m,i,s):($e.flags|=e,f.memoizedState=ui(1|n,m,i,s))}function iv(e,n){cs(8390656,8,e,n)}function lv(e,n){ml(2048,8,e,n)}function ov(e,n){return ml(4,2,e,n)}function sv(e,n){return ml(4,4,e,n)}function uv(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function cv(e,n,i){i=i!=null?i.concat([e]):null,ml(4,4,uv.bind(null,n,e),i)}function Lc(){}function fv(e,n){var i=Ot();n=n===void 0?null:n;var s=i.memoizedState;return n!==null&&Oc(n,s[1])?s[0]:(i.memoizedState=[e,n],e)}function dv(e,n){var i=Ot();n=n===void 0?null:n;var s=i.memoizedState;if(n!==null&&Oc(n,s[1]))return s[0];if(s=e(),Ra){nt(!0);try{e()}finally{nt(!1)}}return i.memoizedState=[s,n],s}function zc(e,n,i){return i===void 0||(qr&1073741824)!==0?e.memoizedState=n:(e.memoizedState=i,e=my(),$e.lanes|=e,Fr|=e,i)}function hv(e,n,i,s){return Jt(i,n)?i:li.current!==null?(e=zc(e,i,s),Jt(e,n)||(_t=!0),e):(qr&42)===0?(_t=!0,e.memoizedState=i):(e=my(),$e.lanes|=e,Fr|=e,n)}function pv(e,n,i,s,f){var m=b.p;b.p=m!==0&&8>m?m:8;var O=L.T,A={};L.T=A,kc(e,!1,n,i);try{var Y=f(),ae=L.S;if(ae!==null&&ae(A,Y),Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var ce=JE(Y,s);gl(e,n,ce,an(e))}else gl(e,n,s,an(e))}catch(de){gl(e,n,{then:function(){},status:"rejected",reason:de},an())}finally{b.p=m,L.T=O}}function aT(){}function Pc(e,n,i,s){if(e.tag!==5)throw Error(l(476));var f=mv(e).queue;pv(e,f,n,te,i===null?aT:function(){return gv(e),i(s)})}function mv(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:te},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function gv(e){var n=mv(e).next.queue;gl(e,n,{},an())}function Hc(){return kt(Ll)}function vv(){return Ot().memoizedState}function yv(){return Ot().memoizedState}function iT(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=an();e=$r(i);var s=Ir(n,e,i);s!==null&&(ln(s,n,i),cl(s,n,i)),n={cache:hc()},e.payload=n;return}n=n.return}}function lT(e,n,i){var s=an();i={lane:s,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},fs(e)?Sv(n,i):(i=rc(e,n,i,s),i!==null&&(ln(i,e,s),wv(i,n,s)))}function bv(e,n,i){var s=an();gl(e,n,i,s)}function gl(e,n,i,s){var f={lane:s,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(fs(e))Sv(n,f);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var O=n.lastRenderedState,A=m(O,i);if(f.hasEagerState=!0,f.eagerState=A,Jt(A,O))return Xo(e,n,f,0),rt===null&&Yo(),!1}catch{}finally{}if(i=rc(e,n,f,s),i!==null)return ln(i,e,s),wv(i,n,s),!0}return!1}function kc(e,n,i,s){if(s={lane:2,revertLane:vf(),action:s,hasEagerState:!1,eagerState:null,next:null},fs(e)){if(n)throw Error(l(479))}else n=rc(e,i,s,2),n!==null&&ln(n,e,2)}function fs(e){var n=e.alternate;return e===$e||n!==null&&n===$e}function Sv(e,n){oi=is=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function wv(e,n,i){if((i&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,i|=s,n.lanes=i,jn(e,i)}}var ds={readContext:kt,use:os,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt},xv={readContext:kt,use:os,useCallback:function(e,n){return Vt().memoizedState=[e,n===void 0?null:n],e},useContext:kt,useEffect:iv,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,cs(4194308,4,uv.bind(null,n,e),i)},useLayoutEffect:function(e,n){return cs(4194308,4,e,n)},useInsertionEffect:function(e,n){cs(4,2,e,n)},useMemo:function(e,n){var i=Vt();n=n===void 0?null:n;var s=e();if(Ra){nt(!0);try{e()}finally{nt(!1)}}return i.memoizedState=[s,n],s},useReducer:function(e,n,i){var s=Vt();if(i!==void 0){var f=i(n);if(Ra){nt(!0);try{i(n)}finally{nt(!1)}}}else f=n;return s.memoizedState=s.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},s.queue=e,e=e.dispatch=lT.bind(null,$e,e),[s.memoizedState,e]},useRef:function(e){var n=Vt();return e={current:e},n.memoizedState=e},useState:function(e){e=Nc(e);var n=e.queue,i=bv.bind(null,$e,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:Lc,useDeferredValue:function(e,n){var i=Vt();return zc(i,e,n)},useTransition:function(){var e=Nc(!1);return e=pv.bind(null,$e,e.queue,!0,!1),Vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var s=$e,f=Vt();if(Ye){if(i===void 0)throw Error(l(407));i=i()}else{if(i=n(),rt===null)throw Error(l(349));(Ge&124)!==0||Ug(s,n,i)}f.memoizedState=i;var m={value:i,getSnapshot:n};return f.queue=m,iv(Vg.bind(null,s,m,e),[e]),s.flags|=2048,ui(9,us(),Gg.bind(null,s,m,i,n),null),i},useId:function(){var e=Vt(),n=rt.identifierPrefix;if(Ye){var i=cr,s=ur;i=(s&~(1<<32-dt(s)-1)).toString(32)+i,n="«"+n+"R"+i,i=ls++,0<i&&(n+="H"+i.toString(32)),n+="»"}else i=eT++,n="«"+n+"r"+i.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Hc,useFormState:ev,useActionState:ev,useOptimistic:function(e){var n=Vt();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=kc.bind(null,$e,!0,i),i.dispatch=n,[e,n]},useMemoCache:jc,useCacheRefresh:function(){return Vt().memoizedState=iT.bind(null,$e)}},Ov={readContext:kt,use:os,useCallback:fv,useContext:kt,useEffect:lv,useImperativeHandle:cv,useInsertionEffect:ov,useLayoutEffect:sv,useMemo:dv,useReducer:ss,useRef:av,useState:function(){return ss(hr)},useDebugValue:Lc,useDeferredValue:function(e,n){var i=Ot();return hv(i,Ke.memoizedState,e,n)},useTransition:function(){var e=ss(hr)[0],n=Ot().memoizedState;return[typeof e=="boolean"?e:pl(e),n]},useSyncExternalStore:qg,useId:vv,useHostTransitionStatus:Hc,useFormState:tv,useActionState:tv,useOptimistic:function(e,n){var i=Ot();return Xg(i,Ke,e,n)},useMemoCache:jc,useCacheRefresh:yv},oT={readContext:kt,use:os,useCallback:fv,useContext:kt,useEffect:lv,useImperativeHandle:cv,useInsertionEffect:ov,useLayoutEffect:sv,useMemo:dv,useReducer:Mc,useRef:av,useState:function(){return Mc(hr)},useDebugValue:Lc,useDeferredValue:function(e,n){var i=Ot();return Ke===null?zc(i,e,n):hv(i,Ke.memoizedState,e,n)},useTransition:function(){var e=Mc(hr)[0],n=Ot().memoizedState;return[typeof e=="boolean"?e:pl(e),n]},useSyncExternalStore:qg,useId:vv,useHostTransitionStatus:Hc,useFormState:rv,useActionState:rv,useOptimistic:function(e,n){var i=Ot();return Ke!==null?Xg(i,Ke,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:jc,useCacheRefresh:yv},ci=null,vl=0;function hs(e){var n=vl;return vl+=1,ci===null&&(ci=[]),Lg(ci,e,n)}function yl(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function ps(e,n){throw n.$$typeof===v?Error(l(525)):(e=Object.prototype.toString.call(n),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Ev(e){var n=e._init;return n(e._payload)}function Tv(e){function n(ee,K){if(e){var ne=ee.deletions;ne===null?(ee.deletions=[K],ee.flags|=16):ne.push(K)}}function i(ee,K){if(!e)return null;for(;K!==null;)n(ee,K),K=K.sibling;return null}function s(ee){for(var K=new Map;ee!==null;)ee.key!==null?K.set(ee.key,ee):K.set(ee.index,ee),ee=ee.sibling;return K}function f(ee,K){return ee=sr(ee,K),ee.index=0,ee.sibling=null,ee}function m(ee,K,ne){return ee.index=ne,e?(ne=ee.alternate,ne!==null?(ne=ne.index,ne<K?(ee.flags|=67108866,K):ne):(ee.flags|=67108866,K)):(ee.flags|=1048576,K)}function O(ee){return e&&ee.alternate===null&&(ee.flags|=67108866),ee}function A(ee,K,ne,fe){return K===null||K.tag!==6?(K=ic(ne,ee.mode,fe),K.return=ee,K):(K=f(K,ne),K.return=ee,K)}function Y(ee,K,ne,fe){var xe=ne.type;return xe===N?ce(ee,K,ne.props.children,fe,ne.key):K!==null&&(K.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===F&&Ev(xe)===K.type)?(K=f(K,ne.props),yl(K,ne),K.return=ee,K):(K=Qo(ne.type,ne.key,ne.props,null,ee.mode,fe),yl(K,ne),K.return=ee,K)}function ae(ee,K,ne,fe){return K===null||K.tag!==4||K.stateNode.containerInfo!==ne.containerInfo||K.stateNode.implementation!==ne.implementation?(K=lc(ne,ee.mode,fe),K.return=ee,K):(K=f(K,ne.children||[]),K.return=ee,K)}function ce(ee,K,ne,fe,xe){return K===null||K.tag!==7?(K=ba(ne,ee.mode,fe,xe),K.return=ee,K):(K=f(K,ne),K.return=ee,K)}function de(ee,K,ne){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=ic(""+K,ee.mode,ne),K.return=ee,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return ne=Qo(K.type,K.key,K.props,null,ee.mode,ne),yl(ne,K),ne.return=ee,ne;case T:return K=lc(K,ee.mode,ne),K.return=ee,K;case F:var fe=K._init;return K=fe(K._payload),de(ee,K,ne)}if(G(K)||B(K))return K=ba(K,ee.mode,ne,null),K.return=ee,K;if(typeof K.then=="function")return de(ee,hs(K),ne);if(K.$$typeof===I)return de(ee,es(ee,K),ne);ps(ee,K)}return null}function le(ee,K,ne,fe){var xe=K!==null?K.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return xe!==null?null:A(ee,K,""+ne,fe);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case x:return ne.key===xe?Y(ee,K,ne,fe):null;case T:return ne.key===xe?ae(ee,K,ne,fe):null;case F:return xe=ne._init,ne=xe(ne._payload),le(ee,K,ne,fe)}if(G(ne)||B(ne))return xe!==null?null:ce(ee,K,ne,fe,null);if(typeof ne.then=="function")return le(ee,K,hs(ne),fe);if(ne.$$typeof===I)return le(ee,K,es(ee,ne),fe);ps(ee,ne)}return null}function oe(ee,K,ne,fe,xe){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return ee=ee.get(ne)||null,A(K,ee,""+fe,xe);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case x:return ee=ee.get(fe.key===null?ne:fe.key)||null,Y(K,ee,fe,xe);case T:return ee=ee.get(fe.key===null?ne:fe.key)||null,ae(K,ee,fe,xe);case F:var Ie=fe._init;return fe=Ie(fe._payload),oe(ee,K,ne,fe,xe)}if(G(fe)||B(fe))return ee=ee.get(ne)||null,ce(K,ee,fe,xe,null);if(typeof fe.then=="function")return oe(ee,K,ne,hs(fe),xe);if(fe.$$typeof===I)return oe(ee,K,ne,es(K,fe),xe);ps(K,fe)}return null}function De(ee,K,ne,fe){for(var xe=null,Ie=null,Ee=K,Me=K=0,At=null;Ee!==null&&Me<ne.length;Me++){Ee.index>Me?(At=Ee,Ee=null):At=Ee.sibling;var We=le(ee,Ee,ne[Me],fe);if(We===null){Ee===null&&(Ee=At);break}e&&Ee&&We.alternate===null&&n(ee,Ee),K=m(We,K,Me),Ie===null?xe=We:Ie.sibling=We,Ie=We,Ee=At}if(Me===ne.length)return i(ee,Ee),Ye&&wa(ee,Me),xe;if(Ee===null){for(;Me<ne.length;Me++)Ee=de(ee,ne[Me],fe),Ee!==null&&(K=m(Ee,K,Me),Ie===null?xe=Ee:Ie.sibling=Ee,Ie=Ee);return Ye&&wa(ee,Me),xe}for(Ee=s(Ee);Me<ne.length;Me++)At=oe(Ee,ee,Me,ne[Me],fe),At!==null&&(e&&At.alternate!==null&&Ee.delete(At.key===null?Me:At.key),K=m(At,K,Me),Ie===null?xe=At:Ie.sibling=At,Ie=At);return e&&Ee.forEach(function(aa){return n(ee,aa)}),Ye&&wa(ee,Me),xe}function _e(ee,K,ne,fe){if(ne==null)throw Error(l(151));for(var xe=null,Ie=null,Ee=K,Me=K=0,At=null,We=ne.next();Ee!==null&&!We.done;Me++,We=ne.next()){Ee.index>Me?(At=Ee,Ee=null):At=Ee.sibling;var aa=le(ee,Ee,We.value,fe);if(aa===null){Ee===null&&(Ee=At);break}e&&Ee&&aa.alternate===null&&n(ee,Ee),K=m(aa,K,Me),Ie===null?xe=aa:Ie.sibling=aa,Ie=aa,Ee=At}if(We.done)return i(ee,Ee),Ye&&wa(ee,Me),xe;if(Ee===null){for(;!We.done;Me++,We=ne.next())We=de(ee,We.value,fe),We!==null&&(K=m(We,K,Me),Ie===null?xe=We:Ie.sibling=We,Ie=We);return Ye&&wa(ee,Me),xe}for(Ee=s(Ee);!We.done;Me++,We=ne.next())We=oe(Ee,ee,Me,We.value,fe),We!==null&&(e&&We.alternate!==null&&Ee.delete(We.key===null?Me:We.key),K=m(We,K,Me),Ie===null?xe=We:Ie.sibling=We,Ie=We);return e&&Ee.forEach(function(sC){return n(ee,sC)}),Ye&&wa(ee,Me),xe}function et(ee,K,ne,fe){if(typeof ne=="object"&&ne!==null&&ne.type===N&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case x:e:{for(var xe=ne.key;K!==null;){if(K.key===xe){if(xe=ne.type,xe===N){if(K.tag===7){i(ee,K.sibling),fe=f(K,ne.props.children),fe.return=ee,ee=fe;break e}}else if(K.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===F&&Ev(xe)===K.type){i(ee,K.sibling),fe=f(K,ne.props),yl(fe,ne),fe.return=ee,ee=fe;break e}i(ee,K);break}else n(ee,K);K=K.sibling}ne.type===N?(fe=ba(ne.props.children,ee.mode,fe,ne.key),fe.return=ee,ee=fe):(fe=Qo(ne.type,ne.key,ne.props,null,ee.mode,fe),yl(fe,ne),fe.return=ee,ee=fe)}return O(ee);case T:e:{for(xe=ne.key;K!==null;){if(K.key===xe)if(K.tag===4&&K.stateNode.containerInfo===ne.containerInfo&&K.stateNode.implementation===ne.implementation){i(ee,K.sibling),fe=f(K,ne.children||[]),fe.return=ee,ee=fe;break e}else{i(ee,K);break}else n(ee,K);K=K.sibling}fe=lc(ne,ee.mode,fe),fe.return=ee,ee=fe}return O(ee);case F:return xe=ne._init,ne=xe(ne._payload),et(ee,K,ne,fe)}if(G(ne))return De(ee,K,ne,fe);if(B(ne)){if(xe=B(ne),typeof xe!="function")throw Error(l(150));return ne=xe.call(ne),_e(ee,K,ne,fe)}if(typeof ne.then=="function")return et(ee,K,hs(ne),fe);if(ne.$$typeof===I)return et(ee,K,es(ee,ne),fe);ps(ee,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint"?(ne=""+ne,K!==null&&K.tag===6?(i(ee,K.sibling),fe=f(K,ne),fe.return=ee,ee=fe):(i(ee,K),fe=ic(ne,ee.mode,fe),fe.return=ee,ee=fe),O(ee)):i(ee,K)}return function(ee,K,ne,fe){try{vl=0;var xe=et(ee,K,ne,fe);return ci=null,xe}catch(Ee){if(Ee===sl||Ee===ns)throw Ee;var Ie=en(29,Ee,null,ee.mode);return Ie.lanes=fe,Ie.return=ee,Ie}finally{}}}var fi=Tv(!0),Cv=Tv(!1),vn=C(null),In=null;function Ur(e){var n=e.alternate;J(Ct,Ct.current&1),J(vn,e),In===null&&(n===null||li.current!==null||n.memoizedState!==null)&&(In=e)}function Rv(e){if(e.tag===22){if(J(Ct,Ct.current),J(vn,e),In===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(In=e)}}else Gr()}function Gr(){J(Ct,Ct.current),J(vn,vn.current)}function pr(e){W(vn),In===e&&(In=null),W(Ct)}var Ct=C(0);function ms(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||jf(i)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Bc(e,n,i,s){n=e.memoizedState,i=i(s,n),i=i==null?n:g({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var $c={enqueueSetState:function(e,n,i){e=e._reactInternals;var s=an(),f=$r(s);f.payload=n,i!=null&&(f.callback=i),n=Ir(e,f,s),n!==null&&(ln(n,e,s),cl(n,e,s))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var s=an(),f=$r(s);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=Ir(e,f,s),n!==null&&(ln(n,e,s),cl(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=an(),s=$r(i);s.tag=2,n!=null&&(s.callback=n),n=Ir(e,s,i),n!==null&&(ln(n,e,i),cl(n,e,i))}};function _v(e,n,i,s,f,m,O){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,m,O):n.prototype&&n.prototype.isPureReactComponent?!el(i,s)||!el(f,m):!0}function jv(e,n,i,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,s),n.state!==e&&$c.enqueueReplaceState(n,n.state,null)}function _a(e,n){var i=n;if("ref"in n){i={};for(var s in n)s!=="ref"&&(i[s]=n[s])}if(e=e.defaultProps){i===n&&(i=g({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}var gs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Av(e){gs(e)}function Mv(e){console.error(e)}function Nv(e){gs(e)}function vs(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function Dv(e,n,i){try{var s=e.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Ic(e,n,i){return i=$r(i),i.tag=3,i.payload={element:null},i.callback=function(){vs(e,n)},i}function Lv(e){return e=$r(e),e.tag=3,e}function zv(e,n,i,s){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var m=s.value;e.payload=function(){return f(m)},e.callback=function(){Dv(n,i,s)}}var O=i.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(e.callback=function(){Dv(n,i,s),typeof f!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var A=s.stack;this.componentDidCatch(s.value,{componentStack:A!==null?A:""})})}function sT(e,n,i,s,f){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=i.alternate,n!==null&&il(n,i,f,!0),i=vn.current,i!==null){switch(i.tag){case 13:return In===null?df():i.alternate===null&&mt===0&&(mt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,s===gc?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([s]):n.add(s),pf(e,s,f)),!1;case 22:return i.flags|=65536,s===gc?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([s]):i.add(s)),pf(e,s,f)),!1}throw Error(l(435,i.tag))}return pf(e,s,f),df(),!1}if(Ye)return n=vn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,s!==uc&&(e=Error(l(422),{cause:s}),al(hn(e,i)))):(s!==uc&&(n=Error(l(423),{cause:s}),al(hn(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,s=hn(s,i),f=Ic(e.stateNode,s,f),bc(e,f),mt!==4&&(mt=2)),!1;var m=Error(l(520),{cause:s});if(m=hn(m,i),Tl===null?Tl=[m]:Tl.push(m),mt!==4&&(mt=2),n===null)return!0;s=hn(s,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=Ic(i.stateNode,s,e),bc(i,e),!1;case 1:if(n=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Qr===null||!Qr.has(m))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Lv(f),zv(f,e,i,s),bc(i,f),!1}i=i.return}while(i!==null);return!1}var Pv=Error(l(461)),_t=!1;function Dt(e,n,i,s){n.child=e===null?Cv(n,null,i,s):fi(n,e.child,i,s)}function Hv(e,n,i,s,f){i=i.render;var m=n.ref;if("ref"in s){var O={};for(var A in s)A!=="ref"&&(O[A]=s[A])}else O=s;return Ta(n),s=Ec(e,n,i,O,m,f),A=Tc(),e!==null&&!_t?(Cc(e,n,f),mr(e,n,f)):(Ye&&A&&oc(n),n.flags|=1,Dt(e,n,s,f),n.child)}function kv(e,n,i,s,f){if(e===null){var m=i.type;return typeof m=="function"&&!ac(m)&&m.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=m,Bv(e,n,m,s,f)):(e=Qo(i.type,null,s,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!Fc(e,f)){var O=m.memoizedProps;if(i=i.compare,i=i!==null?i:el,i(O,s)&&e.ref===n.ref)return mr(e,n,f)}return n.flags|=1,e=sr(m,s),e.ref=n.ref,e.return=n,n.child=e}function Bv(e,n,i,s,f){if(e!==null){var m=e.memoizedProps;if(el(m,s)&&e.ref===n.ref)if(_t=!1,n.pendingProps=s=m,Fc(e,f))(e.flags&131072)!==0&&(_t=!0);else return n.lanes=e.lanes,mr(e,n,f)}return qc(e,n,i,s,f)}function $v(e,n,i){var s=n.pendingProps,f=s.children,m=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((n.flags&128)!==0){if(s=m!==null?m.baseLanes|i:i,e!==null){for(f=n.child=e.child,m=0;f!==null;)m=m|f.lanes|f.childLanes,f=f.sibling;n.childLanes=m&~s}else n.childLanes=0,n.child=null;return Iv(e,n,s,i)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&ts(n,m!==null?m.cachePool:null),m!==null?Bg(n,m):wc(),Rv(n);else return n.lanes=n.childLanes=536870912,Iv(e,n,m!==null?m.baseLanes|i:i,i)}else m!==null?(ts(n,m.cachePool),Bg(n,m),Gr(),n.memoizedState=null):(e!==null&&ts(n,null),wc(),Gr());return Dt(e,n,f,i),n.child}function Iv(e,n,i,s){var f=mc();return f=f===null?null:{parent:Tt._currentValue,pool:f},n.memoizedState={baseLanes:i,cachePool:f},e!==null&&ts(n,null),wc(),Rv(n),e!==null&&il(e,n,s,!0),null}function ys(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function qc(e,n,i,s,f){return Ta(n),i=Ec(e,n,i,s,void 0,f),s=Tc(),e!==null&&!_t?(Cc(e,n,f),mr(e,n,f)):(Ye&&s&&oc(n),n.flags|=1,Dt(e,n,i,f),n.child)}function qv(e,n,i,s,f,m){return Ta(n),n.updateQueue=null,i=Ig(n,s,i,f),$g(e),s=Tc(),e!==null&&!_t?(Cc(e,n,m),mr(e,n,m)):(Ye&&s&&oc(n),n.flags|=1,Dt(e,n,i,m),n.child)}function Uv(e,n,i,s,f){if(Ta(n),n.stateNode===null){var m=ti,O=i.contextType;typeof O=="object"&&O!==null&&(m=kt(O)),m=new i(s,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=$c,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=s,m.state=n.memoizedState,m.refs={},vc(n),O=i.contextType,m.context=typeof O=="object"&&O!==null?kt(O):ti,m.state=n.memoizedState,O=i.getDerivedStateFromProps,typeof O=="function"&&(Bc(n,i,O,s),m.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(O=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),O!==m.state&&$c.enqueueReplaceState(m,m.state,null),dl(n,s,m,f),fl(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){m=n.stateNode;var A=n.memoizedProps,Y=_a(i,A);m.props=Y;var ae=m.context,ce=i.contextType;O=ti,typeof ce=="object"&&ce!==null&&(O=kt(ce));var de=i.getDerivedStateFromProps;ce=typeof de=="function"||typeof m.getSnapshotBeforeUpdate=="function",A=n.pendingProps!==A,ce||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(A||ae!==O)&&jv(n,m,s,O),Br=!1;var le=n.memoizedState;m.state=le,dl(n,s,m,f),fl(),ae=n.memoizedState,A||le!==ae||Br?(typeof de=="function"&&(Bc(n,i,de,s),ae=n.memoizedState),(Y=Br||_v(n,i,Y,s,le,ae,O))?(ce||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=ae),m.props=s,m.state=ae,m.context=O,s=Y):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{m=n.stateNode,yc(e,n),O=n.memoizedProps,ce=_a(i,O),m.props=ce,de=n.pendingProps,le=m.context,ae=i.contextType,Y=ti,typeof ae=="object"&&ae!==null&&(Y=kt(ae)),A=i.getDerivedStateFromProps,(ae=typeof A=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(O!==de||le!==Y)&&jv(n,m,s,Y),Br=!1,le=n.memoizedState,m.state=le,dl(n,s,m,f),fl();var oe=n.memoizedState;O!==de||le!==oe||Br||e!==null&&e.dependencies!==null&&Jo(e.dependencies)?(typeof A=="function"&&(Bc(n,i,A,s),oe=n.memoizedState),(ce=Br||_v(n,i,ce,s,le,oe,Y)||e!==null&&e.dependencies!==null&&Jo(e.dependencies))?(ae||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,oe,Y),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,oe,Y)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=oe),m.props=s,m.state=oe,m.context=Y,s=ce):(typeof m.componentDidUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=1024),s=!1)}return m=s,ys(e,n),s=(n.flags&128)!==0,m||s?(m=n.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,e!==null&&s?(n.child=fi(n,e.child,null,f),n.child=fi(n,null,i,f)):Dt(e,n,i,f),n.memoizedState=m.state,e=n.child):e=mr(e,n,f),e}function Gv(e,n,i,s){return rl(),n.flags|=256,Dt(e,n,i,s),n.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Mg()}}function Vc(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=yn),e}function Vv(e,n,i){var s=n.pendingProps,f=!1,m=(n.flags&128)!==0,O;if((O=m)||(O=e!==null&&e.memoizedState===null?!1:(Ct.current&2)!==0),O&&(f=!0,n.flags&=-129),O=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ye){if(f?Ur(n):Gr(),Ye){var A=pt,Y;if(Y=A){e:{for(Y=A,A=$n;Y.nodeType!==8;){if(!A){A=null;break e}if(Y=Dn(Y.nextSibling),Y===null){A=null;break e}}A=Y}A!==null?(n.memoizedState={dehydrated:A,treeContext:Sa!==null?{id:ur,overflow:cr}:null,retryLane:536870912,hydrationErrors:null},Y=en(18,null,null,0),Y.stateNode=A,Y.return=n,n.child=Y,$t=n,pt=null,Y=!0):Y=!1}Y||Oa(n)}if(A=n.memoizedState,A!==null&&(A=A.dehydrated,A!==null))return jf(A)?n.lanes=32:n.lanes=536870912,null;pr(n)}return A=s.children,s=s.fallback,f?(Gr(),f=n.mode,A=bs({mode:"hidden",children:A},f),s=ba(s,f,i,null),A.return=n,s.return=n,A.sibling=s,n.child=A,f=n.child,f.memoizedState=Gc(i),f.childLanes=Vc(e,O,i),n.memoizedState=Uc,s):(Ur(n),Wc(n,A))}if(Y=e.memoizedState,Y!==null&&(A=Y.dehydrated,A!==null)){if(m)n.flags&256?(Ur(n),n.flags&=-257,n=Yc(e,n,i)):n.memoizedState!==null?(Gr(),n.child=e.child,n.flags|=128,n=null):(Gr(),f=s.fallback,A=n.mode,s=bs({mode:"visible",children:s.children},A),f=ba(f,A,i,null),f.flags|=2,s.return=n,f.return=n,s.sibling=f,n.child=s,fi(n,e.child,null,i),s=n.child,s.memoizedState=Gc(i),s.childLanes=Vc(e,O,i),n.memoizedState=Uc,n=f);else if(Ur(n),jf(A)){if(O=A.nextSibling&&A.nextSibling.dataset,O)var ae=O.dgst;O=ae,s=Error(l(419)),s.stack="",s.digest=O,al({value:s,source:null,stack:null}),n=Yc(e,n,i)}else if(_t||il(e,n,i,!1),O=(i&e.childLanes)!==0,_t||O){if(O=rt,O!==null&&(s=i&-i,s=(s&42)!==0?1:ha(s),s=(s&(O.suspendedLanes|i))!==0?0:s,s!==0&&s!==Y.retryLane))throw Y.retryLane=s,ei(e,s),ln(O,e,s),Pv;A.data==="$?"||df(),n=Yc(e,n,i)}else A.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=Y.treeContext,pt=Dn(A.nextSibling),$t=n,Ye=!0,xa=null,$n=!1,e!==null&&(mn[gn++]=ur,mn[gn++]=cr,mn[gn++]=Sa,ur=e.id,cr=e.overflow,Sa=n),n=Wc(n,s.children),n.flags|=4096);return n}return f?(Gr(),f=s.fallback,A=n.mode,Y=e.child,ae=Y.sibling,s=sr(Y,{mode:"hidden",children:s.children}),s.subtreeFlags=Y.subtreeFlags&65011712,ae!==null?f=sr(ae,f):(f=ba(f,A,i,null),f.flags|=2),f.return=n,s.return=n,s.sibling=f,n.child=s,s=f,f=n.child,A=e.child.memoizedState,A===null?A=Gc(i):(Y=A.cachePool,Y!==null?(ae=Tt._currentValue,Y=Y.parent!==ae?{parent:ae,pool:ae}:Y):Y=Mg(),A={baseLanes:A.baseLanes|i,cachePool:Y}),f.memoizedState=A,f.childLanes=Vc(e,O,i),n.memoizedState=Uc,s):(Ur(n),i=e.child,e=i.sibling,i=sr(i,{mode:"visible",children:s.children}),i.return=n,i.sibling=null,e!==null&&(O=n.deletions,O===null?(n.deletions=[e],n.flags|=16):O.push(e)),n.child=i,n.memoizedState=null,i)}function Wc(e,n){return n=bs({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function bs(e,n){return e=en(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Yc(e,n,i){return fi(n,e.child,null,i),e=Wc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Wv(e,n,i){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),fc(e.return,n,i)}function Xc(e,n,i,s,f){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:f}:(m.isBackwards=n,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=i,m.tailMode=f)}function Yv(e,n,i){var s=n.pendingProps,f=s.revealOrder,m=s.tail;if(Dt(e,n,s.children,i),s=Ct.current,(s&2)!==0)s=s&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wv(e,i,n);else if(e.tag===19)Wv(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}switch(J(Ct,s),f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&ms(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),Xc(n,!1,f,i,m);break;case"backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&ms(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}Xc(n,!0,i,null,m);break;case"together":Xc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function mr(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),Fr|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(il(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(l(153));if(n.child!==null){for(e=n.child,i=sr(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=sr(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Fc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Jo(e)))}function uT(e,n,i){switch(n.tag){case 3:ue(n,n.stateNode.containerInfo),kr(n,Tt,e.memoizedState.cache),rl();break;case 27:case 5:pe(n);break;case 4:ue(n,n.stateNode.containerInfo);break;case 10:kr(n,n.type,n.memoizedProps.value);break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(Ur(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Vv(e,n,i):(Ur(n),e=mr(e,n,i),e!==null?e.sibling:null);Ur(n);break;case 19:var f=(e.flags&128)!==0;if(s=(i&n.childLanes)!==0,s||(il(e,n,i,!1),s=(i&n.childLanes)!==0),f){if(s)return Yv(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),J(Ct,Ct.current),s)break;return null;case 22:case 23:return n.lanes=0,$v(e,n,i);case 24:kr(n,Tt,e.memoizedState.cache)}return mr(e,n,i)}function Xv(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)_t=!0;else{if(!Fc(e,i)&&(n.flags&128)===0)return _t=!1,uT(e,n,i);_t=(e.flags&131072)!==0}else _t=!1,Ye&&(n.flags&1048576)!==0&&Eg(n,Ko,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var s=n.elementType,f=s._init;if(s=f(s._payload),n.type=s,typeof s=="function")ac(s)?(e=_a(s,e),n.tag=1,n=Uv(null,n,s,e,i)):(n.tag=0,n=qc(null,n,s,e,i));else{if(s!=null){if(f=s.$$typeof,f===Q){n.tag=11,n=Hv(null,n,s,e,i);break e}else if(f===P){n.tag=14,n=kv(null,n,s,e,i);break e}}throw n=k(s)||s,Error(l(306,n,""))}}return n;case 0:return qc(e,n,n.type,n.pendingProps,i);case 1:return s=n.type,f=_a(s,n.pendingProps),Uv(e,n,s,f,i);case 3:e:{if(ue(n,n.stateNode.containerInfo),e===null)throw Error(l(387));s=n.pendingProps;var m=n.memoizedState;f=m.element,yc(e,n),dl(n,s,null,i);var O=n.memoizedState;if(s=O.cache,kr(n,Tt,s),s!==m.cache&&dc(n,[Tt],i,!0),fl(),s=O.element,m.isDehydrated)if(m={element:s,isDehydrated:!1,cache:O.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=Gv(e,n,s,i);break e}else if(s!==f){f=hn(Error(l(424)),n),al(f),n=Gv(e,n,s,i);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(pt=Dn(e.firstChild),$t=n,Ye=!0,xa=null,$n=!0,i=Cv(n,null,s,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(rl(),s===f){n=mr(e,n,i);break e}Dt(e,n,s,i)}n=n.child}return n;case 26:return ys(e,n),e===null?(i=Ky(n.type,null,n.pendingProps,null))?n.memoizedState=i:Ye||(i=n.type,e=n.pendingProps,s=Ds(Z.current).createElement(i),s[Et]=n,s[wt]=e,zt(s,i,e),ht(s),n.stateNode=s):n.memoizedState=Ky(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return pe(n),e===null&&Ye&&(s=n.stateNode=Fy(n.type,n.pendingProps,Z.current),$t=n,$n=!0,f=pt,Jr(n.type)?(Af=f,pt=Dn(s.firstChild)):pt=f),Dt(e,n,n.pendingProps.children,i),ys(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ye&&((f=s=pt)&&(s=HT(s,n.type,n.pendingProps,$n),s!==null?(n.stateNode=s,$t=n,pt=Dn(s.firstChild),$n=!1,f=!0):f=!1),f||Oa(n)),pe(n),f=n.type,m=n.pendingProps,O=e!==null?e.memoizedProps:null,s=m.children,Cf(f,m)?s=null:O!==null&&Cf(f,O)&&(n.flags|=32),n.memoizedState!==null&&(f=Ec(e,n,tT,null,null,i),Ll._currentValue=f),ys(e,n),Dt(e,n,s,i),n.child;case 6:return e===null&&Ye&&((e=i=pt)&&(i=kT(i,n.pendingProps,$n),i!==null?(n.stateNode=i,$t=n,pt=null,e=!0):e=!1),e||Oa(n)),null;case 13:return Vv(e,n,i);case 4:return ue(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=fi(n,null,s,i):Dt(e,n,s,i),n.child;case 11:return Hv(e,n,n.type,n.pendingProps,i);case 7:return Dt(e,n,n.pendingProps,i),n.child;case 8:return Dt(e,n,n.pendingProps.children,i),n.child;case 12:return Dt(e,n,n.pendingProps.children,i),n.child;case 10:return s=n.pendingProps,kr(n,n.type,s.value),Dt(e,n,s.children,i),n.child;case 9:return f=n.type._context,s=n.pendingProps.children,Ta(n),f=kt(f),s=s(f),n.flags|=1,Dt(e,n,s,i),n.child;case 14:return kv(e,n,n.type,n.pendingProps,i);case 15:return Bv(e,n,n.type,n.pendingProps,i);case 19:return Yv(e,n,i);case 31:return s=n.pendingProps,i=n.mode,s={mode:s.mode,children:s.children},e===null?(i=bs(s,i),i.ref=n.ref,n.child=i,i.return=n,n=i):(i=sr(e.child,s),i.ref=n.ref,n.child=i,i.return=n,n=i),n;case 22:return $v(e,n,i);case 24:return Ta(n),s=kt(Tt),e===null?(f=mc(),f===null&&(f=rt,m=hc(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=i),f=m),n.memoizedState={parent:s,cache:f},vc(n),kr(n,Tt,f)):((e.lanes&i)!==0&&(yc(e,n),dl(n,null,null,i),fl()),f=e.memoizedState,m=n.memoizedState,f.parent!==s?(f={parent:s,cache:s},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),kr(n,Tt,s)):(s=m.cache,kr(n,Tt,s),s!==f.cache&&dc(n,[Tt],i,!0))),Dt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function gr(e){e.flags|=4}function Fv(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rb(n)){if(n=vn.current,n!==null&&((Ge&4194048)===Ge?In!==null:(Ge&62914560)!==Ge&&(Ge&536870912)===0||n!==In))throw ul=gc,Ng;e.flags|=8192}}function Ss(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Ze():536870912,e.lanes|=n,mi|=n)}function bl(e,n){if(!Ye)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ut(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,s=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=s,e.childLanes=i,n}function cT(e,n,i){var s=n.pendingProps;switch(sc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(n),null;case 1:return ut(n),null;case 3:return i=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),dr(Tt),me(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(nl(n)?gr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Rg())),ut(n),null;case 26:return i=n.memoizedState,e===null?(gr(n),i!==null?(ut(n),Fv(n,i)):(ut(n),n.flags&=-16777217)):i?i!==e.memoizedState?(gr(n),ut(n),Fv(n,i)):(ut(n),n.flags&=-16777217):(e.memoizedProps!==s&&gr(n),ut(n),n.flags&=-16777217),null;case 27:ve(n),i=Z.current;var f=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==s&&gr(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return ut(n),null}e=H.current,nl(n)?Tg(n):(e=Fy(f,s,i),n.stateNode=e,gr(n))}return ut(n),null;case 5:if(ve(n),i=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&gr(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return ut(n),null}if(e=H.current,nl(n))Tg(n);else{switch(f=Ds(Z.current),e){case 1:e=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:e=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":e=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":e=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?f.createElement("select",{is:s.is}):f.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?f.createElement(i,{is:s.is}):f.createElement(i)}}e[Et]=n,e[wt]=s;e:for(f=n.child;f!==null;){if(f.tag===5||f.tag===6)e.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===n)break e;for(;f.sibling===null;){if(f.return===null||f.return===n)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}n.stateNode=e;e:switch(zt(e,i,s),i){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&gr(n)}}return ut(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&gr(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(l(166));if(e=Z.current,nl(n)){if(e=n.stateNode,i=n.memoizedProps,s=null,f=$t,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}e[Et]=n,e=!!(e.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||qy(e.nodeValue,i)),e||Oa(n)}else e=Ds(e).createTextNode(s),e[Et]=n,n.stateNode=e}return ut(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=nl(n),s!==null&&s.dehydrated!==null){if(e===null){if(!f)throw Error(l(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(l(317));f[Et]=n}else rl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ut(n),f=!1}else f=Rg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(pr(n),n):(pr(n),null)}if(pr(n),(n.flags&128)!==0)return n.lanes=i,n;if(i=s!==null,e=e!==null&&e.memoizedState!==null,i){s=n.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool);var m=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==f&&(s.flags|=2048)}return i!==e&&i&&(n.child.flags|=8192),Ss(n,n.updateQueue),ut(n),null;case 4:return me(),e===null&&wf(n.stateNode.containerInfo),ut(n),null;case 10:return dr(n.type),ut(n),null;case 19:if(W(Ct),f=n.memoizedState,f===null)return ut(n),null;if(s=(n.flags&128)!==0,m=f.rendering,m===null)if(s)bl(f,!1);else{if(mt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(m=ms(e),m!==null){for(n.flags|=128,bl(f,!1),e=m.updateQueue,n.updateQueue=e,Ss(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)Og(i,e),i=i.sibling;return J(Ct,Ct.current&1|2),n.child}e=e.sibling}f.tail!==null&&be()>Os&&(n.flags|=128,s=!0,bl(f,!1),n.lanes=4194304)}else{if(!s)if(e=ms(m),e!==null){if(n.flags|=128,s=!0,e=e.updateQueue,n.updateQueue=e,Ss(n,e),bl(f,!0),f.tail===null&&f.tailMode==="hidden"&&!m.alternate&&!Ye)return ut(n),null}else 2*be()-f.renderingStartTime>Os&&i!==536870912&&(n.flags|=128,s=!0,bl(f,!1),n.lanes=4194304);f.isBackwards?(m.sibling=n.child,n.child=m):(e=f.last,e!==null?e.sibling=m:n.child=m,f.last=m)}return f.tail!==null?(n=f.tail,f.rendering=n,f.tail=n.sibling,f.renderingStartTime=be(),n.sibling=null,e=Ct.current,J(Ct,s?e&1|2:e&1),n):(ut(n),null);case 22:case 23:return pr(n),xc(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(i&536870912)!==0&&(n.flags&128)===0&&(ut(n),n.subtreeFlags&6&&(n.flags|=8192)):ut(n),i=n.updateQueue,i!==null&&Ss(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048),e!==null&&W(Ca),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),dr(Tt),ut(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function fT(e,n){switch(sc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return dr(Tt),me(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ve(n),null;case 13:if(pr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));rl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return W(Ct),null;case 4:return me(),null;case 10:return dr(n.type),null;case 22:case 23:return pr(n),xc(),e!==null&&W(Ca),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return dr(Tt),null;case 25:return null;default:return null}}function Qv(e,n){switch(sc(n),n.tag){case 3:dr(Tt),me();break;case 26:case 27:case 5:ve(n);break;case 4:me();break;case 13:pr(n);break;case 19:W(Ct);break;case 10:dr(n.type);break;case 22:case 23:pr(n),xc(),e!==null&&W(Ca);break;case 24:dr(Tt)}}function Sl(e,n){try{var i=n.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var f=s.next;i=f;do{if((i.tag&e)===e){s=void 0;var m=i.create,O=i.inst;s=m(),O.destroy=s}i=i.next}while(i!==f)}}catch(A){tt(n,n.return,A)}}function Vr(e,n,i){try{var s=n.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var m=f.next;s=m;do{if((s.tag&e)===e){var O=s.inst,A=O.destroy;if(A!==void 0){O.destroy=void 0,f=n;var Y=i,ae=A;try{ae()}catch(ce){tt(f,Y,ce)}}}s=s.next}while(s!==m)}}catch(ce){tt(n,n.return,ce)}}function Zv(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{kg(n,i)}catch(s){tt(e,e.return,s)}}}function Kv(e,n,i){i.props=_a(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(s){tt(e,n,s)}}function wl(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof i=="function"?e.refCleanup=i(s):i.current=s}}catch(f){tt(e,n,f)}}function qn(e,n){var i=e.ref,s=e.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(f){tt(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){tt(e,n,f)}else i.current=null}function Jv(e){var n=e.type,i=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break e;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(f){tt(e,e.return,f)}}function Qc(e,n,i){try{var s=e.stateNode;NT(s,e.type,i,n),s[wt]=n}catch(f){tt(e,e.return,f)}}function ey(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Jr(e.type)||e.tag===4}function Zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ey(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Jr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kc(e,n,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ns));else if(s!==4&&(s===27&&Jr(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(Kc(e,n,i),e=e.sibling;e!==null;)Kc(e,n,i),e=e.sibling}function ws(e,n,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(s!==4&&(s===27&&Jr(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(ws(e,n,i),e=e.sibling;e!==null;)ws(e,n,i),e=e.sibling}function ty(e){var n=e.stateNode,i=e.memoizedProps;try{for(var s=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);zt(n,s,i),n[Et]=e,n[wt]=i}catch(m){tt(e,e.return,m)}}var vr=!1,St=!1,Jc=!1,ny=typeof WeakSet=="function"?WeakSet:Set,jt=null;function dT(e,n){if(e=e.containerInfo,Ef=Bs,e=hg(e),Zu(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var f=s.anchorOffset,m=s.focusNode;s=s.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var O=0,A=-1,Y=-1,ae=0,ce=0,de=e,le=null;t:for(;;){for(var oe;de!==i||f!==0&&de.nodeType!==3||(A=O+f),de!==m||s!==0&&de.nodeType!==3||(Y=O+s),de.nodeType===3&&(O+=de.nodeValue.length),(oe=de.firstChild)!==null;)le=de,de=oe;for(;;){if(de===e)break t;if(le===i&&++ae===f&&(A=O),le===m&&++ce===s&&(Y=O),(oe=de.nextSibling)!==null)break;de=le,le=de.parentNode}de=oe}i=A===-1||Y===-1?null:{start:A,end:Y}}else i=null}i=i||{start:0,end:0}}else i=null;for(Tf={focusedElem:e,selectionRange:i},Bs=!1,jt=n;jt!==null;)if(n=jt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,jt=e;else for(;jt!==null;){switch(n=jt,m=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,i=n,f=m.memoizedProps,m=m.memoizedState,s=i.stateNode;try{var De=_a(i.type,f,i.elementType===i.type);e=s.getSnapshotBeforeUpdate(De,m),s.__reactInternalSnapshotBeforeUpdate=e}catch(_e){tt(i,i.return,_e)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)_f(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_f(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=n.sibling,e!==null){e.return=n.return,jt=e;break}jt=n.return}}function ry(e,n,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:Wr(e,i),s&4&&Sl(5,i);break;case 1:if(Wr(e,i),s&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(O){tt(i,i.return,O)}else{var f=_a(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(O){tt(i,i.return,O)}}s&64&&Zv(i),s&512&&wl(i,i.return);break;case 3:if(Wr(e,i),s&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{kg(e,n)}catch(O){tt(i,i.return,O)}}break;case 27:n===null&&s&4&&ty(i);case 26:case 5:Wr(e,i),n===null&&s&4&&Jv(i),s&512&&wl(i,i.return);break;case 12:Wr(e,i);break;case 13:Wr(e,i),s&4&&ly(e,i),s&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=wT.bind(null,i),BT(e,i))));break;case 22:if(s=i.memoizedState!==null||vr,!s){n=n!==null&&n.memoizedState!==null||St,f=vr;var m=St;vr=s,(St=n)&&!m?Yr(e,i,(i.subtreeFlags&8772)!==0):Wr(e,i),vr=f,St=m}break;case 30:break;default:Wr(e,i)}}function ay(e){var n=e.alternate;n!==null&&(e.alternate=null,ay(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&pa(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var st=null,Wt=!1;function yr(e,n,i){for(i=i.child;i!==null;)iy(e,n,i),i=i.sibling}function iy(e,n,i){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(Ae,i)}catch{}switch(i.tag){case 26:St||qn(i,n),yr(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:St||qn(i,n);var s=st,f=Wt;Jr(i.type)&&(st=i.stateNode,Wt=!1),yr(e,n,i),Al(i.stateNode),st=s,Wt=f;break;case 5:St||qn(i,n);case 6:if(s=st,f=Wt,st=null,yr(e,n,i),st=s,Wt=f,st!==null)if(Wt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(i.stateNode)}catch(m){tt(i,n,m)}else try{st.removeChild(i.stateNode)}catch(m){tt(i,n,m)}break;case 18:st!==null&&(Wt?(e=st,Yy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),kl(e)):Yy(st,i.stateNode));break;case 4:s=st,f=Wt,st=i.stateNode.containerInfo,Wt=!0,yr(e,n,i),st=s,Wt=f;break;case 0:case 11:case 14:case 15:St||Vr(2,i,n),St||Vr(4,i,n),yr(e,n,i);break;case 1:St||(qn(i,n),s=i.stateNode,typeof s.componentWillUnmount=="function"&&Kv(i,n,s)),yr(e,n,i);break;case 21:yr(e,n,i);break;case 22:St=(s=St)||i.memoizedState!==null,yr(e,n,i),St=s;break;default:yr(e,n,i)}}function ly(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{kl(e)}catch(i){tt(n,n.return,i)}}function hT(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new ny),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new ny),n;default:throw Error(l(435,e.tag))}}function ef(e,n){var i=hT(e);n.forEach(function(s){var f=xT.bind(null,e,s);i.has(s)||(i.add(s),s.then(f,f))})}function tn(e,n){var i=n.deletions;if(i!==null)for(var s=0;s<i.length;s++){var f=i[s],m=e,O=n,A=O;e:for(;A!==null;){switch(A.tag){case 27:if(Jr(A.type)){st=A.stateNode,Wt=!1;break e}break;case 5:st=A.stateNode,Wt=!1;break e;case 3:case 4:st=A.stateNode.containerInfo,Wt=!0;break e}A=A.return}if(st===null)throw Error(l(160));iy(m,O,f),st=null,Wt=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)oy(n,e),n=n.sibling}var Nn=null;function oy(e,n){var i=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:tn(n,e),nn(e),s&4&&(Vr(3,e,e.return),Sl(3,e),Vr(5,e,e.return));break;case 1:tn(n,e),nn(e),s&512&&(St||i===null||qn(i,i.return)),s&64&&vr&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var f=Nn;if(tn(n,e),nn(e),s&512&&(St||i===null||qn(i,i.return)),s&4){var m=i!==null?i.memoizedState:null;if(s=e.memoizedState,i===null)if(s===null)if(e.stateNode===null){e:{s=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":m=f.getElementsByTagName("title")[0],(!m||m[Lr]||m[Et]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(s),f.head.insertBefore(m,f.querySelector("head > title"))),zt(m,s,i),m[Et]=e,ht(m),s=m;break e;case"link":var O=tb("link","href",f).get(s+(i.href||""));if(O){for(var A=0;A<O.length;A++)if(m=O[A],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){O.splice(A,1);break t}}m=f.createElement(s),zt(m,s,i),f.head.appendChild(m);break;case"meta":if(O=tb("meta","content",f).get(s+(i.content||""))){for(A=0;A<O.length;A++)if(m=O[A],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){O.splice(A,1);break t}}m=f.createElement(s),zt(m,s,i),f.head.appendChild(m);break;default:throw Error(l(468,s))}m[Et]=e,ht(m),s=m}e.stateNode=s}else nb(f,e.type,e.stateNode);else e.stateNode=eb(f,s,e.memoizedProps);else m!==s?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,s===null?nb(f,e.type,e.stateNode):eb(f,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Qc(e,e.memoizedProps,i.memoizedProps)}break;case 27:tn(n,e),nn(e),s&512&&(St||i===null||qn(i,i.return)),i!==null&&s&4&&Qc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(tn(n,e),nn(e),s&512&&(St||i===null||qn(i,i.return)),e.flags&32){f=e.stateNode;try{Ya(f,"")}catch(oe){tt(e,e.return,oe)}}s&4&&e.stateNode!=null&&(f=e.memoizedProps,Qc(e,f,i!==null?i.memoizedProps:f)),s&1024&&(Jc=!0);break;case 6:if(tn(n,e),nn(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,i=e.stateNode;try{i.nodeValue=s}catch(oe){tt(e,e.return,oe)}}break;case 3:if(Ps=null,f=Nn,Nn=Ls(n.containerInfo),tn(n,e),Nn=f,nn(e),s&4&&i!==null&&i.memoizedState.isDehydrated)try{kl(n.containerInfo)}catch(oe){tt(e,e.return,oe)}Jc&&(Jc=!1,sy(e));break;case 4:s=Nn,Nn=Ls(e.stateNode.containerInfo),tn(n,e),nn(e),Nn=s;break;case 12:tn(n,e),nn(e);break;case 13:tn(n,e),nn(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(of=be()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ef(e,s)));break;case 22:f=e.memoizedState!==null;var Y=i!==null&&i.memoizedState!==null,ae=vr,ce=St;if(vr=ae||f,St=ce||Y,tn(n,e),St=ce,vr=ae,nn(e),s&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||Y||vr||St||ja(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){Y=i=n;try{if(m=Y.stateNode,f)O=m.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{A=Y.stateNode;var de=Y.memoizedProps.style,le=de!=null&&de.hasOwnProperty("display")?de.display:null;A.style.display=le==null||typeof le=="boolean"?"":(""+le).trim()}}catch(oe){tt(Y,Y.return,oe)}}}else if(n.tag===6){if(i===null){Y=n;try{Y.stateNode.nodeValue=f?"":Y.memoizedProps}catch(oe){tt(Y,Y.return,oe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,ef(e,i))));break;case 19:tn(n,e),nn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ef(e,s)));break;case 30:break;case 21:break;default:tn(n,e),nn(e)}}function nn(e){var n=e.flags;if(n&2){try{for(var i,s=e.return;s!==null;){if(ey(s)){i=s;break}s=s.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var f=i.stateNode,m=Zc(e);ws(e,m,f);break;case 5:var O=i.stateNode;i.flags&32&&(Ya(O,""),i.flags&=-33);var A=Zc(e);ws(e,A,O);break;case 3:case 4:var Y=i.stateNode.containerInfo,ae=Zc(e);Kc(e,ae,Y);break;default:throw Error(l(161))}}catch(ce){tt(e,e.return,ce)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function sy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;sy(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Wr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)ry(e,n.alternate,n),n=n.sibling}function ja(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Vr(4,n,n.return),ja(n);break;case 1:qn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Kv(n,n.return,i),ja(n);break;case 27:Al(n.stateNode);case 26:case 5:qn(n,n.return),ja(n);break;case 22:n.memoizedState===null&&ja(n);break;case 30:ja(n);break;default:ja(n)}e=e.sibling}}function Yr(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,f=e,m=n,O=m.flags;switch(m.tag){case 0:case 11:case 15:Yr(f,m,i),Sl(4,m);break;case 1:if(Yr(f,m,i),s=m,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(ae){tt(s,s.return,ae)}if(s=m,f=s.updateQueue,f!==null){var A=s.stateNode;try{var Y=f.shared.hiddenCallbacks;if(Y!==null)for(f.shared.hiddenCallbacks=null,f=0;f<Y.length;f++)Hg(Y[f],A)}catch(ae){tt(s,s.return,ae)}}i&&O&64&&Zv(m),wl(m,m.return);break;case 27:ty(m);case 26:case 5:Yr(f,m,i),i&&s===null&&O&4&&Jv(m),wl(m,m.return);break;case 12:Yr(f,m,i);break;case 13:Yr(f,m,i),i&&O&4&&ly(f,m);break;case 22:m.memoizedState===null&&Yr(f,m,i),wl(m,m.return);break;case 30:break;default:Yr(f,m,i)}n=n.sibling}}function tf(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&ll(i))}function nf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ll(e))}function Un(e,n,i,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)uy(e,n,i,s),n=n.sibling}function uy(e,n,i,s){var f=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n,i,s),f&2048&&Sl(9,n);break;case 1:Un(e,n,i,s);break;case 3:Un(e,n,i,s),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ll(e)));break;case 12:if(f&2048){Un(e,n,i,s),e=n.stateNode;try{var m=n.memoizedProps,O=m.id,A=m.onPostCommit;typeof A=="function"&&A(O,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(Y){tt(n,n.return,Y)}}else Un(e,n,i,s);break;case 13:Un(e,n,i,s);break;case 23:break;case 22:m=n.stateNode,O=n.alternate,n.memoizedState!==null?m._visibility&2?Un(e,n,i,s):xl(e,n):m._visibility&2?Un(e,n,i,s):(m._visibility|=2,di(e,n,i,s,(n.subtreeFlags&10256)!==0)),f&2048&&tf(O,n);break;case 24:Un(e,n,i,s),f&2048&&nf(n.alternate,n);break;default:Un(e,n,i,s)}}function di(e,n,i,s,f){for(f=f&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var m=e,O=n,A=i,Y=s,ae=O.flags;switch(O.tag){case 0:case 11:case 15:di(m,O,A,Y,f),Sl(8,O);break;case 23:break;case 22:var ce=O.stateNode;O.memoizedState!==null?ce._visibility&2?di(m,O,A,Y,f):xl(m,O):(ce._visibility|=2,di(m,O,A,Y,f)),f&&ae&2048&&tf(O.alternate,O);break;case 24:di(m,O,A,Y,f),f&&ae&2048&&nf(O.alternate,O);break;default:di(m,O,A,Y,f)}n=n.sibling}}function xl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,s=n,f=s.flags;switch(s.tag){case 22:xl(i,s),f&2048&&tf(s.alternate,s);break;case 24:xl(i,s),f&2048&&nf(s.alternate,s);break;default:xl(i,s)}n=n.sibling}}var Ol=8192;function hi(e){if(e.subtreeFlags&Ol)for(e=e.child;e!==null;)cy(e),e=e.sibling}function cy(e){switch(e.tag){case 26:hi(e),e.flags&Ol&&e.memoizedState!==null&&KT(Nn,e.memoizedState,e.memoizedProps);break;case 5:hi(e);break;case 3:case 4:var n=Nn;Nn=Ls(e.stateNode.containerInfo),hi(e),Nn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ol,Ol=16777216,hi(e),Ol=n):hi(e));break;default:hi(e)}}function fy(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function El(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];jt=s,hy(s,e)}fy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)dy(e),e=e.sibling}function dy(e){switch(e.tag){case 0:case 11:case 15:El(e),e.flags&2048&&Vr(9,e,e.return);break;case 3:El(e);break;case 12:El(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,xs(e)):El(e);break;default:El(e)}}function xs(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];jt=s,hy(s,e)}fy(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Vr(8,n,n.return),xs(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,xs(n));break;default:xs(n)}e=e.sibling}}function hy(e,n){for(;jt!==null;){var i=jt;switch(i.tag){case 0:case 11:case 15:Vr(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ll(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,jt=s;else e:for(i=e;jt!==null;){s=jt;var f=s.sibling,m=s.return;if(ay(s),s===i){jt=null;break e}if(f!==null){f.return=m,jt=f;break e}jt=m}}}var pT={getCacheForType:function(e){var n=kt(Tt),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i}},mT=typeof WeakMap=="function"?WeakMap:Map,Fe=0,rt=null,qe=null,Ge=0,Qe=0,rn=null,Xr=!1,pi=!1,rf=!1,br=0,mt=0,Fr=0,Aa=0,af=0,yn=0,mi=0,Tl=null,Yt=null,lf=!1,of=0,Os=1/0,Es=null,Qr=null,Lt=0,Zr=null,gi=null,vi=0,sf=0,uf=null,py=null,Cl=0,cf=null;function an(){if((Fe&2)!==0&&Ge!==0)return Ge&-Ge;if(L.T!==null){var e=ai;return e!==0?e:vf()}return Ut()}function my(){yn===0&&(yn=(Ge&536870912)===0||Ye?Xe():536870912);var e=vn.current;return e!==null&&(e.flags|=32),yn}function ln(e,n,i){(e===rt&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(yi(e,0),Kr(e,Ge,yn,!1)),qt(e,i),((Fe&2)===0||e!==rt)&&(e===rt&&((Fe&2)===0&&(Aa|=i),mt===4&&Kr(e,Ge,yn,!1)),Gn(e))}function gy(e,n,i){if((Fe&6)!==0)throw Error(l(327));var s=!i&&(n&124)===0&&(n&e.expiredLanes)===0||se(e,n),f=s?yT(e,n):hf(e,n,!0),m=s;do{if(f===0){pi&&!s&&Kr(e,n,0,!1);break}else{if(i=e.current.alternate,m&&!gT(i)){f=hf(e,n,!1),m=!1;continue}if(f===2){if(m=n,e.errorRecoveryDisabledLanes&m)var O=0;else O=e.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){n=O;e:{var A=e;f=Tl;var Y=A.current.memoizedState.isDehydrated;if(Y&&(yi(A,O).flags|=256),O=hf(A,O,!1),O!==2){if(rf&&!Y){A.errorRecoveryDisabledLanes|=m,Aa|=m,f=4;break e}m=Yt,Yt=f,m!==null&&(Yt===null?Yt=m:Yt.push.apply(Yt,m))}f=O}if(m=!1,f!==2)continue}}if(f===1){yi(e,0),Kr(e,n,0,!0);break}e:{switch(s=e,m=f,m){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:Kr(s,n,yn,!Xr);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(f=of+300-be(),10<f)){if(Kr(s,n,yn,!Xr),ie(s,0,!0)!==0)break e;s.timeoutHandle=Vy(vy.bind(null,s,i,Yt,Es,lf,n,yn,Aa,mi,Xr,m,2,-0,0),f);break e}vy(s,i,Yt,Es,lf,n,yn,Aa,mi,Xr,m,0,-0,0)}}break}while(!0);Gn(e)}function vy(e,n,i,s,f,m,O,A,Y,ae,ce,de,le,oe){if(e.timeoutHandle=-1,de=n.subtreeFlags,(de&8192||(de&16785408)===16785408)&&(Dl={stylesheets:null,count:0,unsuspend:ZT},cy(n),de=JT(),de!==null)){e.cancelPendingCommit=de(Ey.bind(null,e,n,m,i,s,f,O,A,Y,ce,1,le,oe)),Kr(e,m,O,!ae);return}Ey(e,n,m,i,s,f,O,A,Y)}function gT(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var f=i[s],m=f.getSnapshot;f=f.value;try{if(!Jt(m(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Kr(e,n,i,s){n&=~af,n&=~Aa,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var f=n;0<f;){var m=31-dt(f),O=1<<m;s[m]=-1,f&=~O}i!==0&&Ht(e,i,n)}function Ts(){return(Fe&6)===0?(Rl(0),!1):!0}function ff(){if(qe!==null){if(Qe===0)var e=qe.return;else e=qe,fr=Ea=null,Rc(e),ci=null,vl=0,e=qe;for(;e!==null;)Qv(e.alternate,e),e=e.return;qe=null}}function yi(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,LT(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),ff(),rt=e,qe=i=sr(e.current,null),Ge=n,Qe=0,rn=null,Xr=!1,pi=se(e,n),rf=!1,mi=yn=af=Aa=Fr=mt=0,Yt=Tl=null,lf=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var f=31-dt(s),m=1<<f;n|=e[f],s&=~m}return br=n,Yo(),i}function yy(e,n){$e=null,L.H=ds,n===sl||n===ns?(n=zg(),Qe=3):n===Ng?(n=zg(),Qe=4):Qe=n===Pv?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,rn=n,qe===null&&(mt=1,vs(e,hn(n,e.current)))}function by(){var e=L.H;return L.H=ds,e===null?ds:e}function Sy(){var e=L.A;return L.A=pT,e}function df(){mt=4,Xr||(Ge&4194048)!==Ge&&vn.current!==null||(pi=!0),(Fr&134217727)===0&&(Aa&134217727)===0||rt===null||Kr(rt,Ge,yn,!1)}function hf(e,n,i){var s=Fe;Fe|=2;var f=by(),m=Sy();(rt!==e||Ge!==n)&&(Es=null,yi(e,n)),n=!1;var O=mt;e:do try{if(Qe!==0&&qe!==null){var A=qe,Y=rn;switch(Qe){case 8:ff(),O=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(n=!0);var ae=Qe;if(Qe=0,rn=null,bi(e,A,Y,ae),i&&pi){O=0;break e}break;default:ae=Qe,Qe=0,rn=null,bi(e,A,Y,ae)}}vT(),O=mt;break}catch(ce){yy(e,ce)}while(!0);return n&&e.shellSuspendCounter++,fr=Ea=null,Fe=s,L.H=f,L.A=m,qe===null&&(rt=null,Ge=0,Yo()),O}function vT(){for(;qe!==null;)wy(qe)}function yT(e,n){var i=Fe;Fe|=2;var s=by(),f=Sy();rt!==e||Ge!==n?(Es=null,Os=be()+500,yi(e,n)):pi=se(e,n);e:do try{if(Qe!==0&&qe!==null){n=qe;var m=rn;t:switch(Qe){case 1:Qe=0,rn=null,bi(e,n,m,1);break;case 2:case 9:if(Dg(m)){Qe=0,rn=null,xy(n);break}n=function(){Qe!==2&&Qe!==9||rt!==e||(Qe=7),Gn(e)},m.then(n,n);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:Dg(m)?(Qe=0,rn=null,xy(n)):(Qe=0,rn=null,bi(e,n,m,7));break;case 5:var O=null;switch(qe.tag){case 26:O=qe.memoizedState;case 5:case 27:var A=qe;if(!O||rb(O)){Qe=0,rn=null;var Y=A.sibling;if(Y!==null)qe=Y;else{var ae=A.return;ae!==null?(qe=ae,Cs(ae)):qe=null}break t}}Qe=0,rn=null,bi(e,n,m,5);break;case 6:Qe=0,rn=null,bi(e,n,m,6);break;case 8:ff(),mt=6;break e;default:throw Error(l(462))}}bT();break}catch(ce){yy(e,ce)}while(!0);return fr=Ea=null,L.H=s,L.A=f,Fe=i,qe!==null?0:(rt=null,Ge=0,Yo(),mt)}function bT(){for(;qe!==null&&!ye();)wy(qe)}function wy(e){var n=Xv(e.alternate,e,br);e.memoizedProps=e.pendingProps,n===null?Cs(e):qe=n}function xy(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=qv(i,n,n.pendingProps,n.type,void 0,Ge);break;case 11:n=qv(i,n,n.pendingProps,n.type.render,n.ref,Ge);break;case 5:Rc(n);default:Qv(i,n),n=qe=Og(n,br),n=Xv(i,n,br)}e.memoizedProps=e.pendingProps,n===null?Cs(e):qe=n}function bi(e,n,i,s){fr=Ea=null,Rc(n),ci=null,vl=0;var f=n.return;try{if(sT(e,f,n,i,Ge)){mt=1,vs(e,hn(i,e.current)),qe=null;return}}catch(m){if(f!==null)throw qe=f,m;mt=1,vs(e,hn(i,e.current)),qe=null;return}n.flags&32768?(Ye||s===1?e=!0:pi||(Ge&536870912)!==0?e=!1:(Xr=e=!0,(s===2||s===9||s===3||s===6)&&(s=vn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Oy(n,e)):Cs(n)}function Cs(e){var n=e;do{if((n.flags&32768)!==0){Oy(n,Xr);return}e=n.return;var i=cT(n.alternate,n,br);if(i!==null){qe=i;return}if(n=n.sibling,n!==null){qe=n;return}qe=n=e}while(n!==null);mt===0&&(mt=5)}function Oy(e,n){do{var i=fT(e.alternate,e);if(i!==null){i.flags&=32767,qe=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){qe=e;return}qe=e=i}while(e!==null);mt=6,qe=null}function Ey(e,n,i,s,f,m,O,A,Y){e.cancelPendingCommit=null;do Rs();while(Lt!==0);if((Fe&6)!==0)throw Error(l(327));if(n!==null){if(n===e.current)throw Error(l(177));if(m=n.lanes|n.childLanes,m|=nc,tr(e,i,m,O,A,Y),e===rt&&(qe=rt=null,Ge=0),gi=n,Zr=e,vi=i,sf=m,uf=f,py=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,OT(ke,function(){return jy(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=L.T,L.T=null,f=b.p,b.p=2,O=Fe,Fe|=4;try{dT(e,n,i)}finally{Fe=O,b.p=f,L.T=s}}Lt=1,Ty(),Cy(),Ry()}}function Ty(){if(Lt===1){Lt=0;var e=Zr,n=gi,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=L.T,L.T=null;var s=b.p;b.p=2;var f=Fe;Fe|=4;try{oy(n,e);var m=Tf,O=hg(e.containerInfo),A=m.focusedElem,Y=m.selectionRange;if(O!==A&&A&&A.ownerDocument&&dg(A.ownerDocument.documentElement,A)){if(Y!==null&&Zu(A)){var ae=Y.start,ce=Y.end;if(ce===void 0&&(ce=ae),"selectionStart"in A)A.selectionStart=ae,A.selectionEnd=Math.min(ce,A.value.length);else{var de=A.ownerDocument||document,le=de&&de.defaultView||window;if(le.getSelection){var oe=le.getSelection(),De=A.textContent.length,_e=Math.min(Y.start,De),et=Y.end===void 0?_e:Math.min(Y.end,De);!oe.extend&&_e>et&&(O=et,et=_e,_e=O);var ee=fg(A,_e),K=fg(A,et);if(ee&&K&&(oe.rangeCount!==1||oe.anchorNode!==ee.node||oe.anchorOffset!==ee.offset||oe.focusNode!==K.node||oe.focusOffset!==K.offset)){var ne=de.createRange();ne.setStart(ee.node,ee.offset),oe.removeAllRanges(),_e>et?(oe.addRange(ne),oe.extend(K.node,K.offset)):(ne.setEnd(K.node,K.offset),oe.addRange(ne))}}}}for(de=[],oe=A;oe=oe.parentNode;)oe.nodeType===1&&de.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<de.length;A++){var fe=de[A];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}Bs=!!Ef,Tf=Ef=null}finally{Fe=f,b.p=s,L.T=i}}e.current=n,Lt=2}}function Cy(){if(Lt===2){Lt=0;var e=Zr,n=gi,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=L.T,L.T=null;var s=b.p;b.p=2;var f=Fe;Fe|=4;try{ry(e,n.alternate,n)}finally{Fe=f,b.p=s,L.T=i}}Lt=3}}function Ry(){if(Lt===4||Lt===3){Lt=0,Re();var e=Zr,n=gi,i=vi,s=py;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Lt=5:(Lt=0,gi=Zr=null,_y(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Qr=null),Hn(i),n=n.stateNode,Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(Ae,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=L.T,f=b.p,b.p=2,L.T=null;try{for(var m=e.onRecoverableError,O=0;O<s.length;O++){var A=s[O];m(A.value,{componentStack:A.stack})}}finally{L.T=n,b.p=f}}(vi&3)!==0&&Rs(),Gn(e),f=e.pendingLanes,(i&4194090)!==0&&(f&42)!==0?e===cf?Cl++:(Cl=0,cf=e):Cl=0,Rl(0)}}function _y(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,ll(n)))}function Rs(e){return Ty(),Cy(),Ry(),jy()}function jy(){if(Lt!==5)return!1;var e=Zr,n=sf;sf=0;var i=Hn(vi),s=L.T,f=b.p;try{b.p=32>i?32:i,L.T=null,i=uf,uf=null;var m=Zr,O=vi;if(Lt=0,gi=Zr=null,vi=0,(Fe&6)!==0)throw Error(l(331));var A=Fe;if(Fe|=4,dy(m.current),uy(m,m.current,O,i),Fe=A,Rl(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(Ae,m)}catch{}return!0}finally{b.p=f,L.T=s,_y(e,n)}}function Ay(e,n,i){n=hn(i,n),n=Ic(e.stateNode,n,2),e=Ir(e,n,2),e!==null&&(qt(e,2),Gn(e))}function tt(e,n,i){if(e.tag===3)Ay(e,e,i);else for(;n!==null;){if(n.tag===3){Ay(n,e,i);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Qr===null||!Qr.has(s))){e=hn(i,e),i=Lv(2),s=Ir(n,i,2),s!==null&&(zv(i,s,n,e),qt(s,2),Gn(s));break}}n=n.return}}function pf(e,n,i){var s=e.pingCache;if(s===null){s=e.pingCache=new mT;var f=new Set;s.set(n,f)}else f=s.get(n),f===void 0&&(f=new Set,s.set(n,f));f.has(i)||(rf=!0,f.add(i),e=ST.bind(null,e,n,i),n.then(e,e))}function ST(e,n,i){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,rt===e&&(Ge&i)===i&&(mt===4||mt===3&&(Ge&62914560)===Ge&&300>be()-of?(Fe&2)===0&&yi(e,0):af|=i,mi===Ge&&(mi=0)),Gn(e)}function My(e,n){n===0&&(n=Ze()),e=ei(e,n),e!==null&&(qt(e,n),Gn(e))}function wT(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),My(e,i)}function xT(e,n){var i=0;switch(e.tag){case 13:var s=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(n),My(e,i)}function OT(e,n){return ge(e,n)}var _s=null,Si=null,mf=!1,js=!1,gf=!1,Ma=0;function Gn(e){e!==Si&&e.next===null&&(Si===null?_s=Si=e:Si=Si.next=e),js=!0,mf||(mf=!0,TT())}function Rl(e,n){if(!gf&&js){gf=!0;do for(var i=!1,s=_s;s!==null;){if(e!==0){var f=s.pendingLanes;if(f===0)var m=0;else{var O=s.suspendedLanes,A=s.pingedLanes;m=(1<<31-dt(42|e)+1)-1,m&=f&~(O&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,zy(s,m))}else m=Ge,m=ie(s,s===rt?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(m&3)===0||se(s,m)||(i=!0,zy(s,m));s=s.next}while(i);gf=!1}}function ET(){Ny()}function Ny(){js=mf=!1;var e=0;Ma!==0&&(DT()&&(e=Ma),Ma=0);for(var n=be(),i=null,s=_s;s!==null;){var f=s.next,m=Dy(s,n);m===0?(s.next=null,i===null?_s=f:i.next=f,f===null&&(Si=i)):(i=s,(e!==0||(m&3)!==0)&&(js=!0)),s=f}Rl(e)}function Dy(e,n){for(var i=e.suspendedLanes,s=e.pingedLanes,f=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var O=31-dt(m),A=1<<O,Y=f[O];Y===-1?((A&i)===0||(A&s)!==0)&&(f[O]=Ve(A,n)):Y<=n&&(e.expiredLanes|=A),m&=~A}if(n=rt,i=Ge,i=ie(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,i===0||e===n&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Se(s),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||se(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(s!==null&&Se(s),Hn(i)){case 2:case 8:i=Te;break;case 32:i=ke;break;case 268435456:i=ft;break;default:i=ke}return s=Ly.bind(null,e),i=ge(i,s),e.callbackPriority=n,e.callbackNode=i,n}return s!==null&&s!==null&&Se(s),e.callbackPriority=2,e.callbackNode=null,2}function Ly(e,n){if(Lt!==0&&Lt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Rs()&&e.callbackNode!==i)return null;var s=Ge;return s=ie(e,e===rt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(gy(e,s,n),Dy(e,be()),e.callbackNode!=null&&e.callbackNode===i?Ly.bind(null,e):null)}function zy(e,n){if(Rs())return null;gy(e,n,!0)}function TT(){zT(function(){(Fe&6)!==0?ge(Pe,ET):Ny()})}function vf(){return Ma===0&&(Ma=Xe()),Ma}function Py(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$o(""+e)}function Hy(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function CT(e,n,i,s,f){if(n==="submit"&&i&&i.stateNode===f){var m=Py((f[wt]||null).action),O=s.submitter;O&&(n=(n=O[wt]||null)?Py(n.formAction):O.getAttribute("formAction"),n!==null&&(m=n,O=null));var A=new Go("action","action",null,s,f);e.push({event:A,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Ma!==0){var Y=O?Hy(f,O):new FormData(f);Pc(i,{pending:!0,data:Y,method:f.method,action:m},null,Y)}}else typeof m=="function"&&(A.preventDefault(),Y=O?Hy(f,O):new FormData(f),Pc(i,{pending:!0,data:Y,method:f.method,action:m},m,Y))},currentTarget:f}]})}}for(var yf=0;yf<tc.length;yf++){var bf=tc[yf],RT=bf.toLowerCase(),_T=bf[0].toUpperCase()+bf.slice(1);Mn(RT,"on"+_T)}Mn(gg,"onAnimationEnd"),Mn(vg,"onAnimationIteration"),Mn(yg,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(VE,"onTransitionRun"),Mn(WE,"onTransitionStart"),Mn(YE,"onTransitionCancel"),Mn(bg,"onTransitionEnd"),ir("onMouseEnter",["mouseout","mouseover"]),ir("onMouseLeave",["mouseout","mouseover"]),ir("onPointerEnter",["pointerout","pointerover"]),ir("onPointerLeave",["pointerout","pointerover"]),ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ar("onBeforeInput",["compositionend","keypress","textInput","paste"]),ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _l="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_l));function ky(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var s=e[i],f=s.event;s=s.listeners;e:{var m=void 0;if(n)for(var O=s.length-1;0<=O;O--){var A=s[O],Y=A.instance,ae=A.currentTarget;if(A=A.listener,Y!==m&&f.isPropagationStopped())break e;m=A,f.currentTarget=ae;try{m(f)}catch(ce){gs(ce)}f.currentTarget=null,m=Y}else for(O=0;O<s.length;O++){if(A=s[O],Y=A.instance,ae=A.currentTarget,A=A.listener,Y!==m&&f.isPropagationStopped())break e;m=A,f.currentTarget=ae;try{m(f)}catch(ce){gs(ce)}f.currentTarget=null,m=Y}}}}function Ue(e,n){var i=n[Dr];i===void 0&&(i=n[Dr]=new Set);var s=e+"__bubble";i.has(s)||(By(n,e,2,!1),i.add(s))}function Sf(e,n,i){var s=0;n&&(s|=4),By(i,e,s,n)}var As="_reactListening"+Math.random().toString(36).slice(2);function wf(e){if(!e[As]){e[As]=!0,rr.forEach(function(i){i!=="selectionchange"&&(jT.has(i)||Sf(i,!1,e),Sf(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[As]||(n[As]=!0,Sf("selectionchange",!1,n))}}function By(e,n,i,s){switch(ub(n)){case 2:var f=nC;break;case 8:f=rC;break;default:f=zf}i=f.bind(null,n,i,e),f=void 0,!qu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),s?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function xf(e,n,i,s,f){var m=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var O=s.tag;if(O===3||O===4){var A=s.stateNode.containerInfo;if(A===f)break;if(O===4)for(O=s.return;O!==null;){var Y=O.tag;if((Y===3||Y===4)&&O.stateNode.containerInfo===f)return;O=O.return}for(;A!==null;){if(O=nr(A),O===null)return;if(Y=O.tag,Y===5||Y===6||Y===26||Y===27){s=m=O;continue e}A=A.parentNode}}s=s.return}Wm(function(){var ae=m,ce=$u(i),de=[];e:{var le=Sg.get(e);if(le!==void 0){var oe=Go,De=e;switch(e){case"keypress":if(qo(i)===0)break e;case"keydown":case"keyup":oe=OE;break;case"focusin":De="focus",oe=Wu;break;case"focusout":De="blur",oe=Wu;break;case"beforeblur":case"afterblur":oe=Wu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=Fm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=fE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=CE;break;case gg:case vg:case yg:oe=pE;break;case bg:oe=_E;break;case"scroll":case"scrollend":oe=uE;break;case"wheel":oe=AE;break;case"copy":case"cut":case"paste":oe=gE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=Zm;break;case"toggle":case"beforetoggle":oe=NE}var _e=(n&4)!==0,et=!_e&&(e==="scroll"||e==="scrollend"),ee=_e?le!==null?le+"Capture":null:le;_e=[];for(var K=ae,ne;K!==null;){var fe=K;if(ne=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||ne===null||ee===null||(fe=Yi(K,ee),fe!=null&&_e.push(jl(K,fe,ne))),et)break;K=K.return}0<_e.length&&(le=new oe(le,De,null,i,ce),de.push({event:le,listeners:_e}))}}if((n&7)===0){e:{if(le=e==="mouseover"||e==="pointerover",oe=e==="mouseout"||e==="pointerout",le&&i!==Bu&&(De=i.relatedTarget||i.fromElement)&&(nr(De)||De[kn]))break e;if((oe||le)&&(le=ce.window===ce?ce:(le=ce.ownerDocument)?le.defaultView||le.parentWindow:window,oe?(De=i.relatedTarget||i.toElement,oe=ae,De=De?nr(De):null,De!==null&&(et=u(De),_e=De.tag,De!==et||_e!==5&&_e!==27&&_e!==6)&&(De=null)):(oe=null,De=ae),oe!==De)){if(_e=Fm,fe="onMouseLeave",ee="onMouseEnter",K="mouse",(e==="pointerout"||e==="pointerover")&&(_e=Zm,fe="onPointerLeave",ee="onPointerEnter",K="pointer"),et=oe==null?le:zr(oe),ne=De==null?le:zr(De),le=new _e(fe,K+"leave",oe,i,ce),le.target=et,le.relatedTarget=ne,fe=null,nr(ce)===ae&&(_e=new _e(ee,K+"enter",De,i,ce),_e.target=ne,_e.relatedTarget=et,fe=_e),et=fe,oe&&De)t:{for(_e=oe,ee=De,K=0,ne=_e;ne;ne=wi(ne))K++;for(ne=0,fe=ee;fe;fe=wi(fe))ne++;for(;0<K-ne;)_e=wi(_e),K--;for(;0<ne-K;)ee=wi(ee),ne--;for(;K--;){if(_e===ee||ee!==null&&_e===ee.alternate)break t;_e=wi(_e),ee=wi(ee)}_e=null}else _e=null;oe!==null&&$y(de,le,oe,_e,!1),De!==null&&et!==null&&$y(de,et,De,_e,!0)}}e:{if(le=ae?zr(ae):window,oe=le.nodeName&&le.nodeName.toLowerCase(),oe==="select"||oe==="input"&&le.type==="file")var xe=ig;else if(rg(le))if(lg)xe=qE;else{xe=$E;var Ie=BE}else oe=le.nodeName,!oe||oe.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?ae&&ku(ae.elementType)&&(xe=ig):xe=IE;if(xe&&(xe=xe(e,ae))){ag(de,xe,i,ce);break e}Ie&&Ie(e,le,ae),e==="focusout"&&ae&&le.type==="number"&&ae.memoizedProps.value!=null&&Hu(le,"number",le.value)}switch(Ie=ae?zr(ae):window,e){case"focusin":(rg(Ie)||Ie.contentEditable==="true")&&(Za=Ie,Ku=ae,tl=null);break;case"focusout":tl=Ku=Za=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,pg(de,i,ce);break;case"selectionchange":if(GE)break;case"keydown":case"keyup":pg(de,i,ce)}var Ee;if(Xu)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Qa?tg(e,i)&&(Me="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Me="onCompositionStart");Me&&(Km&&i.locale!=="ko"&&(Qa||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Qa&&(Ee=Ym()):(Hr=ce,Uu="value"in Hr?Hr.value:Hr.textContent,Qa=!0)),Ie=Ms(ae,Me),0<Ie.length&&(Me=new Qm(Me,e,null,i,ce),de.push({event:Me,listeners:Ie}),Ee?Me.data=Ee:(Ee=ng(i),Ee!==null&&(Me.data=Ee)))),(Ee=LE?zE(e,i):PE(e,i))&&(Me=Ms(ae,"onBeforeInput"),0<Me.length&&(Ie=new Qm("onBeforeInput","beforeinput",null,i,ce),de.push({event:Ie,listeners:Me}),Ie.data=Ee)),CT(de,e,ae,i,ce)}ky(de,n)})}function jl(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Ms(e,n){for(var i=n+"Capture",s=[];e!==null;){var f=e,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=Yi(e,i),f!=null&&s.unshift(jl(e,f,m)),f=Yi(e,n),f!=null&&s.push(jl(e,f,m))),e.tag===3)return s;e=e.return}return[]}function wi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $y(e,n,i,s,f){for(var m=n._reactName,O=[];i!==null&&i!==s;){var A=i,Y=A.alternate,ae=A.stateNode;if(A=A.tag,Y!==null&&Y===s)break;A!==5&&A!==26&&A!==27||ae===null||(Y=ae,f?(ae=Yi(i,m),ae!=null&&O.unshift(jl(i,ae,Y))):f||(ae=Yi(i,m),ae!=null&&O.push(jl(i,ae,Y)))),i=i.return}O.length!==0&&e.push({event:n,listeners:O})}var AT=/\r\n?/g,MT=/\u0000|\uFFFD/g;function Iy(e){return(typeof e=="string"?e:""+e).replace(AT,`
49
+ `).replace(MT,"")}function qy(e,n){return n=Iy(n),Iy(e)===n}function Ns(){}function Je(e,n,i,s,f,m){switch(i){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Ya(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Ya(e,""+s);break;case"className":Ho(e,"class",s);break;case"tabIndex":Ho(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Ho(e,i,s);break;case"style":Gm(e,s,m);break;case"data":if(n!=="object"){Ho(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}s=$o(""+s),e.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(n!=="input"&&Je(e,n,"name",f.name,f,null),Je(e,n,"formEncType",f.formEncType,f,null),Je(e,n,"formMethod",f.formMethod,f,null),Je(e,n,"formTarget",f.formTarget,f,null)):(Je(e,n,"encType",f.encType,f,null),Je(e,n,"method",f.method,f,null),Je(e,n,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}s=$o(""+s),e.setAttribute(i,s);break;case"onClick":s!=null&&(e.onclick=Ns);break;case"onScroll":s!=null&&Ue("scroll",e);break;case"onScrollEnd":s!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}i=$o(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""+s):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":s===!0?e.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,s):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(i,s):e.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(i):e.setAttribute(i,s);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),Po(e,"popover",s);break;case"xlinkActuate":lr(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":lr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":lr(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":lr(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":lr(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":lr(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":lr(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":lr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":lr(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Po(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=oE.get(i)||i,Po(e,i,s))}}function Of(e,n,i,s,f,m){switch(i){case"style":Gm(e,s,m);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"children":typeof s=="string"?Ya(e,s):(typeof s=="number"||typeof s=="bigint")&&Ya(e,""+s);break;case"onScroll":s!=null&&Ue("scroll",e);break;case"onScrollEnd":s!=null&&Ue("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Ns);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ma.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),m=e[wt]||null,m=m!=null?m[i]:null,typeof m=="function"&&e.removeEventListener(n,m,f),typeof s=="function")){typeof m!="function"&&m!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,s,f);break e}i in e?e[i]=s:s===!0?e.setAttribute(i,""):Po(e,i,s)}}}function zt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",e),Ue("load",e);var s=!1,f=!1,m;for(m in i)if(i.hasOwnProperty(m)){var O=i[m];if(O!=null)switch(m){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Je(e,n,m,O,i,null)}}f&&Je(e,n,"srcSet",i.srcSet,i,null),s&&Je(e,n,"src",i.src,i,null);return;case"input":Ue("invalid",e);var A=m=O=f=null,Y=null,ae=null;for(s in i)if(i.hasOwnProperty(s)){var ce=i[s];if(ce!=null)switch(s){case"name":f=ce;break;case"type":O=ce;break;case"checked":Y=ce;break;case"defaultChecked":ae=ce;break;case"value":m=ce;break;case"defaultValue":A=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(l(137,n));break;default:Je(e,n,s,ce,i,null)}}$m(e,m,A,Y,ae,O,f,!1),ko(e);return;case"select":Ue("invalid",e),s=O=m=null;for(f in i)if(i.hasOwnProperty(f)&&(A=i[f],A!=null))switch(f){case"value":m=A;break;case"defaultValue":O=A;break;case"multiple":s=A;default:Je(e,n,f,A,i,null)}n=m,i=O,e.multiple=!!s,n!=null?Wa(e,!!s,n,!1):i!=null&&Wa(e,!!s,i,!0);return;case"textarea":Ue("invalid",e),m=f=s=null;for(O in i)if(i.hasOwnProperty(O)&&(A=i[O],A!=null))switch(O){case"value":s=A;break;case"defaultValue":f=A;break;case"children":m=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(l(91));break;default:Je(e,n,O,A,i,null)}qm(e,s,f,m),ko(e);return;case"option":for(Y in i)if(i.hasOwnProperty(Y)&&(s=i[Y],s!=null))switch(Y){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Je(e,n,Y,s,i,null)}return;case"dialog":Ue("beforetoggle",e),Ue("toggle",e),Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(s=0;s<_l.length;s++)Ue(_l[s],e);break;case"image":Ue("error",e),Ue("load",e);break;case"details":Ue("toggle",e);break;case"embed":case"source":case"link":Ue("error",e),Ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ae in i)if(i.hasOwnProperty(ae)&&(s=i[ae],s!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Je(e,n,ae,s,i,null)}return;default:if(ku(n)){for(ce in i)i.hasOwnProperty(ce)&&(s=i[ce],s!==void 0&&Of(e,n,ce,s,i,void 0));return}}for(A in i)i.hasOwnProperty(A)&&(s=i[A],s!=null&&Je(e,n,A,s,i,null))}function NT(e,n,i,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,O=null,A=null,Y=null,ae=null,ce=null;for(oe in i){var de=i[oe];if(i.hasOwnProperty(oe)&&de!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":Y=de;default:s.hasOwnProperty(oe)||Je(e,n,oe,null,s,de)}}for(var le in s){var oe=s[le];if(de=i[le],s.hasOwnProperty(le)&&(oe!=null||de!=null))switch(le){case"type":m=oe;break;case"name":f=oe;break;case"checked":ae=oe;break;case"defaultChecked":ce=oe;break;case"value":O=oe;break;case"defaultValue":A=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(l(137,n));break;default:oe!==de&&Je(e,n,le,oe,s,de)}}Pu(e,O,A,Y,ae,ce,m,f);return;case"select":oe=O=A=le=null;for(m in i)if(Y=i[m],i.hasOwnProperty(m)&&Y!=null)switch(m){case"value":break;case"multiple":oe=Y;default:s.hasOwnProperty(m)||Je(e,n,m,null,s,Y)}for(f in s)if(m=s[f],Y=i[f],s.hasOwnProperty(f)&&(m!=null||Y!=null))switch(f){case"value":le=m;break;case"defaultValue":A=m;break;case"multiple":O=m;default:m!==Y&&Je(e,n,f,m,s,Y)}n=A,i=O,s=oe,le!=null?Wa(e,!!i,le,!1):!!s!=!!i&&(n!=null?Wa(e,!!i,n,!0):Wa(e,!!i,i?[]:"",!1));return;case"textarea":oe=le=null;for(A in i)if(f=i[A],i.hasOwnProperty(A)&&f!=null&&!s.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:Je(e,n,A,null,s,f)}for(O in s)if(f=s[O],m=i[O],s.hasOwnProperty(O)&&(f!=null||m!=null))switch(O){case"value":le=f;break;case"defaultValue":oe=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(l(91));break;default:f!==m&&Je(e,n,O,f,s,m)}Im(e,le,oe);return;case"option":for(var De in i)if(le=i[De],i.hasOwnProperty(De)&&le!=null&&!s.hasOwnProperty(De))switch(De){case"selected":e.selected=!1;break;default:Je(e,n,De,null,s,le)}for(Y in s)if(le=s[Y],oe=i[Y],s.hasOwnProperty(Y)&&le!==oe&&(le!=null||oe!=null))switch(Y){case"selected":e.selected=le&&typeof le!="function"&&typeof le!="symbol";break;default:Je(e,n,Y,le,s,oe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _e in i)le=i[_e],i.hasOwnProperty(_e)&&le!=null&&!s.hasOwnProperty(_e)&&Je(e,n,_e,null,s,le);for(ae in s)if(le=s[ae],oe=i[ae],s.hasOwnProperty(ae)&&le!==oe&&(le!=null||oe!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(l(137,n));break;default:Je(e,n,ae,le,s,oe)}return;default:if(ku(n)){for(var et in i)le=i[et],i.hasOwnProperty(et)&&le!==void 0&&!s.hasOwnProperty(et)&&Of(e,n,et,void 0,s,le);for(ce in s)le=s[ce],oe=i[ce],!s.hasOwnProperty(ce)||le===oe||le===void 0&&oe===void 0||Of(e,n,ce,le,s,oe);return}}for(var ee in i)le=i[ee],i.hasOwnProperty(ee)&&le!=null&&!s.hasOwnProperty(ee)&&Je(e,n,ee,null,s,le);for(de in s)le=s[de],oe=i[de],!s.hasOwnProperty(de)||le===oe||le==null&&oe==null||Je(e,n,de,le,s,oe)}var Ef=null,Tf=null;function Ds(e){return e.nodeType===9?e:e.ownerDocument}function Uy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gy(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Cf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Rf=null;function DT(){var e=window.event;return e&&e.type==="popstate"?e===Rf?!1:(Rf=e,!0):(Rf=null,!1)}var Vy=typeof setTimeout=="function"?setTimeout:void 0,LT=typeof clearTimeout=="function"?clearTimeout:void 0,Wy=typeof Promise=="function"?Promise:void 0,zT=typeof queueMicrotask=="function"?queueMicrotask:typeof Wy<"u"?function(e){return Wy.resolve(null).then(e).catch(PT)}:Vy;function PT(e){setTimeout(function(){throw e})}function Jr(e){return e==="head"}function Yy(e,n){var i=n,s=0,f=0;do{var m=i.nextSibling;if(e.removeChild(i),m&&m.nodeType===8)if(i=m.data,i==="/$"){if(0<s&&8>s){i=s;var O=e.ownerDocument;if(i&1&&Al(O.documentElement),i&2&&Al(O.body),i&4)for(i=O.head,Al(i),O=i.firstChild;O;){var A=O.nextSibling,Y=O.nodeName;O[Lr]||Y==="SCRIPT"||Y==="STYLE"||Y==="LINK"&&O.rel.toLowerCase()==="stylesheet"||i.removeChild(O),O=A}}if(f===0){e.removeChild(m),kl(n);return}f--}else i==="$"||i==="$?"||i==="$!"?f++:s=i.charCodeAt(0)-48;else s=0;i=m}while(i);kl(n)}function _f(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":_f(i),pa(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function HT(e,n,i,s){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Lr])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=Dn(e.nextSibling),e===null)break}return null}function kT(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Dn(e.nextSibling),e===null))return null;return e}function jf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function BT(e,n){var i=e.ownerDocument;if(e.data!=="$?"||i.readyState==="complete")n();else{var s=function(){n(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Dn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var Af=null;function Xy(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return e;n--}else i==="/$"&&n++}e=e.previousSibling}return null}function Fy(e,n,i){switch(n=Ds(i),e){case"html":if(e=n.documentElement,!e)throw Error(l(452));return e;case"head":if(e=n.head,!e)throw Error(l(453));return e;case"body":if(e=n.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Al(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);pa(e)}var bn=new Map,Qy=new Set;function Ls(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sr=b.d;b.d={f:$T,r:IT,D:qT,C:UT,L:GT,m:VT,X:YT,S:WT,M:XT};function $T(){var e=Sr.f(),n=Ts();return e||n}function IT(e){var n=Bn(e);n!==null&&n.tag===5&&n.type==="form"?gv(n):Sr.r(e)}var xi=typeof document>"u"?null:document;function Zy(e,n,i){var s=xi;if(s&&typeof n=="string"&&n){var f=dn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Qy.has(f)||(Qy.add(f),e={rel:e,crossOrigin:i,href:n},s.querySelector(f)===null&&(n=s.createElement("link"),zt(n,"link",e),ht(n),s.head.appendChild(n)))}}function qT(e){Sr.D(e),Zy("dns-prefetch",e,null)}function UT(e,n){Sr.C(e,n),Zy("preconnect",e,n)}function GT(e,n,i){Sr.L(e,n,i);var s=xi;if(s&&e&&n){var f='link[rel="preload"][as="'+dn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+dn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+dn(i.imageSizes)+'"]')):f+='[href="'+dn(e)+'"]';var m=f;switch(n){case"style":m=Oi(e);break;case"script":m=Ei(e)}bn.has(m)||(e=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),bn.set(m,e),s.querySelector(f)!==null||n==="style"&&s.querySelector(Ml(m))||n==="script"&&s.querySelector(Nl(m))||(n=s.createElement("link"),zt(n,"link",e),ht(n),s.head.appendChild(n)))}}function VT(e,n){Sr.m(e,n);var i=xi;if(i&&e){var s=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+dn(s)+'"][href="'+dn(e)+'"]',m=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ei(e)}if(!bn.has(m)&&(e=g({rel:"modulepreload",href:e},n),bn.set(m,e),i.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Nl(m)))return}s=i.createElement("link"),zt(s,"link",e),ht(s),i.head.appendChild(s)}}}function WT(e,n,i){Sr.S(e,n,i);var s=xi;if(s&&e){var f=Pr(s).hoistableStyles,m=Oi(e);n=n||"default";var O=f.get(m);if(!O){var A={loading:0,preload:null};if(O=s.querySelector(Ml(m)))A.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},i),(i=bn.get(m))&&Mf(e,i);var Y=O=s.createElement("link");ht(Y),zt(Y,"link",e),Y._p=new Promise(function(ae,ce){Y.onload=ae,Y.onerror=ce}),Y.addEventListener("load",function(){A.loading|=1}),Y.addEventListener("error",function(){A.loading|=2}),A.loading|=4,zs(O,n,s)}O={type:"stylesheet",instance:O,count:1,state:A},f.set(m,O)}}}function YT(e,n){Sr.X(e,n);var i=xi;if(i&&e){var s=Pr(i).hoistableScripts,f=Ei(e),m=s.get(f);m||(m=i.querySelector(Nl(f)),m||(e=g({src:e,async:!0},n),(n=bn.get(f))&&Nf(e,n),m=i.createElement("script"),ht(m),zt(m,"link",e),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(f,m))}}function XT(e,n){Sr.M(e,n);var i=xi;if(i&&e){var s=Pr(i).hoistableScripts,f=Ei(e),m=s.get(f);m||(m=i.querySelector(Nl(f)),m||(e=g({src:e,async:!0,type:"module"},n),(n=bn.get(f))&&Nf(e,n),m=i.createElement("script"),ht(m),zt(m,"link",e),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(f,m))}}function Ky(e,n,i,s){var f=(f=Z.current)?Ls(f):null;if(!f)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Oi(i.href),i=Pr(f).hoistableStyles,s=i.get(n),s||(s={type:"style",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Oi(i.href);var m=Pr(f).hoistableStyles,O=m.get(e);if(O||(f=f.ownerDocument||f,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,O),(m=f.querySelector(Ml(e)))&&!m._p&&(O.instance=m,O.state.loading=5),bn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},bn.set(e,i),m||FT(f,e,i,O.state))),n&&s===null)throw Error(l(528,""));return O}if(n&&s!==null)throw Error(l(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ei(i),i=Pr(f).hoistableScripts,s=i.get(n),s||(s={type:"script",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Oi(e){return'href="'+dn(e)+'"'}function Ml(e){return'link[rel="stylesheet"]['+e+"]"}function Jy(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function FT(e,n,i,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),zt(n,"link",i),ht(n),e.head.appendChild(n))}function Ei(e){return'[src="'+dn(e)+'"]'}function Nl(e){return"script[async]"+e}function eb(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+dn(i.href)+'"]');if(s)return n.instance=s,ht(s),s;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),ht(s),zt(s,"style",f),zs(s,i.precedence,e),n.instance=s;case"stylesheet":f=Oi(i.href);var m=e.querySelector(Ml(f));if(m)return n.state.loading|=4,n.instance=m,ht(m),m;s=Jy(i),(f=bn.get(f))&&Mf(s,f),m=(e.ownerDocument||e).createElement("link"),ht(m);var O=m;return O._p=new Promise(function(A,Y){O.onload=A,O.onerror=Y}),zt(m,"link",s),n.state.loading|=4,zs(m,i.precedence,e),n.instance=m;case"script":return m=Ei(i.src),(f=e.querySelector(Nl(m)))?(n.instance=f,ht(f),f):(s=i,(f=bn.get(m))&&(s=g({},i),Nf(s,f)),e=e.ownerDocument||e,f=e.createElement("script"),ht(f),zt(f,"link",s),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,zs(s,i.precedence,e));return n.instance}function zs(e,n,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,m=f,O=0;O<s.length;O++){var A=s[O];if(A.dataset.precedence===n)m=A;else if(m!==f)break}m?m.parentNode.insertBefore(e,m.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function Mf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Nf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Ps=null;function tb(e,n,i){if(Ps===null){var s=new Map,f=Ps=new Map;f.set(i,s)}else f=Ps,s=f.get(i),s||(s=new Map,f.set(i,s));if(s.has(e))return s;for(s.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var m=i[f];if(!(m[Lr]||m[Et]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var O=m.getAttribute(n)||"";O=e+O;var A=s.get(O);A?A.push(m):s.set(O,[m])}}return s}function nb(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function QT(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function rb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Dl=null;function ZT(){}function KT(e,n,i){if(Dl===null)throw Error(l(475));var s=Dl;if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var f=Oi(i.href),m=e.querySelector(Ml(f));if(m){e=m._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=Hs.bind(s),e.then(s,s)),n.state.loading|=4,n.instance=m,ht(m);return}m=e.ownerDocument||e,i=Jy(i),(f=bn.get(f))&&Mf(i,f),m=m.createElement("link"),ht(m);var O=m;O._p=new Promise(function(A,Y){O.onload=A,O.onerror=Y}),zt(m,"link",i),n.instance=m}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(s.count++,n=Hs.bind(s),e.addEventListener("load",n),e.addEventListener("error",n))}}function JT(){if(Dl===null)throw Error(l(475));var e=Dl;return e.stylesheets&&e.count===0&&Df(e,e.stylesheets),0<e.count?function(n){var i=setTimeout(function(){if(e.stylesheets&&Df(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i)}}:null}function Hs(){if(this.count--,this.count===0){if(this.stylesheets)Df(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ks=null;function Df(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ks=new Map,n.forEach(eC,e),ks=null,Hs.call(e))}function eC(e,n){if(!(n.state.loading&4)){var i=ks.get(e);if(i)var s=i.get(null);else{i=new Map,ks.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var O=f[m];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(i.set(O.dataset.precedence,O),s=O)}s&&i.set(null,s)}f=n.instance,O=f.getAttribute("data-precedence"),m=i.get(O)||s,m===s&&i.set(null,f),i.set(O,f),this.count++,s=Hs.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),m?m.parentNode.insertBefore(f,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var Ll={$$typeof:I,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function tC(e,n,i,s,f,m,O,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ze(0),this.hiddenUpdates=ze(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function ab(e,n,i,s,f,m,O,A,Y,ae,ce,de){return e=new tC(e,n,i,O,A,Y,ae,de),n=1,m===!0&&(n|=24),m=en(3,null,null,n),e.current=m,m.stateNode=e,n=hc(),n.refCount++,e.pooledCache=n,n.refCount++,m.memoizedState={element:s,isDehydrated:i,cache:n},vc(m),e}function ib(e){return e?(e=ti,e):ti}function lb(e,n,i,s,f,m){f=ib(f),s.context===null?s.context=f:s.pendingContext=f,s=$r(n),s.payload={element:i},m=m===void 0?null:m,m!==null&&(s.callback=m),i=Ir(e,s,n),i!==null&&(ln(i,e,n),cl(i,e,n))}function ob(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function Lf(e,n){ob(e,n),(e=e.alternate)&&ob(e,n)}function sb(e){if(e.tag===13){var n=ei(e,67108864);n!==null&&ln(n,e,67108864),Lf(e,67108864)}}var Bs=!0;function nC(e,n,i,s){var f=L.T;L.T=null;var m=b.p;try{b.p=2,zf(e,n,i,s)}finally{b.p=m,L.T=f}}function rC(e,n,i,s){var f=L.T;L.T=null;var m=b.p;try{b.p=8,zf(e,n,i,s)}finally{b.p=m,L.T=f}}function zf(e,n,i,s){if(Bs){var f=Pf(s);if(f===null)xf(e,n,s,$s,i),cb(e,s);else if(iC(f,e,n,i,s))s.stopPropagation();else if(cb(e,s),n&4&&-1<aC.indexOf(e)){for(;f!==null;){var m=Bn(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var O=cn(m.pendingLanes);if(O!==0){var A=m;for(A.pendingLanes|=2,A.entangledLanes|=2;O;){var Y=1<<31-dt(O);A.entanglements[1]|=Y,O&=~Y}Gn(m),(Fe&6)===0&&(Os=be()+500,Rl(0))}}break;case 13:A=ei(m,2),A!==null&&ln(A,m,2),Ts(),Lf(m,2)}if(m=Pf(s),m===null&&xf(e,n,s,$s,i),m===f)break;f=m}f!==null&&s.stopPropagation()}else xf(e,n,s,null,i)}}function Pf(e){return e=$u(e),Hf(e)}var $s=null;function Hf(e){if($s=null,e=nr(e),e!==null){var n=u(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return $s=e,null}function ub(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Le()){case Pe:return 2;case Te:return 8;case ke:case ot:return 32;case ft:return 268435456;default:return 32}default:return 32}}var kf=!1,ea=null,ta=null,na=null,zl=new Map,Pl=new Map,ra=[],aC="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".split(" ");function cb(e,n){switch(e){case"focusin":case"focusout":ea=null;break;case"dragenter":case"dragleave":ta=null;break;case"mouseover":case"mouseout":na=null;break;case"pointerover":case"pointerout":zl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(n.pointerId)}}function Hl(e,n,i,s,f,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:i,eventSystemFlags:s,nativeEvent:m,targetContainers:[f]},n!==null&&(n=Bn(n),n!==null&&sb(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function iC(e,n,i,s,f){switch(n){case"focusin":return ea=Hl(ea,e,n,i,s,f),!0;case"dragenter":return ta=Hl(ta,e,n,i,s,f),!0;case"mouseover":return na=Hl(na,e,n,i,s,f),!0;case"pointerover":var m=f.pointerId;return zl.set(m,Hl(zl.get(m)||null,e,n,i,s,f)),!0;case"gotpointercapture":return m=f.pointerId,Pl.set(m,Hl(Pl.get(m)||null,e,n,i,s,f)),!0}return!1}function fb(e){var n=nr(e.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,zo(e.priority,function(){if(i.tag===13){var s=an();s=ha(s);var f=ei(i,s);f!==null&&ln(f,i,s),Lf(i,s)}});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Is(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=Pf(e.nativeEvent);if(i===null){i=e.nativeEvent;var s=new i.constructor(i.type,i);Bu=s,i.target.dispatchEvent(s),Bu=null}else return n=Bn(i),n!==null&&sb(n),e.blockedOn=i,!1;n.shift()}return!0}function db(e,n,i){Is(e)&&i.delete(n)}function lC(){kf=!1,ea!==null&&Is(ea)&&(ea=null),ta!==null&&Is(ta)&&(ta=null),na!==null&&Is(na)&&(na=null),zl.forEach(db),Pl.forEach(db)}function qs(e,n){e.blockedOn===n&&(e.blockedOn=null,kf||(kf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,lC)))}var Us=null;function hb(e){Us!==e&&(Us=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Us===e&&(Us=null);for(var n=0;n<e.length;n+=3){var i=e[n],s=e[n+1],f=e[n+2];if(typeof s!="function"){if(Hf(s||i)===null)continue;break}var m=Bn(i);m!==null&&(e.splice(n,3),n-=3,Pc(m,{pending:!0,data:f,method:i.method,action:s},s,f))}}))}function kl(e){function n(Y){return qs(Y,e)}ea!==null&&qs(ea,e),ta!==null&&qs(ta,e),na!==null&&qs(na,e),zl.forEach(n),Pl.forEach(n);for(var i=0;i<ra.length;i++){var s=ra[i];s.blockedOn===e&&(s.blockedOn=null)}for(;0<ra.length&&(i=ra[0],i.blockedOn===null);)fb(i),i.blockedOn===null&&ra.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var f=i[s],m=i[s+1],O=f[wt]||null;if(typeof m=="function")O||hb(i);else if(O){var A=null;if(m&&m.hasAttribute("formAction")){if(f=m,O=m[wt]||null)A=O.formAction;else if(Hf(f)!==null)continue}else A=O.action;typeof A=="function"?i[s+1]=A:(i.splice(s,3),s-=3),hb(i)}}}function Bf(e){this._internalRoot=e}Gs.prototype.render=Bf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(l(409));var i=n.current,s=an();lb(i,s,e,n,null,null)},Gs.prototype.unmount=Bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;lb(e.current,2,null,e,null,null),Ts(),n[kn]=null}};function Gs(e){this._internalRoot=e}Gs.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ut();e={blockedOn:null,target:e,priority:n};for(var i=0;i<ra.length&&n!==0&&n<ra[i].priority;i++);ra.splice(i,0,e),i===0&&fb(e)}};var pb=t.version;if(pb!=="19.1.0")throw Error(l(527,pb,"19.1.0"));b.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=h(n),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var oC={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vs.isDisabled&&Vs.supportsFiber)try{Ae=Vs.inject(oC),Be=Vs}catch{}}return $l.createRoot=function(e,n){if(!o(e))throw Error(l(299));var i=!1,s="",f=Av,m=Mv,O=Nv,A=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(O=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(A=n.unstable_transitionCallbacks)),n=ab(e,1,!1,null,null,i,s,f,m,O,A,null),e[kn]=n.current,wf(e),new Bf(n)},$l.hydrateRoot=function(e,n,i){if(!o(e))throw Error(l(299));var s=!1,f="",m=Av,O=Mv,A=Nv,Y=null,ae=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(O=i.onCaughtError),i.onRecoverableError!==void 0&&(A=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(Y=i.unstable_transitionCallbacks),i.formState!==void 0&&(ae=i.formState)),n=ab(e,1,!0,n,i??null,s,f,m,O,A,Y,ae),n.context=ib(null),i=n.current,s=an(),s=ha(s),f=$r(s),f.callback=null,Ir(i,f,s),i=s,n.current.lanes=i,qt(n,i),Gn(n),e[kn]=n.current,wf(e),new Gs(n)},$l.version="19.1.0",$l}var Tb;function gC(){if(Tb)return qf.exports;Tb=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),qf.exports=mC(),qf.exports}var vC=gC();const yC=Jn(vC);var w=Cn();const Ft=Jn(w);/**
50
50
  * react-router v7.12.0
51
51
  *
52
52
  * Copyright (c) Remix Software Inc.
@@ -55,17 +55,17 @@ Error generating stack: `+i.message+`
55
55
  * LICENSE.md file in the root directory of this source tree.
56
56
  *
57
57
  * @license MIT
58
- */var Up=(r=>(r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE",r))(Up||{}),Cb="popstate";function bC(r={}){function t(l,o){let{pathname:u,search:c,hash:d}=l.location;return wp("",{pathname:u,search:c,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(l,o){return typeof o=="string"?o:io(o)}return wC(t,a,null,r)}function ct(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}function xn(r,t){if(!r){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function SC(){return Math.random().toString(36).substring(2,10)}function Rb(r,t){return{usr:r.state,key:r.key,idx:t}}function wp(r,t,a=null,l){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof t=="string"?Di(t):t,state:a,key:t&&t.key||l||SC()}}function io({pathname:r="/",search:t="",hash:a=""}){return t&&t!=="?"&&(r+=t.charAt(0)==="?"?t:"?"+t),a&&a!=="#"&&(r+=a.charAt(0)==="#"?a:"#"+a),r}function Di(r){let t={};if(r){let a=r.indexOf("#");a>=0&&(t.hash=r.substring(a),r=r.substring(0,a));let l=r.indexOf("?");l>=0&&(t.search=r.substring(l),r=r.substring(0,l)),r&&(t.pathname=r)}return t}function wC(r,t,a,l={}){let{window:o=document.defaultView,v5Compat:u=!1}=l,c=o.history,d="POP",h=null,p=m();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function m(){return(c.state||{idx:null}).idx}function y(){d="POP";let z=m(),$=z==null?null:z-p;p=z,h&&h({action:d,location:_.location,delta:$})}function x(z,$){d="PUSH";let V=wp(_.location,z,$);p=m()+1;let I=Rb(V,p),Q=_.createHref(V);try{c.pushState(I,"",Q)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;o.location.assign(Q)}u&&h&&h({action:d,location:_.location,delta:1})}function T(z,$){d="REPLACE";let V=wp(_.location,z,$);p=m();let I=Rb(V,p),Q=_.createHref(V);c.replaceState(I,"",Q),u&&h&&h({action:d,location:_.location,delta:0})}function N(z){return xC(z)}let _={get action(){return d},get location(){return r(o,c)},listen(z){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(Cb,y),h=z,()=>{o.removeEventListener(Cb,y),h=null}},createHref(z){return t(o,z)},createURL:N,encodeLocation(z){let $=N(z);return{pathname:$.pathname,search:$.search,hash:$.hash}},push:x,replace:T,go(z){return c.go(z)}};return _}function xC(r,t=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),ct(a,"No window.location.(origin|href) available to create URL");let l=typeof r=="string"?r:io(r);return l=l.replace(/ $/,"%20"),!t&&l.startsWith("//")&&(l=a+l),new URL(l,a)}function F1(r,t,a="/"){return OC(r,t,a,!1)}function OC(r,t,a,l){let o=typeof t=="string"?Di(t):t,u=Cr(o.pathname||"/",a);if(u==null)return null;let c=Q1(r);EC(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let p=zC(u);d=DC(c[h],p,l)}return d}function Q1(r,t=[],a=[],l="",o=!1){let u=(c,d,h=o,p)=>{let m={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(l)&&h)return;ct(m.relativePath.startsWith(l),`Absolute route path "${m.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(l.length)}let y=Er([l,m.relativePath]),x=a.concat(m);c.children&&c.children.length>0&&(ct(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Q1(c.children,t,x,y,h)),!(c.path==null&&!c.index)&&t.push({path:y,score:MC(y,c.index),routesMeta:x})};return r.forEach((c,d)=>{var h;if(c.path===""||!((h=c.path)!=null&&h.includes("?")))u(c,d);else for(let p of Z1(c.path))u(c,d,!0,p)}),t}function Z1(r){let t=r.split("/");if(t.length===0)return[];let[a,...l]=t,o=a.endsWith("?"),u=a.replace(/\?$/,"");if(l.length===0)return o?[u,""]:[u];let c=Z1(l.join("/")),d=[];return d.push(...c.map(h=>h===""?u:[u,h].join("/"))),o&&d.push(...c),d.map(h=>r.startsWith("/")&&h===""?"/":h)}function EC(r){r.sort((t,a)=>t.score!==a.score?a.score-t.score:NC(t.routesMeta.map(l=>l.childrenIndex),a.routesMeta.map(l=>l.childrenIndex)))}var TC=/^:[\w-]+$/,CC=3,RC=2,_C=1,jC=10,AC=-2,_b=r=>r==="*";function MC(r,t){let a=r.split("/"),l=a.length;return a.some(_b)&&(l+=AC),t&&(l+=RC),a.filter(o=>!_b(o)).reduce((o,u)=>o+(TC.test(u)?CC:u===""?_C:jC),l)}function NC(r,t){return r.length===t.length&&r.slice(0,-1).every((l,o)=>l===t[o])?r[r.length-1]-t[t.length-1]:0}function DC(r,t,a=!1){let{routesMeta:l}=r,o={},u="/",c=[];for(let d=0;d<l.length;++d){let h=l[d],p=d===l.length-1,m=u==="/"?t:t.slice(u.length)||"/",y=iu({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},m),x=h.route;if(!y&&p&&a&&!l[l.length-1].route.index&&(y=iu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},m)),!y)return null;Object.assign(o,y.params),c.push({params:o,pathname:Er([u,y.pathname]),pathnameBase:BC(Er([u,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(u=Er([u,y.pathnameBase]))}return c}function iu(r,t){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[a,l]=LC(r.path,r.caseSensitive,r.end),o=t.match(a);if(!o)return null;let u=o[0],c=u.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:l.reduce((p,{paramName:m,isOptional:y},x)=>{if(m==="*"){let N=d[x]||"";c=u.slice(0,u.length-N.length).replace(/(.)\/+$/,"$1")}const T=d[x];return y&&!T?p[m]=void 0:p[m]=(T||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:c,pattern:r}}function LC(r,t=!1,a=!0){xn(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let l=[],o="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(l.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(l.push({paramName:"*"}),o+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":r!==""&&r!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),l]}function zC(r){try{return r.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xn(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),r}}function Cr(r,t){if(t==="/")return r;if(!r.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,l=r.charAt(a);return l&&l!=="/"?null:r.slice(a)||"/"}var K1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,PC=r=>K1.test(r);function HC(r,t="/"){let{pathname:a,search:l="",hash:o=""}=typeof r=="string"?Di(r):r,u;if(a)if(PC(a))u=a;else{if(a.includes("//")){let c=a;a=a.replace(/\/\/+/g,"/"),xn(!1,`Pathnames cannot have embedded double slashes - normalizing ${c} -> ${a}`)}a.startsWith("/")?u=jb(a.substring(1),"/"):u=jb(a,t)}else u=t;return{pathname:u,search:$C(l),hash:IC(o)}}function jb(r,t){let a=t.replace(/\/+$/,"").split("/");return r.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function Xf(r,t,a,l){return`Cannot include a '${r}' character in a manually specified \`to.${t}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function kC(r){return r.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function J1(r){let t=kC(r);return t.map((a,l)=>l===t.length-1?a.pathname:a.pathnameBase)}function ew(r,t,a,l=!1){let o;typeof r=="string"?o=Di(r):(o={...r},ct(!o.pathname||!o.pathname.includes("?"),Xf("?","pathname","search",o)),ct(!o.pathname||!o.pathname.includes("#"),Xf("#","pathname","hash",o)),ct(!o.search||!o.search.includes("#"),Xf("#","search","hash",o)));let u=r===""||o.pathname==="",c=u?"/":o.pathname,d;if(c==null)d=a;else{let y=t.length-1;if(!l&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),y-=1;o.pathname=x.join("/")}d=y>=0?t[y]:"/"}let h=HC(o,d),p=c&&c!=="/"&&c.endsWith("/"),m=(u||c===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(p||m)&&(h.pathname+="/"),h}var Er=r=>r.join("/").replace(/\/\/+/g,"/"),BC=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),$C=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,IC=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,qC=class{constructor(r,t,a,l=!1){this.status=r,this.statusText=t||"",this.internal=l,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function UC(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function GC(r){return r.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var tw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function nw(r,t){let a=r;if(typeof a!="string"||!K1.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let l=a,o=!1;if(tw)try{let u=new URL(window.location.href),c=a.startsWith("//")?new URL(u.protocol+a):new URL(a),d=Cr(c.pathname,t);c.origin===u.origin&&d!=null?a=d+c.search+c.hash:o=!0}catch{xn(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:o,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var rw=["POST","PUT","PATCH","DELETE"];new Set(rw);var VC=["GET",...rw];new Set(VC);var Li=w.createContext(null);Li.displayName="DataRouter";var vu=w.createContext(null);vu.displayName="DataRouterState";var YC=w.createContext(!1),aw=w.createContext({isTransitioning:!1});aw.displayName="ViewTransition";var XC=w.createContext(new Map);XC.displayName="Fetchers";var WC=w.createContext(null);WC.displayName="Await";var Rn=w.createContext(null);Rn.displayName="Navigation";var zi=w.createContext(null);zi.displayName="Location";var zn=w.createContext({outlet:null,matches:[],isDataRoute:!1});zn.displayName="Route";var Gp=w.createContext(null);Gp.displayName="RouteError";var iw="REACT_ROUTER_ERROR",FC="REDIRECT",QC="ROUTE_ERROR_RESPONSE";function ZC(r){if(r.startsWith(`${iw}:${FC}:{`))try{let t=JSON.parse(r.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function KC(r){if(r.startsWith(`${iw}:${QC}:{`))try{let t=JSON.parse(r.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new qC(t.status,t.statusText,t.data)}catch{}}function JC(r,{relative:t}={}){ct(wo(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:l}=w.useContext(Rn),{hash:o,pathname:u,search:c}=xo(r,{relative:t}),d=u;return a!=="/"&&(d=u==="/"?a:Er([a,u])),l.createHref({pathname:d,search:c,hash:o})}function wo(){return w.useContext(zi)!=null}function er(){return ct(wo(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(zi).location}function lw(){return w.useContext(zi).navigationType}var ow="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sw(r){w.useContext(Rn).static||w.useLayoutEffect(r)}function Vp(){let{isDataRoute:r}=w.useContext(zn);return r?p2():e2()}function e2(){ct(wo(),"useNavigate() may be used only in the context of a <Router> component.");let r=w.useContext(Li),{basename:t,navigator:a}=w.useContext(Rn),{matches:l}=w.useContext(zn),{pathname:o}=er(),u=JSON.stringify(J1(l)),c=w.useRef(!1);return sw(()=>{c.current=!0}),w.useCallback((h,p={})=>{if(xn(c.current,ow),!c.current)return;if(typeof h=="number"){a.go(h);return}let m=ew(h,JSON.parse(u),o,p.relative==="path");r==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Er([t,m.pathname])),(p.replace?a.replace:a.push)(m,p.state,p)},[t,a,u,o,r])}var t2=w.createContext(null);function n2(r){let t=w.useContext(zn).outlet;return w.useMemo(()=>t&&w.createElement(t2.Provider,{value:r},t),[t,r])}function jr(){let{matches:r}=w.useContext(zn),t=r[r.length-1];return t?t.params:{}}function xo(r,{relative:t}={}){let{matches:a}=w.useContext(zn),{pathname:l}=er(),o=JSON.stringify(J1(a));return w.useMemo(()=>ew(r,JSON.parse(o),l,t==="path"),[r,o,l,t])}function r2(r,t){return uw(r,t)}function uw(r,t,a,l,o){var V;ct(wo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=w.useContext(Rn),{matches:c}=w.useContext(zn),d=c[c.length-1],h=d?d.params:{},p=d?d.pathname:"/",m=d?d.pathnameBase:"/",y=d&&d.route;{let I=y&&y.path||"";fw(p,!y||I.endsWith("*")||I.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${I}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
58
+ */var Up=(r=>(r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE",r))(Up||{}),Cb="popstate";function bC(r={}){function t(l,o){let{pathname:u,search:c,hash:d}=l.location;return wp("",{pathname:u,search:c,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(l,o){return typeof o=="string"?o:io(o)}return wC(t,a,null,r)}function ct(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}function xn(r,t){if(!r){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function SC(){return Math.random().toString(36).substring(2,10)}function Rb(r,t){return{usr:r.state,key:r.key,idx:t}}function wp(r,t,a=null,l){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof t=="string"?Di(t):t,state:a,key:t&&t.key||l||SC()}}function io({pathname:r="/",search:t="",hash:a=""}){return t&&t!=="?"&&(r+=t.charAt(0)==="?"?t:"?"+t),a&&a!=="#"&&(r+=a.charAt(0)==="#"?a:"#"+a),r}function Di(r){let t={};if(r){let a=r.indexOf("#");a>=0&&(t.hash=r.substring(a),r=r.substring(0,a));let l=r.indexOf("?");l>=0&&(t.search=r.substring(l),r=r.substring(0,l)),r&&(t.pathname=r)}return t}function wC(r,t,a,l={}){let{window:o=document.defaultView,v5Compat:u=!1}=l,c=o.history,d="POP",h=null,p=g();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function g(){return(c.state||{idx:null}).idx}function v(){d="POP";let z=g(),$=z==null?null:z-p;p=z,h&&h({action:d,location:_.location,delta:$})}function x(z,$){d="PUSH";let V=wp(_.location,z,$);p=g()+1;let I=Rb(V,p),Q=_.createHref(V);try{c.pushState(I,"",Q)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;o.location.assign(Q)}u&&h&&h({action:d,location:_.location,delta:1})}function T(z,$){d="REPLACE";let V=wp(_.location,z,$);p=g();let I=Rb(V,p),Q=_.createHref(V);c.replaceState(I,"",Q),u&&h&&h({action:d,location:_.location,delta:0})}function N(z){return xC(z)}let _={get action(){return d},get location(){return r(o,c)},listen(z){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(Cb,v),h=z,()=>{o.removeEventListener(Cb,v),h=null}},createHref(z){return t(o,z)},createURL:N,encodeLocation(z){let $=N(z);return{pathname:$.pathname,search:$.search,hash:$.hash}},push:x,replace:T,go(z){return c.go(z)}};return _}function xC(r,t=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),ct(a,"No window.location.(origin|href) available to create URL");let l=typeof r=="string"?r:io(r);return l=l.replace(/ $/,"%20"),!t&&l.startsWith("//")&&(l=a+l),new URL(l,a)}function F1(r,t,a="/"){return OC(r,t,a,!1)}function OC(r,t,a,l){let o=typeof t=="string"?Di(t):t,u=Cr(o.pathname||"/",a);if(u==null)return null;let c=Q1(r);EC(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let p=zC(u);d=DC(c[h],p,l)}return d}function Q1(r,t=[],a=[],l="",o=!1){let u=(c,d,h=o,p)=>{let g={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(l)&&h)return;ct(g.relativePath.startsWith(l),`Absolute route path "${g.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(l.length)}let v=Er([l,g.relativePath]),x=a.concat(g);c.children&&c.children.length>0&&(ct(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Q1(c.children,t,x,v,h)),!(c.path==null&&!c.index)&&t.push({path:v,score:MC(v,c.index),routesMeta:x})};return r.forEach((c,d)=>{var h;if(c.path===""||!((h=c.path)!=null&&h.includes("?")))u(c,d);else for(let p of Z1(c.path))u(c,d,!0,p)}),t}function Z1(r){let t=r.split("/");if(t.length===0)return[];let[a,...l]=t,o=a.endsWith("?"),u=a.replace(/\?$/,"");if(l.length===0)return o?[u,""]:[u];let c=Z1(l.join("/")),d=[];return d.push(...c.map(h=>h===""?u:[u,h].join("/"))),o&&d.push(...c),d.map(h=>r.startsWith("/")&&h===""?"/":h)}function EC(r){r.sort((t,a)=>t.score!==a.score?a.score-t.score:NC(t.routesMeta.map(l=>l.childrenIndex),a.routesMeta.map(l=>l.childrenIndex)))}var TC=/^:[\w-]+$/,CC=3,RC=2,_C=1,jC=10,AC=-2,_b=r=>r==="*";function MC(r,t){let a=r.split("/"),l=a.length;return a.some(_b)&&(l+=AC),t&&(l+=RC),a.filter(o=>!_b(o)).reduce((o,u)=>o+(TC.test(u)?CC:u===""?_C:jC),l)}function NC(r,t){return r.length===t.length&&r.slice(0,-1).every((l,o)=>l===t[o])?r[r.length-1]-t[t.length-1]:0}function DC(r,t,a=!1){let{routesMeta:l}=r,o={},u="/",c=[];for(let d=0;d<l.length;++d){let h=l[d],p=d===l.length-1,g=u==="/"?t:t.slice(u.length)||"/",v=iu({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),x=h.route;if(!v&&p&&a&&!l[l.length-1].route.index&&(v=iu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!v)return null;Object.assign(o,v.params),c.push({params:o,pathname:Er([u,v.pathname]),pathnameBase:BC(Er([u,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(u=Er([u,v.pathnameBase]))}return c}function iu(r,t){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[a,l]=LC(r.path,r.caseSensitive,r.end),o=t.match(a);if(!o)return null;let u=o[0],c=u.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:l.reduce((p,{paramName:g,isOptional:v},x)=>{if(g==="*"){let N=d[x]||"";c=u.slice(0,u.length-N.length).replace(/(.)\/+$/,"$1")}const T=d[x];return v&&!T?p[g]=void 0:p[g]=(T||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:c,pattern:r}}function LC(r,t=!1,a=!0){xn(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let l=[],o="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(l.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(l.push({paramName:"*"}),o+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":r!==""&&r!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),l]}function zC(r){try{return r.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xn(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),r}}function Cr(r,t){if(t==="/")return r;if(!r.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,l=r.charAt(a);return l&&l!=="/"?null:r.slice(a)||"/"}var K1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,PC=r=>K1.test(r);function HC(r,t="/"){let{pathname:a,search:l="",hash:o=""}=typeof r=="string"?Di(r):r,u;if(a)if(PC(a))u=a;else{if(a.includes("//")){let c=a;a=a.replace(/\/\/+/g,"/"),xn(!1,`Pathnames cannot have embedded double slashes - normalizing ${c} -> ${a}`)}a.startsWith("/")?u=jb(a.substring(1),"/"):u=jb(a,t)}else u=t;return{pathname:u,search:$C(l),hash:IC(o)}}function jb(r,t){let a=t.replace(/\/+$/,"").split("/");return r.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function Yf(r,t,a,l){return`Cannot include a '${r}' character in a manually specified \`to.${t}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function kC(r){return r.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function J1(r){let t=kC(r);return t.map((a,l)=>l===t.length-1?a.pathname:a.pathnameBase)}function ew(r,t,a,l=!1){let o;typeof r=="string"?o=Di(r):(o={...r},ct(!o.pathname||!o.pathname.includes("?"),Yf("?","pathname","search",o)),ct(!o.pathname||!o.pathname.includes("#"),Yf("#","pathname","hash",o)),ct(!o.search||!o.search.includes("#"),Yf("#","search","hash",o)));let u=r===""||o.pathname==="",c=u?"/":o.pathname,d;if(c==null)d=a;else{let v=t.length-1;if(!l&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),v-=1;o.pathname=x.join("/")}d=v>=0?t[v]:"/"}let h=HC(o,d),p=c&&c!=="/"&&c.endsWith("/"),g=(u||c===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var Er=r=>r.join("/").replace(/\/\/+/g,"/"),BC=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),$C=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,IC=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,qC=class{constructor(r,t,a,l=!1){this.status=r,this.statusText=t||"",this.internal=l,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function UC(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function GC(r){return r.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var tw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function nw(r,t){let a=r;if(typeof a!="string"||!K1.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let l=a,o=!1;if(tw)try{let u=new URL(window.location.href),c=a.startsWith("//")?new URL(u.protocol+a):new URL(a),d=Cr(c.pathname,t);c.origin===u.origin&&d!=null?a=d+c.search+c.hash:o=!0}catch{xn(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:o,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var rw=["POST","PUT","PATCH","DELETE"];new Set(rw);var VC=["GET",...rw];new Set(VC);var Li=w.createContext(null);Li.displayName="DataRouter";var vu=w.createContext(null);vu.displayName="DataRouterState";var WC=w.createContext(!1),aw=w.createContext({isTransitioning:!1});aw.displayName="ViewTransition";var YC=w.createContext(new Map);YC.displayName="Fetchers";var XC=w.createContext(null);XC.displayName="Await";var Rn=w.createContext(null);Rn.displayName="Navigation";var zi=w.createContext(null);zi.displayName="Location";var zn=w.createContext({outlet:null,matches:[],isDataRoute:!1});zn.displayName="Route";var Gp=w.createContext(null);Gp.displayName="RouteError";var iw="REACT_ROUTER_ERROR",FC="REDIRECT",QC="ROUTE_ERROR_RESPONSE";function ZC(r){if(r.startsWith(`${iw}:${FC}:{`))try{let t=JSON.parse(r.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function KC(r){if(r.startsWith(`${iw}:${QC}:{`))try{let t=JSON.parse(r.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new qC(t.status,t.statusText,t.data)}catch{}}function JC(r,{relative:t}={}){ct(wo(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:l}=w.useContext(Rn),{hash:o,pathname:u,search:c}=xo(r,{relative:t}),d=u;return a!=="/"&&(d=u==="/"?a:Er([a,u])),l.createHref({pathname:d,search:c,hash:o})}function wo(){return w.useContext(zi)!=null}function er(){return ct(wo(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(zi).location}function lw(){return w.useContext(zi).navigationType}var ow="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sw(r){w.useContext(Rn).static||w.useLayoutEffect(r)}function Vp(){let{isDataRoute:r}=w.useContext(zn);return r?p2():e2()}function e2(){ct(wo(),"useNavigate() may be used only in the context of a <Router> component.");let r=w.useContext(Li),{basename:t,navigator:a}=w.useContext(Rn),{matches:l}=w.useContext(zn),{pathname:o}=er(),u=JSON.stringify(J1(l)),c=w.useRef(!1);return sw(()=>{c.current=!0}),w.useCallback((h,p={})=>{if(xn(c.current,ow),!c.current)return;if(typeof h=="number"){a.go(h);return}let g=ew(h,JSON.parse(u),o,p.relative==="path");r==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Er([t,g.pathname])),(p.replace?a.replace:a.push)(g,p.state,p)},[t,a,u,o,r])}var t2=w.createContext(null);function n2(r){let t=w.useContext(zn).outlet;return w.useMemo(()=>t&&w.createElement(t2.Provider,{value:r},t),[t,r])}function jr(){let{matches:r}=w.useContext(zn),t=r[r.length-1];return t?t.params:{}}function xo(r,{relative:t}={}){let{matches:a}=w.useContext(zn),{pathname:l}=er(),o=JSON.stringify(J1(a));return w.useMemo(()=>ew(r,JSON.parse(o),l,t==="path"),[r,o,l,t])}function r2(r,t){return uw(r,t)}function uw(r,t,a,l,o){var V;ct(wo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=w.useContext(Rn),{matches:c}=w.useContext(zn),d=c[c.length-1],h=d?d.params:{},p=d?d.pathname:"/",g=d?d.pathnameBase:"/",v=d&&d.route;{let I=v&&v.path||"";fw(p,!v||I.endsWith("*")||I.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${I}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
59
 
60
- Please change the parent <Route path="${I}"> to <Route path="${I==="/"?"*":`${I}/*`}">.`)}let x=er(),T;if(t){let I=typeof t=="string"?Di(t):t;ct(m==="/"||((V=I.pathname)==null?void 0:V.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${I.pathname}" was given in the \`location\` prop.`),T=I}else T=x;let N=T.pathname||"/",_=N;if(m!=="/"){let I=m.replace(/^\//,"").split("/");_="/"+N.replace(/^\//,"").split("/").slice(I.length).join("/")}let z=F1(r,{pathname:_});xn(y||z!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),xn(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let $=s2(z&&z.map(I=>Object.assign({},I,{params:Object.assign({},h,I.params),pathname:Er([m,u.encodeLocation?u.encodeLocation(I.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?m:Er([m,u.encodeLocation?u.encodeLocation(I.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:I.pathnameBase])})),c,a,l,o);return t&&$?w.createElement(zi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...T},navigationType:"POP"}},$):$}function a2(){let r=h2(),t=UC(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),a=r instanceof Error?r.stack:null,l="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:l},u={padding:"2px 4px",backgroundColor:l},c=null;return console.error("Error handled by React Router default ErrorBoundary:",r),c=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:u},"ErrorBoundary")," or"," ",w.createElement("code",{style:u},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),a?w.createElement("pre",{style:o},a):null,c)}var i2=w.createElement(a2,null),cw=class extends w.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,t){return t.location!==r.location||t.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:t.error,location:t.location,revalidation:r.revalidation||t.revalidation}}componentDidCatch(r,t){this.props.onError?this.props.onError(r,t):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const a=KC(r.digest);a&&(r=a)}let t=r!==void 0?w.createElement(zn.Provider,{value:this.props.routeContext},w.createElement(Gp.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?w.createElement(l2,{error:r},t):t}};cw.contextType=YC;var Wf=new WeakMap;function l2({children:r,error:t}){let{basename:a}=w.useContext(Rn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let l=ZC(t.digest);if(l){let o=Wf.get(t);if(o)throw o;let u=nw(l.location,a);if(tw&&!Wf.get(t))if(u.isExternal||l.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:l.replace}));throw Wf.set(t,c),c}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return r}function o2({routeContext:r,match:t,children:a}){let l=w.useContext(Li);return l&&l.static&&l.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(zn.Provider,{value:r},a)}function s2(r,t=[],a=null,l=null,o=null){if(r==null){if(!a)return null;if(a.errors)r=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)r=a.matches;else return null}let u=r,c=a==null?void 0:a.errors;if(c!=null){let m=u.findIndex(y=>y.route.id&&(c==null?void 0:c[y.route.id])!==void 0);ct(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),u=u.slice(0,Math.min(u.length,m+1))}let d=!1,h=-1;if(a)for(let m=0;m<u.length;m++){let y=u[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(h=m),y.route.id){let{loaderData:x,errors:T}=a,N=y.route.loader&&!x.hasOwnProperty(y.route.id)&&(!T||T[y.route.id]===void 0);if(y.route.lazy||N){d=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}let p=a&&l?(m,y)=>{var x,T;l(m,{location:a.location,params:((T=(x=a.matches)==null?void 0:x[0])==null?void 0:T.params)??{},unstable_pattern:GC(a.matches),errorInfo:y})}:void 0;return u.reduceRight((m,y,x)=>{let T,N=!1,_=null,z=null;a&&(T=c&&y.route.id?c[y.route.id]:void 0,_=y.route.errorElement||i2,d&&(h<0&&x===0?(fw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,z=null):h===x&&(N=!0,z=y.route.hydrateFallbackElement||null)));let $=t.concat(u.slice(0,x+1)),V=()=>{let I;return T?I=_:N?I=z:y.route.Component?I=w.createElement(y.route.Component,null):y.route.element?I=y.route.element:I=m,w.createElement(o2,{match:y,routeContext:{outlet:m,matches:$,isDataRoute:a!=null},children:I})};return a&&(y.route.ErrorBoundary||y.route.errorElement||x===0)?w.createElement(cw,{location:a.location,revalidation:a.revalidation,component:_,error:T,children:V(),routeContext:{outlet:null,matches:$,isDataRoute:!0},onError:p}):V()},null)}function Yp(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function u2(r){let t=w.useContext(Li);return ct(t,Yp(r)),t}function c2(r){let t=w.useContext(vu);return ct(t,Yp(r)),t}function f2(r){let t=w.useContext(zn);return ct(t,Yp(r)),t}function Xp(r){let t=f2(r),a=t.matches[t.matches.length-1];return ct(a.route.id,`${r} can only be used on routes that contain a unique "id"`),a.route.id}function d2(){return Xp("useRouteId")}function h2(){var l;let r=w.useContext(Gp),t=c2("useRouteError"),a=Xp("useRouteError");return r!==void 0?r:(l=t.errors)==null?void 0:l[a]}function p2(){let{router:r}=u2("useNavigate"),t=Xp("useNavigate"),a=w.useRef(!1);return sw(()=>{a.current=!0}),w.useCallback(async(o,u={})=>{xn(a.current,ow),a.current&&(typeof o=="number"?await r.navigate(o):await r.navigate(o,{fromRouteId:t,...u}))},[r,t])}var Ab={};function fw(r,t,a){!t&&!Ab[r]&&(Ab[r]=!0,xn(!1,a))}w.memo(g2);function g2({routes:r,future:t,state:a,onError:l}){return uw(r,void 0,a,l,t)}function Wp(r){return n2(r.context)}function $t(r){ct(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function m2({basename:r="/",children:t=null,location:a,navigationType:l="POP",navigator:o,static:u=!1,unstable_useTransitions:c}){ct(!wo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=r.replace(/^\/*/,"/"),h=w.useMemo(()=>({basename:d,navigator:o,static:u,unstable_useTransitions:c,future:{}}),[d,o,u,c]);typeof a=="string"&&(a=Di(a));let{pathname:p="/",search:m="",hash:y="",state:x=null,key:T="default"}=a,N=w.useMemo(()=>{let _=Cr(p,d);return _==null?null:{location:{pathname:_,search:m,hash:y,state:x,key:T},navigationType:l}},[d,p,m,y,x,T,l]);return xn(N!=null,`<Router basename="${d}"> is not able to match the URL "${p}${m}${y}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:w.createElement(Rn.Provider,{value:h},w.createElement(zi.Provider,{children:t,value:N}))}function v2({children:r,location:t}){return r2(xp(r),t)}function xp(r,t=[]){let a=[];return w.Children.forEach(r,(l,o)=>{if(!w.isValidElement(l))return;let u=[...t,o];if(l.type===w.Fragment){a.push.apply(a,xp(l.props.children,u));return}ct(l.type===$t,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ct(!l.props.index||!l.props.children,"An index route cannot have child routes.");let c={id:l.props.id||u.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(c.children=xp(l.props.children,u)),a.push(c)}),a}var eu="get",tu="application/x-www-form-urlencoded";function yu(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function y2(r){return yu(r)&&r.tagName.toLowerCase()==="button"}function b2(r){return yu(r)&&r.tagName.toLowerCase()==="form"}function S2(r){return yu(r)&&r.tagName.toLowerCase()==="input"}function w2(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function x2(r,t){return r.button===0&&(!t||t==="_self")&&!w2(r)}function Op(r=""){return new URLSearchParams(typeof r=="string"||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((t,a)=>{let l=r[a];return t.concat(Array.isArray(l)?l.map(o=>[a,o]):[[a,l]])},[]))}function O2(r,t){let a=Op(r);return t&&t.forEach((l,o)=>{a.has(o)||t.getAll(o).forEach(u=>{a.append(o,u)})}),a}var Ys=null;function E2(){if(Ys===null)try{new FormData(document.createElement("form"),0),Ys=!1}catch{Ys=!0}return Ys}var T2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ff(r){return r!=null&&!T2.has(r)?(xn(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${tu}"`),null):r}function C2(r,t){let a,l,o,u,c;if(b2(r)){let d=r.getAttribute("action");l=d?Cr(d,t):null,a=r.getAttribute("method")||eu,o=Ff(r.getAttribute("enctype"))||tu,u=new FormData(r)}else if(y2(r)||S2(r)&&(r.type==="submit"||r.type==="image")){let d=r.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=r.getAttribute("formaction")||d.getAttribute("action");if(l=h?Cr(h,t):null,a=r.getAttribute("formmethod")||d.getAttribute("method")||eu,o=Ff(r.getAttribute("formenctype"))||Ff(d.getAttribute("enctype"))||tu,u=new FormData(d,r),!E2()){let{name:p,type:m,value:y}=r;if(m==="image"){let x=p?`${p}.`:"";u.append(`${x}x`,"0"),u.append(`${x}y`,"0")}else p&&u.append(p,y)}}else{if(yu(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=eu,l=null,o=tu,c=r}return u&&o==="text/plain"&&(c=u,u=void 0),{action:l,method:a.toLowerCase(),encType:o,formData:u,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Fp(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}function R2(r,t,a,l){let o=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return a?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${l}`:o.pathname=`${o.pathname}.${l}`:o.pathname==="/"?o.pathname=`_root.${l}`:t&&Cr(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${l}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${l}`,o}async function _2(r,t){if(r.id in t)return t[r.id];try{let a=await import(r.module);return t[r.id]=a,a}catch(a){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function j2(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function A2(r,t,a){let l=await Promise.all(r.map(async o=>{let u=t.routes[o.route.id];if(u){let c=await _2(u,a);return c.links?c.links():[]}return[]}));return L2(l.flat(1).filter(j2).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Mb(r,t,a,l,o,u){let c=(h,p)=>a[p]?h.route.id!==a[p].route.id:!0,d=(h,p)=>{var m;return a[p].pathname!==h.pathname||((m=a[p].route.path)==null?void 0:m.endsWith("*"))&&a[p].params["*"]!==h.params["*"]};return u==="assets"?t.filter((h,p)=>c(h,p)||d(h,p)):u==="data"?t.filter((h,p)=>{var y;let m=l.routes[h.route.id];if(!m||!m.hasLoader)return!1;if(c(h,p)||d(h,p))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((y=a[0])==null?void 0:y.params)||{},nextUrl:new URL(r,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function M2(r,t,{includeHydrateFallback:a}={}){return N2(r.map(l=>{let o=t.routes[l.route.id];if(!o)return[];let u=[o.module];return o.clientActionModule&&(u=u.concat(o.clientActionModule)),o.clientLoaderModule&&(u=u.concat(o.clientLoaderModule)),a&&o.hydrateFallbackModule&&(u=u.concat(o.hydrateFallbackModule)),o.imports&&(u=u.concat(o.imports)),u}).flat(1))}function N2(r){return[...new Set(r)]}function D2(r){let t={},a=Object.keys(r).sort();for(let l of a)t[l]=r[l];return t}function L2(r,t){let a=new Set;return new Set(t),r.reduce((l,o)=>{let u=JSON.stringify(D2(o));return a.has(u)||(a.add(u),l.push({key:u,link:o})),l},[])}function dw(){let r=w.useContext(Li);return Fp(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function z2(){let r=w.useContext(vu);return Fp(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var Qp=w.createContext(void 0);Qp.displayName="FrameworkContext";function hw(){let r=w.useContext(Qp);return Fp(r,"You must render this element inside a <HydratedRouter> element"),r}function P2(r,t){let a=w.useContext(Qp),[l,o]=w.useState(!1),[u,c]=w.useState(!1),{onFocus:d,onBlur:h,onMouseEnter:p,onMouseLeave:m,onTouchStart:y}=t,x=w.useRef(null);w.useEffect(()=>{if(r==="render"&&c(!0),r==="viewport"){let _=$=>{$.forEach(V=>{c(V.isIntersecting)})},z=new IntersectionObserver(_,{threshold:.5});return x.current&&z.observe(x.current),()=>{z.disconnect()}}},[r]),w.useEffect(()=>{if(l){let _=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(_)}}},[l]);let T=()=>{o(!0)},N=()=>{o(!1),c(!1)};return a?r!=="intent"?[u,x,{}]:[u,x,{onFocus:Il(d,T),onBlur:Il(h,N),onMouseEnter:Il(p,T),onMouseLeave:Il(m,N),onTouchStart:Il(y,T)}]:[!1,x,{}]}function Il(r,t){return a=>{r&&r(a),a.defaultPrevented||t(a)}}function H2({page:r,...t}){let{router:a}=dw(),l=w.useMemo(()=>F1(a.routes,r,a.basename),[a.routes,r,a.basename]);return l?w.createElement(B2,{page:r,matches:l,...t}):null}function k2(r){let{manifest:t,routeModules:a}=hw(),[l,o]=w.useState([]);return w.useEffect(()=>{let u=!1;return A2(r,t,a).then(c=>{u||o(c)}),()=>{u=!0}},[r,t,a]),l}function B2({page:r,matches:t,...a}){let l=er(),{future:o,manifest:u,routeModules:c}=hw(),{basename:d}=dw(),{loaderData:h,matches:p}=z2(),m=w.useMemo(()=>Mb(r,t,p,u,l,"data"),[r,t,p,u,l]),y=w.useMemo(()=>Mb(r,t,p,u,l,"assets"),[r,t,p,u,l]),x=w.useMemo(()=>{if(r===l.pathname+l.search+l.hash)return[];let _=new Set,z=!1;if(t.forEach(V=>{var Q;let I=u.routes[V.route.id];!I||!I.hasLoader||(!m.some(A=>A.route.id===V.route.id)&&V.route.id in h&&((Q=c[V.route.id])!=null&&Q.shouldRevalidate)||I.hasClientLoader?z=!0:_.add(V.route.id))}),_.size===0)return[];let $=R2(r,d,o.unstable_trailingSlashAwareDataRequests,"data");return z&&_.size>0&&$.searchParams.set("_routes",t.filter(V=>_.has(V.route.id)).map(V=>V.route.id).join(",")),[$.pathname+$.search]},[d,o.unstable_trailingSlashAwareDataRequests,h,l,u,m,t,r,c]),T=w.useMemo(()=>M2(y,u),[y,u]),N=k2(y);return w.createElement(w.Fragment,null,x.map(_=>w.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...a})),T.map(_=>w.createElement("link",{key:_,rel:"modulepreload",href:_,...a})),N.map(({key:_,link:z})=>w.createElement("link",{key:_,nonce:a.nonce,...z})))}function $2(...r){return t=>{r.forEach(a=>{typeof a=="function"?a(t):a!=null&&(a.current=t)})}}var I2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{I2&&(window.__reactRouterVersion="7.12.0")}catch{}function q2({basename:r,children:t,unstable_useTransitions:a,window:l}){let o=w.useRef();o.current==null&&(o.current=bC({window:l,v5Compat:!0}));let u=o.current,[c,d]=w.useState({action:u.action,location:u.location}),h=w.useCallback(p=>{a===!1?d(p):w.startTransition(()=>d(p))},[a]);return w.useLayoutEffect(()=>u.listen(h),[u,h]),w.createElement(m2,{basename:r,children:t,location:c.location,navigationType:c.action,navigator:u,unstable_useTransitions:a})}var pw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,on=w.forwardRef(function({onClick:t,discover:a="render",prefetch:l="none",relative:o,reloadDocument:u,replace:c,state:d,target:h,to:p,preventScrollReset:m,viewTransition:y,unstable_defaultShouldRevalidate:x,...T},N){let{basename:_,unstable_useTransitions:z}=w.useContext(Rn),$=typeof p=="string"&&pw.test(p),V=nw(p,_);p=V.to;let I=JC(p,{relative:o}),[Q,A,M]=P2(l,T),P=V2(p,{replace:c,state:d,target:h,preventScrollReset:m,relative:o,viewTransition:y,unstable_defaultShouldRevalidate:x,unstable_useTransitions:z});function F(E){t&&t(E),E.defaultPrevented||P(E)}let D=w.createElement("a",{...T,...M,href:V.absoluteURL||I,onClick:V.isExternal||u?t:F,ref:$2(N,A),target:h,"data-discover":!$&&a==="render"?"true":void 0});return Q&&!$?w.createElement(w.Fragment,null,D,w.createElement(H2,{page:I})):D});on.displayName="Link";var lu=w.forwardRef(function({"aria-current":t="page",caseSensitive:a=!1,className:l="",end:o=!1,style:u,to:c,viewTransition:d,children:h,...p},m){let y=xo(c,{relative:p.relative}),x=er(),T=w.useContext(vu),{navigator:N,basename:_}=w.useContext(Rn),z=T!=null&&Q2(y)&&d===!0,$=N.encodeLocation?N.encodeLocation(y).pathname:y.pathname,V=x.pathname,I=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;a||(V=V.toLowerCase(),I=I?I.toLowerCase():null,$=$.toLowerCase()),I&&_&&(I=Cr(I,_)||I);const Q=$!=="/"&&$.endsWith("/")?$.length-1:$.length;let A=V===$||!o&&V.startsWith($)&&V.charAt(Q)==="/",M=I!=null&&(I===$||!o&&I.startsWith($)&&I.charAt($.length)==="/"),P={isActive:A,isPending:M,isTransitioning:z},F=A?t:void 0,D;typeof l=="function"?D=l(P):D=[l,A?"active":null,M?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let E=typeof u=="function"?u(P):u;return w.createElement(on,{...p,"aria-current":F,className:D,ref:m,style:E,to:c,viewTransition:d},typeof h=="function"?h(P):h)});lu.displayName="NavLink";var U2=w.forwardRef(({discover:r="render",fetcherKey:t,navigate:a,reloadDocument:l,replace:o,state:u,method:c=eu,action:d,onSubmit:h,relative:p,preventScrollReset:m,viewTransition:y,unstable_defaultShouldRevalidate:x,...T},N)=>{let{unstable_useTransitions:_}=w.useContext(Rn),z=W2(),$=F2(d,{relative:p}),V=c.toLowerCase()==="get"?"get":"post",I=typeof d=="string"&&pw.test(d),Q=A=>{if(h&&h(A),A.defaultPrevented)return;A.preventDefault();let M=A.nativeEvent.submitter,P=(M==null?void 0:M.getAttribute("formmethod"))||c,F=()=>z(M||A.currentTarget,{fetcherKey:t,method:P,navigate:a,replace:o,state:u,relative:p,preventScrollReset:m,viewTransition:y,unstable_defaultShouldRevalidate:x});_&&a!==!1?w.startTransition(()=>F()):F()};return w.createElement("form",{ref:N,method:V,action:$,onSubmit:l?h:Q,...T,"data-discover":!I&&r==="render"?"true":void 0})});U2.displayName="Form";function G2(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gw(r){let t=w.useContext(Li);return ct(t,G2(r)),t}function V2(r,{target:t,replace:a,state:l,preventScrollReset:o,relative:u,viewTransition:c,unstable_defaultShouldRevalidate:d,unstable_useTransitions:h}={}){let p=Vp(),m=er(),y=xo(r,{relative:u});return w.useCallback(x=>{if(x2(x,t)){x.preventDefault();let T=a!==void 0?a:io(m)===io(y),N=()=>p(r,{replace:T,state:l,preventScrollReset:o,relative:u,viewTransition:c,unstable_defaultShouldRevalidate:d});h?w.startTransition(()=>N()):N()}},[m,p,y,a,l,t,r,o,u,c,d,h])}function Oo(r){xn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=w.useRef(Op(r)),a=w.useRef(!1),l=er(),o=w.useMemo(()=>O2(l.search,a.current?null:t.current),[l.search]),u=Vp(),c=w.useCallback((d,h)=>{const p=Op(typeof d=="function"?d(new URLSearchParams(o)):d);a.current=!0,u("?"+p,h)},[u,o]);return[o,c]}var Y2=0,X2=()=>`__${String(++Y2)}__`;function W2(){let{router:r}=gw("useSubmit"),{basename:t}=w.useContext(Rn),a=d2(),l=r.fetch,o=r.navigate;return w.useCallback(async(u,c={})=>{let{action:d,method:h,encType:p,formData:m,body:y}=C2(u,t);if(c.navigate===!1){let x=c.fetcherKey||X2();await l(x,a,c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:m,body:y,formMethod:c.method||h,formEncType:c.encType||p,flushSync:c.flushSync})}else await o(c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:m,body:y,formMethod:c.method||h,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:a,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,o,t,a])}function F2(r,{relative:t}={}){let{basename:a}=w.useContext(Rn),l=w.useContext(zn);ct(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),u={...xo(r||".",{relative:t})},c=er();if(r==null){u.search=c.search;let d=new URLSearchParams(u.search),h=d.getAll("index");if(h.some(m=>m==="")){d.delete("index"),h.filter(y=>y).forEach(y=>d.append("index",y));let m=d.toString();u.search=m?`?${m}`:""}}return(!r||r===".")&&o.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(u.pathname=u.pathname==="/"?a:Er([a,u.pathname])),io(u)}function Q2(r,{relative:t}={}){let a=w.useContext(aw);ct(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=gw("useViewTransitionState"),o=xo(r,{relative:t});if(!a.isTransitioning)return!1;let u=Cr(a.currentLocation.pathname,l)||a.currentLocation.pathname,c=Cr(a.nextLocation.pathname,l)||a.nextLocation.pathname;return iu(o.pathname,c)!=null||iu(o.pathname,u)!=null}var Fn,Jl,Ep;class Z2{constructor(){Sn(this,Fn)}async getCampaignList(t){const a=new URL("/api/campaigns",window.location.href);return t.sortBy&&a.searchParams.append("sort_by",t.sortBy),aa(this,Fn,Jl).call(this,a,t),await(await fetch(a.toString())).json()}async getContentList(t){const{campaign:a,filter:l}=t,o=t.type==="post"?"posts":t.type==="product"?"products":"content",u=new URL(`/api/campaigns/${a.id}/${o}`,window.location.href);return t.collectionId&&u.searchParams.set("collection_id",t.collectionId),aa(this,Fn,Ep).call(this,u,l),aa(this,Fn,Jl).call(this,u,t),await(await fetch(u.toString())).json()}async getCampaign(t){const{withCounts:a=!1}=t,l=new URL(`/api/campaigns/${t.id}`,window.location.href);return l.searchParams.append("with_counts",a?"true":"false"),await(await fetch(l.toString())).json()}async getContentFilterOptions(t,a){const l=typeof t=="string"?t:t.id,o=a==="post"?"posts":"products",u=new URL(`/api/campaigns/${l}/${o}/filter_options`,window.location.href);return await(await fetch(u.toString())).json()}async getPost(t,a=""){const l=new URL(`/api/posts/${t}`,window.location.href);return a&&(l.search=a),await(await fetch(l.toString())).json()}async getProduct(t){const a=new URL(`/api/products/${t}`,window.location.href);return await(await fetch(a.toString())).json()}async getCollection(t){const a=new URL(`/api/collections/${t}`,window.location.href);return await(await fetch(a.toString())).json()}async getCollectionList(t){const{campaign:a,search:l,sortBy:o}=t,u=typeof a=="string"?a:a.id,c=new URL(`/api/campaigns/${u}/collections`,window.location.href);return l&&c.searchParams.append("search",l),o&&c.searchParams.append("sort_by",o),aa(this,Fn,Jl).call(this,c,t),await(await fetch(c.toString())).json()}async getPostTagList(t){const{campaign:a}=t,l=typeof a=="string"?a:a.id,o=new URL(`/api/campaigns/${l}/post_tags`,window.location.href);return await(await fetch(o.toString())).json()}async getBrowseSettings(){const t=new URL("/api/settings/browse",window.location.href);return await(await fetch(t.toString())).json()}async getBrowseSettingOptions(){const t=new URL("/api/settings/browse/options",window.location.href);return await(await fetch(t.toString())).json()}async getMediaList(t){const{campaign:a,filter:l}=t,o=new URL(`/api/campaigns/${a.id}/media`,window.location.href);return aa(this,Fn,Ep).call(this,o,l),aa(this,Fn,Jl).call(this,o,t),await(await fetch(o.toString())).json()}async getMediaFilterOptions(t){const a=typeof t=="string"?t:t.id,l=new URL(`/api/campaigns/${a}/media/filter_options`,window.location.href);return await(await fetch(l.toString())).json()}saveBrowseSettings(t){return fetch("/api/settings/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}}Fn=new WeakSet,Jl=function(t,a){a.page&&t.searchParams.append("p",String(a.page)),t.searchParams.append("n",String(a.itemsPerPage))},Ep=function(t,a){a.options.forEach(({searchParam:l,value:o})=>{o===null?t.searchParams.delete(l):t.searchParams.append(l,o)})};const mw=w.createContext({});function K2(r){const{children:t}=r;return S.jsx(mw.Provider,{value:{api:new Z2},children:t})}const _n=()=>w.useContext(mw);var J2=Function.prototype.toString,Qf=Object.create,eR=Object.prototype.toString,tR=function(){function r(){this._keys=[],this._values=[]}return r.prototype.has=function(t){return!!~this._keys.indexOf(t)},r.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},r.prototype.set=function(t,a){this._keys.push(t),this._values.push(a)},r}();function nR(){return new tR}function rR(){return new WeakMap}var aR=typeof WeakMap<"u"?rR:nR;function Zp(r){if(!r)return Qf(null);var t=r.constructor;if(t===Object)return r===Object.prototype?{}:Qf(r);if(t&&~J2.call(t).indexOf("[native code]"))try{return new t}catch{}return Qf(r)}function iR(r){var t="";return r.global&&(t+="g"),r.ignoreCase&&(t+="i"),r.multiline&&(t+="m"),r.unicode&&(t+="u"),r.sticky&&(t+="y"),t}function lR(r){return r.flags}var oR=/test/g.flags==="g"?lR:iR;function vw(r){var t=eR.call(r);return t.substring(8,t.length-1)}function sR(r){return r[Symbol.toStringTag]||vw(r)}var uR=typeof Symbol<"u"?sR:vw,cR=Object.defineProperty,fR=Object.getOwnPropertyDescriptor,yw=Object.getOwnPropertyNames,Kp=Object.getOwnPropertySymbols,bw=Object.prototype,Sw=bw.hasOwnProperty,dR=bw.propertyIsEnumerable,ww=typeof Kp=="function";function hR(r){return yw(r).concat(Kp(r))}var pR=ww?hR:yw;function bu(r,t,a){for(var l=pR(r),o=0,u=l.length,c=void 0,d=void 0;o<u;++o)if(c=l[o],!(c==="callee"||c==="caller")){if(d=fR(r,c),!d){t[c]=a.copier(r[c],a);continue}!d.get&&!d.set&&(d.value=a.copier(d.value,a));try{cR(t,c,d)}catch{t[c]=d.value}}return t}function gR(r,t){var a=new t.Constructor;t.cache.set(r,a);for(var l=0,o=r.length;l<o;++l)a[l]=t.copier(r[l],t);return a}function mR(r,t){var a=new t.Constructor;return t.cache.set(r,a),bu(r,a,t)}function xw(r,t){return r.slice(0)}function vR(r,t){return r.slice(0,r.size,r.type)}function yR(r,t){return new t.Constructor(xw(r.buffer))}function bR(r,t){return new t.Constructor(r.getTime())}function Ow(r,t){var a=new t.Constructor;return t.cache.set(r,a),r.forEach(function(l,o){a.set(o,t.copier(l,t))}),a}function SR(r,t){return bu(r,Ow(r,t),t)}function wR(r,t){var a=Zp(t.prototype);t.cache.set(r,a);for(var l in r)Sw.call(r,l)&&(a[l]=t.copier(r[l],t));return a}function xR(r,t){var a=Zp(t.prototype);t.cache.set(r,a);for(var l in r)Sw.call(r,l)&&(a[l]=t.copier(r[l],t));for(var o=Kp(r),u=0,c=o.length,d=void 0;u<c;++u)d=o[u],dR.call(r,d)&&(a[d]=t.copier(r[d],t));return a}var OR=ww?xR:wR;function ER(r,t){var a=Zp(t.prototype);return t.cache.set(r,a),bu(r,a,t)}function Zf(r,t){return new t.Constructor(r.valueOf())}function TR(r,t){var a=new t.Constructor(r.source,oR(r));return a.lastIndex=r.lastIndex,a}function nu(r,t){return r}function Ew(r,t){var a=new t.Constructor;return t.cache.set(r,a),r.forEach(function(l){a.add(t.copier(l,t))}),a}function CR(r,t){return bu(r,Ew(r,t),t)}var RR=Array.isArray,Jp=Object.assign,_R=Object.getPrototypeOf||function(r){return r.__proto__},Tw={array:gR,arrayBuffer:xw,blob:vR,dataView:yR,date:bR,error:nu,map:Ow,object:OR,regExp:TR,set:Ew},jR=Jp({},Tw,{array:mR,map:SR,object:ER,set:CR});function AR(r){return{Arguments:r.object,Array:r.array,ArrayBuffer:r.arrayBuffer,Blob:r.blob,Boolean:Zf,DataView:r.dataView,Date:r.date,Error:r.error,Float32Array:r.arrayBuffer,Float64Array:r.arrayBuffer,Int8Array:r.arrayBuffer,Int16Array:r.arrayBuffer,Int32Array:r.arrayBuffer,Map:r.map,Number:Zf,Object:r.object,Promise:nu,RegExp:r.regExp,Set:r.set,String:Zf,WeakMap:nu,WeakSet:nu,Uint8Array:r.arrayBuffer,Uint8ClampedArray:r.arrayBuffer,Uint16Array:r.arrayBuffer,Uint32Array:r.arrayBuffer,Uint64Array:r.arrayBuffer}}function Cw(r){var t=Jp({},Tw,r),a=AR(t),l=a.Array,o=a.Object;function u(c,d){if(d.prototype=d.Constructor=void 0,!c||typeof c!="object")return c;if(d.cache.has(c))return d.cache.get(c);if(d.prototype=_R(c),d.Constructor=d.prototype&&d.prototype.constructor,!d.Constructor||d.Constructor===Object)return o(c,d);if(RR(c))return l(c,d);var h=a[uR(c)];return h?h(c,d):typeof c.then=="function"?c:o(c,d)}return function(d){return u(d,{Constructor:void 0,cache:aR(),copier:u,prototype:void 0})}}function MR(r){return Cw(Jp({},jR,r))}MR({});var Tr=Cw({}),Kf,Nb;function Rw(){if(Nb)return Kf;Nb=1;var r=Object.prototype.toString;return Kf=function(a){var l=r.call(a),o=l==="[object Arguments]";return o||(o=l!=="[object Array]"&&a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&r.call(a.callee)==="[object Function]"),o},Kf}var Jf,Db;function NR(){if(Db)return Jf;Db=1;var r;if(!Object.keys){var t=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=Rw(),o=Object.prototype.propertyIsEnumerable,u=!o.call({toString:null},"toString"),c=o.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(x){var T=x.constructor;return T&&T.prototype===x},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},m=function(){if(typeof window>"u")return!1;for(var x in window)try{if(!p["$"+x]&&t.call(window,x)&&window[x]!==null&&typeof window[x]=="object")try{h(window[x])}catch{return!0}}catch{return!0}return!1}(),y=function(x){if(typeof window>"u"||!m)return h(x);try{return h(x)}catch{return!1}};r=function(T){var N=T!==null&&typeof T=="object",_=a.call(T)==="[object Function]",z=l(T),$=N&&a.call(T)==="[object String]",V=[];if(!N&&!_&&!z)throw new TypeError("Object.keys called on a non-object");var I=c&&_;if($&&T.length>0&&!t.call(T,0))for(var Q=0;Q<T.length;++Q)V.push(String(Q));if(z&&T.length>0)for(var A=0;A<T.length;++A)V.push(String(A));else for(var M in T)!(I&&M==="prototype")&&t.call(T,M)&&V.push(String(M));if(u)for(var P=y(T),F=0;F<d.length;++F)!(P&&d[F]==="constructor")&&t.call(T,d[F])&&V.push(d[F]);return V}}return Jf=r,Jf}var ed,Lb;function eg(){if(Lb)return ed;Lb=1;var r=Array.prototype.slice,t=Rw(),a=Object.keys,l=a?function(c){return a(c)}:NR(),o=Object.keys;return l.shim=function(){if(Object.keys){var c=function(){var d=Object.keys(arguments);return d&&d.length===arguments.length}(1,2);c||(Object.keys=function(h){return t(h)?o(r.call(h)):o(h)})}else Object.keys=l;return Object.keys||l},ed=l,ed}var td,zb;function _w(){return zb||(zb=1,td=Object),td}var nd,Pb;function DR(){return Pb||(Pb=1,nd=Error),nd}var rd,Hb;function LR(){return Hb||(Hb=1,rd=EvalError),rd}var ad,kb;function zR(){return kb||(kb=1,ad=RangeError),ad}var id,Bb;function PR(){return Bb||(Bb=1,id=ReferenceError),id}var ld,$b;function HR(){return $b||($b=1,ld=SyntaxError),ld}var od,Ib;function Pi(){return Ib||(Ib=1,od=TypeError),od}var sd,qb;function kR(){return qb||(qb=1,sd=URIError),sd}var ud,Ub;function BR(){return Ub||(Ub=1,ud=Math.abs),ud}var cd,Gb;function $R(){return Gb||(Gb=1,cd=Math.floor),cd}var fd,Vb;function IR(){return Vb||(Vb=1,fd=Math.max),fd}var dd,Yb;function qR(){return Yb||(Yb=1,dd=Math.min),dd}var hd,Xb;function UR(){return Xb||(Xb=1,hd=Math.pow),hd}var pd,Wb;function GR(){return Wb||(Wb=1,pd=Math.round),pd}var gd,Fb;function VR(){return Fb||(Fb=1,gd=Number.isNaN||function(t){return t!==t}),gd}var md,Qb;function YR(){if(Qb)return md;Qb=1;var r=VR();return md=function(a){return r(a)||a===0?a:a<0?-1:1},md}var vd,Zb;function XR(){return Zb||(Zb=1,vd=Object.getOwnPropertyDescriptor),vd}var yd,Kb;function Eo(){if(Kb)return yd;Kb=1;var r=XR();if(r)try{r([],"length")}catch{r=null}return yd=r,yd}var bd,Jb;function WR(){if(Jb)return bd;Jb=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return bd=r,bd}var Sd,e0;function Su(){return e0||(e0=1,Sd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},a=Symbol("test"),l=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var o=42;t[a]=o;for(var u in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var c=Object.getOwnPropertySymbols(t);if(c.length!==1||c[0]!==a||!Object.prototype.propertyIsEnumerable.call(t,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(t,a);if(d.value!==o||d.enumerable!==!0)return!1}return!0}),Sd}var wd,t0;function tg(){if(t0)return wd;t0=1;var r=typeof Symbol<"u"&&Symbol,t=Su();return wd=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},wd}var xd,n0;function jw(){return n0||(n0=1,xd=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),xd}var Od,r0;function Aw(){if(r0)return Od;r0=1;var r=_w();return Od=r.getPrototypeOf||null,Od}var Ed,a0;function FR(){if(a0)return Ed;a0=1;var r="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,a=Math.max,l="[object Function]",o=function(h,p){for(var m=[],y=0;y<h.length;y+=1)m[y]=h[y];for(var x=0;x<p.length;x+=1)m[x+h.length]=p[x];return m},u=function(h,p){for(var m=[],y=p,x=0;y<h.length;y+=1,x+=1)m[x]=h[y];return m},c=function(d,h){for(var p="",m=0;m<d.length;m+=1)p+=d[m],m+1<d.length&&(p+=h);return p};return Ed=function(h){var p=this;if(typeof p!="function"||t.apply(p)!==l)throw new TypeError(r+p);for(var m=u(arguments,1),y,x=function(){if(this instanceof y){var $=p.apply(this,o(m,arguments));return Object($)===$?$:this}return p.apply(h,o(m,arguments))},T=a(0,p.length-m.length),N=[],_=0;_<T;_++)N[_]="$"+_;if(y=Function("binder","return function ("+c(N,",")+"){ return binder.apply(this,arguments); }")(x),p.prototype){var z=function(){};z.prototype=p.prototype,y.prototype=new z,z.prototype=null}return y},Ed}var Td,i0;function To(){if(i0)return Td;i0=1;var r=FR();return Td=Function.prototype.bind||r,Td}var Cd,l0;function ng(){return l0||(l0=1,Cd=Function.prototype.call),Cd}var Rd,o0;function Mw(){return o0||(o0=1,Rd=Function.prototype.apply),Rd}var _d,s0;function QR(){return s0||(s0=1,_d=typeof Reflect<"u"&&Reflect&&Reflect.apply),_d}var jd,u0;function ZR(){if(u0)return jd;u0=1;var r=To(),t=Mw(),a=ng(),l=QR();return jd=l||r.call(a,t),jd}var Ad,c0;function Nw(){if(c0)return Ad;c0=1;var r=To(),t=Pi(),a=ng(),l=ZR();return Ad=function(u){if(u.length<1||typeof u[0]!="function")throw new t("a function is required");return l(r,a,u)},Ad}var Md,f0;function KR(){if(f0)return Md;f0=1;var r=Nw(),t=Eo(),a;try{a=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!="object"||!("code"in c)||c.code!=="ERR_PROTO_ACCESS")throw c}var l=!!a&&t&&t(Object.prototype,"__proto__"),o=Object,u=o.getPrototypeOf;return Md=l&&typeof l.get=="function"?r([l.get]):typeof u=="function"?function(d){return u(d==null?d:o(d))}:!1,Md}var Nd,d0;function JR(){if(d0)return Nd;d0=1;var r=jw(),t=Aw(),a=KR();return Nd=r?function(o){return r(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:a?function(o){return a(o)}:null,Nd}var Dd,h0;function Dw(){if(h0)return Dd;h0=1;var r=Function.prototype.call,t=Object.prototype.hasOwnProperty,a=To();return Dd=a.call(r,t),Dd}var Ld,p0;function un(){if(p0)return Ld;p0=1;var r,t=_w(),a=DR(),l=LR(),o=zR(),u=PR(),c=HR(),d=Pi(),h=kR(),p=BR(),m=$R(),y=IR(),x=qR(),T=UR(),N=GR(),_=YR(),z=Function,$=function(ge){try{return z('"use strict"; return ('+ge+").constructor;")()}catch{}},V=Eo(),I=WR(),Q=function(){throw new d},A=V?function(){try{return arguments.callee,Q}catch{try{return V(arguments,"callee").get}catch{return Q}}}():Q,M=tg()(),P=JR(),F=Aw(),D=jw(),E=Mw(),W=ng(),B={},q=typeof Uint8Array>"u"||!P?r:P(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":M&&P?P([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":B,"%AsyncGenerator%":B,"%AsyncGeneratorFunction%":B,"%AsyncIteratorPrototype%":B,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":z,"%GeneratorFunction%":B,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M&&P?P(P([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!M||!P?r:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":V,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":o,"%ReferenceError%":u,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!M||!P?r:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&P?P(""[Symbol.iterator]()):r,"%Symbol%":M?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":A,"%TypedArray%":q,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":W,"%Function.prototype.apply%":E,"%Object.defineProperty%":I,"%Object.getPrototypeOf%":F,"%Math.abs%":p,"%Math.floor%":m,"%Math.max%":y,"%Math.min%":x,"%Math.pow%":T,"%Math.round%":N,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(P)try{null.error}catch(ge){var G=P(P(ge));k["%Error.prototype%"]=G}var L=function ge(pe){var ve;if(pe==="%AsyncFunction%")ve=$("async function () {}");else if(pe==="%GeneratorFunction%")ve=$("function* () {}");else if(pe==="%AsyncGeneratorFunction%")ve=$("async function* () {}");else if(pe==="%AsyncGenerator%"){var he=ge("%AsyncGeneratorFunction%");he&&(ve=he.prototype)}else if(pe==="%AsyncIteratorPrototype%"){var me=ge("%AsyncGenerator%");me&&P&&(ve=P(me.prototype))}return k[pe]=ve,ve},b={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},te=To(),R=Dw(),v=te.call(W,Array.prototype.concat),C=te.call(E,Array.prototype.splice),Y=te.call(W,String.prototype.replace),J=te.call(W,String.prototype.slice),H=te.call(W,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,re=function(pe){var ve=J(pe,0,1),he=J(pe,-1);if(ve==="%"&&he!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(he==="%"&&ve!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var me=[];return Y(pe,U,function(Se,ye,Re,be){me[me.length]=Re?Y(be,Z,"$1"):ye||Se}),me},ue=function(pe,ve){var he=pe,me;if(R(b,he)&&(me=b[he],he="%"+me[0]+"%"),R(k,he)){var Se=k[he];if(Se===B&&(Se=L(he)),typeof Se>"u"&&!ve)throw new d("intrinsic "+pe+" exists, but is not available. Please file an issue!");return{alias:me,name:he,value:Se}}throw new c("intrinsic "+pe+" does not exist!")};return Ld=function(pe,ve){if(typeof pe!="string"||pe.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ve!="boolean")throw new d('"allowMissing" argument must be a boolean');if(H(/^%?[^%]*%?$/,pe)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var he=re(pe),me=he.length>0?he[0]:"",Se=ue("%"+me+"%",ve),ye=Se.name,Re=Se.value,be=!1,Le=Se.alias;Le&&(me=Le[0],C(he,v([0,1],Le)));for(var Pe=1,Te=!0;Pe<he.length;Pe+=1){var ke=he[Pe],lt=J(ke,0,1),ft=J(ke,-1);if((lt==='"'||lt==="'"||lt==="`"||ft==='"'||ft==="'"||ft==="`")&&lt!==ft)throw new c("property names with quotes must have matching quotes");if((ke==="constructor"||!Te)&&(be=!0),me+="."+ke,ye="%"+me+"%",R(k,ye))Re=k[ye];else if(Re!=null){if(!(ke in Re)){if(!ve)throw new d("base intrinsic for "+pe+" exists, but the property is not available.");return}if(V&&Pe+1>=he.length){var vt=V(Re,ke);Te=!!vt,Te&&"get"in vt&&!("originalValue"in vt.get)?Re=vt.get:Re=Re[ke]}else Te=R(Re,ke),Re=Re[ke];Te&&!be&&(k[ye]=Re)}}return Re},Ld}var zd,g0;function wu(){if(g0)return zd;g0=1;var r=un(),t=r("%Object.defineProperty%",!0),a=function(){if(t)try{return t({},"a",{value:1}),!0}catch{return!1}return!1};return a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},zd=a,zd}var Pd,m0;function rg(){if(m0)return Pd;m0=1;var r=wu()(),t=un(),a=r&&t("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch{a=!1}var l=t("%SyntaxError%"),o=t("%TypeError%"),u=Eo();return Pd=function(d,h,p){if(!d||typeof d!="object"&&typeof d!="function")throw new o("`obj` must be an object or a function`");if(typeof h!="string"&&typeof h!="symbol")throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new o("`loose`, if provided, must be a boolean");var m=arguments.length>3?arguments[3]:null,y=arguments.length>4?arguments[4]:null,x=arguments.length>5?arguments[5]:null,T=arguments.length>6?arguments[6]:!1,N=!!u&&u(d,h);if(a)a(d,h,{configurable:x===null&&N?N.configurable:!x,enumerable:m===null&&N?N.enumerable:!m,value:p,writable:y===null&&N?N.writable:!y});else if(T||!m&&!y&&!x)d[h]=p;else throw new l("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Pd}var Hd,v0;function Ia(){if(v0)return Hd;v0=1;var r=eg(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",a=Object.prototype.toString,l=Array.prototype.concat,o=rg(),u=function(p){return typeof p=="function"&&a.call(p)==="[object Function]"},c=wu()(),d=function(p,m,y,x){if(m in p){if(x===!0){if(p[m]===y)return}else if(!u(x)||!x())return}c?o(p,m,y,!0):o(p,m,y)},h=function(p,m){var y=arguments.length>2?arguments[2]:{},x=r(m);t&&(x=l.call(x,Object.getOwnPropertySymbols(m)));for(var T=0;T<x.length;T+=1)d(p,x[T],m[x[T]],y[x[T]])};return h.supportsDescriptors=!!c,Hd=h,Hd}var kd={exports:{}},Bd,y0;function e_(){if(y0)return Bd;y0=1;var r=un(),t=rg(),a=wu()(),l=Eo(),o=r("%TypeError%"),u=r("%Math.floor%");return Bd=function(d,h){if(typeof d!="function")throw new o("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||u(h)!==h)throw new o("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],m=!0,y=!0;if("length"in d&&l){var x=l(d,"length");x&&!x.configurable&&(m=!1),x&&!x.writable&&(y=!1)}return(m||y||!p)&&(a?t(d,"length",h,!0,!0):t(d,"length",h)),d},Bd}var b0;function Hi(){return b0||(b0=1,function(r){var t=To(),a=un(),l=e_(),o=a("%TypeError%"),u=a("%Function.prototype.apply%"),c=a("%Function.prototype.call%"),d=a("%Reflect.apply%",!0)||t.call(c,u),h=a("%Object.defineProperty%",!0),p=a("%Math.max%");if(h)try{h({},"a",{value:1})}catch{h=null}r.exports=function(x){if(typeof x!="function")throw new o("a function is required");var T=d(t,c,arguments);return l(T,1+p(0,x.length-(arguments.length-1)),!0)};var m=function(){return d(t,u,arguments)};h?h(r.exports,"apply",{value:m}):r.exports.apply=m}(kd)),kd.exports}var $d,S0;function Pn(){if(S0)return $d;S0=1;var r=un(),t=Hi(),a=t(r("String.prototype.indexOf"));return $d=function(o,u){var c=r(o,!!u);return typeof c=="function"&&a(o,".prototype.")>-1?t(c):c},$d}var Id,w0;function Lw(){if(w0)return Id;w0=1;var r=eg(),t=Su()(),a=Pn(),l=Object,o=a("Array.prototype.push"),u=a("Object.prototype.propertyIsEnumerable"),c=t?Object.getOwnPropertySymbols:null;return Id=function(h,p){if(h==null)throw new TypeError("target must be an object");var m=l(h);if(arguments.length===1)return m;for(var y=1;y<arguments.length;++y){var x=l(arguments[y]),T=r(x),N=t&&(Object.getOwnPropertySymbols||c);if(N)for(var _=N(x),z=0;z<_.length;++z){var $=_[z];u(x,$)&&o(T,$)}for(var V=0;V<T.length;++V){var I=T[V];if(u(x,I)){var Q=x[I];m[I]=Q}}}return m},Id}var qd,x0;function zw(){if(x0)return qd;x0=1;var r=Lw(),t=function(){if(!Object.assign)return!1;for(var l="abcdefghijklmnopqrst",o=l.split(""),u={},c=0;c<o.length;++c)u[o[c]]=o[c];var d=Object.assign({},u),h="";for(var p in d)h+=p;return l!==h},a=function(){if(!Object.assign||!Object.preventExtensions)return!1;var l=Object.preventExtensions({1:2});try{Object.assign(l,"xy")}catch{return l[1]==="y"}return!1};return qd=function(){return!Object.assign||t()||a()?r:Object.assign},qd}var Ud,O0;function t_(){if(O0)return Ud;O0=1;var r=Ia(),t=zw();return Ud=function(){var l=t();return r(Object,{assign:l},{assign:function(){return Object.assign!==l}}),l},Ud}var Gd,E0;function n_(){if(E0)return Gd;E0=1;var r=Ia(),t=Hi(),a=Lw(),l=zw(),o=t_(),u=t.apply(l()),c=function(h,p){return u(Object,arguments)};return r(c,{getPolyfill:l,implementation:a,shim:o}),Gd=c,Gd}var Vd,T0;function r_(){if(T0)return Vd;T0=1;var r=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}r.functionsHaveConfigurableNames=function(){if(!r()||!t)return!1;var o=t(function(){},"name");return!!o&&!!o.configurable};var a=Function.prototype.bind;return r.boundFunctionsHaveNames=function(){return r()&&typeof a=="function"&&(function(){}).bind().name!==""},Vd=r,Vd}var Yd,C0;function a_(){if(C0)return Yd;C0=1;var r=rg(),t=wu()(),a=r_().functionsHaveConfigurableNames(),l=TypeError;return Yd=function(u,c){if(typeof u!="function")throw new l("`fn` is not a function");var d=arguments.length>2&&!!arguments[2];return(!d||a)&&(t?r(u,"name",c,!0,!0):r(u,"name",c)),u},Yd}var Xd,R0;function Pw(){if(R0)return Xd;R0=1;var r=a_(),t=Object,a=TypeError;return Xd=r(function(){if(this!=null&&this!==t(this))throw new a("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.unicodeSets&&(o+="v"),this.sticky&&(o+="y"),o},"get flags",!0),Xd}var Wd,_0;function Hw(){if(_0)return Wd;_0=1;var r=Pw(),t=Ia().supportsDescriptors,a=Object.getOwnPropertyDescriptor;return Wd=function(){if(t&&/a/mig.flags==="gim"){var o=a(RegExp.prototype,"flags");if(o&&typeof o.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var u="",c={};if(Object.defineProperty(c,"hasIndices",{get:function(){u+="d"}}),Object.defineProperty(c,"sticky",{get:function(){u+="y"}}),u==="dy")return o.get}}return r},Wd}var Fd,j0;function i_(){if(j0)return Fd;j0=1;var r=Ia().supportsDescriptors,t=Hw(),a=Object.getOwnPropertyDescriptor,l=Object.defineProperty,o=TypeError,u=Object.getPrototypeOf,c=/a/;return Fd=function(){if(!r||!u)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var h=t(),p=u(c),m=a(p,"flags");return(!m||m.get!==h)&&l(p,"flags",{configurable:!0,enumerable:!1,get:h}),h},Fd}var Qd,A0;function l_(){if(A0)return Qd;A0=1;var r=Ia(),t=Hi(),a=Pw(),l=Hw(),o=i_(),u=t(l());return r(u,{getPolyfill:l,implementation:a,shim:o}),Qd=u,Qd}var ql={exports:{}},Zd,M0;function qa(){if(M0)return Zd;M0=1;var r=Su();return Zd=function(){return r()&&!!Symbol.toStringTag},Zd}var Kd,N0;function kw(){if(N0)return Kd;N0=1;var r=qa()(),t=Pn(),a=t("Object.prototype.toString"),l=function(d){return r&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:a(d)==="[object Arguments]"},o=function(d){return l(d)?!0:d!==null&&typeof d=="object"&&typeof d.length=="number"&&d.length>=0&&a(d)!=="[object Array]"&&a(d.callee)==="[object Function]"},u=function(){return l(arguments)}();return l.isLegacyArguments=o,Kd=u?l:o,Kd}const o_={},s_=Object.freeze(Object.defineProperty({__proto__:null,default:o_},Symbol.toStringTag,{value:"Module"})),u_=X1(s_);var Jd,D0;function xu(){if(D0)return Jd;D0=1;var r=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&t&&typeof t.get=="function"?t.get:null,l=r&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,u=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=o&&u&&typeof u.get=="function"?u.get:null,d=o&&Set.prototype.forEach,h=typeof WeakMap=="function"&&WeakMap.prototype,p=h?WeakMap.prototype.has:null,m=typeof WeakSet=="function"&&WeakSet.prototype,y=m?WeakSet.prototype.has:null,x=typeof WeakRef=="function"&&WeakRef.prototype,T=x?WeakRef.prototype.deref:null,N=Boolean.prototype.valueOf,_=Object.prototype.toString,z=Function.prototype.toString,$=String.prototype.match,V=String.prototype.slice,I=String.prototype.replace,Q=String.prototype.toUpperCase,A=String.prototype.toLowerCase,M=RegExp.prototype.test,P=Array.prototype.concat,F=Array.prototype.join,D=Array.prototype.slice,E=Math.floor,W=typeof BigInt=="function"?BigInt.prototype.valueOf:null,B=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,k=typeof Symbol=="function"&&typeof Symbol.iterator=="object",G=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||!0)?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,b=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ie){return ie.__proto__}:null);function te(ie,se){if(ie===1/0||ie===-1/0||ie!==ie||ie&&ie>-1e3&&ie<1e3||M.call(/e/,se))return se;var Ve=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ie=="number"){var We=ie<0?-E(-ie):E(ie);if(We!==ie){var Ze=String(We),ze=V.call(se,Ze.length+1);return I.call(Ze,Ve,"$&_")+"."+I.call(I.call(ze,/([0-9]{3})/g,"$&_"),/_$/,"")}}return I.call(se,Ve,"$&_")}var R=u_,v=R.custom,C=Se(v)?v:null,Y={__proto__:null,double:'"',single:"'"},J={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Jd=function ie(se,Ve,We,Ze){var ze=Ve||{};if(be(ze,"quoteStyle")&&!be(Y,ze.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(be(ze,"maxStringLength")&&(typeof ze.maxStringLength=="number"?ze.maxStringLength<0&&ze.maxStringLength!==1/0:ze.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var qt=be(ze,"customInspect")?ze.customInspect:!0;if(typeof qt!="boolean"&&qt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(be(ze,"indent")&&ze.indent!==null&&ze.indent!==" "&&!(parseInt(ze.indent,10)===ze.indent&&ze.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(be(ze,"numericSeparator")&&typeof ze.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var tr=ze.numericSeparator;if(typeof se>"u")return"undefined";if(se===null)return"null";if(typeof se=="boolean")return se?"true":"false";if(typeof se=="string")return Be(se,ze);if(typeof se=="number"){if(se===0)return 1/0/se>0?"0":"-0";var Pt=String(se);return tr?te(se,Pt):Pt}if(typeof se=="bigint"){var jn=String(se)+"n";return tr?te(se,jn):jn}var da=typeof ze.depth>"u"?5:ze.depth;if(typeof We>"u"&&(We=0),We>=da&&da>0&&typeof se=="object")return re(se)?"[Array]":"[Object]";var Hn=Ga(ze,We);if(typeof Ze>"u")Ze=[];else if(Te(Ze,se)>=0)return"[Circular]";function Ut(rr,pa,ar){if(pa&&(Ze=D.call(Ze),Ze.push(pa)),ar){var ir={depth:ze.depth};return be(ze,"quoteStyle")&&(ir.quoteStyle=ze.quoteStyle),ie(rr,ir,We+1,Ze)}return ie(rr,ze,We+1,Ze)}if(typeof se=="function"&&!ge(se)){var zo=Pe(se),An=cn(se,Ut);return"[Function"+(zo?": "+zo:" (anonymous)")+"]"+(An.length>0?" { "+F.call(An,", ")+" }":"")}if(Se(se)){var Et=k?I.call(String(se),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(se);return typeof se=="object"&&!k?dt(Et):Et}if(Ae(se)){for(var wt="<"+A.call(String(se.nodeName)),kn=se.attributes||[],Nr=0;Nr<kn.length;Nr++)wt+=" "+kn[Nr].name+"="+H(U(kn[Nr].value),"double",ze);return wt+=">",se.childNodes&&se.childNodes.length&&(wt+="..."),wt+="</"+A.call(String(se.nodeName))+">",wt}if(re(se)){if(se.length===0)return"[]";var Gi=cn(se,Ut);return Hn&&!Nu(Gi)?"["+Mr(Gi,Hn)+"]":"[ "+F.call(Gi,", ")+" ]"}if(pe(se)){var Vi=cn(se,Ut);return!("cause"in Error.prototype)&&"cause"in se&&!L.call(se,"cause")?"{ ["+String(se)+"] "+F.call(P.call("[cause]: "+Ut(se.cause),Vi),", ")+" }":Vi.length===0?"["+String(se)+"]":"{ ["+String(se)+"] "+F.call(Vi,", ")+" }"}if(typeof se=="object"&&qt){if(C&&typeof se[C]=="function"&&R)return R(se,{depth:da-We});if(qt!=="symbol"&&typeof se.inspect=="function")return se.inspect()}if(ke(se)){var Yi=[];return l&&l.call(se,function(rr,pa){Yi.push(Ut(pa,se,!0)+" => "+Ut(rr,se))}),Lo("Map",a.call(se),Yi,Hn)}if(vt(se)){var Dr=[];return d&&d.call(se,function(rr){Dr.push(Ut(rr,se))}),Lo("Set",c.call(se),Dr,Hn)}if(lt(se))return Ui("WeakMap");if(Mt(se))return Ui("WeakSet");if(ft(se))return Ui("WeakRef");if(he(se))return dt(Ut(Number(se)));if(ye(se))return dt(Ut(W.call(se)));if(me(se))return dt(N.call(se));if(ve(se))return dt(Ut(String(se)));if(typeof window<"u"&&se===window)return"{ [object Window] }";if(typeof globalThis<"u"&&se===globalThis||typeof xr<"u"&&se===xr)return"{ [object globalThis] }";if(!ue(se)&&!ge(se)){var ha=cn(se,Ut),nr=b?b(se)===Object.prototype:se instanceof Object||se.constructor===Object,Bn=se instanceof Object?"":"null prototype",Lr=!nr&&G&&Object(se)===se&&G in se?V.call(Le(se),8,-1):Bn?"Object":"",zr=nr||typeof se.constructor!="function"?"":se.constructor.name?se.constructor.name+" ":"",ht=zr+(Lr||Bn?"["+F.call(P.call([],Lr||[],Bn||[]),": ")+"] ":"");return ha.length===0?ht+"{}":Hn?ht+"{"+Mr(ha,Hn)+"}":ht+"{ "+F.call(ha,", ")+" }"}return String(se)};function H(ie,se,Ve){var We=Ve.quoteStyle||se,Ze=Y[We];return Ze+ie+Ze}function U(ie){return I.call(String(ie),/"/g,"&quot;")}function Z(ie){return!G||!(typeof ie=="object"&&(G in ie||typeof ie[G]<"u"))}function re(ie){return Le(ie)==="[object Array]"&&Z(ie)}function ue(ie){return Le(ie)==="[object Date]"&&Z(ie)}function ge(ie){return Le(ie)==="[object RegExp]"&&Z(ie)}function pe(ie){return Le(ie)==="[object Error]"&&Z(ie)}function ve(ie){return Le(ie)==="[object String]"&&Z(ie)}function he(ie){return Le(ie)==="[object Number]"&&Z(ie)}function me(ie){return Le(ie)==="[object Boolean]"&&Z(ie)}function Se(ie){if(k)return ie&&typeof ie=="object"&&ie instanceof Symbol;if(typeof ie=="symbol")return!0;if(!ie||typeof ie!="object"||!q)return!1;try{return q.call(ie),!0}catch{}return!1}function ye(ie){if(!ie||typeof ie!="object"||!W)return!1;try{return W.call(ie),!0}catch{}return!1}var Re=Object.prototype.hasOwnProperty||function(ie){return ie in this};function be(ie,se){return Re.call(ie,se)}function Le(ie){return _.call(ie)}function Pe(ie){if(ie.name)return ie.name;var se=$.call(z.call(ie),/^function\s*([\w$]+)/);return se?se[1]:null}function Te(ie,se){if(ie.indexOf)return ie.indexOf(se);for(var Ve=0,We=ie.length;Ve<We;Ve++)if(ie[Ve]===se)return Ve;return-1}function ke(ie){if(!a||!ie||typeof ie!="object")return!1;try{a.call(ie);try{c.call(ie)}catch{return!0}return ie instanceof Map}catch{}return!1}function lt(ie){if(!p||!ie||typeof ie!="object")return!1;try{p.call(ie,p);try{y.call(ie,y)}catch{return!0}return ie instanceof WeakMap}catch{}return!1}function ft(ie){if(!T||!ie||typeof ie!="object")return!1;try{return T.call(ie),!0}catch{}return!1}function vt(ie){if(!c||!ie||typeof ie!="object")return!1;try{c.call(ie);try{a.call(ie)}catch{return!0}return ie instanceof Set}catch{}return!1}function Mt(ie){if(!y||!ie||typeof ie!="object")return!1;try{y.call(ie,y);try{p.call(ie,p)}catch{return!0}return ie instanceof WeakSet}catch{}return!1}function Ae(ie){return!ie||typeof ie!="object"?!1:typeof HTMLElement<"u"&&ie instanceof HTMLElement?!0:typeof ie.nodeName=="string"&&typeof ie.getAttribute=="function"}function Be(ie,se){if(ie.length>se.maxStringLength){var Ve=ie.length-se.maxStringLength,We="... "+Ve+" more character"+(Ve>1?"s":"");return Be(V.call(ie,0,se.maxStringLength),se)+We}var Ze=J[se.quoteStyle||"single"];Ze.lastIndex=0;var ze=I.call(I.call(ie,Ze,"\\$1"),/[\x00-\x1f]/g,nt);return H(ze,"single",se)}function nt(ie){var se=ie.charCodeAt(0),Ve={8:"b",9:"t",10:"n",12:"f",13:"r"}[se];return Ve?"\\"+Ve:"\\x"+(se<16?"0":"")+Q.call(se.toString(16))}function dt(ie){return"Object("+ie+")"}function Ui(ie){return ie+" { ? }"}function Lo(ie,se,Ve,We){var Ze=We?Mr(Ve,We):F.call(Ve,", ");return ie+" ("+se+") {"+Ze+"}"}function Nu(ie){for(var se=0;se<ie.length;se++)if(Te(ie[se],`
61
- `)>=0)return!1;return!0}function Ga(ie,se){var Ve;if(ie.indent===" ")Ve=" ";else if(typeof ie.indent=="number"&&ie.indent>0)Ve=F.call(Array(ie.indent+1)," ");else return null;return{base:Ve,prev:F.call(Array(se+1),Ve)}}function Mr(ie,se){if(ie.length===0)return"";var Ve=`
60
+ Please change the parent <Route path="${I}"> to <Route path="${I==="/"?"*":`${I}/*`}">.`)}let x=er(),T;if(t){let I=typeof t=="string"?Di(t):t;ct(g==="/"||((V=I.pathname)==null?void 0:V.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${I.pathname}" was given in the \`location\` prop.`),T=I}else T=x;let N=T.pathname||"/",_=N;if(g!=="/"){let I=g.replace(/^\//,"").split("/");_="/"+N.replace(/^\//,"").split("/").slice(I.length).join("/")}let z=F1(r,{pathname:_});xn(v||z!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),xn(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let $=s2(z&&z.map(I=>Object.assign({},I,{params:Object.assign({},h,I.params),pathname:Er([g,u.encodeLocation?u.encodeLocation(I.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?g:Er([g,u.encodeLocation?u.encodeLocation(I.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:I.pathnameBase])})),c,a,l,o);return t&&$?w.createElement(zi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...T},navigationType:"POP"}},$):$}function a2(){let r=h2(),t=UC(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),a=r instanceof Error?r.stack:null,l="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:l},u={padding:"2px 4px",backgroundColor:l},c=null;return console.error("Error handled by React Router default ErrorBoundary:",r),c=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:u},"ErrorBoundary")," or"," ",w.createElement("code",{style:u},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),a?w.createElement("pre",{style:o},a):null,c)}var i2=w.createElement(a2,null),cw=class extends w.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,t){return t.location!==r.location||t.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:t.error,location:t.location,revalidation:r.revalidation||t.revalidation}}componentDidCatch(r,t){this.props.onError?this.props.onError(r,t):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const a=KC(r.digest);a&&(r=a)}let t=r!==void 0?w.createElement(zn.Provider,{value:this.props.routeContext},w.createElement(Gp.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?w.createElement(l2,{error:r},t):t}};cw.contextType=WC;var Xf=new WeakMap;function l2({children:r,error:t}){let{basename:a}=w.useContext(Rn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let l=ZC(t.digest);if(l){let o=Xf.get(t);if(o)throw o;let u=nw(l.location,a);if(tw&&!Xf.get(t))if(u.isExternal||l.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:l.replace}));throw Xf.set(t,c),c}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return r}function o2({routeContext:r,match:t,children:a}){let l=w.useContext(Li);return l&&l.static&&l.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(zn.Provider,{value:r},a)}function s2(r,t=[],a=null,l=null,o=null){if(r==null){if(!a)return null;if(a.errors)r=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)r=a.matches;else return null}let u=r,c=a==null?void 0:a.errors;if(c!=null){let g=u.findIndex(v=>v.route.id&&(c==null?void 0:c[v.route.id])!==void 0);ct(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),u=u.slice(0,Math.min(u.length,g+1))}let d=!1,h=-1;if(a)for(let g=0;g<u.length;g++){let v=u[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=g),v.route.id){let{loaderData:x,errors:T}=a,N=v.route.loader&&!x.hasOwnProperty(v.route.id)&&(!T||T[v.route.id]===void 0);if(v.route.lazy||N){d=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}let p=a&&l?(g,v)=>{var x,T;l(g,{location:a.location,params:((T=(x=a.matches)==null?void 0:x[0])==null?void 0:T.params)??{},unstable_pattern:GC(a.matches),errorInfo:v})}:void 0;return u.reduceRight((g,v,x)=>{let T,N=!1,_=null,z=null;a&&(T=c&&v.route.id?c[v.route.id]:void 0,_=v.route.errorElement||i2,d&&(h<0&&x===0?(fw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,z=null):h===x&&(N=!0,z=v.route.hydrateFallbackElement||null)));let $=t.concat(u.slice(0,x+1)),V=()=>{let I;return T?I=_:N?I=z:v.route.Component?I=w.createElement(v.route.Component,null):v.route.element?I=v.route.element:I=g,w.createElement(o2,{match:v,routeContext:{outlet:g,matches:$,isDataRoute:a!=null},children:I})};return a&&(v.route.ErrorBoundary||v.route.errorElement||x===0)?w.createElement(cw,{location:a.location,revalidation:a.revalidation,component:_,error:T,children:V(),routeContext:{outlet:null,matches:$,isDataRoute:!0},onError:p}):V()},null)}function Wp(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function u2(r){let t=w.useContext(Li);return ct(t,Wp(r)),t}function c2(r){let t=w.useContext(vu);return ct(t,Wp(r)),t}function f2(r){let t=w.useContext(zn);return ct(t,Wp(r)),t}function Yp(r){let t=f2(r),a=t.matches[t.matches.length-1];return ct(a.route.id,`${r} can only be used on routes that contain a unique "id"`),a.route.id}function d2(){return Yp("useRouteId")}function h2(){var l;let r=w.useContext(Gp),t=c2("useRouteError"),a=Yp("useRouteError");return r!==void 0?r:(l=t.errors)==null?void 0:l[a]}function p2(){let{router:r}=u2("useNavigate"),t=Yp("useNavigate"),a=w.useRef(!1);return sw(()=>{a.current=!0}),w.useCallback(async(o,u={})=>{xn(a.current,ow),a.current&&(typeof o=="number"?await r.navigate(o):await r.navigate(o,{fromRouteId:t,...u}))},[r,t])}var Ab={};function fw(r,t,a){!t&&!Ab[r]&&(Ab[r]=!0,xn(!1,a))}w.memo(m2);function m2({routes:r,future:t,state:a,onError:l}){return uw(r,void 0,a,l,t)}function Xp(r){return n2(r.context)}function It(r){ct(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function g2({basename:r="/",children:t=null,location:a,navigationType:l="POP",navigator:o,static:u=!1,unstable_useTransitions:c}){ct(!wo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=r.replace(/^\/*/,"/"),h=w.useMemo(()=>({basename:d,navigator:o,static:u,unstable_useTransitions:c,future:{}}),[d,o,u,c]);typeof a=="string"&&(a=Di(a));let{pathname:p="/",search:g="",hash:v="",state:x=null,key:T="default"}=a,N=w.useMemo(()=>{let _=Cr(p,d);return _==null?null:{location:{pathname:_,search:g,hash:v,state:x,key:T},navigationType:l}},[d,p,g,v,x,T,l]);return xn(N!=null,`<Router basename="${d}"> is not able to match the URL "${p}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:w.createElement(Rn.Provider,{value:h},w.createElement(zi.Provider,{children:t,value:N}))}function v2({children:r,location:t}){return r2(xp(r),t)}function xp(r,t=[]){let a=[];return w.Children.forEach(r,(l,o)=>{if(!w.isValidElement(l))return;let u=[...t,o];if(l.type===w.Fragment){a.push.apply(a,xp(l.props.children,u));return}ct(l.type===It,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ct(!l.props.index||!l.props.children,"An index route cannot have child routes.");let c={id:l.props.id||u.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(c.children=xp(l.props.children,u)),a.push(c)}),a}var eu="get",tu="application/x-www-form-urlencoded";function yu(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function y2(r){return yu(r)&&r.tagName.toLowerCase()==="button"}function b2(r){return yu(r)&&r.tagName.toLowerCase()==="form"}function S2(r){return yu(r)&&r.tagName.toLowerCase()==="input"}function w2(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function x2(r,t){return r.button===0&&(!t||t==="_self")&&!w2(r)}function Op(r=""){return new URLSearchParams(typeof r=="string"||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((t,a)=>{let l=r[a];return t.concat(Array.isArray(l)?l.map(o=>[a,o]):[[a,l]])},[]))}function O2(r,t){let a=Op(r);return t&&t.forEach((l,o)=>{a.has(o)||t.getAll(o).forEach(u=>{a.append(o,u)})}),a}var Ws=null;function E2(){if(Ws===null)try{new FormData(document.createElement("form"),0),Ws=!1}catch{Ws=!0}return Ws}var T2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ff(r){return r!=null&&!T2.has(r)?(xn(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${tu}"`),null):r}function C2(r,t){let a,l,o,u,c;if(b2(r)){let d=r.getAttribute("action");l=d?Cr(d,t):null,a=r.getAttribute("method")||eu,o=Ff(r.getAttribute("enctype"))||tu,u=new FormData(r)}else if(y2(r)||S2(r)&&(r.type==="submit"||r.type==="image")){let d=r.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=r.getAttribute("formaction")||d.getAttribute("action");if(l=h?Cr(h,t):null,a=r.getAttribute("formmethod")||d.getAttribute("method")||eu,o=Ff(r.getAttribute("formenctype"))||Ff(d.getAttribute("enctype"))||tu,u=new FormData(d,r),!E2()){let{name:p,type:g,value:v}=r;if(g==="image"){let x=p?`${p}.`:"";u.append(`${x}x`,"0"),u.append(`${x}y`,"0")}else p&&u.append(p,v)}}else{if(yu(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=eu,l=null,o=tu,c=r}return u&&o==="text/plain"&&(c=u,u=void 0),{action:l,method:a.toLowerCase(),encType:o,formData:u,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Fp(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}function R2(r,t,a,l){let o=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return a?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${l}`:o.pathname=`${o.pathname}.${l}`:o.pathname==="/"?o.pathname=`_root.${l}`:t&&Cr(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${l}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${l}`,o}async function _2(r,t){if(r.id in t)return t[r.id];try{let a=await import(r.module);return t[r.id]=a,a}catch(a){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function j2(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function A2(r,t,a){let l=await Promise.all(r.map(async o=>{let u=t.routes[o.route.id];if(u){let c=await _2(u,a);return c.links?c.links():[]}return[]}));return L2(l.flat(1).filter(j2).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Mb(r,t,a,l,o,u){let c=(h,p)=>a[p]?h.route.id!==a[p].route.id:!0,d=(h,p)=>{var g;return a[p].pathname!==h.pathname||((g=a[p].route.path)==null?void 0:g.endsWith("*"))&&a[p].params["*"]!==h.params["*"]};return u==="assets"?t.filter((h,p)=>c(h,p)||d(h,p)):u==="data"?t.filter((h,p)=>{var v;let g=l.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(c(h,p)||d(h,p))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=a[0])==null?void 0:v.params)||{},nextUrl:new URL(r,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function M2(r,t,{includeHydrateFallback:a}={}){return N2(r.map(l=>{let o=t.routes[l.route.id];if(!o)return[];let u=[o.module];return o.clientActionModule&&(u=u.concat(o.clientActionModule)),o.clientLoaderModule&&(u=u.concat(o.clientLoaderModule)),a&&o.hydrateFallbackModule&&(u=u.concat(o.hydrateFallbackModule)),o.imports&&(u=u.concat(o.imports)),u}).flat(1))}function N2(r){return[...new Set(r)]}function D2(r){let t={},a=Object.keys(r).sort();for(let l of a)t[l]=r[l];return t}function L2(r,t){let a=new Set;return new Set(t),r.reduce((l,o)=>{let u=JSON.stringify(D2(o));return a.has(u)||(a.add(u),l.push({key:u,link:o})),l},[])}function dw(){let r=w.useContext(Li);return Fp(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function z2(){let r=w.useContext(vu);return Fp(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var Qp=w.createContext(void 0);Qp.displayName="FrameworkContext";function hw(){let r=w.useContext(Qp);return Fp(r,"You must render this element inside a <HydratedRouter> element"),r}function P2(r,t){let a=w.useContext(Qp),[l,o]=w.useState(!1),[u,c]=w.useState(!1),{onFocus:d,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=t,x=w.useRef(null);w.useEffect(()=>{if(r==="render"&&c(!0),r==="viewport"){let _=$=>{$.forEach(V=>{c(V.isIntersecting)})},z=new IntersectionObserver(_,{threshold:.5});return x.current&&z.observe(x.current),()=>{z.disconnect()}}},[r]),w.useEffect(()=>{if(l){let _=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(_)}}},[l]);let T=()=>{o(!0)},N=()=>{o(!1),c(!1)};return a?r!=="intent"?[u,x,{}]:[u,x,{onFocus:Il(d,T),onBlur:Il(h,N),onMouseEnter:Il(p,T),onMouseLeave:Il(g,N),onTouchStart:Il(v,T)}]:[!1,x,{}]}function Il(r,t){return a=>{r&&r(a),a.defaultPrevented||t(a)}}function H2({page:r,...t}){let{router:a}=dw(),l=w.useMemo(()=>F1(a.routes,r,a.basename),[a.routes,r,a.basename]);return l?w.createElement(B2,{page:r,matches:l,...t}):null}function k2(r){let{manifest:t,routeModules:a}=hw(),[l,o]=w.useState([]);return w.useEffect(()=>{let u=!1;return A2(r,t,a).then(c=>{u||o(c)}),()=>{u=!0}},[r,t,a]),l}function B2({page:r,matches:t,...a}){let l=er(),{future:o,manifest:u,routeModules:c}=hw(),{basename:d}=dw(),{loaderData:h,matches:p}=z2(),g=w.useMemo(()=>Mb(r,t,p,u,l,"data"),[r,t,p,u,l]),v=w.useMemo(()=>Mb(r,t,p,u,l,"assets"),[r,t,p,u,l]),x=w.useMemo(()=>{if(r===l.pathname+l.search+l.hash)return[];let _=new Set,z=!1;if(t.forEach(V=>{var Q;let I=u.routes[V.route.id];!I||!I.hasLoader||(!g.some(j=>j.route.id===V.route.id)&&V.route.id in h&&((Q=c[V.route.id])!=null&&Q.shouldRevalidate)||I.hasClientLoader?z=!0:_.add(V.route.id))}),_.size===0)return[];let $=R2(r,d,o.unstable_trailingSlashAwareDataRequests,"data");return z&&_.size>0&&$.searchParams.set("_routes",t.filter(V=>_.has(V.route.id)).map(V=>V.route.id).join(",")),[$.pathname+$.search]},[d,o.unstable_trailingSlashAwareDataRequests,h,l,u,g,t,r,c]),T=w.useMemo(()=>M2(v,u),[v,u]),N=k2(v);return w.createElement(w.Fragment,null,x.map(_=>w.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...a})),T.map(_=>w.createElement("link",{key:_,rel:"modulepreload",href:_,...a})),N.map(({key:_,link:z})=>w.createElement("link",{key:_,nonce:a.nonce,...z})))}function $2(...r){return t=>{r.forEach(a=>{typeof a=="function"?a(t):a!=null&&(a.current=t)})}}var I2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{I2&&(window.__reactRouterVersion="7.12.0")}catch{}function q2({basename:r,children:t,unstable_useTransitions:a,window:l}){let o=w.useRef();o.current==null&&(o.current=bC({window:l,v5Compat:!0}));let u=o.current,[c,d]=w.useState({action:u.action,location:u.location}),h=w.useCallback(p=>{a===!1?d(p):w.startTransition(()=>d(p))},[a]);return w.useLayoutEffect(()=>u.listen(h),[u,h]),w.createElement(g2,{basename:r,children:t,location:c.location,navigationType:c.action,navigator:u,unstable_useTransitions:a})}var pw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,on=w.forwardRef(function({onClick:t,discover:a="render",prefetch:l="none",relative:o,reloadDocument:u,replace:c,state:d,target:h,to:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:x,...T},N){let{basename:_,unstable_useTransitions:z}=w.useContext(Rn),$=typeof p=="string"&&pw.test(p),V=nw(p,_);p=V.to;let I=JC(p,{relative:o}),[Q,j,M]=P2(l,T),P=V2(p,{replace:c,state:d,target:h,preventScrollReset:g,relative:o,viewTransition:v,unstable_defaultShouldRevalidate:x,unstable_useTransitions:z});function F(E){t&&t(E),E.defaultPrevented||P(E)}let D=w.createElement("a",{...T,...M,href:V.absoluteURL||I,onClick:V.isExternal||u?t:F,ref:$2(N,j),target:h,"data-discover":!$&&a==="render"?"true":void 0});return Q&&!$?w.createElement(w.Fragment,null,D,w.createElement(H2,{page:I})):D});on.displayName="Link";var lu=w.forwardRef(function({"aria-current":t="page",caseSensitive:a=!1,className:l="",end:o=!1,style:u,to:c,viewTransition:d,children:h,...p},g){let v=xo(c,{relative:p.relative}),x=er(),T=w.useContext(vu),{navigator:N,basename:_}=w.useContext(Rn),z=T!=null&&Q2(v)&&d===!0,$=N.encodeLocation?N.encodeLocation(v).pathname:v.pathname,V=x.pathname,I=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;a||(V=V.toLowerCase(),I=I?I.toLowerCase():null,$=$.toLowerCase()),I&&_&&(I=Cr(I,_)||I);const Q=$!=="/"&&$.endsWith("/")?$.length-1:$.length;let j=V===$||!o&&V.startsWith($)&&V.charAt(Q)==="/",M=I!=null&&(I===$||!o&&I.startsWith($)&&I.charAt($.length)==="/"),P={isActive:j,isPending:M,isTransitioning:z},F=j?t:void 0,D;typeof l=="function"?D=l(P):D=[l,j?"active":null,M?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let E=typeof u=="function"?u(P):u;return w.createElement(on,{...p,"aria-current":F,className:D,ref:g,style:E,to:c,viewTransition:d},typeof h=="function"?h(P):h)});lu.displayName="NavLink";var U2=w.forwardRef(({discover:r="render",fetcherKey:t,navigate:a,reloadDocument:l,replace:o,state:u,method:c=eu,action:d,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:x,...T},N)=>{let{unstable_useTransitions:_}=w.useContext(Rn),z=X2(),$=F2(d,{relative:p}),V=c.toLowerCase()==="get"?"get":"post",I=typeof d=="string"&&pw.test(d),Q=j=>{if(h&&h(j),j.defaultPrevented)return;j.preventDefault();let M=j.nativeEvent.submitter,P=(M==null?void 0:M.getAttribute("formmethod"))||c,F=()=>z(M||j.currentTarget,{fetcherKey:t,method:P,navigate:a,replace:o,state:u,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:x});_&&a!==!1?w.startTransition(()=>F()):F()};return w.createElement("form",{ref:N,method:V,action:$,onSubmit:l?h:Q,...T,"data-discover":!I&&r==="render"?"true":void 0})});U2.displayName="Form";function G2(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mw(r){let t=w.useContext(Li);return ct(t,G2(r)),t}function V2(r,{target:t,replace:a,state:l,preventScrollReset:o,relative:u,viewTransition:c,unstable_defaultShouldRevalidate:d,unstable_useTransitions:h}={}){let p=Vp(),g=er(),v=xo(r,{relative:u});return w.useCallback(x=>{if(x2(x,t)){x.preventDefault();let T=a!==void 0?a:io(g)===io(v),N=()=>p(r,{replace:T,state:l,preventScrollReset:o,relative:u,viewTransition:c,unstable_defaultShouldRevalidate:d});h?w.startTransition(()=>N()):N()}},[g,p,v,a,l,t,r,o,u,c,d,h])}function Oo(r){xn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=w.useRef(Op(r)),a=w.useRef(!1),l=er(),o=w.useMemo(()=>O2(l.search,a.current?null:t.current),[l.search]),u=Vp(),c=w.useCallback((d,h)=>{const p=Op(typeof d=="function"?d(new URLSearchParams(o)):d);a.current=!0,u("?"+p,h)},[u,o]);return[o,c]}var W2=0,Y2=()=>`__${String(++W2)}__`;function X2(){let{router:r}=mw("useSubmit"),{basename:t}=w.useContext(Rn),a=d2(),l=r.fetch,o=r.navigate;return w.useCallback(async(u,c={})=>{let{action:d,method:h,encType:p,formData:g,body:v}=C2(u,t);if(c.navigate===!1){let x=c.fetcherKey||Y2();await l(x,a,c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:v,formMethod:c.method||h,formEncType:c.encType||p,flushSync:c.flushSync})}else await o(c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:v,formMethod:c.method||h,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:a,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,o,t,a])}function F2(r,{relative:t}={}){let{basename:a}=w.useContext(Rn),l=w.useContext(zn);ct(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),u={...xo(r||".",{relative:t})},c=er();if(r==null){u.search=c.search;let d=new URLSearchParams(u.search),h=d.getAll("index");if(h.some(g=>g==="")){d.delete("index"),h.filter(v=>v).forEach(v=>d.append("index",v));let g=d.toString();u.search=g?`?${g}`:""}}return(!r||r===".")&&o.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(u.pathname=u.pathname==="/"?a:Er([a,u.pathname])),io(u)}function Q2(r,{relative:t}={}){let a=w.useContext(aw);ct(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=mw("useViewTransitionState"),o=xo(r,{relative:t});if(!a.isTransitioning)return!1;let u=Cr(a.currentLocation.pathname,l)||a.currentLocation.pathname,c=Cr(a.nextLocation.pathname,l)||a.nextLocation.pathname;return iu(o.pathname,c)!=null||iu(o.pathname,u)!=null}var Fn,Jl,Ep;class Z2{constructor(){Sn(this,Fn)}async getCampaignList(t){const a=new URL("/api/campaigns",window.location.href);return t.sortBy&&a.searchParams.append("sort_by",t.sortBy),ia(this,Fn,Jl).call(this,a,t),await(await fetch(a.toString())).json()}async getContentList(t){const{campaign:a,filter:l}=t,o=t.type==="post"?"posts":t.type==="product"?"products":"content",u=new URL(`/api/campaigns/${a.id}/${o}`,window.location.href);return t.collectionId&&u.searchParams.set("collection_id",t.collectionId),ia(this,Fn,Ep).call(this,u,l),ia(this,Fn,Jl).call(this,u,t),await(await fetch(u.toString())).json()}async getCampaign(t){const{withCounts:a=!1}=t,l=new URL(`/api/campaigns/${t.id}`,window.location.href);return l.searchParams.append("with_counts",a?"true":"false"),await(await fetch(l.toString())).json()}async getContentFilterOptions(t,a){const l=typeof t=="string"?t:t.id,o=a==="post"?"posts":"products",u=new URL(`/api/campaigns/${l}/${o}/filter_options`,window.location.href);return await(await fetch(u.toString())).json()}async getPost(t,a=""){const l=new URL(`/api/posts/${t}`,window.location.href);return a&&(l.search=a),await(await fetch(l.toString())).json()}async getProduct(t){const a=new URL(`/api/products/${t}`,window.location.href);return await(await fetch(a.toString())).json()}async getCollection(t){const a=new URL(`/api/collections/${t}`,window.location.href);return await(await fetch(a.toString())).json()}async getCollectionList(t){const{campaign:a,search:l,sortBy:o}=t,u=typeof a=="string"?a:a.id,c=new URL(`/api/campaigns/${u}/collections`,window.location.href);return l&&c.searchParams.append("search",l),o&&c.searchParams.append("sort_by",o),ia(this,Fn,Jl).call(this,c,t),await(await fetch(c.toString())).json()}async getPostTagList(t){const{campaign:a}=t,l=typeof a=="string"?a:a.id,o=new URL(`/api/campaigns/${l}/post_tags`,window.location.href);return await(await fetch(o.toString())).json()}async getBrowseSettings(){const t=new URL("/api/settings/browse",window.location.href);return await(await fetch(t.toString())).json()}async getBrowseSettingOptions(){const t=new URL("/api/settings/browse/options",window.location.href);return await(await fetch(t.toString())).json()}async getMediaList(t){const{campaign:a,filter:l}=t,o=new URL(`/api/campaigns/${a.id}/media`,window.location.href);return ia(this,Fn,Ep).call(this,o,l),ia(this,Fn,Jl).call(this,o,t),await(await fetch(o.toString())).json()}async getMediaFilterOptions(t){const a=typeof t=="string"?t:t.id,l=new URL(`/api/campaigns/${a}/media/filter_options`,window.location.href);return await(await fetch(l.toString())).json()}saveBrowseSettings(t){return fetch("/api/settings/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}}Fn=new WeakSet,Jl=function(t,a){a.page&&t.searchParams.append("p",String(a.page)),t.searchParams.append("n",String(a.itemsPerPage))},Ep=function(t,a){a.options.forEach(({searchParam:l,value:o})=>{o===null?t.searchParams.delete(l):t.searchParams.append(l,o)})};const gw=w.createContext({});function K2(r){const{children:t}=r;return S.jsx(gw.Provider,{value:{api:new Z2},children:t})}const _n=()=>w.useContext(gw);var J2=Function.prototype.toString,Qf=Object.create,eR=Object.prototype.toString,tR=function(){function r(){this._keys=[],this._values=[]}return r.prototype.has=function(t){return!!~this._keys.indexOf(t)},r.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},r.prototype.set=function(t,a){this._keys.push(t),this._values.push(a)},r}();function nR(){return new tR}function rR(){return new WeakMap}var aR=typeof WeakMap<"u"?rR:nR;function Zp(r){if(!r)return Qf(null);var t=r.constructor;if(t===Object)return r===Object.prototype?{}:Qf(r);if(t&&~J2.call(t).indexOf("[native code]"))try{return new t}catch{}return Qf(r)}function iR(r){var t="";return r.global&&(t+="g"),r.ignoreCase&&(t+="i"),r.multiline&&(t+="m"),r.unicode&&(t+="u"),r.sticky&&(t+="y"),t}function lR(r){return r.flags}var oR=/test/g.flags==="g"?lR:iR;function vw(r){var t=eR.call(r);return t.substring(8,t.length-1)}function sR(r){return r[Symbol.toStringTag]||vw(r)}var uR=typeof Symbol<"u"?sR:vw,cR=Object.defineProperty,fR=Object.getOwnPropertyDescriptor,yw=Object.getOwnPropertyNames,Kp=Object.getOwnPropertySymbols,bw=Object.prototype,Sw=bw.hasOwnProperty,dR=bw.propertyIsEnumerable,ww=typeof Kp=="function";function hR(r){return yw(r).concat(Kp(r))}var pR=ww?hR:yw;function bu(r,t,a){for(var l=pR(r),o=0,u=l.length,c=void 0,d=void 0;o<u;++o)if(c=l[o],!(c==="callee"||c==="caller")){if(d=fR(r,c),!d){t[c]=a.copier(r[c],a);continue}!d.get&&!d.set&&(d.value=a.copier(d.value,a));try{cR(t,c,d)}catch{t[c]=d.value}}return t}function mR(r,t){var a=new t.Constructor;t.cache.set(r,a);for(var l=0,o=r.length;l<o;++l)a[l]=t.copier(r[l],t);return a}function gR(r,t){var a=new t.Constructor;return t.cache.set(r,a),bu(r,a,t)}function xw(r,t){return r.slice(0)}function vR(r,t){return r.slice(0,r.size,r.type)}function yR(r,t){return new t.Constructor(xw(r.buffer))}function bR(r,t){return new t.Constructor(r.getTime())}function Ow(r,t){var a=new t.Constructor;return t.cache.set(r,a),r.forEach(function(l,o){a.set(o,t.copier(l,t))}),a}function SR(r,t){return bu(r,Ow(r,t),t)}function wR(r,t){var a=Zp(t.prototype);t.cache.set(r,a);for(var l in r)Sw.call(r,l)&&(a[l]=t.copier(r[l],t));return a}function xR(r,t){var a=Zp(t.prototype);t.cache.set(r,a);for(var l in r)Sw.call(r,l)&&(a[l]=t.copier(r[l],t));for(var o=Kp(r),u=0,c=o.length,d=void 0;u<c;++u)d=o[u],dR.call(r,d)&&(a[d]=t.copier(r[d],t));return a}var OR=ww?xR:wR;function ER(r,t){var a=Zp(t.prototype);return t.cache.set(r,a),bu(r,a,t)}function Zf(r,t){return new t.Constructor(r.valueOf())}function TR(r,t){var a=new t.Constructor(r.source,oR(r));return a.lastIndex=r.lastIndex,a}function nu(r,t){return r}function Ew(r,t){var a=new t.Constructor;return t.cache.set(r,a),r.forEach(function(l){a.add(t.copier(l,t))}),a}function CR(r,t){return bu(r,Ew(r,t),t)}var RR=Array.isArray,Jp=Object.assign,_R=Object.getPrototypeOf||function(r){return r.__proto__},Tw={array:mR,arrayBuffer:xw,blob:vR,dataView:yR,date:bR,error:nu,map:Ow,object:OR,regExp:TR,set:Ew},jR=Jp({},Tw,{array:gR,map:SR,object:ER,set:CR});function AR(r){return{Arguments:r.object,Array:r.array,ArrayBuffer:r.arrayBuffer,Blob:r.blob,Boolean:Zf,DataView:r.dataView,Date:r.date,Error:r.error,Float32Array:r.arrayBuffer,Float64Array:r.arrayBuffer,Int8Array:r.arrayBuffer,Int16Array:r.arrayBuffer,Int32Array:r.arrayBuffer,Map:r.map,Number:Zf,Object:r.object,Promise:nu,RegExp:r.regExp,Set:r.set,String:Zf,WeakMap:nu,WeakSet:nu,Uint8Array:r.arrayBuffer,Uint8ClampedArray:r.arrayBuffer,Uint16Array:r.arrayBuffer,Uint32Array:r.arrayBuffer,Uint64Array:r.arrayBuffer}}function Cw(r){var t=Jp({},Tw,r),a=AR(t),l=a.Array,o=a.Object;function u(c,d){if(d.prototype=d.Constructor=void 0,!c||typeof c!="object")return c;if(d.cache.has(c))return d.cache.get(c);if(d.prototype=_R(c),d.Constructor=d.prototype&&d.prototype.constructor,!d.Constructor||d.Constructor===Object)return o(c,d);if(RR(c))return l(c,d);var h=a[uR(c)];return h?h(c,d):typeof c.then=="function"?c:o(c,d)}return function(d){return u(d,{Constructor:void 0,cache:aR(),copier:u,prototype:void 0})}}function MR(r){return Cw(Jp({},jR,r))}MR({});var Tr=Cw({}),Kf,Nb;function Rw(){if(Nb)return Kf;Nb=1;var r=Object.prototype.toString;return Kf=function(a){var l=r.call(a),o=l==="[object Arguments]";return o||(o=l!=="[object Array]"&&a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&r.call(a.callee)==="[object Function]"),o},Kf}var Jf,Db;function NR(){if(Db)return Jf;Db=1;var r;if(!Object.keys){var t=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=Rw(),o=Object.prototype.propertyIsEnumerable,u=!o.call({toString:null},"toString"),c=o.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(x){var T=x.constructor;return T&&T.prototype===x},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},g=function(){if(typeof window>"u")return!1;for(var x in window)try{if(!p["$"+x]&&t.call(window,x)&&window[x]!==null&&typeof window[x]=="object")try{h(window[x])}catch{return!0}}catch{return!0}return!1}(),v=function(x){if(typeof window>"u"||!g)return h(x);try{return h(x)}catch{return!1}};r=function(T){var N=T!==null&&typeof T=="object",_=a.call(T)==="[object Function]",z=l(T),$=N&&a.call(T)==="[object String]",V=[];if(!N&&!_&&!z)throw new TypeError("Object.keys called on a non-object");var I=c&&_;if($&&T.length>0&&!t.call(T,0))for(var Q=0;Q<T.length;++Q)V.push(String(Q));if(z&&T.length>0)for(var j=0;j<T.length;++j)V.push(String(j));else for(var M in T)!(I&&M==="prototype")&&t.call(T,M)&&V.push(String(M));if(u)for(var P=v(T),F=0;F<d.length;++F)!(P&&d[F]==="constructor")&&t.call(T,d[F])&&V.push(d[F]);return V}}return Jf=r,Jf}var ed,Lb;function em(){if(Lb)return ed;Lb=1;var r=Array.prototype.slice,t=Rw(),a=Object.keys,l=a?function(c){return a(c)}:NR(),o=Object.keys;return l.shim=function(){if(Object.keys){var c=function(){var d=Object.keys(arguments);return d&&d.length===arguments.length}(1,2);c||(Object.keys=function(h){return t(h)?o(r.call(h)):o(h)})}else Object.keys=l;return Object.keys||l},ed=l,ed}var td,zb;function _w(){return zb||(zb=1,td=Object),td}var nd,Pb;function DR(){return Pb||(Pb=1,nd=Error),nd}var rd,Hb;function LR(){return Hb||(Hb=1,rd=EvalError),rd}var ad,kb;function zR(){return kb||(kb=1,ad=RangeError),ad}var id,Bb;function PR(){return Bb||(Bb=1,id=ReferenceError),id}var ld,$b;function HR(){return $b||($b=1,ld=SyntaxError),ld}var od,Ib;function Pi(){return Ib||(Ib=1,od=TypeError),od}var sd,qb;function kR(){return qb||(qb=1,sd=URIError),sd}var ud,Ub;function BR(){return Ub||(Ub=1,ud=Math.abs),ud}var cd,Gb;function $R(){return Gb||(Gb=1,cd=Math.floor),cd}var fd,Vb;function IR(){return Vb||(Vb=1,fd=Math.max),fd}var dd,Wb;function qR(){return Wb||(Wb=1,dd=Math.min),dd}var hd,Yb;function UR(){return Yb||(Yb=1,hd=Math.pow),hd}var pd,Xb;function GR(){return Xb||(Xb=1,pd=Math.round),pd}var md,Fb;function VR(){return Fb||(Fb=1,md=Number.isNaN||function(t){return t!==t}),md}var gd,Qb;function WR(){if(Qb)return gd;Qb=1;var r=VR();return gd=function(a){return r(a)||a===0?a:a<0?-1:1},gd}var vd,Zb;function YR(){return Zb||(Zb=1,vd=Object.getOwnPropertyDescriptor),vd}var yd,Kb;function Eo(){if(Kb)return yd;Kb=1;var r=YR();if(r)try{r([],"length")}catch{r=null}return yd=r,yd}var bd,Jb;function XR(){if(Jb)return bd;Jb=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return bd=r,bd}var Sd,e0;function Su(){return e0||(e0=1,Sd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},a=Symbol("test"),l=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var o=42;t[a]=o;for(var u in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var c=Object.getOwnPropertySymbols(t);if(c.length!==1||c[0]!==a||!Object.prototype.propertyIsEnumerable.call(t,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(t,a);if(d.value!==o||d.enumerable!==!0)return!1}return!0}),Sd}var wd,t0;function tm(){if(t0)return wd;t0=1;var r=typeof Symbol<"u"&&Symbol,t=Su();return wd=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},wd}var xd,n0;function jw(){return n0||(n0=1,xd=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),xd}var Od,r0;function Aw(){if(r0)return Od;r0=1;var r=_w();return Od=r.getPrototypeOf||null,Od}var Ed,a0;function FR(){if(a0)return Ed;a0=1;var r="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,a=Math.max,l="[object Function]",o=function(h,p){for(var g=[],v=0;v<h.length;v+=1)g[v]=h[v];for(var x=0;x<p.length;x+=1)g[x+h.length]=p[x];return g},u=function(h,p){for(var g=[],v=p,x=0;v<h.length;v+=1,x+=1)g[x]=h[v];return g},c=function(d,h){for(var p="",g=0;g<d.length;g+=1)p+=d[g],g+1<d.length&&(p+=h);return p};return Ed=function(h){var p=this;if(typeof p!="function"||t.apply(p)!==l)throw new TypeError(r+p);for(var g=u(arguments,1),v,x=function(){if(this instanceof v){var $=p.apply(this,o(g,arguments));return Object($)===$?$:this}return p.apply(h,o(g,arguments))},T=a(0,p.length-g.length),N=[],_=0;_<T;_++)N[_]="$"+_;if(v=Function("binder","return function ("+c(N,",")+"){ return binder.apply(this,arguments); }")(x),p.prototype){var z=function(){};z.prototype=p.prototype,v.prototype=new z,z.prototype=null}return v},Ed}var Td,i0;function To(){if(i0)return Td;i0=1;var r=FR();return Td=Function.prototype.bind||r,Td}var Cd,l0;function nm(){return l0||(l0=1,Cd=Function.prototype.call),Cd}var Rd,o0;function Mw(){return o0||(o0=1,Rd=Function.prototype.apply),Rd}var _d,s0;function QR(){return s0||(s0=1,_d=typeof Reflect<"u"&&Reflect&&Reflect.apply),_d}var jd,u0;function ZR(){if(u0)return jd;u0=1;var r=To(),t=Mw(),a=nm(),l=QR();return jd=l||r.call(a,t),jd}var Ad,c0;function Nw(){if(c0)return Ad;c0=1;var r=To(),t=Pi(),a=nm(),l=ZR();return Ad=function(u){if(u.length<1||typeof u[0]!="function")throw new t("a function is required");return l(r,a,u)},Ad}var Md,f0;function KR(){if(f0)return Md;f0=1;var r=Nw(),t=Eo(),a;try{a=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!="object"||!("code"in c)||c.code!=="ERR_PROTO_ACCESS")throw c}var l=!!a&&t&&t(Object.prototype,"__proto__"),o=Object,u=o.getPrototypeOf;return Md=l&&typeof l.get=="function"?r([l.get]):typeof u=="function"?function(d){return u(d==null?d:o(d))}:!1,Md}var Nd,d0;function JR(){if(d0)return Nd;d0=1;var r=jw(),t=Aw(),a=KR();return Nd=r?function(o){return r(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:a?function(o){return a(o)}:null,Nd}var Dd,h0;function Dw(){if(h0)return Dd;h0=1;var r=Function.prototype.call,t=Object.prototype.hasOwnProperty,a=To();return Dd=a.call(r,t),Dd}var Ld,p0;function un(){if(p0)return Ld;p0=1;var r,t=_w(),a=DR(),l=LR(),o=zR(),u=PR(),c=HR(),d=Pi(),h=kR(),p=BR(),g=$R(),v=IR(),x=qR(),T=UR(),N=GR(),_=WR(),z=Function,$=function(me){try{return z('"use strict"; return ('+me+").constructor;")()}catch{}},V=Eo(),I=XR(),Q=function(){throw new d},j=V?function(){try{return arguments.callee,Q}catch{try{return V(arguments,"callee").get}catch{return Q}}}():Q,M=tm()(),P=JR(),F=Aw(),D=jw(),E=Mw(),X=nm(),B={},q=typeof Uint8Array>"u"||!P?r:P(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":M&&P?P([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":B,"%AsyncGenerator%":B,"%AsyncGeneratorFunction%":B,"%AsyncIteratorPrototype%":B,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":z,"%GeneratorFunction%":B,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M&&P?P(P([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!M||!P?r:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":V,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":o,"%ReferenceError%":u,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!M||!P?r:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&P?P(""[Symbol.iterator]()):r,"%Symbol%":M?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":j,"%TypedArray%":q,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":E,"%Object.defineProperty%":I,"%Object.getPrototypeOf%":F,"%Math.abs%":p,"%Math.floor%":g,"%Math.max%":v,"%Math.min%":x,"%Math.pow%":T,"%Math.round%":N,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(P)try{null.error}catch(me){var G=P(P(me));k["%Error.prototype%"]=G}var L=function me(pe){var ve;if(pe==="%AsyncFunction%")ve=$("async function () {}");else if(pe==="%GeneratorFunction%")ve=$("function* () {}");else if(pe==="%AsyncGeneratorFunction%")ve=$("async function* () {}");else if(pe==="%AsyncGenerator%"){var he=me("%AsyncGeneratorFunction%");he&&(ve=he.prototype)}else if(pe==="%AsyncIteratorPrototype%"){var ge=me("%AsyncGenerator%");ge&&P&&(ve=P(ge.prototype))}return k[pe]=ve,ve},b={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},te=To(),R=Dw(),y=te.call(X,Array.prototype.concat),C=te.call(E,Array.prototype.splice),W=te.call(X,String.prototype.replace),J=te.call(X,String.prototype.slice),H=te.call(X,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,re=function(pe){var ve=J(pe,0,1),he=J(pe,-1);if(ve==="%"&&he!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(he==="%"&&ve!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var ge=[];return W(pe,U,function(Se,ye,Re,be){ge[ge.length]=Re?W(be,Z,"$1"):ye||Se}),ge},ue=function(pe,ve){var he=pe,ge;if(R(b,he)&&(ge=b[he],he="%"+ge[0]+"%"),R(k,he)){var Se=k[he];if(Se===B&&(Se=L(he)),typeof Se>"u"&&!ve)throw new d("intrinsic "+pe+" exists, but is not available. Please file an issue!");return{alias:ge,name:he,value:Se}}throw new c("intrinsic "+pe+" does not exist!")};return Ld=function(pe,ve){if(typeof pe!="string"||pe.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ve!="boolean")throw new d('"allowMissing" argument must be a boolean');if(H(/^%?[^%]*%?$/,pe)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var he=re(pe),ge=he.length>0?he[0]:"",Se=ue("%"+ge+"%",ve),ye=Se.name,Re=Se.value,be=!1,Le=Se.alias;Le&&(ge=Le[0],C(he,y([0,1],Le)));for(var Pe=1,Te=!0;Pe<he.length;Pe+=1){var ke=he[Pe],ot=J(ke,0,1),ft=J(ke,-1);if((ot==='"'||ot==="'"||ot==="`"||ft==='"'||ft==="'"||ft==="`")&&ot!==ft)throw new c("property names with quotes must have matching quotes");if((ke==="constructor"||!Te)&&(be=!0),ge+="."+ke,ye="%"+ge+"%",R(k,ye))Re=k[ye];else if(Re!=null){if(!(ke in Re)){if(!ve)throw new d("base intrinsic for "+pe+" exists, but the property is not available.");return}if(V&&Pe+1>=he.length){var yt=V(Re,ke);Te=!!yt,Te&&"get"in yt&&!("originalValue"in yt.get)?Re=yt.get:Re=Re[ke]}else Te=R(Re,ke),Re=Re[ke];Te&&!be&&(k[ye]=Re)}}return Re},Ld}var zd,m0;function wu(){if(m0)return zd;m0=1;var r=un(),t=r("%Object.defineProperty%",!0),a=function(){if(t)try{return t({},"a",{value:1}),!0}catch{return!1}return!1};return a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},zd=a,zd}var Pd,g0;function rm(){if(g0)return Pd;g0=1;var r=wu()(),t=un(),a=r&&t("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch{a=!1}var l=t("%SyntaxError%"),o=t("%TypeError%"),u=Eo();return Pd=function(d,h,p){if(!d||typeof d!="object"&&typeof d!="function")throw new o("`obj` must be an object or a function`");if(typeof h!="string"&&typeof h!="symbol")throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new o("`loose`, if provided, must be a boolean");var g=arguments.length>3?arguments[3]:null,v=arguments.length>4?arguments[4]:null,x=arguments.length>5?arguments[5]:null,T=arguments.length>6?arguments[6]:!1,N=!!u&&u(d,h);if(a)a(d,h,{configurable:x===null&&N?N.configurable:!x,enumerable:g===null&&N?N.enumerable:!g,value:p,writable:v===null&&N?N.writable:!v});else if(T||!g&&!v&&!x)d[h]=p;else throw new l("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Pd}var Hd,v0;function qa(){if(v0)return Hd;v0=1;var r=em(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",a=Object.prototype.toString,l=Array.prototype.concat,o=rm(),u=function(p){return typeof p=="function"&&a.call(p)==="[object Function]"},c=wu()(),d=function(p,g,v,x){if(g in p){if(x===!0){if(p[g]===v)return}else if(!u(x)||!x())return}c?o(p,g,v,!0):o(p,g,v)},h=function(p,g){var v=arguments.length>2?arguments[2]:{},x=r(g);t&&(x=l.call(x,Object.getOwnPropertySymbols(g)));for(var T=0;T<x.length;T+=1)d(p,x[T],g[x[T]],v[x[T]])};return h.supportsDescriptors=!!c,Hd=h,Hd}var kd={exports:{}},Bd,y0;function e_(){if(y0)return Bd;y0=1;var r=un(),t=rm(),a=wu()(),l=Eo(),o=r("%TypeError%"),u=r("%Math.floor%");return Bd=function(d,h){if(typeof d!="function")throw new o("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||u(h)!==h)throw new o("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],g=!0,v=!0;if("length"in d&&l){var x=l(d,"length");x&&!x.configurable&&(g=!1),x&&!x.writable&&(v=!1)}return(g||v||!p)&&(a?t(d,"length",h,!0,!0):t(d,"length",h)),d},Bd}var b0;function Hi(){return b0||(b0=1,function(r){var t=To(),a=un(),l=e_(),o=a("%TypeError%"),u=a("%Function.prototype.apply%"),c=a("%Function.prototype.call%"),d=a("%Reflect.apply%",!0)||t.call(c,u),h=a("%Object.defineProperty%",!0),p=a("%Math.max%");if(h)try{h({},"a",{value:1})}catch{h=null}r.exports=function(x){if(typeof x!="function")throw new o("a function is required");var T=d(t,c,arguments);return l(T,1+p(0,x.length-(arguments.length-1)),!0)};var g=function(){return d(t,u,arguments)};h?h(r.exports,"apply",{value:g}):r.exports.apply=g}(kd)),kd.exports}var $d,S0;function Pn(){if(S0)return $d;S0=1;var r=un(),t=Hi(),a=t(r("String.prototype.indexOf"));return $d=function(o,u){var c=r(o,!!u);return typeof c=="function"&&a(o,".prototype.")>-1?t(c):c},$d}var Id,w0;function Lw(){if(w0)return Id;w0=1;var r=em(),t=Su()(),a=Pn(),l=Object,o=a("Array.prototype.push"),u=a("Object.prototype.propertyIsEnumerable"),c=t?Object.getOwnPropertySymbols:null;return Id=function(h,p){if(h==null)throw new TypeError("target must be an object");var g=l(h);if(arguments.length===1)return g;for(var v=1;v<arguments.length;++v){var x=l(arguments[v]),T=r(x),N=t&&(Object.getOwnPropertySymbols||c);if(N)for(var _=N(x),z=0;z<_.length;++z){var $=_[z];u(x,$)&&o(T,$)}for(var V=0;V<T.length;++V){var I=T[V];if(u(x,I)){var Q=x[I];g[I]=Q}}}return g},Id}var qd,x0;function zw(){if(x0)return qd;x0=1;var r=Lw(),t=function(){if(!Object.assign)return!1;for(var l="abcdefghijklmnopqrst",o=l.split(""),u={},c=0;c<o.length;++c)u[o[c]]=o[c];var d=Object.assign({},u),h="";for(var p in d)h+=p;return l!==h},a=function(){if(!Object.assign||!Object.preventExtensions)return!1;var l=Object.preventExtensions({1:2});try{Object.assign(l,"xy")}catch{return l[1]==="y"}return!1};return qd=function(){return!Object.assign||t()||a()?r:Object.assign},qd}var Ud,O0;function t_(){if(O0)return Ud;O0=1;var r=qa(),t=zw();return Ud=function(){var l=t();return r(Object,{assign:l},{assign:function(){return Object.assign!==l}}),l},Ud}var Gd,E0;function n_(){if(E0)return Gd;E0=1;var r=qa(),t=Hi(),a=Lw(),l=zw(),o=t_(),u=t.apply(l()),c=function(h,p){return u(Object,arguments)};return r(c,{getPolyfill:l,implementation:a,shim:o}),Gd=c,Gd}var Vd,T0;function r_(){if(T0)return Vd;T0=1;var r=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}r.functionsHaveConfigurableNames=function(){if(!r()||!t)return!1;var o=t(function(){},"name");return!!o&&!!o.configurable};var a=Function.prototype.bind;return r.boundFunctionsHaveNames=function(){return r()&&typeof a=="function"&&(function(){}).bind().name!==""},Vd=r,Vd}var Wd,C0;function a_(){if(C0)return Wd;C0=1;var r=rm(),t=wu()(),a=r_().functionsHaveConfigurableNames(),l=TypeError;return Wd=function(u,c){if(typeof u!="function")throw new l("`fn` is not a function");var d=arguments.length>2&&!!arguments[2];return(!d||a)&&(t?r(u,"name",c,!0,!0):r(u,"name",c)),u},Wd}var Yd,R0;function Pw(){if(R0)return Yd;R0=1;var r=a_(),t=Object,a=TypeError;return Yd=r(function(){if(this!=null&&this!==t(this))throw new a("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.unicodeSets&&(o+="v"),this.sticky&&(o+="y"),o},"get flags",!0),Yd}var Xd,_0;function Hw(){if(_0)return Xd;_0=1;var r=Pw(),t=qa().supportsDescriptors,a=Object.getOwnPropertyDescriptor;return Xd=function(){if(t&&/a/mig.flags==="gim"){var o=a(RegExp.prototype,"flags");if(o&&typeof o.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var u="",c={};if(Object.defineProperty(c,"hasIndices",{get:function(){u+="d"}}),Object.defineProperty(c,"sticky",{get:function(){u+="y"}}),u==="dy")return o.get}}return r},Xd}var Fd,j0;function i_(){if(j0)return Fd;j0=1;var r=qa().supportsDescriptors,t=Hw(),a=Object.getOwnPropertyDescriptor,l=Object.defineProperty,o=TypeError,u=Object.getPrototypeOf,c=/a/;return Fd=function(){if(!r||!u)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var h=t(),p=u(c),g=a(p,"flags");return(!g||g.get!==h)&&l(p,"flags",{configurable:!0,enumerable:!1,get:h}),h},Fd}var Qd,A0;function l_(){if(A0)return Qd;A0=1;var r=qa(),t=Hi(),a=Pw(),l=Hw(),o=i_(),u=t(l());return r(u,{getPolyfill:l,implementation:a,shim:o}),Qd=u,Qd}var ql={exports:{}},Zd,M0;function Ua(){if(M0)return Zd;M0=1;var r=Su();return Zd=function(){return r()&&!!Symbol.toStringTag},Zd}var Kd,N0;function kw(){if(N0)return Kd;N0=1;var r=Ua()(),t=Pn(),a=t("Object.prototype.toString"),l=function(d){return r&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:a(d)==="[object Arguments]"},o=function(d){return l(d)?!0:d!==null&&typeof d=="object"&&typeof d.length=="number"&&d.length>=0&&a(d)!=="[object Array]"&&a(d.callee)==="[object Function]"},u=function(){return l(arguments)}();return l.isLegacyArguments=o,Kd=u?l:o,Kd}const o_={},s_=Object.freeze(Object.defineProperty({__proto__:null,default:o_},Symbol.toStringTag,{value:"Module"})),u_=Y1(s_);var Jd,D0;function xu(){if(D0)return Jd;D0=1;var r=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&t&&typeof t.get=="function"?t.get:null,l=r&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,u=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=o&&u&&typeof u.get=="function"?u.get:null,d=o&&Set.prototype.forEach,h=typeof WeakMap=="function"&&WeakMap.prototype,p=h?WeakMap.prototype.has:null,g=typeof WeakSet=="function"&&WeakSet.prototype,v=g?WeakSet.prototype.has:null,x=typeof WeakRef=="function"&&WeakRef.prototype,T=x?WeakRef.prototype.deref:null,N=Boolean.prototype.valueOf,_=Object.prototype.toString,z=Function.prototype.toString,$=String.prototype.match,V=String.prototype.slice,I=String.prototype.replace,Q=String.prototype.toUpperCase,j=String.prototype.toLowerCase,M=RegExp.prototype.test,P=Array.prototype.concat,F=Array.prototype.join,D=Array.prototype.slice,E=Math.floor,X=typeof BigInt=="function"?BigInt.prototype.valueOf:null,B=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,k=typeof Symbol=="function"&&typeof Symbol.iterator=="object",G=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||!0)?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,b=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ie){return ie.__proto__}:null);function te(ie,se){if(ie===1/0||ie===-1/0||ie!==ie||ie&&ie>-1e3&&ie<1e3||M.call(/e/,se))return se;var Ve=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ie=="number"){var Xe=ie<0?-E(-ie):E(ie);if(Xe!==ie){var Ze=String(Xe),ze=V.call(se,Ze.length+1);return I.call(Ze,Ve,"$&_")+"."+I.call(I.call(ze,/([0-9]{3})/g,"$&_"),/_$/,"")}}return I.call(se,Ve,"$&_")}var R=u_,y=R.custom,C=Se(y)?y:null,W={__proto__:null,double:'"',single:"'"},J={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Jd=function ie(se,Ve,Xe,Ze){var ze=Ve||{};if(be(ze,"quoteStyle")&&!be(W,ze.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(be(ze,"maxStringLength")&&(typeof ze.maxStringLength=="number"?ze.maxStringLength<0&&ze.maxStringLength!==1/0:ze.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var qt=be(ze,"customInspect")?ze.customInspect:!0;if(typeof qt!="boolean"&&qt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(be(ze,"indent")&&ze.indent!==null&&ze.indent!==" "&&!(parseInt(ze.indent,10)===ze.indent&&ze.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(be(ze,"numericSeparator")&&typeof ze.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var tr=ze.numericSeparator;if(typeof se>"u")return"undefined";if(se===null)return"null";if(typeof se=="boolean")return se?"true":"false";if(typeof se=="string")return Be(se,ze);if(typeof se=="number"){if(se===0)return 1/0/se>0?"0":"-0";var Ht=String(se);return tr?te(se,Ht):Ht}if(typeof se=="bigint"){var jn=String(se)+"n";return tr?te(se,jn):jn}var ha=typeof ze.depth>"u"?5:ze.depth;if(typeof Xe>"u"&&(Xe=0),Xe>=ha&&ha>0&&typeof se=="object")return re(se)?"[Array]":"[Object]";var Hn=Ga(ze,Xe);if(typeof Ze>"u")Ze=[];else if(Te(Ze,se)>=0)return"[Circular]";function Ut(rr,ma,ar){if(ma&&(Ze=D.call(Ze),Ze.push(ma)),ar){var ir={depth:ze.depth};return be(ze,"quoteStyle")&&(ir.quoteStyle=ze.quoteStyle),ie(rr,ir,Xe+1,Ze)}return ie(rr,ze,Xe+1,Ze)}if(typeof se=="function"&&!me(se)){var zo=Pe(se),An=cn(se,Ut);return"[Function"+(zo?": "+zo:" (anonymous)")+"]"+(An.length>0?" { "+F.call(An,", ")+" }":"")}if(Se(se)){var Et=k?I.call(String(se),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(se);return typeof se=="object"&&!k?dt(Et):Et}if(Ae(se)){for(var wt="<"+j.call(String(se.nodeName)),kn=se.attributes||[],Dr=0;Dr<kn.length;Dr++)wt+=" "+kn[Dr].name+"="+H(U(kn[Dr].value),"double",ze);return wt+=">",se.childNodes&&se.childNodes.length&&(wt+="..."),wt+="</"+j.call(String(se.nodeName))+">",wt}if(re(se)){if(se.length===0)return"[]";var Gi=cn(se,Ut);return Hn&&!Nu(Gi)?"["+Nr(Gi,Hn)+"]":"[ "+F.call(Gi,", ")+" ]"}if(pe(se)){var Vi=cn(se,Ut);return!("cause"in Error.prototype)&&"cause"in se&&!L.call(se,"cause")?"{ ["+String(se)+"] "+F.call(P.call("[cause]: "+Ut(se.cause),Vi),", ")+" }":Vi.length===0?"["+String(se)+"]":"{ ["+String(se)+"] "+F.call(Vi,", ")+" }"}if(typeof se=="object"&&qt){if(C&&typeof se[C]=="function"&&R)return R(se,{depth:ha-Xe});if(qt!=="symbol"&&typeof se.inspect=="function")return se.inspect()}if(ke(se)){var Wi=[];return l&&l.call(se,function(rr,ma){Wi.push(Ut(ma,se,!0)+" => "+Ut(rr,se))}),Lo("Map",a.call(se),Wi,Hn)}if(yt(se)){var Lr=[];return d&&d.call(se,function(rr){Lr.push(Ut(rr,se))}),Lo("Set",c.call(se),Lr,Hn)}if(ot(se))return Ui("WeakMap");if(Nt(se))return Ui("WeakSet");if(ft(se))return Ui("WeakRef");if(he(se))return dt(Ut(Number(se)));if(ye(se))return dt(Ut(X.call(se)));if(ge(se))return dt(N.call(se));if(ve(se))return dt(Ut(String(se)));if(typeof window<"u"&&se===window)return"{ [object Window] }";if(typeof globalThis<"u"&&se===globalThis||typeof xr<"u"&&se===xr)return"{ [object globalThis] }";if(!ue(se)&&!me(se)){var pa=cn(se,Ut),nr=b?b(se)===Object.prototype:se instanceof Object||se.constructor===Object,Bn=se instanceof Object?"":"null prototype",zr=!nr&&G&&Object(se)===se&&G in se?V.call(Le(se),8,-1):Bn?"Object":"",Pr=nr||typeof se.constructor!="function"?"":se.constructor.name?se.constructor.name+" ":"",ht=Pr+(zr||Bn?"["+F.call(P.call([],zr||[],Bn||[]),": ")+"] ":"");return pa.length===0?ht+"{}":Hn?ht+"{"+Nr(pa,Hn)+"}":ht+"{ "+F.call(pa,", ")+" }"}return String(se)};function H(ie,se,Ve){var Xe=Ve.quoteStyle||se,Ze=W[Xe];return Ze+ie+Ze}function U(ie){return I.call(String(ie),/"/g,"&quot;")}function Z(ie){return!G||!(typeof ie=="object"&&(G in ie||typeof ie[G]<"u"))}function re(ie){return Le(ie)==="[object Array]"&&Z(ie)}function ue(ie){return Le(ie)==="[object Date]"&&Z(ie)}function me(ie){return Le(ie)==="[object RegExp]"&&Z(ie)}function pe(ie){return Le(ie)==="[object Error]"&&Z(ie)}function ve(ie){return Le(ie)==="[object String]"&&Z(ie)}function he(ie){return Le(ie)==="[object Number]"&&Z(ie)}function ge(ie){return Le(ie)==="[object Boolean]"&&Z(ie)}function Se(ie){if(k)return ie&&typeof ie=="object"&&ie instanceof Symbol;if(typeof ie=="symbol")return!0;if(!ie||typeof ie!="object"||!q)return!1;try{return q.call(ie),!0}catch{}return!1}function ye(ie){if(!ie||typeof ie!="object"||!X)return!1;try{return X.call(ie),!0}catch{}return!1}var Re=Object.prototype.hasOwnProperty||function(ie){return ie in this};function be(ie,se){return Re.call(ie,se)}function Le(ie){return _.call(ie)}function Pe(ie){if(ie.name)return ie.name;var se=$.call(z.call(ie),/^function\s*([\w$]+)/);return se?se[1]:null}function Te(ie,se){if(ie.indexOf)return ie.indexOf(se);for(var Ve=0,Xe=ie.length;Ve<Xe;Ve++)if(ie[Ve]===se)return Ve;return-1}function ke(ie){if(!a||!ie||typeof ie!="object")return!1;try{a.call(ie);try{c.call(ie)}catch{return!0}return ie instanceof Map}catch{}return!1}function ot(ie){if(!p||!ie||typeof ie!="object")return!1;try{p.call(ie,p);try{v.call(ie,v)}catch{return!0}return ie instanceof WeakMap}catch{}return!1}function ft(ie){if(!T||!ie||typeof ie!="object")return!1;try{return T.call(ie),!0}catch{}return!1}function yt(ie){if(!c||!ie||typeof ie!="object")return!1;try{c.call(ie);try{a.call(ie)}catch{return!0}return ie instanceof Set}catch{}return!1}function Nt(ie){if(!v||!ie||typeof ie!="object")return!1;try{v.call(ie,v);try{p.call(ie,p)}catch{return!0}return ie instanceof WeakSet}catch{}return!1}function Ae(ie){return!ie||typeof ie!="object"?!1:typeof HTMLElement<"u"&&ie instanceof HTMLElement?!0:typeof ie.nodeName=="string"&&typeof ie.getAttribute=="function"}function Be(ie,se){if(ie.length>se.maxStringLength){var Ve=ie.length-se.maxStringLength,Xe="... "+Ve+" more character"+(Ve>1?"s":"");return Be(V.call(ie,0,se.maxStringLength),se)+Xe}var Ze=J[se.quoteStyle||"single"];Ze.lastIndex=0;var ze=I.call(I.call(ie,Ze,"\\$1"),/[\x00-\x1f]/g,nt);return H(ze,"single",se)}function nt(ie){var se=ie.charCodeAt(0),Ve={8:"b",9:"t",10:"n",12:"f",13:"r"}[se];return Ve?"\\"+Ve:"\\x"+(se<16?"0":"")+Q.call(se.toString(16))}function dt(ie){return"Object("+ie+")"}function Ui(ie){return ie+" { ? }"}function Lo(ie,se,Ve,Xe){var Ze=Xe?Nr(Ve,Xe):F.call(Ve,", ");return ie+" ("+se+") {"+Ze+"}"}function Nu(ie){for(var se=0;se<ie.length;se++)if(Te(ie[se],`
61
+ `)>=0)return!1;return!0}function Ga(ie,se){var Ve;if(ie.indent===" ")Ve=" ";else if(typeof ie.indent=="number"&&ie.indent>0)Ve=F.call(Array(ie.indent+1)," ");else return null;return{base:Ve,prev:F.call(Array(se+1),Ve)}}function Nr(ie,se){if(ie.length===0)return"";var Ve=`
62
62
  `+se.prev+se.base;return Ve+F.call(ie,","+Ve)+`
63
- `+se.prev}function cn(ie,se){var Ve=re(ie),We=[];if(Ve){We.length=ie.length;for(var Ze=0;Ze<ie.length;Ze++)We[Ze]=be(ie,Ze)?se(ie[Ze],ie):""}var ze=typeof B=="function"?B(ie):[],qt;if(k){qt={};for(var tr=0;tr<ze.length;tr++)qt["$"+ze[tr]]=ze[tr]}for(var Pt in ie)be(ie,Pt)&&(Ve&&String(Number(Pt))===Pt&&Pt<ie.length||k&&qt["$"+Pt]instanceof Symbol||(M.call(/[^\w$]/,Pt)?We.push(se(Pt,ie)+": "+se(ie[Pt],ie)):We.push(Pt+": "+se(ie[Pt],ie))));if(typeof B=="function")for(var jn=0;jn<ze.length;jn++)L.call(ie,ze[jn])&&We.push("["+se(ze[jn])+"]: "+se(ie[ze[jn]],ie));return We}return Jd}var eh,L0;function c_(){if(L0)return eh;L0=1;var r=xu(),t=Pi(),a=function(d,h,p){for(var m=d,y;(y=m.next)!=null;m=y)if(y.key===h)return m.next=y.next,p||(y.next=d.next,d.next=y),y},l=function(d,h){if(d){var p=a(d,h);return p&&p.value}},o=function(d,h,p){var m=a(d,h);m?m.value=p:d.next={key:h,next:d.next,value:p}},u=function(d,h){return d?!!a(d,h):!1},c=function(d,h){if(d)return a(d,h,!0)};return eh=function(){var h,p={assert:function(m){if(!p.has(m))throw new t("Side channel does not contain "+r(m))},delete:function(m){var y=h&&h.next,x=c(h,m);return x&&y&&y===x&&(h=void 0),!!x},get:function(m){return l(h,m)},has:function(m){return u(h,m)},set:function(m,y){h||(h={next:void 0}),o(h,m,y)}};return p},eh}var th,z0;function Bw(){if(z0)return th;z0=1;var r=un(),t=Nw(),a=t([r("%String.prototype.indexOf%")]);return th=function(o,u){var c=r(o,!!u);return typeof c=="function"&&a(o,".prototype.")>-1?t([c]):c},th}var nh,P0;function $w(){if(P0)return nh;P0=1;var r=un(),t=Bw(),a=xu(),l=Pi(),o=r("%Map%",!0),u=t("Map.prototype.get",!0),c=t("Map.prototype.set",!0),d=t("Map.prototype.has",!0),h=t("Map.prototype.delete",!0),p=t("Map.prototype.size",!0);return nh=!!o&&function(){var y,x={assert:function(T){if(!x.has(T))throw new l("Side channel does not contain "+a(T))},delete:function(T){if(y){var N=h(y,T);return p(y)===0&&(y=void 0),N}return!1},get:function(T){if(y)return u(y,T)},has:function(T){return y?d(y,T):!1},set:function(T,N){y||(y=new o),c(y,T,N)}};return x},nh}var rh,H0;function f_(){if(H0)return rh;H0=1;var r=un(),t=Bw(),a=xu(),l=$w(),o=Pi(),u=r("%WeakMap%",!0),c=t("WeakMap.prototype.get",!0),d=t("WeakMap.prototype.set",!0),h=t("WeakMap.prototype.has",!0),p=t("WeakMap.prototype.delete",!0);return rh=u?function(){var y,x,T={assert:function(N){if(!T.has(N))throw new o("Side channel does not contain "+a(N))},delete:function(N){if(u&&N&&(typeof N=="object"||typeof N=="function")){if(y)return p(y,N)}else if(l&&x)return x.delete(N);return!1},get:function(N){return u&&N&&(typeof N=="object"||typeof N=="function")&&y?c(y,N):x&&x.get(N)},has:function(N){return u&&N&&(typeof N=="object"||typeof N=="function")&&y?h(y,N):!!x&&x.has(N)},set:function(N,_){u&&N&&(typeof N=="object"||typeof N=="function")?(y||(y=new u),d(y,N,_)):l&&(x||(x=l()),x.set(N,_))}};return T}:l,rh}var ah,k0;function Iw(){if(k0)return ah;k0=1;var r=Pi(),t=xu(),a=c_(),l=$w(),o=f_(),u=o||l||a;return ah=function(){var d,h={assert:function(p){if(!h.has(p))throw new r("Side channel does not contain "+t(p))},delete:function(p){return!!d&&d.delete(p)},get:function(p){return d&&d.get(p)},has:function(p){return!!d&&d.has(p)},set:function(p,m){d||(d=u()),d.set(p,m)}};return h},ah}var ih,B0;function d_(){if(B0)return ih;B0=1;var r=un(),t=Dw(),a=Iw()(),l=r("%TypeError%"),o={assert:function(u,c){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");if(a.assert(u),!o.has(u,c))throw new l("`"+c+"` is not present on `O`")},get:function(u,c){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");var d=a.get(u);return d&&d["$"+c]},has:function(u,c){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");var d=a.get(u);return!!d&&t(d,"$"+c)},set:function(u,c,d){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");var h=a.get(u);h||(h={},a.set(u,h)),h["$"+c]=d}};return Object.freeze&&Object.freeze(o),ih=o,ih}var lh,$0;function h_(){if($0)return lh;$0=1;var r=d_(),t=SyntaxError,a=typeof StopIteration=="object"?StopIteration:null;return lh=function(o){if(!a)throw new t("this environment lacks StopIteration");r.set(o,"[[Done]]",!1);var u={next:function(){var d=r.get(this,"[[Iterator]]"),h=r.get(d,"[[Done]]");try{return{done:h,value:h?void 0:d.next()}}catch(p){if(r.set(d,"[[Done]]",!0),p!==a)throw p;return{done:!0,value:void 0}}}};return r.set(u,"[[Iterator]]",o),u},lh}var oh,I0;function p_(){if(I0)return oh;I0=1;var r={}.toString;return oh=Array.isArray||function(t){return r.call(t)=="[object Array]"},oh}var sh,q0;function qw(){if(q0)return sh;q0=1;var r=String.prototype.valueOf,t=function(c){try{return r.call(c),!0}catch{return!1}},a=Object.prototype.toString,l="[object String]",o=qa()();return sh=function(c){return typeof c=="string"?!0:typeof c!="object"?!1:o?t(c):a.call(c)===l},sh}var uh,U0;function Uw(){if(U0)return uh;U0=1;var r=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,a;r||(a=function(c){return!1});var l=r?Map.prototype.has:null,o=t?Set.prototype.has:null;return!a&&!l&&(a=function(c){return!1}),uh=a||function(c){if(!c||typeof c!="object")return!1;try{if(l.call(c),o)try{o.call(c)}catch{return!0}return c instanceof r}catch{}return!1},uh}var ch,G0;function Gw(){if(G0)return ch;G0=1;var r=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,a;t||(a=function(c){return!1});var l=r?Map.prototype.has:null,o=t?Set.prototype.has:null;return!a&&!o&&(a=function(c){return!1}),ch=a||function(c){if(!c||typeof c!="object")return!1;try{if(o.call(c),l)try{l.call(c)}catch{return!0}return c instanceof t}catch{}return!1},ch}var V0;function g_(){if(V0)return ql.exports;V0=1;var r=kw(),t=h_();if(tg()()||Su()()){var a=Symbol.iterator;ql.exports=function(D){if(D!=null&&typeof D[a]<"u")return D[a]();if(r(D))return Array.prototype[a].call(D)}}else{var l=p_(),o=qw(),u=un(),c=u("%Map%",!0),d=u("%Set%",!0),h=Pn(),p=h("Array.prototype.push"),m=h("String.prototype.charCodeAt"),y=h("String.prototype.slice"),x=function(D,E){var W=D.length;if(E+1>=W)return E+1;var B=m(D,E);if(B<55296||B>56319)return E+1;var q=m(D,E+1);return q<56320||q>57343?E+1:E+2},T=function(D){var E=0;return{next:function(){var B=E>=D.length,q;return B||(q=D[E],E+=1),{done:B,value:q}}}},N=function(D,E){if(l(D)||r(D))return T(D);if(o(D)){var W=0;return{next:function(){var q=x(D,W),k=y(D,W,q);return W=q,{done:q>D.length,value:k}}}}if(E&&typeof D["_es6-shim iterator_"]<"u")return D["_es6-shim iterator_"]()};if(!c&&!d)ql.exports=function(D){if(D!=null)return N(D,!0)};else{var _=Uw(),z=Gw(),$=h("Map.prototype.forEach",!0),V=h("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var I=h("Map.prototype.iterator",!0),Q=h("Set.prototype.iterator",!0);var A=h("Map.prototype.@@iterator",!0)||h("Map.prototype._es6-shim iterator_",!0),M=h("Set.prototype.@@iterator",!0)||h("Set.prototype._es6-shim iterator_",!0),P=function(D){if(_(D)){if(I)return t(I(D));if(A)return A(D);if($){var E=[];return $(D,function(B,q){p(E,[q,B])}),T(E)}}if(z(D)){if(Q)return t(Q(D));if(M)return M(D);if(V){var W=[];return V(D,function(B){p(W,B)}),T(W)}}};ql.exports=function(D){return P(D)||N(D)}}}return ql.exports}var fh,Y0;function Vw(){if(Y0)return fh;Y0=1;var r=function(t){return t!==t};return fh=function(a,l){return a===0&&l===0?1/a===1/l:!!(a===l||r(a)&&r(l))},fh}var dh,X0;function Yw(){if(X0)return dh;X0=1;var r=Vw();return dh=function(){return typeof Object.is=="function"?Object.is:r},dh}var hh,W0;function m_(){if(W0)return hh;W0=1;var r=Yw(),t=Ia();return hh=function(){var l=r();return t(Object,{is:l},{is:function(){return Object.is!==l}}),l},hh}var ph,F0;function v_(){if(F0)return ph;F0=1;var r=Ia(),t=Hi(),a=Vw(),l=Yw(),o=m_(),u=t(l(),Object);return r(u,{getPolyfill:l,implementation:a,shim:o}),ph=u,ph}var gh,Q0;function y_(){if(Q0)return gh;Q0=1;var r={}.toString;return gh=Array.isArray||function(t){return r.call(t)=="[object Array]"},gh}var mh,Z0;function b_(){if(Z0)return mh;Z0=1;var r=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,a,l;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw l}}),l={},t(function(){throw 42},null,a)}catch(V){V!==l&&(t=null)}else t=null;var o=/^\s*class\b/,u=function(I){try{var Q=r.call(I);return o.test(Q)}catch{return!1}},c=function(I){try{return u(I)?!1:(r.call(I),!0)}catch{return!1}},d=Object.prototype.toString,h="[object Object]",p="[object Function]",m="[object GeneratorFunction]",y="[object HTMLAllCollection]",x="[object HTML document.all class]",T="[object HTMLCollection]",N=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),z=function(){return!1};if(typeof document=="object"){var $=document.all;d.call($)===d.call(document.all)&&(z=function(I){if((_||!I)&&(typeof I>"u"||typeof I=="object"))try{var Q=d.call(I);return(Q===y||Q===x||Q===T||Q===h)&&I("")==null}catch{}return!1})}return mh=t?function(I){if(z(I))return!0;if(!I||typeof I!="function"&&typeof I!="object")return!1;try{t(I,null,a)}catch(Q){if(Q!==l)return!1}return!u(I)&&c(I)}:function(I){if(z(I))return!0;if(!I||typeof I!="function"&&typeof I!="object")return!1;if(N)return c(I);if(u(I))return!1;var Q=d.call(I);return Q!==p&&Q!==m&&!/^\[object HTML/.test(Q)?!1:c(I)},mh}var vh,K0;function S_(){if(K0)return vh;K0=1;var r=b_(),t=Object.prototype.toString,a=Object.prototype.hasOwnProperty,l=function(h,p,m){for(var y=0,x=h.length;y<x;y++)a.call(h,y)&&(m==null?p(h[y],y,h):p.call(m,h[y],y,h))},o=function(h,p,m){for(var y=0,x=h.length;y<x;y++)m==null?p(h.charAt(y),y,h):p.call(m,h.charAt(y),y,h)},u=function(h,p,m){for(var y in h)a.call(h,y)&&(m==null?p(h[y],y,h):p.call(m,h[y],y,h))},c=function(h,p,m){if(!r(p))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=m),t.call(h)==="[object Array]"?l(h,p,y):typeof h=="string"?o(h,p,y):u(h,p,y)};return vh=c,vh}var yh,J0;function w_(){if(J0)return yh;J0=1;var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],t=typeof globalThis>"u"?xr:globalThis;return yh=function(){for(var l=[],o=0;o<r.length;o++)typeof t[r[o]]=="function"&&(l[l.length]=r[o]);return l},yh}var bh,eS;function Xw(){if(eS)return bh;eS=1;var r=S_(),t=w_(),a=Hi(),l=Pn(),o=Eo(),u=l("Object.prototype.toString"),c=qa()(),d=typeof globalThis>"u"?xr:globalThis,h=t(),p=l("String.prototype.slice"),m=Object.getPrototypeOf,y=l("Array.prototype.indexOf",!0)||function(z,$){for(var V=0;V<z.length;V+=1)if(z[V]===$)return V;return-1},x={__proto__:null};c&&o&&m?r(h,function(_){var z=new d[_];if(Symbol.toStringTag in z){var $=m(z),V=o($,Symbol.toStringTag);if(!V){var I=m($);V=o(I,Symbol.toStringTag)}x["$"+_]=a(V.get)}}):r(h,function(_){var z=new d[_],$=z.slice||z.set;$&&(x["$"+_]=a($))});var T=function(z){var $=!1;return r(x,function(V,I){if(!$)try{"$"+V(z)===I&&($=p(I,1))}catch{}}),$},N=function(z){var $=!1;return r(x,function(V,I){if(!$)try{V(z),$=p(I,1)}catch{}}),$};return bh=function(z){if(!z||typeof z!="object")return!1;if(!c){var $=p(u(z),8,-1);return y(h,$)>-1?$:$!=="Object"?!1:N(z)}return o?T(z):null},bh}var Sh,tS;function x_(){if(tS)return Sh;tS=1;var r=Xw();return Sh=function(a){return!!r(a)},Sh}var wh,nS;function Ww(){if(nS)return wh;nS=1;var r=Hi(),t=Pn(),a=un(),l=x_(),o=a("ArrayBuffer",!0),u=a("Float32Array",!0),c=t("ArrayBuffer.prototype.byteLength",!0),d=o&&!c&&new o().slice,h=d&&r(d);return wh=c||h?function(m){if(!m||typeof m!="object")return!1;try{return c?c(m):h(m,0),!0}catch{return!1}}:u?function(m){try{return new u(m).buffer===m&&!l(m)}catch(y){return typeof m=="object"&&y.name==="RangeError"}}:function(m){return!1},wh}var xh,rS;function O_(){if(rS)return xh;rS=1;var r=Date.prototype.getDay,t=function(c){try{return r.call(c),!0}catch{return!1}},a=Object.prototype.toString,l="[object Date]",o=qa()();return xh=function(c){return typeof c!="object"||c===null?!1:o?t(c):a.call(c)===l},xh}var Oh,aS;function E_(){if(aS)return Oh;aS=1;var r=Pn(),t=qa()(),a,l,o,u;if(t){a=r("Object.prototype.hasOwnProperty"),l=r("RegExp.prototype.exec"),o={};var c=function(){throw o};u={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=c)}var d=r("Object.prototype.toString"),h=Object.getOwnPropertyDescriptor,p="[object RegExp]";return Oh=t?function(y){if(!y||typeof y!="object")return!1;var x=h(y,"lastIndex"),T=x&&a(x,"value");if(!T)return!1;try{l(y,u)}catch(N){return N===o}}:function(y){return!y||typeof y!="object"&&typeof y!="function"?!1:d(y)===p},Oh}var Eh,iS;function T_(){if(iS)return Eh;iS=1;var r=Pn(),t=r("SharedArrayBuffer.prototype.byteLength",!0);return Eh=t?function(l){if(!l||typeof l!="object")return!1;try{return t(l),!0}catch{return!1}}:function(l){return!1},Eh}var Th,lS;function C_(){if(lS)return Th;lS=1;var r=Number.prototype.toString,t=function(c){try{return r.call(c),!0}catch{return!1}},a=Object.prototype.toString,l="[object Number]",o=qa()();return Th=function(c){return typeof c=="number"?!0:typeof c!="object"?!1:o?t(c):a.call(c)===l},Th}var Ch,oS;function R_(){if(oS)return Ch;oS=1;var r=Pn(),t=r("Boolean.prototype.toString"),a=r("Object.prototype.toString"),l=function(d){try{return t(d),!0}catch{return!1}},o="[object Boolean]",u=qa()();return Ch=function(d){return typeof d=="boolean"?!0:d===null||typeof d!="object"?!1:u&&Symbol.toStringTag in d?l(d):a(d)===o},Ch}var Xs={exports:{}},sS;function __(){if(sS)return Xs.exports;sS=1;var r=Object.prototype.toString,t=tg()();if(t){var a=Symbol.prototype.toString,l=/^Symbol\(.*\)$/,o=function(c){return typeof c.valueOf()!="symbol"?!1:l.test(a.call(c))};Xs.exports=function(c){if(typeof c=="symbol")return!0;if(r.call(c)!=="[object Symbol]")return!1;try{return o(c)}catch{return!1}}}else Xs.exports=function(c){return!1};return Xs.exports}var Ws={exports:{}},Rh,uS;function j_(){if(uS)return Rh;uS=1;var r=typeof BigInt<"u"&&BigInt;return Rh=function(){return typeof r=="function"&&typeof BigInt=="function"&&typeof r(42)=="bigint"&&typeof BigInt(42)=="bigint"},Rh}var cS;function A_(){if(cS)return Ws.exports;cS=1;var r=j_()();if(r){var t=BigInt.prototype.valueOf,a=function(o){try{return t.call(o),!0}catch{}return!1};Ws.exports=function(o){return o===null||typeof o>"u"||typeof o=="boolean"||typeof o=="string"||typeof o=="number"||typeof o=="symbol"||typeof o=="function"?!1:typeof o=="bigint"?!0:a(o)}}else Ws.exports=function(o){return!1};return Ws.exports}var _h,fS;function M_(){if(fS)return _h;fS=1;var r=qw(),t=C_(),a=R_(),l=__(),o=A_();return _h=function(c){if(c==null||typeof c!="object"&&typeof c!="function")return null;if(r(c))return"String";if(t(c))return"Number";if(a(c))return"Boolean";if(l(c))return"Symbol";if(o(c))return"BigInt"},_h}var jh,dS;function N_(){if(dS)return jh;dS=1;var r=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,t=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,a;r||(a=function(c){return!1});var l=r?r.prototype.has:null,o=t?t.prototype.has:null;return!a&&!l&&(a=function(c){return!1}),jh=a||function(c){if(!c||typeof c!="object")return!1;try{if(l.call(c,l),o)try{o.call(c,o)}catch{return!0}return c instanceof r}catch{}return!1},jh}var Fs={exports:{}},hS;function D_(){if(hS)return Fs.exports;hS=1;var r=un(),t=Pn(),a=r("%WeakSet%",!0),l=t("WeakSet.prototype.has",!0);if(l){var o=t("WeakMap.prototype.has",!0);Fs.exports=function(c){if(!c||typeof c!="object")return!1;try{if(l(c,l),o)try{o(c,o)}catch{return!0}return c instanceof a}catch{}return!1}}else Fs.exports=function(c){return!1};return Fs.exports}var Ah,pS;function L_(){if(pS)return Ah;pS=1;var r=Uw(),t=Gw(),a=N_(),l=D_();return Ah=function(u){if(u&&typeof u=="object"){if(r(u))return"Map";if(t(u))return"Set";if(a(u))return"WeakMap";if(l(u))return"WeakSet"}return!1},Ah}var Mh,gS;function z_(){if(gS)return Mh;gS=1;var r=Pn(),t=r("ArrayBuffer.prototype.byteLength",!0),a=Ww();return Mh=function(o){return a(o)?t?t(o):o.byteLength:NaN},Mh}var Nh,mS;function P_(){if(mS)return Nh;mS=1;var r=n_(),t=Pn(),a=l_(),l=un(),o=g_(),u=Iw(),c=v_(),d=kw(),h=y_(),p=Ww(),m=O_(),y=E_(),x=T_(),T=eg(),N=M_(),_=L_(),z=Xw(),$=z_(),V=t("SharedArrayBuffer.prototype.byteLength",!0),I=t("Date.prototype.getTime"),Q=Object.getPrototypeOf,A=t("Object.prototype.toString"),M=l("%Set%",!0),P=t("Map.prototype.has",!0),F=t("Map.prototype.get",!0),D=t("Map.prototype.size",!0),E=t("Set.prototype.add",!0),W=t("Set.prototype.delete",!0),B=t("Set.prototype.has",!0),q=t("Set.prototype.size",!0);function k(H,U,Z,re){for(var ue=o(H),ge;(ge=ue.next())&&!ge.done;)if(R(U,ge.value,Z,re))return W(H,ge.value),!0;return!1}function G(H){if(typeof H>"u")return null;if(typeof H!="object")return typeof H=="symbol"?!1:typeof H=="string"||typeof H=="number"?+H==+H:!0}function L(H,U,Z,re,ue,ge){var pe=G(Z);if(pe!=null)return pe;var ve=F(U,pe),he=r({},ue,{strict:!1});return typeof ve>"u"&&!P(U,pe)||!R(re,ve,he,ge)?!1:!P(H,pe)&&R(re,ve,he,ge)}function b(H,U,Z){var re=G(Z);return re??(B(U,re)&&!B(H,re))}function te(H,U,Z,re,ue,ge){for(var pe=o(H),ve,he;(ve=pe.next())&&!ve.done;)if(he=ve.value,R(Z,he,ue,ge)&&R(re,F(U,he),ue,ge))return W(H,he),!0;return!1}function R(H,U,Z,re){var ue=Z||{};if(ue.strict?c(H,U):H===U)return!0;var ge=N(H),pe=N(U);if(ge!==pe)return!1;if(!H||!U||typeof H!="object"&&typeof U!="object")return ue.strict?c(H,U):H==U;var ve=re.has(H),he=re.has(U),me;if(ve&&he){if(re.get(H)===re.get(U))return!0}else me={};return ve||re.set(H,me),he||re.set(U,me),J(H,U,ue,re)}function v(H){return!H||typeof H!="object"||typeof H.length!="number"||typeof H.copy!="function"||typeof H.slice!="function"||H.length>0&&typeof H[0]!="number"?!1:!!(H.constructor&&H.constructor.isBuffer&&H.constructor.isBuffer(H))}function C(H,U,Z,re){if(q(H)!==q(U))return!1;for(var ue=o(H),ge=o(U),pe,ve,he;(pe=ue.next())&&!pe.done;)if(pe.value&&typeof pe.value=="object")he||(he=new M),E(he,pe.value);else if(!B(U,pe.value)){if(Z.strict||!b(H,U,pe.value))return!1;he||(he=new M),E(he,pe.value)}if(he){for(;(ve=ge.next())&&!ve.done;)if(ve.value&&typeof ve.value=="object"){if(!k(he,ve.value,Z.strict,re))return!1}else if(!Z.strict&&!B(H,ve.value)&&!k(he,ve.value,Z.strict,re))return!1;return q(he)===0}return!0}function Y(H,U,Z,re){if(D(H)!==D(U))return!1;for(var ue=o(H),ge=o(U),pe,ve,he,me,Se,ye;(pe=ue.next())&&!pe.done;)if(me=pe.value[0],Se=pe.value[1],me&&typeof me=="object")he||(he=new M),E(he,me);else if(ye=F(U,me),typeof ye>"u"&&!P(U,me)||!R(Se,ye,Z,re)){if(Z.strict||!L(H,U,me,Se,Z,re))return!1;he||(he=new M),E(he,me)}if(he){for(;(ve=ge.next())&&!ve.done;)if(me=ve.value[0],ye=ve.value[1],me&&typeof me=="object"){if(!te(he,H,me,ye,Z,re))return!1}else if(!Z.strict&&(!H.has(me)||!R(F(H,me),ye,Z,re))&&!te(he,H,me,ye,r({},Z,{strict:!1}),re))return!1;return q(he)===0}return!0}function J(H,U,Z,re){var ue,ge;if(typeof H!=typeof U||H==null||U==null||A(H)!==A(U)||d(H)!==d(U))return!1;var pe=h(H),ve=h(U);if(pe!==ve)return!1;var he=H instanceof Error,me=U instanceof Error;if(he!==me||(he||me)&&(H.name!==U.name||H.message!==U.message))return!1;var Se=y(H),ye=y(U);if(Se!==ye||(Se||ye)&&(H.source!==U.source||a(H)!==a(U)))return!1;var Re=m(H),be=m(U);if(Re!==be||(Re||be)&&I(H)!==I(U)||Z.strict&&Q&&Q(H)!==Q(U))return!1;var Le=z(H),Pe=z(U);if(Le!==Pe)return!1;if(Le||Pe){if(H.length!==U.length)return!1;for(ue=0;ue<H.length;ue++)if(H[ue]!==U[ue])return!1;return!0}var Te=v(H),ke=v(U);if(Te!==ke)return!1;if(Te||ke){if(H.length!==U.length)return!1;for(ue=0;ue<H.length;ue++)if(H[ue]!==U[ue])return!1;return!0}var lt=p(H),ft=p(U);if(lt!==ft)return!1;if(lt||ft)return $(H)!==$(U)?!1:typeof Uint8Array=="function"&&R(new Uint8Array(H),new Uint8Array(U),Z,re);var vt=x(H),Mt=x(U);if(vt!==Mt)return!1;if(vt||Mt)return V(H)!==V(U)?!1:typeof Uint8Array=="function"&&R(new Uint8Array(H),new Uint8Array(U),Z,re);if(typeof H!=typeof U)return!1;var Ae=T(H),Be=T(U);if(Ae.length!==Be.length)return!1;for(Ae.sort(),Be.sort(),ue=Ae.length-1;ue>=0;ue--)if(Ae[ue]!=Be[ue])return!1;for(ue=Ae.length-1;ue>=0;ue--)if(ge=Ae[ue],!R(H[ge],U[ge],Z,re))return!1;var nt=_(H),dt=_(U);return nt!==dt?!1:nt==="Set"||dt==="Set"?C(H,U,Z,re):nt==="Map"?Y(H,U,Z,re):!0}return Nh=function(U,Z,re){return R(U,Z,re,u())},Nh}var H_=P_();const Kn=Jn(H_);var Dh={exports:{}};/*!
63
+ `+se.prev}function cn(ie,se){var Ve=re(ie),Xe=[];if(Ve){Xe.length=ie.length;for(var Ze=0;Ze<ie.length;Ze++)Xe[Ze]=be(ie,Ze)?se(ie[Ze],ie):""}var ze=typeof B=="function"?B(ie):[],qt;if(k){qt={};for(var tr=0;tr<ze.length;tr++)qt["$"+ze[tr]]=ze[tr]}for(var Ht in ie)be(ie,Ht)&&(Ve&&String(Number(Ht))===Ht&&Ht<ie.length||k&&qt["$"+Ht]instanceof Symbol||(M.call(/[^\w$]/,Ht)?Xe.push(se(Ht,ie)+": "+se(ie[Ht],ie)):Xe.push(Ht+": "+se(ie[Ht],ie))));if(typeof B=="function")for(var jn=0;jn<ze.length;jn++)L.call(ie,ze[jn])&&Xe.push("["+se(ze[jn])+"]: "+se(ie[ze[jn]],ie));return Xe}return Jd}var eh,L0;function c_(){if(L0)return eh;L0=1;var r=xu(),t=Pi(),a=function(d,h,p){for(var g=d,v;(v=g.next)!=null;g=v)if(v.key===h)return g.next=v.next,p||(v.next=d.next,d.next=v),v},l=function(d,h){if(d){var p=a(d,h);return p&&p.value}},o=function(d,h,p){var g=a(d,h);g?g.value=p:d.next={key:h,next:d.next,value:p}},u=function(d,h){return d?!!a(d,h):!1},c=function(d,h){if(d)return a(d,h,!0)};return eh=function(){var h,p={assert:function(g){if(!p.has(g))throw new t("Side channel does not contain "+r(g))},delete:function(g){var v=h&&h.next,x=c(h,g);return x&&v&&v===x&&(h=void 0),!!x},get:function(g){return l(h,g)},has:function(g){return u(h,g)},set:function(g,v){h||(h={next:void 0}),o(h,g,v)}};return p},eh}var th,z0;function Bw(){if(z0)return th;z0=1;var r=un(),t=Nw(),a=t([r("%String.prototype.indexOf%")]);return th=function(o,u){var c=r(o,!!u);return typeof c=="function"&&a(o,".prototype.")>-1?t([c]):c},th}var nh,P0;function $w(){if(P0)return nh;P0=1;var r=un(),t=Bw(),a=xu(),l=Pi(),o=r("%Map%",!0),u=t("Map.prototype.get",!0),c=t("Map.prototype.set",!0),d=t("Map.prototype.has",!0),h=t("Map.prototype.delete",!0),p=t("Map.prototype.size",!0);return nh=!!o&&function(){var v,x={assert:function(T){if(!x.has(T))throw new l("Side channel does not contain "+a(T))},delete:function(T){if(v){var N=h(v,T);return p(v)===0&&(v=void 0),N}return!1},get:function(T){if(v)return u(v,T)},has:function(T){return v?d(v,T):!1},set:function(T,N){v||(v=new o),c(v,T,N)}};return x},nh}var rh,H0;function f_(){if(H0)return rh;H0=1;var r=un(),t=Bw(),a=xu(),l=$w(),o=Pi(),u=r("%WeakMap%",!0),c=t("WeakMap.prototype.get",!0),d=t("WeakMap.prototype.set",!0),h=t("WeakMap.prototype.has",!0),p=t("WeakMap.prototype.delete",!0);return rh=u?function(){var v,x,T={assert:function(N){if(!T.has(N))throw new o("Side channel does not contain "+a(N))},delete:function(N){if(u&&N&&(typeof N=="object"||typeof N=="function")){if(v)return p(v,N)}else if(l&&x)return x.delete(N);return!1},get:function(N){return u&&N&&(typeof N=="object"||typeof N=="function")&&v?c(v,N):x&&x.get(N)},has:function(N){return u&&N&&(typeof N=="object"||typeof N=="function")&&v?h(v,N):!!x&&x.has(N)},set:function(N,_){u&&N&&(typeof N=="object"||typeof N=="function")?(v||(v=new u),d(v,N,_)):l&&(x||(x=l()),x.set(N,_))}};return T}:l,rh}var ah,k0;function Iw(){if(k0)return ah;k0=1;var r=Pi(),t=xu(),a=c_(),l=$w(),o=f_(),u=o||l||a;return ah=function(){var d,h={assert:function(p){if(!h.has(p))throw new r("Side channel does not contain "+t(p))},delete:function(p){return!!d&&d.delete(p)},get:function(p){return d&&d.get(p)},has:function(p){return!!d&&d.has(p)},set:function(p,g){d||(d=u()),d.set(p,g)}};return h},ah}var ih,B0;function d_(){if(B0)return ih;B0=1;var r=un(),t=Dw(),a=Iw()(),l=r("%TypeError%"),o={assert:function(u,c){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");if(a.assert(u),!o.has(u,c))throw new l("`"+c+"` is not present on `O`")},get:function(u,c){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");var d=a.get(u);return d&&d["$"+c]},has:function(u,c){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");var d=a.get(u);return!!d&&t(d,"$"+c)},set:function(u,c,d){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");var h=a.get(u);h||(h={},a.set(u,h)),h["$"+c]=d}};return Object.freeze&&Object.freeze(o),ih=o,ih}var lh,$0;function h_(){if($0)return lh;$0=1;var r=d_(),t=SyntaxError,a=typeof StopIteration=="object"?StopIteration:null;return lh=function(o){if(!a)throw new t("this environment lacks StopIteration");r.set(o,"[[Done]]",!1);var u={next:function(){var d=r.get(this,"[[Iterator]]"),h=r.get(d,"[[Done]]");try{return{done:h,value:h?void 0:d.next()}}catch(p){if(r.set(d,"[[Done]]",!0),p!==a)throw p;return{done:!0,value:void 0}}}};return r.set(u,"[[Iterator]]",o),u},lh}var oh,I0;function p_(){if(I0)return oh;I0=1;var r={}.toString;return oh=Array.isArray||function(t){return r.call(t)=="[object Array]"},oh}var sh,q0;function qw(){if(q0)return sh;q0=1;var r=String.prototype.valueOf,t=function(c){try{return r.call(c),!0}catch{return!1}},a=Object.prototype.toString,l="[object String]",o=Ua()();return sh=function(c){return typeof c=="string"?!0:typeof c!="object"?!1:o?t(c):a.call(c)===l},sh}var uh,U0;function Uw(){if(U0)return uh;U0=1;var r=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,a;r||(a=function(c){return!1});var l=r?Map.prototype.has:null,o=t?Set.prototype.has:null;return!a&&!l&&(a=function(c){return!1}),uh=a||function(c){if(!c||typeof c!="object")return!1;try{if(l.call(c),o)try{o.call(c)}catch{return!0}return c instanceof r}catch{}return!1},uh}var ch,G0;function Gw(){if(G0)return ch;G0=1;var r=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,a;t||(a=function(c){return!1});var l=r?Map.prototype.has:null,o=t?Set.prototype.has:null;return!a&&!o&&(a=function(c){return!1}),ch=a||function(c){if(!c||typeof c!="object")return!1;try{if(o.call(c),l)try{l.call(c)}catch{return!0}return c instanceof t}catch{}return!1},ch}var V0;function m_(){if(V0)return ql.exports;V0=1;var r=kw(),t=h_();if(tm()()||Su()()){var a=Symbol.iterator;ql.exports=function(D){if(D!=null&&typeof D[a]<"u")return D[a]();if(r(D))return Array.prototype[a].call(D)}}else{var l=p_(),o=qw(),u=un(),c=u("%Map%",!0),d=u("%Set%",!0),h=Pn(),p=h("Array.prototype.push"),g=h("String.prototype.charCodeAt"),v=h("String.prototype.slice"),x=function(D,E){var X=D.length;if(E+1>=X)return E+1;var B=g(D,E);if(B<55296||B>56319)return E+1;var q=g(D,E+1);return q<56320||q>57343?E+1:E+2},T=function(D){var E=0;return{next:function(){var B=E>=D.length,q;return B||(q=D[E],E+=1),{done:B,value:q}}}},N=function(D,E){if(l(D)||r(D))return T(D);if(o(D)){var X=0;return{next:function(){var q=x(D,X),k=v(D,X,q);return X=q,{done:q>D.length,value:k}}}}if(E&&typeof D["_es6-shim iterator_"]<"u")return D["_es6-shim iterator_"]()};if(!c&&!d)ql.exports=function(D){if(D!=null)return N(D,!0)};else{var _=Uw(),z=Gw(),$=h("Map.prototype.forEach",!0),V=h("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var I=h("Map.prototype.iterator",!0),Q=h("Set.prototype.iterator",!0);var j=h("Map.prototype.@@iterator",!0)||h("Map.prototype._es6-shim iterator_",!0),M=h("Set.prototype.@@iterator",!0)||h("Set.prototype._es6-shim iterator_",!0),P=function(D){if(_(D)){if(I)return t(I(D));if(j)return j(D);if($){var E=[];return $(D,function(B,q){p(E,[q,B])}),T(E)}}if(z(D)){if(Q)return t(Q(D));if(M)return M(D);if(V){var X=[];return V(D,function(B){p(X,B)}),T(X)}}};ql.exports=function(D){return P(D)||N(D)}}}return ql.exports}var fh,W0;function Vw(){if(W0)return fh;W0=1;var r=function(t){return t!==t};return fh=function(a,l){return a===0&&l===0?1/a===1/l:!!(a===l||r(a)&&r(l))},fh}var dh,Y0;function Ww(){if(Y0)return dh;Y0=1;var r=Vw();return dh=function(){return typeof Object.is=="function"?Object.is:r},dh}var hh,X0;function g_(){if(X0)return hh;X0=1;var r=Ww(),t=qa();return hh=function(){var l=r();return t(Object,{is:l},{is:function(){return Object.is!==l}}),l},hh}var ph,F0;function v_(){if(F0)return ph;F0=1;var r=qa(),t=Hi(),a=Vw(),l=Ww(),o=g_(),u=t(l(),Object);return r(u,{getPolyfill:l,implementation:a,shim:o}),ph=u,ph}var mh,Q0;function y_(){if(Q0)return mh;Q0=1;var r={}.toString;return mh=Array.isArray||function(t){return r.call(t)=="[object Array]"},mh}var gh,Z0;function b_(){if(Z0)return gh;Z0=1;var r=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,a,l;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw l}}),l={},t(function(){throw 42},null,a)}catch(V){V!==l&&(t=null)}else t=null;var o=/^\s*class\b/,u=function(I){try{var Q=r.call(I);return o.test(Q)}catch{return!1}},c=function(I){try{return u(I)?!1:(r.call(I),!0)}catch{return!1}},d=Object.prototype.toString,h="[object Object]",p="[object Function]",g="[object GeneratorFunction]",v="[object HTMLAllCollection]",x="[object HTML document.all class]",T="[object HTMLCollection]",N=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),z=function(){return!1};if(typeof document=="object"){var $=document.all;d.call($)===d.call(document.all)&&(z=function(I){if((_||!I)&&(typeof I>"u"||typeof I=="object"))try{var Q=d.call(I);return(Q===v||Q===x||Q===T||Q===h)&&I("")==null}catch{}return!1})}return gh=t?function(I){if(z(I))return!0;if(!I||typeof I!="function"&&typeof I!="object")return!1;try{t(I,null,a)}catch(Q){if(Q!==l)return!1}return!u(I)&&c(I)}:function(I){if(z(I))return!0;if(!I||typeof I!="function"&&typeof I!="object")return!1;if(N)return c(I);if(u(I))return!1;var Q=d.call(I);return Q!==p&&Q!==g&&!/^\[object HTML/.test(Q)?!1:c(I)},gh}var vh,K0;function S_(){if(K0)return vh;K0=1;var r=b_(),t=Object.prototype.toString,a=Object.prototype.hasOwnProperty,l=function(h,p,g){for(var v=0,x=h.length;v<x;v++)a.call(h,v)&&(g==null?p(h[v],v,h):p.call(g,h[v],v,h))},o=function(h,p,g){for(var v=0,x=h.length;v<x;v++)g==null?p(h.charAt(v),v,h):p.call(g,h.charAt(v),v,h)},u=function(h,p,g){for(var v in h)a.call(h,v)&&(g==null?p(h[v],v,h):p.call(g,h[v],v,h))},c=function(h,p,g){if(!r(p))throw new TypeError("iterator must be a function");var v;arguments.length>=3&&(v=g),t.call(h)==="[object Array]"?l(h,p,v):typeof h=="string"?o(h,p,v):u(h,p,v)};return vh=c,vh}var yh,J0;function w_(){if(J0)return yh;J0=1;var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],t=typeof globalThis>"u"?xr:globalThis;return yh=function(){for(var l=[],o=0;o<r.length;o++)typeof t[r[o]]=="function"&&(l[l.length]=r[o]);return l},yh}var bh,eS;function Yw(){if(eS)return bh;eS=1;var r=S_(),t=w_(),a=Hi(),l=Pn(),o=Eo(),u=l("Object.prototype.toString"),c=Ua()(),d=typeof globalThis>"u"?xr:globalThis,h=t(),p=l("String.prototype.slice"),g=Object.getPrototypeOf,v=l("Array.prototype.indexOf",!0)||function(z,$){for(var V=0;V<z.length;V+=1)if(z[V]===$)return V;return-1},x={__proto__:null};c&&o&&g?r(h,function(_){var z=new d[_];if(Symbol.toStringTag in z){var $=g(z),V=o($,Symbol.toStringTag);if(!V){var I=g($);V=o(I,Symbol.toStringTag)}x["$"+_]=a(V.get)}}):r(h,function(_){var z=new d[_],$=z.slice||z.set;$&&(x["$"+_]=a($))});var T=function(z){var $=!1;return r(x,function(V,I){if(!$)try{"$"+V(z)===I&&($=p(I,1))}catch{}}),$},N=function(z){var $=!1;return r(x,function(V,I){if(!$)try{V(z),$=p(I,1)}catch{}}),$};return bh=function(z){if(!z||typeof z!="object")return!1;if(!c){var $=p(u(z),8,-1);return v(h,$)>-1?$:$!=="Object"?!1:N(z)}return o?T(z):null},bh}var Sh,tS;function x_(){if(tS)return Sh;tS=1;var r=Yw();return Sh=function(a){return!!r(a)},Sh}var wh,nS;function Xw(){if(nS)return wh;nS=1;var r=Hi(),t=Pn(),a=un(),l=x_(),o=a("ArrayBuffer",!0),u=a("Float32Array",!0),c=t("ArrayBuffer.prototype.byteLength",!0),d=o&&!c&&new o().slice,h=d&&r(d);return wh=c||h?function(g){if(!g||typeof g!="object")return!1;try{return c?c(g):h(g,0),!0}catch{return!1}}:u?function(g){try{return new u(g).buffer===g&&!l(g)}catch(v){return typeof g=="object"&&v.name==="RangeError"}}:function(g){return!1},wh}var xh,rS;function O_(){if(rS)return xh;rS=1;var r=Date.prototype.getDay,t=function(c){try{return r.call(c),!0}catch{return!1}},a=Object.prototype.toString,l="[object Date]",o=Ua()();return xh=function(c){return typeof c!="object"||c===null?!1:o?t(c):a.call(c)===l},xh}var Oh,aS;function E_(){if(aS)return Oh;aS=1;var r=Pn(),t=Ua()(),a,l,o,u;if(t){a=r("Object.prototype.hasOwnProperty"),l=r("RegExp.prototype.exec"),o={};var c=function(){throw o};u={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=c)}var d=r("Object.prototype.toString"),h=Object.getOwnPropertyDescriptor,p="[object RegExp]";return Oh=t?function(v){if(!v||typeof v!="object")return!1;var x=h(v,"lastIndex"),T=x&&a(x,"value");if(!T)return!1;try{l(v,u)}catch(N){return N===o}}:function(v){return!v||typeof v!="object"&&typeof v!="function"?!1:d(v)===p},Oh}var Eh,iS;function T_(){if(iS)return Eh;iS=1;var r=Pn(),t=r("SharedArrayBuffer.prototype.byteLength",!0);return Eh=t?function(l){if(!l||typeof l!="object")return!1;try{return t(l),!0}catch{return!1}}:function(l){return!1},Eh}var Th,lS;function C_(){if(lS)return Th;lS=1;var r=Number.prototype.toString,t=function(c){try{return r.call(c),!0}catch{return!1}},a=Object.prototype.toString,l="[object Number]",o=Ua()();return Th=function(c){return typeof c=="number"?!0:typeof c!="object"?!1:o?t(c):a.call(c)===l},Th}var Ch,oS;function R_(){if(oS)return Ch;oS=1;var r=Pn(),t=r("Boolean.prototype.toString"),a=r("Object.prototype.toString"),l=function(d){try{return t(d),!0}catch{return!1}},o="[object Boolean]",u=Ua()();return Ch=function(d){return typeof d=="boolean"?!0:d===null||typeof d!="object"?!1:u&&Symbol.toStringTag in d?l(d):a(d)===o},Ch}var Ys={exports:{}},sS;function __(){if(sS)return Ys.exports;sS=1;var r=Object.prototype.toString,t=tm()();if(t){var a=Symbol.prototype.toString,l=/^Symbol\(.*\)$/,o=function(c){return typeof c.valueOf()!="symbol"?!1:l.test(a.call(c))};Ys.exports=function(c){if(typeof c=="symbol")return!0;if(r.call(c)!=="[object Symbol]")return!1;try{return o(c)}catch{return!1}}}else Ys.exports=function(c){return!1};return Ys.exports}var Xs={exports:{}},Rh,uS;function j_(){if(uS)return Rh;uS=1;var r=typeof BigInt<"u"&&BigInt;return Rh=function(){return typeof r=="function"&&typeof BigInt=="function"&&typeof r(42)=="bigint"&&typeof BigInt(42)=="bigint"},Rh}var cS;function A_(){if(cS)return Xs.exports;cS=1;var r=j_()();if(r){var t=BigInt.prototype.valueOf,a=function(o){try{return t.call(o),!0}catch{}return!1};Xs.exports=function(o){return o===null||typeof o>"u"||typeof o=="boolean"||typeof o=="string"||typeof o=="number"||typeof o=="symbol"||typeof o=="function"?!1:typeof o=="bigint"?!0:a(o)}}else Xs.exports=function(o){return!1};return Xs.exports}var _h,fS;function M_(){if(fS)return _h;fS=1;var r=qw(),t=C_(),a=R_(),l=__(),o=A_();return _h=function(c){if(c==null||typeof c!="object"&&typeof c!="function")return null;if(r(c))return"String";if(t(c))return"Number";if(a(c))return"Boolean";if(l(c))return"Symbol";if(o(c))return"BigInt"},_h}var jh,dS;function N_(){if(dS)return jh;dS=1;var r=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,t=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,a;r||(a=function(c){return!1});var l=r?r.prototype.has:null,o=t?t.prototype.has:null;return!a&&!l&&(a=function(c){return!1}),jh=a||function(c){if(!c||typeof c!="object")return!1;try{if(l.call(c,l),o)try{o.call(c,o)}catch{return!0}return c instanceof r}catch{}return!1},jh}var Fs={exports:{}},hS;function D_(){if(hS)return Fs.exports;hS=1;var r=un(),t=Pn(),a=r("%WeakSet%",!0),l=t("WeakSet.prototype.has",!0);if(l){var o=t("WeakMap.prototype.has",!0);Fs.exports=function(c){if(!c||typeof c!="object")return!1;try{if(l(c,l),o)try{o(c,o)}catch{return!0}return c instanceof a}catch{}return!1}}else Fs.exports=function(c){return!1};return Fs.exports}var Ah,pS;function L_(){if(pS)return Ah;pS=1;var r=Uw(),t=Gw(),a=N_(),l=D_();return Ah=function(u){if(u&&typeof u=="object"){if(r(u))return"Map";if(t(u))return"Set";if(a(u))return"WeakMap";if(l(u))return"WeakSet"}return!1},Ah}var Mh,mS;function z_(){if(mS)return Mh;mS=1;var r=Pn(),t=r("ArrayBuffer.prototype.byteLength",!0),a=Xw();return Mh=function(o){return a(o)?t?t(o):o.byteLength:NaN},Mh}var Nh,gS;function P_(){if(gS)return Nh;gS=1;var r=n_(),t=Pn(),a=l_(),l=un(),o=m_(),u=Iw(),c=v_(),d=kw(),h=y_(),p=Xw(),g=O_(),v=E_(),x=T_(),T=em(),N=M_(),_=L_(),z=Yw(),$=z_(),V=t("SharedArrayBuffer.prototype.byteLength",!0),I=t("Date.prototype.getTime"),Q=Object.getPrototypeOf,j=t("Object.prototype.toString"),M=l("%Set%",!0),P=t("Map.prototype.has",!0),F=t("Map.prototype.get",!0),D=t("Map.prototype.size",!0),E=t("Set.prototype.add",!0),X=t("Set.prototype.delete",!0),B=t("Set.prototype.has",!0),q=t("Set.prototype.size",!0);function k(H,U,Z,re){for(var ue=o(H),me;(me=ue.next())&&!me.done;)if(R(U,me.value,Z,re))return X(H,me.value),!0;return!1}function G(H){if(typeof H>"u")return null;if(typeof H!="object")return typeof H=="symbol"?!1:typeof H=="string"||typeof H=="number"?+H==+H:!0}function L(H,U,Z,re,ue,me){var pe=G(Z);if(pe!=null)return pe;var ve=F(U,pe),he=r({},ue,{strict:!1});return typeof ve>"u"&&!P(U,pe)||!R(re,ve,he,me)?!1:!P(H,pe)&&R(re,ve,he,me)}function b(H,U,Z){var re=G(Z);return re??(B(U,re)&&!B(H,re))}function te(H,U,Z,re,ue,me){for(var pe=o(H),ve,he;(ve=pe.next())&&!ve.done;)if(he=ve.value,R(Z,he,ue,me)&&R(re,F(U,he),ue,me))return X(H,he),!0;return!1}function R(H,U,Z,re){var ue=Z||{};if(ue.strict?c(H,U):H===U)return!0;var me=N(H),pe=N(U);if(me!==pe)return!1;if(!H||!U||typeof H!="object"&&typeof U!="object")return ue.strict?c(H,U):H==U;var ve=re.has(H),he=re.has(U),ge;if(ve&&he){if(re.get(H)===re.get(U))return!0}else ge={};return ve||re.set(H,ge),he||re.set(U,ge),J(H,U,ue,re)}function y(H){return!H||typeof H!="object"||typeof H.length!="number"||typeof H.copy!="function"||typeof H.slice!="function"||H.length>0&&typeof H[0]!="number"?!1:!!(H.constructor&&H.constructor.isBuffer&&H.constructor.isBuffer(H))}function C(H,U,Z,re){if(q(H)!==q(U))return!1;for(var ue=o(H),me=o(U),pe,ve,he;(pe=ue.next())&&!pe.done;)if(pe.value&&typeof pe.value=="object")he||(he=new M),E(he,pe.value);else if(!B(U,pe.value)){if(Z.strict||!b(H,U,pe.value))return!1;he||(he=new M),E(he,pe.value)}if(he){for(;(ve=me.next())&&!ve.done;)if(ve.value&&typeof ve.value=="object"){if(!k(he,ve.value,Z.strict,re))return!1}else if(!Z.strict&&!B(H,ve.value)&&!k(he,ve.value,Z.strict,re))return!1;return q(he)===0}return!0}function W(H,U,Z,re){if(D(H)!==D(U))return!1;for(var ue=o(H),me=o(U),pe,ve,he,ge,Se,ye;(pe=ue.next())&&!pe.done;)if(ge=pe.value[0],Se=pe.value[1],ge&&typeof ge=="object")he||(he=new M),E(he,ge);else if(ye=F(U,ge),typeof ye>"u"&&!P(U,ge)||!R(Se,ye,Z,re)){if(Z.strict||!L(H,U,ge,Se,Z,re))return!1;he||(he=new M),E(he,ge)}if(he){for(;(ve=me.next())&&!ve.done;)if(ge=ve.value[0],ye=ve.value[1],ge&&typeof ge=="object"){if(!te(he,H,ge,ye,Z,re))return!1}else if(!Z.strict&&(!H.has(ge)||!R(F(H,ge),ye,Z,re))&&!te(he,H,ge,ye,r({},Z,{strict:!1}),re))return!1;return q(he)===0}return!0}function J(H,U,Z,re){var ue,me;if(typeof H!=typeof U||H==null||U==null||j(H)!==j(U)||d(H)!==d(U))return!1;var pe=h(H),ve=h(U);if(pe!==ve)return!1;var he=H instanceof Error,ge=U instanceof Error;if(he!==ge||(he||ge)&&(H.name!==U.name||H.message!==U.message))return!1;var Se=v(H),ye=v(U);if(Se!==ye||(Se||ye)&&(H.source!==U.source||a(H)!==a(U)))return!1;var Re=g(H),be=g(U);if(Re!==be||(Re||be)&&I(H)!==I(U)||Z.strict&&Q&&Q(H)!==Q(U))return!1;var Le=z(H),Pe=z(U);if(Le!==Pe)return!1;if(Le||Pe){if(H.length!==U.length)return!1;for(ue=0;ue<H.length;ue++)if(H[ue]!==U[ue])return!1;return!0}var Te=y(H),ke=y(U);if(Te!==ke)return!1;if(Te||ke){if(H.length!==U.length)return!1;for(ue=0;ue<H.length;ue++)if(H[ue]!==U[ue])return!1;return!0}var ot=p(H),ft=p(U);if(ot!==ft)return!1;if(ot||ft)return $(H)!==$(U)?!1:typeof Uint8Array=="function"&&R(new Uint8Array(H),new Uint8Array(U),Z,re);var yt=x(H),Nt=x(U);if(yt!==Nt)return!1;if(yt||Nt)return V(H)!==V(U)?!1:typeof Uint8Array=="function"&&R(new Uint8Array(H),new Uint8Array(U),Z,re);if(typeof H!=typeof U)return!1;var Ae=T(H),Be=T(U);if(Ae.length!==Be.length)return!1;for(Ae.sort(),Be.sort(),ue=Ae.length-1;ue>=0;ue--)if(Ae[ue]!=Be[ue])return!1;for(ue=Ae.length-1;ue>=0;ue--)if(me=Ae[ue],!R(H[me],U[me],Z,re))return!1;var nt=_(H),dt=_(U);return nt!==dt?!1:nt==="Set"||dt==="Set"?C(H,U,Z,re):nt==="Map"?W(H,U,Z,re):!0}return Nh=function(U,Z,re){return R(U,Z,re,u())},Nh}var H_=P_();const Kn=Jn(H_);var Dh={exports:{}};/*!
64
64
  Copyright (c) 2018 Jed Watson.
65
65
  Licensed under the MIT License (MIT), see
66
66
  http://jedwatson.github.io/classnames
67
- */var vS;function Co(){return vS||(vS=1,function(r){(function(){var t={}.hasOwnProperty;function a(){for(var u="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(u=o(u,l(d)))}return u}function l(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return a.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var c="";for(var d in u)t.call(u,d)&&u[d]&&(c=o(c,d));return c}function o(u,c){return c?u?u+" "+c:u+c:u}r.exports?(a.default=a,r.exports=a):window.classNames=a})()}(Dh)),Dh.exports}var k_=Co();const Oe=Jn(k_);function Tp(){return Tp=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(r[l]=a[l])}return r},Tp.apply(null,arguments)}function Fw(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)!==-1)continue;a[l]=r[l]}return a}function yS(r){return"default"+r.charAt(0).toUpperCase()+r.substr(1)}function B_(r){var t=$_(r,"string");return typeof t=="symbol"?t:String(t)}function $_(r,t){if(typeof r!="object"||r===null)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var l=a.call(r,t);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function Qw(r,t,a){var l=w.useRef(r!==void 0),o=w.useState(t),u=o[0],c=o[1],d=r!==void 0,h=l.current;return l.current=d,!d&&h&&u!==t&&c(t),[d?r:u,w.useCallback(function(p){for(var m=arguments.length,y=new Array(m>1?m-1:0),x=1;x<m;x++)y[x-1]=arguments[x];a&&a.apply(void 0,[p].concat(y)),c(p)},[a])]}function I_(r,t){return Object.keys(t).reduce(function(a,l){var o,u=a,c=u[yS(l)],d=u[l],h=Fw(u,[yS(l),l].map(B_)),p=t[l],m=Qw(d,c,r[p]),y=m[0],x=m[1];return Tp({},h,(o={},o[l]=y,o[p]=x,o))},r)}function Cp(r,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,l){return a.__proto__=l,a},Cp(r,t)}function q_(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,Cp(r,t)}const Zw=["xxl","xl","lg","md","sm","xs"],Kw="xs",Ro=w.createContext({prefixes:{},breakpoints:Zw,minBreakpoint:Kw}),{Consumer:bN,Provider:SN}=Ro;function Ce(r,t){const{prefixes:a}=w.useContext(Ro);return r||a[t]||t}function ag(){const{breakpoints:r}=w.useContext(Ro);return r}function ig(){const{minBreakpoint:r}=w.useContext(Ro);return r}function lg(){const{dir:r}=w.useContext(Ro);return r==="rtl"}function ki(r){return r&&r.ownerDocument||document}function U_(r){var t=ki(r);return t&&t.defaultView||window}function G_(r,t){return U_(r).getComputedStyle(r,t)}var V_=/([A-Z])/g;function Y_(r){return r.replace(V_,"-$1").toLowerCase()}var X_=/^ms-/;function Qs(r){return Y_(r).replace(X_,"-ms-")}var W_=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function F_(r){return!!(r&&W_.test(r))}function Ha(r,t){var a="",l="";if(typeof t=="string")return r.style.getPropertyValue(Qs(t))||G_(r).getPropertyValue(Qs(t));Object.keys(t).forEach(function(o){var u=t[o];!u&&u!==0?r.style.removeProperty(Qs(o)):F_(o)?l+=o+"("+u+") ":a+=Qs(o)+": "+u+";"}),l&&(a+="transform: "+l+";"),r.style.cssText+=";"+a}var Lh={exports:{}},zh,bS;function Q_(){if(bS)return zh;bS=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zh=r,zh}var Ph,SS;function Z_(){if(SS)return Ph;SS=1;var r=Q_();function t(){}function a(){}return a.resetWarningCache=t,Ph=function(){function l(c,d,h,p,m,y){if(y!==r){var x=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 x.name="Invariant Violation",x}}l.isRequired=l;function o(){return l}var u={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:o,element:l,elementType:l,instanceOf:o,node:l,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:t};return u.PropTypes=u,u},Ph}var wS;function Jw(){return wS||(wS=1,Lh.exports=Z_()()),Lh.exports}var K_=Jw();const zt=Jn(K_);var J_=W1();const za=Jn(J_),xS={disabled:!1},ex=Ft.createContext(null);var e3=function(t){return t.scrollTop},eo="unmounted",Na="exited",Wn="entering",oa="entered",ou="exiting",Ar=function(r){q_(t,r);function t(l,o){var u;u=r.call(this,l,o)||this;var c=o,d=c&&!c.isMounting?l.enter:l.appear,h;return u.appearStatus=null,l.in?d?(h=Na,u.appearStatus=Wn):h=oa:l.unmountOnExit||l.mountOnEnter?h=eo:h=Na,u.state={status:h},u.nextCallback=null,u}t.getDerivedStateFromProps=function(o,u){var c=o.in;return c&&u.status===eo?{status:Na}:null};var a=t.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(o){var u=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==Wn&&c!==oa&&(u=Wn):(c===Wn||c===oa)&&(u=ou)}this.updateStatus(!1,u)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var o=this.props.timeout,u,c,d;return u=c=d=o,o!=null&&typeof o!="number"&&(u=o.exit,c=o.enter,d=o.appear!==void 0?o.appear:c),{exit:u,enter:c,appear:d}},a.updateStatus=function(o,u){if(o===void 0&&(o=!1),u!==null)if(this.cancelNextCallback(),u===Wn){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:za.findDOMNode(this);c&&e3(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Na&&this.setState({status:eo})},a.performEnter=function(o){var u=this,c=this.props.enter,d=this.context?this.context.isMounting:o,h=this.props.nodeRef?[d]:[za.findDOMNode(this),d],p=h[0],m=h[1],y=this.getTimeouts(),x=d?y.appear:y.enter;if(!o&&!c||xS.disabled){this.safeSetState({status:oa},function(){u.props.onEntered(p)});return}this.props.onEnter(p,m),this.safeSetState({status:Wn},function(){u.props.onEntering(p,m),u.onTransitionEnd(x,function(){u.safeSetState({status:oa},function(){u.props.onEntered(p,m)})})})},a.performExit=function(){var o=this,u=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:za.findDOMNode(this);if(!u||xS.disabled){this.safeSetState({status:Na},function(){o.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:ou},function(){o.props.onExiting(d),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:Na},function(){o.props.onExited(d)})})})},a.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(o,u){u=this.setNextCallback(u),this.setState(o,u)},a.setNextCallback=function(o){var u=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,u.nextCallback=null,o(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},a.onTransitionEnd=function(o,u){this.setNextCallback(u);var c=this.props.nodeRef?this.props.nodeRef.current:za.findDOMNode(this),d=o==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=h[0],m=h[1];this.props.addEndListener(p,m)}o!=null&&setTimeout(this.nextCallback,o)},a.render=function(){var o=this.state.status;if(o===eo)return null;var u=this.props,c=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var d=Fw(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ft.createElement(ex.Provider,{value:null},typeof c=="function"?c(o,d):Ft.cloneElement(Ft.Children.only(c),d))},t}(Ft.Component);Ar.contextType=ex;Ar.propTypes={};function Ti(){}Ar.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ti,onEntering:Ti,onEntered:Ti,onExit:Ti,onExiting:Ti,onExited:Ti};Ar.UNMOUNTED=eo;Ar.EXITED=Na;Ar.ENTERING=Wn;Ar.ENTERED=oa;Ar.EXITING=ou;function tx(r){return r.code==="Escape"||r.keyCode===27}function t3(){const r=w.version.split(".");return{major:+r[0],minor:+r[1],patch:+r[2]}}function Bi(r){if(!r||typeof r=="function")return null;const{major:t}=t3();return t>=19?r.props.ref:r.ref}const $i=!!(typeof window<"u"&&window.document&&window.document.createElement);var Rp=!1,_p=!1;try{var Hh={get passive(){return Rp=!0},get once(){return _p=Rp=!0}};$i&&(window.addEventListener("test",Hh,Hh),window.removeEventListener("test",Hh,!0))}catch{}function nx(r,t,a,l){if(l&&typeof l!="boolean"&&!_p){var o=l.once,u=l.capture,c=a;!_p&&o&&(c=a.__once||function d(h){this.removeEventListener(t,d,u),a.call(this,h)},a.__once=c),r.addEventListener(t,c,Rp?l:u)}r.addEventListener(t,a,l)}function jp(r,t,a,l){var o=l&&typeof l!="boolean"?l.capture:l;r.removeEventListener(t,a,o),a.__once&&r.removeEventListener(t,a.__once,o)}function Or(r,t,a,l){return nx(r,t,a,l),function(){jp(r,t,a,l)}}function n3(r,t,a,l){if(l===void 0&&(l=!0),r){var o=document.createEvent("HTMLEvents");o.initEvent(t,a,l),r.dispatchEvent(o)}}function r3(r){var t=Ha(r,"transitionDuration")||"",a=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*a}function a3(r,t,a){a===void 0&&(a=5);var l=!1,o=setTimeout(function(){l||n3(r,"transitionend",!0)},t+a),u=Or(r,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(o),u()}}function rx(r,t,a,l){a==null&&(a=r3(r)||0);var o=a3(r,a,l),u=Or(r,"transitionend",t);return function(){o(),u()}}function OS(r,t){const a=Ha(r,t)||"",l=a.indexOf("ms")===-1?1e3:1;return parseFloat(a)*l}function ax(r,t){const a=OS(r,"transitionDuration"),l=OS(r,"transitionDelay"),o=rx(r,u=>{u.target===r&&(o(),t(u))},a+l)}function i3(r){r.offsetHeight}const ES=r=>!r||typeof r=="function"?r:t=>{r.current=t};function l3(r,t){const a=ES(r),l=ES(t);return o=>{a&&a(o),l&&l(o)}}function Ou(r,t){return w.useMemo(()=>l3(r,t),[r,t])}function su(r){return r&&"setState"in r?za.findDOMNode(r):r??null}const og=Ft.forwardRef(({onEnter:r,onEntering:t,onEntered:a,onExit:l,onExiting:o,onExited:u,addEndListener:c,children:d,childRef:h,...p},m)=>{const y=w.useRef(null),x=Ou(y,h),T=M=>{x(su(M))},N=M=>P=>{M&&y.current&&M(y.current,P)},_=w.useCallback(N(r),[r]),z=w.useCallback(N(t),[t]),$=w.useCallback(N(a),[a]),V=w.useCallback(N(l),[l]),I=w.useCallback(N(o),[o]),Q=w.useCallback(N(u),[u]),A=w.useCallback(N(c),[c]);return S.jsx(Ar,{ref:m,...p,onEnter:_,onEntered:$,onEntering:z,onExit:V,onExited:Q,onExiting:I,addEndListener:A,nodeRef:y,children:typeof d=="function"?(M,P)=>d(M,{...P,ref:T}):Ft.cloneElement(d,{ref:T})})});og.displayName="TransitionWrapper";function o3(r){const t=w.useRef(r);return w.useEffect(()=>{t.current=r},[r]),t}function lo(r){const t=o3(r);return w.useCallback(function(...a){return t.current&&t.current(...a)},[t])}const Eu=r=>w.forwardRef((t,a)=>S.jsx("div",{...t,ref:a,className:Oe(t.className,r)}));function TS(){return w.useState(null)}function s3(r){const t=w.useRef(r);return w.useEffect(()=>{t.current=r},[r]),t}function wn(r){const t=s3(r);return w.useCallback(function(...a){return t.current&&t.current(...a)},[t])}function ix(){const r=w.useRef(!0),t=w.useRef(()=>r.current);return w.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),t.current}function u3(r){const t=w.useRef(null);return w.useEffect(()=>{t.current=r}),t.current}const c3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",f3=typeof document<"u",CS=f3||c3?w.useLayoutEffect:w.useEffect,d3=["as","disabled"];function h3(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function p3(r){return!r||r.trim()==="#"}function sg({tagName:r,disabled:t,href:a,target:l,rel:o,role:u,onClick:c,tabIndex:d=0,type:h}){r||(a!=null||l!=null||o!=null?r="a":r="button");const p={tagName:r};if(r==="button")return[{type:h||"button",disabled:t},p];const m=x=>{if((t||r==="a"&&p3(a))&&x.preventDefault(),t){x.stopPropagation();return}c==null||c(x)},y=x=>{x.key===" "&&(x.preventDefault(),m(x))};return r==="a"&&(a||(a="#"),t&&(a=void 0)),[{role:u??"button",disabled:void 0,tabIndex:t?void 0:d,href:a,target:r==="a"?l:void 0,"aria-disabled":t||void 0,rel:r==="a"?o:void 0,onClick:m,onKeyDown:y},p]}const lx=w.forwardRef((r,t)=>{let{as:a,disabled:l}=r,o=h3(r,d3);const[u,{tagName:c}]=sg(Object.assign({tagName:a,disabled:l},o));return S.jsx(c,Object.assign({},o,u,{ref:t}))});lx.displayName="Button";const g3=["onKeyDown"];function m3(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function v3(r){return!r||r.trim()==="#"}const ox=w.forwardRef((r,t)=>{let{onKeyDown:a}=r,l=m3(r,g3);const[o]=sg(Object.assign({tagName:"a"},l)),u=wn(c=>{o.onKeyDown(c),a==null||a(c)});return v3(l.href)||l.role==="button"?S.jsx("a",Object.assign({ref:t},l,o,{onKeyDown:u})):S.jsx("a",Object.assign({ref:t},l,{onKeyDown:a}))});ox.displayName="Anchor";const y3={[Wn]:"show",[oa]:"show"},sa=w.forwardRef(({className:r,children:t,transitionClasses:a={},onEnter:l,...o},u)=>{const c={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},d=w.useCallback((h,p)=>{i3(h),l==null||l(h,p)},[l]);return S.jsx(og,{ref:u,addEndListener:ax,...c,onEnter:d,childRef:Bi(t),children:(h,p)=>w.cloneElement(t,{...p,className:Oe("fade",r,t.props.className,y3[h],a[h])})})});sa.displayName="Fade";const b3={"aria-label":zt.string,onClick:zt.func,variant:zt.oneOf(["white"])},ug=w.forwardRef(({className:r,variant:t,"aria-label":a="Close",...l},o)=>S.jsx("button",{ref:o,type:"button",className:Oe("btn-close",t&&`btn-close-${t}`,r),"aria-label":a,...l}));ug.displayName="CloseButton";ug.propTypes=b3;const Ii=w.forwardRef(({bsPrefix:r,bg:t="primary",pill:a=!1,text:l,className:o,as:u="span",...c},d)=>{const h=Ce(r,"badge");return S.jsx(u,{ref:d,...c,className:Oe(o,h,a&&"rounded-pill",l&&`text-${l}`,t&&`bg-${t}`)})});Ii.displayName="Badge";const Qt=w.forwardRef(({as:r,bsPrefix:t,variant:a="primary",size:l,active:o=!1,disabled:u=!1,className:c,...d},h)=>{const p=Ce(t,"btn"),[m,{tagName:y}]=sg({tagName:r,disabled:u,...d}),x=y;return S.jsx(x,{...m,...d,ref:h,disabled:u,className:Oe(c,p,o&&"active",a&&`${p}-${a}`,l&&`${p}-${l}`,d.href&&u&&"disabled")})});Qt.displayName="Button";const sx=w.forwardRef(({bsPrefix:r,size:t,vertical:a=!1,className:l,role:o="group",as:u="div",...c},d)=>{const h=Ce(r,"btn-group");let p=h;return a&&(p=`${h}-vertical`),S.jsx(u,{...c,ref:d,role:o,className:Oe(l,p,t&&`${h}-${t}`)})});sx.displayName="ButtonGroup";const cg=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"card-body"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));cg.displayName="CardBody";const ux=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"card-footer"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));ux.displayName="CardFooter";const fg=w.createContext(null);fg.displayName="CardHeaderContext";const cx=w.forwardRef(({bsPrefix:r,className:t,as:a="div",...l},o)=>{const u=Ce(r,"card-header"),c=w.useMemo(()=>({cardHeaderBsPrefix:u}),[u]);return S.jsx(fg.Provider,{value:c,children:S.jsx(a,{ref:o,...l,className:Oe(t,u)})})});cx.displayName="CardHeader";const fx=w.forwardRef(({bsPrefix:r,className:t,variant:a,as:l="img",...o},u)=>{const c=Ce(r,"card-img");return S.jsx(l,{ref:u,className:Oe(a?`${c}-${a}`:c,t),...o})});fx.displayName="CardImg";const dx=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"card-img-overlay"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));dx.displayName="CardImgOverlay";const hx=w.forwardRef(({className:r,bsPrefix:t,as:a="a",...l},o)=>(t=Ce(t,"card-link"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));hx.displayName="CardLink";const S3=Eu("h6"),px=w.forwardRef(({className:r,bsPrefix:t,as:a=S3,...l},o)=>(t=Ce(t,"card-subtitle"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));px.displayName="CardSubtitle";const gx=w.forwardRef(({className:r,bsPrefix:t,as:a="p",...l},o)=>(t=Ce(t,"card-text"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));gx.displayName="CardText";const w3=Eu("h5"),mx=w.forwardRef(({className:r,bsPrefix:t,as:a=w3,...l},o)=>(t=Ce(t,"card-title"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));mx.displayName="CardTitle";const vx=w.forwardRef(({bsPrefix:r,className:t,bg:a,text:l,border:o,body:u=!1,children:c,as:d="div",...h},p)=>{const m=Ce(r,"card");return S.jsx(d,{ref:p,...h,className:Oe(t,m,a&&`bg-${a}`,l&&`text-${l}`,o&&`border-${o}`),children:u?S.jsx(cg,{children:c}):c})});vx.displayName="Card";const it=Object.assign(vx,{Img:fx,Title:mx,Subtitle:px,Body:cg,Link:hx,Text:gx,Header:cx,Footer:ux,ImgOverlay:dx});function x3(){const r=w.useRef(!0),t=w.useRef(()=>r.current);return w.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),t.current}function O3(r){const t=w.useRef(r);return t.current=r,t}function yx(r){const t=O3(r);w.useEffect(()=>()=>t.current(),[])}const Ap=2**31-1;function bx(r,t,a){const l=a-Date.now();r.current=l<=Ap?setTimeout(t,l):setTimeout(()=>bx(r,t,a),Ap)}function E3(){const r=x3(),t=w.useRef();return yx(()=>clearTimeout(t.current)),w.useMemo(()=>{const a=()=>clearTimeout(t.current);function l(o,u=0){r()&&(a(),u<=Ap?t.current=setTimeout(o,u):bx(t,o,Date.now()+u))}return{set:l,clear:a,handleRef:t}},[])}function T3(r,t){return w.Children.toArray(r).some(a=>w.isValidElement(a)&&a.type===t)}function C3({as:r,bsPrefix:t,className:a,...l}){t=Ce(t,"col");const o=ag(),u=ig(),c=[],d=[];return o.forEach(h=>{const p=l[h];delete l[h];let m,y,x;typeof p=="object"&&p!=null?{span:m,offset:y,order:x}=p:m=p;const T=h!==u?`-${h}`:"";m&&c.push(m===!0?`${t}${T}`:`${t}${T}-${m}`),x!=null&&d.push(`order${T}-${x}`),y!=null&&d.push(`offset${T}-${y}`)}),[{...l,className:Oe(a,...c,...d)},{as:r,bsPrefix:t,spans:c}]}const st=w.forwardRef((r,t)=>{const[{className:a,...l},{as:o="div",bsPrefix:u,spans:c}]=C3(r);return S.jsx(o,{...l,ref:t,className:Oe(a,!c.length&&u)})});st.displayName="Col";const On=w.forwardRef(({bsPrefix:r,fluid:t=!1,as:a="div",className:l,...o},u)=>{const c=Ce(r,"container"),d=typeof t=="string"?`-${t}`:"-fluid";return S.jsx(a,{ref:u,...o,className:Oe(l,t?`${c}${d}`:c)})});On.displayName="Container";var R3=Function.prototype.bind.call(Function.prototype.call,[].slice);function Da(r,t){return R3(r.querySelectorAll(t))}function _3(r,t,a){const l=w.useRef(r!==void 0),[o,u]=w.useState(t),c=r!==void 0,d=l.current;return l.current=c,!c&&d&&o!==t&&u(t),[c?r:o,w.useCallback((...h)=>{const[p,...m]=h;let y=a==null?void 0:a(p,...m);return u(p),y},[a])]}function j3(){const[,r]=w.useReducer(t=>t+1,0);return r}var RS=Object.prototype.hasOwnProperty;function _S(r,t,a){for(a of r.keys())if(to(a,t))return a}function to(r,t){var a,l,o;if(r===t)return!0;if(r&&t&&(a=r.constructor)===t.constructor){if(a===Date)return r.getTime()===t.getTime();if(a===RegExp)return r.toString()===t.toString();if(a===Array){if((l=r.length)===t.length)for(;l--&&to(r[l],t[l]););return l===-1}if(a===Set){if(r.size!==t.size)return!1;for(l of r)if(o=l,o&&typeof o=="object"&&(o=_S(t,o),!o)||!t.has(o))return!1;return!0}if(a===Map){if(r.size!==t.size)return!1;for(l of r)if(o=l[0],o&&typeof o=="object"&&(o=_S(t,o),!o)||!to(l[1],t.get(o)))return!1;return!0}if(a===ArrayBuffer)r=new Uint8Array(r),t=new Uint8Array(t);else if(a===DataView){if((l=r.byteLength)===t.byteLength)for(;l--&&r.getInt8(l)===t.getInt8(l););return l===-1}if(ArrayBuffer.isView(r)){if((l=r.byteLength)===t.byteLength)for(;l--&&r[l]===t[l];);return l===-1}if(!a||typeof r=="object"){l=0;for(a in r)if(RS.call(r,a)&&++l&&!RS.call(t,a)||!(a in t)||!to(r[a],t[a]))return!1;return Object.keys(t).length===l}}return r!==r&&t!==t}function A3(r){const t=ix();return[r[0],w.useCallback(a=>{if(t())return r[1](a)},[t,r[1]])]}var Zt="top",En="bottom",Tn="right",Kt="left",dg="auto",_o=[Zt,En,Tn,Kt],Ri="start",oo="end",M3="clippingParents",Sx="viewport",Ul="popper",N3="reference",jS=_o.reduce(function(r,t){return r.concat([t+"-"+Ri,t+"-"+oo])},[]),wx=[].concat(_o,[dg]).reduce(function(r,t){return r.concat([t,t+"-"+Ri,t+"-"+oo])},[]),D3="beforeRead",L3="read",z3="afterRead",P3="beforeMain",H3="main",k3="afterMain",B3="beforeWrite",$3="write",I3="afterWrite",q3=[D3,L3,z3,P3,H3,k3,B3,$3,I3];function Qn(r){return r.split("-")[0]}function sn(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var t=r.ownerDocument;return t&&t.defaultView||window}return r}function $a(r){var t=sn(r).Element;return r instanceof t||r instanceof Element}function Zn(r){var t=sn(r).HTMLElement;return r instanceof t||r instanceof HTMLElement}function hg(r){if(typeof ShadowRoot>"u")return!1;var t=sn(r).ShadowRoot;return r instanceof t||r instanceof ShadowRoot}var ka=Math.max,uu=Math.min,_i=Math.round;function Mp(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xx(){return!/^((?!chrome|android).)*safari/i.test(Mp())}function ji(r,t,a){t===void 0&&(t=!1),a===void 0&&(a=!1);var l=r.getBoundingClientRect(),o=1,u=1;t&&Zn(r)&&(o=r.offsetWidth>0&&_i(l.width)/r.offsetWidth||1,u=r.offsetHeight>0&&_i(l.height)/r.offsetHeight||1);var c=$a(r)?sn(r):window,d=c.visualViewport,h=!xx()&&a,p=(l.left+(h&&d?d.offsetLeft:0))/o,m=(l.top+(h&&d?d.offsetTop:0))/u,y=l.width/o,x=l.height/u;return{width:y,height:x,top:m,right:p+y,bottom:m+x,left:p,x:p,y:m}}function pg(r){var t=ji(r),a=r.offsetWidth,l=r.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:r.offsetLeft,y:r.offsetTop,width:a,height:l}}function Ox(r,t){var a=t.getRootNode&&t.getRootNode();if(r.contains(t))return!0;if(a&&hg(a)){var l=t;do{if(l&&r.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function ua(r){return r?(r.nodeName||"").toLowerCase():null}function Rr(r){return sn(r).getComputedStyle(r)}function U3(r){return["table","td","th"].indexOf(ua(r))>=0}function fa(r){return(($a(r)?r.ownerDocument:r.document)||window.document).documentElement}function Tu(r){return ua(r)==="html"?r:r.assignedSlot||r.parentNode||(hg(r)?r.host:null)||fa(r)}function AS(r){return!Zn(r)||Rr(r).position==="fixed"?null:r.offsetParent}function G3(r){var t=/firefox/i.test(Mp()),a=/Trident/i.test(Mp());if(a&&Zn(r)){var l=Rr(r);if(l.position==="fixed")return null}var o=Tu(r);for(hg(o)&&(o=o.host);Zn(o)&&["html","body"].indexOf(ua(o))<0;){var u=Rr(o);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return o;o=o.parentNode}return null}function jo(r){for(var t=sn(r),a=AS(r);a&&U3(a)&&Rr(a).position==="static";)a=AS(a);return a&&(ua(a)==="html"||ua(a)==="body"&&Rr(a).position==="static")?t:a||G3(r)||t}function gg(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function no(r,t,a){return ka(r,uu(t,a))}function V3(r,t,a){var l=no(r,t,a);return l>a?a:l}function Ex(){return{top:0,right:0,bottom:0,left:0}}function Tx(r){return Object.assign({},Ex(),r)}function Cx(r,t){return t.reduce(function(a,l){return a[l]=r,a},{})}var Y3=function(t,a){return t=typeof t=="function"?t(Object.assign({},a.rects,{placement:a.placement})):t,Tx(typeof t!="number"?t:Cx(t,_o))};function X3(r){var t,a=r.state,l=r.name,o=r.options,u=a.elements.arrow,c=a.modifiersData.popperOffsets,d=Qn(a.placement),h=gg(d),p=[Kt,Tn].indexOf(d)>=0,m=p?"height":"width";if(!(!u||!c)){var y=Y3(o.padding,a),x=pg(u),T=h==="y"?Zt:Kt,N=h==="y"?En:Tn,_=a.rects.reference[m]+a.rects.reference[h]-c[h]-a.rects.popper[m],z=c[h]-a.rects.reference[h],$=jo(u),V=$?h==="y"?$.clientHeight||0:$.clientWidth||0:0,I=_/2-z/2,Q=y[T],A=V-x[m]-y[N],M=V/2-x[m]/2+I,P=no(Q,M,A),F=h;a.modifiersData[l]=(t={},t[F]=P,t.centerOffset=P-M,t)}}function W3(r){var t=r.state,a=r.options,l=a.element,o=l===void 0?"[data-popper-arrow]":l;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Ox(t.elements.popper,o)&&(t.elements.arrow=o))}const F3={name:"arrow",enabled:!0,phase:"main",fn:X3,effect:W3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ai(r){return r.split("-")[1]}var Q3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z3(r,t){var a=r.x,l=r.y,o=t.devicePixelRatio||1;return{x:_i(a*o)/o||0,y:_i(l*o)/o||0}}function MS(r){var t,a=r.popper,l=r.popperRect,o=r.placement,u=r.variation,c=r.offsets,d=r.position,h=r.gpuAcceleration,p=r.adaptive,m=r.roundOffsets,y=r.isFixed,x=c.x,T=x===void 0?0:x,N=c.y,_=N===void 0?0:N,z=typeof m=="function"?m({x:T,y:_}):{x:T,y:_};T=z.x,_=z.y;var $=c.hasOwnProperty("x"),V=c.hasOwnProperty("y"),I=Kt,Q=Zt,A=window;if(p){var M=jo(a),P="clientHeight",F="clientWidth";if(M===sn(a)&&(M=fa(a),Rr(M).position!=="static"&&d==="absolute"&&(P="scrollHeight",F="scrollWidth")),M=M,o===Zt||(o===Kt||o===Tn)&&u===oo){Q=En;var D=y&&M===A&&A.visualViewport?A.visualViewport.height:M[P];_-=D-l.height,_*=h?1:-1}if(o===Kt||(o===Zt||o===En)&&u===oo){I=Tn;var E=y&&M===A&&A.visualViewport?A.visualViewport.width:M[F];T-=E-l.width,T*=h?1:-1}}var W=Object.assign({position:d},p&&Q3),B=m===!0?Z3({x:T,y:_},sn(a)):{x:T,y:_};if(T=B.x,_=B.y,h){var q;return Object.assign({},W,(q={},q[Q]=V?"0":"",q[I]=$?"0":"",q.transform=(A.devicePixelRatio||1)<=1?"translate("+T+"px, "+_+"px)":"translate3d("+T+"px, "+_+"px, 0)",q))}return Object.assign({},W,(t={},t[Q]=V?_+"px":"",t[I]=$?T+"px":"",t.transform="",t))}function K3(r){var t=r.state,a=r.options,l=a.gpuAcceleration,o=l===void 0?!0:l,u=a.adaptive,c=u===void 0?!0:u,d=a.roundOffsets,h=d===void 0?!0:d,p={placement:Qn(t.placement),variation:Ai(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,MS(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,MS(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const J3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:K3,data:{}};var Zs={passive:!0};function ej(r){var t=r.state,a=r.instance,l=r.options,o=l.scroll,u=o===void 0?!0:o,c=l.resize,d=c===void 0?!0:c,h=sn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&p.forEach(function(m){m.addEventListener("scroll",a.update,Zs)}),d&&h.addEventListener("resize",a.update,Zs),function(){u&&p.forEach(function(m){m.removeEventListener("scroll",a.update,Zs)}),d&&h.removeEventListener("resize",a.update,Zs)}}const tj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ej,data:{}};var nj={left:"right",right:"left",bottom:"top",top:"bottom"};function ru(r){return r.replace(/left|right|bottom|top/g,function(t){return nj[t]})}var rj={start:"end",end:"start"};function NS(r){return r.replace(/start|end/g,function(t){return rj[t]})}function mg(r){var t=sn(r),a=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:a,scrollTop:l}}function vg(r){return ji(fa(r)).left+mg(r).scrollLeft}function aj(r,t){var a=sn(r),l=fa(r),o=a.visualViewport,u=l.clientWidth,c=l.clientHeight,d=0,h=0;if(o){u=o.width,c=o.height;var p=xx();(p||!p&&t==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}return{width:u,height:c,x:d+vg(r),y:h}}function ij(r){var t,a=fa(r),l=mg(r),o=(t=r.ownerDocument)==null?void 0:t.body,u=ka(a.scrollWidth,a.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=ka(a.scrollHeight,a.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-l.scrollLeft+vg(r),h=-l.scrollTop;return Rr(o||a).direction==="rtl"&&(d+=ka(a.clientWidth,o?o.clientWidth:0)-u),{width:u,height:c,x:d,y:h}}function yg(r){var t=Rr(r),a=t.overflow,l=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+o+l)}function Rx(r){return["html","body","#document"].indexOf(ua(r))>=0?r.ownerDocument.body:Zn(r)&&yg(r)?r:Rx(Tu(r))}function ro(r,t){var a;t===void 0&&(t=[]);var l=Rx(r),o=l===((a=r.ownerDocument)==null?void 0:a.body),u=sn(l),c=o?[u].concat(u.visualViewport||[],yg(l)?l:[]):l,d=t.concat(c);return o?d:d.concat(ro(Tu(c)))}function Np(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function lj(r,t){var a=ji(r,!1,t==="fixed");return a.top=a.top+r.clientTop,a.left=a.left+r.clientLeft,a.bottom=a.top+r.clientHeight,a.right=a.left+r.clientWidth,a.width=r.clientWidth,a.height=r.clientHeight,a.x=a.left,a.y=a.top,a}function DS(r,t,a){return t===Sx?Np(aj(r,a)):$a(t)?lj(t,a):Np(ij(fa(r)))}function oj(r){var t=ro(Tu(r)),a=["absolute","fixed"].indexOf(Rr(r).position)>=0,l=a&&Zn(r)?jo(r):r;return $a(l)?t.filter(function(o){return $a(o)&&Ox(o,l)&&ua(o)!=="body"}):[]}function sj(r,t,a,l){var o=t==="clippingParents"?oj(r):[].concat(t),u=[].concat(o,[a]),c=u[0],d=u.reduce(function(h,p){var m=DS(r,p,l);return h.top=ka(m.top,h.top),h.right=uu(m.right,h.right),h.bottom=uu(m.bottom,h.bottom),h.left=ka(m.left,h.left),h},DS(r,c,l));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function _x(r){var t=r.reference,a=r.element,l=r.placement,o=l?Qn(l):null,u=l?Ai(l):null,c=t.x+t.width/2-a.width/2,d=t.y+t.height/2-a.height/2,h;switch(o){case Zt:h={x:c,y:t.y-a.height};break;case En:h={x:c,y:t.y+t.height};break;case Tn:h={x:t.x+t.width,y:d};break;case Kt:h={x:t.x-a.width,y:d};break;default:h={x:t.x,y:t.y}}var p=o?gg(o):null;if(p!=null){var m=p==="y"?"height":"width";switch(u){case Ri:h[p]=h[p]-(t[m]/2-a[m]/2);break;case oo:h[p]=h[p]+(t[m]/2-a[m]/2);break}}return h}function so(r,t){t===void 0&&(t={});var a=t,l=a.placement,o=l===void 0?r.placement:l,u=a.strategy,c=u===void 0?r.strategy:u,d=a.boundary,h=d===void 0?M3:d,p=a.rootBoundary,m=p===void 0?Sx:p,y=a.elementContext,x=y===void 0?Ul:y,T=a.altBoundary,N=T===void 0?!1:T,_=a.padding,z=_===void 0?0:_,$=Tx(typeof z!="number"?z:Cx(z,_o)),V=x===Ul?N3:Ul,I=r.rects.popper,Q=r.elements[N?V:x],A=sj($a(Q)?Q:Q.contextElement||fa(r.elements.popper),h,m,c),M=ji(r.elements.reference),P=_x({reference:M,element:I,placement:o}),F=Np(Object.assign({},I,P)),D=x===Ul?F:M,E={top:A.top-D.top+$.top,bottom:D.bottom-A.bottom+$.bottom,left:A.left-D.left+$.left,right:D.right-A.right+$.right},W=r.modifiersData.offset;if(x===Ul&&W){var B=W[o];Object.keys(E).forEach(function(q){var k=[Tn,En].indexOf(q)>=0?1:-1,G=[Zt,En].indexOf(q)>=0?"y":"x";E[q]+=B[G]*k})}return E}function uj(r,t){t===void 0&&(t={});var a=t,l=a.placement,o=a.boundary,u=a.rootBoundary,c=a.padding,d=a.flipVariations,h=a.allowedAutoPlacements,p=h===void 0?wx:h,m=Ai(l),y=m?d?jS:jS.filter(function(N){return Ai(N)===m}):_o,x=y.filter(function(N){return p.indexOf(N)>=0});x.length===0&&(x=y);var T=x.reduce(function(N,_){return N[_]=so(r,{placement:_,boundary:o,rootBoundary:u,padding:c})[Qn(_)],N},{});return Object.keys(T).sort(function(N,_){return T[N]-T[_]})}function cj(r){if(Qn(r)===dg)return[];var t=ru(r);return[NS(r),t,NS(t)]}function fj(r){var t=r.state,a=r.options,l=r.name;if(!t.modifiersData[l]._skip){for(var o=a.mainAxis,u=o===void 0?!0:o,c=a.altAxis,d=c===void 0?!0:c,h=a.fallbackPlacements,p=a.padding,m=a.boundary,y=a.rootBoundary,x=a.altBoundary,T=a.flipVariations,N=T===void 0?!0:T,_=a.allowedAutoPlacements,z=t.options.placement,$=Qn(z),V=$===z,I=h||(V||!N?[ru(z)]:cj(z)),Q=[z].concat(I).reduce(function(H,U){return H.concat(Qn(U)===dg?uj(t,{placement:U,boundary:m,rootBoundary:y,padding:p,flipVariations:N,allowedAutoPlacements:_}):U)},[]),A=t.rects.reference,M=t.rects.popper,P=new Map,F=!0,D=Q[0],E=0;E<Q.length;E++){var W=Q[E],B=Qn(W),q=Ai(W)===Ri,k=[Zt,En].indexOf(B)>=0,G=k?"width":"height",L=so(t,{placement:W,boundary:m,rootBoundary:y,altBoundary:x,padding:p}),b=k?q?Tn:Kt:q?En:Zt;A[G]>M[G]&&(b=ru(b));var te=ru(b),R=[];if(u&&R.push(L[B]<=0),d&&R.push(L[b]<=0,L[te]<=0),R.every(function(H){return H})){D=W,F=!1;break}P.set(W,R)}if(F)for(var v=N?3:1,C=function(U){var Z=Q.find(function(re){var ue=P.get(re);if(ue)return ue.slice(0,U).every(function(ge){return ge})});if(Z)return D=Z,"break"},Y=v;Y>0;Y--){var J=C(Y);if(J==="break")break}t.placement!==D&&(t.modifiersData[l]._skip=!0,t.placement=D,t.reset=!0)}}const dj={name:"flip",enabled:!0,phase:"main",fn:fj,requiresIfExists:["offset"],data:{_skip:!1}};function LS(r,t,a){return a===void 0&&(a={x:0,y:0}),{top:r.top-t.height-a.y,right:r.right-t.width+a.x,bottom:r.bottom-t.height+a.y,left:r.left-t.width-a.x}}function zS(r){return[Zt,Tn,En,Kt].some(function(t){return r[t]>=0})}function hj(r){var t=r.state,a=r.name,l=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,c=so(t,{elementContext:"reference"}),d=so(t,{altBoundary:!0}),h=LS(c,l),p=LS(d,o,u),m=zS(h),y=zS(p);t.modifiersData[a]={referenceClippingOffsets:h,popperEscapeOffsets:p,isReferenceHidden:m,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":y})}const pj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hj};function gj(r,t,a){var l=Qn(r),o=[Kt,Zt].indexOf(l)>=0?-1:1,u=typeof a=="function"?a(Object.assign({},t,{placement:r})):a,c=u[0],d=u[1];return c=c||0,d=(d||0)*o,[Kt,Tn].indexOf(l)>=0?{x:d,y:c}:{x:c,y:d}}function mj(r){var t=r.state,a=r.options,l=r.name,o=a.offset,u=o===void 0?[0,0]:o,c=wx.reduce(function(m,y){return m[y]=gj(y,t.rects,u),m},{}),d=c[t.placement],h=d.x,p=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=p),t.modifiersData[l]=c}const vj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mj};function yj(r){var t=r.state,a=r.name;t.modifiersData[a]=_x({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const bj={name:"popperOffsets",enabled:!0,phase:"read",fn:yj,data:{}};function Sj(r){return r==="x"?"y":"x"}function wj(r){var t=r.state,a=r.options,l=r.name,o=a.mainAxis,u=o===void 0?!0:o,c=a.altAxis,d=c===void 0?!1:c,h=a.boundary,p=a.rootBoundary,m=a.altBoundary,y=a.padding,x=a.tether,T=x===void 0?!0:x,N=a.tetherOffset,_=N===void 0?0:N,z=so(t,{boundary:h,rootBoundary:p,padding:y,altBoundary:m}),$=Qn(t.placement),V=Ai(t.placement),I=!V,Q=gg($),A=Sj(Q),M=t.modifiersData.popperOffsets,P=t.rects.reference,F=t.rects.popper,D=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,E=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(M){if(u){var q,k=Q==="y"?Zt:Kt,G=Q==="y"?En:Tn,L=Q==="y"?"height":"width",b=M[Q],te=b+z[k],R=b-z[G],v=T?-F[L]/2:0,C=V===Ri?P[L]:F[L],Y=V===Ri?-F[L]:-P[L],J=t.elements.arrow,H=T&&J?pg(J):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ex(),Z=U[k],re=U[G],ue=no(0,P[L],H[L]),ge=I?P[L]/2-v-ue-Z-E.mainAxis:C-ue-Z-E.mainAxis,pe=I?-P[L]/2+v+ue+re+E.mainAxis:Y+ue+re+E.mainAxis,ve=t.elements.arrow&&jo(t.elements.arrow),he=ve?Q==="y"?ve.clientTop||0:ve.clientLeft||0:0,me=(q=W==null?void 0:W[Q])!=null?q:0,Se=b+ge-me-he,ye=b+pe-me,Re=no(T?uu(te,Se):te,b,T?ka(R,ye):R);M[Q]=Re,B[Q]=Re-b}if(d){var be,Le=Q==="x"?Zt:Kt,Pe=Q==="x"?En:Tn,Te=M[A],ke=A==="y"?"height":"width",lt=Te+z[Le],ft=Te-z[Pe],vt=[Zt,Kt].indexOf($)!==-1,Mt=(be=W==null?void 0:W[A])!=null?be:0,Ae=vt?lt:Te-P[ke]-F[ke]-Mt+E.altAxis,Be=vt?Te+P[ke]+F[ke]-Mt-E.altAxis:ft,nt=T&&vt?V3(Ae,Te,Be):no(T?Ae:lt,Te,T?Be:ft);M[A]=nt,B[A]=nt-Te}t.modifiersData[l]=B}}const xj={name:"preventOverflow",enabled:!0,phase:"main",fn:wj,requiresIfExists:["offset"]};function Oj(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function Ej(r){return r===sn(r)||!Zn(r)?mg(r):Oj(r)}function Tj(r){var t=r.getBoundingClientRect(),a=_i(t.width)/r.offsetWidth||1,l=_i(t.height)/r.offsetHeight||1;return a!==1||l!==1}function Cj(r,t,a){a===void 0&&(a=!1);var l=Zn(t),o=Zn(t)&&Tj(t),u=fa(t),c=ji(r,o,a),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(l||!l&&!a)&&((ua(t)!=="body"||yg(u))&&(d=Ej(t)),Zn(t)?(h=ji(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):u&&(h.x=vg(u))),{x:c.left+d.scrollLeft-h.x,y:c.top+d.scrollTop-h.y,width:c.width,height:c.height}}function Rj(r){var t=new Map,a=new Set,l=[];r.forEach(function(u){t.set(u.name,u)});function o(u){a.add(u.name);var c=[].concat(u.requires||[],u.requiresIfExists||[]);c.forEach(function(d){if(!a.has(d)){var h=t.get(d);h&&o(h)}}),l.push(u)}return r.forEach(function(u){a.has(u.name)||o(u)}),l}function _j(r){var t=Rj(r);return q3.reduce(function(a,l){return a.concat(t.filter(function(o){return o.phase===l}))},[])}function jj(r){var t;return function(){return t||(t=new Promise(function(a){Promise.resolve().then(function(){t=void 0,a(r())})})),t}}function Aj(r){var t=r.reduce(function(a,l){var o=a[l.name];return a[l.name]=o?Object.assign({},o,l,{options:Object.assign({},o.options,l.options),data:Object.assign({},o.data,l.data)}):l,a},{});return Object.keys(t).map(function(a){return t[a]})}var PS={placement:"bottom",modifiers:[],strategy:"absolute"};function HS(){for(var r=arguments.length,t=new Array(r),a=0;a<r;a++)t[a]=arguments[a];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Mj(r){r===void 0&&(r={});var t=r,a=t.defaultModifiers,l=a===void 0?[]:a,o=t.defaultOptions,u=o===void 0?PS:o;return function(d,h,p){p===void 0&&(p=u);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},PS,u),modifiersData:{},elements:{reference:d,popper:h},attributes:{},styles:{}},y=[],x=!1,T={state:m,setOptions:function($){var V=typeof $=="function"?$(m.options):$;_(),m.options=Object.assign({},u,m.options,V),m.scrollParents={reference:$a(d)?ro(d):d.contextElement?ro(d.contextElement):[],popper:ro(h)};var I=_j(Aj([].concat(l,m.options.modifiers)));return m.orderedModifiers=I.filter(function(Q){return Q.enabled}),N(),T.update()},forceUpdate:function(){if(!x){var $=m.elements,V=$.reference,I=$.popper;if(HS(V,I)){m.rects={reference:Cj(V,jo(I),m.options.strategy==="fixed"),popper:pg(I)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(E){return m.modifiersData[E.name]=Object.assign({},E.data)});for(var Q=0;Q<m.orderedModifiers.length;Q++){if(m.reset===!0){m.reset=!1,Q=-1;continue}var A=m.orderedModifiers[Q],M=A.fn,P=A.options,F=P===void 0?{}:P,D=A.name;typeof M=="function"&&(m=M({state:m,options:F,name:D,instance:T})||m)}}}},update:jj(function(){return new Promise(function(z){T.forceUpdate(),z(m)})}),destroy:function(){_(),x=!0}};if(!HS(d,h))return T;T.setOptions(p).then(function(z){!x&&p.onFirstUpdate&&p.onFirstUpdate(z)});function N(){m.orderedModifiers.forEach(function(z){var $=z.name,V=z.options,I=V===void 0?{}:V,Q=z.effect;if(typeof Q=="function"){var A=Q({state:m,name:$,instance:T,options:I}),M=function(){};y.push(A||M)}})}function _(){y.forEach(function(z){return z()}),y=[]}return T}}const Nj=Mj({defaultModifiers:[pj,bj,J3,tj,vj,dj,xj,F3]}),Dj=["enabled","placement","strategy","modifiers"];function Lj(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}const zj={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Pj={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:r})=>()=>{const{reference:t,popper:a}=r.elements;if("removeAttribute"in t){const l=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==a.id);l.length?t.setAttribute("aria-describedby",l.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:r})=>{var t;const{popper:a,reference:l}=r.elements,o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();if(a.id&&o==="tooltip"&&"setAttribute"in l){const u=l.getAttribute("aria-describedby");if(u&&u.split(",").indexOf(a.id)!==-1)return;l.setAttribute("aria-describedby",u?`${u},${a.id}`:a.id)}}},Hj=[];function kj(r,t,a={}){let{enabled:l=!0,placement:o="bottom",strategy:u="absolute",modifiers:c=Hj}=a,d=Lj(a,Dj);const h=w.useRef(c),p=w.useRef(),m=w.useCallback(()=>{var z;(z=p.current)==null||z.update()},[]),y=w.useCallback(()=>{var z;(z=p.current)==null||z.forceUpdate()},[]),[x,T]=A3(w.useState({placement:o,update:m,forceUpdate:y,attributes:{},styles:{popper:{},arrow:{}}})),N=w.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:z})=>{const $={},V={};Object.keys(z.elements).forEach(I=>{$[I]=z.styles[I],V[I]=z.attributes[I]}),T({state:z,styles:$,attributes:V,update:m,forceUpdate:y,placement:z.placement})}}),[m,y,T]),_=w.useMemo(()=>(to(h.current,c)||(h.current=c),h.current),[c]);return w.useEffect(()=>{!p.current||!l||p.current.setOptions({placement:o,strategy:u,modifiers:[..._,N,zj]})},[u,o,N,l,_]),w.useEffect(()=>{if(!(!l||r==null||t==null))return p.current=Nj(r,t,Object.assign({},d,{placement:o,strategy:u,modifiers:[..._,Pj,N]})),()=>{p.current!=null&&(p.current.destroy(),p.current=void 0,T(z=>Object.assign({},z,{attributes:{},styles:{popper:{}}})))}},[l,r,t]),x}function uo(r,t){if(r.contains)return r.contains(t);if(r.compareDocumentPosition)return r===t||!!(r.compareDocumentPosition(t)&16)}var kh,kS;function Bj(){if(kS)return kh;kS=1;var r=function(){};return kh=r,kh}var $j=Bj();const Ij=Jn($j),BS=()=>{};function qj(r){return r.button===0}function Uj(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}const au=r=>r&&("current"in r?r.current:r),$S={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Gj(r,t=BS,{disabled:a,clickTrigger:l="click"}={}){const o=w.useRef(!1),u=w.useRef(!1),c=w.useCallback(p=>{const m=au(r);Ij(!!m,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!m||Uj(p)||!qj(p)||!!uo(m,p.target)||u.current,u.current=!1},[r]),d=wn(p=>{const m=au(r);m&&uo(m,p.target)?u.current=!0:u.current=!1}),h=wn(p=>{o.current||t(p)});w.useEffect(()=>{var p,m;if(a||r==null)return;const y=ki(au(r)),x=y.defaultView||window;let T=(p=x.event)!=null?p:(m=x.parent)==null?void 0:m.event,N=null;$S[l]&&(N=Or(y,$S[l],d,!0));const _=Or(y,l,c,!0),z=Or(y,l,V=>{if(V===T){T=void 0;return}h(V)});let $=[];return"ontouchstart"in y.documentElement&&($=[].slice.call(y.body.children).map(V=>Or(V,"mousemove",BS))),()=>{N==null||N(),_(),z(),$.forEach(V=>V())}},[r,a,l,c,d,h])}function Vj(r){const t={};return Array.isArray(r)?(r==null||r.forEach(a=>{t[a.name]=a}),t):r||t}function Yj(r={}){return Array.isArray(r)?r:Object.keys(r).map(t=>(r[t].name=t,r[t]))}function Xj({enabled:r,enableEvents:t,placement:a,flip:l,offset:o,fixed:u,containerPadding:c,arrowElement:d,popperConfig:h={}}){var p,m,y,x;const T=Vj(h.modifiers);return Object.assign({},h,{placement:a,enabled:r,strategy:u?"fixed":h.strategy,modifiers:Yj(Object.assign({},T,{eventListeners:{enabled:t,options:(p=T.eventListeners)==null?void 0:p.options},preventOverflow:Object.assign({},T.preventOverflow,{options:Object.assign({padding:c},(m=T.preventOverflow)==null?void 0:m.options)}),offset:{options:Object.assign({offset:o},(y=T.offset)==null?void 0:y.options)},arrow:Object.assign({},T.arrow,{enabled:!!d,options:Object.assign({},(x=T.arrow)==null?void 0:x.options,{element:d})}),flip:Object.assign({enabled:!!l},T.flip)}))})}const jx={prefix:String(Math.round(Math.random()*1e10)),current:0},Ax=Ft.createContext(jx),Wj=Ft.createContext(!1);let Bh=new WeakMap;function Fj(r=!1){let t=w.useContext(Ax),a=w.useRef(null);if(a.current===null&&!r){var l,o;let u=(o=Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(l=o.ReactCurrentOwner)===null||l===void 0?void 0:l.current;if(u){let c=Bh.get(u);c==null?Bh.set(u,{id:t.current,state:u.memoizedState}):u.memoizedState!==c.state&&(t.current=c.id,Bh.delete(u))}a.current=++t.current}return a.current}function Qj(r){let t=w.useContext(Ax),a=Fj(!!r),l=`react-aria${t.prefix}`;return r||`${l}-${a}`}function Zj(r){let t=Ft.useId(),[a]=w.useState(nA()),l=a?"react-aria":`react-aria${jx.prefix}`;return r||`${l}-${t}`}const Kj=typeof Ft.useId=="function"?Zj:Qj;function Jj(){return!1}function eA(){return!0}function tA(r){return()=>{}}function nA(){return typeof Ft.useSyncExternalStore=="function"?Ft.useSyncExternalStore(tA,Jj,eA):w.useContext(Wj)}const Mi=w.createContext(null),co=(r,t=null)=>r!=null?String(r):t||null,bg=w.createContext(null);bg.displayName="NavContext";const rA="data-rr-ui-",aA="rrUi";function Cu(r){return`${rA}${r}`}function iA(r){return`${aA}${r}`}const Mx=w.createContext($i?window:void 0);Mx.Provider;function Sg(){return w.useContext(Mx)}const lA=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",oA=typeof document<"u",Nx=oA||lA?w.useLayoutEffect:w.useEffect,Dx=w.createContext(null);Dx.displayName="InputGroupContext";const Lx=w.createContext(null);Lx.displayName="NavbarContext";const sA={type:zt.string,tooltip:zt.bool,as:zt.elementType},Ru=w.forwardRef(({as:r="div",className:t,type:a="valid",tooltip:l=!1,...o},u)=>S.jsx(r,{...o,ref:u,className:Oe(t,`${a}-${l?"tooltip":"feedback"}`)}));Ru.displayName="Feedback";Ru.propTypes=sA;const _r=w.createContext({}),Ao=w.forwardRef(({id:r,bsPrefix:t,className:a,type:l="checkbox",isValid:o=!1,isInvalid:u=!1,as:c="input",...d},h)=>{const{controlId:p}=w.useContext(_r);return t=Ce(t,"form-check-input"),S.jsx(c,{...d,ref:h,type:l,id:r||p,className:Oe(a,t,o&&"is-valid",u&&"is-invalid")})});Ao.displayName="FormCheckInput";const cu=w.forwardRef(({bsPrefix:r,className:t,htmlFor:a,...l},o)=>{const{controlId:u}=w.useContext(_r);return r=Ce(r,"form-check-label"),S.jsx("label",{...l,ref:o,htmlFor:a||u,className:Oe(t,r)})});cu.displayName="FormCheckLabel";const zx=w.forwardRef(({id:r,bsPrefix:t,bsSwitchPrefix:a,inline:l=!1,reverse:o=!1,disabled:u=!1,isValid:c=!1,isInvalid:d=!1,feedbackTooltip:h=!1,feedback:p,feedbackType:m,className:y,style:x,title:T="",type:N="checkbox",label:_,children:z,as:$="input",...V},I)=>{t=Ce(t,"form-check"),a=Ce(a,"form-switch");const{controlId:Q}=w.useContext(_r),A=w.useMemo(()=>({controlId:r||Q}),[Q,r]),M=!z&&_!=null&&_!==!1||T3(z,cu),P=S.jsx(Ao,{...V,type:N==="switch"?"checkbox":N,ref:I,isValid:c,isInvalid:d,disabled:u,as:$});return S.jsx(_r.Provider,{value:A,children:S.jsx("div",{style:x,className:Oe(y,M&&t,l&&`${t}-inline`,o&&`${t}-reverse`,N==="switch"&&a),children:z||S.jsxs(S.Fragment,{children:[P,M&&S.jsx(cu,{title:T,children:_}),p&&S.jsx(Ru,{type:m,tooltip:h,children:p})]})})})});zx.displayName="FormCheck";const fu=Object.assign(zx,{Input:Ao,Label:cu}),Px=w.forwardRef(({bsPrefix:r,type:t,size:a,htmlSize:l,id:o,className:u,isValid:c=!1,isInvalid:d=!1,plaintext:h,readOnly:p,as:m="input",...y},x)=>{const{controlId:T}=w.useContext(_r);return r=Ce(r,"form-control"),S.jsx(m,{...y,type:t,size:l,ref:x,readOnly:p,id:o||T,className:Oe(u,h?`${r}-plaintext`:r,a&&`${r}-${a}`,t==="color"&&`${r}-color`,c&&"is-valid",d&&"is-invalid")})});Px.displayName="FormControl";const uA=Object.assign(Px,{Feedback:Ru}),Hx=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"form-floating"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));Hx.displayName="FormFloating";const wg=w.forwardRef(({controlId:r,as:t="div",...a},l)=>{const o=w.useMemo(()=>({controlId:r}),[r]);return S.jsx(_r.Provider,{value:o,children:S.jsx(t,{...a,ref:l})})});wg.displayName="FormGroup";const kx=w.forwardRef(({as:r="label",bsPrefix:t,column:a=!1,visuallyHidden:l=!1,className:o,htmlFor:u,...c},d)=>{const{controlId:h}=w.useContext(_r);t=Ce(t,"form-label");let p="col-form-label";typeof a=="string"&&(p=`${p} ${p}-${a}`);const m=Oe(o,t,l&&"visually-hidden",a&&p);return u=u||h,a?S.jsx(st,{ref:d,as:"label",className:m,htmlFor:u,...c}):S.jsx(r,{ref:d,className:m,htmlFor:u,...c})});kx.displayName="FormLabel";const Bx=w.forwardRef(({bsPrefix:r,className:t,id:a,...l},o)=>{const{controlId:u}=w.useContext(_r);return r=Ce(r,"form-range"),S.jsx("input",{...l,type:"range",ref:o,className:Oe(t,r),id:a||u})});Bx.displayName="FormRange";const $x=w.forwardRef(({bsPrefix:r,size:t,htmlSize:a,className:l,isValid:o=!1,isInvalid:u=!1,id:c,...d},h)=>{const{controlId:p}=w.useContext(_r);return r=Ce(r,"form-select"),S.jsx("select",{...d,size:a,ref:h,className:Oe(l,r,t&&`${r}-${t}`,o&&"is-valid",u&&"is-invalid"),id:c||p})});$x.displayName="FormSelect";const Ix=w.forwardRef(({bsPrefix:r,className:t,as:a="small",muted:l,...o},u)=>(r=Ce(r,"form-text"),S.jsx(a,{...o,ref:u,className:Oe(t,r,l&&"text-muted")})));Ix.displayName="FormText";const qx=w.forwardRef((r,t)=>S.jsx(fu,{...r,ref:t,type:"switch"}));qx.displayName="Switch";const cA=Object.assign(qx,{Input:fu.Input,Label:fu.Label}),Ux=w.forwardRef(({bsPrefix:r,className:t,children:a,controlId:l,label:o,...u},c)=>(r=Ce(r,"form-floating"),S.jsxs(wg,{ref:c,className:Oe(t,r),controlId:l,...u,children:[a,S.jsx("label",{htmlFor:l,children:o})]})));Ux.displayName="FloatingLabel";const fA={_ref:zt.any,validated:zt.bool,as:zt.elementType},xg=w.forwardRef(({className:r,validated:t,as:a="form",...l},o)=>S.jsx(a,{...l,ref:o,className:Oe(r,t&&"was-validated")}));xg.displayName="Form";xg.propTypes=fA;const It=Object.assign(xg,{Group:wg,Control:uA,Floating:Hx,Check:fu,Switch:cA,Label:kx,Text:Ix,Range:Bx,Select:$x,FloatingLabel:Ux}),_u=w.forwardRef(({className:r,bsPrefix:t,as:a="span",...l},o)=>(t=Ce(t,"input-group-text"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));_u.displayName="InputGroupText";const dA=r=>S.jsx(_u,{children:S.jsx(Ao,{type:"checkbox",...r})}),hA=r=>S.jsx(_u,{children:S.jsx(Ao,{type:"radio",...r})}),Gx=w.forwardRef(({bsPrefix:r,size:t,hasValidation:a,className:l,as:o="div",...u},c)=>{r=Ce(r,"input-group");const d=w.useMemo(()=>({}),[]);return S.jsx(Dx.Provider,{value:d,children:S.jsx(o,{ref:c,...u,className:Oe(l,r,t&&`${r}-${t}`,a&&"has-validation")})})});Gx.displayName="InputGroup";const Vx=Object.assign(Gx,{Text:_u,Radio:hA,Checkbox:dA}),IS=r=>!r||typeof r=="function"?r:t=>{r.current=t};function pA(r,t){const a=IS(r),l=IS(t);return o=>{a&&a(o),l&&l(o)}}function Mo(r,t){return w.useMemo(()=>pA(r,t),[r,t])}const qi=w.createContext(null),gA=["as","active","eventKey"];function mA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function Yx({key:r,onClick:t,active:a,id:l,role:o,disabled:u}){const c=w.useContext(Mi),d=w.useContext(bg),h=w.useContext(qi);let p=a;const m={role:o};if(d){!o&&d.role==="tablist"&&(m.role="tab");const y=d.getControllerId(r??null),x=d.getControlledId(r??null);m[Cu("event-key")]=r,m.id=y||l,p=a==null&&r!=null?d.activeKey===r:a,(p||!(h!=null&&h.unmountOnExit)&&!(h!=null&&h.mountOnEnter))&&(m["aria-controls"]=x)}return m.role==="tab"&&(m["aria-selected"]=p,p||(m.tabIndex=-1),u&&(m.tabIndex=-1,m["aria-disabled"]=!0)),m.onClick=wn(y=>{u||(t==null||t(y),r!=null&&c&&!y.isPropagationStopped()&&c(r,y))}),[m,{isActive:p}]}const Xx=w.forwardRef((r,t)=>{let{as:a=lx,active:l,eventKey:o}=r,u=mA(r,gA);const[c,d]=Yx(Object.assign({key:co(o,u.href),active:l},u));return c[Cu("active")]=d.isActive,S.jsx(a,Object.assign({},u,c,{ref:t}))});Xx.displayName="NavItem";const vA=["as","onSelect","activeKey","role","onKeyDown"];function yA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}const qS=()=>{},US=Cu("event-key"),Wx=w.forwardRef((r,t)=>{let{as:a="div",onSelect:l,activeKey:o,role:u,onKeyDown:c}=r,d=yA(r,vA);const h=j3(),p=w.useRef(!1),m=w.useContext(Mi),y=w.useContext(qi);let x,T;y&&(u=u||"tablist",o=y.activeKey,x=y.getControlledId,T=y.getControllerId);const N=w.useRef(null),_=I=>{const Q=N.current;if(!Q)return null;const A=Da(Q,`[${US}]:not([aria-disabled=true])`),M=Q.querySelector("[aria-selected=true]");if(!M||M!==document.activeElement)return null;const P=A.indexOf(M);if(P===-1)return null;let F=P+I;return F>=A.length&&(F=0),F<0&&(F=A.length-1),A[F]},z=(I,Q)=>{I!=null&&(l==null||l(I,Q),m==null||m(I,Q))},$=I=>{if(c==null||c(I),!y)return;let Q;switch(I.key){case"ArrowLeft":case"ArrowUp":Q=_(-1);break;case"ArrowRight":case"ArrowDown":Q=_(1);break;default:return}Q&&(I.preventDefault(),z(Q.dataset[iA("EventKey")]||null,I),p.current=!0,h())};w.useEffect(()=>{if(N.current&&p.current){const I=N.current.querySelector(`[${US}][aria-selected=true]`);I==null||I.focus()}p.current=!1});const V=Mo(t,N);return S.jsx(Mi.Provider,{value:z,children:S.jsx(bg.Provider,{value:{role:u,activeKey:co(o),getControlledId:x||qS,getControllerId:T||qS},children:S.jsx(a,Object.assign({},d,{onKeyDown:$,ref:V,role:u}))})})});Wx.displayName="Nav";const bA=Object.assign(Wx,{Item:Xx});var Ks;function GS(r){if((!Ks&&Ks!==0||r)&&$i){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Ks=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ks}function SA(){return w.useState(null)}function $h(r){r===void 0&&(r=ki());try{var t=r.activeElement;return!t||!t.nodeName?null:t}catch{return r.body}}function wA(r){const t=w.useRef(r);return t.current=r,t}function xA(r){const t=wA(r);w.useEffect(()=>()=>t.current(),[])}function OA(r=document){const t=r.defaultView;return Math.abs(t.innerWidth-r.documentElement.clientWidth)}const VS=Cu("modal-open");class Og{constructor({ownerDocument:t,handleContainerOverflow:a=!0,isRTL:l=!1}={}){this.handleContainerOverflow=a,this.isRTL=l,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return OA(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const a={overflow:"hidden"},l=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[l]:o.style[l]},t.scrollBarWidth&&(a[l]=`${parseInt(Ha(o,l)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(VS,""),Ha(o,a)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const a=this.getElement();a.removeAttribute(VS),Object.assign(a.style,t.style)}add(t){let a=this.modals.indexOf(t);return a!==-1||(a=this.modals.length,this.modals.push(t),this.setModalAttributes(t),a!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),a}remove(t){const a=this.modals.indexOf(t);a!==-1&&(this.modals.splice(a,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Ih=(r,t)=>$i?r==null?(t||ki()).body:(typeof r=="function"&&(r=r()),r&&"current"in r&&(r=r.current),r&&("nodeType"in r||r.getBoundingClientRect)?r:null):null;function Dp(r,t){const a=Sg(),[l,o]=w.useState(()=>Ih(r,a==null?void 0:a.document));if(!l){const u=Ih(r);u&&o(u)}return w.useEffect(()=>{},[t,l]),w.useEffect(()=>{const u=Ih(r);u!==l&&o(u)},[r,l]),l}function Eg({children:r,in:t,onExited:a,mountOnEnter:l,unmountOnExit:o}){const u=w.useRef(null),c=w.useRef(t),d=wn(a);w.useEffect(()=>{t?c.current=!0:d(u.current)},[t,d]);const h=Mo(u,Bi(r)),p=w.cloneElement(r,{ref:h});return t?p:o||!c.current&&l?null:p}const EA=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function TA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function CA(r){let{onEnter:t,onEntering:a,onEntered:l,onExit:o,onExiting:u,onExited:c,addEndListener:d,children:h}=r,p=TA(r,EA);const m=w.useRef(null),y=Mo(m,Bi(h)),x=Q=>A=>{Q&&m.current&&Q(m.current,A)},T=w.useCallback(x(t),[t]),N=w.useCallback(x(a),[a]),_=w.useCallback(x(l),[l]),z=w.useCallback(x(o),[o]),$=w.useCallback(x(u),[u]),V=w.useCallback(x(c),[c]),I=w.useCallback(x(d),[d]);return Object.assign({},p,{nodeRef:m},t&&{onEnter:T},a&&{onEntering:N},l&&{onEntered:_},o&&{onExit:z},u&&{onExiting:$},c&&{onExited:V},d&&{addEndListener:I},{children:typeof h=="function"?(Q,A)=>h(Q,Object.assign({},A,{ref:y})):w.cloneElement(h,{ref:y})})}const RA=["component"];function _A(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}const jA=w.forwardRef((r,t)=>{let{component:a}=r,l=_A(r,RA);const o=CA(l);return S.jsx(a,Object.assign({ref:t},o))});function AA({in:r,onTransition:t}){const a=w.useRef(null),l=w.useRef(!0),o=wn(t);return CS(()=>{if(!a.current)return;let u=!1;return o({in:r,element:a.current,initial:l.current,isStale:()=>u}),()=>{u=!0}},[r,o]),CS(()=>(l.current=!1,()=>{l.current=!0}),[]),a}function MA({children:r,in:t,onExited:a,onEntered:l,transition:o}){const[u,c]=w.useState(!t);t&&u&&c(!1);const d=AA({in:!!t,onTransition:p=>{const m=()=>{p.isStale()||(p.in?l==null||l(p.element,p.initial):(c(!0),a==null||a(p.element)))};Promise.resolve(o(p)).then(m,y=>{throw p.in||c(!0),y})}}),h=Mo(d,Bi(r));return u&&!t?null:w.cloneElement(r,{ref:h})}function Lp(r,t,a){return r?S.jsx(jA,Object.assign({},a,{component:r})):t?S.jsx(MA,Object.assign({},a,{transition:t})):S.jsx(Eg,Object.assign({},a))}const NA=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function DA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}let qh;function LA(r){return qh||(qh=new Og({ownerDocument:r==null?void 0:r.document})),qh}function zA(r){const t=Sg(),a=r||LA(t),l=w.useRef({dialog:null,backdrop:null});return Object.assign(l.current,{add:()=>a.add(l.current),remove:()=>a.remove(l.current),isTopModal:()=>a.isTopModal(l.current),setDialogRef:w.useCallback(o=>{l.current.dialog=o},[]),setBackdropRef:w.useCallback(o=>{l.current.backdrop=o},[])})}const Fx=w.forwardRef((r,t)=>{let{show:a=!1,role:l="dialog",className:o,style:u,children:c,backdrop:d=!0,keyboard:h=!0,onBackdropClick:p,onEscapeKeyDown:m,transition:y,runTransition:x,backdropTransition:T,runBackdropTransition:N,autoFocus:_=!0,enforceFocus:z=!0,restoreFocus:$=!0,restoreFocusOptions:V,renderDialog:I,renderBackdrop:Q=ye=>S.jsx("div",Object.assign({},ye)),manager:A,container:M,onShow:P,onHide:F=()=>{},onExit:D,onExited:E,onExiting:W,onEnter:B,onEntering:q,onEntered:k}=r,G=DA(r,NA);const L=Sg(),b=Dp(M),te=zA(A),R=ix(),v=u3(a),[C,Y]=w.useState(!a),J=w.useRef(null);w.useImperativeHandle(t,()=>te,[te]),$i&&!v&&a&&(J.current=$h(L==null?void 0:L.document)),a&&C&&Y(!1);const H=wn(()=>{if(te.add(),pe.current=Or(document,"keydown",ue),ge.current=Or(document,"focus",()=>setTimeout(Z),!0),P&&P(),_){var ye,Re;const be=$h((ye=(Re=te.dialog)==null?void 0:Re.ownerDocument)!=null?ye:L==null?void 0:L.document);te.dialog&&be&&!uo(te.dialog,be)&&(J.current=be,te.dialog.focus())}}),U=wn(()=>{if(te.remove(),pe.current==null||pe.current(),ge.current==null||ge.current(),$){var ye;(ye=J.current)==null||ye.focus==null||ye.focus(V),J.current=null}});w.useEffect(()=>{!a||!b||H()},[a,b,H]),w.useEffect(()=>{C&&U()},[C,U]),xA(()=>{U()});const Z=wn(()=>{if(!z||!R()||!te.isTopModal())return;const ye=$h(L==null?void 0:L.document);te.dialog&&ye&&!uo(te.dialog,ye)&&te.dialog.focus()}),re=wn(ye=>{ye.target===ye.currentTarget&&(p==null||p(ye),d===!0&&F())}),ue=wn(ye=>{h&&tx(ye)&&te.isTopModal()&&(m==null||m(ye),ye.defaultPrevented||F())}),ge=w.useRef(),pe=w.useRef(),ve=(...ye)=>{Y(!0),E==null||E(...ye)};if(!b)return null;const he=Object.assign({role:l,ref:te.setDialogRef,"aria-modal":l==="dialog"?!0:void 0},G,{style:u,className:o,tabIndex:-1});let me=I?I(he):S.jsx("div",Object.assign({},he,{children:w.cloneElement(c,{role:"document"})}));me=Lp(y,x,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!a,onExit:D,onExiting:W,onExited:ve,onEnter:B,onEntering:q,onEntered:k,children:me});let Se=null;return d&&(Se=Q({ref:te.setBackdropRef,onClick:re}),Se=Lp(T,N,{in:!!a,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Se})),S.jsx(S.Fragment,{children:za.createPortal(S.jsxs(S.Fragment,{children:[Se,me]}),b)})});Fx.displayName="Modal";const Qx=Object.assign(Fx,{Manager:Og});function zp(r,t){return r.classList?!!t&&r.classList.contains(t):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+t+" ")!==-1}function PA(r,t){r.classList?r.classList.add(t):zp(r,t)||(typeof r.className=="string"?r.className=r.className+" "+t:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+t))}function YS(r,t){return r.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function HA(r,t){r.classList?r.classList.remove(t):typeof r.className=="string"?r.className=YS(r.className,t):r.setAttribute("class",YS(r.className&&r.className.baseVal||"",t))}const Ci={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Zx extends Og{adjustAndStore(t,a,l){const o=a.style[t];a.dataset[t]=o,Ha(a,{[t]:`${parseFloat(Ha(a,t))+l}px`})}restore(t,a){const l=a.dataset[t];l!==void 0&&(delete a.dataset[t],Ha(a,{[t]:l}))}setContainerStyle(t){super.setContainerStyle(t);const a=this.getElement();if(PA(a,"modal-open"),!t.scrollBarWidth)return;const l=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Da(a,Ci.FIXED_CONTENT).forEach(u=>this.adjustAndStore(l,u,t.scrollBarWidth)),Da(a,Ci.STICKY_CONTENT).forEach(u=>this.adjustAndStore(o,u,-t.scrollBarWidth)),Da(a,Ci.NAVBAR_TOGGLER).forEach(u=>this.adjustAndStore(o,u,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const a=this.getElement();HA(a,"modal-open");const l=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Da(a,Ci.FIXED_CONTENT).forEach(u=>this.restore(l,u)),Da(a,Ci.STICKY_CONTENT).forEach(u=>this.restore(o,u)),Da(a,Ci.NAVBAR_TOGGLER).forEach(u=>this.restore(o,u))}}let Uh;function Kx(r){return Uh||(Uh=new Zx(r)),Uh}const Jx=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"modal-body"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));Jx.displayName="ModalBody";const Tg=w.createContext({onHide(){}}),Cg=w.forwardRef(({bsPrefix:r,className:t,contentClassName:a,centered:l,size:o,fullscreen:u,children:c,scrollable:d,...h},p)=>{r=Ce(r,"modal");const m=`${r}-dialog`,y=typeof u=="string"?`${r}-fullscreen-${u}`:`${r}-fullscreen`;return S.jsx("div",{...h,ref:p,className:Oe(m,t,o&&`${r}-${o}`,l&&`${m}-centered`,d&&`${m}-scrollable`,u&&y),children:S.jsx("div",{className:Oe(`${r}-content`,a),children:c})})});Cg.displayName="ModalDialog";const eO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"modal-footer"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));eO.displayName="ModalFooter";const Rg=w.forwardRef(({closeLabel:r="Close",closeVariant:t,closeButton:a=!1,onHide:l,children:o,...u},c)=>{const d=w.useContext(Tg),h=lo(()=>{d==null||d.onHide(),l==null||l()});return S.jsxs("div",{ref:c,...u,children:[o,a&&S.jsx(ug,{"aria-label":r,variant:t,onClick:h})]})});Rg.displayName="AbstractModalHeader";const tO=w.forwardRef(({bsPrefix:r,className:t,closeLabel:a="Close",closeButton:l=!1,...o},u)=>(r=Ce(r,"modal-header"),S.jsx(Rg,{ref:u,...o,className:Oe(t,r),closeLabel:a,closeButton:l})));tO.displayName="ModalHeader";const kA=Eu("h4"),nO=w.forwardRef(({className:r,bsPrefix:t,as:a=kA,...l},o)=>(t=Ce(t,"modal-title"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));nO.displayName="ModalTitle";function BA(r){return S.jsx(sa,{...r,timeout:null})}function $A(r){return S.jsx(sa,{...r,timeout:null})}const rO=w.forwardRef(({bsPrefix:r,className:t,style:a,dialogClassName:l,contentClassName:o,children:u,dialogAs:c=Cg,"data-bs-theme":d,"aria-labelledby":h,"aria-describedby":p,"aria-label":m,show:y=!1,animation:x=!0,backdrop:T=!0,keyboard:N=!0,onEscapeKeyDown:_,onShow:z,onHide:$,container:V,autoFocus:I=!0,enforceFocus:Q=!0,restoreFocus:A=!0,restoreFocusOptions:M,onEntered:P,onExit:F,onExiting:D,onEnter:E,onEntering:W,onExited:B,backdropClassName:q,manager:k,...G},L)=>{const[b,te]=w.useState({}),[R,v]=w.useState(!1),C=w.useRef(!1),Y=w.useRef(!1),J=w.useRef(null),[H,U]=SA(),Z=Ou(L,U),re=lo($),ue=lg();r=Ce(r,"modal");const ge=w.useMemo(()=>({onHide:re}),[re]);function pe(){return k||Kx({isRTL:ue})}function ve(Ae){if(!$i)return;const Be=pe().getScrollbarWidth()>0,nt=Ae.scrollHeight>ki(Ae).documentElement.clientHeight;te({paddingRight:Be&&!nt?GS():void 0,paddingLeft:!Be&&nt?GS():void 0})}const he=lo(()=>{H&&ve(H.dialog)});yx(()=>{jp(window,"resize",he),J.current==null||J.current()});const me=()=>{C.current=!0},Se=Ae=>{C.current&&H&&Ae.target===H.dialog&&(Y.current=!0),C.current=!1},ye=()=>{v(!0),J.current=rx(H.dialog,()=>{v(!1)})},Re=Ae=>{Ae.target===Ae.currentTarget&&ye()},be=Ae=>{if(T==="static"){Re(Ae);return}if(Y.current||Ae.target!==Ae.currentTarget){Y.current=!1;return}$==null||$()},Le=Ae=>{N?_==null||_(Ae):(Ae.preventDefault(),T==="static"&&ye())},Pe=(Ae,Be)=>{Ae&&ve(Ae),E==null||E(Ae,Be)},Te=Ae=>{J.current==null||J.current(),F==null||F(Ae)},ke=(Ae,Be)=>{W==null||W(Ae,Be),nx(window,"resize",he)},lt=Ae=>{Ae&&(Ae.style.display=""),B==null||B(Ae),jp(window,"resize",he)},ft=w.useCallback(Ae=>S.jsx("div",{...Ae,className:Oe(`${r}-backdrop`,q,!x&&"show")}),[x,q,r]),vt={...a,...b};vt.display="block";const Mt=Ae=>S.jsx("div",{role:"dialog",...Ae,style:vt,className:Oe(t,r,R&&`${r}-static`,!x&&"show"),onClick:T?be:void 0,onMouseUp:Se,"data-bs-theme":d,"aria-label":m,"aria-labelledby":h,"aria-describedby":p,children:S.jsx(c,{...G,onMouseDown:me,className:l,contentClassName:o,children:u})});return S.jsx(Tg.Provider,{value:ge,children:S.jsx(Qx,{show:y,ref:Z,backdrop:T,container:V,keyboard:!0,autoFocus:I,enforceFocus:Q,restoreFocus:A,restoreFocusOptions:M,onEscapeKeyDown:Le,onShow:z,onHide:$,onEnter:Pe,onEntering:ke,onEntered:P,onExit:Te,onExiting:D,onExited:lt,manager:pe(),transition:x?BA:void 0,backdropTransition:x?$A:void 0,renderBackdrop:ft,renderDialog:Mt})})});rO.displayName="Modal";const Pa=Object.assign(rO,{Body:Jx,Header:tO,Title:nO,Footer:eO,Dialog:Cg,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),aO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"nav-item"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));aO.displayName="NavItem";const iO=w.forwardRef(({bsPrefix:r,className:t,as:a=ox,active:l,eventKey:o,disabled:u=!1,...c},d)=>{r=Ce(r,"nav-link");const[h,p]=Yx({key:co(o,c.href),active:l,disabled:u,...c});return S.jsx(a,{...c,...h,ref:d,disabled:u,className:Oe(t,r,u&&"disabled",p.isActive&&"active")})});iO.displayName="NavLink";const lO=w.forwardRef((r,t)=>{const{as:a="div",bsPrefix:l,variant:o,fill:u=!1,justify:c=!1,navbar:d,navbarScroll:h,className:p,activeKey:m,...y}=I_(r,{activeKey:"onSelect"}),x=Ce(l,"nav");let T,N,_=!1;const z=w.useContext(Lx),$=w.useContext(fg);return z?(T=z.bsPrefix,_=d??!0):$&&({cardHeaderBsPrefix:N}=$),S.jsx(bA,{as:a,ref:t,activeKey:m,className:Oe(p,{[x]:!_,[`${T}-nav`]:_,[`${T}-nav-scroll`]:_&&h,[`${N}-${o}`]:!!N,[`${x}-${o}`]:!!o,[`${x}-fill`]:u,[`${x}-justified`]:c}),...y})});lO.displayName="Nav";const Gl=Object.assign(lO,{Item:aO,Link:iO}),Pp=new WeakMap,XS=(r,t)=>{if(!r||!t)return;const a=Pp.get(t)||new Map;Pp.set(t,a);let l=a.get(r);return l||(l=t.matchMedia(r),l.refCount=0,a.set(l.media,l)),l};function IA(r,t=typeof window>"u"?void 0:window){const a=XS(r,t),[l,o]=w.useState(()=>a?a.matches:!1);return Nx(()=>{let u=XS(r,t);if(!u)return o(!1);let c=Pp.get(t);const d=()=>{o(u.matches)};return u.refCount++,u.addListener(d),d(),()=>{u.removeListener(d),u.refCount--,u.refCount<=0&&(c==null||c.delete(u.media)),u=void 0}},[r]),l}function qA(r){const t=Object.keys(r);function a(d,h){return d===h?h:d?`${d} and ${h}`:h}function l(d){return t[Math.min(t.indexOf(d)+1,t.length-1)]}function o(d){const h=l(d);let p=r[h];return typeof p=="number"?p=`${p-.2}px`:p=`calc(${p} - 0.2px)`,`(max-width: ${p})`}function u(d){let h=r[d];return typeof h=="number"&&(h=`${h}px`),`(min-width: ${h})`}function c(d,h,p){let m;typeof d=="object"?(m=d,p=h,h=!0):(h=h||!0,m={[d]:h});let y=w.useMemo(()=>Object.entries(m).reduce((x,[T,N])=>((N==="up"||N===!0)&&(x=a(x,u(T))),(N==="down"||N===!0)&&(x=a(x,o(T))),x),""),[JSON.stringify(m)]);return IA(y,p)}return c}const UA=qA({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),oO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"offcanvas-body"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));oO.displayName="OffcanvasBody";const GA={[Wn]:"show",[oa]:"show"},sO=w.forwardRef(({bsPrefix:r,className:t,children:a,in:l=!1,mountOnEnter:o=!1,unmountOnExit:u=!1,appear:c=!1,...d},h)=>(r=Ce(r,"offcanvas"),S.jsx(og,{ref:h,addEndListener:ax,in:l,mountOnEnter:o,unmountOnExit:u,appear:c,...d,childRef:Bi(a),children:(p,m)=>w.cloneElement(a,{...m,className:Oe(t,a.props.className,(p===Wn||p===ou)&&`${r}-toggling`,GA[p])})})));sO.displayName="OffcanvasToggling";const uO=w.forwardRef(({bsPrefix:r,className:t,closeLabel:a="Close",closeButton:l=!1,...o},u)=>(r=Ce(r,"offcanvas-header"),S.jsx(Rg,{ref:u,...o,className:Oe(t,r),closeLabel:a,closeButton:l})));uO.displayName="OffcanvasHeader";const VA=Eu("h5"),cO=w.forwardRef(({className:r,bsPrefix:t,as:a=VA,...l},o)=>(t=Ce(t,"offcanvas-title"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));cO.displayName="OffcanvasTitle";function YA(r){return S.jsx(sO,{...r})}function XA(r){return S.jsx(sa,{...r})}const fO=w.forwardRef(({bsPrefix:r,className:t,children:a,"aria-labelledby":l,placement:o="start",responsive:u,show:c=!1,backdrop:d=!0,keyboard:h=!0,scroll:p=!1,onEscapeKeyDown:m,onShow:y,onHide:x,container:T,autoFocus:N=!0,enforceFocus:_=!0,restoreFocus:z=!0,restoreFocusOptions:$,onEntered:V,onExit:I,onExiting:Q,onEnter:A,onEntering:M,onExited:P,backdropClassName:F,manager:D,renderStaticNode:E=!1,...W},B)=>{const q=w.useRef();r=Ce(r,"offcanvas");const[k,G]=w.useState(!1),L=lo(x),b=UA(u||"xs","up");w.useEffect(()=>{G(u?c&&!b:c)},[c,u,b]);const te=w.useMemo(()=>({onHide:L}),[L]);function R(){return D||(p?(q.current||(q.current=new Zx({handleContainerOverflow:!1})),q.current):Kx())}const v=(H,...U)=>{H&&(H.style.visibility="visible"),A==null||A(H,...U)},C=(H,...U)=>{H&&(H.style.visibility=""),P==null||P(...U)},Y=w.useCallback(H=>S.jsx("div",{...H,className:Oe(`${r}-backdrop`,F)}),[F,r]),J=H=>S.jsx("div",{...H,...W,className:Oe(t,u?`${r}-${u}`:r,`${r}-${o}`),"aria-labelledby":l,children:a});return S.jsxs(S.Fragment,{children:[!k&&(u||E)&&J({}),S.jsx(Tg.Provider,{value:te,children:S.jsx(Qx,{show:k,ref:B,backdrop:d,container:T,keyboard:h,autoFocus:N,enforceFocus:_&&!p,restoreFocus:z,restoreFocusOptions:$,onEscapeKeyDown:m,onShow:y,onHide:L,onEnter:v,onEntering:M,onEntered:V,onExit:I,onExiting:Q,onExited:C,manager:R(),transition:YA,backdropTransition:XA,renderBackdrop:Y,renderDialog:J})})]})});fO.displayName="Offcanvas";const WS=Object.assign(fO,{Body:oO,Header:uO,Title:cO}),WA=()=>{};function FA(r,t,{disabled:a,clickTrigger:l}={}){const o=t||WA;Gj(r,o,{disabled:a,clickTrigger:l});const u=wn(c=>{tx(c)&&o(c)});w.useEffect(()=>{if(a||r==null)return;const c=ki(au(r));let d=(c.defaultView||window).event;const h=Or(c,"keyup",p=>{if(p===d){d=void 0;return}u(p)});return()=>{h()}},[r,a,u])}const dO=w.forwardRef((r,t)=>{const{flip:a,offset:l,placement:o,containerPadding:u,popperConfig:c={},transition:d,runTransition:h}=r,[p,m]=TS(),[y,x]=TS(),T=Mo(m,t),N=Dp(r.container),_=Dp(r.target),[z,$]=w.useState(!r.show),V=kj(_,p,Xj({placement:o,enableEvents:!!r.show,containerPadding:u||5,flip:a,offset:l,arrowElement:y,popperConfig:c}));r.show&&z&&$(!1);const I=(...W)=>{$(!0),r.onExited&&r.onExited(...W)},Q=r.show||!z;if(FA(p,r.onHide,{disabled:!r.rootClose||r.rootCloseDisabled,clickTrigger:r.rootCloseEvent}),!Q)return null;const{onExit:A,onExiting:M,onEnter:P,onEntering:F,onEntered:D}=r;let E=r.children(Object.assign({},V.attributes.popper,{style:V.styles.popper,ref:T}),{popper:V,placement:o,show:!!r.show,arrowProps:Object.assign({},V.attributes.arrow,{style:V.styles.arrow,ref:x})});return E=Lp(d,h,{in:!!r.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:E,onExit:A,onExiting:M,onExited:I,onEnter:P,onEntering:F,onEntered:D}),N?za.createPortal(E,N):null});dO.displayName="Overlay";const hO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"popover-header"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));hO.displayName="PopoverHeader";const _g=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"popover-body"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));_g.displayName="PopoverBody";function pO(r,t){let a=r;return r==="left"?a=t?"end":"start":r==="right"&&(a=t?"start":"end"),a}function gO(r="absolute"){return{position:r,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const mO=w.forwardRef(({bsPrefix:r,placement:t="right",className:a,style:l,children:o,body:u,arrowProps:c,hasDoneInitialMeasure:d,popper:h,show:p,...m},y)=>{const x=Ce(r,"popover"),T=lg(),[N]=(t==null?void 0:t.split("-"))||[],_=pO(N,T);let z=l;return p&&!d&&(z={...l,...gO(h==null?void 0:h.strategy)}),S.jsxs("div",{ref:y,role:"tooltip",style:z,"x-placement":N,className:Oe(a,x,N&&`bs-popover-${_}`),...m,children:[S.jsx("div",{className:"popover-arrow",...c}),u?S.jsx(_g,{children:o}):o]})});mO.displayName="Popover";const Hp=Object.assign(mO,{Header:hO,Body:_g,POPPER_OFFSET:[0,8]}),vO=w.forwardRef(({bsPrefix:r,placement:t="right",className:a,style:l,children:o,arrowProps:u,hasDoneInitialMeasure:c,popper:d,show:h,...p},m)=>{r=Ce(r,"tooltip");const y=lg(),[x]=(t==null?void 0:t.split("-"))||[],T=pO(x,y);let N=l;return h&&!c&&(N={...l,...gO(d==null?void 0:d.strategy)}),S.jsxs("div",{ref:m,style:N,role:"tooltip","x-placement":x,className:Oe(a,r,`bs-tooltip-${T}`),...p,children:[S.jsx("div",{className:"tooltip-arrow",...u}),S.jsx("div",{className:`${r}-inner`,children:o})]})});vO.displayName="Tooltip";const QA=Object.assign(vO,{TOOLTIP_OFFSET:[0,6]});function ZA(r){const t=w.useRef(null),a=Ce(void 0,"popover"),l=Ce(void 0,"tooltip"),o=w.useMemo(()=>({name:"offset",options:{offset:()=>{if(r)return r;if(t.current){if(zp(t.current,a))return Hp.POPPER_OFFSET;if(zp(t.current,l))return QA.TOOLTIP_OFFSET}return[0,0]}}}),[r,a,l]);return[t,[o]]}function KA(r,t){const{ref:a}=r,{ref:l}=t;r.ref=a.__wrapped||(a.__wrapped=o=>a(su(o))),t.ref=l.__wrapped||(l.__wrapped=o=>l(su(o)))}const yO=w.forwardRef(({children:r,transition:t=sa,popperConfig:a={},rootClose:l=!1,placement:o="top",show:u=!1,...c},d)=>{const h=w.useRef({}),[p,m]=w.useState(null),[y,x]=ZA(c.offset),T=Ou(d,y),N=t===!0?sa:t||void 0,_=lo(z=>{m(z),a==null||a.onFirstUpdate==null||a.onFirstUpdate(z)});return Nx(()=>{p&&c.target&&(h.current.scheduleUpdate==null||h.current.scheduleUpdate())},[p,c.target]),w.useEffect(()=>{u||m(null)},[u]),S.jsx(dO,{...c,ref:T,popperConfig:{...a,modifiers:x.concat(a.modifiers||[]),onFirstUpdate:_},transition:N,rootClose:l,placement:o,show:u,children:(z,{arrowProps:$,popper:V,show:I})=>{var Q;KA(z,$);const A=V==null?void 0:V.placement,M=Object.assign(h.current,{state:V==null?void 0:V.state,scheduleUpdate:V==null?void 0:V.update,placement:A,outOfBoundaries:(V==null||(Q=V.state)==null||(Q=Q.modifiersData.hide)==null?void 0:Q.isReferenceHidden)||!1,strategy:a.strategy}),P=!!p;return typeof r=="function"?r({...z,placement:A,show:I,...!t&&I&&{className:"show"},popper:M,arrowProps:$,hasDoneInitialMeasure:P}):w.cloneElement(r,{...z,placement:A,arrowProps:$,popper:M,hasDoneInitialMeasure:P,className:Oe(r.props.className,!t&&I&&"show"),style:{...r.props.style,...z.style}})}})});yO.displayName="Overlay";function JA(r){return r&&typeof r=="object"?r:{show:r,hide:r}}function FS(r,t,a){const[l]=t,o=l.currentTarget,u=l.relatedTarget||l.nativeEvent[a];(!u||u!==o)&&!uo(o,u)&&r(...t)}zt.oneOf(["click","hover","focus"]);const eM=({trigger:r=["hover","focus"],overlay:t,children:a,popperConfig:l={},show:o,defaultShow:u=!1,onToggle:c,delay:d,placement:h,flip:p=h&&h.indexOf("auto")!==-1,...m})=>{const y=w.useRef(null),x=Ou(y,Bi(a)),T=E3(),N=w.useRef(""),[_,z]=Qw(o,u,c),$=JA(d),{onFocus:V,onBlur:I,onClick:Q}=typeof a!="function"?w.Children.only(a).props:{},A=G=>{x(su(G))},M=w.useCallback(()=>{if(T.clear(),N.current="show",!$.show){z(!0);return}T.set(()=>{N.current==="show"&&z(!0)},$.show)},[$.show,z,T]),P=w.useCallback(()=>{if(T.clear(),N.current="hide",!$.hide){z(!1);return}T.set(()=>{N.current==="hide"&&z(!1)},$.hide)},[$.hide,z,T]),F=w.useCallback((...G)=>{M(),V==null||V(...G)},[M,V]),D=w.useCallback((...G)=>{P(),I==null||I(...G)},[P,I]),E=w.useCallback((...G)=>{z(!_),Q==null||Q(...G)},[Q,z,_]),W=w.useCallback((...G)=>{FS(M,G,"fromElement")},[M]),B=w.useCallback((...G)=>{FS(P,G,"toElement")},[P]),q=r==null?[]:[].concat(r),k={ref:A};return q.indexOf("click")!==-1&&(k.onClick=E),q.indexOf("focus")!==-1&&(k.onFocus=F,k.onBlur=D),q.indexOf("hover")!==-1&&(k.onMouseOver=W,k.onMouseOut=B),S.jsxs(S.Fragment,{children:[typeof a=="function"?a(k):w.cloneElement(a,k),S.jsx(yO,{...m,show:_,onHide:P,flip:p,placement:h,popperConfig:l,target:y.current,children:t})]})},St=w.forwardRef(({bsPrefix:r,className:t,as:a="div",...l},o)=>{const u=Ce(r,"row"),c=ag(),d=ig(),h=`${u}-cols`,p=[];return c.forEach(m=>{const y=l[m];delete l[m];let x;y!=null&&typeof y=="object"?{cols:x}=y:x=y;const T=m!==d?`-${m}`:"";x!=null&&p.push(`${h}${T}-${x}`)}),S.jsx(a,{ref:o,...l,className:Oe(t,u,...p)})});St.displayName="Row";function tM(r,t=Zw,a=Kw){const l=[];return Object.entries(r).forEach(([o,u])=>{u!=null&&(typeof u=="object"?t.forEach(c=>{const d=u[c];if(d!=null){const h=c!==a?`-${c}`:"";l.push(`${o}${h}-${d}`)}}):l.push(`${o}-${u}`))}),l}const Ne=w.forwardRef(({as:r="div",bsPrefix:t,className:a,direction:l,gap:o,...u},c)=>{t=Ce(t,l==="horizontal"?"hstack":"vstack");const d=ag(),h=ig();return S.jsx(r,{...u,ref:c,className:Oe(a,t,...tM({gap:o},d,h))})});Ne.displayName="Stack";const nM=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],rM=["activeKey","getControlledId","getControllerId"],aM=["as"];function kp(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function bO(r){let{active:t,eventKey:a,mountOnEnter:l,transition:o,unmountOnExit:u,role:c="tabpanel",onEnter:d,onEntering:h,onEntered:p,onExit:m,onExiting:y,onExited:x}=r,T=kp(r,nM);const N=w.useContext(qi);if(!N)return[Object.assign({},T,{role:c}),{eventKey:a,isActive:t,mountOnEnter:l,transition:o,unmountOnExit:u,onEnter:d,onEntering:h,onEntered:p,onExit:m,onExiting:y,onExited:x}];const{activeKey:_,getControlledId:z,getControllerId:$}=N,V=kp(N,rM),I=co(a);return[Object.assign({},T,{role:c,id:z(a),"aria-labelledby":$(a)}),{eventKey:a,isActive:t==null&&I!=null?co(_)===I:t,transition:o||V.transition,mountOnEnter:l??V.mountOnEnter,unmountOnExit:u??V.unmountOnExit,onEnter:d,onEntering:h,onEntered:p,onExit:m,onExiting:y,onExited:x}]}const SO=w.forwardRef((r,t)=>{let{as:a="div"}=r,l=kp(r,aM);const[o,{isActive:u,onEnter:c,onEntering:d,onEntered:h,onExit:p,onExiting:m,onExited:y,mountOnEnter:x,unmountOnExit:T,transition:N=Eg}]=bO(l);return S.jsx(qi.Provider,{value:null,children:S.jsx(Mi.Provider,{value:null,children:S.jsx(N,{in:u,onEnter:c,onEntering:d,onEntered:h,onExit:p,onExiting:m,onExited:y,mountOnEnter:x,unmountOnExit:T,children:S.jsx(a,Object.assign({},o,{ref:t,hidden:!u,"aria-hidden":!u}))})})})});SO.displayName="TabPanel";const wO=r=>{const{id:t,generateChildId:a,onSelect:l,activeKey:o,defaultActiveKey:u,transition:c,mountOnEnter:d,unmountOnExit:h,children:p}=r,[m,y]=_3(o,u,l),x=Kj(t),T=w.useMemo(()=>a||((_,z)=>x?`${x}-${z}-${_}`:null),[x,a]),N=w.useMemo(()=>({onSelect:y,activeKey:m,transition:c,mountOnEnter:d||!1,unmountOnExit:h||!1,getControlledId:_=>T(_,"tabpane"),getControllerId:_=>T(_,"tab")}),[y,m,c,d,h,T]);return S.jsx(qi.Provider,{value:N,children:S.jsx(Mi.Provider,{value:y||null,children:p})})};wO.Panel=SO;function xO(r){return typeof r=="boolean"?r?sa:Eg:r}const OO=({transition:r,...t})=>S.jsx(wO,{...t,transition:xO(r)});OO.displayName="TabContainer";const EO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"tab-content"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));EO.displayName="TabContent";const TO=w.forwardRef(({bsPrefix:r,transition:t,...a},l)=>{const[{className:o,as:u="div",...c},{isActive:d,onEnter:h,onEntering:p,onEntered:m,onExit:y,onExiting:x,onExited:T,mountOnEnter:N,unmountOnExit:_,transition:z=sa}]=bO({...a,transition:xO(t)}),$=Ce(r,"tab-pane");return S.jsx(qi.Provider,{value:null,children:S.jsx(Mi.Provider,{value:null,children:S.jsx(z,{in:d,onEnter:h,onEntering:p,onEntered:m,onExit:y,onExiting:x,onExited:T,mountOnEnter:N,unmountOnExit:_,children:S.jsx(u,{...c,ref:l,className:Oe(o,$,d&&"active")})})})})});TO.displayName="TabPane";const iM={eventKey:zt.oneOfType([zt.string,zt.number]),title:zt.node.isRequired,disabled:zt.bool,tabClassName:zt.string,tabAttrs:zt.object},CO=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};CO.propTypes=iM;const Js=Object.assign(CO,{Container:OO,Content:EO,Pane:TO}),lM=()=>{},RO=w.forwardRef(({bsPrefix:r,name:t,className:a,checked:l,type:o,onChange:u,value:c,disabled:d,id:h,inputRef:p,...m},y)=>(r=Ce(r,"btn-check"),S.jsxs(S.Fragment,{children:[S.jsx("input",{className:r,name:t,type:o,value:c,ref:p,autoComplete:"off",checked:!!l,disabled:!!d,onChange:u||lM,id:h}),S.jsx(Qt,{...m,ref:y,className:Oe(a,d&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:h})]})));RO.displayName="ToggleButton";var fo,ho,po,go,mo,vo,yo,bo,So,mu,_O;const ao=class ao{constructor(t){Sn(this,mu);Sn(this,fo);Sn(this,ho);Sn(this,po);Sn(this,go);Sn(this,mo);Sn(this,vo);Sn(this,yo);Sn(this,bo);Sn(this,So);Yn(this,fo,t.year),Yn(this,ho,t.month),Yn(this,po,t.day),Yn(this,go,t.hour||0),Yn(this,mo,t.minute||0),Yn(this,vo,t.second||0),Yn(this,yo,t.gmt||"+0000");const a=aa(this,mu,_O).call(this);if(a.ok)Yn(this,bo,a.parsed),Yn(this,So,a.dateTimeStr);else throw Error(`DateTime creation error: ${a.message}`)}static from(t){if(typeof t=="string"){const u=/^(\d{4})-(\d{2})-(\d{2})(?: (\d{2}):(\d{2})(?::(\d{2}))?(?: ([+-]\d{4}))?)?/.exec(t);if(u){const[c,d,h,p,m,y,x,T]=u,N={year:Number(d),month:Number(h),day:Number(p),hour:Number(m),minute:Number(y),second:Number(x),gmt:T};return x!==void 0&&(x.startsWith("+")||x.startsWith("-"))&&(N.second=void 0,N.gmt=x),new ao(N)}throw Error(`Could not create DateTime object from "${t}": invalid format`)}const a=new Date;a.setTime(t);const l={year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds()};return new ao(l)}valueOf(){return Vn(this,bo)}toString(){return Vn(this,So)}};fo=new WeakMap,ho=new WeakMap,po=new WeakMap,go=new WeakMap,mo=new WeakMap,vo=new WeakMap,yo=new WeakMap,bo=new WeakMap,So=new WeakMap,mu=new WeakSet,_O=function(){const t=`${Vn(this,fo).toString().padStart(4,"0")}-${Vn(this,ho).toString().padStart(2,"0")}-${Vn(this,po).toString().padStart(2,"0")}`,a=`${Vn(this,go).toString().padStart(2,"0")}:${Vn(this,mo).toString().padStart(2,"0")}:${Vn(this,vo).toString().padStart(2,"0")}`,l=`${t}T${a}${Vn(this,yo)}`;try{return{ok:!0,parsed:new Date(l),dateTimeStr:l}}catch{return{ok:!1,message:`failed to parse date from ${l}`}}},ao.FORMAT="yyyy-MM-dd [hh:mm[:ss] [GMT]]";let Bp=ao;const oM=[Bp];class $p{static getProperty(t,a,l=!1){const o=a.split(".");let u=t;for(;o.length>0;){const c=o.shift();if(u&&typeof u=="object"){if(u=u[c],u===void 0){if(l)throw new QS(a);return u}}else if(l)throw new QS(a)}return u}static clean(t,a){const l=(a==null?void 0:a.deep)||!1,o=(a==null?void 0:a.cleanNulls)||!1,u=(a==null?void 0:a.cleanEmptyObjects)||!1;if(!t||typeof t!="object")return t;const c={};for(const[d,h]of Object.entries(t))if(!(h===void 0||h===null&&o))if(h!==null&&typeof h=="object"&&!oM.find(m=>h instanceof m)){const m=l?this.clean(h,a):h;(Object.entries(m).length>0||!u)&&(c[d]=m)}else c[d]=h;return Array.isArray(t)?Object.values(c):c}}class QS extends Error{constructor(t){super(),this.name="ObjectPropertyNotFoundError",this.prop=t}}class jO{static getCampaignCreationName(t){return $p.getProperty(t,"raw.attributes.creation_name")}static getProductRichTextDescription(t){const a=$p.getProperty(t,"raw.data.attributes.description_rich_text");return a||(t.description?t.description.replaceAll(`
68
- `,"<br />"):null)}}const ca=w.forwardRef((r,t)=>{const{mediaId:a,thumbnail:l=!1,...o}=r,u=`/media/${a}${l?"?t=1":""}`,c=w.useCallback(d=>{d.currentTarget.style.display="none"},[]);return S.jsx("img",{ref:t,src:u,onError:c,...o})}),sM={postCount:"article",mediaCount:"image",productCount:"storefront"};function uM(r){const{campaign:t}=r,a=jO.getCampaignCreationName(t),l=["postCount","productCount","mediaCount"].reduce((o,u)=>(t[u]>0&&o.push(S.jsxs(Ne,{direction:"horizontal",style:{alignSelf:"auto"},children:[S.jsx("span",{className:"campaign-card__count-icon material-icons-outlined",children:sM[u]}),S.jsx("span",{className:"campaign-card__count-text",children:t[u]})]},`${t.id}:${u}`)),o),[]);return S.jsx(it,{className:"campaign-card mb-3",children:S.jsxs(it.Body,{className:"d-flex p-0",children:[S.jsx(ca,{className:"campaign-card__avatar",mediaId:`campaign:${t.id}:avatar`}),S.jsxs(Ne,{className:"flex-fill overflow-hidden px-3 py-2",children:[S.jsx("h6",{className:"campaign-card__title",children:S.jsx(on,{to:`/campaigns/${t.id}`,children:t.name})}),a?S.jsx("div",{className:"campaign-card__creation-name",children:a}):null,S.jsxs(Ne,{direction:"horizontal",className:"flex-fill align-items-end text-body-secondary",gap:3,children:[...l]})]})]})})}function ju(r){const{total:t,page:a,itemsPerPage:l}=r;if(t>l){const o=(a-1)*l,u=o+1,c=Math.min(o+l,t),d=typeof r.subject=="string"?r.subject:r.subject.plural;return`Showing ${u} - ${c} of ${t} ${d}`}else{const o=typeof r.subject=="string"?r.subject:t===1?r.subject.singular:r.subject.plural;return`Total ${t} ${o}`}}class cM{static getPaginationParams(t,a){const l=new URL(t),o=l.searchParams.get("p")||1,u=l.searchParams.get("n")||a,c=Number(o),d=Number(u);if(isNaN(c))throw TypeError('Invalid param "p"');if(c<=0)throw RangeError(`Invalid value "${c}" for param "p"`);if(isNaN(d))throw TypeError('Invalid param "n"');if(d<=0)throw RangeError(`Invalid value "${d}" for param "n"`);return{limit:d,offset:(c-1)*d}}}function fM(r){const{currentPage:t,totalPages:a,onChange:l}=r,[o,u]=w.useState(t),c=w.useRef(null),d=w.useCallback(()=>{c.current&&c.current.focus()},[]),h=w.useCallback(()=>{c.current&&c.current.blur()},[]),p=w.useCallback(()=>{if(!c.current)return;const m=Number(c.current.value);if(isNaN(m)||m===t)return;const y=Math.max(Math.min(a,m),1);l(y)},[t,a]);return S.jsx(eM,{trigger:"click",rootClose:!0,placement:"top",onEntered:d,onExited:h,overlay:S.jsx(Hp,{children:S.jsx(Hp.Body,{children:S.jsxs(Ne,{direction:"horizontal",children:[S.jsx("span",{className:"text-nowrap me-2",children:"Go to:"}),S.jsxs(Vx,{children:[S.jsx(It.Control,{ref:c,value:o,type:"number",required:!0,size:"sm",style:{width:"10em"},onChange:m=>u(Number(m.target.value))}),S.jsx(Qt,{onClick:p,children:"→"})]})]})})}),children:S.jsx(Qt,{variant:"outline-primary",children:"..."})})}const Xn=10;function dM(r,t){const a=window.location.href,{limit:l,offset:o}=cM.getPaginationParams(a,t),u=Math.ceil(r/l);if(u===1)return null;const c=[],d=Math.floor(o/l)+1;if(u<=Xn)c.push(Ln(1,u,d));else if(d<Xn-1)c.push(Ln(1,Xn-1,d)),c.push(Ln(u,u,d));else if(d>=u-Xn+2)c.push(Ln(1,1,d)),c.push(Ln(u-Xn+2,u,d));else{c.push(Ln(1,1,d));let m=Math.floor(d/(Xn-2))+1,y=2+(m-1)*(Xn-3),x=y+Xn-3;d>=x&&(m++,y+=Xn-3,x+=Xn-3),x===u-1?c.push(Ln(y,u,d)):(c.push(Ln(y,x,d)),c.push(Ln(u,u,d)))}const h=d>1?Ln(d-1,d-1,d)[0].page:null,p=d<u?Ln(d+1,d+1,d)[0].page:null;return{currentPage:d,totalPages:u,sections:c,previousPage:h,nextPage:p}}function Ln(r,t,a){const l=[];for(let o=r;o<=t;o++)l.push({page:o,isCurrent:o===a});return l}function Au(r){const{totalItems:t,itemsPerPage:a,onChange:l}=r,o=dM(t,a);if(!o)return null;const u=d=>{const h=d.currentTarget.dataset.page;h!==void 0&&!isNaN(Number(h))&&l(Number(h))},c=[];o.previousPage&&c.push(S.jsx(Qt,{variant:"outline-primary",onClick:u,"data-page":o.previousPage,children:"<"}));for(let d=0;d<o.sections.length;d++){const h=o.sections[d];c.push(...h.map(p=>{const m=p.isCurrent?void 0:u,y=p.isCurrent?"primary":"outline-primary";return S.jsx(Qt,{variant:y,onClick:m,"data-page":p.page,children:p.page})})),d<o.sections.length-1&&c.push(S.jsx(fM,{currentPage:o.currentPage,totalPages:o.totalPages,onChange:l}))}return o.nextPage&&c.push(S.jsx(Qt,{variant:"outline-primary",onClick:u,"data-page":o.nextPage,children:">"})),S.jsx("div",{className:"d-flex justify-content-center",children:S.jsx(sx,{className:"mt-2 mb-4",children:c})})}var Gh={},Vh={},Vl={exports:{}},La={exports:{}},hM=La.exports,ZS;function pM(){return ZS||(ZS=1,(function(){var r,t,a,l,o,u;typeof performance<"u"&&performance!==null&&performance.now?La.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(La.exports=function(){return(r()-o)/1e6},t=process.hrtime,r=function(){var c;return c=t(),c[0]*1e9+c[1]},l=r(),u=process.uptime()*1e9,o=l-u):Date.now?(La.exports=function(){return Date.now()-a},a=Date.now()):(La.exports=function(){return new Date().getTime()-a},a=new Date().getTime())}).call(hM)),La.exports}var KS;function gM(){if(KS)return Vl.exports;KS=1;for(var r=pM(),t=typeof window>"u"?xr:window,a=["moz","webkit"],l="AnimationFrame",o=t["request"+l],u=t["cancel"+l]||t["cancelRequest"+l],c=0;!o&&c<a.length;c++)o=t[a[c]+"Request"+l],u=t[a[c]+"Cancel"+l]||t[a[c]+"CancelRequest"+l];if(!o||!u){var d=0,h=0,p=[],m=1e3/60;o=function(y){if(p.length===0){var x=r(),T=Math.max(0,m-(x-d));d=T+x,setTimeout(function(){var N=p.slice(0);p.length=0;for(var _=0;_<N.length;_++)if(!N[_].cancelled)try{N[_].callback(d)}catch(z){setTimeout(function(){throw z},0)}},Math.round(T))}return p.push({handle:++h,callback:y,cancelled:!1}),h},u=function(y){for(var x=0;x<p.length;x++)p[x].handle===y&&(p[x].cancelled=!0)}}return Vl.exports=function(y){return o.call(t,y)},Vl.exports.cancel=function(){u.apply(t,arguments)},Vl.exports.polyfill=function(y){y||(y=t),y.requestAnimationFrame=o,y.cancelAnimationFrame=u},Vl.exports}var Yl={exports:{}},Yh,JS;function mM(){if(JS)return Yh;JS=1;var r=null,t=["Webkit","Moz","O","ms"];return Yh=function(l){r||(r=document.createElement("div"));var o=r.style;if(l in o)return l;for(var u=l.charAt(0).toUpperCase()+l.slice(1),c=t.length;c>=0;c--){var d=t[c]+u;if(d in o)return d}return!1},Yh}var Xh,e1;function vM(){if(e1)return Xh;e1=1,Xh=l;var r=/\s/,t=/(_|-|\.|:)/,a=/([a-z][A-Z]|[A-Z][a-z])/;function l(h){return r.test(h)?h.toLowerCase():t.test(h)?(u(h)||h).toLowerCase():a.test(h)?d(h).toLowerCase():h.toLowerCase()}var o=/[\W_]+(.|$)/g;function u(h){return h.replace(o,function(p,m){return m?" "+m:""})}var c=/(.)([A-Z]+)/g;function d(h){return h.replace(c,function(p,m,y){return m+" "+y.toLowerCase().split("").join(" ")})}return Xh}var Wh,t1;function yM(){if(t1)return Wh;t1=1;var r=vM();Wh=t;function t(a){return r(a).replace(/[\W_]+(.|$)/g,function(l,o){return o?" "+o:""}).trim()}return Wh}var Fh,n1;function bM(){if(n1)return Fh;n1=1;var r=yM();Fh=t;function t(a){return r(a).replace(/\s(\w)/g,function(l,o){return o.toUpperCase()})}return Fh}var Qh,r1;function SM(){if(r1)return Qh;r1=1;var r={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return Qh=function(t,a){return typeof a=="number"&&!r[t]?a+"px":a},Qh}var a1;function AO(){if(a1)return Yl.exports;a1=1;var r=mM(),t=bM(),a={float:"cssFloat"},l=SM();function o(h,p,m){var y=a[p];if(typeof y>"u"&&(y=c(p)),y){if(m===void 0)return h.style[y];h.style[y]=l(y,m)}}function u(h,p){for(var m in p)p.hasOwnProperty(m)&&o(h,m,p[m])}function c(h){var p=t(h),m=r(p);return a[p]=a[h]=a[m]=m,m}function d(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:u(arguments[0],arguments[1]):o(arguments[0],arguments[1],arguments[2])}return Yl.exports=d,Yl.exports.set=d,Yl.exports.get=function(h,p){return Array.isArray(p)?p.reduce(function(m,y){return m[y]=o(h,y||""),m},{}):o(h,p||"")},Yl.exports}var Zh={},i1;function wM(){return i1||(i1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(a){return typeof a=="string"}}(Zh)),Zh}var Kh={},l1;function xM(){return l1||(l1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;var t=AO(),a=l(t);function l(c){return c&&c.__esModule?c:{default:c}}var o=!1;function u(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(c&&o!==!1)return o;if(typeof document<"u"){var d=document.createElement("div");(0,a.default)(d,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(d),o=d.offsetWidth-d.clientWidth,document.body.removeChild(d)}else o=0;return o||0}}(Kh)),Kh}var Jh={},o1;function OM(){return o1||(o1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(){return!1}}(Jh)),Jh}var ep={},s1;function EM(){return s1||(s1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(a){var l=a.clientWidth,o=getComputedStyle(a),u=o.paddingLeft,c=o.paddingRight;return l-parseFloat(u)-parseFloat(c)}}(ep)),ep}var tp={},u1;function TM(){return u1||(u1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(a){var l=a.clientHeight,o=getComputedStyle(a),u=o.paddingTop,c=o.paddingBottom;return l-parseFloat(u)-parseFloat(c)}}(tp)),tp}var Wt={},c1;function CM(){return c1||(c1=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},Wt.containerStyleAutoHeight={height:"auto"},Wt.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},Wt.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},Wt.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},Wt.trackHorizontalStyleDefault={position:"absolute",height:6},Wt.trackVerticalStyleDefault={position:"absolute",width:6},Wt.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},Wt.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},Wt.disableSelectStyle={userSelect:"none"},Wt.disableSelectStyleReset={userSelect:""}),Wt}var ia={},f1;function RM(){if(f1)return ia;f1=1,Object.defineProperty(ia,"__esModule",{value:!0});var r=Object.assign||function(m){for(var y=1;y<arguments.length;y++){var x=arguments[y];for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(m[T]=x[T])}return m};ia.renderViewDefault=u,ia.renderTrackHorizontalDefault=c,ia.renderTrackVerticalDefault=d,ia.renderThumbHorizontalDefault=h,ia.renderThumbVerticalDefault=p;var t=Cn(),a=l(t);function l(m){return m&&m.__esModule?m:{default:m}}function o(m,y){var x={};for(var T in m)y.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(m,T)&&(x[T]=m[T]);return x}function u(m){return a.default.createElement("div",m)}function c(m){var y=m.style,x=o(m,["style"]),T=r({},y,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:T},x))}function d(m){var y=m.style,x=o(m,["style"]),T=r({},y,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:T},x))}function h(m){var y=m.style,x=o(m,["style"]),T=r({},y,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:T},x))}function p(m){var y=m.style,x=o(m,["style"]),T=r({},y,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:T},x))}return ia}var d1;function _M(){return d1||(d1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0});var t=Object.assign||function(B){for(var q=1;q<arguments.length;q++){var k=arguments[q];for(var G in k)Object.prototype.hasOwnProperty.call(k,G)&&(B[G]=k[G])}return B},a=function(){function B(q,k){for(var G=0;G<k.length;G++){var L=k[G];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(q,L.key,L)}}return function(q,k,G){return k&&B(q.prototype,k),G&&B(q,G),q}}(),l=gM(),o=M(l),u=AO(),c=M(u),d=Cn(),h=Jw(),p=M(h),m=wM(),y=M(m),x=xM(),T=M(x),N=OM(),_=M(N),z=EM(),$=M(z),V=TM(),I=M(V),Q=CM(),A=RM();function M(B){return B&&B.__esModule?B:{default:B}}function P(B,q){var k={};for(var G in B)q.indexOf(G)>=0||Object.prototype.hasOwnProperty.call(B,G)&&(k[G]=B[G]);return k}function F(B,q){if(!(B instanceof q))throw new TypeError("Cannot call a class as a function")}function D(B,q){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:B}function E(B,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);B.prototype=Object.create(q&&q.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(B,q):B.__proto__=q)}var W=function(B){E(q,B);function q(k){var G;F(this,q);for(var L=arguments.length,b=Array(L>1?L-1:0),te=1;te<L;te++)b[te-1]=arguments[te];var R=D(this,(G=q.__proto__||Object.getPrototypeOf(q)).call.apply(G,[this,k].concat(b)));return R.getScrollLeft=R.getScrollLeft.bind(R),R.getScrollTop=R.getScrollTop.bind(R),R.getScrollWidth=R.getScrollWidth.bind(R),R.getScrollHeight=R.getScrollHeight.bind(R),R.getClientWidth=R.getClientWidth.bind(R),R.getClientHeight=R.getClientHeight.bind(R),R.getValues=R.getValues.bind(R),R.getThumbHorizontalWidth=R.getThumbHorizontalWidth.bind(R),R.getThumbVerticalHeight=R.getThumbVerticalHeight.bind(R),R.getScrollLeftForOffset=R.getScrollLeftForOffset.bind(R),R.getScrollTopForOffset=R.getScrollTopForOffset.bind(R),R.scrollLeft=R.scrollLeft.bind(R),R.scrollTop=R.scrollTop.bind(R),R.scrollToLeft=R.scrollToLeft.bind(R),R.scrollToTop=R.scrollToTop.bind(R),R.scrollToRight=R.scrollToRight.bind(R),R.scrollToBottom=R.scrollToBottom.bind(R),R.handleTrackMouseEnter=R.handleTrackMouseEnter.bind(R),R.handleTrackMouseLeave=R.handleTrackMouseLeave.bind(R),R.handleHorizontalTrackMouseDown=R.handleHorizontalTrackMouseDown.bind(R),R.handleVerticalTrackMouseDown=R.handleVerticalTrackMouseDown.bind(R),R.handleHorizontalThumbMouseDown=R.handleHorizontalThumbMouseDown.bind(R),R.handleVerticalThumbMouseDown=R.handleVerticalThumbMouseDown.bind(R),R.handleWindowResize=R.handleWindowResize.bind(R),R.handleScroll=R.handleScroll.bind(R),R.handleDrag=R.handleDrag.bind(R),R.handleDragEnd=R.handleDragEnd.bind(R),R.state={didMountUniversal:!1},R}return a(q,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var G=this.props.universal;G&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,l.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var G=this.view||{},L=G.scrollLeft,b=L===void 0?0:L,te=G.scrollTop,R=te===void 0?0:te,v=G.scrollWidth,C=v===void 0?0:v,Y=G.scrollHeight,J=Y===void 0?0:Y,H=G.clientWidth,U=H===void 0?0:H,Z=G.clientHeight,re=Z===void 0?0:Z;return{left:b/(C-U)||0,top:R/(J-re)||0,scrollLeft:b,scrollTop:R,scrollWidth:C,scrollHeight:J,clientWidth:U,clientHeight:re}}},{key:"getThumbHorizontalWidth",value:function(){var G=this.props,L=G.thumbSize,b=G.thumbMinSize,te=this.view,R=te.scrollWidth,v=te.clientWidth,C=(0,$.default)(this.trackHorizontal),Y=Math.ceil(v/R*C);return C<=Y?0:L||Math.max(Y,b)}},{key:"getThumbVerticalHeight",value:function(){var G=this.props,L=G.thumbSize,b=G.thumbMinSize,te=this.view,R=te.scrollHeight,v=te.clientHeight,C=(0,I.default)(this.trackVertical),Y=Math.ceil(v/R*C);return C<=Y?0:L||Math.max(Y,b)}},{key:"getScrollLeftForOffset",value:function(G){var L=this.view,b=L.scrollWidth,te=L.clientWidth,R=(0,$.default)(this.trackHorizontal),v=this.getThumbHorizontalWidth();return G/(R-v)*(b-te)}},{key:"getScrollTopForOffset",value:function(G){var L=this.view,b=L.scrollHeight,te=L.clientHeight,R=(0,I.default)(this.trackVertical),v=this.getThumbVerticalHeight();return G/(R-v)*(b-te)}},{key:"scrollLeft",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=G)}},{key:"scrollTop",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=G)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var G=this.view,L=this.trackHorizontal,b=this.trackVertical,te=this.thumbHorizontal,R=this.thumbVertical;G.addEventListener("scroll",this.handleScroll),(0,T.default)()&&(L.addEventListener("mouseenter",this.handleTrackMouseEnter),L.addEventListener("mouseleave",this.handleTrackMouseLeave),L.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),b.addEventListener("mouseenter",this.handleTrackMouseEnter),b.addEventListener("mouseleave",this.handleTrackMouseLeave),b.addEventListener("mousedown",this.handleVerticalTrackMouseDown),te.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),R.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var G=this.view,L=this.trackHorizontal,b=this.trackVertical,te=this.thumbHorizontal,R=this.thumbVertical;G.removeEventListener("scroll",this.handleScroll),(0,T.default)()&&(L.removeEventListener("mouseenter",this.handleTrackMouseEnter),L.removeEventListener("mouseleave",this.handleTrackMouseLeave),L.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),b.removeEventListener("mouseenter",this.handleTrackMouseEnter),b.removeEventListener("mouseleave",this.handleTrackMouseLeave),b.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),te.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),R.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(G){var L=this,b=this.props,te=b.onScroll,R=b.onScrollFrame;te&&te(G),this.update(function(v){var C=v.scrollLeft,Y=v.scrollTop;L.viewScrollLeft=C,L.viewScrollTop=Y,R&&R(v)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var G=this.props.onScrollStart;G&&G(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var G=this.props.autoHide;G&&this.showTracks()}},{key:"handleScrollStop",value:function(){var G=this.props.onScrollStop;G&&G(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var G=this.props.autoHide;G&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,T.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(G){G.preventDefault();var L=G.target,b=G.clientX,te=L.getBoundingClientRect(),R=te.left,v=this.getThumbHorizontalWidth(),C=Math.abs(R-b)-v/2;this.view.scrollLeft=this.getScrollLeftForOffset(C)}},{key:"handleVerticalTrackMouseDown",value:function(G){G.preventDefault();var L=G.target,b=G.clientY,te=L.getBoundingClientRect(),R=te.top,v=this.getThumbVerticalHeight(),C=Math.abs(R-b)-v/2;this.view.scrollTop=this.getScrollTopForOffset(C)}},{key:"handleHorizontalThumbMouseDown",value:function(G){G.preventDefault(),this.handleDragStart(G);var L=G.target,b=G.clientX,te=L.offsetWidth,R=L.getBoundingClientRect(),v=R.left;this.prevPageX=te-(b-v)}},{key:"handleVerticalThumbMouseDown",value:function(G){G.preventDefault(),this.handleDragStart(G);var L=G.target,b=G.clientY,te=L.offsetHeight,R=L.getBoundingClientRect(),v=R.top;this.prevPageY=te-(b-v)}},{key:"setupDragging",value:function(){(0,c.default)(document.body,Q.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=_.default}},{key:"teardownDragging",value:function(){(0,c.default)(document.body,Q.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(G){this.dragging=!0,G.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(G){if(this.prevPageX){var L=G.clientX,b=this.trackHorizontal.getBoundingClientRect(),te=b.left,R=this.getThumbHorizontalWidth(),v=R-this.prevPageX,C=-te+L-v;this.view.scrollLeft=this.getScrollLeftForOffset(C)}if(this.prevPageY){var Y=G.clientY,J=this.trackVertical.getBoundingClientRect(),H=J.top,U=this.getThumbVerticalHeight(),Z=U-this.prevPageY,re=-H+Y-Z;this.view.scrollTop=this.getScrollTopForOffset(re)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var G=this.props.autoHide;G&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var G=this.props.autoHide;G&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var G=this.props.autoHide;G&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,c.default)(this.trackHorizontal,{opacity:1}),(0,c.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var G=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var L=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,c.default)(G.trackHorizontal,{opacity:0}),(0,c.default)(G.trackVertical,{opacity:0})},L)}}},{key:"detectScrolling",value:function(){var G=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){G.lastViewScrollLeft===G.viewScrollLeft&&G.lastViewScrollTop===G.viewScrollTop&&(clearInterval(G.detectScrollingInterval),G.scrolling=!1,G.handleScrollStop()),G.lastViewScrollLeft=G.viewScrollLeft,G.lastViewScrollTop=G.viewScrollTop},100))}},{key:"raf",value:function(G){var L=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)(function(){L.requestFrame=void 0,G()})}},{key:"update",value:function(G){var L=this;this.raf(function(){return L._update(G)})}},{key:"_update",value:function(G){var L=this.props,b=L.onUpdate,te=L.hideTracksWhenNotNeeded,R=this.getValues();if((0,T.default)()){var v=R.scrollLeft,C=R.clientWidth,Y=R.scrollWidth,J=(0,$.default)(this.trackHorizontal),H=this.getThumbHorizontalWidth(),U=v/(Y-C)*(J-H),Z={width:H,transform:"translateX("+U+"px)"},re=R.scrollTop,ue=R.clientHeight,ge=R.scrollHeight,pe=(0,I.default)(this.trackVertical),ve=this.getThumbVerticalHeight(),he=re/(ge-ue)*(pe-ve),me={height:ve,transform:"translateY("+he+"px)"};if(te){var Se={visibility:Y>C?"visible":"hidden"},ye={visibility:ge>ue?"visible":"hidden"};(0,c.default)(this.trackHorizontal,Se),(0,c.default)(this.trackVertical,ye)}(0,c.default)(this.thumbHorizontal,Z),(0,c.default)(this.thumbVertical,me)}b&&b(R),typeof G=="function"&&G(R)}},{key:"render",value:function(){var G=this,L=(0,T.default)(),b=this.props;b.onScroll,b.onScrollFrame,b.onScrollStart,b.onScrollStop,b.onUpdate;var te=b.renderView,R=b.renderTrackHorizontal,v=b.renderTrackVertical,C=b.renderThumbHorizontal,Y=b.renderThumbVertical,J=b.tagName;b.hideTracksWhenNotNeeded;var H=b.autoHide;b.autoHideTimeout;var U=b.autoHideDuration;b.thumbSize,b.thumbMinSize;var Z=b.universal,re=b.autoHeight,ue=b.autoHeightMin,ge=b.autoHeightMax,pe=b.style,ve=b.children,he=P(b,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),me=this.state.didMountUniversal,Se=t({},Q.containerStyleDefault,re&&t({},Q.containerStyleAutoHeight,{minHeight:ue,maxHeight:ge}),pe),ye=t({},Q.viewStyleDefault,{marginRight:L?-L:0,marginBottom:L?-L:0},re&&t({},Q.viewStyleAutoHeight,{minHeight:(0,y.default)(ue)?"calc("+ue+" + "+L+"px)":ue+L,maxHeight:(0,y.default)(ge)?"calc("+ge+" + "+L+"px)":ge+L}),re&&Z&&!me&&{minHeight:ue,maxHeight:ge},Z&&!me&&Q.viewStyleUniversalInitial),Re={transition:"opacity "+U+"ms",opacity:0},be=t({},Q.trackHorizontalStyleDefault,H&&Re,(!L||Z&&!me)&&{display:"none"}),Le=t({},Q.trackVerticalStyleDefault,H&&Re,(!L||Z&&!me)&&{display:"none"});return(0,d.createElement)(J,t({},he,{style:Se,ref:function(Te){G.container=Te}}),[(0,d.cloneElement)(te({style:ye}),{key:"view",ref:function(Te){G.view=Te}},ve),(0,d.cloneElement)(R({style:be}),{key:"trackHorizontal",ref:function(Te){G.trackHorizontal=Te}},(0,d.cloneElement)(C({style:Q.thumbHorizontalStyleDefault}),{ref:function(Te){G.thumbHorizontal=Te}})),(0,d.cloneElement)(v({style:Le}),{key:"trackVertical",ref:function(Te){G.trackVertical=Te}},(0,d.cloneElement)(Y({style:Q.thumbVerticalStyleDefault}),{ref:function(Te){G.thumbVertical=Te}}))])}}]),q}(d.Component);r.default=W,W.propTypes={onScroll:p.default.func,onScrollFrame:p.default.func,onScrollStart:p.default.func,onScrollStop:p.default.func,onUpdate:p.default.func,renderView:p.default.func,renderTrackHorizontal:p.default.func,renderTrackVertical:p.default.func,renderThumbHorizontal:p.default.func,renderThumbVertical:p.default.func,tagName:p.default.string,thumbSize:p.default.number,thumbMinSize:p.default.number,hideTracksWhenNotNeeded:p.default.bool,autoHide:p.default.bool,autoHideTimeout:p.default.number,autoHideDuration:p.default.number,autoHeight:p.default.bool,autoHeightMin:p.default.oneOfType([p.default.number,p.default.string]),autoHeightMax:p.default.oneOfType([p.default.number,p.default.string]),universal:p.default.bool,style:p.default.object,children:p.default.node},W.defaultProps={renderView:A.renderViewDefault,renderTrackHorizontal:A.renderTrackHorizontalDefault,renderTrackVertical:A.renderTrackVerticalDefault,renderThumbHorizontal:A.renderThumbHorizontalDefault,renderThumbVertical:A.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}(Vh)),Vh}var h1;function jM(){return h1||(h1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.Scrollbars=void 0;var t=_M(),a=l(t);function l(o){return o&&o.__esModule?o:{default:o}}r.default=a.default,r.Scrollbars=a.default}(Gh)),Gh}var AM=jM();const MM=Jn(AM),MO=w.forwardRef((r,t)=>{const{viewClassName:a,children:l}=r;return S.jsx(MM,{ref:t,className:"scrollbars",autoHide:!0,hideTracksWhenNotNeeded:!0,renderTrackHorizontal:o=>S.jsx("div",{...o,className:"custom-scrollbars__track-horizontal"}),renderTrackVertical:o=>S.jsx("div",{...o,className:"custom-scrollbars__track-vertical"}),renderThumbHorizontal:o=>S.jsx("div",{...o,className:"custom-scrollbars__thumb-horizontal"}),renderThumbVertical:o=>S.jsx("div",{...o,className:"custom-scrollbars__thumb-vertical"}),renderView:o=>S.jsx("div",{...o,className:a}),children:l})}),NO=w.createContext({});function NM(r){const{children:t}=r,a=w.useRef(null),l=w.useCallback((o,u)=>{a.current&&(a.current.scrollLeft(o),a.current.scrollTop(u))},[]);return S.jsx(NO.Provider,{value:{scrollTo:l},children:S.jsx(MO,{ref:a,children:t})})}const No=()=>w.useContext(NO),DO=w.createContext({}),DM=(r,t)=>Kn(t,r)?r:t,LM=(r,t)=>Kn(t,r)?r:t;function zM(r){const{api:t}=_n(),[a,l]=w.useReducer(DM,null),[o,u]=w.useReducer(LM,null),c=w.useCallback(h=>{if(!a)return null;const p=Tr(a);h.theme&&(p.theme=h.theme),h.listItemsPerPage&&(p.listItemsPerPage=h.listItemsPerPage),h.galleryItemsPerPage&&(p.galleryItemsPerPage=h.galleryItemsPerPage),(async()=>Kn(a,p)||(await t.saveBrowseSettings(p),l(p)))()},[t,a]),d=w.useCallback(()=>{(async()=>(l(await t.getBrowseSettings()),u(await t.getBrowseSettingOptions())))()},[t]);if(w.useEffect(()=>{d()},[d]),!(!a||!o))return S.jsx(DO.Provider,{value:{settings:a,options:o,updateSettings:c,refreshSettings:d},children:r.children})}const Ua=()=>w.useContext(DO);function PM(r){return{sortBy:"last_downloaded",page:null,itemsPerPage:r.listItemsPerPage}}const HM=(r,t)=>{const a=Tr(r);return t.sortBy!==void 0&&(a.sortBy=t.sortBy),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Kn(a,r)?r:a};function p1(){const{api:r}=_n(),{settings:t}=Ua(),{scrollTo:a}=No(),[l,o]=w.useReducer(HM,PM(t)),[u,c]=w.useState(null),[d,h]=Oo();w.useEffect(()=>{const{sortBy:m,page:y}=l;if(m===null||y===null)return;const x=new AbortController;return(async()=>{const T=await r.getCampaignList({...l,sortBy:m,page:y});x.signal.aborted||c(T)})(),()=>x.abort()},[r,l]),w.useEffect(()=>{const m=Number(d.get("p"))||1;o({page:m}),a(0,0)},[d,a]),w.useEffect(()=>{o({itemsPerPage:t.listItemsPerPage})},[t.listItemsPerPage]);const p=(m,y=!1)=>{h(x=>{const T=new URLSearchParams(x);return T.set("p",String(m)),T},{replace:y})};if(w.useEffect(()=>{u&&u.campaigns.length===0&&u.total>0&&p(1,!0)},[u,p]),!!u)return S.jsx(On,{fluid:!0,children:S.jsx(St,{className:"g-0 justify-content-center",children:S.jsxs(st,{md:10,sm:12,style:{maxWidth:"40.5em"},children:[S.jsx("h2",{className:"my-4",children:"Creators"}),S.jsx(On,{fluid:!0,className:"p-0",children:S.jsxs(St,{className:"mb-2 g-0 justify-content-center align-items-center",children:[S.jsx(st,{className:"w-auto flex-fill",children:l.page?S.jsx(ju,{total:u.total,page:l.page,itemsPerPage:l.itemsPerPage,subject:{singular:"creator",plural:"creators"}}):null}),S.jsx(st,{className:"w-auto d-flex justify-content-end",children:S.jsxs(It.Select,{size:"sm",className:"w-auto",onChange:m=>o({sortBy:m.currentTarget.value}),children:[S.jsx("option",{value:"a-z",selected:l.sortBy==="a-z",children:"A-Z"}),S.jsx("option",{value:"z-a",selected:l.sortBy==="z-a",children:"Z-A"}),S.jsx("option",{value:"most_media",selected:l.sortBy==="most_media",children:"Most media"}),S.jsx("option",{value:"most_content",selected:l.sortBy==="most_content",children:"Most content"}),S.jsx("option",{value:"last_downloaded",selected:l.sortBy==="last_downloaded",children:"Last downloaded"})]})})]})}),S.jsx("div",{className:"mb-4",children:u.campaigns.map(m=>S.jsx(uM,{campaign:m}))}),S.jsx(Au,{totalItems:u.total,itemsPerPage:l.itemsPerPage,onChange:p})]})})})}const kM=r=>w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...r},w.createElement("path",{d:"M 171.3548387096774 407.741935483871 Q 170.32258064516128 411.8709677419355 166.19354838709677 411.8709677419355 Q 160 411.8709677419355 160 407.741935483871 Q 161.03225806451613 404.64516129032256 165.16129032258064 404.64516129032256 Q 170.32258064516128 404.64516129032256 171.3548387096774 407.741935483871 L 171.3548387096774 407.741935483871 Z M 139.3548387096774 403.61290322580646 Q 138.32258064516128 406.7096774193548 143.48387096774192 408.7741935483871 Q 148.6451612903226 409.80645161290323 149.67741935483872 406.7096774193548 Q 150.70967741935485 402.5806451612903 145.5483870967742 401.5483870967742 Q 140.38709677419354 400.51612903225805 139.3548387096774 403.61290322580646 L 139.3548387096774 403.61290322580646 Z M 184.7741935483871 401.5483870967742 Q 179.61290322580646 402.5806451612903 179.61290322580646 406.7096774193548 Q 180.6451612903226 409.80645161290323 185.80645161290323 409.80645161290323 Q 190.96774193548387 407.741935483871 190.96774193548387 404.64516129032256 Q 189.93548387096774 401.5483870967742 184.7741935483871 401.5483870967742 L 184.7741935483871 401.5483870967742 Z M 252.90322580645162 6.193548387096774 Q 142.4516129032258 8.258064516129032 72.25806451612904 78.45161290322581 L 72.25806451612904 78.45161290322581 L 72.25806451612904 78.45161290322581 Q 2.064516129032258 148.6451612903226 0 258.06451612903226 Q 1.032258064516129 345.80645161290323 48.516129032258064 411.8709677419355 Q 96 477.93548387096774 175.48387096774192 504.7741935483871 Q 194.06451612903226 505.80645161290323 193.03225806451613 492.38709677419354 Q 193.03225806451613 488.258064516129 193.03225806451613 476.9032258064516 Q 193.03225806451613 453.16129032258067 193.03225806451613 429.4193548387097 Q 190.96774193548387 429.4193548387097 173.41935483870967 431.48387096774195 Q 154.83870967741936 432.51612903225805 134.19354838709677 427.35483870967744 Q 113.54838709677419 421.16129032258067 105.29032258064517 398.4516129032258 Q 105.29032258064517 396.38709677419354 97.03225806451613 381.93548387096774 Q 88.7741935483871 368.51612903225805 76.38709677419355 360.258064516129 Q 74.3225806451613 359.2258064516129 68.12903225806451 352 Q 60.903225806451616 345.80645161290323 78.45161290322581 344.7741935483871 Q 79.48387096774194 343.741935483871 92.90322580645162 348.9032258064516 Q 106.3225806451613 353.03225806451616 117.6774193548387 371.61290322580646 Q 136.25806451612902 399.48387096774195 157.93548387096774 399.48387096774195 Q 180.6451612903226 399.48387096774195 193.03225806451613 393.2903225806452 Q 197.16129032258064 368.51612903225805 209.5483870967742 358.19354838709677 Q 164.1290322580645 356.1290322580645 130.06451612903226 335.48387096774195 Q 96 315.8709677419355 93.93548387096774 243.61290322580646 Q 93.93548387096774 222.96774193548387 100.12903225806451 209.5483870967742 Q 105.29032258064517 196.1290322580645 117.6774193548387 183.74193548387098 Q 115.61290322580645 177.5483870967742 113.54838709677419 158.96774193548387 Q 111.48387096774194 140.38709677419354 120.7741935483871 113.54838709677419 Q 139.3548387096774 110.45161290322581 164.1290322580645 124.90322580645162 Q 189.93548387096774 138.32258064516128 192 141.41935483870967 Q 192 141.41935483870967 192 141.41935483870967 Q 222.96774193548387 132.1290322580645 257.03225806451616 132.1290322580645 Q 290.06451612903226 132.1290322580645 322.06451612903226 141.41935483870967 Q 322.06451612903226 140.38709677419354 335.48387096774195 132.1290322580645 Q 347.8709677419355 123.87096774193549 364.38709677419354 117.6774193548387 Q 380.9032258064516 110.45161290322581 393.2903225806452 113.54838709677419 Q 402.5806451612903 140.38709677419354 400.51612903225805 158.96774193548387 Q 398.4516129032258 177.5483870967742 395.35483870967744 183.74193548387098 Q 407.741935483871 196.1290322580645 414.96774193548384 209.5483870967742 Q 422.19354838709677 222.96774193548387 422.19354838709677 243.61290322580646 Q 421.16129032258067 293.16129032258067 404.64516129032256 316.9032258064516 Q 387.0967741935484 339.61290322580646 360.258064516129 347.8709677419355 Q 333.4193548387097 356.1290322580645 303.48387096774195 358.19354838709677 Q 320 369.5483870967742 321.03225806451616 405.6774193548387 Q 321.03225806451616 443.8709677419355 321.03225806451616 473.80645161290323 Q 321.03225806451616 487.2258064516129 321.03225806451616 492.38709677419354 Q 320 505.80645161290323 338.5806451612903 504.7741935483871 Q 417.03225806451616 477.93548387096774 464.51612903225805 411.8709677419355 Q 510.96774193548384 345.80645161290323 512 258.06451612903226 Q 510.96774193548384 185.80645161290323 476.9032258064516 129.03225806451613 Q 441.80645161290323 72.25806451612904 384 39.225806451612904 Q 325.16129032258067 7.225806451612903 252.90322580645162 6.193548387096774 L 252.90322580645162 6.193548387096774 Z M 100.12903225806451 362.3225806451613 Q 98.06451612903226 364.38709677419354 101.16129032258064 367.48387096774195 Q 104.25806451612904 370.5806451612903 106.3225806451613 368.51612903225805 Q 108.38709677419355 366.4516129032258 105.29032258064517 363.35483870967744 Q 103.2258064516129 360.258064516129 100.12903225806451 362.3225806451613 L 100.12903225806451 362.3225806451613 Z M 88.7741935483871 354.06451612903226 Q 88.7741935483871 356.1290322580645 91.87096774193549 358.19354838709677 Q 94.96774193548387 359.2258064516129 96 357.16129032258067 Q 97.03225806451613 355.0967741935484 93.93548387096774 353.03225806451616 Q 90.83870967741936 352 88.7741935483871 354.06451612903226 L 88.7741935483871 354.06451612903226 Z M 122.83870967741936 390.19354838709677 Q 120.7741935483871 393.2903225806452 123.87096774193549 397.4193548387097 Q 128 400.51612903225805 131.09677419354838 398.4516129032258 Q 132.1290322580645 395.35483870967744 129.03225806451613 391.2258064516129 Q 124.90322580645162 388.1290322580645 122.83870967741936 390.19354838709677 L 122.83870967741936 390.19354838709677 Z M 110.45161290322581 375.741935483871 Q 108.38709677419355 377.80645161290323 110.45161290322581 381.93548387096774 Q 113.54838709677419 385.03225806451616 116.64516129032258 384 Q 118.70967741935483 381.93548387096774 116.64516129032258 377.80645161290323 Q 113.54838709677419 373.6774193548387 110.45161290322581 375.741935483871 L 110.45161290322581 375.741935483871 Z"}));function BM(r){const{show:t,onClose:a}=r,{settings:l,options:o,updateSettings:u,refreshSettings:c}=Ua();w.useEffect(()=>{t&&c()},[t,c]);const d=w.useCallback(h=>{const p=h.target.dataset.setting,m=h.target.dataset.type;if(!p)return;const y=m==="number"?Number(h.target.value):h.target.value;if(typeof y=="number"&&isNaN(y))return;const x={[p]:y};u(x)},[u]);return!l||!o?null:S.jsxs(Pa,{show:t,onHide:a,centered:!0,scrollable:!0,children:[S.jsx(Pa.Header,{closeButton:!0}),S.jsx(Pa.Body,{children:S.jsxs(It,{children:[S.jsxs(It.Group,{as:St,className:"mb-3",children:[S.jsx(It.Label,{column:!0,sm:5,children:"Theme:"}),S.jsx(st,{sm:7,children:S.jsx(It.Select,{"data-setting":"theme",value:l.theme,onChange:d,children:o.themes.map(h=>S.jsx("option",{value:h.value,children:h.name},`theme-${h.value}`))})})]}),S.jsxs(It.Group,{as:St,className:"mb-3",children:[S.jsx(It.Label,{column:!0,sm:5,children:"List items per page:"}),S.jsx(st,{sm:7,children:S.jsx(It.Select,{"data-setting":"listItemsPerPage","data-type":"number",value:l.listItemsPerPage,onChange:d,children:o.listItemsPerPage.map(h=>S.jsx("option",{value:h,children:h},`listItemsPerPage-${h}`))})})]}),S.jsxs(It.Group,{as:St,className:"mb-3",children:[S.jsx(It.Label,{column:!0,sm:5,children:"Gallery items per page:"}),S.jsx(st,{sm:7,children:S.jsx(It.Select,{"data-setting":"galleryItemsPerPage","data-type":"number",value:l.galleryItemsPerPage,onChange:d,children:o.galleryItemsPerPage.map(h=>S.jsx("option",{value:h,children:h},`galleryItemsPerPage-${h}`))})})]})]})})]})}const LO=w.createContext({});function $M(r){const{children:t}=r,[a,l]=w.useState(!1),o=w.useCallback(()=>{l(!0)},[]),u=w.useCallback(()=>{l(!1)},[]);return S.jsxs(LO.Provider,{value:{showBrowseSettingsModal:o,closeBrowseSettingsModal:u},children:[t,S.jsx(BM,{show:a,onClose:u})]})}const IM=()=>w.useContext(LO);function zO(r){const{closeButton:t=!1,onClose:a}=r,{api:l}=_n(),{showBrowseSettingsModal:o}=IM(),[u,c]=w.useState(null);w.useEffect(()=>{const m=new AbortController;return(async()=>{const y=(await l.getCampaignList({sortBy:"last_downloaded",itemsPerPage:10})).campaigns;m.signal.aborted||c(y)})(),()=>m.abort()},[l]);const d=w.useCallback(()=>{a&&a()},[a]),h=w.useCallback(m=>{m.preventDefault(),a&&a(),o()},[a,o]),p=w.useMemo(()=>{if(!u||u.length===0)return null;const m=u.map(y=>S.jsxs(on,{to:`/campaigns/${y.id}`,className:"sidebar__link",onClick:d,children:[S.jsx(ca,{className:"sidebar__link-icon me-2",mediaId:`campaign:${y.id}:avatar`}),S.jsx("span",{className:"sidebar__link-text",children:y.name})]}));return S.jsxs(Ne,{className:"mt-4 mb-5 px-3",gap:3,children:[S.jsx("h6",{className:"sidebar__section-title",children:"Recently downloaded"}),m]})},[u]);return S.jsx(S.Fragment,{children:S.jsx(it,{className:"sidebar p-0",children:S.jsxs(Ne,{className:"overflow-hidden",children:[S.jsxs(Ne,{direction:"horizontal",className:"sidebar__header justify-content-between p-3",children:[S.jsx("div",{className:"sidebar__brand fs-5 fw-bold",children:S.jsx(on,{to:"/",onClick:d,children:"patreon-dl"})}),t?S.jsx("button",{className:"btn-close",onClick:a?()=>a():void 0}):null]}),S.jsx(MO,{viewClassName:"sidebar__main",children:S.jsxs(Ne,{className:"flex-fill",children:[p,S.jsxs(Ne,{className:"justify-content-end px-3 pb-3",gap:3,children:[S.jsxs("a",{href:"#",className:"sidebar__link",onClick:h,children:[S.jsx("span",{className:"material-icons me-2",children:"settings"}),S.jsx("span",{className:"sidebar__link-text",children:"Settings"})]}),S.jsxs(on,{to:"https://github.com/patrickkfkan/patreon-dl",className:"sidebar__link",onClick:d,children:[S.jsx(kM,{className:"sidebar__link-icon sidebar__link-icon--svg me-2"}),S.jsx("span",{className:"sidebar__link-text",children:"Project homepage"})]})]})]})})]})})})}function qM(){const[r,t]=w.useState(!1);return S.jsxs(S.Fragment,{children:[S.jsx(Qt,{variant:"link",className:"sidebar-trigger d-flex align-items-center",onClick:()=>t(!0),children:S.jsx("span",{className:"material-icons",children:"menu"})}),S.jsx(WS,{show:r,onHide:()=>t(!1),placement:"start",children:S.jsx(WS.Body,{className:"p-0",children:S.jsx(zO,{closeButton:!0,onClose:()=>t(!1)})})})]})}function UM(){return S.jsx(On,{fluid:!0,className:"p-0 vh-100",children:S.jsxs(St,{className:"g-0 h-100",children:[S.jsx(st,{lg:3,className:"p-0 sticky-top d-none d-lg-block",style:{maxWidth:"18em"},children:S.jsx(zO,{})}),S.jsx(st,{className:"p-0",children:S.jsxs(NM,{children:[S.jsxs(Ne,{direction:"horizontal",className:"d-lg-none sticky-top bg-body py-2",children:[S.jsx(qM,{}),S.jsx("div",{className:"fs-5",children:S.jsx(on,{className:"text-body",to:"/",children:"patreon-dl"})})]}),S.jsx(Wp,{})]})})]})})}/*! *****************************************************************************
67
+ */var vS;function Co(){return vS||(vS=1,function(r){(function(){var t={}.hasOwnProperty;function a(){for(var u="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(u=o(u,l(d)))}return u}function l(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return a.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var c="";for(var d in u)t.call(u,d)&&u[d]&&(c=o(c,d));return c}function o(u,c){return c?u?u+" "+c:u+c:u}r.exports?(a.default=a,r.exports=a):window.classNames=a})()}(Dh)),Dh.exports}var k_=Co();const Oe=Jn(k_);function Tp(){return Tp=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(r[l]=a[l])}return r},Tp.apply(null,arguments)}function Fw(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)!==-1)continue;a[l]=r[l]}return a}function yS(r){return"default"+r.charAt(0).toUpperCase()+r.substr(1)}function B_(r){var t=$_(r,"string");return typeof t=="symbol"?t:String(t)}function $_(r,t){if(typeof r!="object"||r===null)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var l=a.call(r,t);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function Qw(r,t,a){var l=w.useRef(r!==void 0),o=w.useState(t),u=o[0],c=o[1],d=r!==void 0,h=l.current;return l.current=d,!d&&h&&u!==t&&c(t),[d?r:u,w.useCallback(function(p){for(var g=arguments.length,v=new Array(g>1?g-1:0),x=1;x<g;x++)v[x-1]=arguments[x];a&&a.apply(void 0,[p].concat(v)),c(p)},[a])]}function I_(r,t){return Object.keys(t).reduce(function(a,l){var o,u=a,c=u[yS(l)],d=u[l],h=Fw(u,[yS(l),l].map(B_)),p=t[l],g=Qw(d,c,r[p]),v=g[0],x=g[1];return Tp({},h,(o={},o[l]=v,o[p]=x,o))},r)}function Cp(r,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,l){return a.__proto__=l,a},Cp(r,t)}function q_(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,Cp(r,t)}const Zw=["xxl","xl","lg","md","sm","xs"],Kw="xs",Ro=w.createContext({prefixes:{},breakpoints:Zw,minBreakpoint:Kw}),{Consumer:bN,Provider:SN}=Ro;function Ce(r,t){const{prefixes:a}=w.useContext(Ro);return r||a[t]||t}function am(){const{breakpoints:r}=w.useContext(Ro);return r}function im(){const{minBreakpoint:r}=w.useContext(Ro);return r}function lm(){const{dir:r}=w.useContext(Ro);return r==="rtl"}function ki(r){return r&&r.ownerDocument||document}function U_(r){var t=ki(r);return t&&t.defaultView||window}function G_(r,t){return U_(r).getComputedStyle(r,t)}var V_=/([A-Z])/g;function W_(r){return r.replace(V_,"-$1").toLowerCase()}var Y_=/^ms-/;function Qs(r){return W_(r).replace(Y_,"-ms-")}var X_=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function F_(r){return!!(r&&X_.test(r))}function ka(r,t){var a="",l="";if(typeof t=="string")return r.style.getPropertyValue(Qs(t))||G_(r).getPropertyValue(Qs(t));Object.keys(t).forEach(function(o){var u=t[o];!u&&u!==0?r.style.removeProperty(Qs(o)):F_(o)?l+=o+"("+u+") ":a+=Qs(o)+": "+u+";"}),l&&(a+="transform: "+l+";"),r.style.cssText+=";"+a}var Lh={exports:{}},zh,bS;function Q_(){if(bS)return zh;bS=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zh=r,zh}var Ph,SS;function Z_(){if(SS)return Ph;SS=1;var r=Q_();function t(){}function a(){}return a.resetWarningCache=t,Ph=function(){function l(c,d,h,p,g,v){if(v!==r){var x=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 x.name="Invariant Violation",x}}l.isRequired=l;function o(){return l}var u={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:o,element:l,elementType:l,instanceOf:o,node:l,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:t};return u.PropTypes=u,u},Ph}var wS;function Jw(){return wS||(wS=1,Lh.exports=Z_()()),Lh.exports}var K_=Jw();const Pt=Jn(K_);var J_=X1();const Pa=Jn(J_),xS={disabled:!1},ex=Ft.createContext(null);var e3=function(t){return t.scrollTop},eo="unmounted",Da="exited",Xn="entering",sa="entered",ou="exiting",Ar=function(r){q_(t,r);function t(l,o){var u;u=r.call(this,l,o)||this;var c=o,d=c&&!c.isMounting?l.enter:l.appear,h;return u.appearStatus=null,l.in?d?(h=Da,u.appearStatus=Xn):h=sa:l.unmountOnExit||l.mountOnEnter?h=eo:h=Da,u.state={status:h},u.nextCallback=null,u}t.getDerivedStateFromProps=function(o,u){var c=o.in;return c&&u.status===eo?{status:Da}:null};var a=t.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(o){var u=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==Xn&&c!==sa&&(u=Xn):(c===Xn||c===sa)&&(u=ou)}this.updateStatus(!1,u)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var o=this.props.timeout,u,c,d;return u=c=d=o,o!=null&&typeof o!="number"&&(u=o.exit,c=o.enter,d=o.appear!==void 0?o.appear:c),{exit:u,enter:c,appear:d}},a.updateStatus=function(o,u){if(o===void 0&&(o=!1),u!==null)if(this.cancelNextCallback(),u===Xn){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Pa.findDOMNode(this);c&&e3(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Da&&this.setState({status:eo})},a.performEnter=function(o){var u=this,c=this.props.enter,d=this.context?this.context.isMounting:o,h=this.props.nodeRef?[d]:[Pa.findDOMNode(this),d],p=h[0],g=h[1],v=this.getTimeouts(),x=d?v.appear:v.enter;if(!o&&!c||xS.disabled){this.safeSetState({status:sa},function(){u.props.onEntered(p)});return}this.props.onEnter(p,g),this.safeSetState({status:Xn},function(){u.props.onEntering(p,g),u.onTransitionEnd(x,function(){u.safeSetState({status:sa},function(){u.props.onEntered(p,g)})})})},a.performExit=function(){var o=this,u=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:Pa.findDOMNode(this);if(!u||xS.disabled){this.safeSetState({status:Da},function(){o.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:ou},function(){o.props.onExiting(d),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:Da},function(){o.props.onExited(d)})})})},a.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(o,u){u=this.setNextCallback(u),this.setState(o,u)},a.setNextCallback=function(o){var u=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,u.nextCallback=null,o(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},a.onTransitionEnd=function(o,u){this.setNextCallback(u);var c=this.props.nodeRef?this.props.nodeRef.current:Pa.findDOMNode(this),d=o==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=h[0],g=h[1];this.props.addEndListener(p,g)}o!=null&&setTimeout(this.nextCallback,o)},a.render=function(){var o=this.state.status;if(o===eo)return null;var u=this.props,c=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var d=Fw(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ft.createElement(ex.Provider,{value:null},typeof c=="function"?c(o,d):Ft.cloneElement(Ft.Children.only(c),d))},t}(Ft.Component);Ar.contextType=ex;Ar.propTypes={};function Ti(){}Ar.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ti,onEntering:Ti,onEntered:Ti,onExit:Ti,onExiting:Ti,onExited:Ti};Ar.UNMOUNTED=eo;Ar.EXITED=Da;Ar.ENTERING=Xn;Ar.ENTERED=sa;Ar.EXITING=ou;function tx(r){return r.code==="Escape"||r.keyCode===27}function t3(){const r=w.version.split(".");return{major:+r[0],minor:+r[1],patch:+r[2]}}function Bi(r){if(!r||typeof r=="function")return null;const{major:t}=t3();return t>=19?r.props.ref:r.ref}const $i=!!(typeof window<"u"&&window.document&&window.document.createElement);var Rp=!1,_p=!1;try{var Hh={get passive(){return Rp=!0},get once(){return _p=Rp=!0}};$i&&(window.addEventListener("test",Hh,Hh),window.removeEventListener("test",Hh,!0))}catch{}function nx(r,t,a,l){if(l&&typeof l!="boolean"&&!_p){var o=l.once,u=l.capture,c=a;!_p&&o&&(c=a.__once||function d(h){this.removeEventListener(t,d,u),a.call(this,h)},a.__once=c),r.addEventListener(t,c,Rp?l:u)}r.addEventListener(t,a,l)}function jp(r,t,a,l){var o=l&&typeof l!="boolean"?l.capture:l;r.removeEventListener(t,a,o),a.__once&&r.removeEventListener(t,a.__once,o)}function Or(r,t,a,l){return nx(r,t,a,l),function(){jp(r,t,a,l)}}function n3(r,t,a,l){if(l===void 0&&(l=!0),r){var o=document.createEvent("HTMLEvents");o.initEvent(t,a,l),r.dispatchEvent(o)}}function r3(r){var t=ka(r,"transitionDuration")||"",a=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*a}function a3(r,t,a){a===void 0&&(a=5);var l=!1,o=setTimeout(function(){l||n3(r,"transitionend",!0)},t+a),u=Or(r,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(o),u()}}function rx(r,t,a,l){a==null&&(a=r3(r)||0);var o=a3(r,a,l),u=Or(r,"transitionend",t);return function(){o(),u()}}function OS(r,t){const a=ka(r,t)||"",l=a.indexOf("ms")===-1?1e3:1;return parseFloat(a)*l}function ax(r,t){const a=OS(r,"transitionDuration"),l=OS(r,"transitionDelay"),o=rx(r,u=>{u.target===r&&(o(),t(u))},a+l)}function i3(r){r.offsetHeight}const ES=r=>!r||typeof r=="function"?r:t=>{r.current=t};function l3(r,t){const a=ES(r),l=ES(t);return o=>{a&&a(o),l&&l(o)}}function Ou(r,t){return w.useMemo(()=>l3(r,t),[r,t])}function su(r){return r&&"setState"in r?Pa.findDOMNode(r):r??null}const om=Ft.forwardRef(({onEnter:r,onEntering:t,onEntered:a,onExit:l,onExiting:o,onExited:u,addEndListener:c,children:d,childRef:h,...p},g)=>{const v=w.useRef(null),x=Ou(v,h),T=M=>{x(su(M))},N=M=>P=>{M&&v.current&&M(v.current,P)},_=w.useCallback(N(r),[r]),z=w.useCallback(N(t),[t]),$=w.useCallback(N(a),[a]),V=w.useCallback(N(l),[l]),I=w.useCallback(N(o),[o]),Q=w.useCallback(N(u),[u]),j=w.useCallback(N(c),[c]);return S.jsx(Ar,{ref:g,...p,onEnter:_,onEntered:$,onEntering:z,onExit:V,onExited:Q,onExiting:I,addEndListener:j,nodeRef:v,children:typeof d=="function"?(M,P)=>d(M,{...P,ref:T}):Ft.cloneElement(d,{ref:T})})});om.displayName="TransitionWrapper";function o3(r){const t=w.useRef(r);return w.useEffect(()=>{t.current=r},[r]),t}function lo(r){const t=o3(r);return w.useCallback(function(...a){return t.current&&t.current(...a)},[t])}const Eu=r=>w.forwardRef((t,a)=>S.jsx("div",{...t,ref:a,className:Oe(t.className,r)}));function TS(){return w.useState(null)}function s3(r){const t=w.useRef(r);return w.useEffect(()=>{t.current=r},[r]),t}function wn(r){const t=s3(r);return w.useCallback(function(...a){return t.current&&t.current(...a)},[t])}function ix(){const r=w.useRef(!0),t=w.useRef(()=>r.current);return w.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),t.current}function u3(r){const t=w.useRef(null);return w.useEffect(()=>{t.current=r}),t.current}const c3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",f3=typeof document<"u",CS=f3||c3?w.useLayoutEffect:w.useEffect,d3=["as","disabled"];function h3(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function p3(r){return!r||r.trim()==="#"}function sm({tagName:r,disabled:t,href:a,target:l,rel:o,role:u,onClick:c,tabIndex:d=0,type:h}){r||(a!=null||l!=null||o!=null?r="a":r="button");const p={tagName:r};if(r==="button")return[{type:h||"button",disabled:t},p];const g=x=>{if((t||r==="a"&&p3(a))&&x.preventDefault(),t){x.stopPropagation();return}c==null||c(x)},v=x=>{x.key===" "&&(x.preventDefault(),g(x))};return r==="a"&&(a||(a="#"),t&&(a=void 0)),[{role:u??"button",disabled:void 0,tabIndex:t?void 0:d,href:a,target:r==="a"?l:void 0,"aria-disabled":t||void 0,rel:r==="a"?o:void 0,onClick:g,onKeyDown:v},p]}const lx=w.forwardRef((r,t)=>{let{as:a,disabled:l}=r,o=h3(r,d3);const[u,{tagName:c}]=sm(Object.assign({tagName:a,disabled:l},o));return S.jsx(c,Object.assign({},o,u,{ref:t}))});lx.displayName="Button";const m3=["onKeyDown"];function g3(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function v3(r){return!r||r.trim()==="#"}const ox=w.forwardRef((r,t)=>{let{onKeyDown:a}=r,l=g3(r,m3);const[o]=sm(Object.assign({tagName:"a"},l)),u=wn(c=>{o.onKeyDown(c),a==null||a(c)});return v3(l.href)||l.role==="button"?S.jsx("a",Object.assign({ref:t},l,o,{onKeyDown:u})):S.jsx("a",Object.assign({ref:t},l,{onKeyDown:a}))});ox.displayName="Anchor";const y3={[Xn]:"show",[sa]:"show"},ua=w.forwardRef(({className:r,children:t,transitionClasses:a={},onEnter:l,...o},u)=>{const c={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},d=w.useCallback((h,p)=>{i3(h),l==null||l(h,p)},[l]);return S.jsx(om,{ref:u,addEndListener:ax,...c,onEnter:d,childRef:Bi(t),children:(h,p)=>w.cloneElement(t,{...p,className:Oe("fade",r,t.props.className,y3[h],a[h])})})});ua.displayName="Fade";const b3={"aria-label":Pt.string,onClick:Pt.func,variant:Pt.oneOf(["white"])},um=w.forwardRef(({className:r,variant:t,"aria-label":a="Close",...l},o)=>S.jsx("button",{ref:o,type:"button",className:Oe("btn-close",t&&`btn-close-${t}`,r),"aria-label":a,...l}));um.displayName="CloseButton";um.propTypes=b3;const Ii=w.forwardRef(({bsPrefix:r,bg:t="primary",pill:a=!1,text:l,className:o,as:u="span",...c},d)=>{const h=Ce(r,"badge");return S.jsx(u,{ref:d,...c,className:Oe(o,h,a&&"rounded-pill",l&&`text-${l}`,t&&`bg-${t}`)})});Ii.displayName="Badge";const Qt=w.forwardRef(({as:r,bsPrefix:t,variant:a="primary",size:l,active:o=!1,disabled:u=!1,className:c,...d},h)=>{const p=Ce(t,"btn"),[g,{tagName:v}]=sm({tagName:r,disabled:u,...d}),x=v;return S.jsx(x,{...g,...d,ref:h,disabled:u,className:Oe(c,p,o&&"active",a&&`${p}-${a}`,l&&`${p}-${l}`,d.href&&u&&"disabled")})});Qt.displayName="Button";const sx=w.forwardRef(({bsPrefix:r,size:t,vertical:a=!1,className:l,role:o="group",as:u="div",...c},d)=>{const h=Ce(r,"btn-group");let p=h;return a&&(p=`${h}-vertical`),S.jsx(u,{...c,ref:d,role:o,className:Oe(l,p,t&&`${h}-${t}`)})});sx.displayName="ButtonGroup";const cm=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"card-body"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));cm.displayName="CardBody";const ux=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"card-footer"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));ux.displayName="CardFooter";const fm=w.createContext(null);fm.displayName="CardHeaderContext";const cx=w.forwardRef(({bsPrefix:r,className:t,as:a="div",...l},o)=>{const u=Ce(r,"card-header"),c=w.useMemo(()=>({cardHeaderBsPrefix:u}),[u]);return S.jsx(fm.Provider,{value:c,children:S.jsx(a,{ref:o,...l,className:Oe(t,u)})})});cx.displayName="CardHeader";const fx=w.forwardRef(({bsPrefix:r,className:t,variant:a,as:l="img",...o},u)=>{const c=Ce(r,"card-img");return S.jsx(l,{ref:u,className:Oe(a?`${c}-${a}`:c,t),...o})});fx.displayName="CardImg";const dx=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"card-img-overlay"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));dx.displayName="CardImgOverlay";const hx=w.forwardRef(({className:r,bsPrefix:t,as:a="a",...l},o)=>(t=Ce(t,"card-link"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));hx.displayName="CardLink";const S3=Eu("h6"),px=w.forwardRef(({className:r,bsPrefix:t,as:a=S3,...l},o)=>(t=Ce(t,"card-subtitle"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));px.displayName="CardSubtitle";const mx=w.forwardRef(({className:r,bsPrefix:t,as:a="p",...l},o)=>(t=Ce(t,"card-text"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));mx.displayName="CardText";const w3=Eu("h5"),gx=w.forwardRef(({className:r,bsPrefix:t,as:a=w3,...l},o)=>(t=Ce(t,"card-title"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));gx.displayName="CardTitle";const vx=w.forwardRef(({bsPrefix:r,className:t,bg:a,text:l,border:o,body:u=!1,children:c,as:d="div",...h},p)=>{const g=Ce(r,"card");return S.jsx(d,{ref:p,...h,className:Oe(t,g,a&&`bg-${a}`,l&&`text-${l}`,o&&`border-${o}`),children:u?S.jsx(cm,{children:c}):c})});vx.displayName="Card";const it=Object.assign(vx,{Img:fx,Title:gx,Subtitle:px,Body:cm,Link:hx,Text:mx,Header:cx,Footer:ux,ImgOverlay:dx});function x3(){const r=w.useRef(!0),t=w.useRef(()=>r.current);return w.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),t.current}function O3(r){const t=w.useRef(r);return t.current=r,t}function yx(r){const t=O3(r);w.useEffect(()=>()=>t.current(),[])}const Ap=2**31-1;function bx(r,t,a){const l=a-Date.now();r.current=l<=Ap?setTimeout(t,l):setTimeout(()=>bx(r,t,a),Ap)}function E3(){const r=x3(),t=w.useRef();return yx(()=>clearTimeout(t.current)),w.useMemo(()=>{const a=()=>clearTimeout(t.current);function l(o,u=0){r()&&(a(),u<=Ap?t.current=setTimeout(o,u):bx(t,o,Date.now()+u))}return{set:l,clear:a,handleRef:t}},[])}function T3(r,t){return w.Children.toArray(r).some(a=>w.isValidElement(a)&&a.type===t)}function C3({as:r,bsPrefix:t,className:a,...l}){t=Ce(t,"col");const o=am(),u=im(),c=[],d=[];return o.forEach(h=>{const p=l[h];delete l[h];let g,v,x;typeof p=="object"&&p!=null?{span:g,offset:v,order:x}=p:g=p;const T=h!==u?`-${h}`:"";g&&c.push(g===!0?`${t}${T}`:`${t}${T}-${g}`),x!=null&&d.push(`order${T}-${x}`),v!=null&&d.push(`offset${T}-${v}`)}),[{...l,className:Oe(a,...c,...d)},{as:r,bsPrefix:t,spans:c}]}const lt=w.forwardRef((r,t)=>{const[{className:a,...l},{as:o="div",bsPrefix:u,spans:c}]=C3(r);return S.jsx(o,{...l,ref:t,className:Oe(a,!c.length&&u)})});lt.displayName="Col";const On=w.forwardRef(({bsPrefix:r,fluid:t=!1,as:a="div",className:l,...o},u)=>{const c=Ce(r,"container"),d=typeof t=="string"?`-${t}`:"-fluid";return S.jsx(a,{ref:u,...o,className:Oe(l,t?`${c}${d}`:c)})});On.displayName="Container";var R3=Function.prototype.bind.call(Function.prototype.call,[].slice);function La(r,t){return R3(r.querySelectorAll(t))}function _3(r,t,a){const l=w.useRef(r!==void 0),[o,u]=w.useState(t),c=r!==void 0,d=l.current;return l.current=c,!c&&d&&o!==t&&u(t),[c?r:o,w.useCallback((...h)=>{const[p,...g]=h;let v=a==null?void 0:a(p,...g);return u(p),v},[a])]}function j3(){const[,r]=w.useReducer(t=>t+1,0);return r}var RS=Object.prototype.hasOwnProperty;function _S(r,t,a){for(a of r.keys())if(to(a,t))return a}function to(r,t){var a,l,o;if(r===t)return!0;if(r&&t&&(a=r.constructor)===t.constructor){if(a===Date)return r.getTime()===t.getTime();if(a===RegExp)return r.toString()===t.toString();if(a===Array){if((l=r.length)===t.length)for(;l--&&to(r[l],t[l]););return l===-1}if(a===Set){if(r.size!==t.size)return!1;for(l of r)if(o=l,o&&typeof o=="object"&&(o=_S(t,o),!o)||!t.has(o))return!1;return!0}if(a===Map){if(r.size!==t.size)return!1;for(l of r)if(o=l[0],o&&typeof o=="object"&&(o=_S(t,o),!o)||!to(l[1],t.get(o)))return!1;return!0}if(a===ArrayBuffer)r=new Uint8Array(r),t=new Uint8Array(t);else if(a===DataView){if((l=r.byteLength)===t.byteLength)for(;l--&&r.getInt8(l)===t.getInt8(l););return l===-1}if(ArrayBuffer.isView(r)){if((l=r.byteLength)===t.byteLength)for(;l--&&r[l]===t[l];);return l===-1}if(!a||typeof r=="object"){l=0;for(a in r)if(RS.call(r,a)&&++l&&!RS.call(t,a)||!(a in t)||!to(r[a],t[a]))return!1;return Object.keys(t).length===l}}return r!==r&&t!==t}function A3(r){const t=ix();return[r[0],w.useCallback(a=>{if(t())return r[1](a)},[t,r[1]])]}var Zt="top",En="bottom",Tn="right",Kt="left",dm="auto",_o=[Zt,En,Tn,Kt],Ri="start",oo="end",M3="clippingParents",Sx="viewport",Ul="popper",N3="reference",jS=_o.reduce(function(r,t){return r.concat([t+"-"+Ri,t+"-"+oo])},[]),wx=[].concat(_o,[dm]).reduce(function(r,t){return r.concat([t,t+"-"+Ri,t+"-"+oo])},[]),D3="beforeRead",L3="read",z3="afterRead",P3="beforeMain",H3="main",k3="afterMain",B3="beforeWrite",$3="write",I3="afterWrite",q3=[D3,L3,z3,P3,H3,k3,B3,$3,I3];function Qn(r){return r.split("-")[0]}function sn(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var t=r.ownerDocument;return t&&t.defaultView||window}return r}function Ia(r){var t=sn(r).Element;return r instanceof t||r instanceof Element}function Zn(r){var t=sn(r).HTMLElement;return r instanceof t||r instanceof HTMLElement}function hm(r){if(typeof ShadowRoot>"u")return!1;var t=sn(r).ShadowRoot;return r instanceof t||r instanceof ShadowRoot}var Ba=Math.max,uu=Math.min,_i=Math.round;function Mp(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xx(){return!/^((?!chrome|android).)*safari/i.test(Mp())}function ji(r,t,a){t===void 0&&(t=!1),a===void 0&&(a=!1);var l=r.getBoundingClientRect(),o=1,u=1;t&&Zn(r)&&(o=r.offsetWidth>0&&_i(l.width)/r.offsetWidth||1,u=r.offsetHeight>0&&_i(l.height)/r.offsetHeight||1);var c=Ia(r)?sn(r):window,d=c.visualViewport,h=!xx()&&a,p=(l.left+(h&&d?d.offsetLeft:0))/o,g=(l.top+(h&&d?d.offsetTop:0))/u,v=l.width/o,x=l.height/u;return{width:v,height:x,top:g,right:p+v,bottom:g+x,left:p,x:p,y:g}}function pm(r){var t=ji(r),a=r.offsetWidth,l=r.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:r.offsetLeft,y:r.offsetTop,width:a,height:l}}function Ox(r,t){var a=t.getRootNode&&t.getRootNode();if(r.contains(t))return!0;if(a&&hm(a)){var l=t;do{if(l&&r.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function ca(r){return r?(r.nodeName||"").toLowerCase():null}function Rr(r){return sn(r).getComputedStyle(r)}function U3(r){return["table","td","th"].indexOf(ca(r))>=0}function da(r){return((Ia(r)?r.ownerDocument:r.document)||window.document).documentElement}function Tu(r){return ca(r)==="html"?r:r.assignedSlot||r.parentNode||(hm(r)?r.host:null)||da(r)}function AS(r){return!Zn(r)||Rr(r).position==="fixed"?null:r.offsetParent}function G3(r){var t=/firefox/i.test(Mp()),a=/Trident/i.test(Mp());if(a&&Zn(r)){var l=Rr(r);if(l.position==="fixed")return null}var o=Tu(r);for(hm(o)&&(o=o.host);Zn(o)&&["html","body"].indexOf(ca(o))<0;){var u=Rr(o);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return o;o=o.parentNode}return null}function jo(r){for(var t=sn(r),a=AS(r);a&&U3(a)&&Rr(a).position==="static";)a=AS(a);return a&&(ca(a)==="html"||ca(a)==="body"&&Rr(a).position==="static")?t:a||G3(r)||t}function mm(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function no(r,t,a){return Ba(r,uu(t,a))}function V3(r,t,a){var l=no(r,t,a);return l>a?a:l}function Ex(){return{top:0,right:0,bottom:0,left:0}}function Tx(r){return Object.assign({},Ex(),r)}function Cx(r,t){return t.reduce(function(a,l){return a[l]=r,a},{})}var W3=function(t,a){return t=typeof t=="function"?t(Object.assign({},a.rects,{placement:a.placement})):t,Tx(typeof t!="number"?t:Cx(t,_o))};function Y3(r){var t,a=r.state,l=r.name,o=r.options,u=a.elements.arrow,c=a.modifiersData.popperOffsets,d=Qn(a.placement),h=mm(d),p=[Kt,Tn].indexOf(d)>=0,g=p?"height":"width";if(!(!u||!c)){var v=W3(o.padding,a),x=pm(u),T=h==="y"?Zt:Kt,N=h==="y"?En:Tn,_=a.rects.reference[g]+a.rects.reference[h]-c[h]-a.rects.popper[g],z=c[h]-a.rects.reference[h],$=jo(u),V=$?h==="y"?$.clientHeight||0:$.clientWidth||0:0,I=_/2-z/2,Q=v[T],j=V-x[g]-v[N],M=V/2-x[g]/2+I,P=no(Q,M,j),F=h;a.modifiersData[l]=(t={},t[F]=P,t.centerOffset=P-M,t)}}function X3(r){var t=r.state,a=r.options,l=a.element,o=l===void 0?"[data-popper-arrow]":l;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Ox(t.elements.popper,o)&&(t.elements.arrow=o))}const F3={name:"arrow",enabled:!0,phase:"main",fn:Y3,effect:X3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ai(r){return r.split("-")[1]}var Q3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z3(r,t){var a=r.x,l=r.y,o=t.devicePixelRatio||1;return{x:_i(a*o)/o||0,y:_i(l*o)/o||0}}function MS(r){var t,a=r.popper,l=r.popperRect,o=r.placement,u=r.variation,c=r.offsets,d=r.position,h=r.gpuAcceleration,p=r.adaptive,g=r.roundOffsets,v=r.isFixed,x=c.x,T=x===void 0?0:x,N=c.y,_=N===void 0?0:N,z=typeof g=="function"?g({x:T,y:_}):{x:T,y:_};T=z.x,_=z.y;var $=c.hasOwnProperty("x"),V=c.hasOwnProperty("y"),I=Kt,Q=Zt,j=window;if(p){var M=jo(a),P="clientHeight",F="clientWidth";if(M===sn(a)&&(M=da(a),Rr(M).position!=="static"&&d==="absolute"&&(P="scrollHeight",F="scrollWidth")),M=M,o===Zt||(o===Kt||o===Tn)&&u===oo){Q=En;var D=v&&M===j&&j.visualViewport?j.visualViewport.height:M[P];_-=D-l.height,_*=h?1:-1}if(o===Kt||(o===Zt||o===En)&&u===oo){I=Tn;var E=v&&M===j&&j.visualViewport?j.visualViewport.width:M[F];T-=E-l.width,T*=h?1:-1}}var X=Object.assign({position:d},p&&Q3),B=g===!0?Z3({x:T,y:_},sn(a)):{x:T,y:_};if(T=B.x,_=B.y,h){var q;return Object.assign({},X,(q={},q[Q]=V?"0":"",q[I]=$?"0":"",q.transform=(j.devicePixelRatio||1)<=1?"translate("+T+"px, "+_+"px)":"translate3d("+T+"px, "+_+"px, 0)",q))}return Object.assign({},X,(t={},t[Q]=V?_+"px":"",t[I]=$?T+"px":"",t.transform="",t))}function K3(r){var t=r.state,a=r.options,l=a.gpuAcceleration,o=l===void 0?!0:l,u=a.adaptive,c=u===void 0?!0:u,d=a.roundOffsets,h=d===void 0?!0:d,p={placement:Qn(t.placement),variation:Ai(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,MS(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,MS(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const J3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:K3,data:{}};var Zs={passive:!0};function ej(r){var t=r.state,a=r.instance,l=r.options,o=l.scroll,u=o===void 0?!0:o,c=l.resize,d=c===void 0?!0:c,h=sn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&p.forEach(function(g){g.addEventListener("scroll",a.update,Zs)}),d&&h.addEventListener("resize",a.update,Zs),function(){u&&p.forEach(function(g){g.removeEventListener("scroll",a.update,Zs)}),d&&h.removeEventListener("resize",a.update,Zs)}}const tj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ej,data:{}};var nj={left:"right",right:"left",bottom:"top",top:"bottom"};function ru(r){return r.replace(/left|right|bottom|top/g,function(t){return nj[t]})}var rj={start:"end",end:"start"};function NS(r){return r.replace(/start|end/g,function(t){return rj[t]})}function gm(r){var t=sn(r),a=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:a,scrollTop:l}}function vm(r){return ji(da(r)).left+gm(r).scrollLeft}function aj(r,t){var a=sn(r),l=da(r),o=a.visualViewport,u=l.clientWidth,c=l.clientHeight,d=0,h=0;if(o){u=o.width,c=o.height;var p=xx();(p||!p&&t==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}return{width:u,height:c,x:d+vm(r),y:h}}function ij(r){var t,a=da(r),l=gm(r),o=(t=r.ownerDocument)==null?void 0:t.body,u=Ba(a.scrollWidth,a.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Ba(a.scrollHeight,a.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-l.scrollLeft+vm(r),h=-l.scrollTop;return Rr(o||a).direction==="rtl"&&(d+=Ba(a.clientWidth,o?o.clientWidth:0)-u),{width:u,height:c,x:d,y:h}}function ym(r){var t=Rr(r),a=t.overflow,l=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+o+l)}function Rx(r){return["html","body","#document"].indexOf(ca(r))>=0?r.ownerDocument.body:Zn(r)&&ym(r)?r:Rx(Tu(r))}function ro(r,t){var a;t===void 0&&(t=[]);var l=Rx(r),o=l===((a=r.ownerDocument)==null?void 0:a.body),u=sn(l),c=o?[u].concat(u.visualViewport||[],ym(l)?l:[]):l,d=t.concat(c);return o?d:d.concat(ro(Tu(c)))}function Np(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function lj(r,t){var a=ji(r,!1,t==="fixed");return a.top=a.top+r.clientTop,a.left=a.left+r.clientLeft,a.bottom=a.top+r.clientHeight,a.right=a.left+r.clientWidth,a.width=r.clientWidth,a.height=r.clientHeight,a.x=a.left,a.y=a.top,a}function DS(r,t,a){return t===Sx?Np(aj(r,a)):Ia(t)?lj(t,a):Np(ij(da(r)))}function oj(r){var t=ro(Tu(r)),a=["absolute","fixed"].indexOf(Rr(r).position)>=0,l=a&&Zn(r)?jo(r):r;return Ia(l)?t.filter(function(o){return Ia(o)&&Ox(o,l)&&ca(o)!=="body"}):[]}function sj(r,t,a,l){var o=t==="clippingParents"?oj(r):[].concat(t),u=[].concat(o,[a]),c=u[0],d=u.reduce(function(h,p){var g=DS(r,p,l);return h.top=Ba(g.top,h.top),h.right=uu(g.right,h.right),h.bottom=uu(g.bottom,h.bottom),h.left=Ba(g.left,h.left),h},DS(r,c,l));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function _x(r){var t=r.reference,a=r.element,l=r.placement,o=l?Qn(l):null,u=l?Ai(l):null,c=t.x+t.width/2-a.width/2,d=t.y+t.height/2-a.height/2,h;switch(o){case Zt:h={x:c,y:t.y-a.height};break;case En:h={x:c,y:t.y+t.height};break;case Tn:h={x:t.x+t.width,y:d};break;case Kt:h={x:t.x-a.width,y:d};break;default:h={x:t.x,y:t.y}}var p=o?mm(o):null;if(p!=null){var g=p==="y"?"height":"width";switch(u){case Ri:h[p]=h[p]-(t[g]/2-a[g]/2);break;case oo:h[p]=h[p]+(t[g]/2-a[g]/2);break}}return h}function so(r,t){t===void 0&&(t={});var a=t,l=a.placement,o=l===void 0?r.placement:l,u=a.strategy,c=u===void 0?r.strategy:u,d=a.boundary,h=d===void 0?M3:d,p=a.rootBoundary,g=p===void 0?Sx:p,v=a.elementContext,x=v===void 0?Ul:v,T=a.altBoundary,N=T===void 0?!1:T,_=a.padding,z=_===void 0?0:_,$=Tx(typeof z!="number"?z:Cx(z,_o)),V=x===Ul?N3:Ul,I=r.rects.popper,Q=r.elements[N?V:x],j=sj(Ia(Q)?Q:Q.contextElement||da(r.elements.popper),h,g,c),M=ji(r.elements.reference),P=_x({reference:M,element:I,placement:o}),F=Np(Object.assign({},I,P)),D=x===Ul?F:M,E={top:j.top-D.top+$.top,bottom:D.bottom-j.bottom+$.bottom,left:j.left-D.left+$.left,right:D.right-j.right+$.right},X=r.modifiersData.offset;if(x===Ul&&X){var B=X[o];Object.keys(E).forEach(function(q){var k=[Tn,En].indexOf(q)>=0?1:-1,G=[Zt,En].indexOf(q)>=0?"y":"x";E[q]+=B[G]*k})}return E}function uj(r,t){t===void 0&&(t={});var a=t,l=a.placement,o=a.boundary,u=a.rootBoundary,c=a.padding,d=a.flipVariations,h=a.allowedAutoPlacements,p=h===void 0?wx:h,g=Ai(l),v=g?d?jS:jS.filter(function(N){return Ai(N)===g}):_o,x=v.filter(function(N){return p.indexOf(N)>=0});x.length===0&&(x=v);var T=x.reduce(function(N,_){return N[_]=so(r,{placement:_,boundary:o,rootBoundary:u,padding:c})[Qn(_)],N},{});return Object.keys(T).sort(function(N,_){return T[N]-T[_]})}function cj(r){if(Qn(r)===dm)return[];var t=ru(r);return[NS(r),t,NS(t)]}function fj(r){var t=r.state,a=r.options,l=r.name;if(!t.modifiersData[l]._skip){for(var o=a.mainAxis,u=o===void 0?!0:o,c=a.altAxis,d=c===void 0?!0:c,h=a.fallbackPlacements,p=a.padding,g=a.boundary,v=a.rootBoundary,x=a.altBoundary,T=a.flipVariations,N=T===void 0?!0:T,_=a.allowedAutoPlacements,z=t.options.placement,$=Qn(z),V=$===z,I=h||(V||!N?[ru(z)]:cj(z)),Q=[z].concat(I).reduce(function(H,U){return H.concat(Qn(U)===dm?uj(t,{placement:U,boundary:g,rootBoundary:v,padding:p,flipVariations:N,allowedAutoPlacements:_}):U)},[]),j=t.rects.reference,M=t.rects.popper,P=new Map,F=!0,D=Q[0],E=0;E<Q.length;E++){var X=Q[E],B=Qn(X),q=Ai(X)===Ri,k=[Zt,En].indexOf(B)>=0,G=k?"width":"height",L=so(t,{placement:X,boundary:g,rootBoundary:v,altBoundary:x,padding:p}),b=k?q?Tn:Kt:q?En:Zt;j[G]>M[G]&&(b=ru(b));var te=ru(b),R=[];if(u&&R.push(L[B]<=0),d&&R.push(L[b]<=0,L[te]<=0),R.every(function(H){return H})){D=X,F=!1;break}P.set(X,R)}if(F)for(var y=N?3:1,C=function(U){var Z=Q.find(function(re){var ue=P.get(re);if(ue)return ue.slice(0,U).every(function(me){return me})});if(Z)return D=Z,"break"},W=y;W>0;W--){var J=C(W);if(J==="break")break}t.placement!==D&&(t.modifiersData[l]._skip=!0,t.placement=D,t.reset=!0)}}const dj={name:"flip",enabled:!0,phase:"main",fn:fj,requiresIfExists:["offset"],data:{_skip:!1}};function LS(r,t,a){return a===void 0&&(a={x:0,y:0}),{top:r.top-t.height-a.y,right:r.right-t.width+a.x,bottom:r.bottom-t.height+a.y,left:r.left-t.width-a.x}}function zS(r){return[Zt,Tn,En,Kt].some(function(t){return r[t]>=0})}function hj(r){var t=r.state,a=r.name,l=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,c=so(t,{elementContext:"reference"}),d=so(t,{altBoundary:!0}),h=LS(c,l),p=LS(d,o,u),g=zS(h),v=zS(p);t.modifiersData[a]={referenceClippingOffsets:h,popperEscapeOffsets:p,isReferenceHidden:g,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":v})}const pj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hj};function mj(r,t,a){var l=Qn(r),o=[Kt,Zt].indexOf(l)>=0?-1:1,u=typeof a=="function"?a(Object.assign({},t,{placement:r})):a,c=u[0],d=u[1];return c=c||0,d=(d||0)*o,[Kt,Tn].indexOf(l)>=0?{x:d,y:c}:{x:c,y:d}}function gj(r){var t=r.state,a=r.options,l=r.name,o=a.offset,u=o===void 0?[0,0]:o,c=wx.reduce(function(g,v){return g[v]=mj(v,t.rects,u),g},{}),d=c[t.placement],h=d.x,p=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=p),t.modifiersData[l]=c}const vj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gj};function yj(r){var t=r.state,a=r.name;t.modifiersData[a]=_x({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const bj={name:"popperOffsets",enabled:!0,phase:"read",fn:yj,data:{}};function Sj(r){return r==="x"?"y":"x"}function wj(r){var t=r.state,a=r.options,l=r.name,o=a.mainAxis,u=o===void 0?!0:o,c=a.altAxis,d=c===void 0?!1:c,h=a.boundary,p=a.rootBoundary,g=a.altBoundary,v=a.padding,x=a.tether,T=x===void 0?!0:x,N=a.tetherOffset,_=N===void 0?0:N,z=so(t,{boundary:h,rootBoundary:p,padding:v,altBoundary:g}),$=Qn(t.placement),V=Ai(t.placement),I=!V,Q=mm($),j=Sj(Q),M=t.modifiersData.popperOffsets,P=t.rects.reference,F=t.rects.popper,D=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,E=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(M){if(u){var q,k=Q==="y"?Zt:Kt,G=Q==="y"?En:Tn,L=Q==="y"?"height":"width",b=M[Q],te=b+z[k],R=b-z[G],y=T?-F[L]/2:0,C=V===Ri?P[L]:F[L],W=V===Ri?-F[L]:-P[L],J=t.elements.arrow,H=T&&J?pm(J):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ex(),Z=U[k],re=U[G],ue=no(0,P[L],H[L]),me=I?P[L]/2-y-ue-Z-E.mainAxis:C-ue-Z-E.mainAxis,pe=I?-P[L]/2+y+ue+re+E.mainAxis:W+ue+re+E.mainAxis,ve=t.elements.arrow&&jo(t.elements.arrow),he=ve?Q==="y"?ve.clientTop||0:ve.clientLeft||0:0,ge=(q=X==null?void 0:X[Q])!=null?q:0,Se=b+me-ge-he,ye=b+pe-ge,Re=no(T?uu(te,Se):te,b,T?Ba(R,ye):R);M[Q]=Re,B[Q]=Re-b}if(d){var be,Le=Q==="x"?Zt:Kt,Pe=Q==="x"?En:Tn,Te=M[j],ke=j==="y"?"height":"width",ot=Te+z[Le],ft=Te-z[Pe],yt=[Zt,Kt].indexOf($)!==-1,Nt=(be=X==null?void 0:X[j])!=null?be:0,Ae=yt?ot:Te-P[ke]-F[ke]-Nt+E.altAxis,Be=yt?Te+P[ke]+F[ke]-Nt-E.altAxis:ft,nt=T&&yt?V3(Ae,Te,Be):no(T?Ae:ot,Te,T?Be:ft);M[j]=nt,B[j]=nt-Te}t.modifiersData[l]=B}}const xj={name:"preventOverflow",enabled:!0,phase:"main",fn:wj,requiresIfExists:["offset"]};function Oj(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function Ej(r){return r===sn(r)||!Zn(r)?gm(r):Oj(r)}function Tj(r){var t=r.getBoundingClientRect(),a=_i(t.width)/r.offsetWidth||1,l=_i(t.height)/r.offsetHeight||1;return a!==1||l!==1}function Cj(r,t,a){a===void 0&&(a=!1);var l=Zn(t),o=Zn(t)&&Tj(t),u=da(t),c=ji(r,o,a),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(l||!l&&!a)&&((ca(t)!=="body"||ym(u))&&(d=Ej(t)),Zn(t)?(h=ji(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):u&&(h.x=vm(u))),{x:c.left+d.scrollLeft-h.x,y:c.top+d.scrollTop-h.y,width:c.width,height:c.height}}function Rj(r){var t=new Map,a=new Set,l=[];r.forEach(function(u){t.set(u.name,u)});function o(u){a.add(u.name);var c=[].concat(u.requires||[],u.requiresIfExists||[]);c.forEach(function(d){if(!a.has(d)){var h=t.get(d);h&&o(h)}}),l.push(u)}return r.forEach(function(u){a.has(u.name)||o(u)}),l}function _j(r){var t=Rj(r);return q3.reduce(function(a,l){return a.concat(t.filter(function(o){return o.phase===l}))},[])}function jj(r){var t;return function(){return t||(t=new Promise(function(a){Promise.resolve().then(function(){t=void 0,a(r())})})),t}}function Aj(r){var t=r.reduce(function(a,l){var o=a[l.name];return a[l.name]=o?Object.assign({},o,l,{options:Object.assign({},o.options,l.options),data:Object.assign({},o.data,l.data)}):l,a},{});return Object.keys(t).map(function(a){return t[a]})}var PS={placement:"bottom",modifiers:[],strategy:"absolute"};function HS(){for(var r=arguments.length,t=new Array(r),a=0;a<r;a++)t[a]=arguments[a];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Mj(r){r===void 0&&(r={});var t=r,a=t.defaultModifiers,l=a===void 0?[]:a,o=t.defaultOptions,u=o===void 0?PS:o;return function(d,h,p){p===void 0&&(p=u);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},PS,u),modifiersData:{},elements:{reference:d,popper:h},attributes:{},styles:{}},v=[],x=!1,T={state:g,setOptions:function($){var V=typeof $=="function"?$(g.options):$;_(),g.options=Object.assign({},u,g.options,V),g.scrollParents={reference:Ia(d)?ro(d):d.contextElement?ro(d.contextElement):[],popper:ro(h)};var I=_j(Aj([].concat(l,g.options.modifiers)));return g.orderedModifiers=I.filter(function(Q){return Q.enabled}),N(),T.update()},forceUpdate:function(){if(!x){var $=g.elements,V=$.reference,I=$.popper;if(HS(V,I)){g.rects={reference:Cj(V,jo(I),g.options.strategy==="fixed"),popper:pm(I)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(E){return g.modifiersData[E.name]=Object.assign({},E.data)});for(var Q=0;Q<g.orderedModifiers.length;Q++){if(g.reset===!0){g.reset=!1,Q=-1;continue}var j=g.orderedModifiers[Q],M=j.fn,P=j.options,F=P===void 0?{}:P,D=j.name;typeof M=="function"&&(g=M({state:g,options:F,name:D,instance:T})||g)}}}},update:jj(function(){return new Promise(function(z){T.forceUpdate(),z(g)})}),destroy:function(){_(),x=!0}};if(!HS(d,h))return T;T.setOptions(p).then(function(z){!x&&p.onFirstUpdate&&p.onFirstUpdate(z)});function N(){g.orderedModifiers.forEach(function(z){var $=z.name,V=z.options,I=V===void 0?{}:V,Q=z.effect;if(typeof Q=="function"){var j=Q({state:g,name:$,instance:T,options:I}),M=function(){};v.push(j||M)}})}function _(){v.forEach(function(z){return z()}),v=[]}return T}}const Nj=Mj({defaultModifiers:[pj,bj,J3,tj,vj,dj,xj,F3]}),Dj=["enabled","placement","strategy","modifiers"];function Lj(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}const zj={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Pj={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:r})=>()=>{const{reference:t,popper:a}=r.elements;if("removeAttribute"in t){const l=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==a.id);l.length?t.setAttribute("aria-describedby",l.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:r})=>{var t;const{popper:a,reference:l}=r.elements,o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();if(a.id&&o==="tooltip"&&"setAttribute"in l){const u=l.getAttribute("aria-describedby");if(u&&u.split(",").indexOf(a.id)!==-1)return;l.setAttribute("aria-describedby",u?`${u},${a.id}`:a.id)}}},Hj=[];function kj(r,t,a={}){let{enabled:l=!0,placement:o="bottom",strategy:u="absolute",modifiers:c=Hj}=a,d=Lj(a,Dj);const h=w.useRef(c),p=w.useRef(),g=w.useCallback(()=>{var z;(z=p.current)==null||z.update()},[]),v=w.useCallback(()=>{var z;(z=p.current)==null||z.forceUpdate()},[]),[x,T]=A3(w.useState({placement:o,update:g,forceUpdate:v,attributes:{},styles:{popper:{},arrow:{}}})),N=w.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:z})=>{const $={},V={};Object.keys(z.elements).forEach(I=>{$[I]=z.styles[I],V[I]=z.attributes[I]}),T({state:z,styles:$,attributes:V,update:g,forceUpdate:v,placement:z.placement})}}),[g,v,T]),_=w.useMemo(()=>(to(h.current,c)||(h.current=c),h.current),[c]);return w.useEffect(()=>{!p.current||!l||p.current.setOptions({placement:o,strategy:u,modifiers:[..._,N,zj]})},[u,o,N,l,_]),w.useEffect(()=>{if(!(!l||r==null||t==null))return p.current=Nj(r,t,Object.assign({},d,{placement:o,strategy:u,modifiers:[..._,Pj,N]})),()=>{p.current!=null&&(p.current.destroy(),p.current=void 0,T(z=>Object.assign({},z,{attributes:{},styles:{popper:{}}})))}},[l,r,t]),x}function uo(r,t){if(r.contains)return r.contains(t);if(r.compareDocumentPosition)return r===t||!!(r.compareDocumentPosition(t)&16)}var kh,kS;function Bj(){if(kS)return kh;kS=1;var r=function(){};return kh=r,kh}var $j=Bj();const Ij=Jn($j),BS=()=>{};function qj(r){return r.button===0}function Uj(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}const au=r=>r&&("current"in r?r.current:r),$S={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Gj(r,t=BS,{disabled:a,clickTrigger:l="click"}={}){const o=w.useRef(!1),u=w.useRef(!1),c=w.useCallback(p=>{const g=au(r);Ij(!!g,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!g||Uj(p)||!qj(p)||!!uo(g,p.target)||u.current,u.current=!1},[r]),d=wn(p=>{const g=au(r);g&&uo(g,p.target)?u.current=!0:u.current=!1}),h=wn(p=>{o.current||t(p)});w.useEffect(()=>{var p,g;if(a||r==null)return;const v=ki(au(r)),x=v.defaultView||window;let T=(p=x.event)!=null?p:(g=x.parent)==null?void 0:g.event,N=null;$S[l]&&(N=Or(v,$S[l],d,!0));const _=Or(v,l,c,!0),z=Or(v,l,V=>{if(V===T){T=void 0;return}h(V)});let $=[];return"ontouchstart"in v.documentElement&&($=[].slice.call(v.body.children).map(V=>Or(V,"mousemove",BS))),()=>{N==null||N(),_(),z(),$.forEach(V=>V())}},[r,a,l,c,d,h])}function Vj(r){const t={};return Array.isArray(r)?(r==null||r.forEach(a=>{t[a.name]=a}),t):r||t}function Wj(r={}){return Array.isArray(r)?r:Object.keys(r).map(t=>(r[t].name=t,r[t]))}function Yj({enabled:r,enableEvents:t,placement:a,flip:l,offset:o,fixed:u,containerPadding:c,arrowElement:d,popperConfig:h={}}){var p,g,v,x;const T=Vj(h.modifiers);return Object.assign({},h,{placement:a,enabled:r,strategy:u?"fixed":h.strategy,modifiers:Wj(Object.assign({},T,{eventListeners:{enabled:t,options:(p=T.eventListeners)==null?void 0:p.options},preventOverflow:Object.assign({},T.preventOverflow,{options:Object.assign({padding:c},(g=T.preventOverflow)==null?void 0:g.options)}),offset:{options:Object.assign({offset:o},(v=T.offset)==null?void 0:v.options)},arrow:Object.assign({},T.arrow,{enabled:!!d,options:Object.assign({},(x=T.arrow)==null?void 0:x.options,{element:d})}),flip:Object.assign({enabled:!!l},T.flip)}))})}const jx={prefix:String(Math.round(Math.random()*1e10)),current:0},Ax=Ft.createContext(jx),Xj=Ft.createContext(!1);let Bh=new WeakMap;function Fj(r=!1){let t=w.useContext(Ax),a=w.useRef(null);if(a.current===null&&!r){var l,o;let u=(o=Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(l=o.ReactCurrentOwner)===null||l===void 0?void 0:l.current;if(u){let c=Bh.get(u);c==null?Bh.set(u,{id:t.current,state:u.memoizedState}):u.memoizedState!==c.state&&(t.current=c.id,Bh.delete(u))}a.current=++t.current}return a.current}function Qj(r){let t=w.useContext(Ax),a=Fj(!!r),l=`react-aria${t.prefix}`;return r||`${l}-${a}`}function Zj(r){let t=Ft.useId(),[a]=w.useState(nA()),l=a?"react-aria":`react-aria${jx.prefix}`;return r||`${l}-${t}`}const Kj=typeof Ft.useId=="function"?Zj:Qj;function Jj(){return!1}function eA(){return!0}function tA(r){return()=>{}}function nA(){return typeof Ft.useSyncExternalStore=="function"?Ft.useSyncExternalStore(tA,Jj,eA):w.useContext(Xj)}const Mi=w.createContext(null),co=(r,t=null)=>r!=null?String(r):t||null,bm=w.createContext(null);bm.displayName="NavContext";const rA="data-rr-ui-",aA="rrUi";function Cu(r){return`${rA}${r}`}function iA(r){return`${aA}${r}`}const Mx=w.createContext($i?window:void 0);Mx.Provider;function Sm(){return w.useContext(Mx)}const lA=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",oA=typeof document<"u",Nx=oA||lA?w.useLayoutEffect:w.useEffect,Dx=w.createContext(null);Dx.displayName="InputGroupContext";const Lx=w.createContext(null);Lx.displayName="NavbarContext";const sA={type:Pt.string,tooltip:Pt.bool,as:Pt.elementType},Ru=w.forwardRef(({as:r="div",className:t,type:a="valid",tooltip:l=!1,...o},u)=>S.jsx(r,{...o,ref:u,className:Oe(t,`${a}-${l?"tooltip":"feedback"}`)}));Ru.displayName="Feedback";Ru.propTypes=sA;const _r=w.createContext({}),Ao=w.forwardRef(({id:r,bsPrefix:t,className:a,type:l="checkbox",isValid:o=!1,isInvalid:u=!1,as:c="input",...d},h)=>{const{controlId:p}=w.useContext(_r);return t=Ce(t,"form-check-input"),S.jsx(c,{...d,ref:h,type:l,id:r||p,className:Oe(a,t,o&&"is-valid",u&&"is-invalid")})});Ao.displayName="FormCheckInput";const cu=w.forwardRef(({bsPrefix:r,className:t,htmlFor:a,...l},o)=>{const{controlId:u}=w.useContext(_r);return r=Ce(r,"form-check-label"),S.jsx("label",{...l,ref:o,htmlFor:a||u,className:Oe(t,r)})});cu.displayName="FormCheckLabel";const zx=w.forwardRef(({id:r,bsPrefix:t,bsSwitchPrefix:a,inline:l=!1,reverse:o=!1,disabled:u=!1,isValid:c=!1,isInvalid:d=!1,feedbackTooltip:h=!1,feedback:p,feedbackType:g,className:v,style:x,title:T="",type:N="checkbox",label:_,children:z,as:$="input",...V},I)=>{t=Ce(t,"form-check"),a=Ce(a,"form-switch");const{controlId:Q}=w.useContext(_r),j=w.useMemo(()=>({controlId:r||Q}),[Q,r]),M=!z&&_!=null&&_!==!1||T3(z,cu),P=S.jsx(Ao,{...V,type:N==="switch"?"checkbox":N,ref:I,isValid:c,isInvalid:d,disabled:u,as:$});return S.jsx(_r.Provider,{value:j,children:S.jsx("div",{style:x,className:Oe(v,M&&t,l&&`${t}-inline`,o&&`${t}-reverse`,N==="switch"&&a),children:z||S.jsxs(S.Fragment,{children:[P,M&&S.jsx(cu,{title:T,children:_}),p&&S.jsx(Ru,{type:g,tooltip:h,children:p})]})})})});zx.displayName="FormCheck";const fu=Object.assign(zx,{Input:Ao,Label:cu}),Px=w.forwardRef(({bsPrefix:r,type:t,size:a,htmlSize:l,id:o,className:u,isValid:c=!1,isInvalid:d=!1,plaintext:h,readOnly:p,as:g="input",...v},x)=>{const{controlId:T}=w.useContext(_r);return r=Ce(r,"form-control"),S.jsx(g,{...v,type:t,size:l,ref:x,readOnly:p,id:o||T,className:Oe(u,h?`${r}-plaintext`:r,a&&`${r}-${a}`,t==="color"&&`${r}-color`,c&&"is-valid",d&&"is-invalid")})});Px.displayName="FormControl";const uA=Object.assign(Px,{Feedback:Ru}),Hx=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"form-floating"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));Hx.displayName="FormFloating";const wm=w.forwardRef(({controlId:r,as:t="div",...a},l)=>{const o=w.useMemo(()=>({controlId:r}),[r]);return S.jsx(_r.Provider,{value:o,children:S.jsx(t,{...a,ref:l})})});wm.displayName="FormGroup";const kx=w.forwardRef(({as:r="label",bsPrefix:t,column:a=!1,visuallyHidden:l=!1,className:o,htmlFor:u,...c},d)=>{const{controlId:h}=w.useContext(_r);t=Ce(t,"form-label");let p="col-form-label";typeof a=="string"&&(p=`${p} ${p}-${a}`);const g=Oe(o,t,l&&"visually-hidden",a&&p);return u=u||h,a?S.jsx(lt,{ref:d,as:"label",className:g,htmlFor:u,...c}):S.jsx(r,{ref:d,className:g,htmlFor:u,...c})});kx.displayName="FormLabel";const Bx=w.forwardRef(({bsPrefix:r,className:t,id:a,...l},o)=>{const{controlId:u}=w.useContext(_r);return r=Ce(r,"form-range"),S.jsx("input",{...l,type:"range",ref:o,className:Oe(t,r),id:a||u})});Bx.displayName="FormRange";const $x=w.forwardRef(({bsPrefix:r,size:t,htmlSize:a,className:l,isValid:o=!1,isInvalid:u=!1,id:c,...d},h)=>{const{controlId:p}=w.useContext(_r);return r=Ce(r,"form-select"),S.jsx("select",{...d,size:a,ref:h,className:Oe(l,r,t&&`${r}-${t}`,o&&"is-valid",u&&"is-invalid"),id:c||p})});$x.displayName="FormSelect";const Ix=w.forwardRef(({bsPrefix:r,className:t,as:a="small",muted:l,...o},u)=>(r=Ce(r,"form-text"),S.jsx(a,{...o,ref:u,className:Oe(t,r,l&&"text-muted")})));Ix.displayName="FormText";const qx=w.forwardRef((r,t)=>S.jsx(fu,{...r,ref:t,type:"switch"}));qx.displayName="Switch";const cA=Object.assign(qx,{Input:fu.Input,Label:fu.Label}),Ux=w.forwardRef(({bsPrefix:r,className:t,children:a,controlId:l,label:o,...u},c)=>(r=Ce(r,"form-floating"),S.jsxs(wm,{ref:c,className:Oe(t,r),controlId:l,...u,children:[a,S.jsx("label",{htmlFor:l,children:o})]})));Ux.displayName="FloatingLabel";const fA={_ref:Pt.any,validated:Pt.bool,as:Pt.elementType},xm=w.forwardRef(({className:r,validated:t,as:a="form",...l},o)=>S.jsx(a,{...l,ref:o,className:Oe(r,t&&"was-validated")}));xm.displayName="Form";xm.propTypes=fA;const Mt=Object.assign(xm,{Group:wm,Control:uA,Floating:Hx,Check:fu,Switch:cA,Label:kx,Text:Ix,Range:Bx,Select:$x,FloatingLabel:Ux}),_u=w.forwardRef(({className:r,bsPrefix:t,as:a="span",...l},o)=>(t=Ce(t,"input-group-text"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));_u.displayName="InputGroupText";const dA=r=>S.jsx(_u,{children:S.jsx(Ao,{type:"checkbox",...r})}),hA=r=>S.jsx(_u,{children:S.jsx(Ao,{type:"radio",...r})}),Gx=w.forwardRef(({bsPrefix:r,size:t,hasValidation:a,className:l,as:o="div",...u},c)=>{r=Ce(r,"input-group");const d=w.useMemo(()=>({}),[]);return S.jsx(Dx.Provider,{value:d,children:S.jsx(o,{ref:c,...u,className:Oe(l,r,t&&`${r}-${t}`,a&&"has-validation")})})});Gx.displayName="InputGroup";const Vx=Object.assign(Gx,{Text:_u,Radio:hA,Checkbox:dA}),IS=r=>!r||typeof r=="function"?r:t=>{r.current=t};function pA(r,t){const a=IS(r),l=IS(t);return o=>{a&&a(o),l&&l(o)}}function Mo(r,t){return w.useMemo(()=>pA(r,t),[r,t])}const qi=w.createContext(null),mA=["as","active","eventKey"];function gA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function Wx({key:r,onClick:t,active:a,id:l,role:o,disabled:u}){const c=w.useContext(Mi),d=w.useContext(bm),h=w.useContext(qi);let p=a;const g={role:o};if(d){!o&&d.role==="tablist"&&(g.role="tab");const v=d.getControllerId(r??null),x=d.getControlledId(r??null);g[Cu("event-key")]=r,g.id=v||l,p=a==null&&r!=null?d.activeKey===r:a,(p||!(h!=null&&h.unmountOnExit)&&!(h!=null&&h.mountOnEnter))&&(g["aria-controls"]=x)}return g.role==="tab"&&(g["aria-selected"]=p,p||(g.tabIndex=-1),u&&(g.tabIndex=-1,g["aria-disabled"]=!0)),g.onClick=wn(v=>{u||(t==null||t(v),r!=null&&c&&!v.isPropagationStopped()&&c(r,v))}),[g,{isActive:p}]}const Yx=w.forwardRef((r,t)=>{let{as:a=lx,active:l,eventKey:o}=r,u=gA(r,mA);const[c,d]=Wx(Object.assign({key:co(o,u.href),active:l},u));return c[Cu("active")]=d.isActive,S.jsx(a,Object.assign({},u,c,{ref:t}))});Yx.displayName="NavItem";const vA=["as","onSelect","activeKey","role","onKeyDown"];function yA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}const qS=()=>{},US=Cu("event-key"),Xx=w.forwardRef((r,t)=>{let{as:a="div",onSelect:l,activeKey:o,role:u,onKeyDown:c}=r,d=yA(r,vA);const h=j3(),p=w.useRef(!1),g=w.useContext(Mi),v=w.useContext(qi);let x,T;v&&(u=u||"tablist",o=v.activeKey,x=v.getControlledId,T=v.getControllerId);const N=w.useRef(null),_=I=>{const Q=N.current;if(!Q)return null;const j=La(Q,`[${US}]:not([aria-disabled=true])`),M=Q.querySelector("[aria-selected=true]");if(!M||M!==document.activeElement)return null;const P=j.indexOf(M);if(P===-1)return null;let F=P+I;return F>=j.length&&(F=0),F<0&&(F=j.length-1),j[F]},z=(I,Q)=>{I!=null&&(l==null||l(I,Q),g==null||g(I,Q))},$=I=>{if(c==null||c(I),!v)return;let Q;switch(I.key){case"ArrowLeft":case"ArrowUp":Q=_(-1);break;case"ArrowRight":case"ArrowDown":Q=_(1);break;default:return}Q&&(I.preventDefault(),z(Q.dataset[iA("EventKey")]||null,I),p.current=!0,h())};w.useEffect(()=>{if(N.current&&p.current){const I=N.current.querySelector(`[${US}][aria-selected=true]`);I==null||I.focus()}p.current=!1});const V=Mo(t,N);return S.jsx(Mi.Provider,{value:z,children:S.jsx(bm.Provider,{value:{role:u,activeKey:co(o),getControlledId:x||qS,getControllerId:T||qS},children:S.jsx(a,Object.assign({},d,{onKeyDown:$,ref:V,role:u}))})})});Xx.displayName="Nav";const bA=Object.assign(Xx,{Item:Yx});var Ks;function GS(r){if((!Ks&&Ks!==0||r)&&$i){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Ks=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ks}function SA(){return w.useState(null)}function $h(r){r===void 0&&(r=ki());try{var t=r.activeElement;return!t||!t.nodeName?null:t}catch{return r.body}}function wA(r){const t=w.useRef(r);return t.current=r,t}function xA(r){const t=wA(r);w.useEffect(()=>()=>t.current(),[])}function OA(r=document){const t=r.defaultView;return Math.abs(t.innerWidth-r.documentElement.clientWidth)}const VS=Cu("modal-open");class Om{constructor({ownerDocument:t,handleContainerOverflow:a=!0,isRTL:l=!1}={}){this.handleContainerOverflow=a,this.isRTL=l,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return OA(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const a={overflow:"hidden"},l=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[l]:o.style[l]},t.scrollBarWidth&&(a[l]=`${parseInt(ka(o,l)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(VS,""),ka(o,a)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const a=this.getElement();a.removeAttribute(VS),Object.assign(a.style,t.style)}add(t){let a=this.modals.indexOf(t);return a!==-1||(a=this.modals.length,this.modals.push(t),this.setModalAttributes(t),a!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),a}remove(t){const a=this.modals.indexOf(t);a!==-1&&(this.modals.splice(a,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Ih=(r,t)=>$i?r==null?(t||ki()).body:(typeof r=="function"&&(r=r()),r&&"current"in r&&(r=r.current),r&&("nodeType"in r||r.getBoundingClientRect)?r:null):null;function Dp(r,t){const a=Sm(),[l,o]=w.useState(()=>Ih(r,a==null?void 0:a.document));if(!l){const u=Ih(r);u&&o(u)}return w.useEffect(()=>{},[t,l]),w.useEffect(()=>{const u=Ih(r);u!==l&&o(u)},[r,l]),l}function Em({children:r,in:t,onExited:a,mountOnEnter:l,unmountOnExit:o}){const u=w.useRef(null),c=w.useRef(t),d=wn(a);w.useEffect(()=>{t?c.current=!0:d(u.current)},[t,d]);const h=Mo(u,Bi(r)),p=w.cloneElement(r,{ref:h});return t?p:o||!c.current&&l?null:p}const EA=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function TA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function CA(r){let{onEnter:t,onEntering:a,onEntered:l,onExit:o,onExiting:u,onExited:c,addEndListener:d,children:h}=r,p=TA(r,EA);const g=w.useRef(null),v=Mo(g,Bi(h)),x=Q=>j=>{Q&&g.current&&Q(g.current,j)},T=w.useCallback(x(t),[t]),N=w.useCallback(x(a),[a]),_=w.useCallback(x(l),[l]),z=w.useCallback(x(o),[o]),$=w.useCallback(x(u),[u]),V=w.useCallback(x(c),[c]),I=w.useCallback(x(d),[d]);return Object.assign({},p,{nodeRef:g},t&&{onEnter:T},a&&{onEntering:N},l&&{onEntered:_},o&&{onExit:z},u&&{onExiting:$},c&&{onExited:V},d&&{addEndListener:I},{children:typeof h=="function"?(Q,j)=>h(Q,Object.assign({},j,{ref:v})):w.cloneElement(h,{ref:v})})}const RA=["component"];function _A(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}const jA=w.forwardRef((r,t)=>{let{component:a}=r,l=_A(r,RA);const o=CA(l);return S.jsx(a,Object.assign({ref:t},o))});function AA({in:r,onTransition:t}){const a=w.useRef(null),l=w.useRef(!0),o=wn(t);return CS(()=>{if(!a.current)return;let u=!1;return o({in:r,element:a.current,initial:l.current,isStale:()=>u}),()=>{u=!0}},[r,o]),CS(()=>(l.current=!1,()=>{l.current=!0}),[]),a}function MA({children:r,in:t,onExited:a,onEntered:l,transition:o}){const[u,c]=w.useState(!t);t&&u&&c(!1);const d=AA({in:!!t,onTransition:p=>{const g=()=>{p.isStale()||(p.in?l==null||l(p.element,p.initial):(c(!0),a==null||a(p.element)))};Promise.resolve(o(p)).then(g,v=>{throw p.in||c(!0),v})}}),h=Mo(d,Bi(r));return u&&!t?null:w.cloneElement(r,{ref:h})}function Lp(r,t,a){return r?S.jsx(jA,Object.assign({},a,{component:r})):t?S.jsx(MA,Object.assign({},a,{transition:t})):S.jsx(Em,Object.assign({},a))}const NA=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function DA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}let qh;function LA(r){return qh||(qh=new Om({ownerDocument:r==null?void 0:r.document})),qh}function zA(r){const t=Sm(),a=r||LA(t),l=w.useRef({dialog:null,backdrop:null});return Object.assign(l.current,{add:()=>a.add(l.current),remove:()=>a.remove(l.current),isTopModal:()=>a.isTopModal(l.current),setDialogRef:w.useCallback(o=>{l.current.dialog=o},[]),setBackdropRef:w.useCallback(o=>{l.current.backdrop=o},[])})}const Fx=w.forwardRef((r,t)=>{let{show:a=!1,role:l="dialog",className:o,style:u,children:c,backdrop:d=!0,keyboard:h=!0,onBackdropClick:p,onEscapeKeyDown:g,transition:v,runTransition:x,backdropTransition:T,runBackdropTransition:N,autoFocus:_=!0,enforceFocus:z=!0,restoreFocus:$=!0,restoreFocusOptions:V,renderDialog:I,renderBackdrop:Q=ye=>S.jsx("div",Object.assign({},ye)),manager:j,container:M,onShow:P,onHide:F=()=>{},onExit:D,onExited:E,onExiting:X,onEnter:B,onEntering:q,onEntered:k}=r,G=DA(r,NA);const L=Sm(),b=Dp(M),te=zA(j),R=ix(),y=u3(a),[C,W]=w.useState(!a),J=w.useRef(null);w.useImperativeHandle(t,()=>te,[te]),$i&&!y&&a&&(J.current=$h(L==null?void 0:L.document)),a&&C&&W(!1);const H=wn(()=>{if(te.add(),pe.current=Or(document,"keydown",ue),me.current=Or(document,"focus",()=>setTimeout(Z),!0),P&&P(),_){var ye,Re;const be=$h((ye=(Re=te.dialog)==null?void 0:Re.ownerDocument)!=null?ye:L==null?void 0:L.document);te.dialog&&be&&!uo(te.dialog,be)&&(J.current=be,te.dialog.focus())}}),U=wn(()=>{if(te.remove(),pe.current==null||pe.current(),me.current==null||me.current(),$){var ye;(ye=J.current)==null||ye.focus==null||ye.focus(V),J.current=null}});w.useEffect(()=>{!a||!b||H()},[a,b,H]),w.useEffect(()=>{C&&U()},[C,U]),xA(()=>{U()});const Z=wn(()=>{if(!z||!R()||!te.isTopModal())return;const ye=$h(L==null?void 0:L.document);te.dialog&&ye&&!uo(te.dialog,ye)&&te.dialog.focus()}),re=wn(ye=>{ye.target===ye.currentTarget&&(p==null||p(ye),d===!0&&F())}),ue=wn(ye=>{h&&tx(ye)&&te.isTopModal()&&(g==null||g(ye),ye.defaultPrevented||F())}),me=w.useRef(),pe=w.useRef(),ve=(...ye)=>{W(!0),E==null||E(...ye)};if(!b)return null;const he=Object.assign({role:l,ref:te.setDialogRef,"aria-modal":l==="dialog"?!0:void 0},G,{style:u,className:o,tabIndex:-1});let ge=I?I(he):S.jsx("div",Object.assign({},he,{children:w.cloneElement(c,{role:"document"})}));ge=Lp(v,x,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!a,onExit:D,onExiting:X,onExited:ve,onEnter:B,onEntering:q,onEntered:k,children:ge});let Se=null;return d&&(Se=Q({ref:te.setBackdropRef,onClick:re}),Se=Lp(T,N,{in:!!a,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Se})),S.jsx(S.Fragment,{children:Pa.createPortal(S.jsxs(S.Fragment,{children:[Se,ge]}),b)})});Fx.displayName="Modal";const Qx=Object.assign(Fx,{Manager:Om});function zp(r,t){return r.classList?!!t&&r.classList.contains(t):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+t+" ")!==-1}function PA(r,t){r.classList?r.classList.add(t):zp(r,t)||(typeof r.className=="string"?r.className=r.className+" "+t:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+t))}function WS(r,t){return r.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function HA(r,t){r.classList?r.classList.remove(t):typeof r.className=="string"?r.className=WS(r.className,t):r.setAttribute("class",WS(r.className&&r.className.baseVal||"",t))}const Ci={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Zx extends Om{adjustAndStore(t,a,l){const o=a.style[t];a.dataset[t]=o,ka(a,{[t]:`${parseFloat(ka(a,t))+l}px`})}restore(t,a){const l=a.dataset[t];l!==void 0&&(delete a.dataset[t],ka(a,{[t]:l}))}setContainerStyle(t){super.setContainerStyle(t);const a=this.getElement();if(PA(a,"modal-open"),!t.scrollBarWidth)return;const l=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";La(a,Ci.FIXED_CONTENT).forEach(u=>this.adjustAndStore(l,u,t.scrollBarWidth)),La(a,Ci.STICKY_CONTENT).forEach(u=>this.adjustAndStore(o,u,-t.scrollBarWidth)),La(a,Ci.NAVBAR_TOGGLER).forEach(u=>this.adjustAndStore(o,u,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const a=this.getElement();HA(a,"modal-open");const l=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";La(a,Ci.FIXED_CONTENT).forEach(u=>this.restore(l,u)),La(a,Ci.STICKY_CONTENT).forEach(u=>this.restore(o,u)),La(a,Ci.NAVBAR_TOGGLER).forEach(u=>this.restore(o,u))}}let Uh;function Kx(r){return Uh||(Uh=new Zx(r)),Uh}const Jx=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"modal-body"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));Jx.displayName="ModalBody";const Tm=w.createContext({onHide(){}}),Cm=w.forwardRef(({bsPrefix:r,className:t,contentClassName:a,centered:l,size:o,fullscreen:u,children:c,scrollable:d,...h},p)=>{r=Ce(r,"modal");const g=`${r}-dialog`,v=typeof u=="string"?`${r}-fullscreen-${u}`:`${r}-fullscreen`;return S.jsx("div",{...h,ref:p,className:Oe(g,t,o&&`${r}-${o}`,l&&`${g}-centered`,d&&`${g}-scrollable`,u&&v),children:S.jsx("div",{className:Oe(`${r}-content`,a),children:c})})});Cm.displayName="ModalDialog";const eO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"modal-footer"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));eO.displayName="ModalFooter";const Rm=w.forwardRef(({closeLabel:r="Close",closeVariant:t,closeButton:a=!1,onHide:l,children:o,...u},c)=>{const d=w.useContext(Tm),h=lo(()=>{d==null||d.onHide(),l==null||l()});return S.jsxs("div",{ref:c,...u,children:[o,a&&S.jsx(um,{"aria-label":r,variant:t,onClick:h})]})});Rm.displayName="AbstractModalHeader";const tO=w.forwardRef(({bsPrefix:r,className:t,closeLabel:a="Close",closeButton:l=!1,...o},u)=>(r=Ce(r,"modal-header"),S.jsx(Rm,{ref:u,...o,className:Oe(t,r),closeLabel:a,closeButton:l})));tO.displayName="ModalHeader";const kA=Eu("h4"),nO=w.forwardRef(({className:r,bsPrefix:t,as:a=kA,...l},o)=>(t=Ce(t,"modal-title"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));nO.displayName="ModalTitle";function BA(r){return S.jsx(ua,{...r,timeout:null})}function $A(r){return S.jsx(ua,{...r,timeout:null})}const rO=w.forwardRef(({bsPrefix:r,className:t,style:a,dialogClassName:l,contentClassName:o,children:u,dialogAs:c=Cm,"data-bs-theme":d,"aria-labelledby":h,"aria-describedby":p,"aria-label":g,show:v=!1,animation:x=!0,backdrop:T=!0,keyboard:N=!0,onEscapeKeyDown:_,onShow:z,onHide:$,container:V,autoFocus:I=!0,enforceFocus:Q=!0,restoreFocus:j=!0,restoreFocusOptions:M,onEntered:P,onExit:F,onExiting:D,onEnter:E,onEntering:X,onExited:B,backdropClassName:q,manager:k,...G},L)=>{const[b,te]=w.useState({}),[R,y]=w.useState(!1),C=w.useRef(!1),W=w.useRef(!1),J=w.useRef(null),[H,U]=SA(),Z=Ou(L,U),re=lo($),ue=lm();r=Ce(r,"modal");const me=w.useMemo(()=>({onHide:re}),[re]);function pe(){return k||Kx({isRTL:ue})}function ve(Ae){if(!$i)return;const Be=pe().getScrollbarWidth()>0,nt=Ae.scrollHeight>ki(Ae).documentElement.clientHeight;te({paddingRight:Be&&!nt?GS():void 0,paddingLeft:!Be&&nt?GS():void 0})}const he=lo(()=>{H&&ve(H.dialog)});yx(()=>{jp(window,"resize",he),J.current==null||J.current()});const ge=()=>{C.current=!0},Se=Ae=>{C.current&&H&&Ae.target===H.dialog&&(W.current=!0),C.current=!1},ye=()=>{y(!0),J.current=rx(H.dialog,()=>{y(!1)})},Re=Ae=>{Ae.target===Ae.currentTarget&&ye()},be=Ae=>{if(T==="static"){Re(Ae);return}if(W.current||Ae.target!==Ae.currentTarget){W.current=!1;return}$==null||$()},Le=Ae=>{N?_==null||_(Ae):(Ae.preventDefault(),T==="static"&&ye())},Pe=(Ae,Be)=>{Ae&&ve(Ae),E==null||E(Ae,Be)},Te=Ae=>{J.current==null||J.current(),F==null||F(Ae)},ke=(Ae,Be)=>{X==null||X(Ae,Be),nx(window,"resize",he)},ot=Ae=>{Ae&&(Ae.style.display=""),B==null||B(Ae),jp(window,"resize",he)},ft=w.useCallback(Ae=>S.jsx("div",{...Ae,className:Oe(`${r}-backdrop`,q,!x&&"show")}),[x,q,r]),yt={...a,...b};yt.display="block";const Nt=Ae=>S.jsx("div",{role:"dialog",...Ae,style:yt,className:Oe(t,r,R&&`${r}-static`,!x&&"show"),onClick:T?be:void 0,onMouseUp:Se,"data-bs-theme":d,"aria-label":g,"aria-labelledby":h,"aria-describedby":p,children:S.jsx(c,{...G,onMouseDown:ge,className:l,contentClassName:o,children:u})});return S.jsx(Tm.Provider,{value:me,children:S.jsx(Qx,{show:v,ref:Z,backdrop:T,container:V,keyboard:!0,autoFocus:I,enforceFocus:Q,restoreFocus:j,restoreFocusOptions:M,onEscapeKeyDown:Le,onShow:z,onHide:$,onEnter:Pe,onEntering:ke,onEntered:P,onExit:Te,onExiting:D,onExited:ot,manager:pe(),transition:x?BA:void 0,backdropTransition:x?$A:void 0,renderBackdrop:ft,renderDialog:Nt})})});rO.displayName="Modal";const Ha=Object.assign(rO,{Body:Jx,Header:tO,Title:nO,Footer:eO,Dialog:Cm,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),aO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"nav-item"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));aO.displayName="NavItem";const iO=w.forwardRef(({bsPrefix:r,className:t,as:a=ox,active:l,eventKey:o,disabled:u=!1,...c},d)=>{r=Ce(r,"nav-link");const[h,p]=Wx({key:co(o,c.href),active:l,disabled:u,...c});return S.jsx(a,{...c,...h,ref:d,disabled:u,className:Oe(t,r,u&&"disabled",p.isActive&&"active")})});iO.displayName="NavLink";const lO=w.forwardRef((r,t)=>{const{as:a="div",bsPrefix:l,variant:o,fill:u=!1,justify:c=!1,navbar:d,navbarScroll:h,className:p,activeKey:g,...v}=I_(r,{activeKey:"onSelect"}),x=Ce(l,"nav");let T,N,_=!1;const z=w.useContext(Lx),$=w.useContext(fm);return z?(T=z.bsPrefix,_=d??!0):$&&({cardHeaderBsPrefix:N}=$),S.jsx(bA,{as:a,ref:t,activeKey:g,className:Oe(p,{[x]:!_,[`${T}-nav`]:_,[`${T}-nav-scroll`]:_&&h,[`${N}-${o}`]:!!N,[`${x}-${o}`]:!!o,[`${x}-fill`]:u,[`${x}-justified`]:c}),...v})});lO.displayName="Nav";const Gl=Object.assign(lO,{Item:aO,Link:iO}),Pp=new WeakMap,YS=(r,t)=>{if(!r||!t)return;const a=Pp.get(t)||new Map;Pp.set(t,a);let l=a.get(r);return l||(l=t.matchMedia(r),l.refCount=0,a.set(l.media,l)),l};function IA(r,t=typeof window>"u"?void 0:window){const a=YS(r,t),[l,o]=w.useState(()=>a?a.matches:!1);return Nx(()=>{let u=YS(r,t);if(!u)return o(!1);let c=Pp.get(t);const d=()=>{o(u.matches)};return u.refCount++,u.addListener(d),d(),()=>{u.removeListener(d),u.refCount--,u.refCount<=0&&(c==null||c.delete(u.media)),u=void 0}},[r]),l}function qA(r){const t=Object.keys(r);function a(d,h){return d===h?h:d?`${d} and ${h}`:h}function l(d){return t[Math.min(t.indexOf(d)+1,t.length-1)]}function o(d){const h=l(d);let p=r[h];return typeof p=="number"?p=`${p-.2}px`:p=`calc(${p} - 0.2px)`,`(max-width: ${p})`}function u(d){let h=r[d];return typeof h=="number"&&(h=`${h}px`),`(min-width: ${h})`}function c(d,h,p){let g;typeof d=="object"?(g=d,p=h,h=!0):(h=h||!0,g={[d]:h});let v=w.useMemo(()=>Object.entries(g).reduce((x,[T,N])=>((N==="up"||N===!0)&&(x=a(x,u(T))),(N==="down"||N===!0)&&(x=a(x,o(T))),x),""),[JSON.stringify(g)]);return IA(v,p)}return c}const UA=qA({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),oO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"offcanvas-body"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));oO.displayName="OffcanvasBody";const GA={[Xn]:"show",[sa]:"show"},sO=w.forwardRef(({bsPrefix:r,className:t,children:a,in:l=!1,mountOnEnter:o=!1,unmountOnExit:u=!1,appear:c=!1,...d},h)=>(r=Ce(r,"offcanvas"),S.jsx(om,{ref:h,addEndListener:ax,in:l,mountOnEnter:o,unmountOnExit:u,appear:c,...d,childRef:Bi(a),children:(p,g)=>w.cloneElement(a,{...g,className:Oe(t,a.props.className,(p===Xn||p===ou)&&`${r}-toggling`,GA[p])})})));sO.displayName="OffcanvasToggling";const uO=w.forwardRef(({bsPrefix:r,className:t,closeLabel:a="Close",closeButton:l=!1,...o},u)=>(r=Ce(r,"offcanvas-header"),S.jsx(Rm,{ref:u,...o,className:Oe(t,r),closeLabel:a,closeButton:l})));uO.displayName="OffcanvasHeader";const VA=Eu("h5"),cO=w.forwardRef(({className:r,bsPrefix:t,as:a=VA,...l},o)=>(t=Ce(t,"offcanvas-title"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));cO.displayName="OffcanvasTitle";function WA(r){return S.jsx(sO,{...r})}function YA(r){return S.jsx(ua,{...r})}const fO=w.forwardRef(({bsPrefix:r,className:t,children:a,"aria-labelledby":l,placement:o="start",responsive:u,show:c=!1,backdrop:d=!0,keyboard:h=!0,scroll:p=!1,onEscapeKeyDown:g,onShow:v,onHide:x,container:T,autoFocus:N=!0,enforceFocus:_=!0,restoreFocus:z=!0,restoreFocusOptions:$,onEntered:V,onExit:I,onExiting:Q,onEnter:j,onEntering:M,onExited:P,backdropClassName:F,manager:D,renderStaticNode:E=!1,...X},B)=>{const q=w.useRef();r=Ce(r,"offcanvas");const[k,G]=w.useState(!1),L=lo(x),b=UA(u||"xs","up");w.useEffect(()=>{G(u?c&&!b:c)},[c,u,b]);const te=w.useMemo(()=>({onHide:L}),[L]);function R(){return D||(p?(q.current||(q.current=new Zx({handleContainerOverflow:!1})),q.current):Kx())}const y=(H,...U)=>{H&&(H.style.visibility="visible"),j==null||j(H,...U)},C=(H,...U)=>{H&&(H.style.visibility=""),P==null||P(...U)},W=w.useCallback(H=>S.jsx("div",{...H,className:Oe(`${r}-backdrop`,F)}),[F,r]),J=H=>S.jsx("div",{...H,...X,className:Oe(t,u?`${r}-${u}`:r,`${r}-${o}`),"aria-labelledby":l,children:a});return S.jsxs(S.Fragment,{children:[!k&&(u||E)&&J({}),S.jsx(Tm.Provider,{value:te,children:S.jsx(Qx,{show:k,ref:B,backdrop:d,container:T,keyboard:h,autoFocus:N,enforceFocus:_&&!p,restoreFocus:z,restoreFocusOptions:$,onEscapeKeyDown:g,onShow:v,onHide:L,onEnter:y,onEntering:M,onEntered:V,onExit:I,onExiting:Q,onExited:C,manager:R(),transition:WA,backdropTransition:YA,renderBackdrop:W,renderDialog:J})})]})});fO.displayName="Offcanvas";const XS=Object.assign(fO,{Body:oO,Header:uO,Title:cO}),XA=()=>{};function FA(r,t,{disabled:a,clickTrigger:l}={}){const o=t||XA;Gj(r,o,{disabled:a,clickTrigger:l});const u=wn(c=>{tx(c)&&o(c)});w.useEffect(()=>{if(a||r==null)return;const c=ki(au(r));let d=(c.defaultView||window).event;const h=Or(c,"keyup",p=>{if(p===d){d=void 0;return}u(p)});return()=>{h()}},[r,a,u])}const dO=w.forwardRef((r,t)=>{const{flip:a,offset:l,placement:o,containerPadding:u,popperConfig:c={},transition:d,runTransition:h}=r,[p,g]=TS(),[v,x]=TS(),T=Mo(g,t),N=Dp(r.container),_=Dp(r.target),[z,$]=w.useState(!r.show),V=kj(_,p,Yj({placement:o,enableEvents:!!r.show,containerPadding:u||5,flip:a,offset:l,arrowElement:v,popperConfig:c}));r.show&&z&&$(!1);const I=(...X)=>{$(!0),r.onExited&&r.onExited(...X)},Q=r.show||!z;if(FA(p,r.onHide,{disabled:!r.rootClose||r.rootCloseDisabled,clickTrigger:r.rootCloseEvent}),!Q)return null;const{onExit:j,onExiting:M,onEnter:P,onEntering:F,onEntered:D}=r;let E=r.children(Object.assign({},V.attributes.popper,{style:V.styles.popper,ref:T}),{popper:V,placement:o,show:!!r.show,arrowProps:Object.assign({},V.attributes.arrow,{style:V.styles.arrow,ref:x})});return E=Lp(d,h,{in:!!r.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:E,onExit:j,onExiting:M,onExited:I,onEnter:P,onEntering:F,onEntered:D}),N?Pa.createPortal(E,N):null});dO.displayName="Overlay";const hO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"popover-header"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));hO.displayName="PopoverHeader";const _m=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"popover-body"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));_m.displayName="PopoverBody";function pO(r,t){let a=r;return r==="left"?a=t?"end":"start":r==="right"&&(a=t?"start":"end"),a}function mO(r="absolute"){return{position:r,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const gO=w.forwardRef(({bsPrefix:r,placement:t="right",className:a,style:l,children:o,body:u,arrowProps:c,hasDoneInitialMeasure:d,popper:h,show:p,...g},v)=>{const x=Ce(r,"popover"),T=lm(),[N]=(t==null?void 0:t.split("-"))||[],_=pO(N,T);let z=l;return p&&!d&&(z={...l,...mO(h==null?void 0:h.strategy)}),S.jsxs("div",{ref:v,role:"tooltip",style:z,"x-placement":N,className:Oe(a,x,N&&`bs-popover-${_}`),...g,children:[S.jsx("div",{className:"popover-arrow",...c}),u?S.jsx(_m,{children:o}):o]})});gO.displayName="Popover";const Hp=Object.assign(gO,{Header:hO,Body:_m,POPPER_OFFSET:[0,8]}),vO=w.forwardRef(({bsPrefix:r,placement:t="right",className:a,style:l,children:o,arrowProps:u,hasDoneInitialMeasure:c,popper:d,show:h,...p},g)=>{r=Ce(r,"tooltip");const v=lm(),[x]=(t==null?void 0:t.split("-"))||[],T=pO(x,v);let N=l;return h&&!c&&(N={...l,...mO(d==null?void 0:d.strategy)}),S.jsxs("div",{ref:g,style:N,role:"tooltip","x-placement":x,className:Oe(a,r,`bs-tooltip-${T}`),...p,children:[S.jsx("div",{className:"tooltip-arrow",...u}),S.jsx("div",{className:`${r}-inner`,children:o})]})});vO.displayName="Tooltip";const QA=Object.assign(vO,{TOOLTIP_OFFSET:[0,6]});function ZA(r){const t=w.useRef(null),a=Ce(void 0,"popover"),l=Ce(void 0,"tooltip"),o=w.useMemo(()=>({name:"offset",options:{offset:()=>{if(r)return r;if(t.current){if(zp(t.current,a))return Hp.POPPER_OFFSET;if(zp(t.current,l))return QA.TOOLTIP_OFFSET}return[0,0]}}}),[r,a,l]);return[t,[o]]}function KA(r,t){const{ref:a}=r,{ref:l}=t;r.ref=a.__wrapped||(a.__wrapped=o=>a(su(o))),t.ref=l.__wrapped||(l.__wrapped=o=>l(su(o)))}const yO=w.forwardRef(({children:r,transition:t=ua,popperConfig:a={},rootClose:l=!1,placement:o="top",show:u=!1,...c},d)=>{const h=w.useRef({}),[p,g]=w.useState(null),[v,x]=ZA(c.offset),T=Ou(d,v),N=t===!0?ua:t||void 0,_=lo(z=>{g(z),a==null||a.onFirstUpdate==null||a.onFirstUpdate(z)});return Nx(()=>{p&&c.target&&(h.current.scheduleUpdate==null||h.current.scheduleUpdate())},[p,c.target]),w.useEffect(()=>{u||g(null)},[u]),S.jsx(dO,{...c,ref:T,popperConfig:{...a,modifiers:x.concat(a.modifiers||[]),onFirstUpdate:_},transition:N,rootClose:l,placement:o,show:u,children:(z,{arrowProps:$,popper:V,show:I})=>{var Q;KA(z,$);const j=V==null?void 0:V.placement,M=Object.assign(h.current,{state:V==null?void 0:V.state,scheduleUpdate:V==null?void 0:V.update,placement:j,outOfBoundaries:(V==null||(Q=V.state)==null||(Q=Q.modifiersData.hide)==null?void 0:Q.isReferenceHidden)||!1,strategy:a.strategy}),P=!!p;return typeof r=="function"?r({...z,placement:j,show:I,...!t&&I&&{className:"show"},popper:M,arrowProps:$,hasDoneInitialMeasure:P}):w.cloneElement(r,{...z,placement:j,arrowProps:$,popper:M,hasDoneInitialMeasure:P,className:Oe(r.props.className,!t&&I&&"show"),style:{...r.props.style,...z.style}})}})});yO.displayName="Overlay";function JA(r){return r&&typeof r=="object"?r:{show:r,hide:r}}function FS(r,t,a){const[l]=t,o=l.currentTarget,u=l.relatedTarget||l.nativeEvent[a];(!u||u!==o)&&!uo(o,u)&&r(...t)}Pt.oneOf(["click","hover","focus"]);const eM=({trigger:r=["hover","focus"],overlay:t,children:a,popperConfig:l={},show:o,defaultShow:u=!1,onToggle:c,delay:d,placement:h,flip:p=h&&h.indexOf("auto")!==-1,...g})=>{const v=w.useRef(null),x=Ou(v,Bi(a)),T=E3(),N=w.useRef(""),[_,z]=Qw(o,u,c),$=JA(d),{onFocus:V,onBlur:I,onClick:Q}=typeof a!="function"?w.Children.only(a).props:{},j=G=>{x(su(G))},M=w.useCallback(()=>{if(T.clear(),N.current="show",!$.show){z(!0);return}T.set(()=>{N.current==="show"&&z(!0)},$.show)},[$.show,z,T]),P=w.useCallback(()=>{if(T.clear(),N.current="hide",!$.hide){z(!1);return}T.set(()=>{N.current==="hide"&&z(!1)},$.hide)},[$.hide,z,T]),F=w.useCallback((...G)=>{M(),V==null||V(...G)},[M,V]),D=w.useCallback((...G)=>{P(),I==null||I(...G)},[P,I]),E=w.useCallback((...G)=>{z(!_),Q==null||Q(...G)},[Q,z,_]),X=w.useCallback((...G)=>{FS(M,G,"fromElement")},[M]),B=w.useCallback((...G)=>{FS(P,G,"toElement")},[P]),q=r==null?[]:[].concat(r),k={ref:j};return q.indexOf("click")!==-1&&(k.onClick=E),q.indexOf("focus")!==-1&&(k.onFocus=F,k.onBlur=D),q.indexOf("hover")!==-1&&(k.onMouseOver=X,k.onMouseOut=B),S.jsxs(S.Fragment,{children:[typeof a=="function"?a(k):w.cloneElement(a,k),S.jsx(yO,{...g,show:_,onHide:P,flip:p,placement:h,popperConfig:l,target:v.current,children:t})]})},vt=w.forwardRef(({bsPrefix:r,className:t,as:a="div",...l},o)=>{const u=Ce(r,"row"),c=am(),d=im(),h=`${u}-cols`,p=[];return c.forEach(g=>{const v=l[g];delete l[g];let x;v!=null&&typeof v=="object"?{cols:x}=v:x=v;const T=g!==d?`-${g}`:"";x!=null&&p.push(`${h}${T}-${x}`)}),S.jsx(a,{ref:o,...l,className:Oe(t,u,...p)})});vt.displayName="Row";function tM(r,t=Zw,a=Kw){const l=[];return Object.entries(r).forEach(([o,u])=>{u!=null&&(typeof u=="object"?t.forEach(c=>{const d=u[c];if(d!=null){const h=c!==a?`-${c}`:"";l.push(`${o}${h}-${d}`)}}):l.push(`${o}-${u}`))}),l}const Ne=w.forwardRef(({as:r="div",bsPrefix:t,className:a,direction:l,gap:o,...u},c)=>{t=Ce(t,l==="horizontal"?"hstack":"vstack");const d=am(),h=im();return S.jsx(r,{...u,ref:c,className:Oe(a,t,...tM({gap:o},d,h))})});Ne.displayName="Stack";const nM=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],rM=["activeKey","getControlledId","getControllerId"],aM=["as"];function kp(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function bO(r){let{active:t,eventKey:a,mountOnEnter:l,transition:o,unmountOnExit:u,role:c="tabpanel",onEnter:d,onEntering:h,onEntered:p,onExit:g,onExiting:v,onExited:x}=r,T=kp(r,nM);const N=w.useContext(qi);if(!N)return[Object.assign({},T,{role:c}),{eventKey:a,isActive:t,mountOnEnter:l,transition:o,unmountOnExit:u,onEnter:d,onEntering:h,onEntered:p,onExit:g,onExiting:v,onExited:x}];const{activeKey:_,getControlledId:z,getControllerId:$}=N,V=kp(N,rM),I=co(a);return[Object.assign({},T,{role:c,id:z(a),"aria-labelledby":$(a)}),{eventKey:a,isActive:t==null&&I!=null?co(_)===I:t,transition:o||V.transition,mountOnEnter:l??V.mountOnEnter,unmountOnExit:u??V.unmountOnExit,onEnter:d,onEntering:h,onEntered:p,onExit:g,onExiting:v,onExited:x}]}const SO=w.forwardRef((r,t)=>{let{as:a="div"}=r,l=kp(r,aM);const[o,{isActive:u,onEnter:c,onEntering:d,onEntered:h,onExit:p,onExiting:g,onExited:v,mountOnEnter:x,unmountOnExit:T,transition:N=Em}]=bO(l);return S.jsx(qi.Provider,{value:null,children:S.jsx(Mi.Provider,{value:null,children:S.jsx(N,{in:u,onEnter:c,onEntering:d,onEntered:h,onExit:p,onExiting:g,onExited:v,mountOnEnter:x,unmountOnExit:T,children:S.jsx(a,Object.assign({},o,{ref:t,hidden:!u,"aria-hidden":!u}))})})})});SO.displayName="TabPanel";const wO=r=>{const{id:t,generateChildId:a,onSelect:l,activeKey:o,defaultActiveKey:u,transition:c,mountOnEnter:d,unmountOnExit:h,children:p}=r,[g,v]=_3(o,u,l),x=Kj(t),T=w.useMemo(()=>a||((_,z)=>x?`${x}-${z}-${_}`:null),[x,a]),N=w.useMemo(()=>({onSelect:v,activeKey:g,transition:c,mountOnEnter:d||!1,unmountOnExit:h||!1,getControlledId:_=>T(_,"tabpane"),getControllerId:_=>T(_,"tab")}),[v,g,c,d,h,T]);return S.jsx(qi.Provider,{value:N,children:S.jsx(Mi.Provider,{value:v||null,children:p})})};wO.Panel=SO;function xO(r){return typeof r=="boolean"?r?ua:Em:r}const OO=({transition:r,...t})=>S.jsx(wO,{...t,transition:xO(r)});OO.displayName="TabContainer";const EO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"tab-content"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));EO.displayName="TabContent";const TO=w.forwardRef(({bsPrefix:r,transition:t,...a},l)=>{const[{className:o,as:u="div",...c},{isActive:d,onEnter:h,onEntering:p,onEntered:g,onExit:v,onExiting:x,onExited:T,mountOnEnter:N,unmountOnExit:_,transition:z=ua}]=bO({...a,transition:xO(t)}),$=Ce(r,"tab-pane");return S.jsx(qi.Provider,{value:null,children:S.jsx(Mi.Provider,{value:null,children:S.jsx(z,{in:d,onEnter:h,onEntering:p,onEntered:g,onExit:v,onExiting:x,onExited:T,mountOnEnter:N,unmountOnExit:_,children:S.jsx(u,{...c,ref:l,className:Oe(o,$,d&&"active")})})})})});TO.displayName="TabPane";const iM={eventKey:Pt.oneOfType([Pt.string,Pt.number]),title:Pt.node.isRequired,disabled:Pt.bool,tabClassName:Pt.string,tabAttrs:Pt.object},CO=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};CO.propTypes=iM;const Js=Object.assign(CO,{Container:OO,Content:EO,Pane:TO}),lM=()=>{},RO=w.forwardRef(({bsPrefix:r,name:t,className:a,checked:l,type:o,onChange:u,value:c,disabled:d,id:h,inputRef:p,...g},v)=>(r=Ce(r,"btn-check"),S.jsxs(S.Fragment,{children:[S.jsx("input",{className:r,name:t,type:o,value:c,ref:p,autoComplete:"off",checked:!!l,disabled:!!d,onChange:u||lM,id:h}),S.jsx(Qt,{...g,ref:v,className:Oe(a,d&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:h})]})));RO.displayName="ToggleButton";var fo,ho,po,mo,go,vo,yo,bo,So,gu,_O;const ao=class ao{constructor(t){Sn(this,gu);Sn(this,fo);Sn(this,ho);Sn(this,po);Sn(this,mo);Sn(this,go);Sn(this,vo);Sn(this,yo);Sn(this,bo);Sn(this,So);Wn(this,fo,t.year),Wn(this,ho,t.month),Wn(this,po,t.day),Wn(this,mo,t.hour||0),Wn(this,go,t.minute||0),Wn(this,vo,t.second||0),Wn(this,yo,t.gmt||"+0000");const a=ia(this,gu,_O).call(this);if(a.ok)Wn(this,bo,a.parsed),Wn(this,So,a.dateTimeStr);else throw Error(`DateTime creation error: ${a.message}`)}static from(t){if(typeof t=="string"){const u=/^(\d{4})-(\d{2})-(\d{2})(?: (\d{2}):(\d{2})(?::(\d{2}))?(?: ([+-]\d{4}))?)?/.exec(t);if(u){const[c,d,h,p,g,v,x,T]=u,N={year:Number(d),month:Number(h),day:Number(p),hour:Number(g),minute:Number(v),second:Number(x),gmt:T};return x!==void 0&&(x.startsWith("+")||x.startsWith("-"))&&(N.second=void 0,N.gmt=x),new ao(N)}throw Error(`Could not create DateTime object from "${t}": invalid format`)}const a=new Date;a.setTime(t);const l={year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds()};return new ao(l)}valueOf(){return Vn(this,bo)}toString(){return Vn(this,So)}};fo=new WeakMap,ho=new WeakMap,po=new WeakMap,mo=new WeakMap,go=new WeakMap,vo=new WeakMap,yo=new WeakMap,bo=new WeakMap,So=new WeakMap,gu=new WeakSet,_O=function(){const t=`${Vn(this,fo).toString().padStart(4,"0")}-${Vn(this,ho).toString().padStart(2,"0")}-${Vn(this,po).toString().padStart(2,"0")}`,a=`${Vn(this,mo).toString().padStart(2,"0")}:${Vn(this,go).toString().padStart(2,"0")}:${Vn(this,vo).toString().padStart(2,"0")}`,l=`${t}T${a}${Vn(this,yo)}`;try{return{ok:!0,parsed:new Date(l),dateTimeStr:l}}catch{return{ok:!1,message:`failed to parse date from ${l}`}}},ao.FORMAT="yyyy-MM-dd [hh:mm[:ss] [GMT]]";let Bp=ao;const oM=[Bp];class $p{static getProperty(t,a,l=!1){const o=a.split(".");let u=t;for(;o.length>0;){const c=o.shift();if(u&&typeof u=="object"){if(u=u[c],u===void 0){if(l)throw new QS(a);return u}}else if(l)throw new QS(a)}return u}static clean(t,a){const l=(a==null?void 0:a.deep)||!1,o=(a==null?void 0:a.cleanNulls)||!1,u=(a==null?void 0:a.cleanEmptyObjects)||!1;if(!t||typeof t!="object")return t;const c={};for(const[d,h]of Object.entries(t))if(!(h===void 0||h===null&&o))if(h!==null&&typeof h=="object"&&!oM.find(g=>h instanceof g)){const g=l?this.clean(h,a):h;(Object.entries(g).length>0||!u)&&(c[d]=g)}else c[d]=h;return Array.isArray(t)?Object.values(c):c}}class QS extends Error{constructor(t){super(),this.name="ObjectPropertyNotFoundError",this.prop=t}}class jO{static getCampaignCreationName(t){return $p.getProperty(t,"raw.attributes.creation_name")}static getProductRichTextDescription(t){const a=$p.getProperty(t,"raw.data.attributes.description_rich_text");return a||(t.description?t.description.replaceAll(`
68
+ `,"<br />"):null)}}const fa=w.forwardRef((r,t)=>{const{mediaId:a,thumbnail:l=!1,...o}=r,u=`/media/${a}${l?"?t=1":""}`,c=w.useCallback(d=>{d.currentTarget.style.display="none"},[]);return S.jsx("img",{ref:t,src:u,onError:c,...o})}),sM={postCount:"article",mediaCount:"image",productCount:"storefront"};function uM(r){const{campaign:t}=r,a=jO.getCampaignCreationName(t),l=["postCount","productCount","mediaCount"].reduce((o,u)=>(t[u]>0&&o.push(S.jsxs(Ne,{direction:"horizontal",style:{alignSelf:"auto"},children:[S.jsx("span",{className:"campaign-card__count-icon material-icons-outlined",children:sM[u]}),S.jsx("span",{className:"campaign-card__count-text",children:t[u]})]},`${t.id}:${u}`)),o),[]);return S.jsx(it,{className:"campaign-card mb-3",children:S.jsxs(it.Body,{className:"d-flex p-0",children:[S.jsx(fa,{className:"campaign-card__avatar",mediaId:`campaign:${t.id}:avatar`}),S.jsxs(Ne,{className:"flex-fill overflow-hidden px-3 py-2",children:[S.jsx("h6",{className:"campaign-card__title",children:S.jsx(on,{to:`/campaigns/${t.id}`,children:t.name})}),a?S.jsx("div",{className:"campaign-card__creation-name",children:a}):null,S.jsxs(Ne,{direction:"horizontal",className:"flex-fill align-items-end text-body-secondary",gap:3,children:[...l]})]})]})})}function ju(r){const{total:t,page:a,itemsPerPage:l}=r;if(t>l){const o=(a-1)*l,u=o+1,c=Math.min(o+l,t),d=typeof r.subject=="string"?r.subject:r.subject.plural;return`Showing ${u} - ${c} of ${t} ${d}`}else{const o=typeof r.subject=="string"?r.subject:t===1?r.subject.singular:r.subject.plural;return`Total ${t} ${o}`}}class cM{static getPaginationParams(t,a){const l=new URL(t),o=l.searchParams.get("p")||1,u=l.searchParams.get("n")||a,c=Number(o),d=Number(u);if(isNaN(c))throw TypeError('Invalid param "p"');if(c<=0)throw RangeError(`Invalid value "${c}" for param "p"`);if(isNaN(d))throw TypeError('Invalid param "n"');if(d<=0)throw RangeError(`Invalid value "${d}" for param "n"`);return{limit:d,offset:(c-1)*d}}}function fM(r){const{currentPage:t,totalPages:a,onChange:l}=r,[o,u]=w.useState(t),c=w.useRef(null),d=w.useCallback(()=>{c.current&&c.current.focus()},[]),h=w.useCallback(()=>{c.current&&c.current.blur()},[]),p=w.useCallback(()=>{if(!c.current)return;const g=Number(c.current.value);if(isNaN(g)||g===t)return;const v=Math.max(Math.min(a,g),1);l(v)},[t,a]);return S.jsx(eM,{trigger:"click",rootClose:!0,placement:"top",onEntered:d,onExited:h,overlay:S.jsx(Hp,{children:S.jsx(Hp.Body,{children:S.jsxs(Ne,{direction:"horizontal",children:[S.jsx("span",{className:"text-nowrap me-2",children:"Go to:"}),S.jsxs(Vx,{children:[S.jsx(Mt.Control,{ref:c,value:o,type:"number",required:!0,size:"sm",style:{width:"10em"},onChange:g=>u(Number(g.target.value))}),S.jsx(Qt,{onClick:p,children:"→"})]})]})})}),children:S.jsx(Qt,{variant:"outline-primary",children:"..."})})}const Yn=10;function dM(r,t){const a=window.location.href,{limit:l,offset:o}=cM.getPaginationParams(a,t),u=Math.ceil(r/l);if(u===1)return null;const c=[],d=Math.floor(o/l)+1;if(u<=Yn)c.push(Ln(1,u,d));else if(d<Yn-1)c.push(Ln(1,Yn-1,d)),c.push(Ln(u,u,d));else if(d>=u-Yn+2)c.push(Ln(1,1,d)),c.push(Ln(u-Yn+2,u,d));else{c.push(Ln(1,1,d));let g=Math.floor(d/(Yn-2))+1,v=2+(g-1)*(Yn-3),x=v+Yn-3;d>=x&&(g++,v+=Yn-3,x+=Yn-3),x===u-1?c.push(Ln(v,u,d)):(c.push(Ln(v,x,d)),c.push(Ln(u,u,d)))}const h=d>1?Ln(d-1,d-1,d)[0].page:null,p=d<u?Ln(d+1,d+1,d)[0].page:null;return{currentPage:d,totalPages:u,sections:c,previousPage:h,nextPage:p}}function Ln(r,t,a){const l=[];for(let o=r;o<=t;o++)l.push({page:o,isCurrent:o===a});return l}function Au(r){const{totalItems:t,itemsPerPage:a,onChange:l}=r,o=dM(t,a);if(!o)return null;const u=d=>{const h=d.currentTarget.dataset.page;h!==void 0&&!isNaN(Number(h))&&l(Number(h))},c=[];o.previousPage&&c.push(S.jsx(Qt,{variant:"outline-primary",onClick:u,"data-page":o.previousPage,children:"<"}));for(let d=0;d<o.sections.length;d++){const h=o.sections[d];c.push(...h.map(p=>{const g=p.isCurrent?void 0:u,v=p.isCurrent?"primary":"outline-primary";return S.jsx(Qt,{variant:v,onClick:g,"data-page":p.page,children:p.page})})),d<o.sections.length-1&&c.push(S.jsx(fM,{currentPage:o.currentPage,totalPages:o.totalPages,onChange:l}))}return o.nextPage&&c.push(S.jsx(Qt,{variant:"outline-primary",onClick:u,"data-page":o.nextPage,children:">"})),S.jsx("div",{className:"d-flex justify-content-center",children:S.jsx(sx,{className:"mt-2 mb-4",children:c})})}var Gh={},Vh={},Vl={exports:{}},za={exports:{}},hM=za.exports,ZS;function pM(){return ZS||(ZS=1,(function(){var r,t,a,l,o,u;typeof performance<"u"&&performance!==null&&performance.now?za.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(za.exports=function(){return(r()-o)/1e6},t=process.hrtime,r=function(){var c;return c=t(),c[0]*1e9+c[1]},l=r(),u=process.uptime()*1e9,o=l-u):Date.now?(za.exports=function(){return Date.now()-a},a=Date.now()):(za.exports=function(){return new Date().getTime()-a},a=new Date().getTime())}).call(hM)),za.exports}var KS;function mM(){if(KS)return Vl.exports;KS=1;for(var r=pM(),t=typeof window>"u"?xr:window,a=["moz","webkit"],l="AnimationFrame",o=t["request"+l],u=t["cancel"+l]||t["cancelRequest"+l],c=0;!o&&c<a.length;c++)o=t[a[c]+"Request"+l],u=t[a[c]+"Cancel"+l]||t[a[c]+"CancelRequest"+l];if(!o||!u){var d=0,h=0,p=[],g=1e3/60;o=function(v){if(p.length===0){var x=r(),T=Math.max(0,g-(x-d));d=T+x,setTimeout(function(){var N=p.slice(0);p.length=0;for(var _=0;_<N.length;_++)if(!N[_].cancelled)try{N[_].callback(d)}catch(z){setTimeout(function(){throw z},0)}},Math.round(T))}return p.push({handle:++h,callback:v,cancelled:!1}),h},u=function(v){for(var x=0;x<p.length;x++)p[x].handle===v&&(p[x].cancelled=!0)}}return Vl.exports=function(v){return o.call(t,v)},Vl.exports.cancel=function(){u.apply(t,arguments)},Vl.exports.polyfill=function(v){v||(v=t),v.requestAnimationFrame=o,v.cancelAnimationFrame=u},Vl.exports}var Wl={exports:{}},Wh,JS;function gM(){if(JS)return Wh;JS=1;var r=null,t=["Webkit","Moz","O","ms"];return Wh=function(l){r||(r=document.createElement("div"));var o=r.style;if(l in o)return l;for(var u=l.charAt(0).toUpperCase()+l.slice(1),c=t.length;c>=0;c--){var d=t[c]+u;if(d in o)return d}return!1},Wh}var Yh,e1;function vM(){if(e1)return Yh;e1=1,Yh=l;var r=/\s/,t=/(_|-|\.|:)/,a=/([a-z][A-Z]|[A-Z][a-z])/;function l(h){return r.test(h)?h.toLowerCase():t.test(h)?(u(h)||h).toLowerCase():a.test(h)?d(h).toLowerCase():h.toLowerCase()}var o=/[\W_]+(.|$)/g;function u(h){return h.replace(o,function(p,g){return g?" "+g:""})}var c=/(.)([A-Z]+)/g;function d(h){return h.replace(c,function(p,g,v){return g+" "+v.toLowerCase().split("").join(" ")})}return Yh}var Xh,t1;function yM(){if(t1)return Xh;t1=1;var r=vM();Xh=t;function t(a){return r(a).replace(/[\W_]+(.|$)/g,function(l,o){return o?" "+o:""}).trim()}return Xh}var Fh,n1;function bM(){if(n1)return Fh;n1=1;var r=yM();Fh=t;function t(a){return r(a).replace(/\s(\w)/g,function(l,o){return o.toUpperCase()})}return Fh}var Qh,r1;function SM(){if(r1)return Qh;r1=1;var r={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return Qh=function(t,a){return typeof a=="number"&&!r[t]?a+"px":a},Qh}var a1;function AO(){if(a1)return Wl.exports;a1=1;var r=gM(),t=bM(),a={float:"cssFloat"},l=SM();function o(h,p,g){var v=a[p];if(typeof v>"u"&&(v=c(p)),v){if(g===void 0)return h.style[v];h.style[v]=l(v,g)}}function u(h,p){for(var g in p)p.hasOwnProperty(g)&&o(h,g,p[g])}function c(h){var p=t(h),g=r(p);return a[p]=a[h]=a[g]=g,g}function d(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:u(arguments[0],arguments[1]):o(arguments[0],arguments[1],arguments[2])}return Wl.exports=d,Wl.exports.set=d,Wl.exports.get=function(h,p){return Array.isArray(p)?p.reduce(function(g,v){return g[v]=o(h,v||""),g},{}):o(h,p||"")},Wl.exports}var Zh={},i1;function wM(){return i1||(i1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(a){return typeof a=="string"}}(Zh)),Zh}var Kh={},l1;function xM(){return l1||(l1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;var t=AO(),a=l(t);function l(c){return c&&c.__esModule?c:{default:c}}var o=!1;function u(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(c&&o!==!1)return o;if(typeof document<"u"){var d=document.createElement("div");(0,a.default)(d,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(d),o=d.offsetWidth-d.clientWidth,document.body.removeChild(d)}else o=0;return o||0}}(Kh)),Kh}var Jh={},o1;function OM(){return o1||(o1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(){return!1}}(Jh)),Jh}var ep={},s1;function EM(){return s1||(s1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(a){var l=a.clientWidth,o=getComputedStyle(a),u=o.paddingLeft,c=o.paddingRight;return l-parseFloat(u)-parseFloat(c)}}(ep)),ep}var tp={},u1;function TM(){return u1||(u1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(a){var l=a.clientHeight,o=getComputedStyle(a),u=o.paddingTop,c=o.paddingBottom;return l-parseFloat(u)-parseFloat(c)}}(tp)),tp}var Xt={},c1;function CM(){return c1||(c1=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},Xt.containerStyleAutoHeight={height:"auto"},Xt.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},Xt.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},Xt.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},Xt.trackHorizontalStyleDefault={position:"absolute",height:6},Xt.trackVerticalStyleDefault={position:"absolute",width:6},Xt.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},Xt.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},Xt.disableSelectStyle={userSelect:"none"},Xt.disableSelectStyleReset={userSelect:""}),Xt}var la={},f1;function RM(){if(f1)return la;f1=1,Object.defineProperty(la,"__esModule",{value:!0});var r=Object.assign||function(g){for(var v=1;v<arguments.length;v++){var x=arguments[v];for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(g[T]=x[T])}return g};la.renderViewDefault=u,la.renderTrackHorizontalDefault=c,la.renderTrackVerticalDefault=d,la.renderThumbHorizontalDefault=h,la.renderThumbVerticalDefault=p;var t=Cn(),a=l(t);function l(g){return g&&g.__esModule?g:{default:g}}function o(g,v){var x={};for(var T in g)v.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(g,T)&&(x[T]=g[T]);return x}function u(g){return a.default.createElement("div",g)}function c(g){var v=g.style,x=o(g,["style"]),T=r({},v,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:T},x))}function d(g){var v=g.style,x=o(g,["style"]),T=r({},v,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:T},x))}function h(g){var v=g.style,x=o(g,["style"]),T=r({},v,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:T},x))}function p(g){var v=g.style,x=o(g,["style"]),T=r({},v,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:T},x))}return la}var d1;function _M(){return d1||(d1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0});var t=Object.assign||function(B){for(var q=1;q<arguments.length;q++){var k=arguments[q];for(var G in k)Object.prototype.hasOwnProperty.call(k,G)&&(B[G]=k[G])}return B},a=function(){function B(q,k){for(var G=0;G<k.length;G++){var L=k[G];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(q,L.key,L)}}return function(q,k,G){return k&&B(q.prototype,k),G&&B(q,G),q}}(),l=mM(),o=M(l),u=AO(),c=M(u),d=Cn(),h=Jw(),p=M(h),g=wM(),v=M(g),x=xM(),T=M(x),N=OM(),_=M(N),z=EM(),$=M(z),V=TM(),I=M(V),Q=CM(),j=RM();function M(B){return B&&B.__esModule?B:{default:B}}function P(B,q){var k={};for(var G in B)q.indexOf(G)>=0||Object.prototype.hasOwnProperty.call(B,G)&&(k[G]=B[G]);return k}function F(B,q){if(!(B instanceof q))throw new TypeError("Cannot call a class as a function")}function D(B,q){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:B}function E(B,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);B.prototype=Object.create(q&&q.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(B,q):B.__proto__=q)}var X=function(B){E(q,B);function q(k){var G;F(this,q);for(var L=arguments.length,b=Array(L>1?L-1:0),te=1;te<L;te++)b[te-1]=arguments[te];var R=D(this,(G=q.__proto__||Object.getPrototypeOf(q)).call.apply(G,[this,k].concat(b)));return R.getScrollLeft=R.getScrollLeft.bind(R),R.getScrollTop=R.getScrollTop.bind(R),R.getScrollWidth=R.getScrollWidth.bind(R),R.getScrollHeight=R.getScrollHeight.bind(R),R.getClientWidth=R.getClientWidth.bind(R),R.getClientHeight=R.getClientHeight.bind(R),R.getValues=R.getValues.bind(R),R.getThumbHorizontalWidth=R.getThumbHorizontalWidth.bind(R),R.getThumbVerticalHeight=R.getThumbVerticalHeight.bind(R),R.getScrollLeftForOffset=R.getScrollLeftForOffset.bind(R),R.getScrollTopForOffset=R.getScrollTopForOffset.bind(R),R.scrollLeft=R.scrollLeft.bind(R),R.scrollTop=R.scrollTop.bind(R),R.scrollToLeft=R.scrollToLeft.bind(R),R.scrollToTop=R.scrollToTop.bind(R),R.scrollToRight=R.scrollToRight.bind(R),R.scrollToBottom=R.scrollToBottom.bind(R),R.handleTrackMouseEnter=R.handleTrackMouseEnter.bind(R),R.handleTrackMouseLeave=R.handleTrackMouseLeave.bind(R),R.handleHorizontalTrackMouseDown=R.handleHorizontalTrackMouseDown.bind(R),R.handleVerticalTrackMouseDown=R.handleVerticalTrackMouseDown.bind(R),R.handleHorizontalThumbMouseDown=R.handleHorizontalThumbMouseDown.bind(R),R.handleVerticalThumbMouseDown=R.handleVerticalThumbMouseDown.bind(R),R.handleWindowResize=R.handleWindowResize.bind(R),R.handleScroll=R.handleScroll.bind(R),R.handleDrag=R.handleDrag.bind(R),R.handleDragEnd=R.handleDragEnd.bind(R),R.state={didMountUniversal:!1},R}return a(q,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var G=this.props.universal;G&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,l.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var G=this.view||{},L=G.scrollLeft,b=L===void 0?0:L,te=G.scrollTop,R=te===void 0?0:te,y=G.scrollWidth,C=y===void 0?0:y,W=G.scrollHeight,J=W===void 0?0:W,H=G.clientWidth,U=H===void 0?0:H,Z=G.clientHeight,re=Z===void 0?0:Z;return{left:b/(C-U)||0,top:R/(J-re)||0,scrollLeft:b,scrollTop:R,scrollWidth:C,scrollHeight:J,clientWidth:U,clientHeight:re}}},{key:"getThumbHorizontalWidth",value:function(){var G=this.props,L=G.thumbSize,b=G.thumbMinSize,te=this.view,R=te.scrollWidth,y=te.clientWidth,C=(0,$.default)(this.trackHorizontal),W=Math.ceil(y/R*C);return C<=W?0:L||Math.max(W,b)}},{key:"getThumbVerticalHeight",value:function(){var G=this.props,L=G.thumbSize,b=G.thumbMinSize,te=this.view,R=te.scrollHeight,y=te.clientHeight,C=(0,I.default)(this.trackVertical),W=Math.ceil(y/R*C);return C<=W?0:L||Math.max(W,b)}},{key:"getScrollLeftForOffset",value:function(G){var L=this.view,b=L.scrollWidth,te=L.clientWidth,R=(0,$.default)(this.trackHorizontal),y=this.getThumbHorizontalWidth();return G/(R-y)*(b-te)}},{key:"getScrollTopForOffset",value:function(G){var L=this.view,b=L.scrollHeight,te=L.clientHeight,R=(0,I.default)(this.trackVertical),y=this.getThumbVerticalHeight();return G/(R-y)*(b-te)}},{key:"scrollLeft",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=G)}},{key:"scrollTop",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=G)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var G=this.view,L=this.trackHorizontal,b=this.trackVertical,te=this.thumbHorizontal,R=this.thumbVertical;G.addEventListener("scroll",this.handleScroll),(0,T.default)()&&(L.addEventListener("mouseenter",this.handleTrackMouseEnter),L.addEventListener("mouseleave",this.handleTrackMouseLeave),L.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),b.addEventListener("mouseenter",this.handleTrackMouseEnter),b.addEventListener("mouseleave",this.handleTrackMouseLeave),b.addEventListener("mousedown",this.handleVerticalTrackMouseDown),te.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),R.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var G=this.view,L=this.trackHorizontal,b=this.trackVertical,te=this.thumbHorizontal,R=this.thumbVertical;G.removeEventListener("scroll",this.handleScroll),(0,T.default)()&&(L.removeEventListener("mouseenter",this.handleTrackMouseEnter),L.removeEventListener("mouseleave",this.handleTrackMouseLeave),L.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),b.removeEventListener("mouseenter",this.handleTrackMouseEnter),b.removeEventListener("mouseleave",this.handleTrackMouseLeave),b.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),te.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),R.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(G){var L=this,b=this.props,te=b.onScroll,R=b.onScrollFrame;te&&te(G),this.update(function(y){var C=y.scrollLeft,W=y.scrollTop;L.viewScrollLeft=C,L.viewScrollTop=W,R&&R(y)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var G=this.props.onScrollStart;G&&G(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var G=this.props.autoHide;G&&this.showTracks()}},{key:"handleScrollStop",value:function(){var G=this.props.onScrollStop;G&&G(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var G=this.props.autoHide;G&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,T.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(G){G.preventDefault();var L=G.target,b=G.clientX,te=L.getBoundingClientRect(),R=te.left,y=this.getThumbHorizontalWidth(),C=Math.abs(R-b)-y/2;this.view.scrollLeft=this.getScrollLeftForOffset(C)}},{key:"handleVerticalTrackMouseDown",value:function(G){G.preventDefault();var L=G.target,b=G.clientY,te=L.getBoundingClientRect(),R=te.top,y=this.getThumbVerticalHeight(),C=Math.abs(R-b)-y/2;this.view.scrollTop=this.getScrollTopForOffset(C)}},{key:"handleHorizontalThumbMouseDown",value:function(G){G.preventDefault(),this.handleDragStart(G);var L=G.target,b=G.clientX,te=L.offsetWidth,R=L.getBoundingClientRect(),y=R.left;this.prevPageX=te-(b-y)}},{key:"handleVerticalThumbMouseDown",value:function(G){G.preventDefault(),this.handleDragStart(G);var L=G.target,b=G.clientY,te=L.offsetHeight,R=L.getBoundingClientRect(),y=R.top;this.prevPageY=te-(b-y)}},{key:"setupDragging",value:function(){(0,c.default)(document.body,Q.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=_.default}},{key:"teardownDragging",value:function(){(0,c.default)(document.body,Q.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(G){this.dragging=!0,G.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(G){if(this.prevPageX){var L=G.clientX,b=this.trackHorizontal.getBoundingClientRect(),te=b.left,R=this.getThumbHorizontalWidth(),y=R-this.prevPageX,C=-te+L-y;this.view.scrollLeft=this.getScrollLeftForOffset(C)}if(this.prevPageY){var W=G.clientY,J=this.trackVertical.getBoundingClientRect(),H=J.top,U=this.getThumbVerticalHeight(),Z=U-this.prevPageY,re=-H+W-Z;this.view.scrollTop=this.getScrollTopForOffset(re)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var G=this.props.autoHide;G&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var G=this.props.autoHide;G&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var G=this.props.autoHide;G&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,c.default)(this.trackHorizontal,{opacity:1}),(0,c.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var G=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var L=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,c.default)(G.trackHorizontal,{opacity:0}),(0,c.default)(G.trackVertical,{opacity:0})},L)}}},{key:"detectScrolling",value:function(){var G=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){G.lastViewScrollLeft===G.viewScrollLeft&&G.lastViewScrollTop===G.viewScrollTop&&(clearInterval(G.detectScrollingInterval),G.scrolling=!1,G.handleScrollStop()),G.lastViewScrollLeft=G.viewScrollLeft,G.lastViewScrollTop=G.viewScrollTop},100))}},{key:"raf",value:function(G){var L=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)(function(){L.requestFrame=void 0,G()})}},{key:"update",value:function(G){var L=this;this.raf(function(){return L._update(G)})}},{key:"_update",value:function(G){var L=this.props,b=L.onUpdate,te=L.hideTracksWhenNotNeeded,R=this.getValues();if((0,T.default)()){var y=R.scrollLeft,C=R.clientWidth,W=R.scrollWidth,J=(0,$.default)(this.trackHorizontal),H=this.getThumbHorizontalWidth(),U=y/(W-C)*(J-H),Z={width:H,transform:"translateX("+U+"px)"},re=R.scrollTop,ue=R.clientHeight,me=R.scrollHeight,pe=(0,I.default)(this.trackVertical),ve=this.getThumbVerticalHeight(),he=re/(me-ue)*(pe-ve),ge={height:ve,transform:"translateY("+he+"px)"};if(te){var Se={visibility:W>C?"visible":"hidden"},ye={visibility:me>ue?"visible":"hidden"};(0,c.default)(this.trackHorizontal,Se),(0,c.default)(this.trackVertical,ye)}(0,c.default)(this.thumbHorizontal,Z),(0,c.default)(this.thumbVertical,ge)}b&&b(R),typeof G=="function"&&G(R)}},{key:"render",value:function(){var G=this,L=(0,T.default)(),b=this.props;b.onScroll,b.onScrollFrame,b.onScrollStart,b.onScrollStop,b.onUpdate;var te=b.renderView,R=b.renderTrackHorizontal,y=b.renderTrackVertical,C=b.renderThumbHorizontal,W=b.renderThumbVertical,J=b.tagName;b.hideTracksWhenNotNeeded;var H=b.autoHide;b.autoHideTimeout;var U=b.autoHideDuration;b.thumbSize,b.thumbMinSize;var Z=b.universal,re=b.autoHeight,ue=b.autoHeightMin,me=b.autoHeightMax,pe=b.style,ve=b.children,he=P(b,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),ge=this.state.didMountUniversal,Se=t({},Q.containerStyleDefault,re&&t({},Q.containerStyleAutoHeight,{minHeight:ue,maxHeight:me}),pe),ye=t({},Q.viewStyleDefault,{marginRight:L?-L:0,marginBottom:L?-L:0},re&&t({},Q.viewStyleAutoHeight,{minHeight:(0,v.default)(ue)?"calc("+ue+" + "+L+"px)":ue+L,maxHeight:(0,v.default)(me)?"calc("+me+" + "+L+"px)":me+L}),re&&Z&&!ge&&{minHeight:ue,maxHeight:me},Z&&!ge&&Q.viewStyleUniversalInitial),Re={transition:"opacity "+U+"ms",opacity:0},be=t({},Q.trackHorizontalStyleDefault,H&&Re,(!L||Z&&!ge)&&{display:"none"}),Le=t({},Q.trackVerticalStyleDefault,H&&Re,(!L||Z&&!ge)&&{display:"none"});return(0,d.createElement)(J,t({},he,{style:Se,ref:function(Te){G.container=Te}}),[(0,d.cloneElement)(te({style:ye}),{key:"view",ref:function(Te){G.view=Te}},ve),(0,d.cloneElement)(R({style:be}),{key:"trackHorizontal",ref:function(Te){G.trackHorizontal=Te}},(0,d.cloneElement)(C({style:Q.thumbHorizontalStyleDefault}),{ref:function(Te){G.thumbHorizontal=Te}})),(0,d.cloneElement)(y({style:Le}),{key:"trackVertical",ref:function(Te){G.trackVertical=Te}},(0,d.cloneElement)(W({style:Q.thumbVerticalStyleDefault}),{ref:function(Te){G.thumbVertical=Te}}))])}}]),q}(d.Component);r.default=X,X.propTypes={onScroll:p.default.func,onScrollFrame:p.default.func,onScrollStart:p.default.func,onScrollStop:p.default.func,onUpdate:p.default.func,renderView:p.default.func,renderTrackHorizontal:p.default.func,renderTrackVertical:p.default.func,renderThumbHorizontal:p.default.func,renderThumbVertical:p.default.func,tagName:p.default.string,thumbSize:p.default.number,thumbMinSize:p.default.number,hideTracksWhenNotNeeded:p.default.bool,autoHide:p.default.bool,autoHideTimeout:p.default.number,autoHideDuration:p.default.number,autoHeight:p.default.bool,autoHeightMin:p.default.oneOfType([p.default.number,p.default.string]),autoHeightMax:p.default.oneOfType([p.default.number,p.default.string]),universal:p.default.bool,style:p.default.object,children:p.default.node},X.defaultProps={renderView:j.renderViewDefault,renderTrackHorizontal:j.renderTrackHorizontalDefault,renderTrackVertical:j.renderTrackVerticalDefault,renderThumbHorizontal:j.renderThumbHorizontalDefault,renderThumbVertical:j.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}(Vh)),Vh}var h1;function jM(){return h1||(h1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.Scrollbars=void 0;var t=_M(),a=l(t);function l(o){return o&&o.__esModule?o:{default:o}}r.default=a.default,r.Scrollbars=a.default}(Gh)),Gh}var AM=jM();const MM=Jn(AM),MO=w.forwardRef((r,t)=>{const{viewClassName:a,children:l}=r;return S.jsx(MM,{ref:t,className:"scrollbars",autoHide:!0,hideTracksWhenNotNeeded:!0,renderTrackHorizontal:o=>S.jsx("div",{...o,className:"custom-scrollbars__track-horizontal"}),renderTrackVertical:o=>S.jsx("div",{...o,className:"custom-scrollbars__track-vertical"}),renderThumbHorizontal:o=>S.jsx("div",{...o,className:"custom-scrollbars__thumb-horizontal"}),renderThumbVertical:o=>S.jsx("div",{...o,className:"custom-scrollbars__thumb-vertical"}),renderView:o=>S.jsx("div",{...o,className:a}),children:l})}),NO=w.createContext({});function NM(r){const{children:t}=r,a=w.useRef(null),l=w.useCallback((o,u)=>{a.current&&(a.current.scrollLeft(o),a.current.scrollTop(u))},[]);return S.jsx(NO.Provider,{value:{scrollTo:l},children:S.jsx(MO,{ref:a,children:t})})}const No=()=>w.useContext(NO),DO=w.createContext({}),DM=(r,t)=>Kn(t,r)?r:t,LM=(r,t)=>Kn(t,r)?r:t;function zM(r){const{api:t}=_n(),[a,l]=w.useReducer(DM,null),[o,u]=w.useReducer(LM,null),c=w.useCallback(h=>{if(!a)return null;const p=Tr(a);h.theme&&(p.theme=h.theme),h.listItemsPerPage&&(p.listItemsPerPage=h.listItemsPerPage),h.galleryItemsPerPage&&(p.galleryItemsPerPage=h.galleryItemsPerPage),h.maxContentWidth&&(p.maxContentWidth=h.maxContentWidth),(async()=>Kn(a,p)||(await t.saveBrowseSettings(p),l(p)))()},[t,a]),d=w.useCallback(()=>{(async()=>(l(await t.getBrowseSettings()),u(await t.getBrowseSettingOptions())))()},[t]);if(w.useEffect(()=>{d()},[d]),!(!a||!o))return S.jsx(DO.Provider,{value:{settings:a,options:o,updateSettings:c,refreshSettings:d},children:r.children})}const Mr=()=>w.useContext(DO);function PM(r){return{sortBy:"last_downloaded",page:null,itemsPerPage:r.listItemsPerPage}}const HM=(r,t)=>{const a=Tr(r);return t.sortBy!==void 0&&(a.sortBy=t.sortBy),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Kn(a,r)?r:a};function p1(){const{api:r}=_n(),{settings:t}=Mr(),{scrollTo:a}=No(),[l,o]=w.useReducer(HM,PM(t)),[u,c]=w.useState(null),[d,h]=Oo();w.useEffect(()=>{const{sortBy:g,page:v}=l;if(g===null||v===null)return;const x=new AbortController;return(async()=>{const T=await r.getCampaignList({...l,sortBy:g,page:v});x.signal.aborted||c(T)})(),()=>x.abort()},[r,l]),w.useEffect(()=>{const g=Number(d.get("p"))||1;o({page:g}),a(0,0)},[d,a]),w.useEffect(()=>{o({itemsPerPage:t.listItemsPerPage})},[t.listItemsPerPage]);const p=(g,v=!1)=>{h(x=>{const T=new URLSearchParams(x);return T.set("p",String(g)),T},{replace:v})};if(w.useEffect(()=>{u&&u.campaigns.length===0&&u.total>0&&p(1,!0)},[u,p]),!!u)return S.jsx(On,{fluid:!0,children:S.jsx(vt,{className:"g-0 justify-content-center",children:S.jsxs(lt,{md:10,sm:12,className:`campaign-list mw-${t.maxContentWidth.toLowerCase()}`,children:[S.jsx("h2",{className:"my-4",children:"Creators"}),S.jsx(On,{fluid:!0,className:"p-0",children:S.jsxs(vt,{className:"mb-2 g-0 justify-content-center align-items-center",children:[S.jsx(lt,{className:"w-auto flex-fill",children:l.page?S.jsx(ju,{total:u.total,page:l.page,itemsPerPage:l.itemsPerPage,subject:{singular:"creator",plural:"creators"}}):null}),S.jsx(lt,{className:"w-auto d-flex justify-content-end",children:S.jsxs(Mt.Select,{size:"sm",className:"w-auto",onChange:g=>o({sortBy:g.currentTarget.value}),children:[S.jsx("option",{value:"a-z",selected:l.sortBy==="a-z",children:"A-Z"}),S.jsx("option",{value:"z-a",selected:l.sortBy==="z-a",children:"Z-A"}),S.jsx("option",{value:"most_media",selected:l.sortBy==="most_media",children:"Most media"}),S.jsx("option",{value:"most_content",selected:l.sortBy==="most_content",children:"Most content"}),S.jsx("option",{value:"last_downloaded",selected:l.sortBy==="last_downloaded",children:"Last downloaded"})]})})]})}),S.jsx("div",{className:"mb-4",children:u.campaigns.map(g=>S.jsx(uM,{campaign:g}))}),S.jsx(Au,{totalItems:u.total,itemsPerPage:l.itemsPerPage,onChange:p})]})})})}const kM=r=>w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...r},w.createElement("path",{d:"M 171.3548387096774 407.741935483871 Q 170.32258064516128 411.8709677419355 166.19354838709677 411.8709677419355 Q 160 411.8709677419355 160 407.741935483871 Q 161.03225806451613 404.64516129032256 165.16129032258064 404.64516129032256 Q 170.32258064516128 404.64516129032256 171.3548387096774 407.741935483871 L 171.3548387096774 407.741935483871 Z M 139.3548387096774 403.61290322580646 Q 138.32258064516128 406.7096774193548 143.48387096774192 408.7741935483871 Q 148.6451612903226 409.80645161290323 149.67741935483872 406.7096774193548 Q 150.70967741935485 402.5806451612903 145.5483870967742 401.5483870967742 Q 140.38709677419354 400.51612903225805 139.3548387096774 403.61290322580646 L 139.3548387096774 403.61290322580646 Z M 184.7741935483871 401.5483870967742 Q 179.61290322580646 402.5806451612903 179.61290322580646 406.7096774193548 Q 180.6451612903226 409.80645161290323 185.80645161290323 409.80645161290323 Q 190.96774193548387 407.741935483871 190.96774193548387 404.64516129032256 Q 189.93548387096774 401.5483870967742 184.7741935483871 401.5483870967742 L 184.7741935483871 401.5483870967742 Z M 252.90322580645162 6.193548387096774 Q 142.4516129032258 8.258064516129032 72.25806451612904 78.45161290322581 L 72.25806451612904 78.45161290322581 L 72.25806451612904 78.45161290322581 Q 2.064516129032258 148.6451612903226 0 258.06451612903226 Q 1.032258064516129 345.80645161290323 48.516129032258064 411.8709677419355 Q 96 477.93548387096774 175.48387096774192 504.7741935483871 Q 194.06451612903226 505.80645161290323 193.03225806451613 492.38709677419354 Q 193.03225806451613 488.258064516129 193.03225806451613 476.9032258064516 Q 193.03225806451613 453.16129032258067 193.03225806451613 429.4193548387097 Q 190.96774193548387 429.4193548387097 173.41935483870967 431.48387096774195 Q 154.83870967741936 432.51612903225805 134.19354838709677 427.35483870967744 Q 113.54838709677419 421.16129032258067 105.29032258064517 398.4516129032258 Q 105.29032258064517 396.38709677419354 97.03225806451613 381.93548387096774 Q 88.7741935483871 368.51612903225805 76.38709677419355 360.258064516129 Q 74.3225806451613 359.2258064516129 68.12903225806451 352 Q 60.903225806451616 345.80645161290323 78.45161290322581 344.7741935483871 Q 79.48387096774194 343.741935483871 92.90322580645162 348.9032258064516 Q 106.3225806451613 353.03225806451616 117.6774193548387 371.61290322580646 Q 136.25806451612902 399.48387096774195 157.93548387096774 399.48387096774195 Q 180.6451612903226 399.48387096774195 193.03225806451613 393.2903225806452 Q 197.16129032258064 368.51612903225805 209.5483870967742 358.19354838709677 Q 164.1290322580645 356.1290322580645 130.06451612903226 335.48387096774195 Q 96 315.8709677419355 93.93548387096774 243.61290322580646 Q 93.93548387096774 222.96774193548387 100.12903225806451 209.5483870967742 Q 105.29032258064517 196.1290322580645 117.6774193548387 183.74193548387098 Q 115.61290322580645 177.5483870967742 113.54838709677419 158.96774193548387 Q 111.48387096774194 140.38709677419354 120.7741935483871 113.54838709677419 Q 139.3548387096774 110.45161290322581 164.1290322580645 124.90322580645162 Q 189.93548387096774 138.32258064516128 192 141.41935483870967 Q 192 141.41935483870967 192 141.41935483870967 Q 222.96774193548387 132.1290322580645 257.03225806451616 132.1290322580645 Q 290.06451612903226 132.1290322580645 322.06451612903226 141.41935483870967 Q 322.06451612903226 140.38709677419354 335.48387096774195 132.1290322580645 Q 347.8709677419355 123.87096774193549 364.38709677419354 117.6774193548387 Q 380.9032258064516 110.45161290322581 393.2903225806452 113.54838709677419 Q 402.5806451612903 140.38709677419354 400.51612903225805 158.96774193548387 Q 398.4516129032258 177.5483870967742 395.35483870967744 183.74193548387098 Q 407.741935483871 196.1290322580645 414.96774193548384 209.5483870967742 Q 422.19354838709677 222.96774193548387 422.19354838709677 243.61290322580646 Q 421.16129032258067 293.16129032258067 404.64516129032256 316.9032258064516 Q 387.0967741935484 339.61290322580646 360.258064516129 347.8709677419355 Q 333.4193548387097 356.1290322580645 303.48387096774195 358.19354838709677 Q 320 369.5483870967742 321.03225806451616 405.6774193548387 Q 321.03225806451616 443.8709677419355 321.03225806451616 473.80645161290323 Q 321.03225806451616 487.2258064516129 321.03225806451616 492.38709677419354 Q 320 505.80645161290323 338.5806451612903 504.7741935483871 Q 417.03225806451616 477.93548387096774 464.51612903225805 411.8709677419355 Q 510.96774193548384 345.80645161290323 512 258.06451612903226 Q 510.96774193548384 185.80645161290323 476.9032258064516 129.03225806451613 Q 441.80645161290323 72.25806451612904 384 39.225806451612904 Q 325.16129032258067 7.225806451612903 252.90322580645162 6.193548387096774 L 252.90322580645162 6.193548387096774 Z M 100.12903225806451 362.3225806451613 Q 98.06451612903226 364.38709677419354 101.16129032258064 367.48387096774195 Q 104.25806451612904 370.5806451612903 106.3225806451613 368.51612903225805 Q 108.38709677419355 366.4516129032258 105.29032258064517 363.35483870967744 Q 103.2258064516129 360.258064516129 100.12903225806451 362.3225806451613 L 100.12903225806451 362.3225806451613 Z M 88.7741935483871 354.06451612903226 Q 88.7741935483871 356.1290322580645 91.87096774193549 358.19354838709677 Q 94.96774193548387 359.2258064516129 96 357.16129032258067 Q 97.03225806451613 355.0967741935484 93.93548387096774 353.03225806451616 Q 90.83870967741936 352 88.7741935483871 354.06451612903226 L 88.7741935483871 354.06451612903226 Z M 122.83870967741936 390.19354838709677 Q 120.7741935483871 393.2903225806452 123.87096774193549 397.4193548387097 Q 128 400.51612903225805 131.09677419354838 398.4516129032258 Q 132.1290322580645 395.35483870967744 129.03225806451613 391.2258064516129 Q 124.90322580645162 388.1290322580645 122.83870967741936 390.19354838709677 L 122.83870967741936 390.19354838709677 Z M 110.45161290322581 375.741935483871 Q 108.38709677419355 377.80645161290323 110.45161290322581 381.93548387096774 Q 113.54838709677419 385.03225806451616 116.64516129032258 384 Q 118.70967741935483 381.93548387096774 116.64516129032258 377.80645161290323 Q 113.54838709677419 373.6774193548387 110.45161290322581 375.741935483871 L 110.45161290322581 375.741935483871 Z"}));function BM(r){const{show:t,onClose:a}=r,{settings:l,options:o,updateSettings:u,refreshSettings:c}=Mr();w.useEffect(()=>{t&&c()},[t,c]);const d=w.useCallback(h=>{const p=h.target.dataset.setting,g=h.target.dataset.type;if(!p)return;const v=g==="number"?Number(h.target.value):h.target.value;if(typeof v=="number"&&isNaN(v))return;const x={[p]:v};u(x)},[u]);return!l||!o?null:S.jsxs(Ha,{show:t,onHide:a,centered:!0,scrollable:!0,children:[S.jsx(Ha.Header,{closeButton:!0}),S.jsx(Ha.Body,{children:S.jsxs(Mt,{children:[S.jsxs(Mt.Group,{as:vt,className:"mb-3",children:[S.jsx(Mt.Label,{column:!0,sm:5,children:"Theme:"}),S.jsx(lt,{sm:7,children:S.jsx(Mt.Select,{"data-setting":"theme",value:l.theme,onChange:d,children:o.themes.map(h=>S.jsx("option",{value:h.value,children:h.name},`theme-${h.value}`))})})]}),S.jsxs(Mt.Group,{as:vt,className:"mb-3",children:[S.jsx(Mt.Label,{column:!0,sm:5,children:"List items per page:"}),S.jsx(lt,{sm:7,children:S.jsx(Mt.Select,{"data-setting":"listItemsPerPage","data-type":"number",value:l.listItemsPerPage,onChange:d,children:o.listItemsPerPage.map(h=>S.jsx("option",{value:h,children:h},`listItemsPerPage-${h}`))})})]}),S.jsxs(Mt.Group,{as:vt,className:"mb-3",children:[S.jsx(Mt.Label,{column:!0,sm:5,children:"Gallery items per page:"}),S.jsx(lt,{sm:7,children:S.jsx(Mt.Select,{"data-setting":"galleryItemsPerPage","data-type":"number",value:l.galleryItemsPerPage,onChange:d,children:o.galleryItemsPerPage.map(h=>S.jsx("option",{value:h,children:h},`galleryItemsPerPage-${h}`))})})]}),S.jsxs(Mt.Group,{as:vt,className:"mb-3",children:[S.jsx(Mt.Label,{column:!0,sm:5,children:"Max. content width:"}),S.jsx(lt,{sm:7,children:S.jsx(Mt.Select,{"data-setting":"maxContentWidth","data-type":"string",value:l.maxContentWidth,onChange:d,children:o.maxContentWidth.map(h=>S.jsx("option",{value:h,children:h},`maxContentWidth-${h}`))})})]})]})})]})}const LO=w.createContext({});function $M(r){const{children:t}=r,[a,l]=w.useState(!1),o=w.useCallback(()=>{l(!0)},[]),u=w.useCallback(()=>{l(!1)},[]);return S.jsxs(LO.Provider,{value:{showBrowseSettingsModal:o,closeBrowseSettingsModal:u},children:[t,S.jsx(BM,{show:a,onClose:u})]})}const IM=()=>w.useContext(LO);function zO(r){const{closeButton:t=!1,onClose:a}=r,{api:l}=_n(),{showBrowseSettingsModal:o}=IM(),[u,c]=w.useState(null);w.useEffect(()=>{const g=new AbortController;return(async()=>{const v=(await l.getCampaignList({sortBy:"last_downloaded",itemsPerPage:10})).campaigns;g.signal.aborted||c(v)})(),()=>g.abort()},[l]);const d=w.useCallback(()=>{a&&a()},[a]),h=w.useCallback(g=>{g.preventDefault(),a&&a(),o()},[a,o]),p=w.useMemo(()=>{if(!u||u.length===0)return null;const g=u.map(v=>S.jsxs(on,{to:`/campaigns/${v.id}`,className:"sidebar__link",onClick:d,children:[S.jsx(fa,{className:"sidebar__link-icon me-2",mediaId:`campaign:${v.id}:avatar`}),S.jsx("span",{className:"sidebar__link-text",children:v.name})]}));return S.jsxs(Ne,{className:"mt-4 mb-5 px-3",gap:3,children:[S.jsx("h6",{className:"sidebar__section-title",children:"Recently downloaded"}),g]})},[u]);return S.jsx(S.Fragment,{children:S.jsx(it,{className:"sidebar p-0",children:S.jsxs(Ne,{className:"overflow-hidden",children:[S.jsxs(Ne,{direction:"horizontal",className:"sidebar__header justify-content-between p-3",children:[S.jsx("div",{className:"sidebar__brand fs-5 fw-bold",children:S.jsx(on,{to:"/",onClick:d,children:"patreon-dl"})}),t?S.jsx("button",{className:"btn-close",onClick:a?()=>a():void 0}):null]}),S.jsx(MO,{viewClassName:"sidebar__main",children:S.jsxs(Ne,{className:"flex-fill",children:[p,S.jsxs(Ne,{className:"justify-content-end px-3 pb-3",gap:3,children:[S.jsxs("a",{href:"#",className:"sidebar__link",onClick:h,children:[S.jsx("span",{className:"material-icons me-2",children:"settings"}),S.jsx("span",{className:"sidebar__link-text",children:"Settings"})]}),S.jsxs(on,{to:"https://github.com/patrickkfkan/patreon-dl",className:"sidebar__link",onClick:d,children:[S.jsx(kM,{className:"sidebar__link-icon sidebar__link-icon--svg me-2"}),S.jsx("span",{className:"sidebar__link-text",children:"Project homepage"})]})]})]})})]})})})}function qM(){const[r,t]=w.useState(!1);return S.jsxs(S.Fragment,{children:[S.jsx(Qt,{variant:"link",className:"sidebar-trigger d-flex align-items-center",onClick:()=>t(!0),children:S.jsx("span",{className:"material-icons",children:"menu"})}),S.jsx(XS,{show:r,onHide:()=>t(!1),placement:"start",children:S.jsx(XS.Body,{className:"p-0",children:S.jsx(zO,{closeButton:!0,onClose:()=>t(!1)})})})]})}function UM(){return S.jsx(On,{fluid:!0,className:"p-0 vh-100",children:S.jsxs(vt,{className:"g-0 h-100",children:[S.jsx(lt,{lg:3,className:"p-0 sticky-top d-none d-lg-block",style:{maxWidth:"18em"},children:S.jsx(zO,{})}),S.jsx(lt,{className:"p-0",children:S.jsxs(NM,{children:[S.jsxs(Ne,{direction:"horizontal",className:"d-lg-none sticky-top bg-body py-2",children:[S.jsx(qM,{}),S.jsx("div",{className:"fs-5",children:S.jsx(on,{className:"text-body",to:"/",children:"patreon-dl"})})]}),S.jsx(Xp,{})]})})]})})}/*! *****************************************************************************
69
69
  Copyright (c) Microsoft Corporation.
70
70
 
71
71
  Permission to use, copy, modify, and/or distribute this software for any
@@ -96,9 +96,9 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
96
96
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
97
97
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
98
98
  PERFORMANCE OF THIS SOFTWARE.
99
- ***************************************************************************** */var la=function(){return la=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},la.apply(this,arguments)};function VM(){for(var r=0,t=0,a=arguments.length;t<a;t++)r+=arguments[t].length;for(var l=Array(r),o=0,t=0;t<a;t++)for(var u=arguments[t],c=0,d=u.length;c<d;c++,o++)l[o]=u[c];return l}var at={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose"},YM={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}};function XM(){(function(){if(typeof window.CustomEvent=="function")return!1;function r(t,a){a=a||{bubbles:!1,cancelable:!1,detail:null};var l=document.createEvent("CustomEvent");return l.initCustomEvent(t,a.bubbles,a.cancelable,a.detail),l}window.CustomEvent=r})(),function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)}()}var PO=function(){function r(t){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(t),this.firstElement=this._getFirstEl(),this}return r.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var a=Math.random()*16|0,l=t=="x"?a:a&3|8;return l.toString(16)})},r.prototype._getSelector=function(t,a){if(a===void 0&&(a=document),typeof t!="string")return t;a=a||document;var l=t.substring(0,1);return l==="#"?a.querySelector(t):a.querySelectorAll(t)},r.prototype._each=function(t){return this.selector?(this.selector.length!==void 0?[].forEach.call(this.selector,t):t(this.selector,0),this):this},r.prototype._setCssVendorPrefix=function(t,a,l){var o=a.replace(/-([a-z])/gi,function(u,c){return c.toUpperCase()});this.cssVenderPrefixes.indexOf(o)!==-1?(t.style[o.charAt(0).toLowerCase()+o.slice(1)]=l,t.style["webkit"+o]=l,t.style["moz"+o]=l,t.style["ms"+o]=l,t.style["o"+o]=l):t.style[o]=l},r.prototype._getFirstEl=function(){return this.selector&&this.selector.length!==void 0?this.selector[0]:this.selector},r.prototype.isEventMatched=function(t,a){var l=a.split(".");return t.split(".").filter(function(o){return o}).every(function(o){return l.indexOf(o)!==-1})},r.prototype.attr=function(t,a){return a===void 0?this.firstElement?this.firstElement.getAttribute(t):"":(this._each(function(l){l.setAttribute(t,a)}),this)},r.prototype.find=function(t){return je(this._getSelector(t,this.selector))},r.prototype.first=function(){return this.selector&&this.selector.length!==void 0?je(this.selector[0]):je(this.selector)},r.prototype.eq=function(t){return je(this.selector[t])},r.prototype.parent=function(){return je(this.selector.parentElement)},r.prototype.get=function(){return this._getFirstEl()},r.prototype.removeAttr=function(t){var a=t.split(" ");return this._each(function(l){a.forEach(function(o){return l.removeAttribute(o)})}),this},r.prototype.wrap=function(t){if(!this.firstElement)return this;var a=document.createElement("div");return a.className=t,this.firstElement.parentNode.insertBefore(a,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),a.appendChild(this.firstElement),this},r.prototype.addClass=function(t){return t===void 0&&(t=""),this._each(function(a){t.split(" ").forEach(function(l){l&&a.classList.add(l)})}),this},r.prototype.removeClass=function(t){return this._each(function(a){t.split(" ").forEach(function(l){l&&a.classList.remove(l)})}),this},r.prototype.hasClass=function(t){return this.firstElement?this.firstElement.classList.contains(t):!1},r.prototype.hasAttribute=function(t){return this.firstElement?this.firstElement.hasAttribute(t):!1},r.prototype.toggleClass=function(t){return this.firstElement?(this.hasClass(t)?this.removeClass(t):this.addClass(t),this):this},r.prototype.css=function(t,a){var l=this;return this._each(function(o){l._setCssVendorPrefix(o,t,a)}),this},r.prototype.on=function(t,a){var l=this;return this.selector?(t.split(" ").forEach(function(o){Array.isArray(r.eventListeners[o])||(r.eventListeners[o]=[]),r.eventListeners[o].push(a),l.selector.addEventListener(o.split(".")[0],a)}),this):this},r.prototype.once=function(t,a){var l=this;return this.on(t,function(){l.off(t),a(t)}),this},r.prototype.off=function(t){var a=this;return this.selector?(Object.keys(r.eventListeners).forEach(function(l){a.isEventMatched(t,l)&&(r.eventListeners[l].forEach(function(o){a.selector.removeEventListener(l.split(".")[0],o)}),r.eventListeners[l]=[])}),this):this},r.prototype.trigger=function(t,a){if(!this.firstElement)return this;var l=new CustomEvent(t.split(".")[0],{detail:a||null});return this.firstElement.dispatchEvent(l),this},r.prototype.load=function(t){var a=this;return fetch(t).then(function(l){return l.text()}).then(function(l){a.selector.innerHTML=l}),this},r.prototype.html=function(t){return t===void 0?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(a){a.innerHTML=t}),this)},r.prototype.append=function(t){return this._each(function(a){typeof t=="string"?a.insertAdjacentHTML("beforeend",t):a.appendChild(t)}),this},r.prototype.prepend=function(t){return this._each(function(a){typeof t=="string"?a.insertAdjacentHTML("afterbegin",t):t instanceof HTMLElement&&a.insertBefore(t.cloneNode(!0),a.firstChild)}),this},r.prototype.remove=function(){return this._each(function(t){t.parentNode.removeChild(t)}),this},r.prototype.empty=function(){return this._each(function(t){t.innerHTML=""}),this},r.prototype.scrollTop=function(t){return t!==void 0?(document.body.scrollTop=t,document.documentElement.scrollTop=t,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},r.prototype.scrollLeft=function(t){return t!==void 0?(document.body.scrollLeft=t,document.documentElement.scrollLeft=t,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},r.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var t=this.firstElement.getBoundingClientRect(),a=je("body").style().marginLeft;return{left:t.left-parseFloat(a)+this.scrollLeft(),top:t.top+this.scrollTop()}},r.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},r.prototype.width=function(){var t=this.style();return this.firstElement.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)},r.prototype.height=function(){var t=this.style();return this.firstElement.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)},r.eventListeners={},r}();function je(r){return XM(),new PO(r)}var WM=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function FM(r){return r==="href"?"src":(r=r.replace("data-",""),r=r.charAt(0).toLowerCase()+r.slice(1),r=r.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()}),r)}var Rt={fetchCaptionFromUrl:function(r,t,a){fetch(r).then(function(l){return l.text()}).then(function(l){if(a==="append"){var o='<div class="lg-sub-html">'+l+"</div>";t.append(o)}else t.html(l)})},getSize:function(r,t,a,l){a===void 0&&(a=0);var o=je(r),u=o.attr("data-lg-size")||l;if(u){var c=u.split(",");if(c[1])for(var d=window.innerWidth,h=0;h<c.length;h++){var p=c[h],m=parseInt(p.split("-")[2],10);if(m>d){u=p;break}h===c.length-1&&(u=p)}var y=u.split("-"),x=parseInt(y[0],10),T=parseInt(y[1],10),N=t.width(),_=t.height()-a,z=Math.min(N,x),$=Math.min(_,T),V=Math.min(z/x,$/T);return{width:x*V,height:T*V}}},getTransform:function(r,t,a,l,o){if(o){var u=je(r).find("img").first();if(u.get()){var c=t.get().getBoundingClientRect(),d=c.width,h=t.height()-(a+l),p=u.width(),m=u.height(),y=u.style(),x=(d-p)/2-u.offset().left+(parseFloat(y.paddingLeft)||0)+(parseFloat(y.borderLeft)||0)+je(window).scrollLeft()+c.left,T=(h-m)/2-u.offset().top+(parseFloat(y.paddingTop)||0)+(parseFloat(y.borderTop)||0)+je(window).scrollTop()+a,N=p/o.width,_=m/o.height,z="translate3d("+(x*=-1)+"px, "+(T*=-1)+"px, 0) scale3d("+N+", "+_+", 1)";return z}}},getIframeMarkup:function(r,t,a,l,o,u){var c=u?'title="'+u+'"':"";return'<div class="lg-media-cont lg-has-iframe" style="width:'+r+"; max-width:"+a+"; height: "+t+"; max-height:"+l+`">
99
+ ***************************************************************************** */var oa=function(){return oa=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},oa.apply(this,arguments)};function VM(){for(var r=0,t=0,a=arguments.length;t<a;t++)r+=arguments[t].length;for(var l=Array(r),o=0,t=0;t<a;t++)for(var u=arguments[t],c=0,d=u.length;c<d;c++,o++)l[o]=u[c];return l}var at={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose"},WM={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}};function YM(){(function(){if(typeof window.CustomEvent=="function")return!1;function r(t,a){a=a||{bubbles:!1,cancelable:!1,detail:null};var l=document.createEvent("CustomEvent");return l.initCustomEvent(t,a.bubbles,a.cancelable,a.detail),l}window.CustomEvent=r})(),function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)}()}var PO=function(){function r(t){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(t),this.firstElement=this._getFirstEl(),this}return r.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var a=Math.random()*16|0,l=t=="x"?a:a&3|8;return l.toString(16)})},r.prototype._getSelector=function(t,a){if(a===void 0&&(a=document),typeof t!="string")return t;a=a||document;var l=t.substring(0,1);return l==="#"?a.querySelector(t):a.querySelectorAll(t)},r.prototype._each=function(t){return this.selector?(this.selector.length!==void 0?[].forEach.call(this.selector,t):t(this.selector,0),this):this},r.prototype._setCssVendorPrefix=function(t,a,l){var o=a.replace(/-([a-z])/gi,function(u,c){return c.toUpperCase()});this.cssVenderPrefixes.indexOf(o)!==-1?(t.style[o.charAt(0).toLowerCase()+o.slice(1)]=l,t.style["webkit"+o]=l,t.style["moz"+o]=l,t.style["ms"+o]=l,t.style["o"+o]=l):t.style[o]=l},r.prototype._getFirstEl=function(){return this.selector&&this.selector.length!==void 0?this.selector[0]:this.selector},r.prototype.isEventMatched=function(t,a){var l=a.split(".");return t.split(".").filter(function(o){return o}).every(function(o){return l.indexOf(o)!==-1})},r.prototype.attr=function(t,a){return a===void 0?this.firstElement?this.firstElement.getAttribute(t):"":(this._each(function(l){l.setAttribute(t,a)}),this)},r.prototype.find=function(t){return je(this._getSelector(t,this.selector))},r.prototype.first=function(){return this.selector&&this.selector.length!==void 0?je(this.selector[0]):je(this.selector)},r.prototype.eq=function(t){return je(this.selector[t])},r.prototype.parent=function(){return je(this.selector.parentElement)},r.prototype.get=function(){return this._getFirstEl()},r.prototype.removeAttr=function(t){var a=t.split(" ");return this._each(function(l){a.forEach(function(o){return l.removeAttribute(o)})}),this},r.prototype.wrap=function(t){if(!this.firstElement)return this;var a=document.createElement("div");return a.className=t,this.firstElement.parentNode.insertBefore(a,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),a.appendChild(this.firstElement),this},r.prototype.addClass=function(t){return t===void 0&&(t=""),this._each(function(a){t.split(" ").forEach(function(l){l&&a.classList.add(l)})}),this},r.prototype.removeClass=function(t){return this._each(function(a){t.split(" ").forEach(function(l){l&&a.classList.remove(l)})}),this},r.prototype.hasClass=function(t){return this.firstElement?this.firstElement.classList.contains(t):!1},r.prototype.hasAttribute=function(t){return this.firstElement?this.firstElement.hasAttribute(t):!1},r.prototype.toggleClass=function(t){return this.firstElement?(this.hasClass(t)?this.removeClass(t):this.addClass(t),this):this},r.prototype.css=function(t,a){var l=this;return this._each(function(o){l._setCssVendorPrefix(o,t,a)}),this},r.prototype.on=function(t,a){var l=this;return this.selector?(t.split(" ").forEach(function(o){Array.isArray(r.eventListeners[o])||(r.eventListeners[o]=[]),r.eventListeners[o].push(a),l.selector.addEventListener(o.split(".")[0],a)}),this):this},r.prototype.once=function(t,a){var l=this;return this.on(t,function(){l.off(t),a(t)}),this},r.prototype.off=function(t){var a=this;return this.selector?(Object.keys(r.eventListeners).forEach(function(l){a.isEventMatched(t,l)&&(r.eventListeners[l].forEach(function(o){a.selector.removeEventListener(l.split(".")[0],o)}),r.eventListeners[l]=[])}),this):this},r.prototype.trigger=function(t,a){if(!this.firstElement)return this;var l=new CustomEvent(t.split(".")[0],{detail:a||null});return this.firstElement.dispatchEvent(l),this},r.prototype.load=function(t){var a=this;return fetch(t).then(function(l){return l.text()}).then(function(l){a.selector.innerHTML=l}),this},r.prototype.html=function(t){return t===void 0?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(a){a.innerHTML=t}),this)},r.prototype.append=function(t){return this._each(function(a){typeof t=="string"?a.insertAdjacentHTML("beforeend",t):a.appendChild(t)}),this},r.prototype.prepend=function(t){return this._each(function(a){typeof t=="string"?a.insertAdjacentHTML("afterbegin",t):t instanceof HTMLElement&&a.insertBefore(t.cloneNode(!0),a.firstChild)}),this},r.prototype.remove=function(){return this._each(function(t){t.parentNode.removeChild(t)}),this},r.prototype.empty=function(){return this._each(function(t){t.innerHTML=""}),this},r.prototype.scrollTop=function(t){return t!==void 0?(document.body.scrollTop=t,document.documentElement.scrollTop=t,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},r.prototype.scrollLeft=function(t){return t!==void 0?(document.body.scrollLeft=t,document.documentElement.scrollLeft=t,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},r.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var t=this.firstElement.getBoundingClientRect(),a=je("body").style().marginLeft;return{left:t.left-parseFloat(a)+this.scrollLeft(),top:t.top+this.scrollTop()}},r.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},r.prototype.width=function(){var t=this.style();return this.firstElement.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)},r.prototype.height=function(){var t=this.style();return this.firstElement.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)},r.eventListeners={},r}();function je(r){return YM(),new PO(r)}var XM=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function FM(r){return r==="href"?"src":(r=r.replace("data-",""),r=r.charAt(0).toLowerCase()+r.slice(1),r=r.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()}),r)}var Rt={fetchCaptionFromUrl:function(r,t,a){fetch(r).then(function(l){return l.text()}).then(function(l){if(a==="append"){var o='<div class="lg-sub-html">'+l+"</div>";t.append(o)}else t.html(l)})},getSize:function(r,t,a,l){a===void 0&&(a=0);var o=je(r),u=o.attr("data-lg-size")||l;if(u){var c=u.split(",");if(c[1])for(var d=window.innerWidth,h=0;h<c.length;h++){var p=c[h],g=parseInt(p.split("-")[2],10);if(g>d){u=p;break}h===c.length-1&&(u=p)}var v=u.split("-"),x=parseInt(v[0],10),T=parseInt(v[1],10),N=t.width(),_=t.height()-a,z=Math.min(N,x),$=Math.min(_,T),V=Math.min(z/x,$/T);return{width:x*V,height:T*V}}},getTransform:function(r,t,a,l,o){if(o){var u=je(r).find("img").first();if(u.get()){var c=t.get().getBoundingClientRect(),d=c.width,h=t.height()-(a+l),p=u.width(),g=u.height(),v=u.style(),x=(d-p)/2-u.offset().left+(parseFloat(v.paddingLeft)||0)+(parseFloat(v.borderLeft)||0)+je(window).scrollLeft()+c.left,T=(h-g)/2-u.offset().top+(parseFloat(v.paddingTop)||0)+(parseFloat(v.borderTop)||0)+je(window).scrollTop()+a,N=p/o.width,_=g/o.height,z="translate3d("+(x*=-1)+"px, "+(T*=-1)+"px, 0) scale3d("+N+", "+_+", 1)";return z}}},getIframeMarkup:function(r,t,a,l,o,u){var c=u?'title="'+u+'"':"";return'<div class="lg-media-cont lg-has-iframe" style="width:'+r+"; max-width:"+a+"; height: "+t+"; max-height:"+l+`">
100
100
  <iframe class="lg-object" frameborder="0" `+c+' src="'+o+`" allowfullscreen="true"></iframe>
101
- </div>`},getImgMarkup:function(r,t,a,l,o,u){var c=l?'srcset="'+l+'"':"",d=o?'sizes="'+o+'"':"",h="<img "+a+" "+c+" "+d+' class="lg-object lg-image" data-index="'+r+'" src="'+t+'" />',p="";if(u){var m=typeof u=="string"?JSON.parse(u):u;p=m.map(function(y){var x="";return Object.keys(y).forEach(function(T){x+=" "+T+'="'+y[T]+'"'}),"<source "+x+"></source>"})}return""+p+h},getResponsiveSrc:function(r){for(var t=[],a=[],l="",o=0;o<r.length;o++){var u=r[o].split(" ");u[0]===""&&u.splice(0,1),a.push(u[0]),t.push(u[1])}for(var c=window.innerWidth,d=0;d<t.length;d++)if(parseInt(t[d],10)>c){l=a[d];break}return l},isImageLoaded:function(r){return!(!r||!r.complete||r.naturalWidth===0)},getVideoPosterMarkup:function(r,t,a,l,o){var u="";o&&o.youtube?u="lg-has-youtube":o&&o.vimeo?u="lg-has-vimeo":u="lg-has-html5";var c=t;return typeof t!="string"&&(c=t.outerHTML),'<div class="lg-video-cont '+u+'" style="'+a+`">
101
+ </div>`},getImgMarkup:function(r,t,a,l,o,u){var c=l?'srcset="'+l+'"':"",d=o?'sizes="'+o+'"':"",h="<img "+a+" "+c+" "+d+' class="lg-object lg-image" data-index="'+r+'" src="'+t+'" />',p="";if(u){var g=typeof u=="string"?JSON.parse(u):u;p=g.map(function(v){var x="";return Object.keys(v).forEach(function(T){x+=" "+T+'="'+v[T]+'"'}),"<source "+x+"></source>"})}return""+p+h},getResponsiveSrc:function(r){for(var t=[],a=[],l="",o=0;o<r.length;o++){var u=r[o].split(" ");u[0]===""&&u.splice(0,1),a.push(u[0]),t.push(u[1])}for(var c=window.innerWidth,d=0;d<t.length;d++)if(parseInt(t[d],10)>c){l=a[d];break}return l},isImageLoaded:function(r){return!(!r||!r.complete||r.naturalWidth===0)},getVideoPosterMarkup:function(r,t,a,l,o){var u="";o&&o.youtube?u="lg-has-youtube":o&&o.vimeo?u="lg-has-vimeo":u="lg-has-html5";var c=t;return typeof t!="string"&&(c=t.outerHTML),'<div class="lg-video-cont '+u+'" style="'+a+`">
102
102
  <div class="lg-video-play-button">
103
103
  <svg
104
104
  viewBox="0 0 20 20"
@@ -119,8 +119,8 @@ PERFORMANCE OF THIS SOFTWARE.
119
119
  </div>
120
120
  `+c+`
121
121
  <img class="lg-object lg-video-poster" src="`+r+`" />
122
- </div>`},getFocusableElements:function(r){var t=r.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),a=[].filter.call(t,function(l){var o=window.getComputedStyle(l);return o.display!=="none"&&o.visibility!=="hidden"});return a},getDynamicOptions:function(r,t,a,l){var o=[],u=VM(WM,t);return[].forEach.call(r,function(c){for(var d={},h=0;h<c.attributes.length;h++){var p=c.attributes[h];if(p.specified){var m=FM(p.name),y="";u.indexOf(m)>-1&&(y=m),y&&(d[y]=p.value)}}var x=je(c),T=x.find("img").first().attr("alt"),N=x.attr("title"),_=l?x.attr(l):x.find("img").first().attr("src");d.thumb=_,a&&!d.subHtml&&(d.subHtml=N||T||""),d.alt=T||N||"",o.push(d)}),o},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(r,t,a){if(!r){if(t)return{html5:!0};console.error("lightGallery :- data-src is not provided on slide item "+(a+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");return}var l=r.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),o=r.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),u=r.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);if(l)return{youtube:l};if(o)return{vimeo:o};if(u)return{wistia:u}}},g1=0,QM=function(){function r(t,a){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!t)return this;if(g1++,this.lgId=g1,this.el=t,this.LGel=je(t),this.generateSettings(a),this.buildModules(),this.settings.dynamic&&this.settings.dynamicEl!==void 0&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return r.prototype.generateSettings=function(t){if(this.settings=la(la({},YM),t),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():Rt.isMobile()){var a=la(la({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=la(la({},this.settings),a)}},r.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var t=this.settings.container;if(typeof t=="function")this.settings.container=t();else if(typeof t=="string"){var a=document.querySelector(t);this.settings.container=a??document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},r.prototype.init=function(){var t=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(at.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){t.enableDrag(),t.enableSwipe(),t.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},r.prototype.openGalleryOnItemClick=function(){for(var t=this,a=function(u){var c=l.items[u],d=je(c),h=PO.generateUUID();d.attr("data-lg-id",h).on("click.lgcustom-item-"+h,function(p){p.preventDefault();var m=t.settings.index||u;t.openGallery(m,c)})},l=this,o=0;o<this.items.length;o++)a(o)},r.prototype.buildModules=function(){var t=this;this.settings.plugins.forEach(function(a){t.plugins.push(new a(t,je))})},r.prototype.validateLicense=function(){this.settings.licenseKey?this.settings.licenseKey==="0000-0000-000-0000"&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},r.prototype.getSlideItem=function(t){return je(this.getSlideItemId(t))},r.prototype.getSlideItemId=function(t){return"#lg-item-"+this.lgId+"-"+t},r.prototype.getIdName=function(t){return t+"-"+this.lgId},r.prototype.getElementById=function(t){return je("#"+this.getIdName(t))},r.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},r.prototype.buildStructure=function(){var t=this,a=this.$container&&this.$container.get();if(!a){var l="",o="";this.settings.controls&&(l='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+` </button>
123
- <button type="button" id="`+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),this.settings.appendSubHtmlTo!==".lg-item"&&(o='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var u="";this.settings.allowMediaOverlap&&(u+="lg-media-overlap ");var c=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",d=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",h="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),p=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",m=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",y=`
122
+ </div>`},getFocusableElements:function(r){var t=r.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),a=[].filter.call(t,function(l){var o=window.getComputedStyle(l);return o.display!=="none"&&o.visibility!=="hidden"});return a},getDynamicOptions:function(r,t,a,l){var o=[],u=VM(XM,t);return[].forEach.call(r,function(c){for(var d={},h=0;h<c.attributes.length;h++){var p=c.attributes[h];if(p.specified){var g=FM(p.name),v="";u.indexOf(g)>-1&&(v=g),v&&(d[v]=p.value)}}var x=je(c),T=x.find("img").first().attr("alt"),N=x.attr("title"),_=l?x.attr(l):x.find("img").first().attr("src");d.thumb=_,a&&!d.subHtml&&(d.subHtml=N||T||""),d.alt=T||N||"",o.push(d)}),o},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(r,t,a){if(!r){if(t)return{html5:!0};console.error("lightGallery :- data-src is not provided on slide item "+(a+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");return}var l=r.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),o=r.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),u=r.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);if(l)return{youtube:l};if(o)return{vimeo:o};if(u)return{wistia:u}}},m1=0,QM=function(){function r(t,a){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!t)return this;if(m1++,this.lgId=m1,this.el=t,this.LGel=je(t),this.generateSettings(a),this.buildModules(),this.settings.dynamic&&this.settings.dynamicEl!==void 0&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return r.prototype.generateSettings=function(t){if(this.settings=oa(oa({},WM),t),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():Rt.isMobile()){var a=oa(oa({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=oa(oa({},this.settings),a)}},r.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var t=this.settings.container;if(typeof t=="function")this.settings.container=t();else if(typeof t=="string"){var a=document.querySelector(t);this.settings.container=a??document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},r.prototype.init=function(){var t=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(at.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){t.enableDrag(),t.enableSwipe(),t.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},r.prototype.openGalleryOnItemClick=function(){for(var t=this,a=function(u){var c=l.items[u],d=je(c),h=PO.generateUUID();d.attr("data-lg-id",h).on("click.lgcustom-item-"+h,function(p){p.preventDefault();var g=t.settings.index||u;t.openGallery(g,c)})},l=this,o=0;o<this.items.length;o++)a(o)},r.prototype.buildModules=function(){var t=this;this.settings.plugins.forEach(function(a){t.plugins.push(new a(t,je))})},r.prototype.validateLicense=function(){this.settings.licenseKey?this.settings.licenseKey==="0000-0000-000-0000"&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},r.prototype.getSlideItem=function(t){return je(this.getSlideItemId(t))},r.prototype.getSlideItemId=function(t){return"#lg-item-"+this.lgId+"-"+t},r.prototype.getIdName=function(t){return t+"-"+this.lgId},r.prototype.getElementById=function(t){return je("#"+this.getIdName(t))},r.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},r.prototype.buildStructure=function(){var t=this,a=this.$container&&this.$container.get();if(!a){var l="",o="";this.settings.controls&&(l='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+` </button>
123
+ <button type="button" id="`+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),this.settings.appendSubHtmlTo!==".lg-item"&&(o='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var u="";this.settings.allowMediaOverlap&&(u+="lg-media-overlap ");var c=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",d=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",h="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),p=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",g=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",v=`
124
124
  <div class="`+h+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+c+" "+d+` role="dialog"
125
125
  >
126
126
  <div id="`+this.getIdName("lg-backdrop")+`" class="lg-backdrop"></div>
@@ -133,7 +133,7 @@ PERFORMANCE OF THIS SOFTWARE.
133
133
  `+l+`
134
134
  </div>
135
135
  <div id="`+this.getIdName("lg-toolbar")+`" class="lg-toolbar lg-group">
136
- `+m+`
136
+ `+g+`
137
137
  `+p+`
138
138
  </div>
139
139
  `+(this.settings.appendSubHtmlTo===".lg-outer"?o:"")+`
@@ -142,13 +142,13 @@ PERFORMANCE OF THIS SOFTWARE.
142
142
  </div>
143
143
  </div>
144
144
  </div>
145
- `;je(this.settings.container).append(y),document.body!==this.settings.container&&je(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var x=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(x+="lg-grab "),this.outer.addClass(x),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),je(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){t.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},r.prototype.refreshOnResize=function(){if(this.lgOpened){var t=this.galleryItems[this.index],a=t.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var l=this.mediaContainerPosition,o=l.top,u=l.bottom;if(this.currentImageSize=Rt.getSize(this.items[this.index],this.outer,o+u,a&&this.settings.videoMaxSize),a&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var c=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",c)}this.LGel.trigger(at.containerResize)}},r.prototype.resizeVideoSlide=function(t,a){var l=this.getVideoContStyle(a),o=this.getSlideItem(t);o.find(".lg-video-cont").attr("style",l)},r.prototype.updateSlides=function(t,a){if(this.index>t.length-1&&(this.index=t.length-1),t.length===1&&(this.index=0),!t.length){this.closeGallery();return}var l=this.galleryItems[a].src;this.galleryItems=t,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var o=0;this.galleryItems.some(function(u,c){return u.src===l?(o=c,!0):!1}),this.currentItemsInDom=this.organizeSlideItems(o,-1),this.loadContent(o,!0),this.getSlideItem(o).addClass("lg-current"),this.index=o,this.updateCurrentCounter(o),this.LGel.trigger(at.updateSlides)},r.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if(this.settings.selector==="this")this.items.push(this.el);else if(this.settings.selector)if(typeof this.settings.selector=="string")if(this.settings.selectWithin){var t=je(this.settings.selectWithin);this.items=t.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return Rt.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},r.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},r.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(je("body").style().paddingRight);var t=document.documentElement.getBoundingClientRect(),a=window.innerWidth-t.width;je(document.body).css("padding-right",a+this.bodyPaddingRight+"px"),je(document.body).addClass("lg-overlay-open")}},r.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(je(document.body).css("padding-right",this.bodyPaddingRight+"px"),je(document.body).removeClass("lg-overlay-open"))},r.prototype.openGallery=function(t,a){var l=this;if(t===void 0&&(t=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var o=this.getItemsToBeInsertedToDom(t,t);this.currentItemsInDom=o;var u="";o.forEach(function(x){u=u+('<div id="'+x+'" class="lg-item"></div>')}),this.$inner.append(u),this.addHtml(t);var c="";this.mediaContainerPosition=this.getMediaContainerPosition();var d=this.mediaContainerPosition,h=d.top,p=d.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(h,p);var m=this.galleryItems[t].__slideVideoInfo;this.zoomFromOrigin&&a&&(this.currentImageSize=Rt.getSize(a,this.outer,h+p,m&&this.settings.videoMaxSize),c=Rt.getTransform(a,this.outer,h,p,this.currentImageSize)),(!this.zoomFromOrigin||!c)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(t).removeClass("lg-complete"));var y=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){l.outer.addClass("lg-components-open")},y),this.index=t,this.LGel.trigger(at.beforeOpen),this.getSlideItem(t).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=je(window).scrollTop(),setTimeout(function(){if(l.zoomFromOrigin&&c){var x=l.getSlideItem(t);x.css("transform",c),setTimeout(function(){x.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",l.settings.startAnimationDuration+"ms"),l.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){x.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){l.$backdrop.addClass("in"),l.$container.addClass("lg-show-in")},10),setTimeout(function(){l.settings.trapFocus&&document.body===l.settings.container&&l.trapFocus()},l.settings.backdropDuration+50),(!l.zoomFromOrigin||!c)&&setTimeout(function(){l.outer.addClass("lg-visible")},l.settings.backdropDuration),l.slide(t,!1,!1,!1),l.LGel.trigger(at.afterOpen)}),document.body===this.settings.container&&je("html").addClass("lg-on")}},r.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var t=this.$toolbar.get().clientHeight||0,a=this.outer.find(".lg-components .lg-sub-html").get(),l=this.settings.defaultCaptionHeight||a&&a.clientHeight||0,o=this.outer.find(".lg-thumb-outer").get(),u=o?o.clientHeight:0,c=u+l;return{top:t,bottom:c}},r.prototype.setMediaContainerPosition=function(t,a){t===void 0&&(t=0),a===void 0&&(a=0),this.$content.css("top",t+"px").css("bottom",a+"px")},r.prototype.hideBars=function(){var t=this;setTimeout(function(){t.outer.removeClass("lg-hide-items"),t.settings.hideBarsDelay>0&&(t.outer.on("mousemove.lg click.lg touchstart.lg",function(){t.outer.removeClass("lg-hide-items"),clearTimeout(t.hideBarTimeout),t.hideBarTimeout=setTimeout(function(){t.outer.addClass("lg-hide-items")},t.settings.hideBarsDelay)}),t.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},r.prototype.initPictureFill=function(t){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[t.get()]})}catch{console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},r.prototype.counter=function(){if(this.settings.counter){var t=`<div class="lg-counter" role="status" aria-live="polite">
145
+ `;je(this.settings.container).append(v),document.body!==this.settings.container&&je(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var x=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(x+="lg-grab "),this.outer.addClass(x),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),je(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){t.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},r.prototype.refreshOnResize=function(){if(this.lgOpened){var t=this.galleryItems[this.index],a=t.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var l=this.mediaContainerPosition,o=l.top,u=l.bottom;if(this.currentImageSize=Rt.getSize(this.items[this.index],this.outer,o+u,a&&this.settings.videoMaxSize),a&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var c=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",c)}this.LGel.trigger(at.containerResize)}},r.prototype.resizeVideoSlide=function(t,a){var l=this.getVideoContStyle(a),o=this.getSlideItem(t);o.find(".lg-video-cont").attr("style",l)},r.prototype.updateSlides=function(t,a){if(this.index>t.length-1&&(this.index=t.length-1),t.length===1&&(this.index=0),!t.length){this.closeGallery();return}var l=this.galleryItems[a].src;this.galleryItems=t,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var o=0;this.galleryItems.some(function(u,c){return u.src===l?(o=c,!0):!1}),this.currentItemsInDom=this.organizeSlideItems(o,-1),this.loadContent(o,!0),this.getSlideItem(o).addClass("lg-current"),this.index=o,this.updateCurrentCounter(o),this.LGel.trigger(at.updateSlides)},r.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if(this.settings.selector==="this")this.items.push(this.el);else if(this.settings.selector)if(typeof this.settings.selector=="string")if(this.settings.selectWithin){var t=je(this.settings.selectWithin);this.items=t.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return Rt.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},r.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},r.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(je("body").style().paddingRight);var t=document.documentElement.getBoundingClientRect(),a=window.innerWidth-t.width;je(document.body).css("padding-right",a+this.bodyPaddingRight+"px"),je(document.body).addClass("lg-overlay-open")}},r.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(je(document.body).css("padding-right",this.bodyPaddingRight+"px"),je(document.body).removeClass("lg-overlay-open"))},r.prototype.openGallery=function(t,a){var l=this;if(t===void 0&&(t=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var o=this.getItemsToBeInsertedToDom(t,t);this.currentItemsInDom=o;var u="";o.forEach(function(x){u=u+('<div id="'+x+'" class="lg-item"></div>')}),this.$inner.append(u),this.addHtml(t);var c="";this.mediaContainerPosition=this.getMediaContainerPosition();var d=this.mediaContainerPosition,h=d.top,p=d.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(h,p);var g=this.galleryItems[t].__slideVideoInfo;this.zoomFromOrigin&&a&&(this.currentImageSize=Rt.getSize(a,this.outer,h+p,g&&this.settings.videoMaxSize),c=Rt.getTransform(a,this.outer,h,p,this.currentImageSize)),(!this.zoomFromOrigin||!c)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(t).removeClass("lg-complete"));var v=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){l.outer.addClass("lg-components-open")},v),this.index=t,this.LGel.trigger(at.beforeOpen),this.getSlideItem(t).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=je(window).scrollTop(),setTimeout(function(){if(l.zoomFromOrigin&&c){var x=l.getSlideItem(t);x.css("transform",c),setTimeout(function(){x.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",l.settings.startAnimationDuration+"ms"),l.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){x.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){l.$backdrop.addClass("in"),l.$container.addClass("lg-show-in")},10),setTimeout(function(){l.settings.trapFocus&&document.body===l.settings.container&&l.trapFocus()},l.settings.backdropDuration+50),(!l.zoomFromOrigin||!c)&&setTimeout(function(){l.outer.addClass("lg-visible")},l.settings.backdropDuration),l.slide(t,!1,!1,!1),l.LGel.trigger(at.afterOpen)}),document.body===this.settings.container&&je("html").addClass("lg-on")}},r.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var t=this.$toolbar.get().clientHeight||0,a=this.outer.find(".lg-components .lg-sub-html").get(),l=this.settings.defaultCaptionHeight||a&&a.clientHeight||0,o=this.outer.find(".lg-thumb-outer").get(),u=o?o.clientHeight:0,c=u+l;return{top:t,bottom:c}},r.prototype.setMediaContainerPosition=function(t,a){t===void 0&&(t=0),a===void 0&&(a=0),this.$content.css("top",t+"px").css("bottom",a+"px")},r.prototype.hideBars=function(){var t=this;setTimeout(function(){t.outer.removeClass("lg-hide-items"),t.settings.hideBarsDelay>0&&(t.outer.on("mousemove.lg click.lg touchstart.lg",function(){t.outer.removeClass("lg-hide-items"),clearTimeout(t.hideBarTimeout),t.hideBarTimeout=setTimeout(function(){t.outer.addClass("lg-hide-items")},t.settings.hideBarsDelay)}),t.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},r.prototype.initPictureFill=function(t){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[t.get()]})}catch{console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},r.prototype.counter=function(){if(this.settings.counter){var t=`<div class="lg-counter" role="status" aria-live="polite">
146
146
  <span id="`+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+` </span> /
147
147
  <span id="`+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(t)}},r.prototype.addHtml=function(t){var a,l;if(this.galleryItems[t].subHtmlUrl?l=this.galleryItems[t].subHtmlUrl:a=this.galleryItems[t].subHtml,!l)if(a){var o=a.substring(0,1);(o==="."||o==="#")&&(this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?a=je(this.items).eq(t).find(a).first().html():a=je(a).first().html())}else a="";if(this.settings.appendSubHtmlTo!==".lg-item")l?Rt.fetchCaptionFromUrl(l,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(a);else{var u=je(this.getSlideItemId(t));l?Rt.fetchCaptionFromUrl(l,u,"append"):u.append('<div class="lg-sub-html">'+a+"</div>")}typeof a<"u"&&a!==null&&(a===""?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(at.afterAppendSubHtml,{index:t})},r.prototype.preload=function(t){for(var a=1;a<=this.settings.preload&&!(a>=this.galleryItems.length-t);a++)this.loadContent(t+a,!1);for(var l=1;l<=this.settings.preload&&!(t-l<0);l++)this.loadContent(t-l,!1)},r.prototype.getDummyImgStyles=function(t){return t?"width:"+t.width+`px;
148
148
  margin-left: -`+t.width/2+`px;
149
149
  margin-top: -`+t.height/2+`px;
150
150
  height:`+t.height+"px":""},r.prototype.getVideoContStyle=function(t){return t?"width:"+t.width+`px;
151
- height:`+t.height+"px":""},r.prototype.getDummyImageContent=function(t,a,l){var o;if(this.settings.dynamic||(o=je(this.items).eq(a)),o){var u=void 0;if(this.settings.exThumbImage?u=o.attr(this.settings.exThumbImage):u=o.find("img").first().attr("src"),!u)return"";var c=this.getDummyImgStyles(this.currentImageSize),d=document.createElement("img");return d.alt=l||"",d.src=u,d.className="lg-dummy-img",d.style.cssText=c,t.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),d}return""},r.prototype.setImgMarkup=function(t,a,l){var o=this.galleryItems[l],u=o.alt,c=o.srcset,d=o.sizes,h=o.sources,p="",m=u?'alt="'+u+'"':"";this.isFirstSlideWithZoomAnimation()?p=this.getDummyImageContent(a,l,m):p=Rt.getImgMarkup(l,t,m,c,d,h);var y=document.createElement("picture");y.className="lg-img-wrap",je(y).append(p),a.prepend(y)},r.prototype.onSlideObjectLoad=function(t,a,l,o){var u=t.find(".lg-object").first();Rt.isImageLoaded(u.get())||a?l():(u.on("load.lg error.lg",function(){l&&l()}),u.on("error.lg",function(){o&&o()}))},r.prototype.onLgObjectLoad=function(t,a,l,o,u,c){var d=this;this.onSlideObjectLoad(t,c,function(){d.triggerSlideItemLoad(t,a,l,o,u)},function(){t.addClass("lg-complete lg-complete_"),t.html('<span class="lg-error-msg">'+d.settings.strings.mediaLoadingFailed+"</span>")})},r.prototype.triggerSlideItemLoad=function(t,a,l,o,u){var c=this,d=this.galleryItems[a],h=u&&this.getSlideType(d)==="video"&&!d.poster?o:0;setTimeout(function(){t.addClass("lg-complete lg-complete_"),c.LGel.trigger(at.slideItemLoad,{index:a,delay:l||0,isFirstSlide:u})},h)},r.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},r.prototype.addSlideVideoInfo=function(t){var a=this;t.forEach(function(l,o){l.__slideVideoInfo=Rt.isVideo(l.src,!!l.video,o),l.__slideVideoInfo&&a.settings.loadYouTubePoster&&!l.poster&&l.__slideVideoInfo.youtube&&(l.poster="//img.youtube.com/vi/"+l.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},r.prototype.loadContent=function(t,a){var l=this,o=this.galleryItems[t],u=je(this.getSlideItemId(t)),c=o.poster,d=o.srcset,h=o.sizes,p=o.sources,m=o.src,y=o.video,x=y&&typeof y=="string"?JSON.parse(y):y;if(o.responsive){var T=o.responsive.split(",");m=Rt.getResponsiveSrc(T)||m}var N=o.__slideVideoInfo,_="",z=!!o.iframe,$=!this.lGalleryOn,V=0;if($&&(this.zoomFromOrigin&&this.currentImageSize?V=this.settings.startAnimationDuration+10:V=this.settings.backdropDuration+10),!u.hasClass("lg-loaded")){if(N){var I=this.mediaContainerPosition,Q=I.top,A=I.bottom,M=Rt.getSize(this.items[t],this.outer,Q+A,N&&this.settings.videoMaxSize);_=this.getVideoContStyle(M)}if(z){var P=Rt.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,m,o.iframeTitle);u.prepend(P)}else if(c){var F="",D=$&&this.zoomFromOrigin&&this.currentImageSize;D&&(F=this.getDummyImageContent(u,t,""));var P=Rt.getVideoPosterMarkup(c,F||"",_,this.settings.strings.playVideo,N);u.prepend(P)}else if(N){var P='<div class="lg-video-cont " style="'+_+'"></div>';u.prepend(P)}else if(this.setImgMarkup(m,u,t),d||p){var E=u.find(".lg-object");this.initPictureFill(E)}(c||N)&&this.LGel.trigger(at.hasVideo,{index:t,src:m,html5Video:x,hasPoster:!!c}),this.LGel.trigger(at.afterAppendSlide,{index:t}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(t)}var W=0;V&&!je(document.body).hasClass("lg-from-hash")&&(W=V),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){u.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),u.hasClass("lg-loaded")||setTimeout(function(){if(l.getSlideType(o)==="image"){var B=o.alt,q=B?'alt="'+B+'"':"";if(u.find(".lg-img-wrap").append(Rt.getImgMarkup(t,m,q,d,h,o.sources)),d||p){var k=u.find(".lg-object");l.initPictureFill(k)}}(l.getSlideType(o)==="image"||l.getSlideType(o)==="video"&&c)&&(l.onLgObjectLoad(u,t,V,W,!0,!1),l.onSlideObjectLoad(u,!!(N&&N.html5&&!c),function(){l.loadContentOnFirstSlideLoad(t,u,W)},function(){l.loadContentOnFirstSlideLoad(t,u,W)}))},this.settings.startAnimationDuration+100)),u.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||this.getSlideType(o)==="video"&&!c)&&this.onLgObjectLoad(u,t,V,W,$,!!(N&&N.html5&&!c)),(!this.zoomFromOrigin||!this.currentImageSize)&&u.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){u.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,a===!0&&(u.hasClass("lg-complete_")?this.preload(t):u.find(".lg-object").first().on("load.lg error.lg",function(){l.preload(t)}))},r.prototype.loadContentOnFirstSlideLoad=function(t,a,l){var o=this;setTimeout(function(){a.find(".lg-dummy-img").remove(),a.removeClass("lg-first-slide"),o.outer.removeClass("lg-first-slide-loading"),o.isDummyImageRemoved=!0,o.preload(t)},l+300)},r.prototype.getItemsToBeInsertedToDom=function(t,a,l){var o=this;l===void 0&&(l=0);var u=[],c=Math.max(l,3);c=Math.min(c,this.galleryItems.length);var d="lg-item-"+this.lgId+"-"+a;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(m,y){u.push("lg-item-"+o.lgId+"-"+y)}),u;if(t<(this.galleryItems.length-1)/2){for(var h=t;h>t-c/2&&h>=0;h--)u.push("lg-item-"+this.lgId+"-"+h);for(var p=u.length,h=0;h<c-p;h++)u.push("lg-item-"+this.lgId+"-"+(t+h+1))}else{for(var h=t;h<=this.galleryItems.length-1&&h<t+c/2;h++)u.push("lg-item-"+this.lgId+"-"+h);for(var p=u.length,h=0;h<c-p;h++)u.push("lg-item-"+this.lgId+"-"+(t-h-1))}return this.settings.loop&&(t===this.galleryItems.length-1?u.push("lg-item-"+this.lgId+"-0"):t===0&&u.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),u.indexOf(d)===-1&&u.push("lg-item-"+this.lgId+"-"+a),u},r.prototype.organizeSlideItems=function(t,a){var l=this,o=this.getItemsToBeInsertedToDom(t,a,this.settings.numberOfSlideItemsInDom);return o.forEach(function(u){l.currentItemsInDom.indexOf(u)===-1&&l.$inner.append('<div id="'+u+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(u){o.indexOf(u)===-1&&je("#"+u).remove()}),o},r.prototype.getPreviousSlideIndex=function(){var t=0;try{var a=this.outer.find(".lg-current").first().attr("id");t=parseInt(a.split("-")[3])||0}catch{t=0}return t},r.prototype.setDownloadValue=function(t){if(this.settings.download){var a=this.galleryItems[t],l=a.downloadUrl===!1||a.downloadUrl==="false";if(l)this.outer.addClass("lg-hide-download");else{var o=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),o.attr("href",a.downloadUrl||a.src),a.download&&o.attr("download",a.download)}}},r.prototype.makeSlideAnimation=function(t,a,l){var o=this;this.lGalleryOn&&l.addClass("lg-slide-progress"),setTimeout(function(){o.outer.addClass("lg-no-trans"),o.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),t==="prev"?(a.addClass("lg-prev-slide"),l.addClass("lg-next-slide")):(a.addClass("lg-next-slide"),l.addClass("lg-prev-slide")),setTimeout(function(){o.outer.find(".lg-item").removeClass("lg-current"),a.addClass("lg-current"),o.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},r.prototype.slide=function(t,a,l,o){var u=this,c=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(t,c),!(this.lGalleryOn&&c===t)){var d=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(t);var h=this.getSlideItem(t),p=this.getSlideItem(c),m=this.galleryItems[t],y=m.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(m)),this.setDownloadValue(t),y){var x=this.mediaContainerPosition,T=x.top,N=x.bottom,_=Rt.getSize(this.items[t],this.outer,T+N,y&&this.settings.videoMaxSize);this.resizeVideoSlide(t,_)}if(this.LGel.trigger(at.beforeSlide,{prevIndex:c,index:t,fromTouch:!!a,fromThumb:!!l}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(t),o||(t<c?o="prev":t>c&&(o="next")),!a)this.makeSlideAnimation(o,h,p);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var z=void 0,$=void 0;d>2?(z=t-1,$=t+1,(t===0&&c===d-1||t===d-1&&c===0)&&($=0,z=d-1)):(z=0,$=1),o==="prev"?this.getSlideItem($).addClass("lg-next-slide"):this.getSlideItem(z).addClass("lg-prev-slide"),h.addClass("lg-current")}this.lGalleryOn?setTimeout(function(){u.loadContent(t,!0),u.settings.appendSubHtmlTo!==".lg-item"&&u.addHtml(t)},this.settings.speed+50+(a?0:this.settings.slideDelay)):this.loadContent(t,!0),setTimeout(function(){u.lgBusy=!1,p.removeClass("lg-slide-progress"),u.LGel.trigger(at.afterSlide,{prevIndex:c,index:t,fromTouch:a,fromThumb:l})},(this.lGalleryOn?this.settings.speed+100:100)+(a?0:this.settings.slideDelay))}this.index=t}},r.prototype.updateCurrentCounter=function(t){this.getElementById("lg-counter-current").html(t+1+"")},r.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},r.prototype.getSlideType=function(t){return t.__slideVideoInfo?"video":t.iframe?"iframe":"image"},r.prototype.touchMove=function(t,a,l){var o=a.pageX-t.pageX,u=a.pageY-t.pageY,c=!1;if(this.swipeDirection?c=!0:Math.abs(o)>15?(this.swipeDirection="horizontal",c=!0):Math.abs(u)>15&&(this.swipeDirection="vertical",c=!0),!!c){var d=this.getSlideItem(this.index);if(this.swipeDirection==="horizontal"){l==null||l.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(d,o,0);var h=d.get().offsetWidth,p=h*15/100,m=p-Math.abs(o*10/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-h+o-m,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),h+o+m,0)}else if(this.swipeDirection==="vertical"&&this.settings.swipeToClose){l==null||l.preventDefault(),this.$container.addClass("lg-dragging-vertical");var y=1-Math.abs(u)/window.innerHeight;this.$backdrop.css("opacity",y);var x=1-Math.abs(u)/(window.innerWidth*2);this.setTranslate(d,0,u,x,x),Math.abs(u)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},r.prototype.touchEnd=function(t,a,l){var o=this,u;this.settings.mode!=="lg-slide"&&this.outer.addClass("lg-slide"),setTimeout(function(){o.$container.removeClass("lg-dragging-vertical"),o.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var c=!0;if(o.swipeDirection==="horizontal"){u=t.pageX-a.pageX;var d=Math.abs(t.pageX-a.pageX);u<0&&d>o.settings.swipeThreshold?(o.goToNextSlide(!0),c=!1):u>0&&d>o.settings.swipeThreshold&&(o.goToPrevSlide(!0),c=!1)}else if(o.swipeDirection==="vertical")if(u=Math.abs(t.pageY-a.pageY),o.settings.closable&&o.settings.swipeToClose&&u>100){o.closeGallery();return}else o.$backdrop.css("opacity",1);if(o.outer.find(".lg-item").removeAttr("style"),c&&Math.abs(t.pageX-a.pageX)<5){var h=je(l.target);o.isPosterElement(h)&&o.LGel.trigger(at.posterClick)}o.swipeDirection=void 0}),setTimeout(function(){!o.outer.hasClass("lg-dragging")&&o.settings.mode!=="lg-slide"&&o.outer.removeClass("lg-slide")},this.settings.speed+100)},r.prototype.enableSwipe=function(){var t=this,a={},l={},o=!1,u=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(c){t.dragOrSwipeEnabled=!0;var d=t.getSlideItem(t.index);(je(c.target).hasClass("lg-item")||d.get().contains(c.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&c.touches.length===1&&(u=!0,t.touchAction="swipe",t.manageSwipeClass(),a={pageX:c.touches[0].pageX,pageY:c.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(c){u&&t.touchAction==="swipe"&&c.touches.length===1&&(l={pageX:c.touches[0].pageX,pageY:c.touches[0].pageY},t.touchMove(a,l,c),o=!0)}),this.$inner.on("touchend.lg",function(c){if(t.touchAction==="swipe"){if(o)o=!1,t.touchEnd(l,a,c);else if(u){var d=je(c.target);t.isPosterElement(d)&&t.LGel.trigger(at.posterClick)}t.touchAction=void 0,u=!1}}))},r.prototype.enableDrag=function(){var t=this,a={},l={},o=!1,u=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(c){t.dragOrSwipeEnabled=!0;var d=t.getSlideItem(t.index);(je(c.target).hasClass("lg-item")||d.get().contains(c.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&(c.preventDefault(),t.lgBusy||(t.manageSwipeClass(),a={pageX:c.pageX,pageY:c.pageY},o=!0,t.outer.get().scrollLeft+=1,t.outer.get().scrollLeft-=1,t.outer.removeClass("lg-grab").addClass("lg-grabbing"),t.LGel.trigger(at.dragStart)))}),je(window).on("mousemove.lg.global"+this.lgId,function(c){o&&t.lgOpened&&(u=!0,l={pageX:c.pageX,pageY:c.pageY},t.touchMove(a,l),t.LGel.trigger(at.dragMove))}),je(window).on("mouseup.lg.global"+this.lgId,function(c){if(t.lgOpened){var d=je(c.target);u?(u=!1,t.touchEnd(l,a,c),t.LGel.trigger(at.dragEnd)):t.isPosterElement(d)&&t.LGel.trigger(at.posterClick),o&&(o=!1,t.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},r.prototype.triggerPosterClick=function(){var t=this;this.$inner.on("click.lg",function(a){!t.dragOrSwipeEnabled&&t.isPosterElement(je(a.target))&&t.LGel.trigger(at.posterClick)})},r.prototype.manageSwipeClass=function(){var t=this.index+1,a=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(this.index===0?a=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(t=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),a>-1&&this.getSlideItem(a).addClass("lg-prev-slide"),this.getSlideItem(t).addClass("lg-next-slide")},r.prototype.goToNextSlide=function(t){var a=this,l=this.settings.loop;t&&this.galleryItems.length<3&&(l=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(at.beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):l?(this.index=0,this.LGel.trigger(at.beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-right-end"),setTimeout(function(){a.outer.removeClass("lg-right-end")},400)))},r.prototype.goToPrevSlide=function(t){var a=this,l=this.settings.loop;t&&this.galleryItems.length<3&&(l=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(at.beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):l?(this.index=this.galleryItems.length-1,this.LGel.trigger(at.beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-left-end"),setTimeout(function(){a.outer.removeClass("lg-left-end")},400)))},r.prototype.keyPress=function(){var t=this;je(window).on("keydown.lg.global"+this.lgId,function(a){t.lgOpened&&t.settings.escKey===!0&&a.keyCode===27&&(a.preventDefault(),t.settings.allowMediaOverlap&&t.outer.hasClass("lg-can-toggle")&&t.outer.hasClass("lg-components-open")?t.outer.removeClass("lg-components-open"):t.closeGallery()),t.lgOpened&&t.galleryItems.length>1&&(a.keyCode===37&&(a.preventDefault(),t.goToPrevSlide()),a.keyCode===39&&(a.preventDefault(),t.goToNextSlide()))})},r.prototype.arrow=function(){var t=this;this.getElementById("lg-prev").on("click.lg",function(){t.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){t.goToNextSlide()})},r.prototype.arrowDisable=function(t){if(!this.settings.loop&&this.settings.hideControlOnEnd){var a=this.getElementById("lg-prev"),l=this.getElementById("lg-next");t+1===this.galleryItems.length?l.attr("disabled","disabled").addClass("disabled"):l.removeAttr("disabled").removeClass("disabled"),t===0?a.attr("disabled","disabled").addClass("disabled"):a.removeAttr("disabled").removeClass("disabled")}},r.prototype.setTranslate=function(t,a,l,o,u){o===void 0&&(o=1),u===void 0&&(u=1),t.css("transform","translate3d("+a+"px, "+l+"px, 0px) scale3d("+o+", "+u+", 1)")},r.prototype.mousewheel=function(){var t=this,a=0;this.outer.on("wheel.lg",function(l){if(!(!l.deltaY||t.galleryItems.length<2)){l.preventDefault();var o=new Date().getTime();o-a<1e3||(a=o,l.deltaY>0?t.goToNextSlide():l.deltaY<0&&t.goToPrevSlide())}})},r.prototype.isSlideElement=function(t){return t.hasClass("lg-outer")||t.hasClass("lg-item")||t.hasClass("lg-img-wrap")||t.hasClass("lg-img-rotate")},r.prototype.isPosterElement=function(t){var a=this.getSlideItem(this.index).find(".lg-video-play-button").get();return t.hasClass("lg-video-poster")||t.hasClass("lg-video-play-button")||a&&a.contains(t.get())},r.prototype.toggleMaximize=function(){var t=this;this.getElementById("lg-maximize").on("click.lg",function(){t.$container.toggleClass("lg-inline"),t.refreshOnResize()})},r.prototype.invalidateItems=function(){for(var t=0;t<this.items.length;t++){var a=this.items[t],l=je(a);l.off("click.lgcustom-item-"+l.attr("data-lg-id"))}},r.prototype.trapFocus=function(){var t=this;this.$container.get().focus({preventScroll:!0}),je(window).on("keydown.lg.global"+this.lgId,function(a){if(t.lgOpened){var l=a.key==="Tab"||a.keyCode===9;if(l){var o=Rt.getFocusableElements(t.$container.get()),u=o[0],c=o[o.length-1];a.shiftKey?document.activeElement===u&&(c.focus(),a.preventDefault()):document.activeElement===c&&(u.focus(),a.preventDefault())}}})},r.prototype.manageCloseGallery=function(){var t=this;if(this.settings.closable){var a=!1;this.getElementById("lg-close").on("click.lg",function(){t.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(l){var o=je(l.target);t.isSlideElement(o)?a=!0:a=!1}),this.outer.on("mousemove.lg",function(){a=!1}),this.outer.on("mouseup.lg",function(l){var o=je(l.target);t.isSlideElement(o)&&a&&(t.outer.hasClass("lg-dragging")||t.closeGallery())}))}},r.prototype.closeGallery=function(t){var a=this;if(!this.lgOpened||!this.settings.closable&&!t)return 0;this.LGel.trigger(at.beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&je(window).scrollTop(this.prevScrollTop);var l=this.items[this.index],o;if(this.zoomFromOrigin&&l){var u=this.mediaContainerPosition,c=u.top,d=u.bottom,h=this.galleryItems[this.index],p=h.__slideVideoInfo,m=h.poster,y=Rt.getSize(l,this.outer,c+d,p&&m&&this.settings.videoMaxSize);o=Rt.getTransform(l,this.outer,c,d,y)}this.zoomFromOrigin&&o?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.getSlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",o)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,je("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var x=this.zoomFromOrigin&&o?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){a.zoomFromOrigin&&o&&a.outer.removeClass("lg-zoom-from-image"),a.$container.removeClass("lg-show"),a.resetScrollBar(),a.$backdrop.removeAttr("style").css("transition-duration",a.settings.backdropDuration+"ms"),a.outer.removeClass("lg-closing "+a.settings.startClass),a.getSlideItem(a.index).removeClass("lg-start-end-progress"),a.$inner.empty(),a.lgOpened&&a.LGel.trigger(at.afterClose,{instance:a}),a.$container.get()&&a.$container.get().blur(),a.lgOpened=!1},x+100),x+100},r.prototype.initModules=function(){this.plugins.forEach(function(t){try{t.init()}catch{console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},r.prototype.destroyModules=function(t){this.plugins.forEach(function(a){try{t?a.destroy():a.closeGallery&&a.closeGallery()}catch{console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},r.prototype.refresh=function(t){this.settings.dynamic||this.invalidateItems(),t?this.galleryItems=t:this.galleryItems=this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(at.updateSlides)},r.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},r.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),je(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},r.prototype.destroy=function(){var t=this.closeGallery(!0);return t?setTimeout(this.destroyGallery.bind(this),t):this.destroyGallery(),t},r}();function ZM(r,t){return new QM(r,t)}var mt={onAfterAppendSlide:"lgAfterAppendSlide",onInit:"lgInit",onHasVideo:"lgHasVideo",onContainerResize:"lgContainerResize",onAfterAppendSubHtml:"lgAfterAppendSubHtml",onBeforeOpen:"lgBeforeOpen",onAfterOpen:"lgAfterOpen",onSlideItemLoad:"lgSlideItemLoad",onBeforeSlide:"lgBeforeSlide",onAfterSlide:"lgAfterSlide",onPosterClick:"lgPosterClick",onDragStart:"lgDragStart",onDragMove:"lgDragMove",onDragEnd:"lgDragEnd",onBeforeNextSlide:"lgBeforeNextSlide",onBeforePrevSlide:"lgBeforePrevSlide",onBeforeClose:"lgBeforeClose",onAfterClose:"lgAfterClose",onRotateLeft:"lgRotateLeft",onRotateRight:"lgRotateRight",onFlipHorizontal:"lgFlipHorizontal",onFlipVertical:"lgFlipVertical"},jg=function(r){var t=r.children,a=r.elementClassNames,l=r.onAfterAppendSlide,o=r.onInit,u=r.onHasVideo,c=r.onContainerResize,d=r.onAfterAppendSubHtml,h=r.onBeforeOpen,p=r.onAfterOpen,m=r.onSlideItemLoad,y=r.onBeforeSlide,x=r.onAfterSlide,T=r.onPosterClick,N=r.onDragStart,_=r.onDragMove,z=r.onDragEnd,$=r.onBeforeNextSlide,V=r.onBeforePrevSlide,I=r.onBeforeClose,Q=r.onAfterClose,A=r.onRotateLeft,M=r.onRotateRight,P=r.onFlipHorizontal,F=r.onFlipVertical,D=GM(r,["children","elementClassNames","onAfterAppendSlide","onInit","onHasVideo","onContainerResize","onAfterAppendSubHtml","onBeforeOpen","onAfterOpen","onSlideItemLoad","onBeforeSlide","onAfterSlide","onPosterClick","onDragStart","onDragMove","onDragEnd","onBeforeNextSlide","onBeforePrevSlide","onBeforeClose","onAfterClose","onRotateLeft","onRotateRight","onFlipHorizontal","onFlipVertical"]),E=w.useRef(null),W=w.useCallback(function(){l&&E&&E.current&&E.current.addEventListener(mt.onAfterAppendSlide,function(B){l(B.detail)}),o&&E&&E.current&&E.current.addEventListener(mt.onInit,function(B){o(B.detail)}),u&&E&&E.current&&E.current.addEventListener(mt.onHasVideo,function(B){u(B.detail)}),c&&E&&E.current&&E.current.addEventListener(mt.onContainerResize,function(B){c(B.detail)}),d&&E&&E.current&&E.current.addEventListener(mt.onAfterAppendSubHtml,function(B){d(B.detail)}),h&&E&&E.current&&E.current.addEventListener(mt.onBeforeOpen,function(B){h(B.detail)}),p&&E&&E.current&&E.current.addEventListener(mt.onAfterOpen,function(B){p(B.detail)}),m&&E&&E.current&&E.current.addEventListener(mt.onSlideItemLoad,function(B){m(B.detail)}),y&&E&&E.current&&E.current.addEventListener(mt.onBeforeSlide,function(B){y(B.detail)}),x&&E&&E.current&&E.current.addEventListener(mt.onAfterSlide,function(B){x(B.detail)}),T&&E&&E.current&&E.current.addEventListener(mt.onPosterClick,function(B){T(B.detail)}),N&&E&&E.current&&E.current.addEventListener(mt.onDragStart,function(B){N(B.detail)}),_&&E&&E.current&&E.current.addEventListener(mt.onDragMove,function(B){_(B.detail)}),z&&E&&E.current&&E.current.addEventListener(mt.onDragEnd,function(B){z(B.detail)}),$&&E&&E.current&&E.current.addEventListener(mt.onBeforeNextSlide,function(B){$(B.detail)}),V&&E&&E.current&&E.current.addEventListener(mt.onBeforePrevSlide,function(B){V(B.detail)}),I&&E&&E.current&&E.current.addEventListener(mt.onBeforeClose,function(B){I(B.detail)}),Q&&E&&E.current&&E.current.addEventListener(mt.onAfterClose,function(B){Q(B.detail)}),A&&E&&E.current&&E.current.addEventListener(mt.onRotateLeft,function(B){A(B.detail)}),M&&E&&E.current&&E.current.addEventListener(mt.onRotateRight,function(B){M(B.detail)}),P&&E&&E.current&&E.current.addEventListener(mt.onFlipHorizontal,function(B){P(B.detail)}),F&&E&&E.current&&E.current.addEventListener(mt.onFlipVertical,function(B){F(B.detail)})},[l,d,Q,A,M,P,F,p,x,I,$,h,V,y,c,z,_,N,u,o,T,m]);return w.useEffect(function(){W();var B=ZM(E.current,D);return function(){B.destroy()}},[W,D]),w.createElement("div",{className:"lg-react-element "+(a||""),ref:E},t)};/*!
151
+ height:`+t.height+"px":""},r.prototype.getDummyImageContent=function(t,a,l){var o;if(this.settings.dynamic||(o=je(this.items).eq(a)),o){var u=void 0;if(this.settings.exThumbImage?u=o.attr(this.settings.exThumbImage):u=o.find("img").first().attr("src"),!u)return"";var c=this.getDummyImgStyles(this.currentImageSize),d=document.createElement("img");return d.alt=l||"",d.src=u,d.className="lg-dummy-img",d.style.cssText=c,t.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),d}return""},r.prototype.setImgMarkup=function(t,a,l){var o=this.galleryItems[l],u=o.alt,c=o.srcset,d=o.sizes,h=o.sources,p="",g=u?'alt="'+u+'"':"";this.isFirstSlideWithZoomAnimation()?p=this.getDummyImageContent(a,l,g):p=Rt.getImgMarkup(l,t,g,c,d,h);var v=document.createElement("picture");v.className="lg-img-wrap",je(v).append(p),a.prepend(v)},r.prototype.onSlideObjectLoad=function(t,a,l,o){var u=t.find(".lg-object").first();Rt.isImageLoaded(u.get())||a?l():(u.on("load.lg error.lg",function(){l&&l()}),u.on("error.lg",function(){o&&o()}))},r.prototype.onLgObjectLoad=function(t,a,l,o,u,c){var d=this;this.onSlideObjectLoad(t,c,function(){d.triggerSlideItemLoad(t,a,l,o,u)},function(){t.addClass("lg-complete lg-complete_"),t.html('<span class="lg-error-msg">'+d.settings.strings.mediaLoadingFailed+"</span>")})},r.prototype.triggerSlideItemLoad=function(t,a,l,o,u){var c=this,d=this.galleryItems[a],h=u&&this.getSlideType(d)==="video"&&!d.poster?o:0;setTimeout(function(){t.addClass("lg-complete lg-complete_"),c.LGel.trigger(at.slideItemLoad,{index:a,delay:l||0,isFirstSlide:u})},h)},r.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},r.prototype.addSlideVideoInfo=function(t){var a=this;t.forEach(function(l,o){l.__slideVideoInfo=Rt.isVideo(l.src,!!l.video,o),l.__slideVideoInfo&&a.settings.loadYouTubePoster&&!l.poster&&l.__slideVideoInfo.youtube&&(l.poster="//img.youtube.com/vi/"+l.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},r.prototype.loadContent=function(t,a){var l=this,o=this.galleryItems[t],u=je(this.getSlideItemId(t)),c=o.poster,d=o.srcset,h=o.sizes,p=o.sources,g=o.src,v=o.video,x=v&&typeof v=="string"?JSON.parse(v):v;if(o.responsive){var T=o.responsive.split(",");g=Rt.getResponsiveSrc(T)||g}var N=o.__slideVideoInfo,_="",z=!!o.iframe,$=!this.lGalleryOn,V=0;if($&&(this.zoomFromOrigin&&this.currentImageSize?V=this.settings.startAnimationDuration+10:V=this.settings.backdropDuration+10),!u.hasClass("lg-loaded")){if(N){var I=this.mediaContainerPosition,Q=I.top,j=I.bottom,M=Rt.getSize(this.items[t],this.outer,Q+j,N&&this.settings.videoMaxSize);_=this.getVideoContStyle(M)}if(z){var P=Rt.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,g,o.iframeTitle);u.prepend(P)}else if(c){var F="",D=$&&this.zoomFromOrigin&&this.currentImageSize;D&&(F=this.getDummyImageContent(u,t,""));var P=Rt.getVideoPosterMarkup(c,F||"",_,this.settings.strings.playVideo,N);u.prepend(P)}else if(N){var P='<div class="lg-video-cont " style="'+_+'"></div>';u.prepend(P)}else if(this.setImgMarkup(g,u,t),d||p){var E=u.find(".lg-object");this.initPictureFill(E)}(c||N)&&this.LGel.trigger(at.hasVideo,{index:t,src:g,html5Video:x,hasPoster:!!c}),this.LGel.trigger(at.afterAppendSlide,{index:t}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(t)}var X=0;V&&!je(document.body).hasClass("lg-from-hash")&&(X=V),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){u.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),u.hasClass("lg-loaded")||setTimeout(function(){if(l.getSlideType(o)==="image"){var B=o.alt,q=B?'alt="'+B+'"':"";if(u.find(".lg-img-wrap").append(Rt.getImgMarkup(t,g,q,d,h,o.sources)),d||p){var k=u.find(".lg-object");l.initPictureFill(k)}}(l.getSlideType(o)==="image"||l.getSlideType(o)==="video"&&c)&&(l.onLgObjectLoad(u,t,V,X,!0,!1),l.onSlideObjectLoad(u,!!(N&&N.html5&&!c),function(){l.loadContentOnFirstSlideLoad(t,u,X)},function(){l.loadContentOnFirstSlideLoad(t,u,X)}))},this.settings.startAnimationDuration+100)),u.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||this.getSlideType(o)==="video"&&!c)&&this.onLgObjectLoad(u,t,V,X,$,!!(N&&N.html5&&!c)),(!this.zoomFromOrigin||!this.currentImageSize)&&u.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){u.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,a===!0&&(u.hasClass("lg-complete_")?this.preload(t):u.find(".lg-object").first().on("load.lg error.lg",function(){l.preload(t)}))},r.prototype.loadContentOnFirstSlideLoad=function(t,a,l){var o=this;setTimeout(function(){a.find(".lg-dummy-img").remove(),a.removeClass("lg-first-slide"),o.outer.removeClass("lg-first-slide-loading"),o.isDummyImageRemoved=!0,o.preload(t)},l+300)},r.prototype.getItemsToBeInsertedToDom=function(t,a,l){var o=this;l===void 0&&(l=0);var u=[],c=Math.max(l,3);c=Math.min(c,this.galleryItems.length);var d="lg-item-"+this.lgId+"-"+a;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(g,v){u.push("lg-item-"+o.lgId+"-"+v)}),u;if(t<(this.galleryItems.length-1)/2){for(var h=t;h>t-c/2&&h>=0;h--)u.push("lg-item-"+this.lgId+"-"+h);for(var p=u.length,h=0;h<c-p;h++)u.push("lg-item-"+this.lgId+"-"+(t+h+1))}else{for(var h=t;h<=this.galleryItems.length-1&&h<t+c/2;h++)u.push("lg-item-"+this.lgId+"-"+h);for(var p=u.length,h=0;h<c-p;h++)u.push("lg-item-"+this.lgId+"-"+(t-h-1))}return this.settings.loop&&(t===this.galleryItems.length-1?u.push("lg-item-"+this.lgId+"-0"):t===0&&u.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),u.indexOf(d)===-1&&u.push("lg-item-"+this.lgId+"-"+a),u},r.prototype.organizeSlideItems=function(t,a){var l=this,o=this.getItemsToBeInsertedToDom(t,a,this.settings.numberOfSlideItemsInDom);return o.forEach(function(u){l.currentItemsInDom.indexOf(u)===-1&&l.$inner.append('<div id="'+u+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(u){o.indexOf(u)===-1&&je("#"+u).remove()}),o},r.prototype.getPreviousSlideIndex=function(){var t=0;try{var a=this.outer.find(".lg-current").first().attr("id");t=parseInt(a.split("-")[3])||0}catch{t=0}return t},r.prototype.setDownloadValue=function(t){if(this.settings.download){var a=this.galleryItems[t],l=a.downloadUrl===!1||a.downloadUrl==="false";if(l)this.outer.addClass("lg-hide-download");else{var o=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),o.attr("href",a.downloadUrl||a.src),a.download&&o.attr("download",a.download)}}},r.prototype.makeSlideAnimation=function(t,a,l){var o=this;this.lGalleryOn&&l.addClass("lg-slide-progress"),setTimeout(function(){o.outer.addClass("lg-no-trans"),o.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),t==="prev"?(a.addClass("lg-prev-slide"),l.addClass("lg-next-slide")):(a.addClass("lg-next-slide"),l.addClass("lg-prev-slide")),setTimeout(function(){o.outer.find(".lg-item").removeClass("lg-current"),a.addClass("lg-current"),o.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},r.prototype.slide=function(t,a,l,o){var u=this,c=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(t,c),!(this.lGalleryOn&&c===t)){var d=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(t);var h=this.getSlideItem(t),p=this.getSlideItem(c),g=this.galleryItems[t],v=g.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(g)),this.setDownloadValue(t),v){var x=this.mediaContainerPosition,T=x.top,N=x.bottom,_=Rt.getSize(this.items[t],this.outer,T+N,v&&this.settings.videoMaxSize);this.resizeVideoSlide(t,_)}if(this.LGel.trigger(at.beforeSlide,{prevIndex:c,index:t,fromTouch:!!a,fromThumb:!!l}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(t),o||(t<c?o="prev":t>c&&(o="next")),!a)this.makeSlideAnimation(o,h,p);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var z=void 0,$=void 0;d>2?(z=t-1,$=t+1,(t===0&&c===d-1||t===d-1&&c===0)&&($=0,z=d-1)):(z=0,$=1),o==="prev"?this.getSlideItem($).addClass("lg-next-slide"):this.getSlideItem(z).addClass("lg-prev-slide"),h.addClass("lg-current")}this.lGalleryOn?setTimeout(function(){u.loadContent(t,!0),u.settings.appendSubHtmlTo!==".lg-item"&&u.addHtml(t)},this.settings.speed+50+(a?0:this.settings.slideDelay)):this.loadContent(t,!0),setTimeout(function(){u.lgBusy=!1,p.removeClass("lg-slide-progress"),u.LGel.trigger(at.afterSlide,{prevIndex:c,index:t,fromTouch:a,fromThumb:l})},(this.lGalleryOn?this.settings.speed+100:100)+(a?0:this.settings.slideDelay))}this.index=t}},r.prototype.updateCurrentCounter=function(t){this.getElementById("lg-counter-current").html(t+1+"")},r.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},r.prototype.getSlideType=function(t){return t.__slideVideoInfo?"video":t.iframe?"iframe":"image"},r.prototype.touchMove=function(t,a,l){var o=a.pageX-t.pageX,u=a.pageY-t.pageY,c=!1;if(this.swipeDirection?c=!0:Math.abs(o)>15?(this.swipeDirection="horizontal",c=!0):Math.abs(u)>15&&(this.swipeDirection="vertical",c=!0),!!c){var d=this.getSlideItem(this.index);if(this.swipeDirection==="horizontal"){l==null||l.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(d,o,0);var h=d.get().offsetWidth,p=h*15/100,g=p-Math.abs(o*10/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-h+o-g,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),h+o+g,0)}else if(this.swipeDirection==="vertical"&&this.settings.swipeToClose){l==null||l.preventDefault(),this.$container.addClass("lg-dragging-vertical");var v=1-Math.abs(u)/window.innerHeight;this.$backdrop.css("opacity",v);var x=1-Math.abs(u)/(window.innerWidth*2);this.setTranslate(d,0,u,x,x),Math.abs(u)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},r.prototype.touchEnd=function(t,a,l){var o=this,u;this.settings.mode!=="lg-slide"&&this.outer.addClass("lg-slide"),setTimeout(function(){o.$container.removeClass("lg-dragging-vertical"),o.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var c=!0;if(o.swipeDirection==="horizontal"){u=t.pageX-a.pageX;var d=Math.abs(t.pageX-a.pageX);u<0&&d>o.settings.swipeThreshold?(o.goToNextSlide(!0),c=!1):u>0&&d>o.settings.swipeThreshold&&(o.goToPrevSlide(!0),c=!1)}else if(o.swipeDirection==="vertical")if(u=Math.abs(t.pageY-a.pageY),o.settings.closable&&o.settings.swipeToClose&&u>100){o.closeGallery();return}else o.$backdrop.css("opacity",1);if(o.outer.find(".lg-item").removeAttr("style"),c&&Math.abs(t.pageX-a.pageX)<5){var h=je(l.target);o.isPosterElement(h)&&o.LGel.trigger(at.posterClick)}o.swipeDirection=void 0}),setTimeout(function(){!o.outer.hasClass("lg-dragging")&&o.settings.mode!=="lg-slide"&&o.outer.removeClass("lg-slide")},this.settings.speed+100)},r.prototype.enableSwipe=function(){var t=this,a={},l={},o=!1,u=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(c){t.dragOrSwipeEnabled=!0;var d=t.getSlideItem(t.index);(je(c.target).hasClass("lg-item")||d.get().contains(c.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&c.touches.length===1&&(u=!0,t.touchAction="swipe",t.manageSwipeClass(),a={pageX:c.touches[0].pageX,pageY:c.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(c){u&&t.touchAction==="swipe"&&c.touches.length===1&&(l={pageX:c.touches[0].pageX,pageY:c.touches[0].pageY},t.touchMove(a,l,c),o=!0)}),this.$inner.on("touchend.lg",function(c){if(t.touchAction==="swipe"){if(o)o=!1,t.touchEnd(l,a,c);else if(u){var d=je(c.target);t.isPosterElement(d)&&t.LGel.trigger(at.posterClick)}t.touchAction=void 0,u=!1}}))},r.prototype.enableDrag=function(){var t=this,a={},l={},o=!1,u=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(c){t.dragOrSwipeEnabled=!0;var d=t.getSlideItem(t.index);(je(c.target).hasClass("lg-item")||d.get().contains(c.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&(c.preventDefault(),t.lgBusy||(t.manageSwipeClass(),a={pageX:c.pageX,pageY:c.pageY},o=!0,t.outer.get().scrollLeft+=1,t.outer.get().scrollLeft-=1,t.outer.removeClass("lg-grab").addClass("lg-grabbing"),t.LGel.trigger(at.dragStart)))}),je(window).on("mousemove.lg.global"+this.lgId,function(c){o&&t.lgOpened&&(u=!0,l={pageX:c.pageX,pageY:c.pageY},t.touchMove(a,l),t.LGel.trigger(at.dragMove))}),je(window).on("mouseup.lg.global"+this.lgId,function(c){if(t.lgOpened){var d=je(c.target);u?(u=!1,t.touchEnd(l,a,c),t.LGel.trigger(at.dragEnd)):t.isPosterElement(d)&&t.LGel.trigger(at.posterClick),o&&(o=!1,t.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},r.prototype.triggerPosterClick=function(){var t=this;this.$inner.on("click.lg",function(a){!t.dragOrSwipeEnabled&&t.isPosterElement(je(a.target))&&t.LGel.trigger(at.posterClick)})},r.prototype.manageSwipeClass=function(){var t=this.index+1,a=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(this.index===0?a=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(t=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),a>-1&&this.getSlideItem(a).addClass("lg-prev-slide"),this.getSlideItem(t).addClass("lg-next-slide")},r.prototype.goToNextSlide=function(t){var a=this,l=this.settings.loop;t&&this.galleryItems.length<3&&(l=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(at.beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):l?(this.index=0,this.LGel.trigger(at.beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-right-end"),setTimeout(function(){a.outer.removeClass("lg-right-end")},400)))},r.prototype.goToPrevSlide=function(t){var a=this,l=this.settings.loop;t&&this.galleryItems.length<3&&(l=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(at.beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):l?(this.index=this.galleryItems.length-1,this.LGel.trigger(at.beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-left-end"),setTimeout(function(){a.outer.removeClass("lg-left-end")},400)))},r.prototype.keyPress=function(){var t=this;je(window).on("keydown.lg.global"+this.lgId,function(a){t.lgOpened&&t.settings.escKey===!0&&a.keyCode===27&&(a.preventDefault(),t.settings.allowMediaOverlap&&t.outer.hasClass("lg-can-toggle")&&t.outer.hasClass("lg-components-open")?t.outer.removeClass("lg-components-open"):t.closeGallery()),t.lgOpened&&t.galleryItems.length>1&&(a.keyCode===37&&(a.preventDefault(),t.goToPrevSlide()),a.keyCode===39&&(a.preventDefault(),t.goToNextSlide()))})},r.prototype.arrow=function(){var t=this;this.getElementById("lg-prev").on("click.lg",function(){t.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){t.goToNextSlide()})},r.prototype.arrowDisable=function(t){if(!this.settings.loop&&this.settings.hideControlOnEnd){var a=this.getElementById("lg-prev"),l=this.getElementById("lg-next");t+1===this.galleryItems.length?l.attr("disabled","disabled").addClass("disabled"):l.removeAttr("disabled").removeClass("disabled"),t===0?a.attr("disabled","disabled").addClass("disabled"):a.removeAttr("disabled").removeClass("disabled")}},r.prototype.setTranslate=function(t,a,l,o,u){o===void 0&&(o=1),u===void 0&&(u=1),t.css("transform","translate3d("+a+"px, "+l+"px, 0px) scale3d("+o+", "+u+", 1)")},r.prototype.mousewheel=function(){var t=this,a=0;this.outer.on("wheel.lg",function(l){if(!(!l.deltaY||t.galleryItems.length<2)){l.preventDefault();var o=new Date().getTime();o-a<1e3||(a=o,l.deltaY>0?t.goToNextSlide():l.deltaY<0&&t.goToPrevSlide())}})},r.prototype.isSlideElement=function(t){return t.hasClass("lg-outer")||t.hasClass("lg-item")||t.hasClass("lg-img-wrap")||t.hasClass("lg-img-rotate")},r.prototype.isPosterElement=function(t){var a=this.getSlideItem(this.index).find(".lg-video-play-button").get();return t.hasClass("lg-video-poster")||t.hasClass("lg-video-play-button")||a&&a.contains(t.get())},r.prototype.toggleMaximize=function(){var t=this;this.getElementById("lg-maximize").on("click.lg",function(){t.$container.toggleClass("lg-inline"),t.refreshOnResize()})},r.prototype.invalidateItems=function(){for(var t=0;t<this.items.length;t++){var a=this.items[t],l=je(a);l.off("click.lgcustom-item-"+l.attr("data-lg-id"))}},r.prototype.trapFocus=function(){var t=this;this.$container.get().focus({preventScroll:!0}),je(window).on("keydown.lg.global"+this.lgId,function(a){if(t.lgOpened){var l=a.key==="Tab"||a.keyCode===9;if(l){var o=Rt.getFocusableElements(t.$container.get()),u=o[0],c=o[o.length-1];a.shiftKey?document.activeElement===u&&(c.focus(),a.preventDefault()):document.activeElement===c&&(u.focus(),a.preventDefault())}}})},r.prototype.manageCloseGallery=function(){var t=this;if(this.settings.closable){var a=!1;this.getElementById("lg-close").on("click.lg",function(){t.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(l){var o=je(l.target);t.isSlideElement(o)?a=!0:a=!1}),this.outer.on("mousemove.lg",function(){a=!1}),this.outer.on("mouseup.lg",function(l){var o=je(l.target);t.isSlideElement(o)&&a&&(t.outer.hasClass("lg-dragging")||t.closeGallery())}))}},r.prototype.closeGallery=function(t){var a=this;if(!this.lgOpened||!this.settings.closable&&!t)return 0;this.LGel.trigger(at.beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&je(window).scrollTop(this.prevScrollTop);var l=this.items[this.index],o;if(this.zoomFromOrigin&&l){var u=this.mediaContainerPosition,c=u.top,d=u.bottom,h=this.galleryItems[this.index],p=h.__slideVideoInfo,g=h.poster,v=Rt.getSize(l,this.outer,c+d,p&&g&&this.settings.videoMaxSize);o=Rt.getTransform(l,this.outer,c,d,v)}this.zoomFromOrigin&&o?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.getSlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",o)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,je("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var x=this.zoomFromOrigin&&o?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){a.zoomFromOrigin&&o&&a.outer.removeClass("lg-zoom-from-image"),a.$container.removeClass("lg-show"),a.resetScrollBar(),a.$backdrop.removeAttr("style").css("transition-duration",a.settings.backdropDuration+"ms"),a.outer.removeClass("lg-closing "+a.settings.startClass),a.getSlideItem(a.index).removeClass("lg-start-end-progress"),a.$inner.empty(),a.lgOpened&&a.LGel.trigger(at.afterClose,{instance:a}),a.$container.get()&&a.$container.get().blur(),a.lgOpened=!1},x+100),x+100},r.prototype.initModules=function(){this.plugins.forEach(function(t){try{t.init()}catch{console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},r.prototype.destroyModules=function(t){this.plugins.forEach(function(a){try{t?a.destroy():a.closeGallery&&a.closeGallery()}catch{console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},r.prototype.refresh=function(t){this.settings.dynamic||this.invalidateItems(),t?this.galleryItems=t:this.galleryItems=this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(at.updateSlides)},r.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},r.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),je(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},r.prototype.destroy=function(){var t=this.closeGallery(!0);return t?setTimeout(this.destroyGallery.bind(this),t):this.destroyGallery(),t},r}();function ZM(r,t){return new QM(r,t)}var gt={onAfterAppendSlide:"lgAfterAppendSlide",onInit:"lgInit",onHasVideo:"lgHasVideo",onContainerResize:"lgContainerResize",onAfterAppendSubHtml:"lgAfterAppendSubHtml",onBeforeOpen:"lgBeforeOpen",onAfterOpen:"lgAfterOpen",onSlideItemLoad:"lgSlideItemLoad",onBeforeSlide:"lgBeforeSlide",onAfterSlide:"lgAfterSlide",onPosterClick:"lgPosterClick",onDragStart:"lgDragStart",onDragMove:"lgDragMove",onDragEnd:"lgDragEnd",onBeforeNextSlide:"lgBeforeNextSlide",onBeforePrevSlide:"lgBeforePrevSlide",onBeforeClose:"lgBeforeClose",onAfterClose:"lgAfterClose",onRotateLeft:"lgRotateLeft",onRotateRight:"lgRotateRight",onFlipHorizontal:"lgFlipHorizontal",onFlipVertical:"lgFlipVertical"},jm=function(r){var t=r.children,a=r.elementClassNames,l=r.onAfterAppendSlide,o=r.onInit,u=r.onHasVideo,c=r.onContainerResize,d=r.onAfterAppendSubHtml,h=r.onBeforeOpen,p=r.onAfterOpen,g=r.onSlideItemLoad,v=r.onBeforeSlide,x=r.onAfterSlide,T=r.onPosterClick,N=r.onDragStart,_=r.onDragMove,z=r.onDragEnd,$=r.onBeforeNextSlide,V=r.onBeforePrevSlide,I=r.onBeforeClose,Q=r.onAfterClose,j=r.onRotateLeft,M=r.onRotateRight,P=r.onFlipHorizontal,F=r.onFlipVertical,D=GM(r,["children","elementClassNames","onAfterAppendSlide","onInit","onHasVideo","onContainerResize","onAfterAppendSubHtml","onBeforeOpen","onAfterOpen","onSlideItemLoad","onBeforeSlide","onAfterSlide","onPosterClick","onDragStart","onDragMove","onDragEnd","onBeforeNextSlide","onBeforePrevSlide","onBeforeClose","onAfterClose","onRotateLeft","onRotateRight","onFlipHorizontal","onFlipVertical"]),E=w.useRef(null),X=w.useCallback(function(){l&&E&&E.current&&E.current.addEventListener(gt.onAfterAppendSlide,function(B){l(B.detail)}),o&&E&&E.current&&E.current.addEventListener(gt.onInit,function(B){o(B.detail)}),u&&E&&E.current&&E.current.addEventListener(gt.onHasVideo,function(B){u(B.detail)}),c&&E&&E.current&&E.current.addEventListener(gt.onContainerResize,function(B){c(B.detail)}),d&&E&&E.current&&E.current.addEventListener(gt.onAfterAppendSubHtml,function(B){d(B.detail)}),h&&E&&E.current&&E.current.addEventListener(gt.onBeforeOpen,function(B){h(B.detail)}),p&&E&&E.current&&E.current.addEventListener(gt.onAfterOpen,function(B){p(B.detail)}),g&&E&&E.current&&E.current.addEventListener(gt.onSlideItemLoad,function(B){g(B.detail)}),v&&E&&E.current&&E.current.addEventListener(gt.onBeforeSlide,function(B){v(B.detail)}),x&&E&&E.current&&E.current.addEventListener(gt.onAfterSlide,function(B){x(B.detail)}),T&&E&&E.current&&E.current.addEventListener(gt.onPosterClick,function(B){T(B.detail)}),N&&E&&E.current&&E.current.addEventListener(gt.onDragStart,function(B){N(B.detail)}),_&&E&&E.current&&E.current.addEventListener(gt.onDragMove,function(B){_(B.detail)}),z&&E&&E.current&&E.current.addEventListener(gt.onDragEnd,function(B){z(B.detail)}),$&&E&&E.current&&E.current.addEventListener(gt.onBeforeNextSlide,function(B){$(B.detail)}),V&&E&&E.current&&E.current.addEventListener(gt.onBeforePrevSlide,function(B){V(B.detail)}),I&&E&&E.current&&E.current.addEventListener(gt.onBeforeClose,function(B){I(B.detail)}),Q&&E&&E.current&&E.current.addEventListener(gt.onAfterClose,function(B){Q(B.detail)}),j&&E&&E.current&&E.current.addEventListener(gt.onRotateLeft,function(B){j(B.detail)}),M&&E&&E.current&&E.current.addEventListener(gt.onRotateRight,function(B){M(B.detail)}),P&&E&&E.current&&E.current.addEventListener(gt.onFlipHorizontal,function(B){P(B.detail)}),F&&E&&E.current&&E.current.addEventListener(gt.onFlipVertical,function(B){F(B.detail)})},[l,d,Q,j,M,P,F,p,x,I,$,h,V,v,c,z,_,N,u,o,T,g]);return w.useEffect(function(){X();var B=ZM(E.current,D);return function(){B.destroy()}},[X,D]),w.createElement("div",{className:"lg-react-element "+(a||""),ref:E},t)};/*!
152
152
  * lightgallery | 2.8.3 | March 1st 2025
153
153
  * http://www.lightgalleryjs.com/
154
154
  * Copyright (c) 2020 Sachin Neravath;
@@ -166,10 +166,10 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
166
166
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
167
167
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
168
168
  PERFORMANCE OF THIS SOFTWARE.
169
- ***************************************************************************** */var du=function(){return du=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},du.apply(this,arguments)},KM={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHeight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}},Xl={containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",beforeOpen:"lgBeforeOpen",beforeSlide:"lgBeforeSlide"},Ag=function(){function r(t,a){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=t,this.$LG=a,this}return r.prototype.init=function(){this.settings=du(du({},KM),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},r.prototype.build=function(){var t=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",function(a){var l=t.$LG(a.target);l.hasAttribute("data-lg-item-id")&&setTimeout(function(){if(t.thumbClickable&&!t.core.lgBusy){var o=parseInt(l.attr("data-lg-item-id"));t.core.slide(o,!1,!0,!1)}},50)}),this.core.LGel.on(Xl.beforeSlide+".thumb",function(a){var l=a.detail.index;t.animateThumb(l)}),this.core.LGel.on(Xl.beforeOpen+".thumb",function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth}),this.core.LGel.on(Xl.updateSlides+".thumb",function(){t.rebuildThumbnails()}),this.core.LGel.on(Xl.containerResize+".thumb",function(){t.core.lgOpened&&setTimeout(function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth,t.animateThumb(t.core.index),t.thumbOuterWidth=t.core.outer.get().offsetWidth},50)})},r.prototype.setThumbMarkup=function(){var t="lg-thumb-outer ";this.settings.alignThumbnails&&(t+="lg-thumb-align-"+this.settings.alignThumbnails);var a='<div class="'+t+`">
169
+ ***************************************************************************** */var du=function(){return du=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},du.apply(this,arguments)},KM={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHeight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}},Yl={containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",beforeOpen:"lgBeforeOpen",beforeSlide:"lgBeforeSlide"},Am=function(){function r(t,a){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=t,this.$LG=a,this}return r.prototype.init=function(){this.settings=du(du({},KM),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},r.prototype.build=function(){var t=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",function(a){var l=t.$LG(a.target);l.hasAttribute("data-lg-item-id")&&setTimeout(function(){if(t.thumbClickable&&!t.core.lgBusy){var o=parseInt(l.attr("data-lg-item-id"));t.core.slide(o,!1,!0,!1)}},50)}),this.core.LGel.on(Yl.beforeSlide+".thumb",function(a){var l=a.detail.index;t.animateThumb(l)}),this.core.LGel.on(Yl.beforeOpen+".thumb",function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth}),this.core.LGel.on(Yl.updateSlides+".thumb",function(){t.rebuildThumbnails()}),this.core.LGel.on(Yl.containerResize+".thumb",function(){t.core.lgOpened&&setTimeout(function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth,t.animateThumb(t.core.index),t.thumbOuterWidth=t.core.outer.get().offsetWidth},50)})},r.prototype.setThumbMarkup=function(){var t="lg-thumb-outer ";this.settings.alignThumbnails&&(t+="lg-thumb-align-"+this.settings.alignThumbnails);var a='<div class="'+t+`">
170
170
  <div class="lg-thumb lg-group">
171
171
  </div>
172
- </div>`;this.core.outer.addClass("lg-has-thumb"),this.settings.appendThumbnailsTo===".lg-components"?this.core.$lgComponents.append(a):this.core.outer.append(a),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},r.prototype.enableThumbDrag=function(){var t=this,a={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},l=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(o){t.thumbTotalWidth>t.thumbOuterWidth&&(o.preventDefault(),a.cords.startX=o.pageX,a.startTime=new Date,t.thumbClickable=!1,l=!0,t.core.outer.get().scrollLeft+=1,t.core.outer.get().scrollLeft-=1,t.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(o){t.core.lgOpened&&l&&(a.cords.endX=o.pageX,a=t.onThumbTouchMove(a))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){t.core.lgOpened&&(a.isMoved?a=t.onThumbTouchEnd(a):t.thumbClickable=!0,l&&(l=!1,t.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},r.prototype.enableThumbSwipe=function(){var t=this,a={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(l){t.thumbTotalWidth>t.thumbOuterWidth&&(l.preventDefault(),a.cords.startX=l.targetTouches[0].pageX,t.thumbClickable=!1,a.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(l){t.thumbTotalWidth>t.thumbOuterWidth&&(l.preventDefault(),a.cords.endX=l.targetTouches[0].pageX,a=t.onThumbTouchMove(a))}),this.$lgThumb.on("touchend.lg",function(){a.isMoved?a=t.onThumbTouchEnd(a):t.thumbClickable=!0})},r.prototype.rebuildThumbnails=function(){var t=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){t.thumbTotalWidth=t.core.galleryItems.length*(t.settings.thumbWidth+t.settings.thumbMargin),t.$lgThumb.css("width",t.thumbTotalWidth+"px"),t.$lgThumb.empty(),t.setThumbItemHtml(t.core.galleryItems),t.animateThumb(t.core.index)},50),setTimeout(function(){t.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},r.prototype.setTranslate=function(t){this.$lgThumb.css("transform","translate3d(-"+t+"px, 0px, 0px)")},r.prototype.getPossibleTransformX=function(t){return t>this.thumbTotalWidth-this.thumbOuterWidth&&(t=this.thumbTotalWidth-this.thumbOuterWidth),t<0&&(t=0),t},r.prototype.animateThumb=function(t){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var a=0;switch(this.settings.currentPagerPosition){case"left":a=0;break;case"middle":a=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":a=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*t-1-a,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},r.prototype.onThumbTouchMove=function(t){return t.newTranslateX=this.translateX,t.isMoved=!0,t.touchMoveTime=new Date().valueOf(),t.newTranslateX-=t.cords.endX-t.cords.startX,t.newTranslateX=this.getPossibleTransformX(t.newTranslateX),this.setTranslate(t.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),t},r.prototype.onThumbTouchEnd=function(t){t.isMoved=!1,t.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var a=t.endTime.valueOf()-t.startTime.valueOf(),l=t.cords.endX-t.cords.startX,o=Math.abs(l)/a;return o>.15&&t.endTime.valueOf()-t.touchMoveTime<30?(o+=1,o>2&&(o+=1),o=o+o*(Math.abs(l)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(o-1,2)+"settings"),l=l*o,this.translateX=this.getPossibleTransformX(this.translateX-l),this.setTranslate(this.translateX)):this.translateX=t.newTranslateX,Math.abs(t.cords.endX-t.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),t},r.prototype.getThumbHtml=function(t,a,l){var o=this.core.galleryItems[a].__slideVideoInfo||{},u;o.youtube&&this.settings.loadYouTubeThumbnail?u="//img.youtube.com/vi/"+o.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":u=t;var c=document.createElement("div");c.setAttribute("data-lg-item-id",a+""),c.className="lg-thumb-item "+(a===this.core.index?"active":""),c.style.cssText="width: "+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+"; margin-right: "+this.settings.thumbMargin+"px;";var d=document.createElement("img");return d.alt=l||"",d.setAttribute("data-lg-item-id",a+""),d.src=u,c.appendChild(d),c},r.prototype.setThumbItemHtml=function(t){for(var a=0;a<t.length;a++){var l=this.getThumbHtml(t[a].thumb,a,t[a].alt);this.$lgThumb.append(l)}},r.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},r.prototype.manageActiveClassOnSlideChange=function(){var t=this;this.core.LGel.on(Xl.beforeSlide+".thumb",function(a){var l=t.core.outer.find(".lg-thumb-item"),o=a.detail.index;l.removeClass("active"),l.eq(o).addClass("active")})},r.prototype.toggleThumbBar=function(){var t=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){t.core.outer.toggleClass("lg-components-open")}))},r.prototype.thumbKeyPress=function(){var t=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(a){!t.core.lgOpened||!t.settings.toggleThumb||(a.keyCode===38?(a.preventDefault(),t.core.outer.addClass("lg-components-open")):a.keyCode===40&&(a.preventDefault(),t.core.outer.removeClass("lg-components-open")))})},r.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},r}();/*!
172
+ </div>`;this.core.outer.addClass("lg-has-thumb"),this.settings.appendThumbnailsTo===".lg-components"?this.core.$lgComponents.append(a):this.core.outer.append(a),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},r.prototype.enableThumbDrag=function(){var t=this,a={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},l=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(o){t.thumbTotalWidth>t.thumbOuterWidth&&(o.preventDefault(),a.cords.startX=o.pageX,a.startTime=new Date,t.thumbClickable=!1,l=!0,t.core.outer.get().scrollLeft+=1,t.core.outer.get().scrollLeft-=1,t.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(o){t.core.lgOpened&&l&&(a.cords.endX=o.pageX,a=t.onThumbTouchMove(a))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){t.core.lgOpened&&(a.isMoved?a=t.onThumbTouchEnd(a):t.thumbClickable=!0,l&&(l=!1,t.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},r.prototype.enableThumbSwipe=function(){var t=this,a={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(l){t.thumbTotalWidth>t.thumbOuterWidth&&(l.preventDefault(),a.cords.startX=l.targetTouches[0].pageX,t.thumbClickable=!1,a.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(l){t.thumbTotalWidth>t.thumbOuterWidth&&(l.preventDefault(),a.cords.endX=l.targetTouches[0].pageX,a=t.onThumbTouchMove(a))}),this.$lgThumb.on("touchend.lg",function(){a.isMoved?a=t.onThumbTouchEnd(a):t.thumbClickable=!0})},r.prototype.rebuildThumbnails=function(){var t=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){t.thumbTotalWidth=t.core.galleryItems.length*(t.settings.thumbWidth+t.settings.thumbMargin),t.$lgThumb.css("width",t.thumbTotalWidth+"px"),t.$lgThumb.empty(),t.setThumbItemHtml(t.core.galleryItems),t.animateThumb(t.core.index)},50),setTimeout(function(){t.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},r.prototype.setTranslate=function(t){this.$lgThumb.css("transform","translate3d(-"+t+"px, 0px, 0px)")},r.prototype.getPossibleTransformX=function(t){return t>this.thumbTotalWidth-this.thumbOuterWidth&&(t=this.thumbTotalWidth-this.thumbOuterWidth),t<0&&(t=0),t},r.prototype.animateThumb=function(t){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var a=0;switch(this.settings.currentPagerPosition){case"left":a=0;break;case"middle":a=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":a=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*t-1-a,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},r.prototype.onThumbTouchMove=function(t){return t.newTranslateX=this.translateX,t.isMoved=!0,t.touchMoveTime=new Date().valueOf(),t.newTranslateX-=t.cords.endX-t.cords.startX,t.newTranslateX=this.getPossibleTransformX(t.newTranslateX),this.setTranslate(t.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),t},r.prototype.onThumbTouchEnd=function(t){t.isMoved=!1,t.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var a=t.endTime.valueOf()-t.startTime.valueOf(),l=t.cords.endX-t.cords.startX,o=Math.abs(l)/a;return o>.15&&t.endTime.valueOf()-t.touchMoveTime<30?(o+=1,o>2&&(o+=1),o=o+o*(Math.abs(l)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(o-1,2)+"settings"),l=l*o,this.translateX=this.getPossibleTransformX(this.translateX-l),this.setTranslate(this.translateX)):this.translateX=t.newTranslateX,Math.abs(t.cords.endX-t.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),t},r.prototype.getThumbHtml=function(t,a,l){var o=this.core.galleryItems[a].__slideVideoInfo||{},u;o.youtube&&this.settings.loadYouTubeThumbnail?u="//img.youtube.com/vi/"+o.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":u=t;var c=document.createElement("div");c.setAttribute("data-lg-item-id",a+""),c.className="lg-thumb-item "+(a===this.core.index?"active":""),c.style.cssText="width: "+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+"; margin-right: "+this.settings.thumbMargin+"px;";var d=document.createElement("img");return d.alt=l||"",d.setAttribute("data-lg-item-id",a+""),d.src=u,c.appendChild(d),c},r.prototype.setThumbItemHtml=function(t){for(var a=0;a<t.length;a++){var l=this.getThumbHtml(t[a].thumb,a,t[a].alt);this.$lgThumb.append(l)}},r.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},r.prototype.manageActiveClassOnSlideChange=function(){var t=this;this.core.LGel.on(Yl.beforeSlide+".thumb",function(a){var l=t.core.outer.find(".lg-thumb-item"),o=a.detail.index;l.removeClass("active"),l.eq(o).addClass("active")})},r.prototype.toggleThumbBar=function(){var t=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){t.core.outer.toggleClass("lg-components-open")}))},r.prototype.thumbKeyPress=function(){var t=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(a){!t.core.lgOpened||!t.settings.toggleThumb||(a.keyCode===38?(a.preventDefault(),t.core.outer.addClass("lg-components-open")):a.keyCode===40&&(a.preventDefault(),t.core.outer.removeClass("lg-components-open")))})},r.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},r}();/*!
173
173
  * lightgallery | 2.8.3 | March 1st 2025
174
174
  * http://www.lightgalleryjs.com/
175
175
  * Copyright (c) 2020 Sachin Neravath;
@@ -187,7 +187,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
187
187
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
188
188
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
189
189
  PERFORMANCE OF THIS SOFTWARE.
190
- ***************************************************************************** */var hu=function(){return hu=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},hu.apply(this,arguments)},JM={scale:1,zoom:!0,infiniteZoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:"lg-zoom-in",zoomOut:"lg-zoom-out"},enableZoomAfter:300,zoomPluginStrings:{zoomIn:"Zoom in",zoomOut:"Zoom out",viewActualSize:"View actual size"}},wr={containerResize:"lgContainerResize",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",afterSlide:"lgAfterSlide",rotateLeft:"lgRotateLeft",rotateRight:"lgRotateRight",flipHorizontal:"lgFlipHorizontal",flipVertical:"lgFlipVertical"},np=500,Mg=function(){function r(t,a){return this.core=t,this.$LG=a,this.settings=hu(hu({},JM),this.core.settings),this}return r.prototype.buildTemplates=function(){var t=this.settings.showZoomInOutIcons?'<button id="'+this.core.getIdName("lg-zoom-in")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-in lg-icon"></button><button id="'+this.core.getIdName("lg-zoom-out")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomOut+'" class="lg-zoom-out lg-icon"></button>':"";this.settings.actualSize&&(t+='<button id="'+this.core.getIdName("lg-actual-size")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.viewActualSize+'" class="'+this.settings.actualSizeIcons.zoomIn+' lg-icon"></button>'),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(t)},r.prototype.enableZoom=function(t){var a=this,l=this.settings.enableZoomAfter+t.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&t.detail.delay?l=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout(function(){a.isImageSlide(a.core.index)&&(a.core.getSlideItem(t.detail.index).addClass("lg-zoomable"),t.detail.index===a.core.index&&a.setZoomEssentials())},l+30)},r.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(wr.slideItemLoad+".zoom",this.enableZoom.bind(this))},r.prototype.getDragCords=function(t){return{x:t.pageX,y:t.pageY}},r.prototype.getSwipeCords=function(t){var a=t.touches[0].pageX,l=t.touches[0].pageY;return{x:a,y:l}},r.prototype.getDragAllowedAxises=function(t,a){if(!this.containerRect)return{allowX:!1,allowY:!1};var l=this.core.getSlideItem(this.core.index).find(".lg-image").first().get(),o=0,u=0,c=l.getBoundingClientRect();t?(o=l.offsetHeight*t,u=l.offsetWidth*t):a?(o=c.height+a*c.height,u=c.width+a*c.width):(o=c.height,u=c.width);var d=o>this.containerRect.height,h=u>this.containerRect.width;return{allowX:h,allowY:d}},r.prototype.setZoomEssentials=function(){this.containerRect=this.core.$content.get().getBoundingClientRect()},r.prototype.zoomImage=function(t,a,l,o){if(!(Math.abs(a)<=0)){var u=this.containerRect.width/2+this.containerRect.left,c=this.containerRect.height/2+this.containerRect.top+this.scrollTop,d,h;t===1&&(this.positionChanged=!1);var p=this.getDragAllowedAxises(0,a),m=p.allowY,y=p.allowX;this.positionChanged&&(d=this.left/(this.scale-a),h=this.top/(this.scale-a),this.pageX=u-d,this.pageY=c-h,this.positionChanged=!1);var x=this.getPossibleSwipeDragCords(a),T,N,_=u-this.pageX,z=c-this.pageY;if(t-a>1){var $=(t-a)/Math.abs(a);_=(a<0?-_:_)+this.left*($+(a<0?-1:1)),z=(a<0?-z:z)+this.top*($+(a<0?-1:1)),T=_/$,N=z/$}else{var $=(t-a)*a;T=_*$,N=z*$}l&&(y?this.isBeyondPossibleLeft(T,x.minX)?T=x.minX:this.isBeyondPossibleRight(T,x.maxX)&&(T=x.maxX):t>1&&(T<x.minX?T=x.minX:T>x.maxX&&(T=x.maxX)),m?this.isBeyondPossibleTop(N,x.minY)?N=x.minY:this.isBeyondPossibleBottom(N,x.maxY)&&(N=x.maxY):t>1&&(N<x.minY?N=x.minY:N>x.maxY&&(N=x.maxY))),this.setZoomStyles({x:T,y:N,scale:t}),this.left=T,this.top=N,o&&this.setZoomImageSize()}},r.prototype.resetImageTranslate=function(t){if(this.isImageSlide(t)){var a=this.core.getSlideItem(t).find(".lg-image").first();this.imageReset=!1,a.removeClass("reset-transition reset-transition-y reset-transition-x"),this.core.outer.removeClass("lg-actual-size"),a.css("width","auto").css("height","auto"),setTimeout(function(){a.removeClass("no-transition")},10)}},r.prototype.setZoomImageSize=function(){var t=this,a=this.core.getSlideItem(this.core.index).find(".lg-image").first();setTimeout(function(){var l=t.getCurrentImageActualSizeScale();t.scale>=l&&(a.addClass("no-transition"),t.imageReset=!0)},np),setTimeout(function(){var l=t.getCurrentImageActualSizeScale();if(t.scale>=l){var o=t.getDragAllowedAxises(t.scale);a.css("width",a.get().naturalWidth+"px").css("height",a.get().naturalHeight+"px"),t.core.outer.addClass("lg-actual-size"),o.allowX&&o.allowY?a.addClass("reset-transition"):o.allowX&&!o.allowY?a.addClass("reset-transition-x"):!o.allowX&&o.allowY&&a.addClass("reset-transition-y")}},np+50)},r.prototype.setZoomStyles=function(t){var a=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),l=this.core.getSlideItem(this.core.index).find(".lg-image").first(),o=this.core.outer.find(".lg-current .lg-dummy-img").first();this.scale=t.scale,l.css("transform","scale3d("+t.scale+", "+t.scale+", 1)"),o.css("transform","scale3d("+t.scale+", "+t.scale+", 1)");var u="translate3d("+t.x+"px, "+t.y+"px, 0)";a.css("transform",u)},r.prototype.setActualSize=function(t,a){var l=this;if(!this.zoomInProgress){this.zoomInProgress=!0;var o=this.core.galleryItems[this.core.index];this.resetImageTranslate(t),setTimeout(function(){if(!(!o.src||l.core.outer.hasClass("lg-first-slide-loading"))){var u=l.getCurrentImageActualSizeScale(),c=l.scale;l.core.outer.hasClass("lg-zoomed")?l.scale=1:l.scale=l.getScale(u),l.setPageCords(a),l.beginZoom(l.scale),l.zoomImage(l.scale,l.scale-c,!0,!0)}},50),setTimeout(function(){l.core.outer.removeClass("lg-grabbing").addClass("lg-grab")},60),setTimeout(function(){l.zoomInProgress=!1},np+110)}},r.prototype.getNaturalWidth=function(t){var a=this.core.getSlideItem(t).find(".lg-image").first(),l=this.core.galleryItems[t].width;return l?parseFloat(l):a.get().naturalWidth},r.prototype.getActualSizeScale=function(t,a){var l,o;return t>=a?(l=t/a,o=l||2):o=1,o},r.prototype.getCurrentImageActualSizeScale=function(){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first(),a=t.get().offsetWidth,l=this.getNaturalWidth(this.core.index)||a;return this.getActualSizeScale(l,a)},r.prototype.getPageCords=function(t){var a={};if(t)a.x=t.pageX||t.touches[0].pageX,a.y=t.pageY||t.touches[0].pageY;else{var l=this.core.$content.get().getBoundingClientRect();a.x=l.width/2+l.left,a.y=l.height/2+this.scrollTop+l.top}return a},r.prototype.setPageCords=function(t){var a=this.getPageCords(t);this.pageX=a.x,this.pageY=a.y},r.prototype.manageActualPixelClassNames=function(){var t=this.core.getElementById("lg-actual-size");t.removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)},r.prototype.beginZoom=function(t){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t>1?(this.core.outer.addClass("lg-zoomed"),this.manageActualPixelClassNames()):this.resetZoom(),t>1},r.prototype.getScale=function(t){var a=this.getCurrentImageActualSizeScale();return t<1?t=1:t>a&&(t=a),t},r.prototype.init=function(){var t=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var a=null;this.core.outer.on("dblclick.lg",function(l){t.$LG(l.target).hasClass("lg-image")&&t.setActualSize(t.core.index,l)}),this.core.outer.on("touchstart.lg",function(l){var o=t.$LG(l.target);l.touches.length===1&&o.hasClass("lg-image")&&(a?(clearTimeout(a),a=null,l.preventDefault(),t.setActualSize(t.core.index,l)):a=setTimeout(function(){a=null},300))}),this.core.LGel.on(wr.containerResize+".zoom "+wr.rotateRight+".zoom "+wr.rotateLeft+".zoom "+wr.flipHorizontal+".zoom "+wr.flipVertical+".zoom",function(){if(!(!t.core.lgOpened||!t.isImageSlide(t.core.index)||t.core.touchAction)){var l=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();t.top=0,t.left=0,t.setZoomEssentials(),t.setZoomSwipeStyles(l,{x:0,y:0}),t.positionChanged=!0}}),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,function(){t.core.lgOpened&&(t.scrollTop=t.$LG(window).scrollTop())}),this.core.getElementById("lg-zoom-out").on("click.lg",function(){if(t.isImageSlide(t.core.index)){var l=0;t.imageReset&&(t.resetImageTranslate(t.core.index),l=50),setTimeout(function(){var o=t.scale-t.settings.scale;o<1&&(o=1),t.beginZoom(o),t.zoomImage(o,-t.settings.scale,!0,!t.settings.infiniteZoom)},l)}}),this.core.getElementById("lg-zoom-in").on("click.lg",function(){t.zoomIn()}),this.core.getElementById("lg-actual-size").on("click.lg",function(){t.setActualSize(t.core.index)}),this.core.LGel.on(wr.beforeOpen+".zoom",function(){t.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on(wr.afterOpen+".zoom",function(){t.scrollTop=t.$LG(window).scrollTop(),t.pageX=t.core.outer.width()/2,t.pageY=t.core.outer.height()/2+t.scrollTop,t.scale=1}),this.core.LGel.on(wr.afterSlide+".zoom",function(l){var o=l.detail.prevIndex;t.scale=1,t.positionChanged=!1,t.zoomInProgress=!1,t.resetZoom(o),t.resetImageTranslate(o),t.isImageSlide(t.core.index)&&t.setZoomEssentials()}),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.zoomInProgress=!1}},r.prototype.zoomIn=function(){if(this.isImageSlide(this.core.index)){var t=this.scale+this.settings.scale;this.settings.infiniteZoom||(t=this.getScale(t)),this.beginZoom(t),this.zoomImage(t,Math.min(this.settings.scale,t-this.scale),!0,!this.settings.infiniteZoom)}},r.prototype.resetZoom=function(t){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var a=this.core.getElementById("lg-actual-size"),l=this.core.getSlideItem(t!==void 0?t:this.core.index);a.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),l.find(".lg-img-wrap").first().removeAttr("style"),l.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},r.prototype.getTouchDistance=function(t){return Math.sqrt((t.touches[0].pageX-t.touches[1].pageX)*(t.touches[0].pageX-t.touches[1].pageX)+(t.touches[0].pageY-t.touches[1].pageY)*(t.touches[0].pageY-t.touches[1].pageY))},r.prototype.pinchZoom=function(){var t=this,a=0,l=!1,o=1,u=0,c=this.core.getSlideItem(this.core.index);this.core.outer.on("touchstart.lg",function(d){if(c=t.core.getSlideItem(t.core.index),!!t.isImageSlide(t.core.index)&&d.touches.length===2){if(d.preventDefault(),t.core.outer.hasClass("lg-first-slide-loading"))return;o=t.scale||1,t.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t.setPageCords(d),t.resetImageTranslate(t.core.index),t.core.touchAction="pinch",a=t.getTouchDistance(d)}}),this.core.$inner.on("touchmove.lg",function(d){if(d.touches.length===2&&t.core.touchAction==="pinch"&&(t.$LG(d.target).hasClass("lg-item")||c.get().contains(d.target))){d.preventDefault();var h=t.getTouchDistance(d),p=a-h;if(!l&&Math.abs(p)>5&&(l=!0),l){u=t.scale;var m=Math.max(1,o+-p*.02);t.scale=Math.round((m+Number.EPSILON)*100)/100;var y=t.scale-u;t.zoomImage(t.scale,Math.round((y+Number.EPSILON)*100)/100,!1,!1)}}}),this.core.$inner.on("touchend.lg",function(d){if(t.core.touchAction==="pinch"&&(t.$LG(d.target).hasClass("lg-item")||c.get().contains(d.target))){if(l=!1,a=0,t.scale<=1)t.resetZoom();else{var h=t.getCurrentImageActualSizeScale();if(t.scale>=h){var p=h-t.scale;p===0&&(p=.01),t.zoomImage(h,p,!1,!0)}t.manageActualPixelClassNames(),t.core.outer.addClass("lg-zoomed")}t.core.touchAction=void 0}})},r.prototype.touchendZoom=function(t,a,l,o,u){var c=a.x-t.x,d=a.y-t.y,h=Math.abs(c)/u+1,p=Math.abs(d)/u+1;h>2&&(h+=1),p>2&&(p+=1),c=c*h,d=d*p;var m=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),y={};y.x=this.left+c,y.y=this.top+d;var x=this.getPossibleSwipeDragCords();(Math.abs(c)>15||Math.abs(d)>15)&&(o&&(this.isBeyondPossibleTop(y.y,x.minY)?y.y=x.minY:this.isBeyondPossibleBottom(y.y,x.maxY)&&(y.y=x.maxY)),l&&(this.isBeyondPossibleLeft(y.x,x.minX)?y.x=x.minX:this.isBeyondPossibleRight(y.x,x.maxX)&&(y.x=x.maxX)),o?this.top=y.y:y.y=this.top,l?this.left=y.x:y.x=this.left,this.setZoomSwipeStyles(m,y),this.positionChanged=!0)},r.prototype.getZoomSwipeCords=function(t,a,l,o,u){var c={};if(o){if(c.y=this.top+(a.y-t.y),this.isBeyondPossibleTop(c.y,u.minY)){var d=u.minY-c.y;c.y=u.minY-d/6}else if(this.isBeyondPossibleBottom(c.y,u.maxY)){var h=c.y-u.maxY;c.y=u.maxY+h/6}}else c.y=this.top;if(l){if(c.x=this.left+(a.x-t.x),this.isBeyondPossibleLeft(c.x,u.minX)){var p=u.minX-c.x;c.x=u.minX-p/6}else if(this.isBeyondPossibleRight(c.x,u.maxX)){var m=c.x-u.maxX;c.x=u.maxX+m/6}}else c.x=this.left;return c},r.prototype.isBeyondPossibleLeft=function(t,a){return t>=a},r.prototype.isBeyondPossibleRight=function(t,a){return t<=a},r.prototype.isBeyondPossibleTop=function(t,a){return t>=a},r.prototype.isBeyondPossibleBottom=function(t,a){return t<=a},r.prototype.isImageSlide=function(t){var a=this.core.galleryItems[t];return this.core.getSlideType(a)==="image"},r.prototype.getPossibleSwipeDragCords=function(t){var a=this.core.getSlideItem(this.core.index).find(".lg-image").first(),l=this.core.mediaContainerPosition.bottom,o=a.get().getBoundingClientRect(),u=o.height,c=o.width;t&&(u=u+t*u,c=c+t*c);var d=(u-this.containerRect.height)/2,h=(this.containerRect.height-u)/2+l,p=(c-this.containerRect.width)/2,m=(this.containerRect.width-c)/2,y={minY:d,maxY:h,minX:p,maxX:m};return y},r.prototype.setZoomSwipeStyles=function(t,a){t.css("transform","translate3d("+a.x+"px, "+a.y+"px, 0)")},r.prototype.zoomSwipe=function(){var t=this,a={},l={},o=!1,u=!1,c=!1,d=new Date,h=new Date,p,m,y=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(x){if(t.isImageSlide(t.core.index)&&(y=t.core.getSlideItem(t.core.index),(t.$LG(x.target).hasClass("lg-item")||y.get().contains(x.target))&&x.touches.length===1&&t.core.outer.hasClass("lg-zoomed"))){x.preventDefault(),d=new Date,t.core.touchAction="zoomSwipe",m=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();var T=t.getDragAllowedAxises(0);c=T.allowY,u=T.allowX,(u||c)&&(a=t.getSwipeCords(x)),p=t.getPossibleSwipeDragCords(),t.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(x){if(x.touches.length===1&&t.core.touchAction==="zoomSwipe"&&(t.$LG(x.target).hasClass("lg-item")||y.get().contains(x.target))){x.preventDefault(),t.core.touchAction="zoomSwipe",l=t.getSwipeCords(x);var T=t.getZoomSwipeCords(a,l,u,c,p);(Math.abs(l.x-a.x)>15||Math.abs(l.y-a.y)>15)&&(o=!0,t.setZoomSwipeStyles(m,T))}}),this.core.$inner.on("touchend.lg",function(x){if(t.core.touchAction==="zoomSwipe"&&(t.$LG(x.target).hasClass("lg-item")||y.get().contains(x.target))){if(x.preventDefault(),t.core.touchAction=void 0,t.core.outer.removeClass("lg-zoom-dragging"),!o)return;o=!1,h=new Date;var T=h.valueOf()-d.valueOf();t.touchendZoom(a,l,u,c,T)}})},r.prototype.zoomDrag=function(){var t=this,a={},l={},o=!1,u=!1,c=!1,d=!1,h,p,m,y;this.core.outer.on("mousedown.lg.zoom",function(x){if(t.isImageSlide(t.core.index)){var T=t.core.getSlideItem(t.core.index);if(t.$LG(x.target).hasClass("lg-item")||T.get().contains(x.target)){h=new Date,y=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();var N=t.getDragAllowedAxises(0);d=N.allowY,c=N.allowX,t.core.outer.hasClass("lg-zoomed")&&t.$LG(x.target).hasClass("lg-object")&&(c||d)&&(x.preventDefault(),a=t.getDragCords(x),m=t.getPossibleSwipeDragCords(),o=!0,t.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}}),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,function(x){if(o){u=!0,l=t.getDragCords(x);var T=t.getZoomSwipeCords(a,l,c,d,m);t.setZoomSwipeStyles(y,T)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(x){if(o){if(p=new Date,o=!1,t.core.outer.removeClass("lg-zoom-dragging"),u&&(a.x!==l.x||a.y!==l.y)){l=t.getDragCords(x);var T=p.valueOf()-h.valueOf();t.touchendZoom(a,l,c,d,T)}u=!1}t.core.outer.removeClass("lg-grabbing").addClass("lg-grab")})},r.prototype.closeGallery=function(){this.resetZoom(),this.zoomInProgress=!1},r.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},r}();/*!
190
+ ***************************************************************************** */var hu=function(){return hu=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},hu.apply(this,arguments)},JM={scale:1,zoom:!0,infiniteZoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:"lg-zoom-in",zoomOut:"lg-zoom-out"},enableZoomAfter:300,zoomPluginStrings:{zoomIn:"Zoom in",zoomOut:"Zoom out",viewActualSize:"View actual size"}},wr={containerResize:"lgContainerResize",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",afterSlide:"lgAfterSlide",rotateLeft:"lgRotateLeft",rotateRight:"lgRotateRight",flipHorizontal:"lgFlipHorizontal",flipVertical:"lgFlipVertical"},np=500,Mm=function(){function r(t,a){return this.core=t,this.$LG=a,this.settings=hu(hu({},JM),this.core.settings),this}return r.prototype.buildTemplates=function(){var t=this.settings.showZoomInOutIcons?'<button id="'+this.core.getIdName("lg-zoom-in")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-in lg-icon"></button><button id="'+this.core.getIdName("lg-zoom-out")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomOut+'" class="lg-zoom-out lg-icon"></button>':"";this.settings.actualSize&&(t+='<button id="'+this.core.getIdName("lg-actual-size")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.viewActualSize+'" class="'+this.settings.actualSizeIcons.zoomIn+' lg-icon"></button>'),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(t)},r.prototype.enableZoom=function(t){var a=this,l=this.settings.enableZoomAfter+t.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&t.detail.delay?l=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout(function(){a.isImageSlide(a.core.index)&&(a.core.getSlideItem(t.detail.index).addClass("lg-zoomable"),t.detail.index===a.core.index&&a.setZoomEssentials())},l+30)},r.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(wr.slideItemLoad+".zoom",this.enableZoom.bind(this))},r.prototype.getDragCords=function(t){return{x:t.pageX,y:t.pageY}},r.prototype.getSwipeCords=function(t){var a=t.touches[0].pageX,l=t.touches[0].pageY;return{x:a,y:l}},r.prototype.getDragAllowedAxises=function(t,a){if(!this.containerRect)return{allowX:!1,allowY:!1};var l=this.core.getSlideItem(this.core.index).find(".lg-image").first().get(),o=0,u=0,c=l.getBoundingClientRect();t?(o=l.offsetHeight*t,u=l.offsetWidth*t):a?(o=c.height+a*c.height,u=c.width+a*c.width):(o=c.height,u=c.width);var d=o>this.containerRect.height,h=u>this.containerRect.width;return{allowX:h,allowY:d}},r.prototype.setZoomEssentials=function(){this.containerRect=this.core.$content.get().getBoundingClientRect()},r.prototype.zoomImage=function(t,a,l,o){if(!(Math.abs(a)<=0)){var u=this.containerRect.width/2+this.containerRect.left,c=this.containerRect.height/2+this.containerRect.top+this.scrollTop,d,h;t===1&&(this.positionChanged=!1);var p=this.getDragAllowedAxises(0,a),g=p.allowY,v=p.allowX;this.positionChanged&&(d=this.left/(this.scale-a),h=this.top/(this.scale-a),this.pageX=u-d,this.pageY=c-h,this.positionChanged=!1);var x=this.getPossibleSwipeDragCords(a),T,N,_=u-this.pageX,z=c-this.pageY;if(t-a>1){var $=(t-a)/Math.abs(a);_=(a<0?-_:_)+this.left*($+(a<0?-1:1)),z=(a<0?-z:z)+this.top*($+(a<0?-1:1)),T=_/$,N=z/$}else{var $=(t-a)*a;T=_*$,N=z*$}l&&(v?this.isBeyondPossibleLeft(T,x.minX)?T=x.minX:this.isBeyondPossibleRight(T,x.maxX)&&(T=x.maxX):t>1&&(T<x.minX?T=x.minX:T>x.maxX&&(T=x.maxX)),g?this.isBeyondPossibleTop(N,x.minY)?N=x.minY:this.isBeyondPossibleBottom(N,x.maxY)&&(N=x.maxY):t>1&&(N<x.minY?N=x.minY:N>x.maxY&&(N=x.maxY))),this.setZoomStyles({x:T,y:N,scale:t}),this.left=T,this.top=N,o&&this.setZoomImageSize()}},r.prototype.resetImageTranslate=function(t){if(this.isImageSlide(t)){var a=this.core.getSlideItem(t).find(".lg-image").first();this.imageReset=!1,a.removeClass("reset-transition reset-transition-y reset-transition-x"),this.core.outer.removeClass("lg-actual-size"),a.css("width","auto").css("height","auto"),setTimeout(function(){a.removeClass("no-transition")},10)}},r.prototype.setZoomImageSize=function(){var t=this,a=this.core.getSlideItem(this.core.index).find(".lg-image").first();setTimeout(function(){var l=t.getCurrentImageActualSizeScale();t.scale>=l&&(a.addClass("no-transition"),t.imageReset=!0)},np),setTimeout(function(){var l=t.getCurrentImageActualSizeScale();if(t.scale>=l){var o=t.getDragAllowedAxises(t.scale);a.css("width",a.get().naturalWidth+"px").css("height",a.get().naturalHeight+"px"),t.core.outer.addClass("lg-actual-size"),o.allowX&&o.allowY?a.addClass("reset-transition"):o.allowX&&!o.allowY?a.addClass("reset-transition-x"):!o.allowX&&o.allowY&&a.addClass("reset-transition-y")}},np+50)},r.prototype.setZoomStyles=function(t){var a=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),l=this.core.getSlideItem(this.core.index).find(".lg-image").first(),o=this.core.outer.find(".lg-current .lg-dummy-img").first();this.scale=t.scale,l.css("transform","scale3d("+t.scale+", "+t.scale+", 1)"),o.css("transform","scale3d("+t.scale+", "+t.scale+", 1)");var u="translate3d("+t.x+"px, "+t.y+"px, 0)";a.css("transform",u)},r.prototype.setActualSize=function(t,a){var l=this;if(!this.zoomInProgress){this.zoomInProgress=!0;var o=this.core.galleryItems[this.core.index];this.resetImageTranslate(t),setTimeout(function(){if(!(!o.src||l.core.outer.hasClass("lg-first-slide-loading"))){var u=l.getCurrentImageActualSizeScale(),c=l.scale;l.core.outer.hasClass("lg-zoomed")?l.scale=1:l.scale=l.getScale(u),l.setPageCords(a),l.beginZoom(l.scale),l.zoomImage(l.scale,l.scale-c,!0,!0)}},50),setTimeout(function(){l.core.outer.removeClass("lg-grabbing").addClass("lg-grab")},60),setTimeout(function(){l.zoomInProgress=!1},np+110)}},r.prototype.getNaturalWidth=function(t){var a=this.core.getSlideItem(t).find(".lg-image").first(),l=this.core.galleryItems[t].width;return l?parseFloat(l):a.get().naturalWidth},r.prototype.getActualSizeScale=function(t,a){var l,o;return t>=a?(l=t/a,o=l||2):o=1,o},r.prototype.getCurrentImageActualSizeScale=function(){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first(),a=t.get().offsetWidth,l=this.getNaturalWidth(this.core.index)||a;return this.getActualSizeScale(l,a)},r.prototype.getPageCords=function(t){var a={};if(t)a.x=t.pageX||t.touches[0].pageX,a.y=t.pageY||t.touches[0].pageY;else{var l=this.core.$content.get().getBoundingClientRect();a.x=l.width/2+l.left,a.y=l.height/2+this.scrollTop+l.top}return a},r.prototype.setPageCords=function(t){var a=this.getPageCords(t);this.pageX=a.x,this.pageY=a.y},r.prototype.manageActualPixelClassNames=function(){var t=this.core.getElementById("lg-actual-size");t.removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)},r.prototype.beginZoom=function(t){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t>1?(this.core.outer.addClass("lg-zoomed"),this.manageActualPixelClassNames()):this.resetZoom(),t>1},r.prototype.getScale=function(t){var a=this.getCurrentImageActualSizeScale();return t<1?t=1:t>a&&(t=a),t},r.prototype.init=function(){var t=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var a=null;this.core.outer.on("dblclick.lg",function(l){t.$LG(l.target).hasClass("lg-image")&&t.setActualSize(t.core.index,l)}),this.core.outer.on("touchstart.lg",function(l){var o=t.$LG(l.target);l.touches.length===1&&o.hasClass("lg-image")&&(a?(clearTimeout(a),a=null,l.preventDefault(),t.setActualSize(t.core.index,l)):a=setTimeout(function(){a=null},300))}),this.core.LGel.on(wr.containerResize+".zoom "+wr.rotateRight+".zoom "+wr.rotateLeft+".zoom "+wr.flipHorizontal+".zoom "+wr.flipVertical+".zoom",function(){if(!(!t.core.lgOpened||!t.isImageSlide(t.core.index)||t.core.touchAction)){var l=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();t.top=0,t.left=0,t.setZoomEssentials(),t.setZoomSwipeStyles(l,{x:0,y:0}),t.positionChanged=!0}}),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,function(){t.core.lgOpened&&(t.scrollTop=t.$LG(window).scrollTop())}),this.core.getElementById("lg-zoom-out").on("click.lg",function(){if(t.isImageSlide(t.core.index)){var l=0;t.imageReset&&(t.resetImageTranslate(t.core.index),l=50),setTimeout(function(){var o=t.scale-t.settings.scale;o<1&&(o=1),t.beginZoom(o),t.zoomImage(o,-t.settings.scale,!0,!t.settings.infiniteZoom)},l)}}),this.core.getElementById("lg-zoom-in").on("click.lg",function(){t.zoomIn()}),this.core.getElementById("lg-actual-size").on("click.lg",function(){t.setActualSize(t.core.index)}),this.core.LGel.on(wr.beforeOpen+".zoom",function(){t.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on(wr.afterOpen+".zoom",function(){t.scrollTop=t.$LG(window).scrollTop(),t.pageX=t.core.outer.width()/2,t.pageY=t.core.outer.height()/2+t.scrollTop,t.scale=1}),this.core.LGel.on(wr.afterSlide+".zoom",function(l){var o=l.detail.prevIndex;t.scale=1,t.positionChanged=!1,t.zoomInProgress=!1,t.resetZoom(o),t.resetImageTranslate(o),t.isImageSlide(t.core.index)&&t.setZoomEssentials()}),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.zoomInProgress=!1}},r.prototype.zoomIn=function(){if(this.isImageSlide(this.core.index)){var t=this.scale+this.settings.scale;this.settings.infiniteZoom||(t=this.getScale(t)),this.beginZoom(t),this.zoomImage(t,Math.min(this.settings.scale,t-this.scale),!0,!this.settings.infiniteZoom)}},r.prototype.resetZoom=function(t){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var a=this.core.getElementById("lg-actual-size"),l=this.core.getSlideItem(t!==void 0?t:this.core.index);a.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),l.find(".lg-img-wrap").first().removeAttr("style"),l.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},r.prototype.getTouchDistance=function(t){return Math.sqrt((t.touches[0].pageX-t.touches[1].pageX)*(t.touches[0].pageX-t.touches[1].pageX)+(t.touches[0].pageY-t.touches[1].pageY)*(t.touches[0].pageY-t.touches[1].pageY))},r.prototype.pinchZoom=function(){var t=this,a=0,l=!1,o=1,u=0,c=this.core.getSlideItem(this.core.index);this.core.outer.on("touchstart.lg",function(d){if(c=t.core.getSlideItem(t.core.index),!!t.isImageSlide(t.core.index)&&d.touches.length===2){if(d.preventDefault(),t.core.outer.hasClass("lg-first-slide-loading"))return;o=t.scale||1,t.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t.setPageCords(d),t.resetImageTranslate(t.core.index),t.core.touchAction="pinch",a=t.getTouchDistance(d)}}),this.core.$inner.on("touchmove.lg",function(d){if(d.touches.length===2&&t.core.touchAction==="pinch"&&(t.$LG(d.target).hasClass("lg-item")||c.get().contains(d.target))){d.preventDefault();var h=t.getTouchDistance(d),p=a-h;if(!l&&Math.abs(p)>5&&(l=!0),l){u=t.scale;var g=Math.max(1,o+-p*.02);t.scale=Math.round((g+Number.EPSILON)*100)/100;var v=t.scale-u;t.zoomImage(t.scale,Math.round((v+Number.EPSILON)*100)/100,!1,!1)}}}),this.core.$inner.on("touchend.lg",function(d){if(t.core.touchAction==="pinch"&&(t.$LG(d.target).hasClass("lg-item")||c.get().contains(d.target))){if(l=!1,a=0,t.scale<=1)t.resetZoom();else{var h=t.getCurrentImageActualSizeScale();if(t.scale>=h){var p=h-t.scale;p===0&&(p=.01),t.zoomImage(h,p,!1,!0)}t.manageActualPixelClassNames(),t.core.outer.addClass("lg-zoomed")}t.core.touchAction=void 0}})},r.prototype.touchendZoom=function(t,a,l,o,u){var c=a.x-t.x,d=a.y-t.y,h=Math.abs(c)/u+1,p=Math.abs(d)/u+1;h>2&&(h+=1),p>2&&(p+=1),c=c*h,d=d*p;var g=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),v={};v.x=this.left+c,v.y=this.top+d;var x=this.getPossibleSwipeDragCords();(Math.abs(c)>15||Math.abs(d)>15)&&(o&&(this.isBeyondPossibleTop(v.y,x.minY)?v.y=x.minY:this.isBeyondPossibleBottom(v.y,x.maxY)&&(v.y=x.maxY)),l&&(this.isBeyondPossibleLeft(v.x,x.minX)?v.x=x.minX:this.isBeyondPossibleRight(v.x,x.maxX)&&(v.x=x.maxX)),o?this.top=v.y:v.y=this.top,l?this.left=v.x:v.x=this.left,this.setZoomSwipeStyles(g,v),this.positionChanged=!0)},r.prototype.getZoomSwipeCords=function(t,a,l,o,u){var c={};if(o){if(c.y=this.top+(a.y-t.y),this.isBeyondPossibleTop(c.y,u.minY)){var d=u.minY-c.y;c.y=u.minY-d/6}else if(this.isBeyondPossibleBottom(c.y,u.maxY)){var h=c.y-u.maxY;c.y=u.maxY+h/6}}else c.y=this.top;if(l){if(c.x=this.left+(a.x-t.x),this.isBeyondPossibleLeft(c.x,u.minX)){var p=u.minX-c.x;c.x=u.minX-p/6}else if(this.isBeyondPossibleRight(c.x,u.maxX)){var g=c.x-u.maxX;c.x=u.maxX+g/6}}else c.x=this.left;return c},r.prototype.isBeyondPossibleLeft=function(t,a){return t>=a},r.prototype.isBeyondPossibleRight=function(t,a){return t<=a},r.prototype.isBeyondPossibleTop=function(t,a){return t>=a},r.prototype.isBeyondPossibleBottom=function(t,a){return t<=a},r.prototype.isImageSlide=function(t){var a=this.core.galleryItems[t];return this.core.getSlideType(a)==="image"},r.prototype.getPossibleSwipeDragCords=function(t){var a=this.core.getSlideItem(this.core.index).find(".lg-image").first(),l=this.core.mediaContainerPosition.bottom,o=a.get().getBoundingClientRect(),u=o.height,c=o.width;t&&(u=u+t*u,c=c+t*c);var d=(u-this.containerRect.height)/2,h=(this.containerRect.height-u)/2+l,p=(c-this.containerRect.width)/2,g=(this.containerRect.width-c)/2,v={minY:d,maxY:h,minX:p,maxX:g};return v},r.prototype.setZoomSwipeStyles=function(t,a){t.css("transform","translate3d("+a.x+"px, "+a.y+"px, 0)")},r.prototype.zoomSwipe=function(){var t=this,a={},l={},o=!1,u=!1,c=!1,d=new Date,h=new Date,p,g,v=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(x){if(t.isImageSlide(t.core.index)&&(v=t.core.getSlideItem(t.core.index),(t.$LG(x.target).hasClass("lg-item")||v.get().contains(x.target))&&x.touches.length===1&&t.core.outer.hasClass("lg-zoomed"))){x.preventDefault(),d=new Date,t.core.touchAction="zoomSwipe",g=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();var T=t.getDragAllowedAxises(0);c=T.allowY,u=T.allowX,(u||c)&&(a=t.getSwipeCords(x)),p=t.getPossibleSwipeDragCords(),t.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(x){if(x.touches.length===1&&t.core.touchAction==="zoomSwipe"&&(t.$LG(x.target).hasClass("lg-item")||v.get().contains(x.target))){x.preventDefault(),t.core.touchAction="zoomSwipe",l=t.getSwipeCords(x);var T=t.getZoomSwipeCords(a,l,u,c,p);(Math.abs(l.x-a.x)>15||Math.abs(l.y-a.y)>15)&&(o=!0,t.setZoomSwipeStyles(g,T))}}),this.core.$inner.on("touchend.lg",function(x){if(t.core.touchAction==="zoomSwipe"&&(t.$LG(x.target).hasClass("lg-item")||v.get().contains(x.target))){if(x.preventDefault(),t.core.touchAction=void 0,t.core.outer.removeClass("lg-zoom-dragging"),!o)return;o=!1,h=new Date;var T=h.valueOf()-d.valueOf();t.touchendZoom(a,l,u,c,T)}})},r.prototype.zoomDrag=function(){var t=this,a={},l={},o=!1,u=!1,c=!1,d=!1,h,p,g,v;this.core.outer.on("mousedown.lg.zoom",function(x){if(t.isImageSlide(t.core.index)){var T=t.core.getSlideItem(t.core.index);if(t.$LG(x.target).hasClass("lg-item")||T.get().contains(x.target)){h=new Date,v=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();var N=t.getDragAllowedAxises(0);d=N.allowY,c=N.allowX,t.core.outer.hasClass("lg-zoomed")&&t.$LG(x.target).hasClass("lg-object")&&(c||d)&&(x.preventDefault(),a=t.getDragCords(x),g=t.getPossibleSwipeDragCords(),o=!0,t.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}}),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,function(x){if(o){u=!0,l=t.getDragCords(x);var T=t.getZoomSwipeCords(a,l,c,d,g);t.setZoomSwipeStyles(v,T)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(x){if(o){if(p=new Date,o=!1,t.core.outer.removeClass("lg-zoom-dragging"),u&&(a.x!==l.x||a.y!==l.y)){l=t.getDragCords(x);var T=p.valueOf()-h.valueOf();t.touchendZoom(a,l,c,d,T)}u=!1}t.core.outer.removeClass("lg-grabbing").addClass("lg-grab")})},r.prototype.closeGallery=function(){this.resetZoom(),this.zoomInProgress=!1},r.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},r}();/*!
191
191
  * lightgallery | 2.8.3 | March 1st 2025
192
192
  * http://www.lightgalleryjs.com/
193
193
  * Copyright (c) 2020 Sachin Neravath;
@@ -205,14 +205,14 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
205
205
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
206
206
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
207
207
  PERFORMANCE OF THIS SOFTWARE.
208
- ***************************************************************************** */var Ba=function(){return Ba=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},Ba.apply(this,arguments)},e4={autoplayFirstVideo:!0,youTubePlayerParams:!1,vimeoPlayerParams:!1,wistiaPlayerParams:!1,gotoNextSlideOnVideoEnd:!0,autoplayVideoOnSlide:!1,videojs:!1,videojsTheme:"",videojsOptions:{}},Wl={hasVideo:"lgHasVideo",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick"},Ng=function(r){return Object.keys(r).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(r[t])}).join("&")},t4=function(r){var t=r.slice(1).split("&").map(function(a){return a.split("=")}).reduce(function(a,l){var o=l.map(decodeURIComponent),u=o[0],c=o[1];return a[u]=c,a},{});return t},n4=function(r,t){if(!r.youtube)return"";var a=r.youtube[2]?t4(r.youtube[2]):"",l={wmode:"opaque",autoplay:0,mute:1,enablejsapi:1},o=t||{},u=Ba(Ba(Ba({},l),o),a),c="?"+Ng(u);return c},r4=function(r){return r.includes("youtube-nocookie.com")},a4=function(r,t){if(!t||!t.vimeo)return"";var a=t.vimeo[2]||"",l=Object.assign({},{autoplay:0,muted:1},r),o=l&&Object.keys(l).length!==0?Ng(l):"",u=t.vimeo[0].split("/").pop()||"",c=u.split("?")[0]||"",d=c.split("#")[0],h=t.vimeo[1]!==d;h&&(a=a.replace("/"+d,"")),a=a[0]=="?"?"&"+a.slice(1):a||"";var p=h?"h="+d:"";o=p?"&"+o:o;var m="?"+p+o+a;return m},Dg=function(){function r(t){return this.core=t,this.settings=Ba(Ba({},e4),this.core.settings),this}return r.prototype.init=function(){var t=this;this.core.LGel.on(Wl.hasVideo+".video",this.onHasVideo.bind(this)),this.core.LGel.on(Wl.posterClick+".video",function(){var a=t.core.getSlideItem(t.core.index);t.loadVideoOnPosterClick(a)}),this.core.LGel.on(Wl.slideItemLoad+".video",this.onSlideItemLoad.bind(this)),this.core.LGel.on(Wl.beforeSlide+".video",this.onBeforeSlide.bind(this)),this.core.LGel.on(Wl.afterSlide+".video",this.onAfterSlide.bind(this))},r.prototype.onSlideItemLoad=function(t){var a=this,l=t.detail,o=l.isFirstSlide,u=l.index;this.settings.autoplayFirstVideo&&o&&u===this.core.index&&setTimeout(function(){a.loadAndPlayVideo(u)},200),!o&&this.settings.autoplayVideoOnSlide&&u===this.core.index&&this.loadAndPlayVideo(u)},r.prototype.onHasVideo=function(t){var a=t.detail,l=a.index,o=a.src,u=a.html5Video,c=a.hasPoster;c||(this.appendVideos(this.core.getSlideItem(l),{src:o,addClass:"lg-object",index:l,html5Video:u}),this.gotoNextSlideOnVideoEnd(o,l))},r.prototype.onBeforeSlide=function(t){if(this.core.lGalleryOn){var a=t.detail.prevIndex;this.pauseVideo(a)}},r.prototype.onAfterSlide=function(t){var a=this,l=t.detail,o=l.index,u=l.prevIndex,c=this.core.getSlideItem(o);this.settings.autoplayVideoOnSlide&&o!==u&&c.hasClass("lg-complete")&&setTimeout(function(){a.loadAndPlayVideo(o)},100)},r.prototype.loadAndPlayVideo=function(t){var a=this.core.getSlideItem(t),l=this.core.galleryItems[t];l.poster?this.loadVideoOnPosterClick(a,!0):this.playVideo(t)},r.prototype.playVideo=function(t){this.controlVideo(t,"play")},r.prototype.pauseVideo=function(t){this.controlVideo(t,"pause")},r.prototype.getVideoHtml=function(t,a,l,o){var u="",c=this.core.galleryItems[l].__slideVideoInfo||{},d=this.core.galleryItems[l],h=d.title||d.alt;h=h?'title="'+h+'"':"";var p=`allowtransparency="true"
208
+ ***************************************************************************** */var $a=function(){return $a=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},$a.apply(this,arguments)},e4={autoplayFirstVideo:!0,youTubePlayerParams:!1,vimeoPlayerParams:!1,wistiaPlayerParams:!1,gotoNextSlideOnVideoEnd:!0,autoplayVideoOnSlide:!1,videojs:!1,videojsTheme:"",videojsOptions:{}},Xl={hasVideo:"lgHasVideo",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick"},Nm=function(r){return Object.keys(r).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(r[t])}).join("&")},t4=function(r){var t=r.slice(1).split("&").map(function(a){return a.split("=")}).reduce(function(a,l){var o=l.map(decodeURIComponent),u=o[0],c=o[1];return a[u]=c,a},{});return t},n4=function(r,t){if(!r.youtube)return"";var a=r.youtube[2]?t4(r.youtube[2]):"",l={wmode:"opaque",autoplay:0,mute:1,enablejsapi:1},o=t||{},u=$a($a($a({},l),o),a),c="?"+Nm(u);return c},r4=function(r){return r.includes("youtube-nocookie.com")},a4=function(r,t){if(!t||!t.vimeo)return"";var a=t.vimeo[2]||"",l=Object.assign({},{autoplay:0,muted:1},r),o=l&&Object.keys(l).length!==0?Nm(l):"",u=t.vimeo[0].split("/").pop()||"",c=u.split("?")[0]||"",d=c.split("#")[0],h=t.vimeo[1]!==d;h&&(a=a.replace("/"+d,"")),a=a[0]=="?"?"&"+a.slice(1):a||"";var p=h?"h="+d:"";o=p?"&"+o:o;var g="?"+p+o+a;return g},Dm=function(){function r(t){return this.core=t,this.settings=$a($a({},e4),this.core.settings),this}return r.prototype.init=function(){var t=this;this.core.LGel.on(Xl.hasVideo+".video",this.onHasVideo.bind(this)),this.core.LGel.on(Xl.posterClick+".video",function(){var a=t.core.getSlideItem(t.core.index);t.loadVideoOnPosterClick(a)}),this.core.LGel.on(Xl.slideItemLoad+".video",this.onSlideItemLoad.bind(this)),this.core.LGel.on(Xl.beforeSlide+".video",this.onBeforeSlide.bind(this)),this.core.LGel.on(Xl.afterSlide+".video",this.onAfterSlide.bind(this))},r.prototype.onSlideItemLoad=function(t){var a=this,l=t.detail,o=l.isFirstSlide,u=l.index;this.settings.autoplayFirstVideo&&o&&u===this.core.index&&setTimeout(function(){a.loadAndPlayVideo(u)},200),!o&&this.settings.autoplayVideoOnSlide&&u===this.core.index&&this.loadAndPlayVideo(u)},r.prototype.onHasVideo=function(t){var a=t.detail,l=a.index,o=a.src,u=a.html5Video,c=a.hasPoster;c||(this.appendVideos(this.core.getSlideItem(l),{src:o,addClass:"lg-object",index:l,html5Video:u}),this.gotoNextSlideOnVideoEnd(o,l))},r.prototype.onBeforeSlide=function(t){if(this.core.lGalleryOn){var a=t.detail.prevIndex;this.pauseVideo(a)}},r.prototype.onAfterSlide=function(t){var a=this,l=t.detail,o=l.index,u=l.prevIndex,c=this.core.getSlideItem(o);this.settings.autoplayVideoOnSlide&&o!==u&&c.hasClass("lg-complete")&&setTimeout(function(){a.loadAndPlayVideo(o)},100)},r.prototype.loadAndPlayVideo=function(t){var a=this.core.getSlideItem(t),l=this.core.galleryItems[t];l.poster?this.loadVideoOnPosterClick(a,!0):this.playVideo(t)},r.prototype.playVideo=function(t){this.controlVideo(t,"play")},r.prototype.pauseVideo=function(t){this.controlVideo(t,"pause")},r.prototype.getVideoHtml=function(t,a,l,o){var u="",c=this.core.galleryItems[l].__slideVideoInfo||{},d=this.core.galleryItems[l],h=d.title||d.alt;h=h?'title="'+h+'"':"";var p=`allowtransparency="true"
209
209
  frameborder="0"
210
210
  scrolling="no"
211
211
  allowfullscreen
212
212
  mozallowfullscreen
213
213
  webkitallowfullscreen
214
214
  oallowfullscreen
215
- msallowfullscreen`;if(c.youtube){var m="lg-youtube"+l,y=n4(c,this.settings.youTubePlayerParams),x=r4(t),T=x?"//www.youtube-nocookie.com/":"//www.youtube.com/";u='<iframe allow="autoplay" id='+m+' class="lg-video-object lg-youtube '+a+'" '+h+' src="'+T+"embed/"+(c.youtube[1]+y)+'" '+p+"></iframe>"}else if(c.vimeo){var m="lg-vimeo"+l,N=a4(this.settings.vimeoPlayerParams,c);u='<iframe allow="autoplay" id='+m+' class="lg-video-object lg-vimeo '+a+'" '+h+' src="//player.vimeo.com/video/'+(c.vimeo[1]+N)+'" '+p+"></iframe>"}else if(c.wistia){var _="lg-wistia"+l,N=Ng(this.settings.wistiaPlayerParams);N=N?"?"+N:"",u='<iframe allow="autoplay" id="'+_+'" src="//fast.wistia.net/embed/iframe/'+(c.wistia[4]+N)+'" '+h+' class="wistia_embed lg-video-object lg-wistia '+a+'" name="wistia_embed" '+p+"></iframe>"}else if(c.html5){for(var z="",$=0;$<o.source.length;$++){var V=o.source[$].type,I=V?'type="'+V+'"':"";z+='<source src="'+o.source[$].src+'" '+I+">"}if(o.tracks)for(var Q=function(P){var F="",D=o.tracks[P];Object.keys(D||{}).forEach(function(E){F+=E+'="'+D[E]+'" '}),z+="<track "+F+">"},$=0;$<o.tracks.length;$++)Q($);var A="",M=o.attributes||{};Object.keys(M||{}).forEach(function(P){A+=P+'="'+M[P]+'" '}),u='<video class="lg-video-object lg-html5 '+(this.settings.videojs&&this.settings.videojsTheme?this.settings.videojsTheme+" ":"")+" "+(this.settings.videojs?" video-js":"")+'" '+A+`>
215
+ msallowfullscreen`;if(c.youtube){var g="lg-youtube"+l,v=n4(c,this.settings.youTubePlayerParams),x=r4(t),T=x?"//www.youtube-nocookie.com/":"//www.youtube.com/";u='<iframe allow="autoplay" id='+g+' class="lg-video-object lg-youtube '+a+'" '+h+' src="'+T+"embed/"+(c.youtube[1]+v)+'" '+p+"></iframe>"}else if(c.vimeo){var g="lg-vimeo"+l,N=a4(this.settings.vimeoPlayerParams,c);u='<iframe allow="autoplay" id='+g+' class="lg-video-object lg-vimeo '+a+'" '+h+' src="//player.vimeo.com/video/'+(c.vimeo[1]+N)+'" '+p+"></iframe>"}else if(c.wistia){var _="lg-wistia"+l,N=Nm(this.settings.wistiaPlayerParams);N=N?"?"+N:"",u='<iframe allow="autoplay" id="'+_+'" src="//fast.wistia.net/embed/iframe/'+(c.wistia[4]+N)+'" '+h+' class="wistia_embed lg-video-object lg-wistia '+a+'" name="wistia_embed" '+p+"></iframe>"}else if(c.html5){for(var z="",$=0;$<o.source.length;$++){var V=o.source[$].type,I=V?'type="'+V+'"':"";z+='<source src="'+o.source[$].src+'" '+I+">"}if(o.tracks)for(var Q=function(P){var F="",D=o.tracks[P];Object.keys(D||{}).forEach(function(E){F+=E+'="'+D[E]+'" '}),z+="<track "+F+">"},$=0;$<o.tracks.length;$++)Q($);var j="",M=o.attributes||{};Object.keys(M||{}).forEach(function(P){j+=P+'="'+M[P]+'" '}),u='<video class="lg-video-object lg-html5 '+(this.settings.videojs&&this.settings.videojsTheme?this.settings.videojsTheme+" ":"")+" "+(this.settings.videojs?" video-js":"")+'" '+j+`>
216
216
  `+z+`
217
217
  Your browser does not support HTML5 video.
218
- </video>`}return u},r.prototype.appendVideos=function(t,a){var l,o=this.getVideoHtml(a.src,a.addClass,a.index,a.html5Video);t.find(".lg-video-cont").append(o);var u=t.find(".lg-video-object").first();if(a.html5Video&&u.on("mousedown.lg.video",function(c){c.stopPropagation()}),this.settings.videojs&&(!((l=this.core.galleryItems[a.index].__slideVideoInfo)===null||l===void 0)&&l.html5))try{return videojs(u.get(),this.settings.videojsOptions)}catch{console.error("lightGallery:- Make sure you have included videojs")}},r.prototype.gotoNextSlideOnVideoEnd=function(t,a){var l=this,o=this.core.getSlideItem(a).find(".lg-video-object").first(),u=this.core.galleryItems[a].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd){if(u.html5)o.on("ended",function(){l.core.goToNextSlide()});else if(u.vimeo)try{new Vimeo.Player(o.get()).on("ended",function(){l.core.goToNextSlide()})}catch{console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(u.wistia)try{window._wq=window._wq||[],window._wq.push({id:o.attr("id"),onReady:function(c){c.bind("end",function(){l.core.goToNextSlide()})}})}catch{console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}}},r.prototype.controlVideo=function(t,a){var l=this.core.getSlideItem(t).find(".lg-video-object").first(),o=this.core.galleryItems[t].__slideVideoInfo||{};if(l.get()){if(o.youtube)try{l.get().contentWindow.postMessage('{"event":"command","func":"'+a+'Video","args":""}',"*")}catch(u){console.error("lightGallery:- "+u)}else if(o.vimeo)try{new Vimeo.Player(l.get())[a]()}catch{console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(o.html5)if(this.settings.videojs)try{videojs(l.get())[a]()}catch{console.error("lightGallery:- Make sure you have included videojs")}else l.get()[a]();else if(o.wistia)try{window._wq=window._wq||[],window._wq.push({id:l.attr("id"),onReady:function(u){u[a]()}})}catch{console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}}},r.prototype.loadVideoOnPosterClick=function(t,a){var l=this;if(t.hasClass("lg-video-loaded"))a&&this.playVideo(this.core.index);else if(t.hasClass("lg-has-video"))this.playVideo(this.core.index);else{t.addClass("lg-has-video");var o=void 0,u=this.core.galleryItems[this.core.index].src,c=this.core.galleryItems[this.core.index].video;c&&(o=typeof c=="string"?JSON.parse(c):c);var d=this.appendVideos(t,{src:u,addClass:"",index:this.core.index,html5Video:o});this.gotoNextSlideOnVideoEnd(u,this.core.index);var h=t.find(".lg-object").first().get();t.find(".lg-video-cont").first().append(h),t.addClass("lg-video-loading"),d&&d.ready(function(){d.on("loadedmetadata",function(){l.onVideoLoadAfterPosterClick(t,l.core.index)})}),t.find(".lg-video-object").first().on("load.lg error.lg loadedmetadata.lg",function(){setTimeout(function(){l.onVideoLoadAfterPosterClick(t,l.core.index)},50)})}},r.prototype.onVideoLoadAfterPosterClick=function(t,a){t.addClass("lg-video-loaded"),this.playVideo(a)},r.prototype.destroy=function(){this.core.LGel.off(".lg.video"),this.core.LGel.off(".video")},r}();function HO(r){const{href:t,dataSrc:a,dataVideo:l,dataPoster:o,dataIframe:u,dataSubHTML:c,thumbnailURL:d,classNamePrefix:h,style:p,badge:m}=r;let y=l?`${h}__thumbnail-wrapper--video`:"";return d||(y+=` ${h}__thumbnail-wrapper--empty`),S.jsxs("a",{href:t,className:`lightgallery-item ${h}__thumbnail-wrapper ${y}`,"data-src":a,"data-video":l,"data-poster":o,"data-iframe":u||void 0,"data-sub-html":c,style:p,children:[" ",d?S.jsx("img",{src:d,className:`${h}__thumbnail`}):S.jsx(it,{className:"w-100 h-100 d-flex align-items-center justify-content-center",children:S.jsx("span",{className:"material-icons-outlined text-secondary",style:{fontSize:"5em"},children:"description"})}),m?S.jsx(Ii,{className:"light-gallery-item__badge",bg:"secondary",children:m}):null]})}function m1(r){const{hidden:t=!1}=r;return S.jsx(HO,{...r,classNamePrefix:"media-grid",style:{display:t?"none":"inherit"}})}function kO(r){const{items:t,title:a,noGallery:l=!1}=r,u=t.filter(p=>{var m;return(m=p.downloaded)==null?void 0:m.path}).reduce((p,m)=>{var Q,A,M,P;const y=!((Q=m.downloaded)!=null&&Q.mimeType)||m.downloaded.mimeType.startsWith("image/"),x=((M=(A=m.downloaded)==null?void 0:A.mimeType)==null?void 0:M.startsWith("video/"))??!1,T=`/media/${m.id}`,N=y?T:void 0,_=`${T}?t=1`,z=y?T:void 0,$=x?JSON.stringify({source:[{src:T,type:(P=m.downloaded)==null?void 0:P.mimeType}],attributes:{preload:!1,controls:!0,playsInline:!0}}):void 0,V=x?_:void 0,I=a?`<h4>${a}</h4>`:void 0;return(z||$)&&p.push({id:m.id,href:N,dataSrc:z,dataVideo:$,dataPoster:V,dataSubHTML:I,thumbnailURL:_}),p},[]);if(u.length===0)return null;const c=Math.min(u.length,4),d=u.slice(0,c).map(p=>S.jsxs(Ne,{direction:"horizontal",className:"media-grid__item-wrapper justify-content-center overflow-hidden",children:[S.jsx("div",{className:"media-grid__thumbnail-backdrop",style:{background:`url(${p.thumbnailURL})`}}),S.jsx(m1,{...p})]},p.id)),h=S.jsxs("div",{className:`media-grid media-grid--${c}`,children:[d,u.length>4?u.slice(4).map(p=>S.jsx(m1,{...p,hidden:!0})):null,u.length>1?S.jsxs(Ii,{className:"media-grid__badge d-flex align-items-center",children:[S.jsx("span",{className:"material-icons me-2",children:"image"}),u.length]}):null]});return l?h:S.jsx(jg,{speed:500,plugins:[Ag,Mg,Dg],videojs:!0,selector:".lightgallery-item",children:h})}var rp,v1;function i4(){if(v1)return rp;v1=1;function r(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,u){for(var c="",d=0,h=-1,p=0,m,y=0;y<=o.length;++y){if(y<o.length)m=o.charCodeAt(y);else{if(m===47)break;m=47}if(m===47){if(!(h===y-1||p===1))if(h!==y-1&&p===2){if(c.length<2||d!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){var x=c.lastIndexOf("/");if(x!==c.length-1){x===-1?(c="",d=0):(c=c.slice(0,x),d=c.length-1-c.lastIndexOf("/")),h=y,p=0;continue}}else if(c.length===2||c.length===1){c="",d=0,h=y,p=0;continue}}u&&(c.length>0?c+="/..":c="..",d=2)}else c.length>0?c+="/"+o.slice(h+1,y):c=o.slice(h+1,y),d=y-h-1;h=y,p=0}else m===46&&p!==-1?++p:p=-1}return c}function a(o,u){var c=u.dir||u.root,d=u.base||(u.name||"")+(u.ext||"");return c?c===u.root?c+d:c+o+d:d}var l={resolve:function(){for(var u="",c=!1,d,h=arguments.length-1;h>=-1&&!c;h--){var p;h>=0?p=arguments[h]:(d===void 0&&(d=process.cwd()),p=d),r(p),p.length!==0&&(u=p+"/"+u,c=p.charCodeAt(0)===47)}return u=t(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(u){if(r(u),u.length===0)return".";var c=u.charCodeAt(0)===47,d=u.charCodeAt(u.length-1)===47;return u=t(u,!c),u.length===0&&!c&&(u="."),u.length>0&&d&&(u+="/"),c?"/"+u:u},isAbsolute:function(u){return r(u),u.length>0&&u.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var u,c=0;c<arguments.length;++c){var d=arguments[c];r(d),d.length>0&&(u===void 0?u=d:u+="/"+d)}return u===void 0?".":l.normalize(u)},relative:function(u,c){if(r(u),r(c),u===c||(u=l.resolve(u),c=l.resolve(c),u===c))return"";for(var d=1;d<u.length&&u.charCodeAt(d)===47;++d);for(var h=u.length,p=h-d,m=1;m<c.length&&c.charCodeAt(m)===47;++m);for(var y=c.length,x=y-m,T=p<x?p:x,N=-1,_=0;_<=T;++_){if(_===T){if(x>T){if(c.charCodeAt(m+_)===47)return c.slice(m+_+1);if(_===0)return c.slice(m+_)}else p>T&&(u.charCodeAt(d+_)===47?N=_:_===0&&(N=0));break}var z=u.charCodeAt(d+_),$=c.charCodeAt(m+_);if(z!==$)break;z===47&&(N=_)}var V="";for(_=d+N+1;_<=h;++_)(_===h||u.charCodeAt(_)===47)&&(V.length===0?V+="..":V+="/..");return V.length>0?V+c.slice(m+N):(m+=N,c.charCodeAt(m)===47&&++m,c.slice(m))},_makeLong:function(u){return u},dirname:function(u){if(r(u),u.length===0)return".";for(var c=u.charCodeAt(0),d=c===47,h=-1,p=!0,m=u.length-1;m>=1;--m)if(c=u.charCodeAt(m),c===47){if(!p){h=m;break}}else p=!1;return h===-1?d?"/":".":d&&h===1?"//":u.slice(0,h)},basename:function(u,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');r(u);var d=0,h=-1,p=!0,m;if(c!==void 0&&c.length>0&&c.length<=u.length){if(c.length===u.length&&c===u)return"";var y=c.length-1,x=-1;for(m=u.length-1;m>=0;--m){var T=u.charCodeAt(m);if(T===47){if(!p){d=m+1;break}}else x===-1&&(p=!1,x=m+1),y>=0&&(T===c.charCodeAt(y)?--y===-1&&(h=m):(y=-1,h=x))}return d===h?h=x:h===-1&&(h=u.length),u.slice(d,h)}else{for(m=u.length-1;m>=0;--m)if(u.charCodeAt(m)===47){if(!p){d=m+1;break}}else h===-1&&(p=!1,h=m+1);return h===-1?"":u.slice(d,h)}},extname:function(u){r(u);for(var c=-1,d=0,h=-1,p=!0,m=0,y=u.length-1;y>=0;--y){var x=u.charCodeAt(y);if(x===47){if(!p){d=y+1;break}continue}h===-1&&(p=!1,h=y+1),x===46?c===-1?c=y:m!==1&&(m=1):c!==-1&&(m=-1)}return c===-1||h===-1||m===0||m===1&&c===h-1&&c===d+1?"":u.slice(c,h)},format:function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return a("/",u)},parse:function(u){r(u);var c={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return c;var d=u.charCodeAt(0),h=d===47,p;h?(c.root="/",p=1):p=0;for(var m=-1,y=0,x=-1,T=!0,N=u.length-1,_=0;N>=p;--N){if(d=u.charCodeAt(N),d===47){if(!T){y=N+1;break}continue}x===-1&&(T=!1,x=N+1),d===46?m===-1?m=N:_!==1&&(_=1):m!==-1&&(_=-1)}return m===-1||x===-1||_===0||_===1&&m===x-1&&m===y+1?x!==-1&&(y===0&&h?c.base=c.name=u.slice(1,x):c.base=c.name=u.slice(y,x)):(y===0&&h?(c.name=u.slice(1,m),c.base=u.slice(1,x)):(c.name=u.slice(y,m),c.base=u.slice(y,x)),c.ext=u.slice(m,x)),y>0?c.dir=u.slice(0,y-1):h&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};return l.posix=l,rp=l,rp}var l4=i4();const BO=Jn(l4),$O=({children:r,maxHeight:t=480})=>{const[a,l]=w.useState(!1),[o,u]=w.useState(!1),c=w.useRef(null);w.useEffect(()=>{if(c.current){const h=c.current.scrollHeight>t;u(h),h||l(!0)}},[r,t]);const d=w.useCallback(h=>{h.preventDefault(),l(!a)},[a]);return S.jsxs("div",{className:"fade-content",style:{"--fade-content-height":`${t}px`},children:[S.jsxs("div",{className:`fade-content__body ${a?"fade-content__body--expanded":""}`,ref:c,children:[r,!a&&S.jsx("div",{className:"fade-content__overlay"})]}),o&&S.jsx("div",{className:"d-flex w-100 justify-content-center",children:S.jsx("a",{href:"#",className:"fade-content__toggle",onClick:d,dangerouslySetInnerHTML:{__html:a?"&#9650; Show less":"&#9660; Show more"}})})]})};function IO(r){var $,V,I,Q;const{post:t,showCampaign:a=!1,useShowMore:l=!1,contextQS:o}=r,u=er(),c=[];t.video?c.push(t.video):t.embed?c.push(t.embed):t.videoPreview?c.push(t.videoPreview):t.images.length>0?c.push(...t.images):(V=($=t.coverImage)==null?void 0:$.downloaded)!=null&&V.path?c.push(t.coverImage):(Q=(I=t.thumbnail)==null?void 0:I.downloaded)!=null&&Q.path&&c.push(t.thumbnail);const d=w.useMemo(()=>{const A=t.attachments.reduce((M,P)=>{var F;if((F=P.downloaded)!=null&&F.path){const D=P.filename||BO.parse(P.downloaded.path).base;M.push({title:D,url:`/media/${P.id}`})}return M},[]);if(A.length>0)return S.jsxs("div",{children:[S.jsx("p",{children:"Attachments:"}),S.jsx("ul",{children:A.map(({title:M,url:P})=>S.jsx("li",{children:S.jsx("a",{href:P,children:M})}))})]})},[t]),h=w.useMemo(()=>{var M,P,F,D,E;const A=(P=(M=t.audio)==null?void 0:M.downloaded)!=null&&P.path?t.audio:(D=(F=t.audioPreview)==null?void 0:F.downloaded)!=null&&D.path?t.audioPreview:null;return A?S.jsx("div",{className:"my-4",children:S.jsxs("audio",{controls:!0,className:"w-100 rounded",children:[S.jsx("source",{src:`/media/${A.id}`,type:((E=A.downloaded)==null?void 0:E.mimeType)||""}),"Your browser does not support the audio element."]})}):null},[t]),p=w.useMemo(()=>{const A=new URL(`/posts/${t.id}`,window.location.href);return o&&(A.search=o),u.pathname===A.pathname?t.title:S.jsx(on,{to:A.toString(),children:t.title})},[t,u,o]),m=w.useMemo(()=>{var A,M;if(t.embed&&!((A=t.embed.downloaded)!=null&&A.path)&&t.embed.html&&((M=t.embed.provider)==null?void 0:M.toLowerCase())==="youtube"){const D=new DOMParser().parseFromString(t.embed.html,"text/html").querySelector("iframe"),E=D?D.getAttribute("width"):null,W=D?D.getAttribute("height"):null;let B="";E&&W&&(B=`${E} / ${W}`);const q={width:"100%"};B&&(q.aspectRatio=B);const k=t.embed.provider?`(Embedded from ${t.embed.provider} - not stored locally)`:"(Embedded content - not stored locally)";return S.jsxs("div",{className:"post-card__external-embed-wrapper",children:[S.jsx("div",{className:"post-card__external-embed",style:q,dangerouslySetInnerHTML:{__html:t.embed.html}}),S.jsx("span",{className:"post-card__external-embed-caption",children:k})]})}return null},[t]),x=/class=".*?\s*?lightgallery-item.*?\s*?"/gm.test(t.content||""),T=c.length>0||x,N=t.tags&&t.tags.length>0&&t.campaign&&S.jsx(Ne,{direction:"horizontal",gap:2,className:"mb-3 flex-wrap",children:t.tags.map(A=>{const M=new URL(`/campaigns/${t.campaign.id}/posts`,window.location.href);return M.searchParams.set("filter_tag_id",A.id),S.jsx(Ii,{bg:"secondary",children:S.jsx(on,{to:M.toString(),style:{color:"inherit"},children:A.value})},A.id)})});let _=S.jsxs(Ne,{children:[N,S.jsxs(Ne,{direction:"horizontal",className:"mb-3 justify-content-between gap-4",children:[S.jsx(it.Title,{className:"m-0",children:p}),t.isViewable?null:S.jsx("span",{className:"material-icons text-body-secondary",children:"lock"})]}),S.jsxs(Ne,{direction:"horizontal",className:"mb-3 text-body-secondary",gap:4,children:[t.publishedAt?S.jsx("span",{children:new Date(t.publishedAt).toLocaleString()}):null,t.commentCount>0?S.jsxs(Ne,{direction:"horizontal",gap:2,children:[S.jsx("span",{className:"material-icons",style:{fontSize:"1.2em"},children:"comment"}),S.jsx("span",{children:t.commentCount})]}):null]}),h,S.jsx(it.Text,{dangerouslySetInnerHTML:{__html:t.content||""}}),d]});l&&(_=S.jsx($O,{children:_}));const z=S.jsxs(it,{className:"post-card",children:[a&&t.campaign&&t.campaign.name?S.jsx(it.Header,{children:S.jsxs(Ne,{direction:"horizontal",gap:3,children:[S.jsx(ca,{mediaId:`campaign:${t.campaign.id}:avatar`,className:"rounded",style:{width:"2.5em",height:"2.5em",objectFit:"cover"}}),S.jsx("span",{children:S.jsx(on,{to:`/campaigns/${t.campaign.id}`,className:"text-body",children:t.campaign.name})})]})}):null,S.jsx(kO,{items:c,title:t.title||"",noGallery:!0}),m,S.jsx(it.Body,{children:_})]});return T?S.jsx(jg,{speed:500,plugins:[Ag,Mg,Dg],videojs:!0,selector:".lightgallery-item",children:z}):z}function o4(r){const t=[];for(const[a,l]of r.entries())if(a.startsWith("filter_")){const o=a.substring(7);o&&t.push({searchParam:o,value:l})}return t}function s4(r){const t=[];for(const a of r.sections){const l=a.options.find(u=>u.isDefault),o=(l==null?void 0:l.value)||null;t.push({searchParam:a.searchParam,value:o})}if(r.external)for(const a of r.external)t.push({searchParam:a.searchParam,value:null});return t}function y1(r,t,a){var o;const l=(o=r.options.find(u=>u.searchParam===t.searchParam))==null?void 0:o.value;return l===void 0?!1:l===a.value}const b1=(r,t)=>{if(r&&t){const l=Tr(r);for(const o of t){const u=l.options.find(c=>c.searchParam===o.searchParam);u?u.value=o.value:l.options.push({...o})}return Kn(r,l)?r:l}const a=r?{...r,options:t}:{options:t};return Kn(r,a)?r:a};function qO(r){const{options:t,onFilter:a,searchInputBox:l}=r,{settings:o}=Ua(),[u,c]=Oo(),[d,h]=w.useReducer(b1,null),[p,m]=w.useReducer(b1,null),[y,x]=w.useState(!1),T=w.useRef(null);w.useEffect(()=>{if(!t)return;let M=[];M=s4(t),T.current=Tr(M);const P=o4(u);for(const F of P){const D=M.find(E=>E.searchParam===F.searchParam);D?D.value=F.value:M.push(F)}h(M),m(M)},[t,u]),w.useEffect(()=>{if(!(l!=null&&l.current))return;const M=l.current;return M.onConfirm(P=>{m([{searchParam:"search",value:P||null}])}),()=>M.onConfirm(null)},[l]),w.useEffect(()=>{var P;const M=T.current;if(!(!p||!M)&&(c(F=>{const D=new URLSearchParams(F);for(const E of p.options){const W=`filter_${E.searchParam}`,B=E.value,q=M.find(k=>k.searchParam===E.searchParam);B&&(q===void 0||q.value!==B)?D.set(W,B):D.delete(W)}return D}),l!=null&&l.current)){const F=((P=p.options.find(D=>D.searchParam==="search"))==null?void 0:P.value)||"";l.current.setInput(F)}},[l,p]),w.useEffect(()=>{const M=T.current;p&&M&&a(Tr(p))},[p,a]);const N=w.useCallback((M,P,F=!1)=>{if(!d)return;const D=d.options.find(E=>E.searchParam===M.searchParam);if(D){const E=F&&P.value===D.value?null:P.value;D.value!==E&&h([{searchParam:D.searchParam,value:E}])}},[d]),_=w.useCallback(M=>{if(!M.enableCondition||!d)return!1;const{searchParam:P,condition:F,value:D}=M.enableCondition,E=d.options.find(W=>W.searchParam===P);if(E)switch(F){case"is":return E.value===D;case"not":return E.value!==D}},[d]),z=w.useMemo(()=>!d||!t?null:t.sections.map(M=>{let P;switch(M.displayHint){case"list":{const W=M.options.map(B=>S.jsx(It.Check,{type:"radio",id:`filter-select-${M.searchParam}:${B.value}`,name:M.searchParam,label:B.title,checked:y1(d,M,B),onClick:()=>N(M,B)},`${M.searchParam}:${B.value}`));P=S.jsxs(Ne,{gap:2,children:[...W]});break}case"pill":case"pill_small":{const W=o.theme.toLowerCase()==="vapor"?"outline-secondary":"outline-primary",B=M.displayHint==="pill_small"?"sm":void 0,q=M.options.map(k=>S.jsx("div",{children:S.jsx(RO,{type:"checkbox",size:B,id:`filter-select-${M.searchParam}:${k.value}`,checked:y1(d,M,k),value:k.value||"",variant:W,onChange:()=>N(M,k,!0),children:k.title},`${M.searchParam}:${k.value}`)}));P=S.jsxs(Ne,{direction:"horizontal",gap:2,className:"flex-wrap",children:[...q]});break}}const F=M.title?S.jsx("h5",{style:{paddingBottom:"0.5em"},children:M.title}):null,D=M.title?"":"py-4 border-top border-bottom",E=_(M)?"filter-modal__section--hidden":"";return S.jsx("div",{className:`filter-modal__section ${E}`,children:S.jsxs(Ne,{className:D,children:[F,P]})},`filter-modal-section-${M.searchParam}`)}),[d,t,N,_,o.theme]),$=w.useCallback(()=>{x(!0)},[]),V=w.useCallback(()=>{x(!1),p&&h(p.options)},[p]),I=w.useCallback(()=>{const M=T.current;if(!d||!M)return;const P=Tr(d.options);for(const F of d.options){const D=M.find(W=>W.searchParam===F.searchParam),E=t.sections.find(W=>W.searchParam===F.searchParam);if(E&&_(E)&&D){const W=P.find(B=>B.searchParam===F.searchParam);W&&(W.value=D.value)}}m(P),x(!1)},[d,c,t,_]),Q=w.useCallback(()=>{const M=T.current;M&&(c(P=>{const F=new URLSearchParams(P);for(const D of M){const E=`filter_${D.searchParam}`;F.delete(E)}return F}),h(M),m(M)),x(!1)},[c]);if(!z)return null;const A=p&&T.current?!Kn(p.options,T.current):!1;return S.jsxs(Ne,{direction:"horizontal",gap:2,children:[S.jsx(Qt,{className:"filter-modal-button filter-modal-button--show",variant:A?"primary":"outline-primary",onClick:$,children:"Filters"}),A?S.jsx(Qt,{className:"filter-modal-button filter-modal-button--clear",variant:"secondary",onClick:Q,children:"Clear filters"}):null,S.jsxs(Pa,{show:y,onHide:V,centered:!0,scrollable:!0,children:[S.jsx(Pa.Header,{closeButton:!0}),S.jsx(Pa.Body,{children:S.jsxs(Ne,{children:[...z]})}),S.jsxs(Pa.Footer,{className:"justify-content-between",children:[S.jsx(Qt,{variant:"secondary",onClick:Q,children:"Clear all"}),S.jsx(Qt,{variant:"primary",onClick:I,children:"Apply"})]})]})]})}const ap=160,ip=0,S1=8;function u4(r){const{fixed:t}=r;return S.jsx(HO,{...r,classNamePrefix:"media-gallery",style:{flexGrow:t?"0":void 0}})}function Ip(r){const{items:t}=r,a=w.useRef(null),[l,o]=w.useState(null);w.useEffect(()=>{const d=new ResizeObserver(h=>{const{width:p}=h[0].contentRect;o(p)});return a.current&&d.observe(a.current),()=>d.disconnect()},[]);const u=w.useMemo(()=>{var y,x;if(!l)return null;const d=[[]];let h=0,p=0;const m=[...t];for(;m.length>0;){const T=m.shift();if(!T)continue;let N=0;if((y=T.thumbnail)!=null&&y.width&&((x=T.thumbnail)!=null&&x.height)){const z=ap/T.thumbnail.height*T.thumbnail.width;N=ip+z}else N=ip+ap;let _=d[h].length>0?S1:0;d[h].length>0&&p+_+N>l&&(h++,p=0,_=0,d.push([])),d[h].push(T),p+=_+N}return d},[t,l]),c=w.useMemo(()=>u?u.reduce((d,h,p)=>(d.push(...h.reduce((m,y)=>{var F,D,E,W,B,q,k;const x=`/media/${y.id}`;let T;if(y.thumbnail)T=`${x}?t=1`;else if(y.source.type==="post")(D=(F=y.source.thumbnail)==null?void 0:F.downloaded)!=null&&D.path?T=`/media/post:${y.source.id}:thumbnail`:(W=(E=y.source.coverImage)==null?void 0:E.downloaded)!=null&&W.path&&(T=`/media/post:${y.source.id}:cover`);else if(y.source.type==="product"){const G=y.source.previewMedia.find(L=>{var b,te;return L.type==="image"&&((te=(b=L.downloaded)==null?void 0:b.thumbnail)==null?void 0:te.path)})||y.source.contentMedia.find(L=>{var b,te;return L.type==="image"&&((te=(b=L.downloaded)==null?void 0:b.thumbnail)==null?void 0:te.path)});G&&(T=`/media/${G.id}`)}const N=!y.mimeType||y.mimeType.startsWith("image/"),_=((B=y.mimeType)==null?void 0:B.startsWith("video/"))??!1,z=((q=y.mimeType)==null?void 0:q.startsWith("audio/"))??!1,$=((k=y.mimeType)==null?void 0:k.toLowerCase())==="application/pdf",V=N||$?x:void 0,I=N?x:void 0,Q=_||z?JSON.stringify({source:[{src:x,type:y.mimeType}],attributes:{preload:!1,controls:!0,playsInline:!0}}):void 0,A=_||z?T:void 0,M=y.source.type==="post"?y.source.title:y.source.name,P=M?`<h4><a class="media-gallery__source-link" href="/posts/${y.source.id}">${M}</a></h4>`:void 0;return(I||Q||$)&&m.push({id:y.id,href:V,dataSrc:I,dataVideo:Q,dataPoster:A,dataIframe:$,dataSubHTML:P,thumbnailURL:T,fixed:p===u.length-1,badge:$?"PDF":void 0}),m},[])),d),[]):null,[u]);return S.jsx(jg,{speed:500,plugins:[Ag,Mg,Dg],selector:".lightgallery-item",children:S.jsx("div",{ref:a,className:"w-100 media-gallery mb-4",style:{"--media-gallery-row-height":`${ap}px`,"--media-gallery-gap":`${S1}px`,"--media-gallery-thumbnail-border":`${ip}px`},children:c?c.map(d=>S.jsx(u4,{...d},`media-gallery-item-${d.id}`)):null})})}const lp={Post:"post",Collection:"collection"},c4=["image","video","videoEmbed","audio"],UO=r=>{var t,a,l;return((t=r.downloaded)==null?void 0:t.path)&&(c4.includes(r.type)||((l=(a=r.downloaded)==null?void 0:a.mimeType)==null?void 0:l.toLowerCase())==="application/pdf")};function w1(r){return r.filter(t=>UO(t))}function x1(r){return r.filter(t=>!UO(t))}function O1(r,t){return r.reduce((a,l)=>{var c,d,h,p;const o=l.type==="image"?"image":l.type==="audio"?"audio":["video","videoEmbed"].includes(l.type)?"video":((c=l.downloaded)==null?void 0:c.mimeType)==="application/pdf"?"pdf":null,u=(h=(d=l.downloaded)==null?void 0:d.thumbnail)!=null&&h.path?{path:l.downloaded.thumbnail.path,width:l.downloaded.thumbnail.width??null,height:l.downloaded.thumbnail.height??null}:null;return o&&a.push({id:l.id,mediaType:o,mimeType:((p=l.downloaded)==null?void 0:p.mimeType)||null,source:t,thumbnail:u}),a},[])}function GO(r){const{product:t,variant:a="full",showCampaign:l=!1}=r,o=er(),u=w.useMemo(()=>({content:w1(t.contentMedia),preview:w1(t.previewMedia)}),[t]),c=w.useMemo(()=>({content:x1(t.contentMedia),preview:x1(t.previewMedia)}),[t]),d=w.useMemo(()=>u.preview.find(_=>_.type==="image")||null,[u]),h=w.useMemo(()=>d?S.jsx(kO,{items:[d],title:t.name||""}):null,[d,t]),p=w.useCallback(_=>{const z=_.reduce(($,V)=>{var I;if((I=V.downloaded)!=null&&I.path){const Q=$p.getProperty(V,"filename")||BO.parse(V.downloaded.path).base;$.push({title:Q,url:`/media/${V.id}`})}return $},[]);return z.length>0?S.jsxs("div",{children:[S.jsx("p",{children:"Files:"}),S.jsx("ul",{children:z.map(({title:$,url:V})=>S.jsx("li",{children:S.jsx("a",{href:V,children:$})}))})]}):null},[]),m=w.useMemo(()=>{if(a==="compact")return null;const _=d?u.preview.filter(V=>V.id!==d.id):[...u.preview],z=_.length>0?S.jsx(Ip,{items:O1(_,t)}):null,$=p(c.preview);return z||$?S.jsxs(Ne,{gap:3,children:[z,$]}):null},[t,a,u,d,c,p]),y=w.useMemo(()=>{if(a==="compact")return null;const _=u.content.length>0?S.jsx(Ip,{items:O1(u.content,t)}):null,z=p(c.content);return _||z?S.jsxs(Ne,{gap:3,children:[_,z]}):null},[t,a,u,c,p]),x=w.useMemo(()=>{let _=null;return m&&y?_=S.jsxs(Js.Container,{defaultActiveKey:"purchased",children:[S.jsx(St,{className:"m-0 mb-4",children:S.jsx(st,{className:"p-0",children:S.jsxs(Gl,{className:"product-card__media-nav",children:[S.jsx(Gl.Item,{children:S.jsx(Gl.Link,{className:"product-card__media-nav-link",eventKey:"purchased",children:"Purchased media"})}),S.jsx(Gl.Item,{children:S.jsx(Gl.Link,{className:"product-card__media-nav-link",eventKey:"preview",children:"Preview media"})})]})})}),S.jsx(St,{children:S.jsxs(Js.Content,{className:"py-0 m-0 border-0",children:[S.jsx(Js.Pane,{eventKey:"purchased",children:y}),S.jsx(Js.Pane,{eventKey:"preview",children:m})]})})]}):_=y||m,_?S.jsx("div",{className:"mt-4",children:_}):null},[m,y]),T=w.useMemo(()=>!l||!t.campaign||!t.campaign.name?null:S.jsx(it.Header,{children:S.jsxs(Ne,{direction:"horizontal",gap:3,children:[S.jsx(ca,{mediaId:`campaign:${t.campaign.id}:avatar`,className:"rounded",style:{width:"2.5em",height:"2.5em",objectFit:"cover"}}),S.jsx("span",{children:S.jsx(on,{to:`/campaigns/${t.campaign.id}`,className:"text-body",children:t.campaign.name})})]})}),[t,l]),N=w.useMemo(()=>{let _;return t.productType===lp.Post&&t.referencedEntityId?_=new URL(`/posts/${t.referencedEntityId}`,window.location.href):t.productType===lp.Collection&&t.referencedEntityId?_=new URL(`/collections/${t.referencedEntityId}`,window.location.href):_=new URL(`/products/${t.id}`,window.location.href),o.pathname===_.pathname?t.name:S.jsx(on,{to:_.toString(),children:t.name})},[t,o]);return S.jsxs(it,{className:`product-card product-card--${a}`,children:[T,h,S.jsxs(it.Body,{className:"d-flex flex-column",children:[S.jsx("div",{children:t.productType===lp.Collection&&S.jsx(Ii,{bg:"secondary",children:"Collection"})}),S.jsxs(Ne,{children:[S.jsxs(Ne,{direction:"horizontal",className:"mb-3 justify-content-between gap-4",children:[S.jsx(it.Title,{className:"m-0 product-card__title",children:N}),t.isAccessible?null:S.jsx("span",{className:"material-icons text-body-secondary",children:"lock"})]}),S.jsxs(Ne,{direction:"horizontal",className:"mb-3 text-body-secondary justify-content-between",gap:4,children:[t.publishedAt?S.jsx("span",{children:new Date(t.publishedAt).toLocaleString()}):null,t.price?S.jsx("span",{children:t.price}):null]}),S.jsx(it.Text,{className:"product-card__description",dangerouslySetInnerHTML:{__html:t.description||""}})]}),x]})]})}const E1=300,Fl=16;function f4(r){const{products:t}=r,a=w.useRef(null),[l,o]=w.useState(null);w.useEffect(()=>{const h=new ResizeObserver(p=>{const{width:m}=p[0].contentRect;o(m)});return a.current&&h.observe(a.current),()=>h.disconnect()},[]);const u=w.useMemo(()=>{if(!l)return{cardWidth:E1,lastRowFirstItemIndex:0};const h=Math.floor((l+Fl)/(E1+Fl)),p=((l+Fl)/h-Fl).toFixed(2),m=Math.floor((t.length-1)/h)*h;return{cardWidth:p,lastRowFirstItemIndex:m}},[l]),{cardWidth:c,lastRowFirstItemIndex:d}=u;return S.jsx("div",{ref:a,className:"product-list mb-4",style:{"--card-width":`${c}px`,"--gap":`${Fl}px`},children:t.map((h,p)=>S.jsx("div",{className:`product-list__card-wrapper ${p>=d?"product-list__card-wrapper--fixed":""}`,children:S.jsx(GO,{product:h,variant:"compact"},`product-card-${h.id}`)}))})}const VO=w.forwardRef((r,t)=>{const[a,l]=w.useState(()=>r.onConfirm||null),[o,u]=w.useState(""),c=w.useCallback(p=>{u(p.target.value)},[]),d=w.useCallback(()=>{a&&a(o)},[o,a]),h=w.useCallback(p=>{p.key==="Enter"&&d()},[d]);return w.useImperativeHandle(t,()=>({onConfirm:p=>{l(()=>p)},setInput:p=>{u(p)}})),S.jsxs(Vx,{className:"me-2",children:[S.jsx(It.Control,{type:"search",placeholder:r.placeholder,value:o,onChange:c,onKeyDown:h}),S.jsx(Qt,{className:"d-flex align-items-center",variant:"primary",onClick:d,children:S.jsx("span",{className:"material-icons",children:"search"})})]})});function d4(r){return{filter:null,page:null,itemsPerPage:r.listItemsPerPage}}const h4=(r,t)=>{const a=Tr(r);return t.filter!==void 0&&(a.filter=t.filter),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Kn(a,r)?r:a};function op(r){var R,v,C,Y,J,H;const{type:t,collection:a}=r,{id:l}=jr(),[o,u]=w.useState(""),[c,d]=w.useState(a?null:l),h=a?l:null,{api:p}=_n(),{settings:m}=Ua(),{scrollTo:y}=No(),[x,T]=w.useReducer(h4,d4(m)),[N,_]=w.useState(null),[z,$]=w.useState(null),[V,I]=w.useState(null),[Q,A]=w.useState(null),[M,P]=Oo(),F=lw(),D=w.useRef(!0),E=w.useRef(null);let W,B;switch(t){case"post":W={singular:"post",plural:"posts"},B="Search posts";break;case"product":default:W={singular:"product",plural:"products"},B="Search products";break}if(t==="post"&&a){const U=" in collection";W.singular+=U,W.plural+=U,B+=U}const q=[],k=(C=(v=(R=x.filter)==null?void 0:R.options.find(U=>U.searchParam==="search"))==null?void 0:v.value)==null?void 0:C.trim();k&&q.push(`with "${k}"`);const G=(H=(J=(Y=x.filter)==null?void 0:Y.options.find(U=>U.searchParam==="tag_id"))==null?void 0:J.value)==null?void 0:H.trim();if(G){let U=G;G.startsWith("user_defined;")&&(U=G.substring(13)),U&&q.push(`tagged "${U}"`)}if(q.length>0){const U=q.join(" and ");W.singular+=` ${U}`,W.plural+=` ${U}`}w.useEffect(()=>{if(!h){$(null);return}const U=new AbortController;return(async()=>{const{collection:Z,campaignId:re}=await p.getCollection(h);U.signal.aborted||($(Z),d(re))})(),()=>U.abort()},[p,h]),w.useEffect(()=>{if(!c){A(null);return}A(null);const U=new AbortController;return(async()=>{const Z=await p.getContentFilterOptions(c,t);U.signal.aborted||A(Z)})(),()=>U.abort()},[p,c,t]);const L=w.useCallback((U,Z=!1)=>{P(()=>{const re=new URLSearchParams(window.location.search);return re.set("p",String(U)),re},{replace:Z})},[]);w.useEffect(()=>{F===Up.Pop&&(D.current=!0)},[F]),w.useEffect(()=>{if(!c){_(null);return}const U=new AbortController;return(async()=>{const Z=await p.getCampaign({id:c});U.signal.aborted||_(Z)})(),()=>U.abort()},[p,c]),w.useEffect(()=>{const{filter:U,page:Z}=x;if(!N||!U||Z===null||a&&!z){I(null);return}const re=new AbortController;return(async()=>{const ue=await p.getContentList({campaign:N,type:t,...x,collectionId:z==null?void 0:z.id,filter:U,page:Z});re.signal.aborted||I(ue)})(),()=>re.abort()},[p,N,t,a,z,x]),w.useEffect(()=>{const U=Number(M.get("p"))||1;T({page:U}),y(0,0)},[M,y]);const b=w.useCallback(U=>{D.current?(D.current=!1,T({filter:U})):T({filter:U,page:1})},[]);w.useEffect(()=>{T({itemsPerPage:m.listItemsPerPage})},[m.listItemsPerPage]),w.useEffect(()=>{V&&V.items.length===0&&V.total>0&&L(1,!0)},[V,L]),w.useEffect(()=>{if(x.page===null)return;const U=new URLSearchParams(window.location.search);(Number(U.get("p"))||1)!==x.page&&L(x.page,!0)},[x,L]),w.useEffect(()=>{if(a&&!z){u("");return}const U=x.filter,Z=new URLSearchParams,re=a?z==null?void 0:z.id:void 0;if(re&&Z.set("collection_id",re),U)for(const{searchParam:ue,value:ge}of U.options)ge&&Z.set(ue,ge);u(Z.toString())},[x.filter,a,z]);const te=w.useMemo(()=>!V||V.items.length===0?null:V.items.every(U=>U.type==="post")?S.jsx(Ne,{className:"mb-4",gap:4,children:V.items.map(U=>S.jsx(IO,{post:U,useShowMore:!0,contextQS:o},`post-card-${U.id}`))}):V.items.every(U=>U.type==="product")?S.jsx(f4,{products:V.items}):null,[V,o]);if(!(!N||!Q))return S.jsxs("div",{className:`campaign-content campaign-content--${t}`,children:[S.jsxs(On,{fluid:!0,className:"p-0",children:[S.jsx(St,{className:"mb-3 g-0 align-items-center",children:S.jsxs(st,{className:"w-auto d-flex justify-content-end",children:[S.jsx(VO,{ref:E,placeholder:B}),S.jsx(qO,{options:Q,onFilter:b,searchInputBox:E})]})}),S.jsx(St,{className:"mb-2 g-0",children:V&&V.items.length>0&&x.page?S.jsx(ju,{total:V.total,page:x.page,itemsPerPage:x.itemsPerPage,subject:W}):null})]}),te,V&&V.items.length===0?S.jsx(it,{className:"my-4",style:{height:"10em"},children:S.jsxs(it.Body,{className:"d-flex justify-content-center align-items-center",children:["No ",t==="post"?"posts":"products"]})}):null,V?S.jsx(Au,{totalItems:V.total,itemsPerPage:x.itemsPerPage,onChange:L}):null]})}function YO(r){var p,m;const{campaign:t}=r,a=(p=t.coverPhoto.downloaded)!=null&&p.path?t.coverPhoto.id:null,l=(m=t.avatarImage.downloaded)!=null&&m.path?t.avatarImage.id:null,o=w.useMemo(()=>{const y=[];return t.postCount>0&&y.push({title:"Posts",url:`/campaigns/${t.id}/posts`}),t.collectionCount>0&&y.push({title:"Collections",url:`/campaigns/${t.id}/collections`}),t.productCount>0&&y.push({title:"Shop",url:`/campaigns/${t.id}/shop`}),t.mediaCount>0&&y.push({title:"Media",url:`/campaigns/${t.id}/media`}),y.push({title:"About",url:`/campaigns/${t.id}/about`}),S.jsx(Ne,{direction:"horizontal",className:"campaign-header__nav justify-content-center mb-5",gap:4,children:y.map(({title:x,url:T})=>S.jsx(lu,{to:T,children:x}))})},[t]),u=w.useMemo(()=>a?S.jsx("div",{className:"w-100",children:S.jsx(ca,{className:"campaign-header__cover",mediaId:a})}):null,[a]),c=w.useMemo(()=>l?S.jsx("div",{className:"mb-2",children:S.jsx(ca,{className:"campaign-header__avatar rounded",mediaId:l})}):null,[l]),d=w.useMemo(()=>{const y=jO.getCampaignCreationName(t);return S.jsxs(Ne,{className:"w-100 px-3 align-items-center",children:[S.jsx("h3",{children:t.name}),y?S.jsx("div",{className:"text-body-secondary",children:y}):null]})},[t]),h=w.useMemo(()=>u&&c?S.jsxs(Ne,{className:"w-100 align-items-center",style:{marginBottom:"-2em"},children:[u,S.jsxs(Ne,{className:"align-items-center",style:{transform:"translateY(-4em)"},children:[c,d]})]}):u?S.jsxs(S.Fragment,{children:[u,S.jsx(Ne,{className:"align-items-center my-4",children:d})]}):c?S.jsxs(Ne,{className:"w-100 align-items-center my-4",children:[c,d]}):S.jsx(Ne,{className:"w-100 align-items-center my-4",children:d}),[u,c,d]);return S.jsxs(S.Fragment,{children:[h,o]})}function p4(){const{id:r}=jr();if(!r)return null;const{api:t}=_n(),[a,l]=w.useState(null);return w.useEffect(()=>{const o=new AbortController;return(async()=>{const u=await t.getCampaign({id:r,withCounts:!0});o.signal.aborted||l(u)})(),()=>o.abort()},[t,r]),a?S.jsxs(On,{fluid:!0,className:"p-0",children:[S.jsx(St,{className:"g-0",children:S.jsx(st,{children:S.jsx(YO,{campaign:a})})}),S.jsx(St,{className:"justify-content-center g-0",children:S.jsx(st,{lg:8,md:10,sm:12,className:"px-3 px-md-0 d-flex flex-column align-items-center justify-content-center",children:S.jsx(Wp,{})})})]}):null}function T1(r){var a,l;const{reward:t}=r;return S.jsx(it,{className:"reward-card mb-3",children:S.jsxs(it.Body,{className:"d-flex flex-column p-0",children:[(l=(a=t.image)==null?void 0:a.downloaded)!=null&&l.path?S.jsx(it.Img,{className:"reward-card__image",src:`/media/reward:${t.id}:image`}):null,S.jsxs(Ne,{className:"flex-fill px-3 py-2",children:[S.jsxs(Ne,{direction:"horizontal",className:"my-3 justify-content-between",children:[S.jsx("div",{className:"reward-card__title",children:t.title}),S.jsx("div",{children:t.amount||""})]}),S.jsx("div",{className:"reward-card__content w-100",dangerouslySetInnerHTML:{__html:t.description||""}})]})]})})}var sp={},up={},Ql={},cp={},C1;function g4(){return C1||(C1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};r.default=t}(cp)),cp}var fp,R1;function m4(){if(R1)return fp;R1=1;var r="Expected a function",t=NaN,a="[object Symbol]",l=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt,h=typeof xr=="object"&&xr&&xr.Object===Object&&xr,p=typeof self=="object"&&self&&self.Object===Object&&self,m=h||p||Function("return this")(),y=Object.prototype,x=y.toString,T=Math.max,N=Math.min,_=function(){return m.Date.now()};function z(A,M,P){var F,D,E,W,B,q,k=0,G=!1,L=!1,b=!0;if(typeof A!="function")throw new TypeError(r);M=Q(M)||0,$(P)&&(G=!!P.leading,L="maxWait"in P,E=L?T(Q(P.maxWait)||0,M):E,b="trailing"in P?!!P.trailing:b);function te(re){var ue=F,ge=D;return F=D=void 0,k=re,W=A.apply(ge,ue),W}function R(re){return k=re,B=setTimeout(Y,M),G?te(re):W}function v(re){var ue=re-q,ge=re-k,pe=M-ue;return L?N(pe,E-ge):pe}function C(re){var ue=re-q,ge=re-k;return q===void 0||ue>=M||ue<0||L&&ge>=E}function Y(){var re=_();if(C(re))return J(re);B=setTimeout(Y,v(re))}function J(re){return B=void 0,b&&F?te(re):(F=D=void 0,W)}function H(){B!==void 0&&clearTimeout(B),k=0,F=q=D=B=void 0}function U(){return B===void 0?W:J(_())}function Z(){var re=_(),ue=C(re);if(F=arguments,D=this,q=re,ue){if(B===void 0)return R(q);if(L)return B=setTimeout(Y,M),te(q)}return B===void 0&&(B=setTimeout(Y,M)),W}return Z.cancel=H,Z.flush=U,Z}function $(A){var M=typeof A;return!!A&&(M=="object"||M=="function")}function V(A){return!!A&&typeof A=="object"}function I(A){return typeof A=="symbol"||V(A)&&x.call(A)==a}function Q(A){if(typeof A=="number")return A;if(I(A))return t;if($(A)){var M=typeof A.valueOf=="function"?A.valueOf():A;A=$(M)?M+"":M}if(typeof A!="string")return A===0?A:+A;A=A.replace(l,"");var P=u.test(A);return P||c.test(A)?d(A.slice(2),P?2:8):o.test(A)?t:+A}return fp=z,fp}var we={},dp={},_1;function XO(){return _1||(_1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=a(Cn());function a(o){return o&&o.__esModule?o:{default:o}}var l={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(u){return t.default.createElement("ul",{style:{display:"block"}},u)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(u){return t.default.createElement("button",null,u+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};r.default=l}(dp)),dp}var j1;function Do(){if(j1)return we;j1=1,Object.defineProperty(we,"__esModule",{value:!0}),we.checkSpecKeys=we.checkNavigable=we.changeSlide=we.canUseDOM=we.canGoNext=void 0,we.clamp=p,we.extractObject=void 0,we.filterSettings=te,we.validSettings=we.swipeStart=we.swipeMove=we.swipeEnd=we.slidesOnRight=we.slidesOnLeft=we.slideHandler=we.siblingDirection=we.safePreventDefault=we.lazyStartIndex=we.lazySlidesOnRight=we.lazySlidesOnLeft=we.lazyEndIndex=we.keyHandler=we.initializedState=we.getWidth=we.getTrackLeft=we.getTrackCSS=we.getTrackAnimateCSS=we.getTotalSlides=we.getSwipeDirection=we.getSlideCount=we.getRequiredLazySlides=we.getPreClones=we.getPostClones=we.getOnDemandLazySlides=we.getNavigableIndexes=we.getHeight=void 0;var r=a(Cn()),t=a(XO());function a(R){return R&&R.__esModule?R:{default:R}}function l(R){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},l(R)}function o(R,v){var C=Object.keys(R);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(R);v&&(Y=Y.filter(function(J){return Object.getOwnPropertyDescriptor(R,J).enumerable})),C.push.apply(C,Y)}return C}function u(R){for(var v=1;v<arguments.length;v++){var C=arguments[v]!=null?arguments[v]:{};v%2?o(Object(C),!0).forEach(function(Y){c(R,Y,C[Y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(C)):o(Object(C)).forEach(function(Y){Object.defineProperty(R,Y,Object.getOwnPropertyDescriptor(C,Y))})}return R}function c(R,v,C){return v=d(v),v in R?Object.defineProperty(R,v,{value:C,enumerable:!0,configurable:!0,writable:!0}):R[v]=C,R}function d(R){var v=h(R,"string");return l(v)=="symbol"?v:String(v)}function h(R,v){if(l(R)!="object"||!R)return R;var C=R[Symbol.toPrimitive];if(C!==void 0){var Y=C.call(R,v);if(l(Y)!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(R)}function p(R,v,C){return Math.max(v,Math.min(R,C))}var m=we.safePreventDefault=function(v){var C=["onTouchStart","onTouchMove","onWheel"];C.includes(v._reactName)||v.preventDefault()},y=we.getOnDemandLazySlides=function(v){for(var C=[],Y=x(v),J=T(v),H=Y;H<J;H++)v.lazyLoadedList.indexOf(H)<0&&C.push(H);return C};we.getRequiredLazySlides=function(v){for(var C=[],Y=x(v),J=T(v),H=Y;H<J;H++)C.push(H);return C};var x=we.lazyStartIndex=function(v){return v.currentSlide-N(v)},T=we.lazyEndIndex=function(v){return v.currentSlide+_(v)},N=we.lazySlidesOnLeft=function(v){return v.centerMode?Math.floor(v.slidesToShow/2)+(parseInt(v.centerPadding)>0?1:0):0},_=we.lazySlidesOnRight=function(v){return v.centerMode?Math.floor((v.slidesToShow-1)/2)+1+(parseInt(v.centerPadding)>0?1:0):v.slidesToShow},z=we.getWidth=function(v){return v&&v.offsetWidth||0},$=we.getHeight=function(v){return v&&v.offsetHeight||0},V=we.getSwipeDirection=function(v){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Y,J,H,U;return Y=v.startX-v.curX,J=v.startY-v.curY,H=Math.atan2(J,Y),U=Math.round(H*180/Math.PI),U<0&&(U=360-Math.abs(U)),U<=45&&U>=0||U<=360&&U>=315?"left":U>=135&&U<=225?"right":C===!0?U>=35&&U<=135?"up":"down":"vertical"},I=we.canGoNext=function(v){var C=!0;return v.infinite||(v.centerMode&&v.currentSlide>=v.slideCount-1||v.slideCount<=v.slidesToShow||v.currentSlide>=v.slideCount-v.slidesToShow)&&(C=!1),C};we.extractObject=function(v,C){var Y={};return C.forEach(function(J){return Y[J]=v[J]}),Y},we.initializedState=function(v){var C=r.default.Children.count(v.children),Y=v.listRef,J=Math.ceil(z(Y)),H=v.trackRef&&v.trackRef.node,U=Math.ceil(z(H)),Z;if(v.vertical)Z=J;else{var re=v.centerMode&&parseInt(v.centerPadding)*2;typeof v.centerPadding=="string"&&v.centerPadding.slice(-1)==="%"&&(re*=J/100),Z=Math.ceil((J-re)/v.slidesToShow)}var ue=Y&&$(Y.querySelector('[data-index="0"]')),ge=ue*v.slidesToShow,pe=v.currentSlide===void 0?v.initialSlide:v.currentSlide;v.rtl&&v.currentSlide===void 0&&(pe=C-1-v.initialSlide);var ve=v.lazyLoadedList||[],he=y(u(u({},v),{},{currentSlide:pe,lazyLoadedList:ve}));ve=ve.concat(he);var me={slideCount:C,slideWidth:Z,listWidth:J,trackWidth:U,currentSlide:pe,slideHeight:ue,listHeight:ge,lazyLoadedList:ve};return v.autoplaying===null&&v.autoplay&&(me.autoplaying="playing"),me},we.slideHandler=function(v){var C=v.waitForAnimate,Y=v.animating,J=v.fade,H=v.infinite,U=v.index,Z=v.slideCount,re=v.lazyLoad,ue=v.currentSlide,ge=v.centerMode,pe=v.slidesToScroll,ve=v.slidesToShow,he=v.useCSS,me=v.lazyLoadedList;if(C&&Y)return{};var Se=U,ye,Re,be,Le={},Pe={},Te=H?U:p(U,0,Z-1);if(J){if(!H&&(U<0||U>=Z))return{};U<0?Se=U+Z:U>=Z&&(Se=U-Z),re&&me.indexOf(Se)<0&&(me=me.concat(Se)),Le={animating:!0,currentSlide:Se,lazyLoadedList:me,targetSlide:Se},Pe={animating:!1,targetSlide:Se}}else ye=Se,Se<0?(ye=Se+Z,H?Z%pe!==0&&(ye=Z-Z%pe):ye=0):!I(v)&&Se>ue?Se=ye=ue:ge&&Se>=Z?(Se=H?Z:Z-1,ye=H?0:Z-1):Se>=Z&&(ye=Se-Z,H?Z%pe!==0&&(ye=0):ye=Z-ve),!H&&Se+ve>=Z&&(ye=Z-ve),Re=E(u(u({},v),{},{slideIndex:Se})),be=E(u(u({},v),{},{slideIndex:ye})),H||(Re===be&&(Se=ye),Re=be),re&&(me=me.concat(y(u(u({},v),{},{currentSlide:Se})))),he?(Le={animating:!0,currentSlide:ye,trackStyle:D(u(u({},v),{},{left:Re})),lazyLoadedList:me,targetSlide:Te},Pe={animating:!1,currentSlide:ye,trackStyle:F(u(u({},v),{},{left:be})),swipeLeft:null,targetSlide:Te}):Le={currentSlide:ye,trackStyle:F(u(u({},v),{},{left:be})),lazyLoadedList:me,targetSlide:Te};return{state:Le,nextState:Pe}},we.changeSlide=function(v,C){var Y,J,H,U,Z,re=v.slidesToScroll,ue=v.slidesToShow,ge=v.slideCount,pe=v.currentSlide,ve=v.targetSlide,he=v.lazyLoad,me=v.infinite;if(U=ge%re!==0,Y=U?0:(ge-pe)%re,C.message==="previous")H=Y===0?re:ue-Y,Z=pe-H,he&&!me&&(J=pe-H,Z=J===-1?ge-1:J),me||(Z=ve-re);else if(C.message==="next")H=Y===0?re:Y,Z=pe+H,he&&!me&&(Z=(pe+re)%ge+Y),me||(Z=ve+re);else if(C.message==="dots")Z=C.index*C.slidesToScroll;else if(C.message==="children"){if(Z=C.index,me){var Se=k(u(u({},v),{},{targetSlide:Z}));Z>C.currentSlide&&Se==="left"?Z=Z-ge:Z<C.currentSlide&&Se==="right"&&(Z=Z+ge)}}else C.message==="index"&&(Z=Number(C.index));return Z},we.keyHandler=function(v,C,Y){return v.target.tagName.match("TEXTAREA|INPUT|SELECT")||!C?"":v.keyCode===37?Y?"next":"previous":v.keyCode===39?Y?"previous":"next":""},we.swipeStart=function(v,C,Y){return v.target.tagName==="IMG"&&m(v),!C||!Y&&v.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:v.touches?v.touches[0].pageX:v.clientX,startY:v.touches?v.touches[0].pageY:v.clientY,curX:v.touches?v.touches[0].pageX:v.clientX,curY:v.touches?v.touches[0].pageY:v.clientY}}},we.swipeMove=function(v,C){var Y=C.scrolling,J=C.animating,H=C.vertical,U=C.swipeToSlide,Z=C.verticalSwiping,re=C.rtl,ue=C.currentSlide,ge=C.edgeFriction,pe=C.edgeDragged,ve=C.onEdge,he=C.swiped,me=C.swiping,Se=C.slideCount,ye=C.slidesToScroll,Re=C.infinite,be=C.touchObject,Le=C.swipeEvent,Pe=C.listHeight,Te=C.listWidth;if(!Y){if(J)return m(v);H&&U&&Z&&m(v);var ke,lt={},ft=E(C);be.curX=v.touches?v.touches[0].pageX:v.clientX,be.curY=v.touches?v.touches[0].pageY:v.clientY,be.swipeLength=Math.round(Math.sqrt(Math.pow(be.curX-be.startX,2)));var vt=Math.round(Math.sqrt(Math.pow(be.curY-be.startY,2)));if(!Z&&!me&&vt>10)return{scrolling:!0};Z&&(be.swipeLength=vt);var Mt=(re?-1:1)*(be.curX>be.startX?1:-1);Z&&(Mt=be.curY>be.startY?1:-1);var Ae=Math.ceil(Se/ye),Be=V(C.touchObject,Z),nt=be.swipeLength;return Re||(ue===0&&(Be==="right"||Be==="down")||ue+1>=Ae&&(Be==="left"||Be==="up")||!I(C)&&(Be==="left"||Be==="up"))&&(nt=be.swipeLength*ge,pe===!1&&ve&&(ve(Be),lt.edgeDragged=!0)),!he&&Le&&(Le(Be),lt.swiped=!0),H?ke=ft+nt*(Pe/Te)*Mt:re?ke=ft-nt*Mt:ke=ft+nt*Mt,Z&&(ke=ft+nt*Mt),lt=u(u({},lt),{},{touchObject:be,swipeLeft:ke,trackStyle:F(u(u({},C),{},{left:ke}))}),Math.abs(be.curX-be.startX)<Math.abs(be.curY-be.startY)*.8||be.swipeLength>10&&(lt.swiping=!0,m(v)),lt}},we.swipeEnd=function(v,C){var Y=C.dragging,J=C.swipe,H=C.touchObject,U=C.listWidth,Z=C.touchThreshold,re=C.verticalSwiping,ue=C.listHeight,ge=C.swipeToSlide,pe=C.scrolling,ve=C.onSwipe,he=C.targetSlide,me=C.currentSlide,Se=C.infinite;if(!Y)return J&&m(v),{};var ye=re?ue/Z:U/Z,Re=V(H,re),be={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(pe||!H.swipeLength)return be;if(H.swipeLength>ye){m(v),ve&&ve(Re);var Le,Pe,Te=Se?me:he;switch(Re){case"left":case"up":Pe=Te+M(C),Le=ge?A(C,Pe):Pe,be.currentDirection=0;break;case"right":case"down":Pe=Te-M(C),Le=ge?A(C,Pe):Pe,be.currentDirection=1;break;default:Le=Te}be.triggerSlideHandler=Le}else{var ke=E(C);be.trackStyle=D(u(u({},C),{},{left:ke}))}return be};var Q=we.getNavigableIndexes=function(v){for(var C=v.infinite?v.slideCount*2:v.slideCount,Y=v.infinite?v.slidesToShow*-1:0,J=v.infinite?v.slidesToShow*-1:0,H=[];Y<C;)H.push(Y),Y=J+v.slidesToScroll,J+=Math.min(v.slidesToScroll,v.slidesToShow);return H},A=we.checkNavigable=function(v,C){var Y=Q(v),J=0;if(C>Y[Y.length-1])C=Y[Y.length-1];else for(var H in Y){if(C<Y[H]){C=J;break}J=Y[H]}return C},M=we.getSlideCount=function(v){var C=v.centerMode?v.slideWidth*Math.floor(v.slidesToShow/2):0;if(v.swipeToSlide){var Y,J=v.listRef,H=J.querySelectorAll&&J.querySelectorAll(".slick-slide")||[];if(Array.from(H).every(function(re){if(v.vertical){if(re.offsetTop+$(re)/2>v.swipeLeft*-1)return Y=re,!1}else if(re.offsetLeft-C+z(re)/2>v.swipeLeft*-1)return Y=re,!1;return!0}),!Y)return 0;var U=v.rtl===!0?v.slideCount-v.currentSlide:v.currentSlide,Z=Math.abs(Y.dataset.index-U)||1;return Z}else return v.slidesToScroll},P=we.checkSpecKeys=function(v,C){return C.reduce(function(Y,J){return Y&&v.hasOwnProperty(J)},!0)?null:console.error("Keys Missing:",v)},F=we.getTrackCSS=function(v){P(v,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var C,Y,J=v.slideCount+2*v.slidesToShow;v.vertical?Y=J*v.slideHeight:C=q(v)*v.slideWidth;var H={opacity:1,transition:"",WebkitTransition:""};if(v.useTransform){var U=v.vertical?"translate3d(0px, "+v.left+"px, 0px)":"translate3d("+v.left+"px, 0px, 0px)",Z=v.vertical?"translate3d(0px, "+v.left+"px, 0px)":"translate3d("+v.left+"px, 0px, 0px)",re=v.vertical?"translateY("+v.left+"px)":"translateX("+v.left+"px)";H=u(u({},H),{},{WebkitTransform:U,transform:Z,msTransform:re})}else v.vertical?H.top=v.left:H.left=v.left;return v.fade&&(H={opacity:1}),C&&(H.width=C),Y&&(H.height=Y),window&&!window.addEventListener&&window.attachEvent&&(v.vertical?H.marginTop=v.left+"px":H.marginLeft=v.left+"px"),H},D=we.getTrackAnimateCSS=function(v){P(v,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var C=F(v);return v.useTransform?(C.WebkitTransition="-webkit-transform "+v.speed+"ms "+v.cssEase,C.transition="transform "+v.speed+"ms "+v.cssEase):v.vertical?C.transition="top "+v.speed+"ms "+v.cssEase:C.transition="left "+v.speed+"ms "+v.cssEase,C},E=we.getTrackLeft=function(v){if(v.unslick)return 0;P(v,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var C=v.slideIndex,Y=v.trackRef,J=v.infinite,H=v.centerMode,U=v.slideCount,Z=v.slidesToShow,re=v.slidesToScroll,ue=v.slideWidth,ge=v.listWidth,pe=v.variableWidth,ve=v.slideHeight,he=v.fade,me=v.vertical,Se=0,ye,Re,be=0;if(he||v.slideCount===1)return 0;var Le=0;if(J?(Le=-W(v),U%re!==0&&C+re>U&&(Le=-(C>U?Z-(C-U):U%re)),H&&(Le+=parseInt(Z/2))):(U%re!==0&&C+re>U&&(Le=Z-U%re),H&&(Le=parseInt(Z/2))),Se=Le*ue,be=Le*ve,me?ye=C*ve*-1+be:ye=C*ue*-1+Se,pe===!0){var Pe,Te=Y&&Y.node;if(Pe=C+W(v),Re=Te&&Te.childNodes[Pe],ye=Re?Re.offsetLeft*-1:0,H===!0){Pe=J?C+W(v):C,Re=Te&&Te.children[Pe],ye=0;for(var ke=0;ke<Pe;ke++)ye-=Te&&Te.children[ke]&&Te.children[ke].offsetWidth;ye-=parseInt(v.centerPadding),ye+=Re&&(ge-Re.offsetWidth)/2}}return ye},W=we.getPreClones=function(v){return v.unslick||!v.infinite?0:v.variableWidth?v.slideCount:v.slidesToShow+(v.centerMode?1:0)},B=we.getPostClones=function(v){return v.unslick||!v.infinite?0:v.slideCount},q=we.getTotalSlides=function(v){return v.slideCount===1?1:W(v)+v.slideCount+B(v)},k=we.siblingDirection=function(v){return v.targetSlide>v.currentSlide?v.targetSlide>v.currentSlide+G(v)?"left":"right":v.targetSlide<v.currentSlide-L(v)?"right":"left"},G=we.slidesOnRight=function(v){var C=v.slidesToShow,Y=v.centerMode,J=v.rtl,H=v.centerPadding;if(Y){var U=(C-1)/2+1;return parseInt(H)>0&&(U+=1),J&&C%2===0&&(U+=1),U}return J?0:C-1},L=we.slidesOnLeft=function(v){var C=v.slidesToShow,Y=v.centerMode,J=v.rtl,H=v.centerPadding;if(Y){var U=(C-1)/2+1;return parseInt(H)>0&&(U+=1),!J&&C%2===0&&(U+=1),U}return J?C-1:0};we.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var b=we.validSettings=Object.keys(t.default);function te(R){return b.reduce(function(v,C){return R.hasOwnProperty(C)&&(v[C]=R[C]),v},{})}return we}var Zl={},A1;function v4(){if(A1)return Zl;A1=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.Track=void 0;var r=l(Cn()),t=l(Co()),a=Do();function l(D){return D&&D.__esModule?D:{default:D}}function o(D){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},o(D)}function u(){return u=Object.assign?Object.assign.bind():function(D){for(var E=1;E<arguments.length;E++){var W=arguments[E];for(var B in W)Object.prototype.hasOwnProperty.call(W,B)&&(D[B]=W[B])}return D},u.apply(this,arguments)}function c(D,E){if(!(D instanceof E))throw new TypeError("Cannot call a class as a function")}function d(D,E){for(var W=0;W<E.length;W++){var B=E[W];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(D,I(B.key),B)}}function h(D,E,W){return E&&d(D.prototype,E),Object.defineProperty(D,"prototype",{writable:!1}),D}function p(D,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(E&&E.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),E&&m(D,E)}function m(D,E){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,q){return B.__proto__=q,B},m(D,E)}function y(D){var E=N();return function(){var B=_(D),q;if(E){var k=_(this).constructor;q=Reflect.construct(B,arguments,k)}else q=B.apply(this,arguments);return x(this,q)}}function x(D,E){if(E&&(o(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(D)}function T(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function N(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N=function(){return!!D})()}function _(D){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)},_(D)}function z(D,E){var W=Object.keys(D);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(D);E&&(B=B.filter(function(q){return Object.getOwnPropertyDescriptor(D,q).enumerable})),W.push.apply(W,B)}return W}function $(D){for(var E=1;E<arguments.length;E++){var W=arguments[E]!=null?arguments[E]:{};E%2?z(Object(W),!0).forEach(function(B){V(D,B,W[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(W)):z(Object(W)).forEach(function(B){Object.defineProperty(D,B,Object.getOwnPropertyDescriptor(W,B))})}return D}function V(D,E,W){return E=I(E),E in D?Object.defineProperty(D,E,{value:W,enumerable:!0,configurable:!0,writable:!0}):D[E]=W,D}function I(D){var E=Q(D,"string");return o(E)=="symbol"?E:String(E)}function Q(D,E){if(o(D)!="object"||!D)return D;var W=D[Symbol.toPrimitive];if(W!==void 0){var B=W.call(D,E);if(o(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(D)}var A=function(E){var W,B,q,k,G;E.rtl?G=E.slideCount-1-E.index:G=E.index,q=G<0||G>=E.slideCount,E.centerMode?(k=Math.floor(E.slidesToShow/2),B=(G-E.currentSlide)%E.slideCount===0,G>E.currentSlide-k-1&&G<=E.currentSlide+k&&(W=!0)):W=E.currentSlide<=G&&G<E.currentSlide+E.slidesToShow;var L;E.targetSlide<0?L=E.targetSlide+E.slideCount:E.targetSlide>=E.slideCount?L=E.targetSlide-E.slideCount:L=E.targetSlide;var b=G===L;return{"slick-slide":!0,"slick-active":W,"slick-center":B,"slick-cloned":q,"slick-current":b}},M=function(E){var W={};return(E.variableWidth===void 0||E.variableWidth===!1)&&(W.width=E.slideWidth),E.fade&&(W.position="relative",E.vertical?W.top=-E.index*parseInt(E.slideHeight):W.left=-E.index*parseInt(E.slideWidth),W.opacity=E.currentSlide===E.index?1:0,W.zIndex=E.currentSlide===E.index?999:998,E.useCSS&&(W.transition="opacity "+E.speed+"ms "+E.cssEase+", visibility "+E.speed+"ms "+E.cssEase)),W},P=function(E,W){return E.key||W},F=function(E){var W,B=[],q=[],k=[],G=r.default.Children.count(E.children),L=(0,a.lazyStartIndex)(E),b=(0,a.lazyEndIndex)(E);return r.default.Children.forEach(E.children,function(te,R){var v,C={message:"children",index:R,slidesToScroll:E.slidesToScroll,currentSlide:E.currentSlide};!E.lazyLoad||E.lazyLoad&&E.lazyLoadedList.indexOf(R)>=0?v=te:v=r.default.createElement("div",null);var Y=M($($({},E),{},{index:R})),J=v.props.className||"",H=A($($({},E),{},{index:R}));if(B.push(r.default.cloneElement(v,{key:"original"+P(v,R),"data-index":R,className:(0,t.default)(H,J),tabIndex:"-1","aria-hidden":!H["slick-active"],style:$($({outline:"none"},v.props.style||{}),Y),onClick:function(re){v.props&&v.props.onClick&&v.props.onClick(re),E.focusOnSelect&&E.focusOnSelect(C)}})),E.infinite&&E.fade===!1){var U=G-R;U<=(0,a.getPreClones)(E)&&(W=-U,W>=L&&(v=te),H=A($($({},E),{},{index:W})),q.push(r.default.cloneElement(v,{key:"precloned"+P(v,W),"data-index":W,tabIndex:"-1",className:(0,t.default)(H,J),"aria-hidden":!H["slick-active"],style:$($({},v.props.style||{}),Y),onClick:function(re){v.props&&v.props.onClick&&v.props.onClick(re),E.focusOnSelect&&E.focusOnSelect(C)}}))),W=G+R,W<b&&(v=te),H=A($($({},E),{},{index:W})),k.push(r.default.cloneElement(v,{key:"postcloned"+P(v,W),"data-index":W,tabIndex:"-1",className:(0,t.default)(H,J),"aria-hidden":!H["slick-active"],style:$($({},v.props.style||{}),Y),onClick:function(re){v.props&&v.props.onClick&&v.props.onClick(re),E.focusOnSelect&&E.focusOnSelect(C)}}))}}),E.rtl?q.concat(B,k).reverse():q.concat(B,k)};return Zl.Track=function(D){p(W,D);var E=y(W);function W(){var B;c(this,W);for(var q=arguments.length,k=new Array(q),G=0;G<q;G++)k[G]=arguments[G];return B=E.call.apply(E,[this].concat(k)),V(T(B),"node",null),V(T(B),"handleRef",function(L){B.node=L}),B}return h(W,[{key:"render",value:function(){var q=F(this.props),k=this.props,G=k.onMouseEnter,L=k.onMouseOver,b=k.onMouseLeave,te={onMouseEnter:G,onMouseOver:L,onMouseLeave:b};return r.default.createElement("div",u({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},te),q)}}]),W}(r.default.PureComponent),Zl}var Kl={},M1;function y4(){if(M1)return Kl;M1=1;function r(A){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},r(A)}Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.Dots=void 0;var t=o(Cn()),a=o(Co()),l=Do();function o(A){return A&&A.__esModule?A:{default:A}}function u(A,M){var P=Object.keys(A);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(A);M&&(F=F.filter(function(D){return Object.getOwnPropertyDescriptor(A,D).enumerable})),P.push.apply(P,F)}return P}function c(A){for(var M=1;M<arguments.length;M++){var P=arguments[M]!=null?arguments[M]:{};M%2?u(Object(P),!0).forEach(function(F){d(A,F,P[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(P)):u(Object(P)).forEach(function(F){Object.defineProperty(A,F,Object.getOwnPropertyDescriptor(P,F))})}return A}function d(A,M,P){return M=y(M),M in A?Object.defineProperty(A,M,{value:P,enumerable:!0,configurable:!0,writable:!0}):A[M]=P,A}function h(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}function p(A,M){for(var P=0;P<M.length;P++){var F=M[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(A,y(F.key),F)}}function m(A,M,P){return M&&p(A.prototype,M),Object.defineProperty(A,"prototype",{writable:!1}),A}function y(A){var M=x(A,"string");return r(M)=="symbol"?M:String(M)}function x(A,M){if(r(A)!="object"||!A)return A;var P=A[Symbol.toPrimitive];if(P!==void 0){var F=P.call(A,M);if(r(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}function T(A,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),M&&N(A,M)}function N(A,M){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,D){return F.__proto__=D,F},N(A,M)}function _(A){var M=V();return function(){var F=I(A),D;if(M){var E=I(this).constructor;D=Reflect.construct(F,arguments,E)}else D=F.apply(this,arguments);return z(this,D)}}function z(A,M){if(M&&(r(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $(A)}function $(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function V(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V=function(){return!!A})()}function I(A){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},I(A)}var Q=function(M){var P;return M.infinite?P=Math.ceil(M.slideCount/M.slidesToScroll):P=Math.ceil((M.slideCount-M.slidesToShow)/M.slidesToScroll)+1,P};return Kl.Dots=function(A){T(P,A);var M=_(P);function P(){return h(this,P),M.apply(this,arguments)}return m(P,[{key:"clickHandler",value:function(D,E){E.preventDefault(),this.props.clickHandler(D)}},{key:"render",value:function(){for(var D=this.props,E=D.onMouseEnter,W=D.onMouseOver,B=D.onMouseLeave,q=D.infinite,k=D.slidesToScroll,G=D.slidesToShow,L=D.slideCount,b=D.currentSlide,te=Q({slideCount:L,slidesToScroll:k,slidesToShow:G,infinite:q}),R={onMouseEnter:E,onMouseOver:W,onMouseLeave:B},v=[],C=0;C<te;C++){var Y=(C+1)*k-1,J=q?Y:(0,l.clamp)(Y,0,L-1),H=J-(k-1),U=q?H:(0,l.clamp)(H,0,L-1),Z=(0,a.default)({"slick-active":q?b>=U&&b<=J:b===U}),re={message:"dots",index:C,slidesToScroll:k,currentSlide:b},ue=this.clickHandler.bind(this,re);v=v.concat(t.default.createElement("li",{key:C,className:Z},t.default.cloneElement(this.props.customPaging(C),{onClick:ue})))}return t.default.cloneElement(this.props.appendDots(v),c({className:this.props.dotsClass},R))}}]),P}(t.default.PureComponent),Kl}var Ma={},N1;function b4(){if(N1)return Ma;N1=1;function r(A){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},r(A)}Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.PrevArrow=Ma.NextArrow=void 0;var t=o(Cn()),a=o(Co()),l=Do();function o(A){return A&&A.__esModule?A:{default:A}}function u(){return u=Object.assign?Object.assign.bind():function(A){for(var M=1;M<arguments.length;M++){var P=arguments[M];for(var F in P)Object.prototype.hasOwnProperty.call(P,F)&&(A[F]=P[F])}return A},u.apply(this,arguments)}function c(A,M){var P=Object.keys(A);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(A);M&&(F=F.filter(function(D){return Object.getOwnPropertyDescriptor(A,D).enumerable})),P.push.apply(P,F)}return P}function d(A){for(var M=1;M<arguments.length;M++){var P=arguments[M]!=null?arguments[M]:{};M%2?c(Object(P),!0).forEach(function(F){h(A,F,P[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(P)):c(Object(P)).forEach(function(F){Object.defineProperty(A,F,Object.getOwnPropertyDescriptor(P,F))})}return A}function h(A,M,P){return M=x(M),M in A?Object.defineProperty(A,M,{value:P,enumerable:!0,configurable:!0,writable:!0}):A[M]=P,A}function p(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}function m(A,M){for(var P=0;P<M.length;P++){var F=M[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(A,x(F.key),F)}}function y(A,M,P){return M&&m(A.prototype,M),Object.defineProperty(A,"prototype",{writable:!1}),A}function x(A){var M=T(A,"string");return r(M)=="symbol"?M:String(M)}function T(A,M){if(r(A)!="object"||!A)return A;var P=A[Symbol.toPrimitive];if(P!==void 0){var F=P.call(A,M);if(r(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}function N(A,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),M&&_(A,M)}function _(A,M){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,D){return F.__proto__=D,F},_(A,M)}function z(A){var M=I();return function(){var F=Q(A),D;if(M){var E=Q(this).constructor;D=Reflect.construct(F,arguments,E)}else D=F.apply(this,arguments);return $(this,D)}}function $(A,M){if(M&&(r(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V(A)}function V(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function I(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I=function(){return!!A})()}function Q(A){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},Q(A)}return Ma.PrevArrow=function(A){N(P,A);var M=z(P);function P(){return p(this,P),M.apply(this,arguments)}return y(P,[{key:"clickHandler",value:function(D,E){E&&E.preventDefault(),this.props.clickHandler(D,E)}},{key:"render",value:function(){var D={"slick-arrow":!0,"slick-prev":!0},E=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(D["slick-disabled"]=!0,E=null);var W={key:"0","data-role":"none",className:(0,a.default)(D),style:{display:"block"},onClick:E},B={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},q;return this.props.prevArrow?q=t.default.cloneElement(this.props.prevArrow,d(d({},W),B)):q=t.default.createElement("button",u({key:"0",type:"button"},W)," ","Previous"),q}}]),P}(t.default.PureComponent),Ma.NextArrow=function(A){N(P,A);var M=z(P);function P(){return p(this,P),M.apply(this,arguments)}return y(P,[{key:"clickHandler",value:function(D,E){E&&E.preventDefault(),this.props.clickHandler(D,E)}},{key:"render",value:function(){var D={"slick-arrow":!0,"slick-next":!0},E=this.clickHandler.bind(this,{message:"next"});(0,l.canGoNext)(this.props)||(D["slick-disabled"]=!0,E=null);var W={key:"1","data-role":"none",className:(0,a.default)(D),style:{display:"block"},onClick:E},B={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},q;return this.props.nextArrow?q=t.default.cloneElement(this.props.nextArrow,d(d({},W),B)):q=t.default.createElement("button",u({key:"1",type:"button"},W)," ","Next"),q}}]),P}(t.default.PureComponent),Ma}var WO=function(){if(typeof Map<"u")return Map;function r(t,a){var l=-1;return t.some(function(o,u){return o[0]===a?(l=u,!0):!1}),l}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(a){var l=r(this.__entries__,a),o=this.__entries__[l];return o&&o[1]},t.prototype.set=function(a,l){var o=r(this.__entries__,a);~o?this.__entries__[o][1]=l:this.__entries__.push([a,l])},t.prototype.delete=function(a){var l=this.__entries__,o=r(l,a);~o&&l.splice(o,1)},t.prototype.has=function(a){return!!~r(this.__entries__,a)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(a,l){l===void 0&&(l=null);for(var o=0,u=this.__entries__;o<u.length;o++){var c=u[o];a.call(l,c[1],c[0])}},t}()}(),qp=typeof window<"u"&&typeof document<"u"&&window.document===document,pu=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),S4=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(pu):function(r){return setTimeout(function(){return r(Date.now())},1e3/60)}}(),w4=2;function x4(r,t){var a=!1,l=!1,o=0;function u(){a&&(a=!1,r()),l&&d()}function c(){S4(u)}function d(){var h=Date.now();if(a){if(h-o<w4)return;l=!0}else a=!0,l=!1,setTimeout(c,t);o=h}return d}var O4=20,E4=["top","right","bottom","left","width","height","size","weight"],T4=typeof MutationObserver<"u",C4=function(){function r(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=x4(this.refresh.bind(this),O4)}return r.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},r.prototype.removeObserver=function(t){var a=this.observers_,l=a.indexOf(t);~l&&a.splice(l,1),!a.length&&this.connected_&&this.disconnect_()},r.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},r.prototype.updateObservers_=function(){var t=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return t.forEach(function(a){return a.broadcastActive()}),t.length>0},r.prototype.connect_=function(){!qp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),T4?(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)},r.prototype.disconnect_=function(){!qp||!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)},r.prototype.onTransitionEnd_=function(t){var a=t.propertyName,l=a===void 0?"":a,o=E4.some(function(u){return!!~l.indexOf(u)});o&&this.refresh()},r.getInstance=function(){return this.instance_||(this.instance_=new r),this.instance_},r.instance_=null,r}(),FO=function(r,t){for(var a=0,l=Object.keys(t);a<l.length;a++){var o=l[a];Object.defineProperty(r,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return r},Ni=function(r){var t=r&&r.ownerDocument&&r.ownerDocument.defaultView;return t||pu},QO=Mu(0,0,0,0);function gu(r){return parseFloat(r)||0}function D1(r){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return t.reduce(function(l,o){var u=r["border-"+o+"-width"];return l+gu(u)},0)}function R4(r){for(var t=["top","right","bottom","left"],a={},l=0,o=t;l<o.length;l++){var u=o[l],c=r["padding-"+u];a[u]=gu(c)}return a}function _4(r){var t=r.getBBox();return Mu(0,0,t.width,t.height)}function j4(r){var t=r.clientWidth,a=r.clientHeight;if(!t&&!a)return QO;var l=Ni(r).getComputedStyle(r),o=R4(l),u=o.left+o.right,c=o.top+o.bottom,d=gu(l.width),h=gu(l.height);if(l.boxSizing==="border-box"&&(Math.round(d+u)!==t&&(d-=D1(l,"left","right")+u),Math.round(h+c)!==a&&(h-=D1(l,"top","bottom")+c)),!M4(r)){var p=Math.round(d+u)-t,m=Math.round(h+c)-a;Math.abs(p)!==1&&(d-=p),Math.abs(m)!==1&&(h-=m)}return Mu(o.left,o.top,d,h)}var A4=function(){return typeof SVGGraphicsElement<"u"?function(r){return r instanceof Ni(r).SVGGraphicsElement}:function(r){return r instanceof Ni(r).SVGElement&&typeof r.getBBox=="function"}}();function M4(r){return r===Ni(r).document.documentElement}function N4(r){return qp?A4(r)?_4(r):j4(r):QO}function D4(r){var t=r.x,a=r.y,l=r.width,o=r.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(u.prototype);return FO(c,{x:t,y:a,width:l,height:o,top:a,right:t+l,bottom:o+a,left:t}),c}function Mu(r,t,a,l){return{x:r,y:t,width:a,height:l}}var L4=function(){function r(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Mu(0,0,0,0),this.target=t}return r.prototype.isActive=function(){var t=N4(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},r.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},r}(),z4=function(){function r(t,a){var l=D4(a);FO(this,{target:t,contentRect:l})}return r}(),P4=function(){function r(t,a,l){if(this.activeObservations_=[],this.observations_=new WO,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=a,this.callbackCtx_=l}return r.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ni(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)||(a.set(t,new L4(t)),this.controller_.addObserver(this),this.controller_.refresh())}},r.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ni(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)&&(a.delete(t),a.size||this.controller_.removeObserver(this))}},r.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},r.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&t.activeObservations_.push(a)})},r.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,a=this.activeObservations_.map(function(l){return new z4(l.target,l.broadcastRect())});this.callback_.call(t,a,t),this.clearActive()}},r.prototype.clearActive=function(){this.activeObservations_.splice(0)},r.prototype.hasActive=function(){return this.activeObservations_.length>0},r}(),ZO=typeof WeakMap<"u"?new WeakMap:new WO,KO=function(){function r(t){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=C4.getInstance(),l=new P4(t,a,this);ZO.set(this,l)}return r}();["observe","unobserve","disconnect"].forEach(function(r){KO.prototype[r]=function(){var t;return(t=ZO.get(this))[r].apply(t,arguments)}});var H4=function(){return typeof pu.ResizeObserver<"u"?pu.ResizeObserver:KO}();const k4=Object.freeze(Object.defineProperty({__proto__:null,default:H4},Symbol.toStringTag,{value:"Module"})),B4=X1(k4);var L1;function $4(){if(L1)return Ql;L1=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.InnerSlider=void 0;var r=p(Cn()),t=p(g4()),a=p(m4()),l=p(Co()),o=Do(),u=v4(),c=y4(),d=b4(),h=p(B4);function p(q){return q&&q.__esModule?q:{default:q}}function m(q){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},m(q)}function y(){return y=Object.assign?Object.assign.bind():function(q){for(var k=1;k<arguments.length;k++){var G=arguments[k];for(var L in G)Object.prototype.hasOwnProperty.call(G,L)&&(q[L]=G[L])}return q},y.apply(this,arguments)}function x(q,k){if(q==null)return{};var G=T(q,k),L,b;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(q);for(b=0;b<te.length;b++)L=te[b],!(k.indexOf(L)>=0)&&Object.prototype.propertyIsEnumerable.call(q,L)&&(G[L]=q[L])}return G}function T(q,k){if(q==null)return{};var G={},L=Object.keys(q),b,te;for(te=0;te<L.length;te++)b=L[te],!(k.indexOf(b)>=0)&&(G[b]=q[b]);return G}function N(q,k){var G=Object.keys(q);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(q);k&&(L=L.filter(function(b){return Object.getOwnPropertyDescriptor(q,b).enumerable})),G.push.apply(G,L)}return G}function _(q){for(var k=1;k<arguments.length;k++){var G=arguments[k]!=null?arguments[k]:{};k%2?N(Object(G),!0).forEach(function(L){E(q,L,G[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(G)):N(Object(G)).forEach(function(L){Object.defineProperty(q,L,Object.getOwnPropertyDescriptor(G,L))})}return q}function z(q,k){if(!(q instanceof k))throw new TypeError("Cannot call a class as a function")}function $(q,k){for(var G=0;G<k.length;G++){var L=k[G];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(q,W(L.key),L)}}function V(q,k,G){return k&&$(q.prototype,k),Object.defineProperty(q,"prototype",{writable:!1}),q}function I(q,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(k&&k.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),k&&Q(q,k)}function Q(q,k){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,b){return L.__proto__=b,L},Q(q,k)}function A(q){var k=F();return function(){var L=D(q),b;if(k){var te=D(this).constructor;b=Reflect.construct(L,arguments,te)}else b=L.apply(this,arguments);return M(this,b)}}function M(q,k){if(k&&(m(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(q)}function P(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}function F(){try{var q=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F=function(){return!!q})()}function D(q){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},D(q)}function E(q,k,G){return k=W(k),k in q?Object.defineProperty(q,k,{value:G,enumerable:!0,configurable:!0,writable:!0}):q[k]=G,q}function W(q){var k=B(q,"string");return m(k)=="symbol"?k:String(k)}function B(q,k){if(m(q)!="object"||!q)return q;var G=q[Symbol.toPrimitive];if(G!==void 0){var L=G.call(q,k);if(m(L)!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(q)}return Ql.InnerSlider=function(q){I(G,q);var k=A(G);function G(L){var b;z(this,G),b=k.call(this,L),E(P(b),"listRefHandler",function(R){return b.list=R}),E(P(b),"trackRefHandler",function(R){return b.track=R}),E(P(b),"adaptHeight",function(){if(b.props.adaptiveHeight&&b.list){var R=b.list.querySelector('[data-index="'.concat(b.state.currentSlide,'"]'));b.list.style.height=(0,o.getHeight)(R)+"px"}}),E(P(b),"componentDidMount",function(){if(b.props.onInit&&b.props.onInit(),b.props.lazyLoad){var R=(0,o.getOnDemandLazySlides)(_(_({},b.props),b.state));R.length>0&&(b.setState(function(C){return{lazyLoadedList:C.lazyLoadedList.concat(R)}}),b.props.onLazyLoad&&b.props.onLazyLoad(R))}var v=_({listRef:b.list,trackRef:b.track},b.props);b.updateState(v,!0,function(){b.adaptHeight(),b.props.autoplay&&b.autoPlay("update")}),b.props.lazyLoad==="progressive"&&(b.lazyLoadTimer=setInterval(b.progressiveLazyLoad,1e3)),b.ro=new h.default(function(){b.state.animating?(b.onWindowResized(!1),b.callbackTimers.push(setTimeout(function(){return b.onWindowResized()},b.props.speed))):b.onWindowResized()}),b.ro.observe(b.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(C){C.onfocus=b.props.pauseOnFocus?b.onSlideFocus:null,C.onblur=b.props.pauseOnFocus?b.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",b.onWindowResized):window.attachEvent("onresize",b.onWindowResized)}),E(P(b),"componentWillUnmount",function(){b.animationEndCallback&&clearTimeout(b.animationEndCallback),b.lazyLoadTimer&&clearInterval(b.lazyLoadTimer),b.callbackTimers.length&&(b.callbackTimers.forEach(function(R){return clearTimeout(R)}),b.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",b.onWindowResized):window.detachEvent("onresize",b.onWindowResized),b.autoplayTimer&&clearInterval(b.autoplayTimer),b.ro.disconnect()}),E(P(b),"componentDidUpdate",function(R){if(b.checkImagesLoad(),b.props.onReInit&&b.props.onReInit(),b.props.lazyLoad){var v=(0,o.getOnDemandLazySlides)(_(_({},b.props),b.state));v.length>0&&(b.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(v)}}),b.props.onLazyLoad&&b.props.onLazyLoad(v))}b.adaptHeight();var C=_(_({listRef:b.list,trackRef:b.track},b.props),b.state),Y=b.didPropsChange(R);Y&&b.updateState(C,Y,function(){b.state.currentSlide>=r.default.Children.count(b.props.children)&&b.changeSlide({message:"index",index:r.default.Children.count(b.props.children)-b.props.slidesToShow,currentSlide:b.state.currentSlide}),b.props.autoplay?b.autoPlay("update"):b.pause("paused")})}),E(P(b),"onWindowResized",function(R){b.debouncedResize&&b.debouncedResize.cancel(),b.debouncedResize=(0,a.default)(function(){return b.resizeWindow(R)},50),b.debouncedResize()}),E(P(b),"resizeWindow",function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=!!(b.track&&b.track.node);if(v){var C=_(_({listRef:b.list,trackRef:b.track},b.props),b.state);b.updateState(C,R,function(){b.props.autoplay?b.autoPlay("update"):b.pause("paused")}),b.setState({animating:!1}),clearTimeout(b.animationEndCallback),delete b.animationEndCallback}}),E(P(b),"updateState",function(R,v,C){var Y=(0,o.initializedState)(R);R=_(_(_({},R),Y),{},{slideIndex:Y.currentSlide});var J=(0,o.getTrackLeft)(R);R=_(_({},R),{},{left:J});var H=(0,o.getTrackCSS)(R);(v||r.default.Children.count(b.props.children)!==r.default.Children.count(R.children))&&(Y.trackStyle=H),b.setState(Y,C)}),E(P(b),"ssrInit",function(){if(b.props.variableWidth){var R=0,v=0,C=[],Y=(0,o.getPreClones)(_(_(_({},b.props),b.state),{},{slideCount:b.props.children.length})),J=(0,o.getPostClones)(_(_(_({},b.props),b.state),{},{slideCount:b.props.children.length}));b.props.children.forEach(function(Re){C.push(Re.props.style.width),R+=Re.props.style.width});for(var H=0;H<Y;H++)v+=C[C.length-1-H],R+=C[C.length-1-H];for(var U=0;U<J;U++)R+=C[U];for(var Z=0;Z<b.state.currentSlide;Z++)v+=C[Z];var re={width:R+"px",left:-v+"px"};if(b.props.centerMode){var ue="".concat(C[b.state.currentSlide],"px");re.left="calc(".concat(re.left," + (100% - ").concat(ue,") / 2 ) ")}return{trackStyle:re}}var ge=r.default.Children.count(b.props.children),pe=_(_(_({},b.props),b.state),{},{slideCount:ge}),ve=(0,o.getPreClones)(pe)+(0,o.getPostClones)(pe)+ge,he=100/b.props.slidesToShow*ve,me=100/ve,Se=-me*((0,o.getPreClones)(pe)+b.state.currentSlide)*he/100;b.props.centerMode&&(Se+=(100-me*he/100)/2);var ye={width:he+"%",left:Se+"%"};return{slideWidth:me+"%",trackStyle:ye}}),E(P(b),"checkImagesLoad",function(){var R=b.list&&b.list.querySelectorAll&&b.list.querySelectorAll(".slick-slide img")||[],v=R.length,C=0;Array.prototype.forEach.call(R,function(Y){var J=function(){return++C&&C>=v&&b.onWindowResized()};if(!Y.onclick)Y.onclick=function(){return Y.parentNode.focus()};else{var H=Y.onclick;Y.onclick=function(U){H(U),Y.parentNode.focus()}}Y.onload||(b.props.lazyLoad?Y.onload=function(){b.adaptHeight(),b.callbackTimers.push(setTimeout(b.onWindowResized,b.props.speed))}:(Y.onload=J,Y.onerror=function(){J(),b.props.onLazyLoadError&&b.props.onLazyLoadError()}))})}),E(P(b),"progressiveLazyLoad",function(){for(var R=[],v=_(_({},b.props),b.state),C=b.state.currentSlide;C<b.state.slideCount+(0,o.getPostClones)(v);C++)if(b.state.lazyLoadedList.indexOf(C)<0){R.push(C);break}for(var Y=b.state.currentSlide-1;Y>=-(0,o.getPreClones)(v);Y--)if(b.state.lazyLoadedList.indexOf(Y)<0){R.push(Y);break}R.length>0?(b.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(R)}}),b.props.onLazyLoad&&b.props.onLazyLoad(R)):b.lazyLoadTimer&&(clearInterval(b.lazyLoadTimer),delete b.lazyLoadTimer)}),E(P(b),"slideHandler",function(R){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=b.props,Y=C.asNavFor,J=C.beforeChange,H=C.onLazyLoad,U=C.speed,Z=C.afterChange,re=b.state.currentSlide,ue=(0,o.slideHandler)(_(_(_({index:R},b.props),b.state),{},{trackRef:b.track,useCSS:b.props.useCSS&&!v})),ge=ue.state,pe=ue.nextState;if(ge){J&&J(re,ge.currentSlide);var ve=ge.lazyLoadedList.filter(function(he){return b.state.lazyLoadedList.indexOf(he)<0});H&&ve.length>0&&H(ve),!b.props.waitForAnimate&&b.animationEndCallback&&(clearTimeout(b.animationEndCallback),Z&&Z(re),delete b.animationEndCallback),b.setState(ge,function(){Y&&b.asNavForIndex!==R&&(b.asNavForIndex=R,Y.innerSlider.slideHandler(R)),pe&&(b.animationEndCallback=setTimeout(function(){var he=pe.animating,me=x(pe,["animating"]);b.setState(me,function(){b.callbackTimers.push(setTimeout(function(){return b.setState({animating:he})},10)),Z&&Z(ge.currentSlide),delete b.animationEndCallback})},U))})}}),E(P(b),"changeSlide",function(R){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=_(_({},b.props),b.state),Y=(0,o.changeSlide)(C,R);if(!(Y!==0&&!Y)&&(v===!0?b.slideHandler(Y,v):b.slideHandler(Y),b.props.autoplay&&b.autoPlay("update"),b.props.focusOnSelect)){var J=b.list.querySelectorAll(".slick-current");J[0]&&J[0].focus()}}),E(P(b),"clickHandler",function(R){b.clickable===!1&&(R.stopPropagation(),R.preventDefault()),b.clickable=!0}),E(P(b),"keyHandler",function(R){var v=(0,o.keyHandler)(R,b.props.accessibility,b.props.rtl);v!==""&&b.changeSlide({message:v})}),E(P(b),"selectHandler",function(R){b.changeSlide(R)}),E(P(b),"disableBodyScroll",function(){var R=function(C){C=C||window.event,C.preventDefault&&C.preventDefault(),C.returnValue=!1};window.ontouchmove=R}),E(P(b),"enableBodyScroll",function(){window.ontouchmove=null}),E(P(b),"swipeStart",function(R){b.props.verticalSwiping&&b.disableBodyScroll();var v=(0,o.swipeStart)(R,b.props.swipe,b.props.draggable);v!==""&&b.setState(v)}),E(P(b),"swipeMove",function(R){var v=(0,o.swipeMove)(R,_(_(_({},b.props),b.state),{},{trackRef:b.track,listRef:b.list,slideIndex:b.state.currentSlide}));v&&(v.swiping&&(b.clickable=!1),b.setState(v))}),E(P(b),"swipeEnd",function(R){var v=(0,o.swipeEnd)(R,_(_(_({},b.props),b.state),{},{trackRef:b.track,listRef:b.list,slideIndex:b.state.currentSlide}));if(v){var C=v.triggerSlideHandler;delete v.triggerSlideHandler,b.setState(v),C!==void 0&&(b.slideHandler(C),b.props.verticalSwiping&&b.enableBodyScroll())}}),E(P(b),"touchEnd",function(R){b.swipeEnd(R),b.clickable=!0}),E(P(b),"slickPrev",function(){b.callbackTimers.push(setTimeout(function(){return b.changeSlide({message:"previous"})},0))}),E(P(b),"slickNext",function(){b.callbackTimers.push(setTimeout(function(){return b.changeSlide({message:"next"})},0))}),E(P(b),"slickGoTo",function(R){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R=Number(R),isNaN(R))return"";b.callbackTimers.push(setTimeout(function(){return b.changeSlide({message:"index",index:R,currentSlide:b.state.currentSlide},v)},0))}),E(P(b),"play",function(){var R;if(b.props.rtl)R=b.state.currentSlide-b.props.slidesToScroll;else if((0,o.canGoNext)(_(_({},b.props),b.state)))R=b.state.currentSlide+b.props.slidesToScroll;else return!1;b.slideHandler(R)}),E(P(b),"autoPlay",function(R){b.autoplayTimer&&clearInterval(b.autoplayTimer);var v=b.state.autoplaying;if(R==="update"){if(v==="hovered"||v==="focused"||v==="paused")return}else if(R==="leave"){if(v==="paused"||v==="focused")return}else if(R==="blur"&&(v==="paused"||v==="hovered"))return;b.autoplayTimer=setInterval(b.play,b.props.autoplaySpeed+50),b.setState({autoplaying:"playing"})}),E(P(b),"pause",function(R){b.autoplayTimer&&(clearInterval(b.autoplayTimer),b.autoplayTimer=null);var v=b.state.autoplaying;R==="paused"?b.setState({autoplaying:"paused"}):R==="focused"?(v==="hovered"||v==="playing")&&b.setState({autoplaying:"focused"}):v==="playing"&&b.setState({autoplaying:"hovered"})}),E(P(b),"onDotsOver",function(){return b.props.autoplay&&b.pause("hovered")}),E(P(b),"onDotsLeave",function(){return b.props.autoplay&&b.state.autoplaying==="hovered"&&b.autoPlay("leave")}),E(P(b),"onTrackOver",function(){return b.props.autoplay&&b.pause("hovered")}),E(P(b),"onTrackLeave",function(){return b.props.autoplay&&b.state.autoplaying==="hovered"&&b.autoPlay("leave")}),E(P(b),"onSlideFocus",function(){return b.props.autoplay&&b.pause("focused")}),E(P(b),"onSlideBlur",function(){return b.props.autoplay&&b.state.autoplaying==="focused"&&b.autoPlay("blur")}),E(P(b),"render",function(){var R=(0,l.default)("slick-slider",b.props.className,{"slick-vertical":b.props.vertical,"slick-initialized":!0}),v=_(_({},b.props),b.state),C=(0,o.extractObject)(v,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),Y=b.props.pauseOnHover;C=_(_({},C),{},{onMouseEnter:Y?b.onTrackOver:null,onMouseLeave:Y?b.onTrackLeave:null,onMouseOver:Y?b.onTrackOver:null,focusOnSelect:b.props.focusOnSelect&&b.clickable?b.selectHandler:null});var J;if(b.props.dots===!0&&b.state.slideCount>=b.props.slidesToShow){var H=(0,o.extractObject)(v,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),U=b.props.pauseOnDotsHover;H=_(_({},H),{},{clickHandler:b.changeSlide,onMouseEnter:U?b.onDotsLeave:null,onMouseOver:U?b.onDotsOver:null,onMouseLeave:U?b.onDotsLeave:null}),J=r.default.createElement(c.Dots,H)}var Z,re,ue=(0,o.extractObject)(v,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);ue.clickHandler=b.changeSlide,b.props.arrows&&(Z=r.default.createElement(d.PrevArrow,ue),re=r.default.createElement(d.NextArrow,ue));var ge=null;b.props.vertical&&(ge={height:b.state.listHeight});var pe=null;b.props.vertical===!1?b.props.centerMode===!0&&(pe={padding:"0px "+b.props.centerPadding}):b.props.centerMode===!0&&(pe={padding:b.props.centerPadding+" 0px"});var ve=_(_({},ge),pe),he=b.props.touchMove,me={className:"slick-list",style:ve,onClick:b.clickHandler,onMouseDown:he?b.swipeStart:null,onMouseMove:b.state.dragging&&he?b.swipeMove:null,onMouseUp:he?b.swipeEnd:null,onMouseLeave:b.state.dragging&&he?b.swipeEnd:null,onTouchStart:he?b.swipeStart:null,onTouchMove:b.state.dragging&&he?b.swipeMove:null,onTouchEnd:he?b.touchEnd:null,onTouchCancel:b.state.dragging&&he?b.swipeEnd:null,onKeyDown:b.props.accessibility?b.keyHandler:null},Se={className:R,dir:"ltr",style:b.props.style};return b.props.unslick&&(me={className:"slick-list"},Se={className:R}),r.default.createElement("div",Se,b.props.unslick?"":Z,r.default.createElement("div",y({ref:b.listRefHandler},me),r.default.createElement(u.Track,y({ref:b.trackRefHandler},C),b.props.children)),b.props.unslick?"":re,b.props.unslick?"":J)}),b.list=null,b.track=null,b.state=_(_({},t.default),{},{currentSlide:b.props.initialSlide,targetSlide:b.props.initialSlide?b.props.initialSlide:0,slideCount:r.default.Children.count(b.props.children)}),b.callbackTimers=[],b.clickable=!0,b.debouncedResize=null;var te=b.ssrInit();return b.state=_(_({},b.state),te),b}return V(G,[{key:"didPropsChange",value:function(b){for(var te=!1,R=0,v=Object.keys(this.props);R<v.length;R++){var C=v[R];if(!b.hasOwnProperty(C)){te=!0;break}if(!(m(b[C])==="object"||typeof b[C]=="function"||isNaN(b[C]))&&b[C]!==this.props[C]){te=!0;break}}return te||r.default.Children.count(this.props.children)!==r.default.Children.count(b.children)}}]),G}(r.default.Component),Ql}var hp,z1;function I4(){if(z1)return hp;z1=1;var r=function(t){return t.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}).toLowerCase()};return hp=r,hp}var pp,P1;function q4(){if(P1)return pp;P1=1;var r=I4(),t=function(o){var u=/[height|width]$/;return u.test(o)},a=function(o){var u="",c=Object.keys(o);return c.forEach(function(d,h){var p=o[d];d=r(d),t(d)&&typeof p=="number"&&(p=p+"px"),p===!0?u+=d:p===!1?u+="not "+d:u+="("+d+": "+p+")",h<c.length-1&&(u+=" and ")}),u},l=function(o){var u="";return typeof o=="string"?o:o instanceof Array?(o.forEach(function(c,d){u+=a(c),d<o.length-1&&(u+=", ")}),u):a(o)};return pp=l,pp}var gp,H1;function U4(){if(H1)return gp;H1=1;function r(t){this.options=t,!t.deferSetup&&this.setup()}return r.prototype={constructor:r,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},gp=r,gp}var mp,k1;function JO(){if(k1)return mp;k1=1;function r(l,o){var u=0,c=l.length,d;for(u;u<c&&(d=o(l[u],u),d!==!1);u++);}function t(l){return Object.prototype.toString.apply(l)==="[object Array]"}function a(l){return typeof l=="function"}return mp={isFunction:a,isArray:t,each:r},mp}var vp,B1;function G4(){if(B1)return vp;B1=1;var r=U4(),t=JO().each;function a(l,o){this.query=l,this.isUnconditional=o,this.handlers=[],this.mql=window.matchMedia(l);var u=this;this.listener=function(c){u.mql=c.currentTarget||c,u.assess()},this.mql.addListener(this.listener)}return a.prototype={constuctor:a,addHandler:function(l){var o=new r(l);this.handlers.push(o),this.matches()&&o.on()},removeHandler:function(l){var o=this.handlers;t(o,function(u,c){if(u.equals(l))return u.destroy(),!o.splice(c,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(l){l.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var l=this.matches()?"on":"off";t(this.handlers,function(o){o[l]()})}},vp=a,vp}var yp,$1;function V4(){if($1)return yp;$1=1;var r=G4(),t=JO(),a=t.each,l=t.isFunction,o=t.isArray;function u(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return u.prototype={constructor:u,register:function(c,d,h){var p=this.queries,m=h&&this.browserIsIncapable;return p[c]||(p[c]=new r(c,m)),l(d)&&(d={match:d}),o(d)||(d=[d]),a(d,function(y){l(y)&&(y={match:y}),p[c].addHandler(y)}),this},unregister:function(c,d){var h=this.queries[c];return h&&(d?h.removeHandler(d):(h.clear(),delete this.queries[c])),this}},yp=u,yp}var bp,I1;function Y4(){if(I1)return bp;I1=1;var r=V4();return bp=new r,bp}var q1;function X4(){return q1||(q1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=c(Cn()),a=$4(),l=c(q4()),o=c(XO()),u=Do();function c(D){return D&&D.__esModule?D:{default:D}}function d(D){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},d(D)}function h(){return h=Object.assign?Object.assign.bind():function(D){for(var E=1;E<arguments.length;E++){var W=arguments[E];for(var B in W)Object.prototype.hasOwnProperty.call(W,B)&&(D[B]=W[B])}return D},h.apply(this,arguments)}function p(D,E){var W=Object.keys(D);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(D);E&&(B=B.filter(function(q){return Object.getOwnPropertyDescriptor(D,q).enumerable})),W.push.apply(W,B)}return W}function m(D){for(var E=1;E<arguments.length;E++){var W=arguments[E]!=null?arguments[E]:{};E%2?p(Object(W),!0).forEach(function(B){A(D,B,W[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(W)):p(Object(W)).forEach(function(B){Object.defineProperty(D,B,Object.getOwnPropertyDescriptor(W,B))})}return D}function y(D,E){if(!(D instanceof E))throw new TypeError("Cannot call a class as a function")}function x(D,E){for(var W=0;W<E.length;W++){var B=E[W];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(D,M(B.key),B)}}function T(D,E,W){return E&&x(D.prototype,E),Object.defineProperty(D,"prototype",{writable:!1}),D}function N(D,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(E&&E.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),E&&_(D,E)}function _(D,E){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,q){return B.__proto__=q,B},_(D,E)}function z(D){var E=I();return function(){var B=Q(D),q;if(E){var k=Q(this).constructor;q=Reflect.construct(B,arguments,k)}else q=B.apply(this,arguments);return $(this,q)}}function $(D,E){if(E&&(d(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V(D)}function V(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function I(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I=function(){return!!D})()}function Q(D){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)},Q(D)}function A(D,E,W){return E=M(E),E in D?Object.defineProperty(D,E,{value:W,enumerable:!0,configurable:!0,writable:!0}):D[E]=W,D}function M(D){var E=P(D,"string");return d(E)=="symbol"?E:String(E)}function P(D,E){if(d(D)!="object"||!D)return D;var W=D[Symbol.toPrimitive];if(W!==void 0){var B=W.call(D,E);if(d(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(D)}var F=(0,u.canUseDOM)()&&Y4();r.default=function(D){N(W,D);var E=z(W);function W(B){var q;return y(this,W),q=E.call(this,B),A(V(q),"innerSliderRefHandler",function(k){return q.innerSlider=k}),A(V(q),"slickPrev",function(){return q.innerSlider.slickPrev()}),A(V(q),"slickNext",function(){return q.innerSlider.slickNext()}),A(V(q),"slickGoTo",function(k){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return q.innerSlider.slickGoTo(k,G)}),A(V(q),"slickPause",function(){return q.innerSlider.pause("paused")}),A(V(q),"slickPlay",function(){return q.innerSlider.autoPlay("play")}),q.state={breakpoint:null},q._responsiveMediaHandlers=[],q}return T(W,[{key:"media",value:function(q,k){F.register(q,k),this._responsiveMediaHandlers.push({query:q,handler:k})}},{key:"componentDidMount",value:function(){var q=this;if(this.props.responsive){var k=this.props.responsive.map(function(L){return L.breakpoint});k.sort(function(L,b){return L-b}),k.forEach(function(L,b){var te;b===0?te=(0,l.default)({minWidth:0,maxWidth:L}):te=(0,l.default)({minWidth:k[b-1]+1,maxWidth:L}),(0,u.canUseDOM)()&&q.media(te,function(){q.setState({breakpoint:L})})});var G=(0,l.default)({minWidth:k.slice(-1)[0]});(0,u.canUseDOM)()&&this.media(G,function(){q.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(q){F.unregister(q.query,q.handler)})}},{key:"render",value:function(){var q=this,k,G;this.state.breakpoint?(G=this.props.responsive.filter(function(U){return U.breakpoint===q.state.breakpoint}),k=G[0].settings==="unslick"?"unslick":m(m(m({},o.default),this.props),G[0].settings)):k=m(m({},o.default),this.props),k.centerMode&&(k.slidesToScroll>1,k.slidesToScroll=1),k.fade&&(k.slidesToShow>1,k.slidesToScroll>1,k.slidesToShow=1,k.slidesToScroll=1);var L=t.default.Children.toArray(this.props.children);L=L.filter(function(U){return typeof U=="string"?!!U.trim():!!U}),k.variableWidth&&(k.rows>1||k.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),k.variableWidth=!1);for(var b=[],te=null,R=0;R<L.length;R+=k.rows*k.slidesPerRow){for(var v=[],C=R;C<R+k.rows*k.slidesPerRow;C+=k.slidesPerRow){for(var Y=[],J=C;J<C+k.slidesPerRow&&(k.variableWidth&&L[J].props.style&&(te=L[J].props.style.width),!(J>=L.length));J+=1)Y.push(t.default.cloneElement(L[J],{key:100*R+10*C+J,tabIndex:-1,style:{width:"".concat(100/k.slidesPerRow,"%"),display:"inline-block"}}));v.push(t.default.createElement("div",{key:10*R+C},Y))}k.variableWidth?b.push(t.default.createElement("div",{key:R,style:{width:te}},v)):b.push(t.default.createElement("div",{key:R},v))}if(k==="unslick"){var H="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:H},L)}else b.length<=k.slidesToShow&&!k.infinite&&(k.unslick=!0);return t.default.createElement(a.InnerSlider,h({style:this.props.style,ref:this.innerSliderRefHandler},(0,u.filterSettings)(k)),b)}}]),W}(t.default.Component)}(up)),up}var U1;function W4(){return U1||(U1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=a(X4());function a(l){return l&&l.__esModule?l:{default:l}}r.default=t.default}(sp)),sp}var F4=W4();const Q4=Jn(F4);function G1(r){const{type:t,className:a,style:l,onClick:o}=r,u=t==="prev"?"chevron_left":"chevron_right";return S.jsx(Qt,{className:`slider-arrow slider-arrow--${t} rounded-circle ${a||""}`,style:l,onClick:o,variant:"primary",children:S.jsx("span",{className:"slider-arrow__icon material-icons",children:u})})}const V1=300;function Z4(){const{id:r}=jr(),{api:t}=_n(),[a,l]=w.useState(null),o=w.useRef(null),[u,c]=w.useState(null);w.useEffect(()=>{const h=new ResizeObserver(p=>{const{width:m}=p[0].contentRect;c(m)});return o.current&&h.observe(o.current),()=>h.disconnect()},[]),w.useEffect(()=>{if(!r)return;const h=new AbortController;return(async()=>{const p=await t.getCampaign({id:r});h.signal.aborted||l(p)})(),()=>h.abort()},[t,r]);const d=w.useMemo(()=>{if(!a||!u)return null;const h=Math.floor(u/V1),p=a.rewards.reduce((m,y)=>{const x=y.id==="-1",T=y.amount&&y.amount.startsWith("0 ");return!x&&!T&&m.push(y),m},[]);return p.length===0?null:h>=p.length?S.jsxs(S.Fragment,{children:[S.jsx("h4",{className:"mb-3",children:"Tiers"}),S.jsx(Ne,{direction:"horizontal",className:"justify-content-center align-items-stretch mb-5",gap:3,children:p.map(m=>S.jsx("div",{style:{width:`${V1}px`},children:S.jsx(T1,{reward:m})}))})]}):S.jsxs(S.Fragment,{children:[S.jsx("h4",{className:"mb-3",children:"Tiers"}),S.jsx(Q4,{className:"slider--h100 mb-5",dots:!0,speed:500,slidesToShow:h,slidesToScroll:1,swipeToSlide:!0,dotsClass:"slick-dots slider__dots",prevArrow:S.jsx(G1,{type:"prev"}),nextArrow:S.jsx(G1,{type:"next"}),children:p.map(m=>S.jsx("div",{className:"px-1",children:S.jsx(T1,{reward:m})}))})]})},[a,u]);return S.jsxs(Ne,{ref:o,className:"w-100",children:[d,a?S.jsx("div",{className:"mb-4",dangerouslySetInnerHTML:{__html:a.summary||""}}):null]})}function K4(){const{id:r}=jr(),t=Vp(),{api:a}=_n(),[l,o]=w.useState(null);return w.useEffect(()=>{if(!r)return;const u=new AbortController;return(async()=>{const c=await a.getCampaign({id:r,withCounts:!0});u.signal.aborted||o(c)})(),()=>u.abort()},[a,r]),w.useEffect(()=>{l&&(async()=>{let u="";l.postCount>0?u="posts":l.productCount>0?u="shop":l.mediaCount>0?u="media":u="about",await t(`/campaigns/${l.id}/${u}`,{replace:!0})})()},[a,l,t]),null}function J4(r){return Reflect.has(r,"replies")}function eN(r){var a;const{comment:t}=r;return S.jsxs(Ne,{children:[S.jsxs(Ne,{direction:"horizontal",className:"mb-2",gap:3,children:[S.jsxs("div",{children:[S.jsx("span",{className:"fw-bolder me-2",children:((a=t.commenter)==null?void 0:a.fullName)||""}),t.isByCreator?S.jsx(Ii,{bg:"secondary",children:"CREATOR"}):null]}),S.jsx("span",{className:"text-body-secondary",children:t.createdAt?new Date(t.createdAt).toLocaleString():""})]}),S.jsx("div",{children:t.body}),J4(t)&&t.replies.length>0?S.jsx("div",{className:"border-start border-secondary mt-2 mb-1 pt-3 pb-2",style:{paddingLeft:"1em"},children:S.jsx(eE,{comments:t.replies})}):null]})}function eE(r){const{comments:t}=r;if(t.length===0)return null;const a=t.map(l=>S.jsx(eN,{comment:l}));return S.jsx(Ne,{gap:4,children:a})}const tN=["post_types","is_viewable","tier_ids","collection_id","sort_by","date_published","search","tag_id"];function Y1(){const r=new URL(window.location.href).searchParams,t=new URLSearchParams;for(const a of tN)r.has(a)&&t.set(a,r.get(a));return t.toString()}const nN=(r,t)=>r&&t&&r.id===t.id?r:t,Sp=w.forwardRef(({children:r,...t},a)=>S.jsx(On,{fluid:!0,ref:a,...t,children:S.jsx(St,{className:"justify-content-center",children:S.jsx(st,{lg:8,md:10,sm:12,className:"p-0",style:{maxWidth:"40.5em"},children:r})})}));function rN(){const{id:r}=jr(),{api:t}=_n(),{scrollTo:a}=No(),[l,o]=w.useReducer(nN,null),[u,c]=w.useState({previous:null,next:null}),d=w.useRef(null),h=w.useRef(null),p=w.useRef(null),[m,y]=w.useState(!1);w.useEffect(()=>{if(!r)return;const N=new AbortController;return(async()=>{const{post:_,previous:z,next:$}=await t.getPost(r,Y1());N.signal.aborted||(o(_),c({previous:z,next:$}))})(),()=>N.abort()},[t,r]);const x=w.useCallback(()=>{if(!u.previous&&!u.next)return;let N=72;const _=window.innerHeight;if(d.current){const z=d.current.getBoundingClientRect();N+=z.bottom}h.current&&(N+=h.current.scrollHeight),y(N>_)},[u,r]);w.useEffect(()=>(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]);const T=w.useMemo(()=>{const{previous:N,next:_}=u,z=Y1(),$=N?S.jsx(lu,{to:`/posts/${N.id}${z?"?"+z:""}`,className:`post-nav__previous ${_?"":"post-nav__previous--fill"}`,onClick:()=>{c({previous:null,next:null}),a(0,0),o(N)},children:S.jsx("div",{className:"post-nav__previous-label",children:N.title})}):null,V=_?S.jsx(lu,{to:`/posts/${_.id}${z?"?"+z:""}`,className:`post-nav__next ${N?"":"post-nav__next--fill"}`,onClick:()=>{c({previous:null,next:null}),a(0,0),o(_)},children:S.jsx("div",{className:"post-nav__next-label",children:_.title})}):null;if($||V){const I=N&&_?"justify-content-between":_?"justify-content-end":"",Q=m?"fixed":"";return S.jsx(Sp,{ref:p,className:`post-nav__wrapper ${Q}`,children:S.jsxs(Ne,{direction:"horizontal",className:`post-nav mt-2 mb-3 ${I}`,children:[$,V]})})}return null},[u,a,m]);return l?S.jsxs(S.Fragment,{children:[S.jsx(Sp,{ref:d,children:S.jsx("div",{className:!T||m?"py-4":"pt-4",children:S.jsx(IO,{post:l,showCampaign:!0})})}),!m&&T,l.comments&&S.jsxs(Sp,{ref:h,className:"pt-2 pb-4 px-4",children:[S.jsxs("h5",{className:"mb-3",children:[l.commentCount," ",l.comments.length>1?"comments":"comment"]}),S.jsx(eE,{comments:l.comments})]}),m&&T]}):null}const aN=(r,t)=>r&&t&&JSON.stringify(r.sort())===JSON.stringify(t.sort())?r:t;function iN(){const{settings:r,options:t}=Ua(),[a,l]=w.useReducer(aN,null);return w.useEffect(()=>{var u;const o=((u=t.themes.find(c=>c.value===r.theme))==null?void 0:u.stylesheets)||null;l(o)},[r,t]),w.useEffect(()=>{if(!a||a.length===0)return;document.querySelectorAll('link[id^="theme-stylesheet-"]').forEach(u=>u.remove()),a.forEach((u,c)=>{const d=document.createElement("link");d.id=`theme-stylesheet-${c}`,d.rel="stylesheet",d.href=u,document.head.prepend(d)})},[a]),null}function lN(r){return{filter:null,page:null,itemsPerPage:r.galleryItemsPerPage}}const oN=(r,t)=>{const a=Tr(r);return t.filter!==void 0&&(a.filter=t.filter),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Kn(a,r)?r:a};function sN(){const{id:r}=jr(),t={singular:"media item",plural:"media items"},{api:a}=_n(),{settings:l}=Ua(),{scrollTo:o}=No(),[u,c]=w.useReducer(oN,lN(l)),[d,h]=w.useState(null),[p,m]=w.useState(null),[y,x]=w.useState(null),[T,N]=Oo(),_=lw(),z=w.useRef(!0);w.useEffect(()=>{if(!r)return;x(null);const I=new AbortController;return(async()=>{const Q=await a.getMediaFilterOptions(r);I.signal.aborted||x(Q)})(),()=>I.abort()},[a,r]);const $=w.useCallback((I,Q=!1)=>{N(()=>{const A=new URLSearchParams(window.location.search);return A.set("p",String(I)),A},{replace:Q})},[]);w.useEffect(()=>{_===Up.Pop&&(z.current=!0)},[_]),w.useEffect(()=>{if(!r)return;const I=new AbortController;return(async()=>{const Q=await a.getCampaign({id:r});I.signal.aborted||h(Q)})(),()=>I.abort()},[a,r]),w.useEffect(()=>{const{filter:I,page:Q}=u;if(!d||!I||Q===null)return;const A=new AbortController;return(async()=>{const M=await a.getMediaList({campaign:d,...u,filter:I,page:Q});A.signal.aborted||m(M)})(),()=>A.abort()},[a,d,u]),w.useEffect(()=>{const I=Number(T.get("p"))||1;c({page:I}),o(0,0)},[T,o]);const V=w.useCallback(I=>{z.current?(z.current=!1,c({filter:I})):c({filter:I,page:1})},[]);if(w.useEffect(()=>{c({itemsPerPage:l.galleryItemsPerPage})},[l.galleryItemsPerPage]),w.useEffect(()=>{p&&p.items.length===0&&p.total>0&&$(1,!0)},[p,$]),w.useEffect(()=>{if(u.page===null)return;const I=new URLSearchParams(window.location.search);(Number(I.get("p"))||1)!==u.page&&$(u.page,!0)},[u,$]),!(!d||!y))return S.jsxs("div",{className:"w-100",children:[S.jsx(On,{fluid:!0,className:"p-0",children:S.jsxs(St,{className:"mb-2 g-0 justify-content-center align-items-center",children:[S.jsx(st,{className:"w-auto flex-fill",children:p&&p.items.length>0&&u.page?S.jsx(ju,{total:p.total,page:u.page,itemsPerPage:u.itemsPerPage,subject:t}):null}),S.jsx(st,{className:"w-auto d-flex justify-content-end",children:S.jsx(qO,{options:y,onFilter:V})})]})}),p&&p.items.length>0?S.jsx(Ip,{items:p.items}):null,p&&p.items.length===0?S.jsx(it,{className:"my-4",style:{height:"10em"},children:S.jsx(it.Body,{className:"d-flex justify-content-center align-items-center",children:"No media"})}):null,p?S.jsx(Au,{totalItems:p.total,itemsPerPage:u.itemsPerPage,onChange:$}):null]})}function uN(){const{id:r}=jr(),{api:t}=_n(),[a,l]=w.useState(null);return w.useEffect(()=>{if(!r)return;const o=new AbortController;return(async()=>{const u=await t.getProduct(r);o.signal.aborted||l(u)})(),()=>o.abort()},[t,r]),a?S.jsx(On,{fluid:!0,children:S.jsx(St,{className:"justify-content-center",children:S.jsx(st,{lg:8,md:10,sm:12,children:S.jsx("div",{className:"my-4",children:S.jsx(GO,{product:a,showCampaign:!0})})})})}):null}const cN={numPosts:"article"};function fN(r){var l,o;const{collection:t}=r,a=(o=(l=t.thumbnail)==null?void 0:l.downloaded)!=null&&o.path?t.thumbnail.id:null;return S.jsx(it,{className:"collection-card mb-3",children:S.jsxs(it.Body,{className:"d-flex p-0",children:[a&&S.jsx("div",{className:"collection-card__thumbnail",children:S.jsx(ca,{mediaId:a})}),S.jsxs(Ne,{className:"flex-fill overflow-hidden px-3 py-2",children:[S.jsx("h6",{className:"collection-card__title",children:S.jsx(on,{to:`/collections/${t.id}`,children:t.title})}),t.description?S.jsx("div",{className:"collection-card__description",children:t.description}):null,S.jsx(Ne,{direction:"horizontal",className:"flex-fill align-items-end text-body-secondary",gap:3,children:S.jsxs(Ne,{direction:"horizontal",style:{alignSelf:"auto"},children:[S.jsx("span",{className:"collection-card__count-icon material-icons-outlined",children:cN.numPosts}),S.jsx("span",{className:"collection-card__count-text",children:t.numPosts||0})]},`${t.id}:numPosts`)})]})]})})}function dN(r){return{search:"",sortBy:"last_updated",page:null,itemsPerPage:r.listItemsPerPage}}const hN=(r,t)=>{const a=Tr(r);return t.search!==void 0&&(a.search=t.search),t.sortBy!==void 0&&(a.sortBy=t.sortBy),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Kn(a,r)?r:a};function pN(){const{id:r}=jr(),{api:t}=_n(),{settings:a}=Ua(),{scrollTo:l}=No(),[o,u]=w.useReducer(hN,dN(a)),[c,d]=w.useState(null),[h,p]=Oo(),m=w.useCallback(T=>{u({search:T})},[]);w.useEffect(()=>{const{sortBy:T,page:N}=o;if(!r||T===null||N===null)return;const _=new AbortController;return(async()=>{const z=await t.getCollectionList({...o,campaign:r,sortBy:T,page:N});_.signal.aborted||d(z)})(),()=>_.abort()},[t,o]),w.useEffect(()=>{const T=Number(h.get("p"))||1;u({page:T}),l(0,0)},[h,l]),w.useEffect(()=>{u({itemsPerPage:a.listItemsPerPage})},[a.listItemsPerPage]);const y=(T,N=!1)=>{p(_=>{const z=new URLSearchParams(_);return z.set("p",String(T)),z},{replace:N})};if(w.useEffect(()=>{c&&c.collections.length===0&&c.total>0&&y(1,!0)},[c,y]),!c)return;const x={singular:"collection",plural:"collections"};if(o.search){const T=` with "${o.search}"`;x.singular+=T,x.plural+=T}return S.jsx(On,{fluid:!0,children:S.jsx(St,{className:"g-0 justify-content-center",children:S.jsxs(st,{md:10,sm:12,style:{maxWidth:"40.5em"},children:[S.jsxs(On,{fluid:!0,className:"p-0",children:[S.jsx(St,{className:"mb-3 g-0 justify-content-center align-items-center",children:S.jsx(st,{className:"w-auto flex-fill",children:S.jsx(VO,{placeholder:"Search collections",onConfirm:m})})}),S.jsxs(St,{className:"mb-2 g-0 justify-content-center align-items-center",children:[S.jsx(st,{className:"w-auto flex-fill",children:o.page&&S.jsx(ju,{total:c.total,page:o.page,itemsPerPage:o.itemsPerPage,subject:x})}),S.jsx(st,{className:"w-auto d-flex justify-content-end",children:S.jsxs(It.Select,{size:"sm",className:"w-auto",onChange:T=>u({sortBy:T.currentTarget.value}),children:[S.jsx("option",{value:"a-z",selected:o.sortBy==="a-z",children:"A-Z"}),S.jsx("option",{value:"z-a",selected:o.sortBy==="z-a",children:"Z-A"}),S.jsx("option",{value:"last_created",selected:o.sortBy==="last_created",children:"Last created"}),S.jsx("option",{value:"last_updated",selected:o.sortBy==="last_updated",children:"Last updated"})]})})]})]}),S.jsx("div",{className:"mb-4",children:c.collections.map(T=>S.jsx(fN,{collection:T}))}),S.jsx(Au,{totalItems:c.total,itemsPerPage:o.itemsPerPage,onChange:y})]})})})}function gN({collection:r}){var l,o;const t=(o=(l=r.thumbnail)==null?void 0:l.downloaded)!=null&&o.path?r.thumbnail.id:null,a=!r.description;return S.jsx(it,{className:`collection-banner w-100 mb-3 ${a?"collection-banner--nodesc":""}`,children:S.jsx($O,{maxHeight:130,children:S.jsxs(it.Body,{className:"d-flex p-0",children:[t&&S.jsx("div",{className:"collection-banner__thumbnail",children:S.jsx(ca,{mediaId:t})}),S.jsxs(Ne,{className:"flex-fill overflow-hidden px-3",children:[S.jsx("div",{className:"collection-banner__title d-flex",children:r.title}),r.description&&S.jsx("div",{className:"collection-banner__description",children:r.description})]})]})})})}function mN(){const{id:r}=jr();if(!r)return null;const{api:t}=_n(),[a,l]=w.useState(null),[o,u]=w.useState(null);return w.useEffect(()=>{const c=new AbortController;return(async()=>{const{campaignId:d,collection:h}=await t.getCollection(r),p=await t.getCampaign({id:d,withCounts:!0});c.signal.aborted||(l(p),u(h))})(),()=>c.abort()},[t,r]),a?S.jsxs(On,{fluid:!0,className:"p-0",children:[S.jsx(St,{className:"g-0",children:S.jsx(st,{children:S.jsx(YO,{campaign:a})})}),S.jsx(St,{className:"justify-content-center g-0",children:S.jsxs(st,{lg:8,md:10,sm:12,className:"px-3 px-md-0 d-flex flex-column align-items-center justify-content-center",children:[o&&S.jsx(gN,{collection:o}),S.jsx(Wp,{})]})})]}):null}function vN(){return S.jsx(K2,{children:S.jsxs(zM,{children:[S.jsx(iN,{}),S.jsx($M,{children:S.jsx(v2,{children:S.jsxs($t,{path:"/",element:S.jsx(UM,{}),children:[S.jsx($t,{index:!0,element:S.jsx(p1,{})}),S.jsx($t,{path:"creators",element:S.jsx(p1,{})}),S.jsxs($t,{path:"campaigns/:id",element:S.jsx(p4,{}),children:[S.jsx($t,{index:!0,element:S.jsx(K4,{})}),S.jsx($t,{path:"posts",element:S.jsx(op,{type:"post"})}),S.jsx($t,{path:"collections",element:S.jsx(pN,{})}),S.jsx($t,{path:"shop",element:S.jsx(op,{type:"product"})}),S.jsx($t,{path:"media",element:S.jsx(sN,{})}),S.jsx($t,{path:"about",element:S.jsx(Z4,{})})]}),S.jsx($t,{path:"posts/:id",element:S.jsx(rN,{})}),S.jsx($t,{path:"products/:id",element:S.jsx(uN,{})}),S.jsx($t,{path:"collections/:id",element:S.jsx(mN,{}),children:S.jsx($t,{index:!0,element:S.jsx(op,{type:"post",collection:!0})})})]})})})]})})}yC.createRoot(document.getElementById("root")).render(S.jsx(q2,{children:S.jsx(vN,{})}));
218
+ </video>`}return u},r.prototype.appendVideos=function(t,a){var l,o=this.getVideoHtml(a.src,a.addClass,a.index,a.html5Video);t.find(".lg-video-cont").append(o);var u=t.find(".lg-video-object").first();if(a.html5Video&&u.on("mousedown.lg.video",function(c){c.stopPropagation()}),this.settings.videojs&&(!((l=this.core.galleryItems[a.index].__slideVideoInfo)===null||l===void 0)&&l.html5))try{return videojs(u.get(),this.settings.videojsOptions)}catch{console.error("lightGallery:- Make sure you have included videojs")}},r.prototype.gotoNextSlideOnVideoEnd=function(t,a){var l=this,o=this.core.getSlideItem(a).find(".lg-video-object").first(),u=this.core.galleryItems[a].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd){if(u.html5)o.on("ended",function(){l.core.goToNextSlide()});else if(u.vimeo)try{new Vimeo.Player(o.get()).on("ended",function(){l.core.goToNextSlide()})}catch{console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(u.wistia)try{window._wq=window._wq||[],window._wq.push({id:o.attr("id"),onReady:function(c){c.bind("end",function(){l.core.goToNextSlide()})}})}catch{console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}}},r.prototype.controlVideo=function(t,a){var l=this.core.getSlideItem(t).find(".lg-video-object").first(),o=this.core.galleryItems[t].__slideVideoInfo||{};if(l.get()){if(o.youtube)try{l.get().contentWindow.postMessage('{"event":"command","func":"'+a+'Video","args":""}',"*")}catch(u){console.error("lightGallery:- "+u)}else if(o.vimeo)try{new Vimeo.Player(l.get())[a]()}catch{console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(o.html5)if(this.settings.videojs)try{videojs(l.get())[a]()}catch{console.error("lightGallery:- Make sure you have included videojs")}else l.get()[a]();else if(o.wistia)try{window._wq=window._wq||[],window._wq.push({id:l.attr("id"),onReady:function(u){u[a]()}})}catch{console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}}},r.prototype.loadVideoOnPosterClick=function(t,a){var l=this;if(t.hasClass("lg-video-loaded"))a&&this.playVideo(this.core.index);else if(t.hasClass("lg-has-video"))this.playVideo(this.core.index);else{t.addClass("lg-has-video");var o=void 0,u=this.core.galleryItems[this.core.index].src,c=this.core.galleryItems[this.core.index].video;c&&(o=typeof c=="string"?JSON.parse(c):c);var d=this.appendVideos(t,{src:u,addClass:"",index:this.core.index,html5Video:o});this.gotoNextSlideOnVideoEnd(u,this.core.index);var h=t.find(".lg-object").first().get();t.find(".lg-video-cont").first().append(h),t.addClass("lg-video-loading"),d&&d.ready(function(){d.on("loadedmetadata",function(){l.onVideoLoadAfterPosterClick(t,l.core.index)})}),t.find(".lg-video-object").first().on("load.lg error.lg loadedmetadata.lg",function(){setTimeout(function(){l.onVideoLoadAfterPosterClick(t,l.core.index)},50)})}},r.prototype.onVideoLoadAfterPosterClick=function(t,a){t.addClass("lg-video-loaded"),this.playVideo(a)},r.prototype.destroy=function(){this.core.LGel.off(".lg.video"),this.core.LGel.off(".video")},r}();function HO(r){const{href:t,dataSrc:a,dataVideo:l,dataPoster:o,dataIframe:u,dataSubHTML:c,thumbnailURL:d,classNamePrefix:h,style:p,badge:g}=r;let v=l?`${h}__thumbnail-wrapper--video`:"";return d||(v+=` ${h}__thumbnail-wrapper--empty`),S.jsxs("a",{href:t,className:`lightgallery-item ${h}__thumbnail-wrapper ${v}`,"data-src":a,"data-video":l,"data-poster":o,"data-iframe":u||void 0,"data-sub-html":c,style:p,children:[" ",d?S.jsx("img",{src:d,className:`${h}__thumbnail`}):S.jsx(it,{className:"w-100 h-100 d-flex align-items-center justify-content-center",children:S.jsx("span",{className:"material-icons-outlined text-secondary",style:{fontSize:"5em"},children:"description"})}),g?S.jsx(Ii,{className:"light-gallery-item__badge",bg:"secondary",children:g}):null]})}function g1(r){const{hidden:t=!1}=r;return S.jsx(HO,{...r,classNamePrefix:"media-grid",style:{display:t?"none":"inherit"}})}function kO(r){const{items:t,title:a,noGallery:l=!1}=r,u=t.filter(p=>{var g;return(g=p.downloaded)==null?void 0:g.path}).reduce((p,g)=>{var Q,j,M,P;const v=!((Q=g.downloaded)!=null&&Q.mimeType)||g.downloaded.mimeType.startsWith("image/"),x=((M=(j=g.downloaded)==null?void 0:j.mimeType)==null?void 0:M.startsWith("video/"))??!1,T=`/media/${g.id}`,N=v?T:void 0,_=`${T}?t=1`,z=v?T:void 0,$=x?JSON.stringify({source:[{src:T,type:(P=g.downloaded)==null?void 0:P.mimeType}],attributes:{preload:!1,controls:!0,playsInline:!0}}):void 0,V=x?_:void 0,I=a?`<h4>${a}</h4>`:void 0;return(z||$)&&p.push({id:g.id,href:N,dataSrc:z,dataVideo:$,dataPoster:V,dataSubHTML:I,thumbnailURL:_}),p},[]);if(u.length===0)return null;const c=Math.min(u.length,4),d=u.slice(0,c).map(p=>S.jsxs(Ne,{direction:"horizontal",className:"media-grid__item-wrapper justify-content-center overflow-hidden",children:[S.jsx("div",{className:"media-grid__thumbnail-backdrop",style:{background:`url(${p.thumbnailURL})`}}),S.jsx(g1,{...p})]},p.id)),h=S.jsxs("div",{className:`media-grid media-grid--${c}`,children:[d,u.length>4?u.slice(4).map(p=>S.jsx(g1,{...p,hidden:!0})):null,u.length>1?S.jsxs(Ii,{className:"media-grid__badge d-flex align-items-center",children:[S.jsx("span",{className:"material-icons me-2",children:"image"}),u.length]}):null]});return l?h:S.jsx(jm,{speed:500,plugins:[Am,Mm,Dm],videojs:!0,selector:".lightgallery-item",children:h})}var rp,v1;function i4(){if(v1)return rp;v1=1;function r(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,u){for(var c="",d=0,h=-1,p=0,g,v=0;v<=o.length;++v){if(v<o.length)g=o.charCodeAt(v);else{if(g===47)break;g=47}if(g===47){if(!(h===v-1||p===1))if(h!==v-1&&p===2){if(c.length<2||d!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){var x=c.lastIndexOf("/");if(x!==c.length-1){x===-1?(c="",d=0):(c=c.slice(0,x),d=c.length-1-c.lastIndexOf("/")),h=v,p=0;continue}}else if(c.length===2||c.length===1){c="",d=0,h=v,p=0;continue}}u&&(c.length>0?c+="/..":c="..",d=2)}else c.length>0?c+="/"+o.slice(h+1,v):c=o.slice(h+1,v),d=v-h-1;h=v,p=0}else g===46&&p!==-1?++p:p=-1}return c}function a(o,u){var c=u.dir||u.root,d=u.base||(u.name||"")+(u.ext||"");return c?c===u.root?c+d:c+o+d:d}var l={resolve:function(){for(var u="",c=!1,d,h=arguments.length-1;h>=-1&&!c;h--){var p;h>=0?p=arguments[h]:(d===void 0&&(d=process.cwd()),p=d),r(p),p.length!==0&&(u=p+"/"+u,c=p.charCodeAt(0)===47)}return u=t(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(u){if(r(u),u.length===0)return".";var c=u.charCodeAt(0)===47,d=u.charCodeAt(u.length-1)===47;return u=t(u,!c),u.length===0&&!c&&(u="."),u.length>0&&d&&(u+="/"),c?"/"+u:u},isAbsolute:function(u){return r(u),u.length>0&&u.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var u,c=0;c<arguments.length;++c){var d=arguments[c];r(d),d.length>0&&(u===void 0?u=d:u+="/"+d)}return u===void 0?".":l.normalize(u)},relative:function(u,c){if(r(u),r(c),u===c||(u=l.resolve(u),c=l.resolve(c),u===c))return"";for(var d=1;d<u.length&&u.charCodeAt(d)===47;++d);for(var h=u.length,p=h-d,g=1;g<c.length&&c.charCodeAt(g)===47;++g);for(var v=c.length,x=v-g,T=p<x?p:x,N=-1,_=0;_<=T;++_){if(_===T){if(x>T){if(c.charCodeAt(g+_)===47)return c.slice(g+_+1);if(_===0)return c.slice(g+_)}else p>T&&(u.charCodeAt(d+_)===47?N=_:_===0&&(N=0));break}var z=u.charCodeAt(d+_),$=c.charCodeAt(g+_);if(z!==$)break;z===47&&(N=_)}var V="";for(_=d+N+1;_<=h;++_)(_===h||u.charCodeAt(_)===47)&&(V.length===0?V+="..":V+="/..");return V.length>0?V+c.slice(g+N):(g+=N,c.charCodeAt(g)===47&&++g,c.slice(g))},_makeLong:function(u){return u},dirname:function(u){if(r(u),u.length===0)return".";for(var c=u.charCodeAt(0),d=c===47,h=-1,p=!0,g=u.length-1;g>=1;--g)if(c=u.charCodeAt(g),c===47){if(!p){h=g;break}}else p=!1;return h===-1?d?"/":".":d&&h===1?"//":u.slice(0,h)},basename:function(u,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');r(u);var d=0,h=-1,p=!0,g;if(c!==void 0&&c.length>0&&c.length<=u.length){if(c.length===u.length&&c===u)return"";var v=c.length-1,x=-1;for(g=u.length-1;g>=0;--g){var T=u.charCodeAt(g);if(T===47){if(!p){d=g+1;break}}else x===-1&&(p=!1,x=g+1),v>=0&&(T===c.charCodeAt(v)?--v===-1&&(h=g):(v=-1,h=x))}return d===h?h=x:h===-1&&(h=u.length),u.slice(d,h)}else{for(g=u.length-1;g>=0;--g)if(u.charCodeAt(g)===47){if(!p){d=g+1;break}}else h===-1&&(p=!1,h=g+1);return h===-1?"":u.slice(d,h)}},extname:function(u){r(u);for(var c=-1,d=0,h=-1,p=!0,g=0,v=u.length-1;v>=0;--v){var x=u.charCodeAt(v);if(x===47){if(!p){d=v+1;break}continue}h===-1&&(p=!1,h=v+1),x===46?c===-1?c=v:g!==1&&(g=1):c!==-1&&(g=-1)}return c===-1||h===-1||g===0||g===1&&c===h-1&&c===d+1?"":u.slice(c,h)},format:function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return a("/",u)},parse:function(u){r(u);var c={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return c;var d=u.charCodeAt(0),h=d===47,p;h?(c.root="/",p=1):p=0;for(var g=-1,v=0,x=-1,T=!0,N=u.length-1,_=0;N>=p;--N){if(d=u.charCodeAt(N),d===47){if(!T){v=N+1;break}continue}x===-1&&(T=!1,x=N+1),d===46?g===-1?g=N:_!==1&&(_=1):g!==-1&&(_=-1)}return g===-1||x===-1||_===0||_===1&&g===x-1&&g===v+1?x!==-1&&(v===0&&h?c.base=c.name=u.slice(1,x):c.base=c.name=u.slice(v,x)):(v===0&&h?(c.name=u.slice(1,g),c.base=u.slice(1,x)):(c.name=u.slice(v,g),c.base=u.slice(v,x)),c.ext=u.slice(g,x)),v>0?c.dir=u.slice(0,v-1):h&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};return l.posix=l,rp=l,rp}var l4=i4();const BO=Jn(l4),$O=({children:r,maxHeight:t=480})=>{const[a,l]=w.useState(!1),[o,u]=w.useState(!1),c=w.useRef(null);w.useEffect(()=>{if(c.current){const h=c.current.scrollHeight>t;u(h),h||l(!0)}},[r,t]);const d=w.useCallback(h=>{h.preventDefault(),l(!a)},[a]);return S.jsxs("div",{className:"fade-content",style:{"--fade-content-height":`${t}px`},children:[S.jsxs("div",{className:`fade-content__body ${a?"fade-content__body--expanded":""}`,ref:c,children:[r,!a&&S.jsx("div",{className:"fade-content__overlay"})]}),o&&S.jsx("div",{className:"d-flex w-100 justify-content-center",children:S.jsx("a",{href:"#",className:"fade-content__toggle",onClick:d,dangerouslySetInnerHTML:{__html:a?"&#9650; Show less":"&#9660; Show more"}})})]})};function IO(r){var $,V,I,Q;const{post:t,showCampaign:a=!1,useShowMore:l=!1,contextQS:o}=r,u=er(),c=[];t.video?c.push(t.video):t.embed?c.push(t.embed):t.videoPreview?c.push(t.videoPreview):t.images.length>0?c.push(...t.images):(V=($=t.coverImage)==null?void 0:$.downloaded)!=null&&V.path?c.push(t.coverImage):(Q=(I=t.thumbnail)==null?void 0:I.downloaded)!=null&&Q.path&&c.push(t.thumbnail);const d=w.useMemo(()=>{const j=t.attachments.reduce((M,P)=>{var F;if((F=P.downloaded)!=null&&F.path){const D=P.filename||BO.parse(P.downloaded.path).base;M.push({title:D,url:`/media/${P.id}`})}return M},[]);if(j.length>0)return S.jsxs("div",{children:[S.jsx("p",{children:"Attachments:"}),S.jsx("ul",{children:j.map(({title:M,url:P})=>S.jsx("li",{children:S.jsx("a",{href:P,children:M})}))})]})},[t]),h=w.useMemo(()=>{var M,P,F,D,E;const j=(P=(M=t.audio)==null?void 0:M.downloaded)!=null&&P.path?t.audio:(D=(F=t.audioPreview)==null?void 0:F.downloaded)!=null&&D.path?t.audioPreview:null;return j?S.jsx("div",{className:"my-4",children:S.jsxs("audio",{controls:!0,className:"w-100 rounded",children:[S.jsx("source",{src:`/media/${j.id}`,type:((E=j.downloaded)==null?void 0:E.mimeType)||""}),"Your browser does not support the audio element."]})}):null},[t]),p=w.useMemo(()=>{const j=new URL(`/posts/${t.id}`,window.location.href);return o&&(j.search=o),u.pathname===j.pathname?t.title:S.jsx(on,{to:j.toString(),children:t.title})},[t,u,o]),g=w.useMemo(()=>{var j,M;if(t.embed&&!((j=t.embed.downloaded)!=null&&j.path)&&t.embed.html&&((M=t.embed.provider)==null?void 0:M.toLowerCase())==="youtube"){const D=new DOMParser().parseFromString(t.embed.html,"text/html").querySelector("iframe"),E=D?D.getAttribute("width"):null,X=D?D.getAttribute("height"):null;let B="";E&&X&&(B=`${E} / ${X}`);const q={width:"100%"};B&&(q.aspectRatio=B);const k=t.embed.provider?`(Embedded from ${t.embed.provider} - not stored locally)`:"(Embedded content - not stored locally)";return S.jsxs("div",{className:"post-card__external-embed-wrapper",children:[S.jsx("div",{className:"post-card__external-embed",style:q,dangerouslySetInnerHTML:{__html:t.embed.html}}),S.jsx("span",{className:"post-card__external-embed-caption",children:k})]})}return null},[t]),x=/class=".*?\s*?lightgallery-item.*?\s*?"/gm.test(t.content||""),T=c.length>0||x,N=t.tags&&t.tags.length>0&&t.campaign&&S.jsx(Ne,{direction:"horizontal",gap:2,className:"mb-3 flex-wrap",children:t.tags.map(j=>{const M=new URL(`/campaigns/${t.campaign.id}/posts`,window.location.href);return M.searchParams.set("filter_tag_id",j.id),S.jsx(Ii,{bg:"secondary",children:S.jsx(on,{to:M.toString(),style:{color:"inherit"},children:j.value})},j.id)})});let _=S.jsxs(Ne,{children:[N,S.jsxs(Ne,{direction:"horizontal",className:"mb-3 justify-content-between gap-4",children:[S.jsx(it.Title,{className:"m-0",children:p}),t.isViewable?null:S.jsx("span",{className:"material-icons text-body-secondary",children:"lock"})]}),S.jsxs(Ne,{direction:"horizontal",className:"mb-3 text-body-secondary",gap:4,children:[t.publishedAt?S.jsx("span",{children:new Date(t.publishedAt).toLocaleString()}):null,t.commentCount>0?S.jsxs(Ne,{direction:"horizontal",gap:2,children:[S.jsx("span",{className:"material-icons",style:{fontSize:"1.2em"},children:"comment"}),S.jsx("span",{children:t.commentCount})]}):null]}),h,S.jsx(it.Text,{className:"post-card__content",dangerouslySetInnerHTML:{__html:t.content||""}}),d]});l&&(_=S.jsx($O,{children:_}));const z=S.jsxs(it,{className:"post-card",children:[a&&t.campaign&&t.campaign.name?S.jsx(it.Header,{children:S.jsxs(Ne,{direction:"horizontal",gap:3,children:[S.jsx(fa,{mediaId:`campaign:${t.campaign.id}:avatar`,className:"rounded",style:{width:"2.5em",height:"2.5em",objectFit:"cover"}}),S.jsx("span",{children:S.jsx(on,{to:`/campaigns/${t.campaign.id}`,className:"text-body",children:t.campaign.name})})]})}):null,S.jsx(kO,{items:c,title:t.title||"",noGallery:!0}),g,S.jsx(it.Body,{children:_})]});return T?S.jsx(jm,{speed:500,plugins:[Am,Mm,Dm],videojs:!0,selector:".lightgallery-item",children:z}):z}function o4(r){const t=[];for(const[a,l]of r.entries())if(a.startsWith("filter_")){const o=a.substring(7);o&&t.push({searchParam:o,value:l})}return t}function s4(r){const t=[];for(const a of r.sections){const l=a.options.find(u=>u.isDefault),o=(l==null?void 0:l.value)||null;t.push({searchParam:a.searchParam,value:o})}if(r.external)for(const a of r.external)t.push({searchParam:a.searchParam,value:null});return t}function y1(r,t,a){var o;const l=(o=r.options.find(u=>u.searchParam===t.searchParam))==null?void 0:o.value;return l===void 0?!1:l===a.value}const b1=(r,t)=>{if(r&&t){const l=Tr(r);for(const o of t){const u=l.options.find(c=>c.searchParam===o.searchParam);u?u.value=o.value:l.options.push({...o})}return Kn(r,l)?r:l}const a=r?{...r,options:t}:{options:t};return Kn(r,a)?r:a};function qO(r){const{options:t,onFilter:a,searchInputBox:l}=r,{settings:o}=Mr(),[u,c]=Oo(),[d,h]=w.useReducer(b1,null),[p,g]=w.useReducer(b1,null),[v,x]=w.useState(!1),T=w.useRef(null);w.useEffect(()=>{if(!t)return;let M=[];M=s4(t),T.current=Tr(M);const P=o4(u);for(const F of P){const D=M.find(E=>E.searchParam===F.searchParam);D?D.value=F.value:M.push(F)}h(M),g(M)},[t,u]),w.useEffect(()=>{if(!(l!=null&&l.current))return;const M=l.current;return M.onConfirm(P=>{g([{searchParam:"search",value:P||null}])}),()=>M.onConfirm(null)},[l]),w.useEffect(()=>{var P;const M=T.current;if(!(!p||!M)&&(c(F=>{const D=new URLSearchParams(F);for(const E of p.options){const X=`filter_${E.searchParam}`,B=E.value,q=M.find(k=>k.searchParam===E.searchParam);B&&(q===void 0||q.value!==B)?D.set(X,B):D.delete(X)}return D}),l!=null&&l.current)){const F=((P=p.options.find(D=>D.searchParam==="search"))==null?void 0:P.value)||"";l.current.setInput(F)}},[l,p]),w.useEffect(()=>{const M=T.current;p&&M&&a(Tr(p))},[p,a]);const N=w.useCallback((M,P,F=!1)=>{if(!d)return;const D=d.options.find(E=>E.searchParam===M.searchParam);if(D){const E=F&&P.value===D.value?null:P.value;D.value!==E&&h([{searchParam:D.searchParam,value:E}])}},[d]),_=w.useCallback(M=>{if(!M.enableCondition||!d)return!1;const{searchParam:P,condition:F,value:D}=M.enableCondition,E=d.options.find(X=>X.searchParam===P);if(E)switch(F){case"is":return E.value===D;case"not":return E.value!==D}},[d]),z=w.useMemo(()=>!d||!t?null:t.sections.map(M=>{let P;switch(M.displayHint){case"list":{const X=M.options.map(B=>S.jsx(Mt.Check,{type:"radio",id:`filter-select-${M.searchParam}:${B.value}`,name:M.searchParam,label:B.title,checked:y1(d,M,B),onClick:()=>N(M,B)},`${M.searchParam}:${B.value}`));P=S.jsxs(Ne,{gap:2,children:[...X]});break}case"pill":case"pill_small":{const X=o.theme.toLowerCase()==="vapor"?"outline-secondary":"outline-primary",B=M.displayHint==="pill_small"?"sm":void 0,q=M.options.map(k=>S.jsx("div",{children:S.jsx(RO,{type:"checkbox",size:B,id:`filter-select-${M.searchParam}:${k.value}`,checked:y1(d,M,k),value:k.value||"",variant:X,onChange:()=>N(M,k,!0),children:k.title},`${M.searchParam}:${k.value}`)}));P=S.jsxs(Ne,{direction:"horizontal",gap:2,className:"flex-wrap",children:[...q]});break}}const F=M.title?S.jsx("h5",{style:{paddingBottom:"0.5em"},children:M.title}):null,D=M.title?"":"py-4 border-top border-bottom",E=_(M)?"filter-modal__section--hidden":"";return S.jsx("div",{className:`filter-modal__section ${E}`,children:S.jsxs(Ne,{className:D,children:[F,P]})},`filter-modal-section-${M.searchParam}`)}),[d,t,N,_,o.theme]),$=w.useCallback(()=>{x(!0)},[]),V=w.useCallback(()=>{x(!1),p&&h(p.options)},[p]),I=w.useCallback(()=>{const M=T.current;if(!d||!M)return;const P=Tr(d.options);for(const F of d.options){const D=M.find(X=>X.searchParam===F.searchParam),E=t.sections.find(X=>X.searchParam===F.searchParam);if(E&&_(E)&&D){const X=P.find(B=>B.searchParam===F.searchParam);X&&(X.value=D.value)}}g(P),x(!1)},[d,c,t,_]),Q=w.useCallback(()=>{const M=T.current;M&&(c(P=>{const F=new URLSearchParams(P);for(const D of M){const E=`filter_${D.searchParam}`;F.delete(E)}return F}),h(M),g(M)),x(!1)},[c]);if(!z)return null;const j=p&&T.current?!Kn(p.options,T.current):!1;return S.jsxs(Ne,{direction:"horizontal",gap:2,children:[S.jsx(Qt,{className:"filter-modal-button filter-modal-button--show",variant:j?"primary":"outline-primary",onClick:$,children:"Filters"}),j?S.jsx(Qt,{className:"filter-modal-button filter-modal-button--clear",variant:"secondary",onClick:Q,children:"Clear filters"}):null,S.jsxs(Ha,{show:v,onHide:V,centered:!0,scrollable:!0,children:[S.jsx(Ha.Header,{closeButton:!0}),S.jsx(Ha.Body,{children:S.jsxs(Ne,{children:[...z]})}),S.jsxs(Ha.Footer,{className:"justify-content-between",children:[S.jsx(Qt,{variant:"secondary",onClick:Q,children:"Clear all"}),S.jsx(Qt,{variant:"primary",onClick:I,children:"Apply"})]})]})]})}const ap=160,ip=0,S1=8;function u4(r){const{fixed:t}=r;return S.jsx(HO,{...r,classNamePrefix:"media-gallery",style:{flexGrow:t?"0":void 0}})}function Ip(r){const{items:t}=r,a=w.useRef(null),[l,o]=w.useState(null);w.useEffect(()=>{const d=new ResizeObserver(h=>{const{width:p}=h[0].contentRect;o(p)});return a.current&&d.observe(a.current),()=>d.disconnect()},[]);const u=w.useMemo(()=>{var v,x;if(!l)return null;const d=[[]];let h=0,p=0;const g=[...t];for(;g.length>0;){const T=g.shift();if(!T)continue;let N=0;if((v=T.thumbnail)!=null&&v.width&&((x=T.thumbnail)!=null&&x.height)){const z=ap/T.thumbnail.height*T.thumbnail.width;N=ip+z}else N=ip+ap;let _=d[h].length>0?S1:0;d[h].length>0&&p+_+N>l&&(h++,p=0,_=0,d.push([])),d[h].push(T),p+=_+N}return d},[t,l]),c=w.useMemo(()=>u?u.reduce((d,h,p)=>(d.push(...h.reduce((g,v)=>{var F,D,E,X,B,q,k;const x=`/media/${v.id}`;let T;if(v.thumbnail)T=`${x}?t=1`;else if(v.source.type==="post")(D=(F=v.source.thumbnail)==null?void 0:F.downloaded)!=null&&D.path?T=`/media/post:${v.source.id}:thumbnail`:(X=(E=v.source.coverImage)==null?void 0:E.downloaded)!=null&&X.path&&(T=`/media/post:${v.source.id}:cover`);else if(v.source.type==="product"){const G=v.source.previewMedia.find(L=>{var b,te;return L.type==="image"&&((te=(b=L.downloaded)==null?void 0:b.thumbnail)==null?void 0:te.path)})||v.source.contentMedia.find(L=>{var b,te;return L.type==="image"&&((te=(b=L.downloaded)==null?void 0:b.thumbnail)==null?void 0:te.path)});G&&(T=`/media/${G.id}`)}const N=!v.mimeType||v.mimeType.startsWith("image/"),_=((B=v.mimeType)==null?void 0:B.startsWith("video/"))??!1,z=((q=v.mimeType)==null?void 0:q.startsWith("audio/"))??!1,$=((k=v.mimeType)==null?void 0:k.toLowerCase())==="application/pdf",V=N||$?x:void 0,I=N?x:void 0,Q=_||z?JSON.stringify({source:[{src:x,type:v.mimeType}],attributes:{preload:!1,controls:!0,playsInline:!0}}):void 0,j=_||z?T:void 0,M=v.source.type==="post"?v.source.title:v.source.name,P=M?`<h4><a class="media-gallery__source-link" href="/posts/${v.source.id}">${M}</a></h4>`:void 0;return(I||Q||$)&&g.push({id:v.id,href:V,dataSrc:I,dataVideo:Q,dataPoster:j,dataIframe:$,dataSubHTML:P,thumbnailURL:T,fixed:p===u.length-1,badge:$?"PDF":void 0}),g},[])),d),[]):null,[u]);return S.jsx(jm,{speed:500,plugins:[Am,Mm,Dm],selector:".lightgallery-item",children:S.jsx("div",{ref:a,className:"w-100 media-gallery mb-4",style:{"--media-gallery-row-height":`${ap}px`,"--media-gallery-gap":`${S1}px`,"--media-gallery-thumbnail-border":`${ip}px`},children:c?c.map(d=>S.jsx(u4,{...d},`media-gallery-item-${d.id}`)):null})})}const lp={Post:"post",Collection:"collection"},c4=["image","video","videoEmbed","audio"],UO=r=>{var t,a,l;return((t=r.downloaded)==null?void 0:t.path)&&(c4.includes(r.type)||((l=(a=r.downloaded)==null?void 0:a.mimeType)==null?void 0:l.toLowerCase())==="application/pdf")};function w1(r){return r.filter(t=>UO(t))}function x1(r){return r.filter(t=>!UO(t))}function O1(r,t){return r.reduce((a,l)=>{var c,d,h,p;const o=l.type==="image"?"image":l.type==="audio"?"audio":["video","videoEmbed"].includes(l.type)?"video":((c=l.downloaded)==null?void 0:c.mimeType)==="application/pdf"?"pdf":null,u=(h=(d=l.downloaded)==null?void 0:d.thumbnail)!=null&&h.path?{path:l.downloaded.thumbnail.path,width:l.downloaded.thumbnail.width??null,height:l.downloaded.thumbnail.height??null}:null;return o&&a.push({id:l.id,mediaType:o,mimeType:((p=l.downloaded)==null?void 0:p.mimeType)||null,source:t,thumbnail:u}),a},[])}function GO(r){const{product:t,variant:a="full",showCampaign:l=!1}=r,o=er(),u=w.useMemo(()=>({content:w1(t.contentMedia),preview:w1(t.previewMedia)}),[t]),c=w.useMemo(()=>({content:x1(t.contentMedia),preview:x1(t.previewMedia)}),[t]),d=w.useMemo(()=>u.preview.find(_=>_.type==="image")||null,[u]),h=w.useMemo(()=>d?S.jsx(kO,{items:[d],title:t.name||""}):null,[d,t]),p=w.useCallback(_=>{const z=_.reduce(($,V)=>{var I;if((I=V.downloaded)!=null&&I.path){const Q=$p.getProperty(V,"filename")||BO.parse(V.downloaded.path).base;$.push({title:Q,url:`/media/${V.id}`})}return $},[]);return z.length>0?S.jsxs("div",{children:[S.jsx("p",{children:"Files:"}),S.jsx("ul",{children:z.map(({title:$,url:V})=>S.jsx("li",{children:S.jsx("a",{href:V,children:$})}))})]}):null},[]),g=w.useMemo(()=>{if(a==="compact")return null;const _=d?u.preview.filter(V=>V.id!==d.id):[...u.preview],z=_.length>0?S.jsx(Ip,{items:O1(_,t)}):null,$=p(c.preview);return z||$?S.jsxs(Ne,{gap:3,children:[z,$]}):null},[t,a,u,d,c,p]),v=w.useMemo(()=>{if(a==="compact")return null;const _=u.content.length>0?S.jsx(Ip,{items:O1(u.content,t)}):null,z=p(c.content);return _||z?S.jsxs(Ne,{gap:3,children:[_,z]}):null},[t,a,u,c,p]),x=w.useMemo(()=>{let _=null;return g&&v?_=S.jsxs(Js.Container,{defaultActiveKey:"purchased",children:[S.jsx(vt,{className:"m-0 mb-4",children:S.jsx(lt,{className:"p-0",children:S.jsxs(Gl,{className:"product-card__media-nav",children:[S.jsx(Gl.Item,{children:S.jsx(Gl.Link,{className:"product-card__media-nav-link",eventKey:"purchased",children:"Purchased media"})}),S.jsx(Gl.Item,{children:S.jsx(Gl.Link,{className:"product-card__media-nav-link",eventKey:"preview",children:"Preview media"})})]})})}),S.jsx(vt,{children:S.jsxs(Js.Content,{className:"py-0 m-0 border-0",children:[S.jsx(Js.Pane,{eventKey:"purchased",children:v}),S.jsx(Js.Pane,{eventKey:"preview",children:g})]})})]}):_=v||g,_?S.jsx("div",{className:"mt-4",children:_}):null},[g,v]),T=w.useMemo(()=>!l||!t.campaign||!t.campaign.name?null:S.jsx(it.Header,{children:S.jsxs(Ne,{direction:"horizontal",gap:3,children:[S.jsx(fa,{mediaId:`campaign:${t.campaign.id}:avatar`,className:"rounded",style:{width:"2.5em",height:"2.5em",objectFit:"cover"}}),S.jsx("span",{children:S.jsx(on,{to:`/campaigns/${t.campaign.id}`,className:"text-body",children:t.campaign.name})})]})}),[t,l]),N=w.useMemo(()=>{let _;return t.productType===lp.Post&&t.referencedEntityId?_=new URL(`/posts/${t.referencedEntityId}`,window.location.href):t.productType===lp.Collection&&t.referencedEntityId?_=new URL(`/collections/${t.referencedEntityId}`,window.location.href):_=new URL(`/products/${t.id}`,window.location.href),o.pathname===_.pathname?t.name:S.jsx(on,{to:_.toString(),children:t.name})},[t,o]);return S.jsxs(it,{className:`product-card product-card--${a}`,children:[T,h,S.jsxs(it.Body,{className:"d-flex flex-column",children:[S.jsx("div",{children:t.productType===lp.Collection&&S.jsx(Ii,{bg:"secondary",children:"Collection"})}),S.jsxs(Ne,{children:[S.jsxs(Ne,{direction:"horizontal",className:"mb-3 justify-content-between gap-4",children:[S.jsx(it.Title,{className:"m-0 product-card__title",children:N}),t.isAccessible?null:S.jsx("span",{className:"material-icons text-body-secondary",children:"lock"})]}),S.jsxs(Ne,{direction:"horizontal",className:"mb-3 text-body-secondary justify-content-between",gap:4,children:[t.publishedAt?S.jsx("span",{children:new Date(t.publishedAt).toLocaleString()}):null,t.price?S.jsx("span",{children:t.price}):null]}),S.jsx(it.Text,{className:"product-card__description",dangerouslySetInnerHTML:{__html:t.description||""}})]}),x]})]})}const E1=300,Fl=16;function f4(r){const{products:t}=r,a=w.useRef(null),[l,o]=w.useState(null);w.useEffect(()=>{const h=new ResizeObserver(p=>{const{width:g}=p[0].contentRect;o(g)});return a.current&&h.observe(a.current),()=>h.disconnect()},[]);const u=w.useMemo(()=>{if(!l)return{cardWidth:E1,lastRowFirstItemIndex:0};const h=Math.floor((l+Fl)/(E1+Fl)),p=((l+Fl)/h-Fl).toFixed(2),g=Math.floor((t.length-1)/h)*h;return{cardWidth:p,lastRowFirstItemIndex:g}},[l]),{cardWidth:c,lastRowFirstItemIndex:d}=u;return S.jsx("div",{ref:a,className:"product-list mb-4",style:{"--card-width":`${c}px`,"--gap":`${Fl}px`},children:t.map((h,p)=>S.jsx("div",{className:`product-list__card-wrapper ${p>=d?"product-list__card-wrapper--fixed":""}`,children:S.jsx(GO,{product:h,variant:"compact"},`product-card-${h.id}`)}))})}const VO=w.forwardRef((r,t)=>{const[a,l]=w.useState(()=>r.onConfirm||null),[o,u]=w.useState(""),c=w.useCallback(p=>{u(p.target.value)},[]),d=w.useCallback(()=>{a&&a(o)},[o,a]),h=w.useCallback(p=>{p.key==="Enter"&&d()},[d]);return w.useImperativeHandle(t,()=>({onConfirm:p=>{l(()=>p)},setInput:p=>{u(p)}})),S.jsxs(Vx,{className:"me-2",children:[S.jsx(Mt.Control,{type:"search",placeholder:r.placeholder,value:o,onChange:c,onKeyDown:h}),S.jsx(Qt,{className:"d-flex align-items-center",variant:"primary",onClick:d,children:S.jsx("span",{className:"material-icons",children:"search"})})]})});function d4(r){return{filter:null,page:null,itemsPerPage:r.listItemsPerPage}}const h4=(r,t)=>{const a=Tr(r);return t.filter!==void 0&&(a.filter=t.filter),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Kn(a,r)?r:a};function op(r){var R,y,C,W,J,H;const{type:t,collection:a}=r,{id:l}=jr(),[o,u]=w.useState(""),[c,d]=w.useState(a?null:l),h=a?l:null,{api:p}=_n(),{settings:g}=Mr(),{scrollTo:v}=No(),[x,T]=w.useReducer(h4,d4(g)),[N,_]=w.useState(null),[z,$]=w.useState(null),[V,I]=w.useState(null),[Q,j]=w.useState(null),[M,P]=Oo(),F=lw(),D=w.useRef(!0),E=w.useRef(null);let X,B;switch(t){case"post":X={singular:"post",plural:"posts"},B="Search posts";break;case"product":default:X={singular:"product",plural:"products"},B="Search products";break}if(t==="post"&&a){const U=" in collection";X.singular+=U,X.plural+=U,B+=U}const q=[],k=(C=(y=(R=x.filter)==null?void 0:R.options.find(U=>U.searchParam==="search"))==null?void 0:y.value)==null?void 0:C.trim();k&&q.push(`with "${k}"`);const G=(H=(J=(W=x.filter)==null?void 0:W.options.find(U=>U.searchParam==="tag_id"))==null?void 0:J.value)==null?void 0:H.trim();if(G){let U=G;G.startsWith("user_defined;")&&(U=G.substring(13)),U&&q.push(`tagged "${U}"`)}if(q.length>0){const U=q.join(" and ");X.singular+=` ${U}`,X.plural+=` ${U}`}w.useEffect(()=>{if(!h){$(null);return}const U=new AbortController;return(async()=>{const{collection:Z,campaignId:re}=await p.getCollection(h);U.signal.aborted||($(Z),d(re))})(),()=>U.abort()},[p,h]),w.useEffect(()=>{if(!c){j(null);return}j(null);const U=new AbortController;return(async()=>{const Z=await p.getContentFilterOptions(c,t);U.signal.aborted||j(Z)})(),()=>U.abort()},[p,c,t]);const L=w.useCallback((U,Z=!1)=>{P(()=>{const re=new URLSearchParams(window.location.search);return re.set("p",String(U)),re},{replace:Z})},[]);w.useEffect(()=>{F===Up.Pop&&(D.current=!0)},[F]),w.useEffect(()=>{if(!c){_(null);return}const U=new AbortController;return(async()=>{const Z=await p.getCampaign({id:c});U.signal.aborted||_(Z)})(),()=>U.abort()},[p,c]),w.useEffect(()=>{const{filter:U,page:Z}=x;if(!N||!U||Z===null||a&&!z){I(null);return}const re=new AbortController;return(async()=>{const ue=await p.getContentList({campaign:N,type:t,...x,collectionId:z==null?void 0:z.id,filter:U,page:Z});re.signal.aborted||I(ue)})(),()=>re.abort()},[p,N,t,a,z,x]),w.useEffect(()=>{const U=Number(M.get("p"))||1;T({page:U}),v(0,0)},[M,v]);const b=w.useCallback(U=>{D.current?(D.current=!1,T({filter:U})):T({filter:U,page:1})},[]);w.useEffect(()=>{T({itemsPerPage:g.listItemsPerPage})},[g.listItemsPerPage]),w.useEffect(()=>{V&&V.items.length===0&&V.total>0&&L(1,!0)},[V,L]),w.useEffect(()=>{if(x.page===null)return;const U=new URLSearchParams(window.location.search);(Number(U.get("p"))||1)!==x.page&&L(x.page,!0)},[x,L]),w.useEffect(()=>{if(a&&!z){u("");return}const U=x.filter,Z=new URLSearchParams,re=a?z==null?void 0:z.id:void 0;if(re&&Z.set("collection_id",re),U)for(const{searchParam:ue,value:me}of U.options)me&&Z.set(ue,me);u(Z.toString())},[x.filter,a,z]);const te=w.useMemo(()=>!V||V.items.length===0?null:V.items.every(U=>U.type==="post")?S.jsx(Ne,{className:"mb-4",gap:4,children:V.items.map(U=>S.jsx(IO,{post:U,useShowMore:!0,contextQS:o},`post-card-${U.id}`))}):V.items.every(U=>U.type==="product")?S.jsx(f4,{products:V.items}):null,[V,o]);if(!(!N||!Q))return S.jsxs("div",{className:`campaign-content campaign-content--${t} mw-${g.maxContentWidth.toLowerCase()}`,children:[S.jsxs(On,{fluid:!0,className:"p-0",children:[S.jsx(vt,{className:"mb-3 g-0 align-items-center",children:S.jsxs(lt,{className:"w-auto d-flex justify-content-end",children:[S.jsx(VO,{ref:E,placeholder:B}),S.jsx(qO,{options:Q,onFilter:b,searchInputBox:E})]})}),S.jsx(vt,{className:"mb-2 g-0",children:V&&V.items.length>0&&x.page?S.jsx(ju,{total:V.total,page:x.page,itemsPerPage:x.itemsPerPage,subject:X}):null})]}),te,V&&V.items.length===0?S.jsx(it,{className:"my-4",style:{height:"10em"},children:S.jsxs(it.Body,{className:"d-flex justify-content-center align-items-center",children:["No ",t==="post"?"posts":"products"]})}):null,V?S.jsx(Au,{totalItems:V.total,itemsPerPage:x.itemsPerPage,onChange:L}):null]})}function WO(r){var p,g;const{campaign:t}=r,a=(p=t.coverPhoto.downloaded)!=null&&p.path?t.coverPhoto.id:null,l=(g=t.avatarImage.downloaded)!=null&&g.path?t.avatarImage.id:null,o=w.useMemo(()=>{const v=[];return t.postCount>0&&v.push({title:"Posts",url:`/campaigns/${t.id}/posts`}),t.collectionCount>0&&v.push({title:"Collections",url:`/campaigns/${t.id}/collections`}),t.productCount>0&&v.push({title:"Shop",url:`/campaigns/${t.id}/shop`}),t.mediaCount>0&&v.push({title:"Media",url:`/campaigns/${t.id}/media`}),v.push({title:"About",url:`/campaigns/${t.id}/about`}),S.jsx(Ne,{direction:"horizontal",className:"campaign-header__nav justify-content-center mb-5",gap:4,children:v.map(({title:x,url:T})=>S.jsx(lu,{to:T,children:x}))})},[t]),u=w.useMemo(()=>a?S.jsx("div",{className:"w-100",children:S.jsx(fa,{className:"campaign-header__cover",mediaId:a})}):null,[a]),c=w.useMemo(()=>l?S.jsx("div",{className:"mb-2",children:S.jsx(fa,{className:"campaign-header__avatar rounded",mediaId:l})}):null,[l]),d=w.useMemo(()=>{const v=jO.getCampaignCreationName(t);return S.jsxs(Ne,{className:"w-100 px-3 align-items-center",children:[S.jsx("h3",{children:t.name}),v?S.jsx("div",{className:"text-body-secondary",children:v}):null]})},[t]),h=w.useMemo(()=>u&&c?S.jsxs(Ne,{className:"w-100 align-items-center",style:{marginBottom:"-2em"},children:[u,S.jsxs(Ne,{className:"align-items-center",style:{transform:"translateY(-4em)"},children:[c,d]})]}):u?S.jsxs(S.Fragment,{children:[u,S.jsx(Ne,{className:"align-items-center my-4",children:d})]}):c?S.jsxs(Ne,{className:"w-100 align-items-center my-4",children:[c,d]}):S.jsx(Ne,{className:"w-100 align-items-center my-4",children:d}),[u,c,d]);return S.jsxs(S.Fragment,{children:[h,o]})}function p4(){const{id:r}=jr();if(!r)return null;const{api:t}=_n(),[a,l]=w.useState(null);return w.useEffect(()=>{const o=new AbortController;return(async()=>{const u=await t.getCampaign({id:r,withCounts:!0});o.signal.aborted||l(u)})(),()=>o.abort()},[t,r]),a?S.jsxs(On,{fluid:!0,className:"p-0",children:[S.jsx(vt,{className:"g-0",children:S.jsx(lt,{children:S.jsx(WO,{campaign:a})})}),S.jsx(vt,{className:"justify-content-center g-0",children:S.jsx(lt,{lg:8,md:10,sm:12,className:"px-3 px-md-0 d-flex flex-column align-items-center justify-content-center",children:S.jsx(Xp,{})})})]}):null}function T1(r){var a,l;const{reward:t}=r;return S.jsx(it,{className:"reward-card mb-3",children:S.jsxs(it.Body,{className:"d-flex flex-column p-0",children:[(l=(a=t.image)==null?void 0:a.downloaded)!=null&&l.path?S.jsx(it.Img,{className:"reward-card__image",src:`/media/reward:${t.id}:image`}):null,S.jsxs(Ne,{className:"flex-fill px-3 py-2",children:[S.jsxs(Ne,{direction:"horizontal",className:"my-3 justify-content-between",children:[S.jsx("div",{className:"reward-card__title",children:t.title}),S.jsx("div",{children:t.amount||""})]}),S.jsx("div",{className:"reward-card__content w-100",dangerouslySetInnerHTML:{__html:t.description||""}})]})]})})}var sp={},up={},Ql={},cp={},C1;function m4(){return C1||(C1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};r.default=t}(cp)),cp}var fp,R1;function g4(){if(R1)return fp;R1=1;var r="Expected a function",t=NaN,a="[object Symbol]",l=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt,h=typeof xr=="object"&&xr&&xr.Object===Object&&xr,p=typeof self=="object"&&self&&self.Object===Object&&self,g=h||p||Function("return this")(),v=Object.prototype,x=v.toString,T=Math.max,N=Math.min,_=function(){return g.Date.now()};function z(j,M,P){var F,D,E,X,B,q,k=0,G=!1,L=!1,b=!0;if(typeof j!="function")throw new TypeError(r);M=Q(M)||0,$(P)&&(G=!!P.leading,L="maxWait"in P,E=L?T(Q(P.maxWait)||0,M):E,b="trailing"in P?!!P.trailing:b);function te(re){var ue=F,me=D;return F=D=void 0,k=re,X=j.apply(me,ue),X}function R(re){return k=re,B=setTimeout(W,M),G?te(re):X}function y(re){var ue=re-q,me=re-k,pe=M-ue;return L?N(pe,E-me):pe}function C(re){var ue=re-q,me=re-k;return q===void 0||ue>=M||ue<0||L&&me>=E}function W(){var re=_();if(C(re))return J(re);B=setTimeout(W,y(re))}function J(re){return B=void 0,b&&F?te(re):(F=D=void 0,X)}function H(){B!==void 0&&clearTimeout(B),k=0,F=q=D=B=void 0}function U(){return B===void 0?X:J(_())}function Z(){var re=_(),ue=C(re);if(F=arguments,D=this,q=re,ue){if(B===void 0)return R(q);if(L)return B=setTimeout(W,M),te(q)}return B===void 0&&(B=setTimeout(W,M)),X}return Z.cancel=H,Z.flush=U,Z}function $(j){var M=typeof j;return!!j&&(M=="object"||M=="function")}function V(j){return!!j&&typeof j=="object"}function I(j){return typeof j=="symbol"||V(j)&&x.call(j)==a}function Q(j){if(typeof j=="number")return j;if(I(j))return t;if($(j)){var M=typeof j.valueOf=="function"?j.valueOf():j;j=$(M)?M+"":M}if(typeof j!="string")return j===0?j:+j;j=j.replace(l,"");var P=u.test(j);return P||c.test(j)?d(j.slice(2),P?2:8):o.test(j)?t:+j}return fp=z,fp}var we={},dp={},_1;function YO(){return _1||(_1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=a(Cn());function a(o){return o&&o.__esModule?o:{default:o}}var l={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(u){return t.default.createElement("ul",{style:{display:"block"}},u)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(u){return t.default.createElement("button",null,u+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};r.default=l}(dp)),dp}var j1;function Do(){if(j1)return we;j1=1,Object.defineProperty(we,"__esModule",{value:!0}),we.checkSpecKeys=we.checkNavigable=we.changeSlide=we.canUseDOM=we.canGoNext=void 0,we.clamp=p,we.extractObject=void 0,we.filterSettings=te,we.validSettings=we.swipeStart=we.swipeMove=we.swipeEnd=we.slidesOnRight=we.slidesOnLeft=we.slideHandler=we.siblingDirection=we.safePreventDefault=we.lazyStartIndex=we.lazySlidesOnRight=we.lazySlidesOnLeft=we.lazyEndIndex=we.keyHandler=we.initializedState=we.getWidth=we.getTrackLeft=we.getTrackCSS=we.getTrackAnimateCSS=we.getTotalSlides=we.getSwipeDirection=we.getSlideCount=we.getRequiredLazySlides=we.getPreClones=we.getPostClones=we.getOnDemandLazySlides=we.getNavigableIndexes=we.getHeight=void 0;var r=a(Cn()),t=a(YO());function a(R){return R&&R.__esModule?R:{default:R}}function l(R){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},l(R)}function o(R,y){var C=Object.keys(R);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(R);y&&(W=W.filter(function(J){return Object.getOwnPropertyDescriptor(R,J).enumerable})),C.push.apply(C,W)}return C}function u(R){for(var y=1;y<arguments.length;y++){var C=arguments[y]!=null?arguments[y]:{};y%2?o(Object(C),!0).forEach(function(W){c(R,W,C[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(C)):o(Object(C)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(C,W))})}return R}function c(R,y,C){return y=d(y),y in R?Object.defineProperty(R,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):R[y]=C,R}function d(R){var y=h(R,"string");return l(y)=="symbol"?y:String(y)}function h(R,y){if(l(R)!="object"||!R)return R;var C=R[Symbol.toPrimitive];if(C!==void 0){var W=C.call(R,y);if(l(W)!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(R)}function p(R,y,C){return Math.max(y,Math.min(R,C))}var g=we.safePreventDefault=function(y){var C=["onTouchStart","onTouchMove","onWheel"];C.includes(y._reactName)||y.preventDefault()},v=we.getOnDemandLazySlides=function(y){for(var C=[],W=x(y),J=T(y),H=W;H<J;H++)y.lazyLoadedList.indexOf(H)<0&&C.push(H);return C};we.getRequiredLazySlides=function(y){for(var C=[],W=x(y),J=T(y),H=W;H<J;H++)C.push(H);return C};var x=we.lazyStartIndex=function(y){return y.currentSlide-N(y)},T=we.lazyEndIndex=function(y){return y.currentSlide+_(y)},N=we.lazySlidesOnLeft=function(y){return y.centerMode?Math.floor(y.slidesToShow/2)+(parseInt(y.centerPadding)>0?1:0):0},_=we.lazySlidesOnRight=function(y){return y.centerMode?Math.floor((y.slidesToShow-1)/2)+1+(parseInt(y.centerPadding)>0?1:0):y.slidesToShow},z=we.getWidth=function(y){return y&&y.offsetWidth||0},$=we.getHeight=function(y){return y&&y.offsetHeight||0},V=we.getSwipeDirection=function(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W,J,H,U;return W=y.startX-y.curX,J=y.startY-y.curY,H=Math.atan2(J,W),U=Math.round(H*180/Math.PI),U<0&&(U=360-Math.abs(U)),U<=45&&U>=0||U<=360&&U>=315?"left":U>=135&&U<=225?"right":C===!0?U>=35&&U<=135?"up":"down":"vertical"},I=we.canGoNext=function(y){var C=!0;return y.infinite||(y.centerMode&&y.currentSlide>=y.slideCount-1||y.slideCount<=y.slidesToShow||y.currentSlide>=y.slideCount-y.slidesToShow)&&(C=!1),C};we.extractObject=function(y,C){var W={};return C.forEach(function(J){return W[J]=y[J]}),W},we.initializedState=function(y){var C=r.default.Children.count(y.children),W=y.listRef,J=Math.ceil(z(W)),H=y.trackRef&&y.trackRef.node,U=Math.ceil(z(H)),Z;if(y.vertical)Z=J;else{var re=y.centerMode&&parseInt(y.centerPadding)*2;typeof y.centerPadding=="string"&&y.centerPadding.slice(-1)==="%"&&(re*=J/100),Z=Math.ceil((J-re)/y.slidesToShow)}var ue=W&&$(W.querySelector('[data-index="0"]')),me=ue*y.slidesToShow,pe=y.currentSlide===void 0?y.initialSlide:y.currentSlide;y.rtl&&y.currentSlide===void 0&&(pe=C-1-y.initialSlide);var ve=y.lazyLoadedList||[],he=v(u(u({},y),{},{currentSlide:pe,lazyLoadedList:ve}));ve=ve.concat(he);var ge={slideCount:C,slideWidth:Z,listWidth:J,trackWidth:U,currentSlide:pe,slideHeight:ue,listHeight:me,lazyLoadedList:ve};return y.autoplaying===null&&y.autoplay&&(ge.autoplaying="playing"),ge},we.slideHandler=function(y){var C=y.waitForAnimate,W=y.animating,J=y.fade,H=y.infinite,U=y.index,Z=y.slideCount,re=y.lazyLoad,ue=y.currentSlide,me=y.centerMode,pe=y.slidesToScroll,ve=y.slidesToShow,he=y.useCSS,ge=y.lazyLoadedList;if(C&&W)return{};var Se=U,ye,Re,be,Le={},Pe={},Te=H?U:p(U,0,Z-1);if(J){if(!H&&(U<0||U>=Z))return{};U<0?Se=U+Z:U>=Z&&(Se=U-Z),re&&ge.indexOf(Se)<0&&(ge=ge.concat(Se)),Le={animating:!0,currentSlide:Se,lazyLoadedList:ge,targetSlide:Se},Pe={animating:!1,targetSlide:Se}}else ye=Se,Se<0?(ye=Se+Z,H?Z%pe!==0&&(ye=Z-Z%pe):ye=0):!I(y)&&Se>ue?Se=ye=ue:me&&Se>=Z?(Se=H?Z:Z-1,ye=H?0:Z-1):Se>=Z&&(ye=Se-Z,H?Z%pe!==0&&(ye=0):ye=Z-ve),!H&&Se+ve>=Z&&(ye=Z-ve),Re=E(u(u({},y),{},{slideIndex:Se})),be=E(u(u({},y),{},{slideIndex:ye})),H||(Re===be&&(Se=ye),Re=be),re&&(ge=ge.concat(v(u(u({},y),{},{currentSlide:Se})))),he?(Le={animating:!0,currentSlide:ye,trackStyle:D(u(u({},y),{},{left:Re})),lazyLoadedList:ge,targetSlide:Te},Pe={animating:!1,currentSlide:ye,trackStyle:F(u(u({},y),{},{left:be})),swipeLeft:null,targetSlide:Te}):Le={currentSlide:ye,trackStyle:F(u(u({},y),{},{left:be})),lazyLoadedList:ge,targetSlide:Te};return{state:Le,nextState:Pe}},we.changeSlide=function(y,C){var W,J,H,U,Z,re=y.slidesToScroll,ue=y.slidesToShow,me=y.slideCount,pe=y.currentSlide,ve=y.targetSlide,he=y.lazyLoad,ge=y.infinite;if(U=me%re!==0,W=U?0:(me-pe)%re,C.message==="previous")H=W===0?re:ue-W,Z=pe-H,he&&!ge&&(J=pe-H,Z=J===-1?me-1:J),ge||(Z=ve-re);else if(C.message==="next")H=W===0?re:W,Z=pe+H,he&&!ge&&(Z=(pe+re)%me+W),ge||(Z=ve+re);else if(C.message==="dots")Z=C.index*C.slidesToScroll;else if(C.message==="children"){if(Z=C.index,ge){var Se=k(u(u({},y),{},{targetSlide:Z}));Z>C.currentSlide&&Se==="left"?Z=Z-me:Z<C.currentSlide&&Se==="right"&&(Z=Z+me)}}else C.message==="index"&&(Z=Number(C.index));return Z},we.keyHandler=function(y,C,W){return y.target.tagName.match("TEXTAREA|INPUT|SELECT")||!C?"":y.keyCode===37?W?"next":"previous":y.keyCode===39?W?"previous":"next":""},we.swipeStart=function(y,C,W){return y.target.tagName==="IMG"&&g(y),!C||!W&&y.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:y.touches?y.touches[0].pageX:y.clientX,startY:y.touches?y.touches[0].pageY:y.clientY,curX:y.touches?y.touches[0].pageX:y.clientX,curY:y.touches?y.touches[0].pageY:y.clientY}}},we.swipeMove=function(y,C){var W=C.scrolling,J=C.animating,H=C.vertical,U=C.swipeToSlide,Z=C.verticalSwiping,re=C.rtl,ue=C.currentSlide,me=C.edgeFriction,pe=C.edgeDragged,ve=C.onEdge,he=C.swiped,ge=C.swiping,Se=C.slideCount,ye=C.slidesToScroll,Re=C.infinite,be=C.touchObject,Le=C.swipeEvent,Pe=C.listHeight,Te=C.listWidth;if(!W){if(J)return g(y);H&&U&&Z&&g(y);var ke,ot={},ft=E(C);be.curX=y.touches?y.touches[0].pageX:y.clientX,be.curY=y.touches?y.touches[0].pageY:y.clientY,be.swipeLength=Math.round(Math.sqrt(Math.pow(be.curX-be.startX,2)));var yt=Math.round(Math.sqrt(Math.pow(be.curY-be.startY,2)));if(!Z&&!ge&&yt>10)return{scrolling:!0};Z&&(be.swipeLength=yt);var Nt=(re?-1:1)*(be.curX>be.startX?1:-1);Z&&(Nt=be.curY>be.startY?1:-1);var Ae=Math.ceil(Se/ye),Be=V(C.touchObject,Z),nt=be.swipeLength;return Re||(ue===0&&(Be==="right"||Be==="down")||ue+1>=Ae&&(Be==="left"||Be==="up")||!I(C)&&(Be==="left"||Be==="up"))&&(nt=be.swipeLength*me,pe===!1&&ve&&(ve(Be),ot.edgeDragged=!0)),!he&&Le&&(Le(Be),ot.swiped=!0),H?ke=ft+nt*(Pe/Te)*Nt:re?ke=ft-nt*Nt:ke=ft+nt*Nt,Z&&(ke=ft+nt*Nt),ot=u(u({},ot),{},{touchObject:be,swipeLeft:ke,trackStyle:F(u(u({},C),{},{left:ke}))}),Math.abs(be.curX-be.startX)<Math.abs(be.curY-be.startY)*.8||be.swipeLength>10&&(ot.swiping=!0,g(y)),ot}},we.swipeEnd=function(y,C){var W=C.dragging,J=C.swipe,H=C.touchObject,U=C.listWidth,Z=C.touchThreshold,re=C.verticalSwiping,ue=C.listHeight,me=C.swipeToSlide,pe=C.scrolling,ve=C.onSwipe,he=C.targetSlide,ge=C.currentSlide,Se=C.infinite;if(!W)return J&&g(y),{};var ye=re?ue/Z:U/Z,Re=V(H,re),be={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(pe||!H.swipeLength)return be;if(H.swipeLength>ye){g(y),ve&&ve(Re);var Le,Pe,Te=Se?ge:he;switch(Re){case"left":case"up":Pe=Te+M(C),Le=me?j(C,Pe):Pe,be.currentDirection=0;break;case"right":case"down":Pe=Te-M(C),Le=me?j(C,Pe):Pe,be.currentDirection=1;break;default:Le=Te}be.triggerSlideHandler=Le}else{var ke=E(C);be.trackStyle=D(u(u({},C),{},{left:ke}))}return be};var Q=we.getNavigableIndexes=function(y){for(var C=y.infinite?y.slideCount*2:y.slideCount,W=y.infinite?y.slidesToShow*-1:0,J=y.infinite?y.slidesToShow*-1:0,H=[];W<C;)H.push(W),W=J+y.slidesToScroll,J+=Math.min(y.slidesToScroll,y.slidesToShow);return H},j=we.checkNavigable=function(y,C){var W=Q(y),J=0;if(C>W[W.length-1])C=W[W.length-1];else for(var H in W){if(C<W[H]){C=J;break}J=W[H]}return C},M=we.getSlideCount=function(y){var C=y.centerMode?y.slideWidth*Math.floor(y.slidesToShow/2):0;if(y.swipeToSlide){var W,J=y.listRef,H=J.querySelectorAll&&J.querySelectorAll(".slick-slide")||[];if(Array.from(H).every(function(re){if(y.vertical){if(re.offsetTop+$(re)/2>y.swipeLeft*-1)return W=re,!1}else if(re.offsetLeft-C+z(re)/2>y.swipeLeft*-1)return W=re,!1;return!0}),!W)return 0;var U=y.rtl===!0?y.slideCount-y.currentSlide:y.currentSlide,Z=Math.abs(W.dataset.index-U)||1;return Z}else return y.slidesToScroll},P=we.checkSpecKeys=function(y,C){return C.reduce(function(W,J){return W&&y.hasOwnProperty(J)},!0)?null:console.error("Keys Missing:",y)},F=we.getTrackCSS=function(y){P(y,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var C,W,J=y.slideCount+2*y.slidesToShow;y.vertical?W=J*y.slideHeight:C=q(y)*y.slideWidth;var H={opacity:1,transition:"",WebkitTransition:""};if(y.useTransform){var U=y.vertical?"translate3d(0px, "+y.left+"px, 0px)":"translate3d("+y.left+"px, 0px, 0px)",Z=y.vertical?"translate3d(0px, "+y.left+"px, 0px)":"translate3d("+y.left+"px, 0px, 0px)",re=y.vertical?"translateY("+y.left+"px)":"translateX("+y.left+"px)";H=u(u({},H),{},{WebkitTransform:U,transform:Z,msTransform:re})}else y.vertical?H.top=y.left:H.left=y.left;return y.fade&&(H={opacity:1}),C&&(H.width=C),W&&(H.height=W),window&&!window.addEventListener&&window.attachEvent&&(y.vertical?H.marginTop=y.left+"px":H.marginLeft=y.left+"px"),H},D=we.getTrackAnimateCSS=function(y){P(y,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var C=F(y);return y.useTransform?(C.WebkitTransition="-webkit-transform "+y.speed+"ms "+y.cssEase,C.transition="transform "+y.speed+"ms "+y.cssEase):y.vertical?C.transition="top "+y.speed+"ms "+y.cssEase:C.transition="left "+y.speed+"ms "+y.cssEase,C},E=we.getTrackLeft=function(y){if(y.unslick)return 0;P(y,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var C=y.slideIndex,W=y.trackRef,J=y.infinite,H=y.centerMode,U=y.slideCount,Z=y.slidesToShow,re=y.slidesToScroll,ue=y.slideWidth,me=y.listWidth,pe=y.variableWidth,ve=y.slideHeight,he=y.fade,ge=y.vertical,Se=0,ye,Re,be=0;if(he||y.slideCount===1)return 0;var Le=0;if(J?(Le=-X(y),U%re!==0&&C+re>U&&(Le=-(C>U?Z-(C-U):U%re)),H&&(Le+=parseInt(Z/2))):(U%re!==0&&C+re>U&&(Le=Z-U%re),H&&(Le=parseInt(Z/2))),Se=Le*ue,be=Le*ve,ge?ye=C*ve*-1+be:ye=C*ue*-1+Se,pe===!0){var Pe,Te=W&&W.node;if(Pe=C+X(y),Re=Te&&Te.childNodes[Pe],ye=Re?Re.offsetLeft*-1:0,H===!0){Pe=J?C+X(y):C,Re=Te&&Te.children[Pe],ye=0;for(var ke=0;ke<Pe;ke++)ye-=Te&&Te.children[ke]&&Te.children[ke].offsetWidth;ye-=parseInt(y.centerPadding),ye+=Re&&(me-Re.offsetWidth)/2}}return ye},X=we.getPreClones=function(y){return y.unslick||!y.infinite?0:y.variableWidth?y.slideCount:y.slidesToShow+(y.centerMode?1:0)},B=we.getPostClones=function(y){return y.unslick||!y.infinite?0:y.slideCount},q=we.getTotalSlides=function(y){return y.slideCount===1?1:X(y)+y.slideCount+B(y)},k=we.siblingDirection=function(y){return y.targetSlide>y.currentSlide?y.targetSlide>y.currentSlide+G(y)?"left":"right":y.targetSlide<y.currentSlide-L(y)?"right":"left"},G=we.slidesOnRight=function(y){var C=y.slidesToShow,W=y.centerMode,J=y.rtl,H=y.centerPadding;if(W){var U=(C-1)/2+1;return parseInt(H)>0&&(U+=1),J&&C%2===0&&(U+=1),U}return J?0:C-1},L=we.slidesOnLeft=function(y){var C=y.slidesToShow,W=y.centerMode,J=y.rtl,H=y.centerPadding;if(W){var U=(C-1)/2+1;return parseInt(H)>0&&(U+=1),!J&&C%2===0&&(U+=1),U}return J?C-1:0};we.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var b=we.validSettings=Object.keys(t.default);function te(R){return b.reduce(function(y,C){return R.hasOwnProperty(C)&&(y[C]=R[C]),y},{})}return we}var Zl={},A1;function v4(){if(A1)return Zl;A1=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.Track=void 0;var r=l(Cn()),t=l(Co()),a=Do();function l(D){return D&&D.__esModule?D:{default:D}}function o(D){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},o(D)}function u(){return u=Object.assign?Object.assign.bind():function(D){for(var E=1;E<arguments.length;E++){var X=arguments[E];for(var B in X)Object.prototype.hasOwnProperty.call(X,B)&&(D[B]=X[B])}return D},u.apply(this,arguments)}function c(D,E){if(!(D instanceof E))throw new TypeError("Cannot call a class as a function")}function d(D,E){for(var X=0;X<E.length;X++){var B=E[X];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(D,I(B.key),B)}}function h(D,E,X){return E&&d(D.prototype,E),Object.defineProperty(D,"prototype",{writable:!1}),D}function p(D,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(E&&E.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),E&&g(D,E)}function g(D,E){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,q){return B.__proto__=q,B},g(D,E)}function v(D){var E=N();return function(){var B=_(D),q;if(E){var k=_(this).constructor;q=Reflect.construct(B,arguments,k)}else q=B.apply(this,arguments);return x(this,q)}}function x(D,E){if(E&&(o(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(D)}function T(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function N(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N=function(){return!!D})()}function _(D){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},_(D)}function z(D,E){var X=Object.keys(D);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(D);E&&(B=B.filter(function(q){return Object.getOwnPropertyDescriptor(D,q).enumerable})),X.push.apply(X,B)}return X}function $(D){for(var E=1;E<arguments.length;E++){var X=arguments[E]!=null?arguments[E]:{};E%2?z(Object(X),!0).forEach(function(B){V(D,B,X[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(X)):z(Object(X)).forEach(function(B){Object.defineProperty(D,B,Object.getOwnPropertyDescriptor(X,B))})}return D}function V(D,E,X){return E=I(E),E in D?Object.defineProperty(D,E,{value:X,enumerable:!0,configurable:!0,writable:!0}):D[E]=X,D}function I(D){var E=Q(D,"string");return o(E)=="symbol"?E:String(E)}function Q(D,E){if(o(D)!="object"||!D)return D;var X=D[Symbol.toPrimitive];if(X!==void 0){var B=X.call(D,E);if(o(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(D)}var j=function(E){var X,B,q,k,G;E.rtl?G=E.slideCount-1-E.index:G=E.index,q=G<0||G>=E.slideCount,E.centerMode?(k=Math.floor(E.slidesToShow/2),B=(G-E.currentSlide)%E.slideCount===0,G>E.currentSlide-k-1&&G<=E.currentSlide+k&&(X=!0)):X=E.currentSlide<=G&&G<E.currentSlide+E.slidesToShow;var L;E.targetSlide<0?L=E.targetSlide+E.slideCount:E.targetSlide>=E.slideCount?L=E.targetSlide-E.slideCount:L=E.targetSlide;var b=G===L;return{"slick-slide":!0,"slick-active":X,"slick-center":B,"slick-cloned":q,"slick-current":b}},M=function(E){var X={};return(E.variableWidth===void 0||E.variableWidth===!1)&&(X.width=E.slideWidth),E.fade&&(X.position="relative",E.vertical?X.top=-E.index*parseInt(E.slideHeight):X.left=-E.index*parseInt(E.slideWidth),X.opacity=E.currentSlide===E.index?1:0,X.zIndex=E.currentSlide===E.index?999:998,E.useCSS&&(X.transition="opacity "+E.speed+"ms "+E.cssEase+", visibility "+E.speed+"ms "+E.cssEase)),X},P=function(E,X){return E.key||X},F=function(E){var X,B=[],q=[],k=[],G=r.default.Children.count(E.children),L=(0,a.lazyStartIndex)(E),b=(0,a.lazyEndIndex)(E);return r.default.Children.forEach(E.children,function(te,R){var y,C={message:"children",index:R,slidesToScroll:E.slidesToScroll,currentSlide:E.currentSlide};!E.lazyLoad||E.lazyLoad&&E.lazyLoadedList.indexOf(R)>=0?y=te:y=r.default.createElement("div",null);var W=M($($({},E),{},{index:R})),J=y.props.className||"",H=j($($({},E),{},{index:R}));if(B.push(r.default.cloneElement(y,{key:"original"+P(y,R),"data-index":R,className:(0,t.default)(H,J),tabIndex:"-1","aria-hidden":!H["slick-active"],style:$($({outline:"none"},y.props.style||{}),W),onClick:function(re){y.props&&y.props.onClick&&y.props.onClick(re),E.focusOnSelect&&E.focusOnSelect(C)}})),E.infinite&&E.fade===!1){var U=G-R;U<=(0,a.getPreClones)(E)&&(X=-U,X>=L&&(y=te),H=j($($({},E),{},{index:X})),q.push(r.default.cloneElement(y,{key:"precloned"+P(y,X),"data-index":X,tabIndex:"-1",className:(0,t.default)(H,J),"aria-hidden":!H["slick-active"],style:$($({},y.props.style||{}),W),onClick:function(re){y.props&&y.props.onClick&&y.props.onClick(re),E.focusOnSelect&&E.focusOnSelect(C)}}))),X=G+R,X<b&&(y=te),H=j($($({},E),{},{index:X})),k.push(r.default.cloneElement(y,{key:"postcloned"+P(y,X),"data-index":X,tabIndex:"-1",className:(0,t.default)(H,J),"aria-hidden":!H["slick-active"],style:$($({},y.props.style||{}),W),onClick:function(re){y.props&&y.props.onClick&&y.props.onClick(re),E.focusOnSelect&&E.focusOnSelect(C)}}))}}),E.rtl?q.concat(B,k).reverse():q.concat(B,k)};return Zl.Track=function(D){p(X,D);var E=v(X);function X(){var B;c(this,X);for(var q=arguments.length,k=new Array(q),G=0;G<q;G++)k[G]=arguments[G];return B=E.call.apply(E,[this].concat(k)),V(T(B),"node",null),V(T(B),"handleRef",function(L){B.node=L}),B}return h(X,[{key:"render",value:function(){var q=F(this.props),k=this.props,G=k.onMouseEnter,L=k.onMouseOver,b=k.onMouseLeave,te={onMouseEnter:G,onMouseOver:L,onMouseLeave:b};return r.default.createElement("div",u({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},te),q)}}]),X}(r.default.PureComponent),Zl}var Kl={},M1;function y4(){if(M1)return Kl;M1=1;function r(j){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},r(j)}Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.Dots=void 0;var t=o(Cn()),a=o(Co()),l=Do();function o(j){return j&&j.__esModule?j:{default:j}}function u(j,M){var P=Object.keys(j);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(j);M&&(F=F.filter(function(D){return Object.getOwnPropertyDescriptor(j,D).enumerable})),P.push.apply(P,F)}return P}function c(j){for(var M=1;M<arguments.length;M++){var P=arguments[M]!=null?arguments[M]:{};M%2?u(Object(P),!0).forEach(function(F){d(j,F,P[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(P)):u(Object(P)).forEach(function(F){Object.defineProperty(j,F,Object.getOwnPropertyDescriptor(P,F))})}return j}function d(j,M,P){return M=v(M),M in j?Object.defineProperty(j,M,{value:P,enumerable:!0,configurable:!0,writable:!0}):j[M]=P,j}function h(j,M){if(!(j instanceof M))throw new TypeError("Cannot call a class as a function")}function p(j,M){for(var P=0;P<M.length;P++){var F=M[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(j,v(F.key),F)}}function g(j,M,P){return M&&p(j.prototype,M),Object.defineProperty(j,"prototype",{writable:!1}),j}function v(j){var M=x(j,"string");return r(M)=="symbol"?M:String(M)}function x(j,M){if(r(j)!="object"||!j)return j;var P=j[Symbol.toPrimitive];if(P!==void 0){var F=P.call(j,M);if(r(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(j)}function T(j,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(M&&M.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),M&&N(j,M)}function N(j,M){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,D){return F.__proto__=D,F},N(j,M)}function _(j){var M=V();return function(){var F=I(j),D;if(M){var E=I(this).constructor;D=Reflect.construct(F,arguments,E)}else D=F.apply(this,arguments);return z(this,D)}}function z(j,M){if(M&&(r(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $(j)}function $(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function V(){try{var j=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V=function(){return!!j})()}function I(j){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},I(j)}var Q=function(M){var P;return M.infinite?P=Math.ceil(M.slideCount/M.slidesToScroll):P=Math.ceil((M.slideCount-M.slidesToShow)/M.slidesToScroll)+1,P};return Kl.Dots=function(j){T(P,j);var M=_(P);function P(){return h(this,P),M.apply(this,arguments)}return g(P,[{key:"clickHandler",value:function(D,E){E.preventDefault(),this.props.clickHandler(D)}},{key:"render",value:function(){for(var D=this.props,E=D.onMouseEnter,X=D.onMouseOver,B=D.onMouseLeave,q=D.infinite,k=D.slidesToScroll,G=D.slidesToShow,L=D.slideCount,b=D.currentSlide,te=Q({slideCount:L,slidesToScroll:k,slidesToShow:G,infinite:q}),R={onMouseEnter:E,onMouseOver:X,onMouseLeave:B},y=[],C=0;C<te;C++){var W=(C+1)*k-1,J=q?W:(0,l.clamp)(W,0,L-1),H=J-(k-1),U=q?H:(0,l.clamp)(H,0,L-1),Z=(0,a.default)({"slick-active":q?b>=U&&b<=J:b===U}),re={message:"dots",index:C,slidesToScroll:k,currentSlide:b},ue=this.clickHandler.bind(this,re);y=y.concat(t.default.createElement("li",{key:C,className:Z},t.default.cloneElement(this.props.customPaging(C),{onClick:ue})))}return t.default.cloneElement(this.props.appendDots(y),c({className:this.props.dotsClass},R))}}]),P}(t.default.PureComponent),Kl}var Na={},N1;function b4(){if(N1)return Na;N1=1;function r(j){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},r(j)}Object.defineProperty(Na,"__esModule",{value:!0}),Na.PrevArrow=Na.NextArrow=void 0;var t=o(Cn()),a=o(Co()),l=Do();function o(j){return j&&j.__esModule?j:{default:j}}function u(){return u=Object.assign?Object.assign.bind():function(j){for(var M=1;M<arguments.length;M++){var P=arguments[M];for(var F in P)Object.prototype.hasOwnProperty.call(P,F)&&(j[F]=P[F])}return j},u.apply(this,arguments)}function c(j,M){var P=Object.keys(j);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(j);M&&(F=F.filter(function(D){return Object.getOwnPropertyDescriptor(j,D).enumerable})),P.push.apply(P,F)}return P}function d(j){for(var M=1;M<arguments.length;M++){var P=arguments[M]!=null?arguments[M]:{};M%2?c(Object(P),!0).forEach(function(F){h(j,F,P[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(P)):c(Object(P)).forEach(function(F){Object.defineProperty(j,F,Object.getOwnPropertyDescriptor(P,F))})}return j}function h(j,M,P){return M=x(M),M in j?Object.defineProperty(j,M,{value:P,enumerable:!0,configurable:!0,writable:!0}):j[M]=P,j}function p(j,M){if(!(j instanceof M))throw new TypeError("Cannot call a class as a function")}function g(j,M){for(var P=0;P<M.length;P++){var F=M[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(j,x(F.key),F)}}function v(j,M,P){return M&&g(j.prototype,M),Object.defineProperty(j,"prototype",{writable:!1}),j}function x(j){var M=T(j,"string");return r(M)=="symbol"?M:String(M)}function T(j,M){if(r(j)!="object"||!j)return j;var P=j[Symbol.toPrimitive];if(P!==void 0){var F=P.call(j,M);if(r(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(j)}function N(j,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(M&&M.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),M&&_(j,M)}function _(j,M){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,D){return F.__proto__=D,F},_(j,M)}function z(j){var M=I();return function(){var F=Q(j),D;if(M){var E=Q(this).constructor;D=Reflect.construct(F,arguments,E)}else D=F.apply(this,arguments);return $(this,D)}}function $(j,M){if(M&&(r(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V(j)}function V(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function I(){try{var j=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I=function(){return!!j})()}function Q(j){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},Q(j)}return Na.PrevArrow=function(j){N(P,j);var M=z(P);function P(){return p(this,P),M.apply(this,arguments)}return v(P,[{key:"clickHandler",value:function(D,E){E&&E.preventDefault(),this.props.clickHandler(D,E)}},{key:"render",value:function(){var D={"slick-arrow":!0,"slick-prev":!0},E=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(D["slick-disabled"]=!0,E=null);var X={key:"0","data-role":"none",className:(0,a.default)(D),style:{display:"block"},onClick:E},B={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},q;return this.props.prevArrow?q=t.default.cloneElement(this.props.prevArrow,d(d({},X),B)):q=t.default.createElement("button",u({key:"0",type:"button"},X)," ","Previous"),q}}]),P}(t.default.PureComponent),Na.NextArrow=function(j){N(P,j);var M=z(P);function P(){return p(this,P),M.apply(this,arguments)}return v(P,[{key:"clickHandler",value:function(D,E){E&&E.preventDefault(),this.props.clickHandler(D,E)}},{key:"render",value:function(){var D={"slick-arrow":!0,"slick-next":!0},E=this.clickHandler.bind(this,{message:"next"});(0,l.canGoNext)(this.props)||(D["slick-disabled"]=!0,E=null);var X={key:"1","data-role":"none",className:(0,a.default)(D),style:{display:"block"},onClick:E},B={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},q;return this.props.nextArrow?q=t.default.cloneElement(this.props.nextArrow,d(d({},X),B)):q=t.default.createElement("button",u({key:"1",type:"button"},X)," ","Next"),q}}]),P}(t.default.PureComponent),Na}var XO=function(){if(typeof Map<"u")return Map;function r(t,a){var l=-1;return t.some(function(o,u){return o[0]===a?(l=u,!0):!1}),l}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(a){var l=r(this.__entries__,a),o=this.__entries__[l];return o&&o[1]},t.prototype.set=function(a,l){var o=r(this.__entries__,a);~o?this.__entries__[o][1]=l:this.__entries__.push([a,l])},t.prototype.delete=function(a){var l=this.__entries__,o=r(l,a);~o&&l.splice(o,1)},t.prototype.has=function(a){return!!~r(this.__entries__,a)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(a,l){l===void 0&&(l=null);for(var o=0,u=this.__entries__;o<u.length;o++){var c=u[o];a.call(l,c[1],c[0])}},t}()}(),qp=typeof window<"u"&&typeof document<"u"&&window.document===document,pu=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),S4=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(pu):function(r){return setTimeout(function(){return r(Date.now())},1e3/60)}}(),w4=2;function x4(r,t){var a=!1,l=!1,o=0;function u(){a&&(a=!1,r()),l&&d()}function c(){S4(u)}function d(){var h=Date.now();if(a){if(h-o<w4)return;l=!0}else a=!0,l=!1,setTimeout(c,t);o=h}return d}var O4=20,E4=["top","right","bottom","left","width","height","size","weight"],T4=typeof MutationObserver<"u",C4=function(){function r(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=x4(this.refresh.bind(this),O4)}return r.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},r.prototype.removeObserver=function(t){var a=this.observers_,l=a.indexOf(t);~l&&a.splice(l,1),!a.length&&this.connected_&&this.disconnect_()},r.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},r.prototype.updateObservers_=function(){var t=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return t.forEach(function(a){return a.broadcastActive()}),t.length>0},r.prototype.connect_=function(){!qp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),T4?(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)},r.prototype.disconnect_=function(){!qp||!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)},r.prototype.onTransitionEnd_=function(t){var a=t.propertyName,l=a===void 0?"":a,o=E4.some(function(u){return!!~l.indexOf(u)});o&&this.refresh()},r.getInstance=function(){return this.instance_||(this.instance_=new r),this.instance_},r.instance_=null,r}(),FO=function(r,t){for(var a=0,l=Object.keys(t);a<l.length;a++){var o=l[a];Object.defineProperty(r,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return r},Ni=function(r){var t=r&&r.ownerDocument&&r.ownerDocument.defaultView;return t||pu},QO=Mu(0,0,0,0);function mu(r){return parseFloat(r)||0}function D1(r){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return t.reduce(function(l,o){var u=r["border-"+o+"-width"];return l+mu(u)},0)}function R4(r){for(var t=["top","right","bottom","left"],a={},l=0,o=t;l<o.length;l++){var u=o[l],c=r["padding-"+u];a[u]=mu(c)}return a}function _4(r){var t=r.getBBox();return Mu(0,0,t.width,t.height)}function j4(r){var t=r.clientWidth,a=r.clientHeight;if(!t&&!a)return QO;var l=Ni(r).getComputedStyle(r),o=R4(l),u=o.left+o.right,c=o.top+o.bottom,d=mu(l.width),h=mu(l.height);if(l.boxSizing==="border-box"&&(Math.round(d+u)!==t&&(d-=D1(l,"left","right")+u),Math.round(h+c)!==a&&(h-=D1(l,"top","bottom")+c)),!M4(r)){var p=Math.round(d+u)-t,g=Math.round(h+c)-a;Math.abs(p)!==1&&(d-=p),Math.abs(g)!==1&&(h-=g)}return Mu(o.left,o.top,d,h)}var A4=function(){return typeof SVGGraphicsElement<"u"?function(r){return r instanceof Ni(r).SVGGraphicsElement}:function(r){return r instanceof Ni(r).SVGElement&&typeof r.getBBox=="function"}}();function M4(r){return r===Ni(r).document.documentElement}function N4(r){return qp?A4(r)?_4(r):j4(r):QO}function D4(r){var t=r.x,a=r.y,l=r.width,o=r.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(u.prototype);return FO(c,{x:t,y:a,width:l,height:o,top:a,right:t+l,bottom:o+a,left:t}),c}function Mu(r,t,a,l){return{x:r,y:t,width:a,height:l}}var L4=function(){function r(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Mu(0,0,0,0),this.target=t}return r.prototype.isActive=function(){var t=N4(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},r.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},r}(),z4=function(){function r(t,a){var l=D4(a);FO(this,{target:t,contentRect:l})}return r}(),P4=function(){function r(t,a,l){if(this.activeObservations_=[],this.observations_=new XO,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=a,this.callbackCtx_=l}return r.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ni(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)||(a.set(t,new L4(t)),this.controller_.addObserver(this),this.controller_.refresh())}},r.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ni(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)&&(a.delete(t),a.size||this.controller_.removeObserver(this))}},r.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},r.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&t.activeObservations_.push(a)})},r.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,a=this.activeObservations_.map(function(l){return new z4(l.target,l.broadcastRect())});this.callback_.call(t,a,t),this.clearActive()}},r.prototype.clearActive=function(){this.activeObservations_.splice(0)},r.prototype.hasActive=function(){return this.activeObservations_.length>0},r}(),ZO=typeof WeakMap<"u"?new WeakMap:new XO,KO=function(){function r(t){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=C4.getInstance(),l=new P4(t,a,this);ZO.set(this,l)}return r}();["observe","unobserve","disconnect"].forEach(function(r){KO.prototype[r]=function(){var t;return(t=ZO.get(this))[r].apply(t,arguments)}});var H4=function(){return typeof pu.ResizeObserver<"u"?pu.ResizeObserver:KO}();const k4=Object.freeze(Object.defineProperty({__proto__:null,default:H4},Symbol.toStringTag,{value:"Module"})),B4=Y1(k4);var L1;function $4(){if(L1)return Ql;L1=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.InnerSlider=void 0;var r=p(Cn()),t=p(m4()),a=p(g4()),l=p(Co()),o=Do(),u=v4(),c=y4(),d=b4(),h=p(B4);function p(q){return q&&q.__esModule?q:{default:q}}function g(q){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},g(q)}function v(){return v=Object.assign?Object.assign.bind():function(q){for(var k=1;k<arguments.length;k++){var G=arguments[k];for(var L in G)Object.prototype.hasOwnProperty.call(G,L)&&(q[L]=G[L])}return q},v.apply(this,arguments)}function x(q,k){if(q==null)return{};var G=T(q,k),L,b;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(q);for(b=0;b<te.length;b++)L=te[b],!(k.indexOf(L)>=0)&&Object.prototype.propertyIsEnumerable.call(q,L)&&(G[L]=q[L])}return G}function T(q,k){if(q==null)return{};var G={},L=Object.keys(q),b,te;for(te=0;te<L.length;te++)b=L[te],!(k.indexOf(b)>=0)&&(G[b]=q[b]);return G}function N(q,k){var G=Object.keys(q);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(q);k&&(L=L.filter(function(b){return Object.getOwnPropertyDescriptor(q,b).enumerable})),G.push.apply(G,L)}return G}function _(q){for(var k=1;k<arguments.length;k++){var G=arguments[k]!=null?arguments[k]:{};k%2?N(Object(G),!0).forEach(function(L){E(q,L,G[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(G)):N(Object(G)).forEach(function(L){Object.defineProperty(q,L,Object.getOwnPropertyDescriptor(G,L))})}return q}function z(q,k){if(!(q instanceof k))throw new TypeError("Cannot call a class as a function")}function $(q,k){for(var G=0;G<k.length;G++){var L=k[G];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(q,X(L.key),L)}}function V(q,k,G){return k&&$(q.prototype,k),Object.defineProperty(q,"prototype",{writable:!1}),q}function I(q,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(k&&k.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),k&&Q(q,k)}function Q(q,k){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,b){return L.__proto__=b,L},Q(q,k)}function j(q){var k=F();return function(){var L=D(q),b;if(k){var te=D(this).constructor;b=Reflect.construct(L,arguments,te)}else b=L.apply(this,arguments);return M(this,b)}}function M(q,k){if(k&&(g(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(q)}function P(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}function F(){try{var q=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F=function(){return!!q})()}function D(q){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},D(q)}function E(q,k,G){return k=X(k),k in q?Object.defineProperty(q,k,{value:G,enumerable:!0,configurable:!0,writable:!0}):q[k]=G,q}function X(q){var k=B(q,"string");return g(k)=="symbol"?k:String(k)}function B(q,k){if(g(q)!="object"||!q)return q;var G=q[Symbol.toPrimitive];if(G!==void 0){var L=G.call(q,k);if(g(L)!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(q)}return Ql.InnerSlider=function(q){I(G,q);var k=j(G);function G(L){var b;z(this,G),b=k.call(this,L),E(P(b),"listRefHandler",function(R){return b.list=R}),E(P(b),"trackRefHandler",function(R){return b.track=R}),E(P(b),"adaptHeight",function(){if(b.props.adaptiveHeight&&b.list){var R=b.list.querySelector('[data-index="'.concat(b.state.currentSlide,'"]'));b.list.style.height=(0,o.getHeight)(R)+"px"}}),E(P(b),"componentDidMount",function(){if(b.props.onInit&&b.props.onInit(),b.props.lazyLoad){var R=(0,o.getOnDemandLazySlides)(_(_({},b.props),b.state));R.length>0&&(b.setState(function(C){return{lazyLoadedList:C.lazyLoadedList.concat(R)}}),b.props.onLazyLoad&&b.props.onLazyLoad(R))}var y=_({listRef:b.list,trackRef:b.track},b.props);b.updateState(y,!0,function(){b.adaptHeight(),b.props.autoplay&&b.autoPlay("update")}),b.props.lazyLoad==="progressive"&&(b.lazyLoadTimer=setInterval(b.progressiveLazyLoad,1e3)),b.ro=new h.default(function(){b.state.animating?(b.onWindowResized(!1),b.callbackTimers.push(setTimeout(function(){return b.onWindowResized()},b.props.speed))):b.onWindowResized()}),b.ro.observe(b.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(C){C.onfocus=b.props.pauseOnFocus?b.onSlideFocus:null,C.onblur=b.props.pauseOnFocus?b.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",b.onWindowResized):window.attachEvent("onresize",b.onWindowResized)}),E(P(b),"componentWillUnmount",function(){b.animationEndCallback&&clearTimeout(b.animationEndCallback),b.lazyLoadTimer&&clearInterval(b.lazyLoadTimer),b.callbackTimers.length&&(b.callbackTimers.forEach(function(R){return clearTimeout(R)}),b.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",b.onWindowResized):window.detachEvent("onresize",b.onWindowResized),b.autoplayTimer&&clearInterval(b.autoplayTimer),b.ro.disconnect()}),E(P(b),"componentDidUpdate",function(R){if(b.checkImagesLoad(),b.props.onReInit&&b.props.onReInit(),b.props.lazyLoad){var y=(0,o.getOnDemandLazySlides)(_(_({},b.props),b.state));y.length>0&&(b.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(y)}}),b.props.onLazyLoad&&b.props.onLazyLoad(y))}b.adaptHeight();var C=_(_({listRef:b.list,trackRef:b.track},b.props),b.state),W=b.didPropsChange(R);W&&b.updateState(C,W,function(){b.state.currentSlide>=r.default.Children.count(b.props.children)&&b.changeSlide({message:"index",index:r.default.Children.count(b.props.children)-b.props.slidesToShow,currentSlide:b.state.currentSlide}),b.props.autoplay?b.autoPlay("update"):b.pause("paused")})}),E(P(b),"onWindowResized",function(R){b.debouncedResize&&b.debouncedResize.cancel(),b.debouncedResize=(0,a.default)(function(){return b.resizeWindow(R)},50),b.debouncedResize()}),E(P(b),"resizeWindow",function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,y=!!(b.track&&b.track.node);if(y){var C=_(_({listRef:b.list,trackRef:b.track},b.props),b.state);b.updateState(C,R,function(){b.props.autoplay?b.autoPlay("update"):b.pause("paused")}),b.setState({animating:!1}),clearTimeout(b.animationEndCallback),delete b.animationEndCallback}}),E(P(b),"updateState",function(R,y,C){var W=(0,o.initializedState)(R);R=_(_(_({},R),W),{},{slideIndex:W.currentSlide});var J=(0,o.getTrackLeft)(R);R=_(_({},R),{},{left:J});var H=(0,o.getTrackCSS)(R);(y||r.default.Children.count(b.props.children)!==r.default.Children.count(R.children))&&(W.trackStyle=H),b.setState(W,C)}),E(P(b),"ssrInit",function(){if(b.props.variableWidth){var R=0,y=0,C=[],W=(0,o.getPreClones)(_(_(_({},b.props),b.state),{},{slideCount:b.props.children.length})),J=(0,o.getPostClones)(_(_(_({},b.props),b.state),{},{slideCount:b.props.children.length}));b.props.children.forEach(function(Re){C.push(Re.props.style.width),R+=Re.props.style.width});for(var H=0;H<W;H++)y+=C[C.length-1-H],R+=C[C.length-1-H];for(var U=0;U<J;U++)R+=C[U];for(var Z=0;Z<b.state.currentSlide;Z++)y+=C[Z];var re={width:R+"px",left:-y+"px"};if(b.props.centerMode){var ue="".concat(C[b.state.currentSlide],"px");re.left="calc(".concat(re.left," + (100% - ").concat(ue,") / 2 ) ")}return{trackStyle:re}}var me=r.default.Children.count(b.props.children),pe=_(_(_({},b.props),b.state),{},{slideCount:me}),ve=(0,o.getPreClones)(pe)+(0,o.getPostClones)(pe)+me,he=100/b.props.slidesToShow*ve,ge=100/ve,Se=-ge*((0,o.getPreClones)(pe)+b.state.currentSlide)*he/100;b.props.centerMode&&(Se+=(100-ge*he/100)/2);var ye={width:he+"%",left:Se+"%"};return{slideWidth:ge+"%",trackStyle:ye}}),E(P(b),"checkImagesLoad",function(){var R=b.list&&b.list.querySelectorAll&&b.list.querySelectorAll(".slick-slide img")||[],y=R.length,C=0;Array.prototype.forEach.call(R,function(W){var J=function(){return++C&&C>=y&&b.onWindowResized()};if(!W.onclick)W.onclick=function(){return W.parentNode.focus()};else{var H=W.onclick;W.onclick=function(U){H(U),W.parentNode.focus()}}W.onload||(b.props.lazyLoad?W.onload=function(){b.adaptHeight(),b.callbackTimers.push(setTimeout(b.onWindowResized,b.props.speed))}:(W.onload=J,W.onerror=function(){J(),b.props.onLazyLoadError&&b.props.onLazyLoadError()}))})}),E(P(b),"progressiveLazyLoad",function(){for(var R=[],y=_(_({},b.props),b.state),C=b.state.currentSlide;C<b.state.slideCount+(0,o.getPostClones)(y);C++)if(b.state.lazyLoadedList.indexOf(C)<0){R.push(C);break}for(var W=b.state.currentSlide-1;W>=-(0,o.getPreClones)(y);W--)if(b.state.lazyLoadedList.indexOf(W)<0){R.push(W);break}R.length>0?(b.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(R)}}),b.props.onLazyLoad&&b.props.onLazyLoad(R)):b.lazyLoadTimer&&(clearInterval(b.lazyLoadTimer),delete b.lazyLoadTimer)}),E(P(b),"slideHandler",function(R){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=b.props,W=C.asNavFor,J=C.beforeChange,H=C.onLazyLoad,U=C.speed,Z=C.afterChange,re=b.state.currentSlide,ue=(0,o.slideHandler)(_(_(_({index:R},b.props),b.state),{},{trackRef:b.track,useCSS:b.props.useCSS&&!y})),me=ue.state,pe=ue.nextState;if(me){J&&J(re,me.currentSlide);var ve=me.lazyLoadedList.filter(function(he){return b.state.lazyLoadedList.indexOf(he)<0});H&&ve.length>0&&H(ve),!b.props.waitForAnimate&&b.animationEndCallback&&(clearTimeout(b.animationEndCallback),Z&&Z(re),delete b.animationEndCallback),b.setState(me,function(){W&&b.asNavForIndex!==R&&(b.asNavForIndex=R,W.innerSlider.slideHandler(R)),pe&&(b.animationEndCallback=setTimeout(function(){var he=pe.animating,ge=x(pe,["animating"]);b.setState(ge,function(){b.callbackTimers.push(setTimeout(function(){return b.setState({animating:he})},10)),Z&&Z(me.currentSlide),delete b.animationEndCallback})},U))})}}),E(P(b),"changeSlide",function(R){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=_(_({},b.props),b.state),W=(0,o.changeSlide)(C,R);if(!(W!==0&&!W)&&(y===!0?b.slideHandler(W,y):b.slideHandler(W),b.props.autoplay&&b.autoPlay("update"),b.props.focusOnSelect)){var J=b.list.querySelectorAll(".slick-current");J[0]&&J[0].focus()}}),E(P(b),"clickHandler",function(R){b.clickable===!1&&(R.stopPropagation(),R.preventDefault()),b.clickable=!0}),E(P(b),"keyHandler",function(R){var y=(0,o.keyHandler)(R,b.props.accessibility,b.props.rtl);y!==""&&b.changeSlide({message:y})}),E(P(b),"selectHandler",function(R){b.changeSlide(R)}),E(P(b),"disableBodyScroll",function(){var R=function(C){C=C||window.event,C.preventDefault&&C.preventDefault(),C.returnValue=!1};window.ontouchmove=R}),E(P(b),"enableBodyScroll",function(){window.ontouchmove=null}),E(P(b),"swipeStart",function(R){b.props.verticalSwiping&&b.disableBodyScroll();var y=(0,o.swipeStart)(R,b.props.swipe,b.props.draggable);y!==""&&b.setState(y)}),E(P(b),"swipeMove",function(R){var y=(0,o.swipeMove)(R,_(_(_({},b.props),b.state),{},{trackRef:b.track,listRef:b.list,slideIndex:b.state.currentSlide}));y&&(y.swiping&&(b.clickable=!1),b.setState(y))}),E(P(b),"swipeEnd",function(R){var y=(0,o.swipeEnd)(R,_(_(_({},b.props),b.state),{},{trackRef:b.track,listRef:b.list,slideIndex:b.state.currentSlide}));if(y){var C=y.triggerSlideHandler;delete y.triggerSlideHandler,b.setState(y),C!==void 0&&(b.slideHandler(C),b.props.verticalSwiping&&b.enableBodyScroll())}}),E(P(b),"touchEnd",function(R){b.swipeEnd(R),b.clickable=!0}),E(P(b),"slickPrev",function(){b.callbackTimers.push(setTimeout(function(){return b.changeSlide({message:"previous"})},0))}),E(P(b),"slickNext",function(){b.callbackTimers.push(setTimeout(function(){return b.changeSlide({message:"next"})},0))}),E(P(b),"slickGoTo",function(R){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R=Number(R),isNaN(R))return"";b.callbackTimers.push(setTimeout(function(){return b.changeSlide({message:"index",index:R,currentSlide:b.state.currentSlide},y)},0))}),E(P(b),"play",function(){var R;if(b.props.rtl)R=b.state.currentSlide-b.props.slidesToScroll;else if((0,o.canGoNext)(_(_({},b.props),b.state)))R=b.state.currentSlide+b.props.slidesToScroll;else return!1;b.slideHandler(R)}),E(P(b),"autoPlay",function(R){b.autoplayTimer&&clearInterval(b.autoplayTimer);var y=b.state.autoplaying;if(R==="update"){if(y==="hovered"||y==="focused"||y==="paused")return}else if(R==="leave"){if(y==="paused"||y==="focused")return}else if(R==="blur"&&(y==="paused"||y==="hovered"))return;b.autoplayTimer=setInterval(b.play,b.props.autoplaySpeed+50),b.setState({autoplaying:"playing"})}),E(P(b),"pause",function(R){b.autoplayTimer&&(clearInterval(b.autoplayTimer),b.autoplayTimer=null);var y=b.state.autoplaying;R==="paused"?b.setState({autoplaying:"paused"}):R==="focused"?(y==="hovered"||y==="playing")&&b.setState({autoplaying:"focused"}):y==="playing"&&b.setState({autoplaying:"hovered"})}),E(P(b),"onDotsOver",function(){return b.props.autoplay&&b.pause("hovered")}),E(P(b),"onDotsLeave",function(){return b.props.autoplay&&b.state.autoplaying==="hovered"&&b.autoPlay("leave")}),E(P(b),"onTrackOver",function(){return b.props.autoplay&&b.pause("hovered")}),E(P(b),"onTrackLeave",function(){return b.props.autoplay&&b.state.autoplaying==="hovered"&&b.autoPlay("leave")}),E(P(b),"onSlideFocus",function(){return b.props.autoplay&&b.pause("focused")}),E(P(b),"onSlideBlur",function(){return b.props.autoplay&&b.state.autoplaying==="focused"&&b.autoPlay("blur")}),E(P(b),"render",function(){var R=(0,l.default)("slick-slider",b.props.className,{"slick-vertical":b.props.vertical,"slick-initialized":!0}),y=_(_({},b.props),b.state),C=(0,o.extractObject)(y,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),W=b.props.pauseOnHover;C=_(_({},C),{},{onMouseEnter:W?b.onTrackOver:null,onMouseLeave:W?b.onTrackLeave:null,onMouseOver:W?b.onTrackOver:null,focusOnSelect:b.props.focusOnSelect&&b.clickable?b.selectHandler:null});var J;if(b.props.dots===!0&&b.state.slideCount>=b.props.slidesToShow){var H=(0,o.extractObject)(y,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),U=b.props.pauseOnDotsHover;H=_(_({},H),{},{clickHandler:b.changeSlide,onMouseEnter:U?b.onDotsLeave:null,onMouseOver:U?b.onDotsOver:null,onMouseLeave:U?b.onDotsLeave:null}),J=r.default.createElement(c.Dots,H)}var Z,re,ue=(0,o.extractObject)(y,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);ue.clickHandler=b.changeSlide,b.props.arrows&&(Z=r.default.createElement(d.PrevArrow,ue),re=r.default.createElement(d.NextArrow,ue));var me=null;b.props.vertical&&(me={height:b.state.listHeight});var pe=null;b.props.vertical===!1?b.props.centerMode===!0&&(pe={padding:"0px "+b.props.centerPadding}):b.props.centerMode===!0&&(pe={padding:b.props.centerPadding+" 0px"});var ve=_(_({},me),pe),he=b.props.touchMove,ge={className:"slick-list",style:ve,onClick:b.clickHandler,onMouseDown:he?b.swipeStart:null,onMouseMove:b.state.dragging&&he?b.swipeMove:null,onMouseUp:he?b.swipeEnd:null,onMouseLeave:b.state.dragging&&he?b.swipeEnd:null,onTouchStart:he?b.swipeStart:null,onTouchMove:b.state.dragging&&he?b.swipeMove:null,onTouchEnd:he?b.touchEnd:null,onTouchCancel:b.state.dragging&&he?b.swipeEnd:null,onKeyDown:b.props.accessibility?b.keyHandler:null},Se={className:R,dir:"ltr",style:b.props.style};return b.props.unslick&&(ge={className:"slick-list"},Se={className:R}),r.default.createElement("div",Se,b.props.unslick?"":Z,r.default.createElement("div",v({ref:b.listRefHandler},ge),r.default.createElement(u.Track,v({ref:b.trackRefHandler},C),b.props.children)),b.props.unslick?"":re,b.props.unslick?"":J)}),b.list=null,b.track=null,b.state=_(_({},t.default),{},{currentSlide:b.props.initialSlide,targetSlide:b.props.initialSlide?b.props.initialSlide:0,slideCount:r.default.Children.count(b.props.children)}),b.callbackTimers=[],b.clickable=!0,b.debouncedResize=null;var te=b.ssrInit();return b.state=_(_({},b.state),te),b}return V(G,[{key:"didPropsChange",value:function(b){for(var te=!1,R=0,y=Object.keys(this.props);R<y.length;R++){var C=y[R];if(!b.hasOwnProperty(C)){te=!0;break}if(!(g(b[C])==="object"||typeof b[C]=="function"||isNaN(b[C]))&&b[C]!==this.props[C]){te=!0;break}}return te||r.default.Children.count(this.props.children)!==r.default.Children.count(b.children)}}]),G}(r.default.Component),Ql}var hp,z1;function I4(){if(z1)return hp;z1=1;var r=function(t){return t.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}).toLowerCase()};return hp=r,hp}var pp,P1;function q4(){if(P1)return pp;P1=1;var r=I4(),t=function(o){var u=/[height|width]$/;return u.test(o)},a=function(o){var u="",c=Object.keys(o);return c.forEach(function(d,h){var p=o[d];d=r(d),t(d)&&typeof p=="number"&&(p=p+"px"),p===!0?u+=d:p===!1?u+="not "+d:u+="("+d+": "+p+")",h<c.length-1&&(u+=" and ")}),u},l=function(o){var u="";return typeof o=="string"?o:o instanceof Array?(o.forEach(function(c,d){u+=a(c),d<o.length-1&&(u+=", ")}),u):a(o)};return pp=l,pp}var mp,H1;function U4(){if(H1)return mp;H1=1;function r(t){this.options=t,!t.deferSetup&&this.setup()}return r.prototype={constructor:r,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},mp=r,mp}var gp,k1;function JO(){if(k1)return gp;k1=1;function r(l,o){var u=0,c=l.length,d;for(u;u<c&&(d=o(l[u],u),d!==!1);u++);}function t(l){return Object.prototype.toString.apply(l)==="[object Array]"}function a(l){return typeof l=="function"}return gp={isFunction:a,isArray:t,each:r},gp}var vp,B1;function G4(){if(B1)return vp;B1=1;var r=U4(),t=JO().each;function a(l,o){this.query=l,this.isUnconditional=o,this.handlers=[],this.mql=window.matchMedia(l);var u=this;this.listener=function(c){u.mql=c.currentTarget||c,u.assess()},this.mql.addListener(this.listener)}return a.prototype={constuctor:a,addHandler:function(l){var o=new r(l);this.handlers.push(o),this.matches()&&o.on()},removeHandler:function(l){var o=this.handlers;t(o,function(u,c){if(u.equals(l))return u.destroy(),!o.splice(c,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(l){l.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var l=this.matches()?"on":"off";t(this.handlers,function(o){o[l]()})}},vp=a,vp}var yp,$1;function V4(){if($1)return yp;$1=1;var r=G4(),t=JO(),a=t.each,l=t.isFunction,o=t.isArray;function u(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return u.prototype={constructor:u,register:function(c,d,h){var p=this.queries,g=h&&this.browserIsIncapable;return p[c]||(p[c]=new r(c,g)),l(d)&&(d={match:d}),o(d)||(d=[d]),a(d,function(v){l(v)&&(v={match:v}),p[c].addHandler(v)}),this},unregister:function(c,d){var h=this.queries[c];return h&&(d?h.removeHandler(d):(h.clear(),delete this.queries[c])),this}},yp=u,yp}var bp,I1;function W4(){if(I1)return bp;I1=1;var r=V4();return bp=new r,bp}var q1;function Y4(){return q1||(q1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=c(Cn()),a=$4(),l=c(q4()),o=c(YO()),u=Do();function c(D){return D&&D.__esModule?D:{default:D}}function d(D){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},d(D)}function h(){return h=Object.assign?Object.assign.bind():function(D){for(var E=1;E<arguments.length;E++){var X=arguments[E];for(var B in X)Object.prototype.hasOwnProperty.call(X,B)&&(D[B]=X[B])}return D},h.apply(this,arguments)}function p(D,E){var X=Object.keys(D);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(D);E&&(B=B.filter(function(q){return Object.getOwnPropertyDescriptor(D,q).enumerable})),X.push.apply(X,B)}return X}function g(D){for(var E=1;E<arguments.length;E++){var X=arguments[E]!=null?arguments[E]:{};E%2?p(Object(X),!0).forEach(function(B){j(D,B,X[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(X)):p(Object(X)).forEach(function(B){Object.defineProperty(D,B,Object.getOwnPropertyDescriptor(X,B))})}return D}function v(D,E){if(!(D instanceof E))throw new TypeError("Cannot call a class as a function")}function x(D,E){for(var X=0;X<E.length;X++){var B=E[X];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(D,M(B.key),B)}}function T(D,E,X){return E&&x(D.prototype,E),Object.defineProperty(D,"prototype",{writable:!1}),D}function N(D,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(E&&E.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),E&&_(D,E)}function _(D,E){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,q){return B.__proto__=q,B},_(D,E)}function z(D){var E=I();return function(){var B=Q(D),q;if(E){var k=Q(this).constructor;q=Reflect.construct(B,arguments,k)}else q=B.apply(this,arguments);return $(this,q)}}function $(D,E){if(E&&(d(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V(D)}function V(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function I(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I=function(){return!!D})()}function Q(D){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},Q(D)}function j(D,E,X){return E=M(E),E in D?Object.defineProperty(D,E,{value:X,enumerable:!0,configurable:!0,writable:!0}):D[E]=X,D}function M(D){var E=P(D,"string");return d(E)=="symbol"?E:String(E)}function P(D,E){if(d(D)!="object"||!D)return D;var X=D[Symbol.toPrimitive];if(X!==void 0){var B=X.call(D,E);if(d(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(D)}var F=(0,u.canUseDOM)()&&W4();r.default=function(D){N(X,D);var E=z(X);function X(B){var q;return v(this,X),q=E.call(this,B),j(V(q),"innerSliderRefHandler",function(k){return q.innerSlider=k}),j(V(q),"slickPrev",function(){return q.innerSlider.slickPrev()}),j(V(q),"slickNext",function(){return q.innerSlider.slickNext()}),j(V(q),"slickGoTo",function(k){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return q.innerSlider.slickGoTo(k,G)}),j(V(q),"slickPause",function(){return q.innerSlider.pause("paused")}),j(V(q),"slickPlay",function(){return q.innerSlider.autoPlay("play")}),q.state={breakpoint:null},q._responsiveMediaHandlers=[],q}return T(X,[{key:"media",value:function(q,k){F.register(q,k),this._responsiveMediaHandlers.push({query:q,handler:k})}},{key:"componentDidMount",value:function(){var q=this;if(this.props.responsive){var k=this.props.responsive.map(function(L){return L.breakpoint});k.sort(function(L,b){return L-b}),k.forEach(function(L,b){var te;b===0?te=(0,l.default)({minWidth:0,maxWidth:L}):te=(0,l.default)({minWidth:k[b-1]+1,maxWidth:L}),(0,u.canUseDOM)()&&q.media(te,function(){q.setState({breakpoint:L})})});var G=(0,l.default)({minWidth:k.slice(-1)[0]});(0,u.canUseDOM)()&&this.media(G,function(){q.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(q){F.unregister(q.query,q.handler)})}},{key:"render",value:function(){var q=this,k,G;this.state.breakpoint?(G=this.props.responsive.filter(function(U){return U.breakpoint===q.state.breakpoint}),k=G[0].settings==="unslick"?"unslick":g(g(g({},o.default),this.props),G[0].settings)):k=g(g({},o.default),this.props),k.centerMode&&(k.slidesToScroll>1,k.slidesToScroll=1),k.fade&&(k.slidesToShow>1,k.slidesToScroll>1,k.slidesToShow=1,k.slidesToScroll=1);var L=t.default.Children.toArray(this.props.children);L=L.filter(function(U){return typeof U=="string"?!!U.trim():!!U}),k.variableWidth&&(k.rows>1||k.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),k.variableWidth=!1);for(var b=[],te=null,R=0;R<L.length;R+=k.rows*k.slidesPerRow){for(var y=[],C=R;C<R+k.rows*k.slidesPerRow;C+=k.slidesPerRow){for(var W=[],J=C;J<C+k.slidesPerRow&&(k.variableWidth&&L[J].props.style&&(te=L[J].props.style.width),!(J>=L.length));J+=1)W.push(t.default.cloneElement(L[J],{key:100*R+10*C+J,tabIndex:-1,style:{width:"".concat(100/k.slidesPerRow,"%"),display:"inline-block"}}));y.push(t.default.createElement("div",{key:10*R+C},W))}k.variableWidth?b.push(t.default.createElement("div",{key:R,style:{width:te}},y)):b.push(t.default.createElement("div",{key:R},y))}if(k==="unslick"){var H="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:H},L)}else b.length<=k.slidesToShow&&!k.infinite&&(k.unslick=!0);return t.default.createElement(a.InnerSlider,h({style:this.props.style,ref:this.innerSliderRefHandler},(0,u.filterSettings)(k)),b)}}]),X}(t.default.Component)}(up)),up}var U1;function X4(){return U1||(U1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=a(Y4());function a(l){return l&&l.__esModule?l:{default:l}}r.default=t.default}(sp)),sp}var F4=X4();const Q4=Jn(F4);function G1(r){const{type:t,className:a,style:l,onClick:o}=r,u=t==="prev"?"chevron_left":"chevron_right";return S.jsx(Qt,{className:`slider-arrow slider-arrow--${t} rounded-circle ${a||""}`,style:l,onClick:o,variant:"primary",children:S.jsx("span",{className:"slider-arrow__icon material-icons",children:u})})}const V1=300;function Z4(){const{id:r}=jr(),{api:t}=_n(),[a,l]=w.useState(null),o=w.useRef(null),[u,c]=w.useState(null);w.useEffect(()=>{const h=new ResizeObserver(p=>{const{width:g}=p[0].contentRect;c(g)});return o.current&&h.observe(o.current),()=>h.disconnect()},[]),w.useEffect(()=>{if(!r)return;const h=new AbortController;return(async()=>{const p=await t.getCampaign({id:r});h.signal.aborted||l(p)})(),()=>h.abort()},[t,r]);const d=w.useMemo(()=>{if(!a||!u)return null;const h=Math.floor(u/V1),p=a.rewards.reduce((g,v)=>{const x=v.id==="-1",T=v.amount&&v.amount.startsWith("0 ");return!x&&!T&&g.push(v),g},[]);return p.length===0?null:h>=p.length?S.jsxs(S.Fragment,{children:[S.jsx("h4",{className:"mb-3",children:"Tiers"}),S.jsx(Ne,{direction:"horizontal",className:"justify-content-center align-items-stretch mb-5",gap:3,children:p.map(g=>S.jsx("div",{style:{width:`${V1}px`},children:S.jsx(T1,{reward:g})}))})]}):S.jsxs(S.Fragment,{children:[S.jsx("h4",{className:"mb-3",children:"Tiers"}),S.jsx(Q4,{className:"slider--h100 mb-5",dots:!0,speed:500,slidesToShow:h,slidesToScroll:1,swipeToSlide:!0,dotsClass:"slick-dots slider__dots",prevArrow:S.jsx(G1,{type:"prev"}),nextArrow:S.jsx(G1,{type:"next"}),children:p.map(g=>S.jsx("div",{className:"px-1",children:S.jsx(T1,{reward:g})}))})]})},[a,u]);return S.jsxs(Ne,{ref:o,className:"w-100 about-campaign",children:[d,a?S.jsx("div",{className:"mb-4 about-campaign__summary",dangerouslySetInnerHTML:{__html:a.summary||""}}):null]})}function K4(){const{id:r}=jr(),t=Vp(),{api:a}=_n(),[l,o]=w.useState(null);return w.useEffect(()=>{if(!r)return;const u=new AbortController;return(async()=>{const c=await a.getCampaign({id:r,withCounts:!0});u.signal.aborted||o(c)})(),()=>u.abort()},[a,r]),w.useEffect(()=>{l&&(async()=>{let u="";l.postCount>0?u="posts":l.productCount>0?u="shop":l.mediaCount>0?u="media":u="about",await t(`/campaigns/${l.id}/${u}`,{replace:!0})})()},[a,l,t]),null}function J4(r){return Reflect.has(r,"replies")}function eN(r){var a;const{comment:t}=r;return S.jsxs(Ne,{children:[S.jsxs(Ne,{direction:"horizontal",className:"mb-2",gap:3,children:[S.jsxs("div",{children:[S.jsx("span",{className:"fw-bolder me-2",children:((a=t.commenter)==null?void 0:a.fullName)||""}),t.isByCreator?S.jsx(Ii,{bg:"secondary",children:"CREATOR"}):null]}),S.jsx("span",{className:"text-body-secondary",children:t.createdAt?new Date(t.createdAt).toLocaleString():""})]}),S.jsx("div",{children:t.body}),J4(t)&&t.replies.length>0?S.jsx("div",{className:"border-start border-secondary mt-2 mb-1 pt-3 pb-2",style:{paddingLeft:"1em"},children:S.jsx(eE,{comments:t.replies})}):null]})}function eE(r){const{comments:t}=r;if(t.length===0)return null;const a=t.map(l=>S.jsx(eN,{comment:l}));return S.jsx(Ne,{gap:4,children:a})}const tN=["post_types","is_viewable","tier_ids","collection_id","sort_by","date_published","search","tag_id"];function W1(){const r=new URL(window.location.href).searchParams,t=new URLSearchParams;for(const a of tN)r.has(a)&&t.set(a,r.get(a));return t.toString()}const nN=(r,t)=>r&&t&&r.id===t.id?r:t,Sp=w.forwardRef(({children:r,settings:t,...a},l)=>S.jsx(On,{fluid:!0,ref:l,...a,children:S.jsx(vt,{className:"justify-content-center",children:S.jsx(lt,{lg:8,md:10,sm:12,className:`p-0 post-content__column mw-${t.maxContentWidth.toLowerCase()}`,children:r})})}));function rN(){const{id:r}=jr(),{api:t}=_n(),{settings:a}=Mr(),{scrollTo:l}=No(),[o,u]=w.useReducer(nN,null),[c,d]=w.useState({previous:null,next:null}),h=w.useRef(null),p=w.useRef(null),g=w.useRef(null),[v,x]=w.useState(!1);w.useEffect(()=>{if(!r)return;const _=new AbortController;return(async()=>{const{post:z,previous:$,next:V}=await t.getPost(r,W1());_.signal.aborted||(u(z),d({previous:$,next:V}))})(),()=>_.abort()},[t,r]);const T=w.useCallback(()=>{if(!c.previous&&!c.next)return;let _=72;const z=window.innerHeight;if(h.current){const $=h.current.getBoundingClientRect();_+=$.bottom}p.current&&(_+=p.current.scrollHeight),x(_>z)},[c,r]);w.useEffect(()=>(T(),window.addEventListener("resize",T),()=>window.removeEventListener("resize",T)),[T]);const N=w.useMemo(()=>{const{previous:_,next:z}=c,$=W1(),V=_?S.jsx(lu,{to:`/posts/${_.id}${$?"?"+$:""}`,className:`post-nav__previous ${z?"":"post-nav__previous--fill"}`,onClick:()=>{d({previous:null,next:null}),l(0,0),u(_)},children:S.jsx("div",{className:"post-nav__previous-label",children:_.title})}):null,I=z?S.jsx(lu,{to:`/posts/${z.id}${$?"?"+$:""}`,className:`post-nav__next ${_?"":"post-nav__next--fill"}`,onClick:()=>{d({previous:null,next:null}),l(0,0),u(z)},children:S.jsx("div",{className:"post-nav__next-label",children:z.title})}):null;if(V||I){const Q=_&&z?"justify-content-between":z?"justify-content-end":"",j=v?"fixed":"";return S.jsx(Sp,{ref:g,settings:a,className:`post-nav__wrapper ${j}`,children:S.jsxs(Ne,{direction:"horizontal",className:`post-nav mt-2 mb-3 ${Q}`,children:[V,I]})})}return null},[c,l,v]);return o?S.jsxs(S.Fragment,{children:[S.jsx(Sp,{ref:h,settings:a,children:S.jsx("div",{className:!N||v?"py-4":"pt-4",children:S.jsx(IO,{post:o,showCampaign:!0})})}),!v&&N,o.comments&&S.jsxs(Sp,{ref:p,settings:a,className:"pt-2 pb-4 px-4",children:[S.jsxs("h5",{className:"mb-3",children:[o.commentCount," ",o.comments.length>1?"comments":"comment"]}),S.jsx(eE,{comments:o.comments})]}),v&&N]}):null}const aN=(r,t)=>r&&t&&JSON.stringify(r.sort())===JSON.stringify(t.sort())?r:t;function iN(){const{settings:r,options:t}=Mr(),[a,l]=w.useReducer(aN,null);return w.useEffect(()=>{var u;const o=((u=t.themes.find(c=>c.value===r.theme))==null?void 0:u.stylesheets)||null;l(o)},[r,t]),w.useEffect(()=>{if(!a||a.length===0)return;document.querySelectorAll('link[id^="theme-stylesheet-"]').forEach(u=>u.remove()),a.forEach((u,c)=>{const d=document.createElement("link");d.id=`theme-stylesheet-${c}`,d.rel="stylesheet",d.href=u,document.head.prepend(d)})},[a]),null}function lN(r){return{filter:null,page:null,itemsPerPage:r.galleryItemsPerPage}}const oN=(r,t)=>{const a=Tr(r);return t.filter!==void 0&&(a.filter=t.filter),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Kn(a,r)?r:a};function sN(){const{id:r}=jr(),t={singular:"media item",plural:"media items"},{api:a}=_n(),{settings:l}=Mr(),{scrollTo:o}=No(),[u,c]=w.useReducer(oN,lN(l)),[d,h]=w.useState(null),[p,g]=w.useState(null),[v,x]=w.useState(null),[T,N]=Oo(),_=lw(),z=w.useRef(!0);w.useEffect(()=>{if(!r)return;x(null);const I=new AbortController;return(async()=>{const Q=await a.getMediaFilterOptions(r);I.signal.aborted||x(Q)})(),()=>I.abort()},[a,r]);const $=w.useCallback((I,Q=!1)=>{N(()=>{const j=new URLSearchParams(window.location.search);return j.set("p",String(I)),j},{replace:Q})},[]);w.useEffect(()=>{_===Up.Pop&&(z.current=!0)},[_]),w.useEffect(()=>{if(!r)return;const I=new AbortController;return(async()=>{const Q=await a.getCampaign({id:r});I.signal.aborted||h(Q)})(),()=>I.abort()},[a,r]),w.useEffect(()=>{const{filter:I,page:Q}=u;if(!d||!I||Q===null)return;const j=new AbortController;return(async()=>{const M=await a.getMediaList({campaign:d,...u,filter:I,page:Q});j.signal.aborted||g(M)})(),()=>j.abort()},[a,d,u]),w.useEffect(()=>{const I=Number(T.get("p"))||1;c({page:I}),o(0,0)},[T,o]);const V=w.useCallback(I=>{z.current?(z.current=!1,c({filter:I})):c({filter:I,page:1})},[]);if(w.useEffect(()=>{c({itemsPerPage:l.galleryItemsPerPage})},[l.galleryItemsPerPage]),w.useEffect(()=>{p&&p.items.length===0&&p.total>0&&$(1,!0)},[p,$]),w.useEffect(()=>{if(u.page===null)return;const I=new URLSearchParams(window.location.search);(Number(I.get("p"))||1)!==u.page&&$(u.page,!0)},[u,$]),!(!d||!v))return S.jsxs("div",{className:"w-100",children:[S.jsx(On,{fluid:!0,className:"p-0",children:S.jsxs(vt,{className:"mb-2 g-0 justify-content-center align-items-center",children:[S.jsx(lt,{className:"w-auto flex-fill",children:p&&p.items.length>0&&u.page?S.jsx(ju,{total:p.total,page:u.page,itemsPerPage:u.itemsPerPage,subject:t}):null}),S.jsx(lt,{className:"w-auto d-flex justify-content-end",children:S.jsx(qO,{options:v,onFilter:V})})]})}),p&&p.items.length>0?S.jsx(Ip,{items:p.items}):null,p&&p.items.length===0?S.jsx(it,{className:"my-4",style:{height:"10em"},children:S.jsx(it.Body,{className:"d-flex justify-content-center align-items-center",children:"No media"})}):null,p?S.jsx(Au,{totalItems:p.total,itemsPerPage:u.itemsPerPage,onChange:$}):null]})}function uN(){const{id:r}=jr(),{api:t}=_n(),[a,l]=w.useState(null);return w.useEffect(()=>{if(!r)return;const o=new AbortController;return(async()=>{const u=await t.getProduct(r);o.signal.aborted||l(u)})(),()=>o.abort()},[t,r]),a?S.jsx(On,{fluid:!0,children:S.jsx(vt,{className:"justify-content-center",children:S.jsx(lt,{lg:8,md:10,sm:12,children:S.jsx("div",{className:"my-4",children:S.jsx(GO,{product:a,showCampaign:!0})})})})}):null}const cN={numPosts:"article"};function fN(r){var l,o;const{collection:t}=r,a=(o=(l=t.thumbnail)==null?void 0:l.downloaded)!=null&&o.path?t.thumbnail.id:null;return S.jsx(it,{className:"collection-card mb-3",children:S.jsxs(it.Body,{className:"d-flex p-0",children:[a&&S.jsx("div",{className:"collection-card__thumbnail",children:S.jsx(fa,{mediaId:a})}),S.jsxs(Ne,{className:"flex-fill overflow-hidden px-3 py-2",children:[S.jsx("h6",{className:"collection-card__title",children:S.jsx(on,{to:`/collections/${t.id}`,children:t.title})}),t.description?S.jsx("div",{className:"collection-card__description",children:t.description}):null,S.jsx(Ne,{direction:"horizontal",className:"flex-fill align-items-end text-body-secondary",gap:3,children:S.jsxs(Ne,{direction:"horizontal",style:{alignSelf:"auto"},children:[S.jsx("span",{className:"collection-card__count-icon material-icons-outlined",children:cN.numPosts}),S.jsx("span",{className:"collection-card__count-text",children:t.numPosts||0})]},`${t.id}:numPosts`)})]})]})})}function dN(r){return{search:"",sortBy:"last_updated",page:null,itemsPerPage:r.listItemsPerPage}}const hN=(r,t)=>{const a=Tr(r);return t.search!==void 0&&(a.search=t.search),t.sortBy!==void 0&&(a.sortBy=t.sortBy),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Kn(a,r)?r:a};function pN(){const{id:r}=jr(),{api:t}=_n(),{settings:a}=Mr(),{scrollTo:l}=No(),[o,u]=w.useReducer(hN,dN(a)),[c,d]=w.useState(null),[h,p]=Oo(),g=w.useCallback(T=>{u({search:T})},[]);w.useEffect(()=>{const{sortBy:T,page:N}=o;if(!r||T===null||N===null)return;const _=new AbortController;return(async()=>{const z=await t.getCollectionList({...o,campaign:r,sortBy:T,page:N});_.signal.aborted||d(z)})(),()=>_.abort()},[t,o]),w.useEffect(()=>{const T=Number(h.get("p"))||1;u({page:T}),l(0,0)},[h,l]),w.useEffect(()=>{u({itemsPerPage:a.listItemsPerPage})},[a.listItemsPerPage]);const v=(T,N=!1)=>{p(_=>{const z=new URLSearchParams(_);return z.set("p",String(T)),z},{replace:N})};if(w.useEffect(()=>{c&&c.collections.length===0&&c.total>0&&v(1,!0)},[c,v]),!c)return;const x={singular:"collection",plural:"collections"};if(o.search){const T=` with "${o.search}"`;x.singular+=T,x.plural+=T}return S.jsx(On,{fluid:!0,children:S.jsx(vt,{className:"g-0 justify-content-center",children:S.jsxs(lt,{md:10,sm:12,className:`collection-list mw-${a.maxContentWidth.toLowerCase()}`,children:[S.jsxs(On,{fluid:!0,className:"p-0",children:[S.jsx(vt,{className:"mb-3 g-0 justify-content-center align-items-center",children:S.jsx(lt,{className:"w-auto flex-fill",children:S.jsx(VO,{placeholder:"Search collections",onConfirm:g})})}),S.jsxs(vt,{className:"mb-2 g-0 justify-content-center align-items-center",children:[S.jsx(lt,{className:"w-auto flex-fill",children:o.page&&S.jsx(ju,{total:c.total,page:o.page,itemsPerPage:o.itemsPerPage,subject:x})}),S.jsx(lt,{className:"w-auto d-flex justify-content-end",children:S.jsxs(Mt.Select,{size:"sm",className:"w-auto",onChange:T=>u({sortBy:T.currentTarget.value}),children:[S.jsx("option",{value:"a-z",selected:o.sortBy==="a-z",children:"A-Z"}),S.jsx("option",{value:"z-a",selected:o.sortBy==="z-a",children:"Z-A"}),S.jsx("option",{value:"last_created",selected:o.sortBy==="last_created",children:"Last created"}),S.jsx("option",{value:"last_updated",selected:o.sortBy==="last_updated",children:"Last updated"})]})})]})]}),S.jsx("div",{className:"mb-4",children:c.collections.map(T=>S.jsx(fN,{collection:T}))}),S.jsx(Au,{totalItems:c.total,itemsPerPage:o.itemsPerPage,onChange:v})]})})})}function mN({collection:r}){var o,u;const{settings:t}=Mr(),a=(u=(o=r.thumbnail)==null?void 0:o.downloaded)!=null&&u.path?r.thumbnail.id:null,l=!r.description;return S.jsx(it,{className:`collection-banner w-100 mb-3 mw-${t.maxContentWidth.toLowerCase()} ${l?"collection-banner--nodesc":""}`,children:S.jsx($O,{maxHeight:130,children:S.jsxs(it.Body,{className:"d-flex p-0",children:[a&&S.jsx("div",{className:"collection-banner__thumbnail",children:S.jsx(fa,{mediaId:a})}),S.jsxs(Ne,{className:"flex-fill overflow-hidden px-3",children:[S.jsx("div",{className:"collection-banner__title d-flex",children:r.title}),r.description&&S.jsx("div",{className:"collection-banner__description",children:r.description})]})]})})})}function gN(){const{id:r}=jr();if(!r)return null;const{api:t}=_n(),[a,l]=w.useState(null),[o,u]=w.useState(null);return w.useEffect(()=>{const c=new AbortController;return(async()=>{const{campaignId:d,collection:h}=await t.getCollection(r),p=await t.getCampaign({id:d,withCounts:!0});c.signal.aborted||(l(p),u(h))})(),()=>c.abort()},[t,r]),a?S.jsxs(On,{fluid:!0,className:"p-0",children:[S.jsx(vt,{className:"g-0",children:S.jsx(lt,{children:S.jsx(WO,{campaign:a})})}),S.jsx(vt,{className:"justify-content-center g-0",children:S.jsxs(lt,{lg:8,md:10,sm:12,className:"px-3 px-md-0 d-flex flex-column align-items-center justify-content-center",children:[o&&S.jsx(mN,{collection:o}),S.jsx(Xp,{})]})})]}):null}function vN(){return S.jsx(K2,{children:S.jsxs(zM,{children:[S.jsx(iN,{}),S.jsx($M,{children:S.jsx(v2,{children:S.jsxs(It,{path:"/",element:S.jsx(UM,{}),children:[S.jsx(It,{index:!0,element:S.jsx(p1,{})}),S.jsx(It,{path:"creators",element:S.jsx(p1,{})}),S.jsxs(It,{path:"campaigns/:id",element:S.jsx(p4,{}),children:[S.jsx(It,{index:!0,element:S.jsx(K4,{})}),S.jsx(It,{path:"posts",element:S.jsx(op,{type:"post"})}),S.jsx(It,{path:"collections",element:S.jsx(pN,{})}),S.jsx(It,{path:"shop",element:S.jsx(op,{type:"product"})}),S.jsx(It,{path:"media",element:S.jsx(sN,{})}),S.jsx(It,{path:"about",element:S.jsx(Z4,{})})]}),S.jsx(It,{path:"posts/:id",element:S.jsx(rN,{})}),S.jsx(It,{path:"products/:id",element:S.jsx(uN,{})}),S.jsx(It,{path:"collections/:id",element:S.jsx(gN,{}),children:S.jsx(It,{index:!0,element:S.jsx(op,{type:"post",collection:!0})})})]})})})]})})}yC.createRoot(document.getElementById("root")).render(S.jsx(q2,{children:S.jsx(vN,{})}));